@mikenotthepope/substrateui 0.1.2 → 0.1.3
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/CHANGELOG.md +23 -0
- package/LICENSE +1 -1
- package/README.md +98 -165
- package/dist/chunk-IQWAGBDM.js +42 -0
- package/dist/chunk-IQWAGBDM.js.map +1 -0
- package/dist/chunk-IRBORST3.js +258 -0
- package/dist/chunk-IRBORST3.js.map +1 -0
- package/dist/index.d.ts +1485 -1108
- package/dist/index.js +4698 -5478
- package/dist/index.js.map +1 -1
- package/dist/organisms.d.ts +112 -0
- package/dist/organisms.js +403 -0
- package/dist/organisms.js.map +1 -0
- package/dist/styles.css +583 -0
- package/dist/tabs-d_9ZRlWe.d.ts +18 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +4 -0
- package/dist/utils.js.map +1 -0
- package/package.json +85 -71
- package/base/substrate.css +0 -652
- package/dist/index.d.mts +0 -1232
- package/dist/index.mjs +0 -6531
- package/dist/index.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,522 +1,284 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
1
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
5
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
7
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
6
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
7
|
+
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
8
8
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import { DayPicker, DayButton, DateRange } from 'react-day-picker';
|
|
10
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
11
|
+
import * as RechartsPrimitive from 'recharts';
|
|
11
12
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
17
|
-
import * as AccordionPrimitives from '@radix-ui/react-accordion';
|
|
18
|
-
import * as ScrollAreaPrimitives from '@radix-ui/react-scroll-area';
|
|
19
|
-
import * as ProgressPrimitives from '@radix-ui/react-progress';
|
|
20
|
-
import * as TooltipPrimitives from '@radix-ui/react-tooltip';
|
|
21
|
-
import * as CollapsiblePrimitives from '@radix-ui/react-collapsible';
|
|
22
|
-
import * as HoverCardPrimitives from '@radix-ui/react-hover-card';
|
|
23
|
-
import * as PopoverPrimitives from '@radix-ui/react-popover';
|
|
13
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
14
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
15
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
16
|
+
import { Command as Command$1 } from 'cmdk';
|
|
24
17
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
25
|
-
import * as
|
|
18
|
+
import * as _tanstack_react_table from '@tanstack/react-table';
|
|
19
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
20
|
+
import * as vaul from 'vaul';
|
|
21
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
22
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
23
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
24
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
25
|
+
import { OTPInput } from 'input-otp';
|
|
26
26
|
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
27
27
|
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
28
|
-
import
|
|
29
|
-
import * as
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import * as
|
|
37
|
-
import
|
|
38
|
-
|
|
39
|
-
import
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
declare const Badge: React__default.ForwardRefExoticComponent<IBadgeProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
59
|
-
|
|
60
|
-
declare const cardVariants: (props?: ({
|
|
61
|
-
variant?: "default" | "outlined" | "elevated" | "interactive" | null | undefined;
|
|
62
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
63
|
-
interface ICardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
64
|
-
asChild?: boolean;
|
|
65
|
-
}
|
|
66
|
-
declare const CardComponent: React$1.ForwardRefExoticComponent<ICardProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
67
|
-
Header: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
68
|
-
Body: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
69
|
-
Footer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
type IMenuContent = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
|
|
73
|
-
declare const MenuComponent: React__default.FC<DropdownMenuPrimitive.DropdownMenuProps> & {
|
|
74
|
-
Trigger: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
75
|
-
Content: ({ className, ...props }: IMenuContent) => react_jsx_runtime.JSX.Element;
|
|
76
|
-
Item: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
declare function Drawer({ ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
80
|
-
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
81
|
-
declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
82
|
-
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
83
|
-
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
84
|
-
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
85
|
-
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
86
|
-
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
87
|
-
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
88
|
-
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
89
|
-
declare const DrawerComponent: typeof Drawer & {
|
|
90
|
-
Trigger: typeof DrawerTrigger;
|
|
91
|
-
Portal: typeof DrawerPortal;
|
|
92
|
-
Overlay: typeof DrawerOverlay;
|
|
93
|
-
Close: typeof DrawerClose;
|
|
94
|
-
Content: typeof DrawerContent;
|
|
95
|
-
Header: typeof DrawerHeader;
|
|
96
|
-
Footer: typeof DrawerFooter;
|
|
97
|
-
Title: typeof DrawerTitle;
|
|
98
|
-
Description: typeof DrawerDescription;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
declare const avatarVariants: (props?: ({
|
|
102
|
-
shape?: "circle" | "square" | "rounded" | "hexagon" | "diamond" | "squircle" | "shield" | null | undefined;
|
|
28
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
29
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
30
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
31
|
+
import { Separator as Separator$1, Panel, Group } from 'react-resizable-panels';
|
|
32
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
33
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
34
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
35
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
36
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
37
|
+
import { Toaster as Toaster$1 } from 'sonner';
|
|
38
|
+
export { toast } from 'sonner';
|
|
39
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
40
|
+
export { T as Tabs, a as TabsContent, b as TabsList, c as TabsTrigger } from './tabs-d_9ZRlWe.js';
|
|
41
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
42
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
43
|
+
import '@radix-ui/react-tabs';
|
|
44
|
+
|
|
45
|
+
/** Root accordion container that manages expand/collapse state for its items. */
|
|
46
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
/** A single collapsible section within an Accordion. */
|
|
48
|
+
declare function AccordionItem({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
49
|
+
/** Clickable header that toggles the visibility of its associated AccordionContent. */
|
|
50
|
+
declare function AccordionTrigger({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof AccordionPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
51
|
+
/** Animated collapsible content panel revealed by its sibling AccordionTrigger. */
|
|
52
|
+
declare function AccordionContent({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof AccordionPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
53
|
+
|
|
54
|
+
/** Alert style variants (default, destructive, success, warning). Use with cn(alertVariants({...})) for non-div elements. */
|
|
55
|
+
declare const alertVariants: (props?: ({
|
|
56
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
103
57
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
declare
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
declare
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
MoreItem: React__default.ForwardRefExoticComponent<TabsMoreItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
144
|
-
|
|
145
|
-
type IInputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
146
|
-
declare const Input: React__default.ForwardRefExoticComponent<IInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
58
|
+
/**
|
|
59
|
+
* Displays a callout message to attract user attention.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* <Alert variant="destructive"><AlertTitle>Error</AlertTitle></Alert>
|
|
63
|
+
*
|
|
64
|
+
* @prop variant - Visual style: "default" | "destructive" | "success" | "warning"
|
|
65
|
+
*/
|
|
66
|
+
declare function Alert({ className, variant, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & VariantProps<typeof alertVariants>): react_jsx_runtime.JSX.Element;
|
|
67
|
+
/** Heading rendered inside an Alert. */
|
|
68
|
+
declare function AlertTitle({ className, ref, ...props }: React$1.ComponentPropsWithRef<"h5">): react_jsx_runtime.JSX.Element;
|
|
69
|
+
/** Body text rendered inside an Alert. */
|
|
70
|
+
declare function AlertDescription({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
71
|
+
|
|
72
|
+
/** Root component that manages alert dialog open/close state. */
|
|
73
|
+
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
74
|
+
/** Button that opens the alert dialog. */
|
|
75
|
+
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
76
|
+
/** Portal that renders alert dialog content outside the DOM hierarchy. */
|
|
77
|
+
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
78
|
+
/** Semi-transparent backdrop rendered behind the alert dialog. */
|
|
79
|
+
declare function AlertDialogOverlay({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
80
|
+
/** Centered modal panel containing the alert dialog body. */
|
|
81
|
+
declare function AlertDialogContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AlertDialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
82
|
+
/** Layout wrapper for the title and description at the top of the dialog. */
|
|
83
|
+
declare function AlertDialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
84
|
+
/** Layout wrapper for action/cancel buttons at the bottom of the dialog. */
|
|
85
|
+
declare function AlertDialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
86
|
+
/** Accessible title rendered inside the alert dialog header. */
|
|
87
|
+
declare function AlertDialogTitle({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
88
|
+
/** Accessible description text rendered inside the alert dialog header. */
|
|
89
|
+
declare function AlertDialogDescription({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
90
|
+
/** Primary confirmation button that closes the dialog on click. */
|
|
91
|
+
declare function AlertDialogAction({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
92
|
+
/** Secondary cancel button that dismisses the dialog. */
|
|
93
|
+
declare function AlertDialogCancel({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
147
94
|
|
|
148
|
-
|
|
149
|
-
|
|
95
|
+
/**
|
|
96
|
+
* Constrains its child to a given width-to-height ratio.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* <AspectRatio ratio={16 / 9}><img src="/hero.jpg" /></AspectRatio>
|
|
100
|
+
*/
|
|
101
|
+
declare const AspectRatio: React$1.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
150
102
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
declare
|
|
103
|
+
/**
|
|
104
|
+
* Circular container for a user profile image with fallback support.
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* <Avatar><AvatarImage src="/me.jpg" /><AvatarFallback>CN</AvatarFallback></Avatar>
|
|
108
|
+
*/
|
|
109
|
+
declare function Avatar({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AvatarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
110
|
+
/** Image displayed inside an Avatar; hidden automatically when loading fails. */
|
|
111
|
+
declare function AvatarImage({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
112
|
+
/** Placeholder content shown while the avatar image loads or when it fails. */
|
|
113
|
+
declare function AvatarFallback({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
158
114
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
shape?: "circle" | "diamond" | null | undefined;
|
|
115
|
+
/** Badge style variants (default, secondary, destructive, outline, success, warning, error). Use with cn(badgeVariants({...})) for non-div elements. */
|
|
116
|
+
declare const badgeVariants: (props?: ({
|
|
117
|
+
variant?: "default" | "destructive" | "success" | "warning" | "outline" | "secondary" | "error" | null | undefined;
|
|
163
118
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
|
|
167
|
-
Item: React$1.ForwardRefExoticComponent<IRadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
declare const Select: React$1.FC<SelectPrimitive.SelectProps> & {
|
|
171
|
-
Trigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
172
|
-
Value: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
173
|
-
Content: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
174
|
-
Group: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
175
|
-
Item: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
176
|
-
Label: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
177
|
-
Separator: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
181
|
-
|
|
182
|
-
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
183
|
-
|
|
184
|
-
declare const variantElements: {
|
|
185
|
-
readonly h1: "h1";
|
|
186
|
-
readonly h2: "h2";
|
|
187
|
-
readonly h3: "h3";
|
|
188
|
-
readonly h4: "h4";
|
|
189
|
-
readonly h5: "h5";
|
|
190
|
-
readonly h6: "h6";
|
|
191
|
-
readonly body: "p";
|
|
192
|
-
readonly small: "p";
|
|
193
|
-
readonly code: "code";
|
|
194
|
-
};
|
|
195
|
-
type Variant = keyof typeof variantElements;
|
|
196
|
-
type TextProps<T extends ElementType = "p"> = {
|
|
197
|
-
variant?: Variant;
|
|
198
|
-
as?: T;
|
|
199
|
-
className?: string;
|
|
200
|
-
} & Omit<ComponentPropsWithoutRef<T>, "className">;
|
|
201
|
-
declare function Text<T extends ElementType = "p">({ variant, as, className, ...props }: TextProps<T>): react_jsx_runtime.JSX.Element;
|
|
202
|
-
|
|
203
|
-
type IFormLayoutProps = React$1.FormHTMLAttributes<HTMLFormElement>;
|
|
204
|
-
interface IFormSectionProps extends React$1.HTMLAttributes<HTMLFieldSetElement> {
|
|
205
|
-
title?: string;
|
|
206
|
-
description?: string;
|
|
119
|
+
/** Props accepted by the Badge component. */
|
|
120
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
207
121
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
align?: "left" | "right" | "center" | "between";
|
|
218
|
-
}
|
|
219
|
-
declare const FormLayout: React$1.ForwardRefExoticComponent<IFormLayoutProps & React$1.RefAttributes<HTMLFormElement>> & {
|
|
220
|
-
Section: React$1.ForwardRefExoticComponent<IFormSectionProps & React$1.RefAttributes<HTMLFieldSetElement>>;
|
|
221
|
-
Field: React$1.ForwardRefExoticComponent<IFormFieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
222
|
-
Row: React$1.ForwardRefExoticComponent<IFormRowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
223
|
-
Actions: React$1.ForwardRefExoticComponent<IFormActionsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
224
|
-
};
|
|
122
|
+
/**
|
|
123
|
+
* Small label used to highlight status, category, or metadata.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* <Badge variant="success">Active</Badge>
|
|
127
|
+
*
|
|
128
|
+
* @prop variant - Visual style: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "error"
|
|
129
|
+
*/
|
|
130
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
225
131
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Navigation component showing the user's location in a page hierarchy.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* <Breadcrumb><BreadcrumbList><BreadcrumbItem><BreadcrumbLink href="/">Home</BreadcrumbLink></BreadcrumbItem></BreadcrumbList></Breadcrumb>
|
|
137
|
+
*/
|
|
138
|
+
declare function Breadcrumb({ ref, ...props }: React$1.ComponentPropsWithRef<"nav"> & {
|
|
139
|
+
separator?: React$1.ReactNode;
|
|
140
|
+
}): react_jsx_runtime.JSX.Element;
|
|
141
|
+
/** Ordered list container for breadcrumb items. */
|
|
142
|
+
declare function BreadcrumbList({ className, ref, ...props }: React$1.ComponentPropsWithRef<"ol">): react_jsx_runtime.JSX.Element;
|
|
143
|
+
/** Individual breadcrumb entry wrapping a link or page indicator. */
|
|
144
|
+
declare function BreadcrumbItem({ className, ref, ...props }: React$1.ComponentPropsWithRef<"li">): react_jsx_runtime.JSX.Element;
|
|
145
|
+
/** Clickable link within a breadcrumb item; supports asChild for custom link components. */
|
|
146
|
+
declare function BreadcrumbLink({ asChild, className, ref, ...props }: React$1.ComponentPropsWithRef<"a"> & {
|
|
231
147
|
asChild?: boolean;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
Title: React$1.ForwardRefExoticComponent<IAlertTitleProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
245
|
-
Description: React$1.ForwardRefExoticComponent<IAlertDescriptionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
declare const iconButtonVariants: (props?: ({
|
|
249
|
-
variant?: "default" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
250
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
148
|
+
}): react_jsx_runtime.JSX.Element;
|
|
149
|
+
/** Non-interactive label representing the current page in the breadcrumb trail. */
|
|
150
|
+
declare function BreadcrumbPage({ className, ref, ...props }: React$1.ComponentPropsWithRef<"span">): react_jsx_runtime.JSX.Element;
|
|
151
|
+
/** Visual divider between breadcrumb items; defaults to a chevron icon. */
|
|
152
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
153
|
+
/** Ellipsis indicator used when breadcrumb items are collapsed. */
|
|
154
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
155
|
+
|
|
156
|
+
/** Button style variants (variant + size). Use with cn(buttonVariants({...})) for non-button elements. */
|
|
157
|
+
declare const buttonVariants: (props?: ({
|
|
158
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "amber" | "ghost" | null | undefined;
|
|
159
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
251
160
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
252
|
-
|
|
161
|
+
/** Props accepted by the Button component. */
|
|
162
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
253
163
|
asChild?: boolean;
|
|
254
164
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
declare const Loader: React$1.ForwardRefExoticComponent<ILoaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
267
|
-
|
|
268
|
-
declare const overlayVariants: (props?: ({
|
|
269
|
-
variant?: "default" | "none" | null | undefined;
|
|
270
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
271
|
-
interface IDialogOverlayProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof overlayVariants> {
|
|
272
|
-
}
|
|
273
|
-
declare const dialogContentVariants: (props?: ({
|
|
274
|
-
size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
275
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
276
|
-
interface IDialogContentProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dialogContentVariants> {
|
|
277
|
-
overlay?: IDialogOverlayProps;
|
|
278
|
-
}
|
|
279
|
-
declare const DialogComponent: React$1.FC<SheetPrimitive.DialogProps> & {
|
|
280
|
-
Trigger: React$1.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
281
|
-
Content: React$1.ForwardRefExoticComponent<IDialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
282
|
-
Header: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
283
|
-
Body: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
284
|
-
Description: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
285
|
-
Footer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
declare const dividerVariants: (props?: ({
|
|
289
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
290
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
291
|
-
interface IDividerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof dividerVariants> {
|
|
292
|
-
label?: React$1.ReactNode;
|
|
293
|
-
}
|
|
294
|
-
declare const Divider: React$1.ForwardRefExoticComponent<IDividerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
295
|
-
|
|
296
|
-
declare const stackVariants: (props?: ({
|
|
297
|
-
direction?: "horizontal" | "vertical" | null | undefined;
|
|
298
|
-
gap?: "sm" | "md" | "lg" | "none" | "xl" | "xs" | "2xl" | null | undefined;
|
|
299
|
-
align?: "center" | "start" | "end" | "baseline" | "stretch" | null | undefined;
|
|
300
|
-
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
301
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
302
|
-
interface IStackProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof stackVariants> {
|
|
303
|
-
as?: React$1.ElementType;
|
|
304
|
-
}
|
|
305
|
-
declare const Stack: React$1.ForwardRefExoticComponent<IStackProps & React$1.RefAttributes<HTMLElement>>;
|
|
306
|
-
|
|
307
|
-
declare const flexVariants: (props?: ({
|
|
308
|
-
direction?: "row" | "row-reverse" | "column" | "column-reverse" | null | undefined;
|
|
309
|
-
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
310
|
-
gap?: "sm" | "md" | "lg" | "none" | "xl" | "xs" | "2xl" | null | undefined;
|
|
311
|
-
align?: "center" | "start" | "end" | "baseline" | "stretch" | null | undefined;
|
|
312
|
-
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | null | undefined;
|
|
313
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
314
|
-
interface IFlexProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof flexVariants> {
|
|
315
|
-
as?: React$1.ElementType;
|
|
316
|
-
}
|
|
317
|
-
declare const Flex: React$1.ForwardRefExoticComponent<IFlexProps & React$1.RefAttributes<HTMLElement>>;
|
|
318
|
-
|
|
319
|
-
declare const gridVariants: (props?: ({
|
|
320
|
-
columns?: 1 | 4 | 3 | 2 | 5 | 6 | null | undefined;
|
|
321
|
-
gap?: "sm" | "md" | "lg" | "none" | "xl" | "xs" | "2xl" | null | undefined;
|
|
322
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
323
|
-
type ColumnCount = 1 | 2 | 3 | 4 | 5 | 6;
|
|
324
|
-
interface IGridProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof gridVariants> {
|
|
325
|
-
as?: React$1.ElementType;
|
|
326
|
-
/** Column count at the `sm` breakpoint (640px+) */
|
|
327
|
-
columnsSm?: ColumnCount;
|
|
328
|
-
/** Column count at the `md` breakpoint (768px+) */
|
|
329
|
-
columnsMd?: ColumnCount;
|
|
330
|
-
/** Column count at the `lg` breakpoint (1024px+) */
|
|
331
|
-
columnsLg?: ColumnCount;
|
|
332
|
-
}
|
|
333
|
-
declare const Grid: React$1.ForwardRefExoticComponent<IGridProps & React$1.RefAttributes<HTMLElement>>;
|
|
334
|
-
|
|
335
|
-
declare const containerVariants: (props?: ({
|
|
336
|
-
size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
337
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
338
|
-
interface IContainerProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof containerVariants> {
|
|
339
|
-
as?: React$1.ElementType;
|
|
340
|
-
}
|
|
341
|
-
declare const Container: React$1.ForwardRefExoticComponent<IContainerProps & React$1.RefAttributes<HTMLElement>>;
|
|
342
|
-
|
|
343
|
-
declare const AccordionComponent: React$1.ForwardRefExoticComponent<(Omit<AccordionPrimitives.AccordionSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitives.AccordionMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & React$1.RefAttributes<HTMLDivElement>> & {
|
|
344
|
-
Item: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitives.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
345
|
-
Trigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitives.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
346
|
-
Content: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitives.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
declare const ScrollAreaComponent: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitives.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
|
|
350
|
-
ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitives.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
type ISkeletonProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
354
|
-
declare const Skeleton: React$1.ForwardRefExoticComponent<ISkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
355
|
-
|
|
356
|
-
interface IProgressProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitives.Root> {
|
|
357
|
-
value?: number;
|
|
358
|
-
}
|
|
359
|
-
declare const Progress: React$1.ForwardRefExoticComponent<IProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
360
|
-
|
|
361
|
-
type ITooltipProviderProps = React$1.ComponentPropsWithoutRef<typeof TooltipPrimitives.Provider>;
|
|
362
|
-
declare const TooltipComponent: React$1.FC<TooltipPrimitives.TooltipProps> & {
|
|
363
|
-
Provider: {
|
|
364
|
-
({ delayDuration, ...props }: ITooltipProviderProps): react_jsx_runtime.JSX.Element;
|
|
365
|
-
displayName: string;
|
|
366
|
-
};
|
|
367
|
-
Trigger: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitives.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
368
|
-
Content: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitives.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
declare const CollapsibleComponent: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitives.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
|
|
372
|
-
Trigger: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitives.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
373
|
-
Content: React$1.ForwardRefExoticComponent<Omit<CollapsiblePrimitives.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
declare const HoverCardComponent: React$1.FC<HoverCardPrimitives.HoverCardProps> & {
|
|
377
|
-
Trigger: React$1.ForwardRefExoticComponent<Omit<HoverCardPrimitives.HoverCardTriggerProps & React$1.RefAttributes<HTMLAnchorElement>, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
378
|
-
Content: React$1.ForwardRefExoticComponent<Omit<HoverCardPrimitives.HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
declare const PopoverComponent: React$1.FC<PopoverPrimitives.PopoverProps> & {
|
|
382
|
-
Trigger: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitives.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
383
|
-
Content: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitives.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
384
|
-
Close: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitives.PopoverCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
declare const ContextMenuComponent: React$1.FC<ContextMenuPrimitive.ContextMenuProps> & {
|
|
388
|
-
Trigger: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
389
|
-
Content: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
390
|
-
Item: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
391
|
-
inset?: boolean;
|
|
392
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
393
|
-
CheckboxItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
394
|
-
RadioItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
395
|
-
Label: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
396
|
-
inset?: boolean;
|
|
397
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
398
|
-
Separator: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
399
|
-
Shortcut: {
|
|
400
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
401
|
-
displayName: string;
|
|
402
|
-
};
|
|
403
|
-
Group: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
404
|
-
Portal: React$1.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
405
|
-
Sub: React$1.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
406
|
-
SubContent: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
407
|
-
SubTrigger: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
408
|
-
inset?: boolean;
|
|
409
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
410
|
-
RadioGroup: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
411
|
-
};
|
|
165
|
+
/**
|
|
166
|
+
* Interactive button with multiple visual variants and sizes.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* <Button variant="outline" size="sm">Click me</Button>
|
|
170
|
+
*
|
|
171
|
+
* @prop variant - Visual style: "default" | "destructive" | "outline" | "secondary" | "amber" | "ghost" | "link"
|
|
172
|
+
* @prop size - Dimensions: "default" | "sm" | "lg" | "icon"
|
|
173
|
+
* @prop asChild - Merge props onto child element instead of rendering a button
|
|
174
|
+
*/
|
|
175
|
+
declare function Button({ className, variant, size, asChild, ref, ...props }: ButtonProps & React$1.ComponentPropsWithRef<"button">): react_jsx_runtime.JSX.Element;
|
|
412
176
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
RadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
421
|
-
Label: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
422
|
-
inset?: boolean;
|
|
423
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
424
|
-
Separator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
425
|
-
Shortcut: {
|
|
426
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
427
|
-
displayName: string;
|
|
428
|
-
};
|
|
429
|
-
Group: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
430
|
-
Portal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
431
|
-
Sub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
432
|
-
SubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
433
|
-
SubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
434
|
-
inset?: boolean;
|
|
435
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
436
|
-
RadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
437
|
-
};
|
|
177
|
+
/**
|
|
178
|
+
* Groups multiple buttons into a single visual unit with shared borders.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* <ButtonGroup><Button>Left</Button><Button>Right</Button></ButtonGroup>
|
|
182
|
+
*/
|
|
183
|
+
declare function ButtonGroup({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
438
184
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}
|
|
185
|
+
/**
|
|
186
|
+
* Date picker calendar built on react-day-picker with themed styling.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* <Calendar mode="single" selected={date} onSelect={setDate} />
|
|
190
|
+
*
|
|
191
|
+
* @prop buttonVariant - Button variant used for navigation arrows
|
|
192
|
+
*/
|
|
193
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
194
|
+
buttonVariant?: React$1.ComponentProps<typeof Button>["variant"];
|
|
195
|
+
}): react_jsx_runtime.JSX.Element;
|
|
196
|
+
/** Individual day cell button used internally by Calendar. */
|
|
197
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React$1.ComponentProps<typeof DayButton>): react_jsx_runtime.JSX.Element;
|
|
448
198
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
199
|
+
/**
|
|
200
|
+
* Bordered container for grouping related content.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* <Card><CardHeader><CardTitle>Title</CardTitle></CardHeader><CardContent>Body</CardContent></Card>
|
|
204
|
+
*
|
|
205
|
+
* @prop interactive - Adds hover and click styles when true
|
|
206
|
+
*/
|
|
207
|
+
declare function Card({ className, interactive, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & {
|
|
208
|
+
interactive?: boolean;
|
|
209
|
+
}): react_jsx_runtime.JSX.Element;
|
|
210
|
+
/** Top section of a Card containing the title and description. */
|
|
211
|
+
declare function CardHeader({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
212
|
+
/** Primary heading inside a CardHeader. */
|
|
213
|
+
declare function CardTitle({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
214
|
+
/** Secondary description text inside a CardHeader. */
|
|
215
|
+
declare function CardDescription({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
216
|
+
/** Main body area of a Card. */
|
|
217
|
+
declare function CardContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
218
|
+
/** Bottom section of a Card, typically for actions. */
|
|
219
|
+
declare function CardFooter({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
220
|
+
|
|
221
|
+
/** Handle returned by Embla Carousel for programmatic control. */
|
|
222
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
223
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
224
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
225
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
226
|
+
type CarouselProps = {
|
|
227
|
+
opts?: CarouselOptions;
|
|
228
|
+
plugins?: CarouselPlugin;
|
|
229
|
+
orientation?: "horizontal" | "vertical";
|
|
230
|
+
setApi?: (api: CarouselApi) => void;
|
|
479
231
|
};
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
232
|
+
/**
|
|
233
|
+
* Scrollable content carousel powered by Embla Carousel.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* <Carousel><CarouselContent><CarouselItem>Slide 1</CarouselItem></CarouselContent><CarouselPrevious /><CarouselNext /></Carousel>
|
|
237
|
+
*
|
|
238
|
+
* @prop orientation - Scroll direction: "horizontal" | "vertical"
|
|
239
|
+
*/
|
|
240
|
+
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & CarouselProps): react_jsx_runtime.JSX.Element;
|
|
241
|
+
/** Scrollable track containing CarouselItem children. */
|
|
242
|
+
declare function CarouselContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
243
|
+
/** Individual slide within CarouselContent. */
|
|
244
|
+
declare function CarouselItem({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
245
|
+
/** Button that scrolls the carousel to the previous slide. */
|
|
246
|
+
declare function CarouselPrevious({ className, variant, size, ref, ...props }: React$1.ComponentPropsWithRef<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
247
|
+
/** Button that scrolls the carousel to the next slide. */
|
|
248
|
+
declare function CarouselNext({ className, variant, size, ref, ...props }: React$1.ComponentPropsWithRef<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
249
|
+
|
|
250
|
+
declare const maxMap: {
|
|
251
|
+
readonly sm: "max-w-screen-sm";
|
|
252
|
+
readonly md: "max-w-screen-md";
|
|
253
|
+
readonly lg: "max-w-screen-lg";
|
|
254
|
+
readonly xl: "max-w-screen-xl";
|
|
255
|
+
readonly "2xl": "max-w-screen-2xl";
|
|
256
|
+
readonly full: "max-w-full";
|
|
493
257
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
withHandle?: boolean;
|
|
258
|
+
type Max = keyof typeof maxMap;
|
|
259
|
+
/** Props accepted by the Center component. */
|
|
260
|
+
interface CenterProps extends React$1.ComponentPropsWithRef<"div"> {
|
|
261
|
+
max?: Max;
|
|
262
|
+
padding?: boolean;
|
|
263
|
+
asChild?: boolean;
|
|
501
264
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
};
|
|
514
|
-
};
|
|
265
|
+
/**
|
|
266
|
+
* Horizontally centers its content with a configurable max-width and optional padding.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* <Center max="lg" padding>Content</Center>
|
|
270
|
+
*
|
|
271
|
+
* @prop max - Max-width breakpoint: "sm" | "md" | "lg" | "xl" | "2xl" | "full"
|
|
272
|
+
* @prop padding - Adds responsive horizontal padding when true
|
|
273
|
+
* @prop asChild - Merge props onto child element instead of rendering a div
|
|
274
|
+
*/
|
|
275
|
+
declare function Center({ max, padding, asChild, className, ref, ...props }: CenterProps): react_jsx_runtime.JSX.Element;
|
|
515
276
|
|
|
516
277
|
declare const THEMES: {
|
|
517
278
|
readonly light: "";
|
|
518
279
|
readonly dark: ".dark";
|
|
519
280
|
};
|
|
281
|
+
/** Configuration map defining labels, icons, and colors for each chart data series. */
|
|
520
282
|
type ChartConfig = {
|
|
521
283
|
[k in string]: {
|
|
522
284
|
label?: React$1.ReactNode;
|
|
@@ -529,333 +291,1024 @@ type ChartConfig = {
|
|
|
529
291
|
theme: Record<keyof typeof THEMES, string>;
|
|
530
292
|
});
|
|
531
293
|
};
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
294
|
+
/**
|
|
295
|
+
* Wrapper that provides chart config context and a responsive container for Recharts charts.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* <ChartContainer config={chartConfig}><BarChart data={data}>...</BarChart></ChartContainer>
|
|
299
|
+
*
|
|
300
|
+
* @prop config - ChartConfig mapping series keys to labels, icons, and colors
|
|
301
|
+
*/
|
|
302
|
+
declare function ChartContainer({ id, className, children, config, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & {
|
|
537
303
|
config: ChartConfig;
|
|
538
304
|
children: React$1.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
305
|
+
}): react_jsx_runtime.JSX.Element;
|
|
306
|
+
/** Injects CSS custom properties for chart colors based on the active theme. */
|
|
307
|
+
declare const ChartStyle: ({ id, config }: {
|
|
308
|
+
id: string;
|
|
309
|
+
config: ChartConfig;
|
|
310
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
311
|
+
/** Recharts Tooltip component, re-exported for convenience. */
|
|
312
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
313
|
+
/** Themed tooltip content renderer for use with ChartTooltip. */
|
|
314
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, ref, }: React$1.ComponentPropsWithRef<"div"> & React$1.ComponentProps<typeof RechartsPrimitive.Tooltip> & {
|
|
548
315
|
hideLabel?: boolean;
|
|
549
316
|
hideIndicator?: boolean;
|
|
550
317
|
indicator?: "line" | "dot" | "dashed";
|
|
551
318
|
nameKey?: string;
|
|
552
319
|
labelKey?: string;
|
|
553
|
-
}
|
|
554
|
-
|
|
320
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
321
|
+
/** Recharts Legend component, re-exported for convenience. */
|
|
322
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
323
|
+
/** Themed legend content renderer for use with ChartLegend. */
|
|
324
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, ref, }: React$1.ComponentPropsWithRef<"div"> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
555
325
|
hideIcon?: boolean;
|
|
556
326
|
nameKey?: string;
|
|
557
|
-
|
|
558
|
-
value?: string;
|
|
559
|
-
color?: string;
|
|
560
|
-
dataKey?: string;
|
|
561
|
-
}>;
|
|
562
|
-
verticalAlign?: "top" | "bottom";
|
|
563
|
-
}
|
|
564
|
-
declare const ChartComponent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>> & {
|
|
565
|
-
Container: React$1.ForwardRefExoticComponent<IChartContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
566
|
-
Tooltip: typeof RechartsPrimitive.Tooltip;
|
|
567
|
-
TooltipContent: React$1.ForwardRefExoticComponent<IChartTooltipContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
568
|
-
Legend: React$1.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React$1.ReactPortal | null>;
|
|
569
|
-
LegendContent: React$1.ForwardRefExoticComponent<IChartLegendContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
570
|
-
Style: ({ id, config }: {
|
|
571
|
-
id: string;
|
|
572
|
-
config: ChartConfig;
|
|
573
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
|
574
|
-
};
|
|
327
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
575
328
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
/** URL of the image to display */
|
|
593
|
-
imageUrl: string;
|
|
594
|
-
/** Caption text below the image */
|
|
595
|
-
caption: string;
|
|
596
|
-
/** Alt text for the image (defaults to caption) */
|
|
597
|
-
alt?: string;
|
|
598
|
-
}
|
|
599
|
-
declare const ImageCard: React$1.ForwardRefExoticComponent<IImageCardProps & React$1.RefAttributes<HTMLElement>>;
|
|
600
|
-
|
|
601
|
-
type IInputOTPProps = OTPInputProps & {
|
|
602
|
-
containerClassName?: string;
|
|
329
|
+
/**
|
|
330
|
+
* A toggleable checkbox input with checked/unchecked states.
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* <Checkbox checked={checked} onCheckedChange={setChecked} />
|
|
334
|
+
*/
|
|
335
|
+
declare function Checkbox({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof CheckboxPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
336
|
+
|
|
337
|
+
declare const gapMap$2: {
|
|
338
|
+
readonly none: "gap-0";
|
|
339
|
+
readonly xs: "gap-1";
|
|
340
|
+
readonly sm: "gap-2";
|
|
341
|
+
readonly md: "gap-4";
|
|
342
|
+
readonly lg: "gap-6";
|
|
343
|
+
readonly xl: "gap-8";
|
|
344
|
+
readonly "2xl": "gap-12";
|
|
603
345
|
};
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
declare const InputOTPComponent: React$1.ForwardRefExoticComponent<IInputOTPProps & React$1.RefAttributes<HTMLInputElement>> & {
|
|
610
|
-
Group: React$1.ForwardRefExoticComponent<IInputOTPGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
611
|
-
Slot: React$1.ForwardRefExoticComponent<IInputOTPSlotProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
612
|
-
Separator: React$1.ForwardRefExoticComponent<IInputOTPSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
346
|
+
declare const alignMap$1: {
|
|
347
|
+
readonly start: "items-start";
|
|
348
|
+
readonly center: "items-center";
|
|
349
|
+
readonly end: "items-end";
|
|
350
|
+
readonly baseline: "items-baseline";
|
|
613
351
|
};
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
Header: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
620
|
-
Footer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
621
|
-
Title: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
622
|
-
Description: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
623
|
-
Action: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
624
|
-
Cancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
352
|
+
declare const justifyMap: {
|
|
353
|
+
readonly start: "justify-start";
|
|
354
|
+
readonly center: "justify-center";
|
|
355
|
+
readonly end: "justify-end";
|
|
356
|
+
readonly between: "justify-between";
|
|
625
357
|
};
|
|
626
|
-
|
|
627
|
-
|
|
358
|
+
type Gap$3 = keyof typeof gapMap$2;
|
|
359
|
+
type Align$1 = keyof typeof alignMap$1;
|
|
360
|
+
type Justify = keyof typeof justifyMap;
|
|
361
|
+
/** Props accepted by the Cluster component. */
|
|
362
|
+
interface ClusterProps extends React$1.ComponentPropsWithRef<"div"> {
|
|
363
|
+
gap?: Gap$3;
|
|
364
|
+
align?: Align$1;
|
|
365
|
+
justify?: Justify;
|
|
366
|
+
wrap?: boolean;
|
|
628
367
|
asChild?: boolean;
|
|
629
368
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
369
|
+
/**
|
|
370
|
+
* Flexbox layout primitive for horizontal grouping with configurable gap, alignment, and wrapping.
|
|
371
|
+
*
|
|
372
|
+
* @example
|
|
373
|
+
* <Cluster gap="md" justify="between"><Badge>A</Badge><Badge>B</Badge></Cluster>
|
|
374
|
+
*
|
|
375
|
+
* @prop gap - Spacing between items: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
|
376
|
+
* @prop align - Cross-axis alignment: "start" | "center" | "end" | "baseline"
|
|
377
|
+
* @prop justify - Main-axis justification: "start" | "center" | "end" | "between"
|
|
378
|
+
* @prop wrap - Enable flex-wrap (default true)
|
|
379
|
+
* @prop asChild - Merge props onto child element instead of rendering a div
|
|
380
|
+
*/
|
|
381
|
+
declare function Cluster({ gap, align, justify, wrap, asChild, className, ref, ...props }: ClusterProps): react_jsx_runtime.JSX.Element;
|
|
638
382
|
|
|
639
|
-
|
|
640
|
-
declare const
|
|
383
|
+
/** Root component that manages collapsible open/close state. */
|
|
384
|
+
declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
385
|
+
/** Button that toggles the collapsible content visibility. */
|
|
386
|
+
declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
387
|
+
/** Content panel that expands or collapses based on the Collapsible state. */
|
|
388
|
+
declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
641
389
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
interface ICarouselProps {
|
|
647
|
-
opts?: CarouselOptions;
|
|
648
|
-
plugins?: CarouselPlugin;
|
|
649
|
-
orientation?: "horizontal" | "vertical";
|
|
650
|
-
setApi?: (api: CarouselApi) => void;
|
|
390
|
+
/** A single selectable option in the Combobox dropdown. */
|
|
391
|
+
interface ComboboxOption {
|
|
392
|
+
value: string;
|
|
393
|
+
label: string;
|
|
651
394
|
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
plugins?: CarouselPlugin;
|
|
660
|
-
} & ICarouselProps;
|
|
661
|
-
declare function useCarousel(): CarouselContextProps;
|
|
662
|
-
declare const CarouselComponent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & ICarouselProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
663
|
-
Content: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
664
|
-
Item: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
665
|
-
Previous: React$1.ForwardRefExoticComponent<IButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
666
|
-
Next: React$1.ForwardRefExoticComponent<IButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
interface IPaginationLinkProps extends React$1.ComponentPropsWithoutRef<"a"> {
|
|
670
|
-
isActive?: boolean;
|
|
671
|
-
size?: "sm" | "md" | "lg" | "icon";
|
|
395
|
+
interface ComboboxBaseProps {
|
|
396
|
+
options: ComboboxOption[];
|
|
397
|
+
placeholder?: string;
|
|
398
|
+
searchPlaceholder?: string;
|
|
399
|
+
emptyMessage?: string;
|
|
400
|
+
className?: string;
|
|
401
|
+
disabled?: boolean;
|
|
672
402
|
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
Previous: React$1.ForwardRefExoticComponent<Omit<IPaginationLinkProps & React$1.RefAttributes<HTMLAnchorElement>, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
678
|
-
Next: React$1.ForwardRefExoticComponent<Omit<IPaginationLinkProps & React$1.RefAttributes<HTMLAnchorElement>, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
679
|
-
Ellipsis: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
declare const sheetContentVariants: (props?: ({
|
|
683
|
-
side?: "bottom" | "top" | "right" | "left" | null | undefined;
|
|
684
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
685
|
-
interface ISheetContentProps extends React$1.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetContentVariants> {
|
|
403
|
+
interface ComboboxSingleProps extends ComboboxBaseProps {
|
|
404
|
+
multiple?: false;
|
|
405
|
+
value?: string;
|
|
406
|
+
onValueChange?: (value: string) => void;
|
|
686
407
|
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
Header: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
692
|
-
Title: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
693
|
-
Description: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
694
|
-
Footer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
698
|
-
declare namespace FormField {
|
|
699
|
-
var displayName: string;
|
|
408
|
+
interface ComboboxMultipleProps extends ComboboxBaseProps {
|
|
409
|
+
multiple: true;
|
|
410
|
+
value?: string[];
|
|
411
|
+
onValueChange?: (value: string[]) => void;
|
|
700
412
|
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
};
|
|
713
|
-
declare const FormComponent: (<TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element) & {
|
|
714
|
-
Field: typeof FormField;
|
|
715
|
-
Item: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
716
|
-
Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
717
|
-
Control: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
718
|
-
Description: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
719
|
-
Message: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
720
|
-
};
|
|
413
|
+
type ComboboxProps = ComboboxSingleProps | ComboboxMultipleProps;
|
|
414
|
+
/**
|
|
415
|
+
* Searchable select dropdown supporting single or multi-select modes.
|
|
416
|
+
*
|
|
417
|
+
* @example
|
|
418
|
+
* <Combobox options={[{ value: "a", label: "Alpha" }]} value={val} onValueChange={setVal} />
|
|
419
|
+
*
|
|
420
|
+
* @prop options - Array of selectable options
|
|
421
|
+
* @prop multiple - Enable multi-select mode when true
|
|
422
|
+
* @prop placeholder - Text shown when no value is selected
|
|
423
|
+
*/
|
|
424
|
+
declare function Combobox({ options, placeholder, searchPlaceholder, emptyMessage, className, disabled, ...props }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
721
425
|
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
426
|
+
/**
|
|
427
|
+
* Command palette container with built-in search and keyboard navigation.
|
|
428
|
+
*
|
|
429
|
+
* @example
|
|
430
|
+
* <Command><CommandInput /><CommandList><CommandItem>Action</CommandItem></CommandList></Command>
|
|
431
|
+
*/
|
|
432
|
+
declare function Command({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Command$1>): react_jsx_runtime.JSX.Element;
|
|
433
|
+
/** Command palette rendered inside a modal dialog. */
|
|
434
|
+
declare function CommandDialog({ children, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
435
|
+
/** Search input field within a Command palette. */
|
|
436
|
+
declare function CommandInput({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
437
|
+
/** Scrollable list container for command items and groups. */
|
|
438
|
+
declare function CommandList({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
439
|
+
/** Placeholder shown when no command items match the search query. */
|
|
440
|
+
declare function CommandEmpty({ ref, ...props }: React$1.ComponentPropsWithRef<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
441
|
+
/** Labeled group of related command items. */
|
|
442
|
+
declare function CommandGroup({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
443
|
+
/** Horizontal divider between command groups or items. */
|
|
444
|
+
declare function CommandSeparator({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
445
|
+
/** Selectable action item within a CommandList. */
|
|
446
|
+
declare function CommandItem({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
447
|
+
/** Keyboard shortcut hint displayed alongside a CommandItem. */
|
|
448
|
+
declare function CommandShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
449
|
+
|
|
450
|
+
/** Root component that manages context menu open/close state. */
|
|
451
|
+
declare const ContextMenu: React$1.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
452
|
+
/** Area that opens the context menu on right-click. */
|
|
453
|
+
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
454
|
+
/** Groups related context menu items together. */
|
|
455
|
+
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
456
|
+
/** Portal that renders context menu content outside the DOM hierarchy. */
|
|
457
|
+
declare const ContextMenuPortal: React$1.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
458
|
+
/** Root for a nested sub-menu within the context menu. */
|
|
459
|
+
declare const ContextMenuSub: React$1.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
460
|
+
/** Groups mutually exclusive radio items in the context menu. */
|
|
461
|
+
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
462
|
+
/** Item that opens a nested sub-menu on hover. */
|
|
463
|
+
declare function ContextMenuSubTrigger({ className, inset, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
464
|
+
inset?: boolean;
|
|
465
|
+
}): react_jsx_runtime.JSX.Element;
|
|
466
|
+
/** Dropdown panel for a nested sub-menu. */
|
|
467
|
+
declare function ContextMenuSubContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
468
|
+
/** Positioned dropdown panel containing the context menu items. */
|
|
469
|
+
declare function ContextMenuContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
470
|
+
/** Clickable action item within the context menu. */
|
|
471
|
+
declare function ContextMenuItem({ className, inset, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.Item> & {
|
|
472
|
+
inset?: boolean;
|
|
473
|
+
}): react_jsx_runtime.JSX.Element;
|
|
474
|
+
/** Context menu item with a toggleable checkbox indicator. */
|
|
475
|
+
declare function ContextMenuCheckboxItem({ className, children, checked, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
476
|
+
/** Context menu item with a radio indicator for single-select groups. */
|
|
477
|
+
declare function ContextMenuRadioItem({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
478
|
+
/** Non-interactive label used to title a group of context menu items. */
|
|
479
|
+
declare function ContextMenuLabel({ className, inset, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.Label> & {
|
|
480
|
+
inset?: boolean;
|
|
481
|
+
}): react_jsx_runtime.JSX.Element;
|
|
482
|
+
/** Horizontal divider between context menu sections. */
|
|
483
|
+
declare function ContextMenuSeparator({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof ContextMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
484
|
+
/** Keyboard shortcut hint displayed alongside a context menu item. */
|
|
485
|
+
declare function ContextMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
486
|
+
|
|
487
|
+
interface DataTableColumnHeaderProps<TData, TValue> extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
488
|
+
column: _tanstack_react_table.Column<TData, TValue>;
|
|
489
|
+
title: string;
|
|
725
490
|
}
|
|
726
|
-
|
|
491
|
+
/**
|
|
492
|
+
* Sortable column header button that toggles sort direction on click.
|
|
493
|
+
*
|
|
494
|
+
* @example
|
|
495
|
+
* <DataTableColumnHeader column={column} title="Name" />
|
|
496
|
+
*
|
|
497
|
+
* @prop column - TanStack Table column instance
|
|
498
|
+
* @prop title - Display text for the header
|
|
499
|
+
*/
|
|
500
|
+
declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
501
|
+
interface DataTableViewOptionsProps<TData> {
|
|
502
|
+
table: _tanstack_react_table.Table<TData>;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Dropdown menu for toggling column visibility in a data table.
|
|
506
|
+
*
|
|
507
|
+
* @example
|
|
508
|
+
* <DataTableViewOptions table={table} />
|
|
509
|
+
*
|
|
510
|
+
* @prop table - TanStack Table instance
|
|
511
|
+
*/
|
|
512
|
+
declare function DataTableViewOptions<TData>({ table, }: DataTableViewOptionsProps<TData>): react_jsx_runtime.JSX.Element;
|
|
513
|
+
interface DataTablePaginationProps<TData> {
|
|
514
|
+
table: _tanstack_react_table.Table<TData>;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Pagination controls displaying row selection count and page navigation.
|
|
518
|
+
*
|
|
519
|
+
* @example
|
|
520
|
+
* <DataTablePagination table={table} />
|
|
521
|
+
*
|
|
522
|
+
* @prop table - TanStack Table instance
|
|
523
|
+
*/
|
|
524
|
+
declare function DataTablePagination<TData>({ table, }: DataTablePaginationProps<TData>): react_jsx_runtime.JSX.Element;
|
|
525
|
+
interface DataTableToolbarProps {
|
|
727
526
|
children?: React$1.ReactNode;
|
|
728
|
-
|
|
729
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
730
|
-
} & {
|
|
731
|
-
asChild?: boolean;
|
|
732
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
733
|
-
label?: string;
|
|
734
|
-
shouldFilter?: boolean;
|
|
735
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
736
|
-
defaultValue?: string;
|
|
737
|
-
value?: string;
|
|
738
|
-
onValueChange?: (value: string) => void;
|
|
739
|
-
loop?: boolean;
|
|
740
|
-
disablePointerSelection?: boolean;
|
|
741
|
-
vimBindings?: boolean;
|
|
742
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>> & {
|
|
743
|
-
Dialog: {
|
|
744
|
-
({ title, description, children, ...props }: ICommandDialogProps): react_jsx_runtime.JSX.Element;
|
|
745
|
-
displayName: string;
|
|
746
|
-
};
|
|
747
|
-
Input: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
748
|
-
ref?: React$1.Ref<HTMLInputElement>;
|
|
749
|
-
} & {
|
|
750
|
-
asChild?: boolean;
|
|
751
|
-
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
752
|
-
value?: string;
|
|
753
|
-
onValueChange?: (search: string) => void;
|
|
754
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
755
|
-
List: React$1.ForwardRefExoticComponent<Omit<{
|
|
756
|
-
children?: React$1.ReactNode;
|
|
757
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
758
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
759
|
-
} & {
|
|
760
|
-
asChild?: boolean;
|
|
761
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
762
|
-
label?: string;
|
|
763
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
764
|
-
Empty: React$1.ForwardRefExoticComponent<Omit<{
|
|
765
|
-
children?: React$1.ReactNode;
|
|
766
|
-
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
767
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
768
|
-
} & {
|
|
769
|
-
asChild?: boolean;
|
|
770
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
771
|
-
Group: React$1.ForwardRefExoticComponent<Omit<{
|
|
772
|
-
children?: React$1.ReactNode;
|
|
773
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
774
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
775
|
-
} & {
|
|
776
|
-
asChild?: boolean;
|
|
777
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
778
|
-
heading?: React$1.ReactNode;
|
|
779
|
-
value?: string;
|
|
780
|
-
forceMount?: boolean;
|
|
781
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
782
|
-
Separator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
783
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
784
|
-
} & {
|
|
785
|
-
asChild?: boolean;
|
|
786
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
787
|
-
alwaysRender?: boolean;
|
|
788
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
789
|
-
Item: React$1.ForwardRefExoticComponent<Omit<{
|
|
790
|
-
children?: React$1.ReactNode;
|
|
791
|
-
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
792
|
-
ref?: React$1.Ref<HTMLDivElement>;
|
|
793
|
-
} & {
|
|
794
|
-
asChild?: boolean;
|
|
795
|
-
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
796
|
-
disabled?: boolean;
|
|
797
|
-
onSelect?: (value: string) => void;
|
|
798
|
-
value?: string;
|
|
799
|
-
keywords?: string[];
|
|
800
|
-
forceMount?: boolean;
|
|
801
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
802
|
-
Shortcut: {
|
|
803
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
804
|
-
displayName: string;
|
|
805
|
-
};
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
interface IComboboxItem {
|
|
809
|
-
value: string;
|
|
810
|
-
label: string;
|
|
811
|
-
disabled?: boolean;
|
|
527
|
+
className?: string;
|
|
812
528
|
}
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
529
|
+
/**
|
|
530
|
+
* Horizontal toolbar container for data table filters and actions.
|
|
531
|
+
*
|
|
532
|
+
* @example
|
|
533
|
+
* <DataTableToolbar><Input placeholder="Filter..." /></DataTableToolbar>
|
|
534
|
+
*/
|
|
535
|
+
declare function DataTableToolbar({ children, className }: DataTableToolbarProps): react_jsx_runtime.JSX.Element;
|
|
536
|
+
/**
|
|
537
|
+
* Creates a checkbox selection column definition for use with TanStack Table.
|
|
538
|
+
*
|
|
539
|
+
* @example
|
|
540
|
+
* const columns = [createSelectColumn<MyData>(), ...otherColumns]
|
|
541
|
+
*/
|
|
542
|
+
declare function createSelectColumn<TData>(): ColumnDef<TData>;
|
|
543
|
+
interface DataTableProps<TData, TValue> {
|
|
544
|
+
columns: ColumnDef<TData, TValue>[];
|
|
545
|
+
data: TData[];
|
|
546
|
+
className?: string;
|
|
547
|
+
toolbar?: React$1.ReactNode;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Full-featured data table with sorting, filtering, pagination, and row selection.
|
|
551
|
+
*
|
|
552
|
+
* @example
|
|
553
|
+
* <DataTable columns={columns} data={data} toolbar={<DataTableToolbar>...</DataTableToolbar>} />
|
|
554
|
+
*
|
|
555
|
+
* @prop columns - TanStack Table column definitions
|
|
556
|
+
* @prop data - Array of row data
|
|
557
|
+
* @prop toolbar - Optional toolbar rendered above the table
|
|
558
|
+
*/
|
|
559
|
+
declare function DataTable<TData, TValue>({ columns, data, className, toolbar, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
560
|
+
|
|
561
|
+
interface DatePickerProps {
|
|
562
|
+
date?: Date;
|
|
563
|
+
onDateChange?: (date: Date | undefined) => void;
|
|
817
564
|
placeholder?: string;
|
|
818
|
-
searchPlaceholder?: string;
|
|
819
|
-
emptyText?: string;
|
|
820
565
|
className?: string;
|
|
821
566
|
disabled?: boolean;
|
|
822
567
|
}
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
568
|
+
/**
|
|
569
|
+
* Single-date picker with a popover calendar and formatted display.
|
|
570
|
+
*
|
|
571
|
+
* @example
|
|
572
|
+
* <DatePicker date={date} onDateChange={setDate} placeholder="Select date" />
|
|
573
|
+
*
|
|
574
|
+
* @prop date - Currently selected date
|
|
575
|
+
* @prop onDateChange - Callback when a date is selected
|
|
576
|
+
* @prop placeholder - Text shown when no date is selected
|
|
577
|
+
*/
|
|
578
|
+
declare function DatePicker({ date, onDateChange, placeholder, className, disabled, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
579
|
+
interface DateRangePickerProps {
|
|
580
|
+
dateRange?: DateRange;
|
|
581
|
+
onDateRangeChange?: (range: DateRange | undefined) => void;
|
|
827
582
|
placeholder?: string;
|
|
828
|
-
searchPlaceholder?: string;
|
|
829
|
-
emptyText?: string;
|
|
830
583
|
className?: string;
|
|
831
584
|
disabled?: boolean;
|
|
832
585
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
586
|
+
/**
|
|
587
|
+
* Date range picker with a two-month popover calendar.
|
|
588
|
+
*
|
|
589
|
+
* @example
|
|
590
|
+
* <DateRangePicker dateRange={range} onDateRangeChange={setRange} />
|
|
591
|
+
*
|
|
592
|
+
* @prop dateRange - Currently selected date range
|
|
593
|
+
* @prop onDateRangeChange - Callback when the range changes
|
|
594
|
+
* @prop placeholder - Text shown when no range is selected
|
|
595
|
+
*/
|
|
596
|
+
declare function DateRangePicker({ dateRange, onDateRangeChange, placeholder, className, disabled, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
597
|
+
|
|
598
|
+
/** Root dialog component that manages open/close state. */
|
|
599
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
600
|
+
/** Button or element that opens the dialog when clicked. */
|
|
601
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
602
|
+
/** Portals dialog content into document body. */
|
|
603
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
604
|
+
/** Button or element that closes the dialog when clicked. */
|
|
605
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
606
|
+
/** Semi-transparent backdrop overlay behind the dialog. */
|
|
607
|
+
declare function DialogOverlay({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
608
|
+
/**
|
|
609
|
+
* Centered dialog panel with overlay, close button, and animated transitions.
|
|
610
|
+
*
|
|
611
|
+
* @example
|
|
612
|
+
* <Dialog>
|
|
613
|
+
* <DialogTrigger>Open</DialogTrigger>
|
|
614
|
+
* <DialogContent><DialogHeader><DialogTitle>Title</DialogTitle></DialogHeader></DialogContent>
|
|
615
|
+
* </Dialog>
|
|
616
|
+
*/
|
|
617
|
+
declare function DialogContent({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof DialogPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
618
|
+
/** Container for dialog title and description at the top of the dialog. */
|
|
619
|
+
declare function DialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
620
|
+
/** Container for action buttons at the bottom of the dialog. */
|
|
621
|
+
declare function DialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
622
|
+
/** Accessible title heading for the dialog. */
|
|
623
|
+
declare function DialogTitle({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
624
|
+
/** Accessible description text displayed below the dialog title. */
|
|
625
|
+
declare function DialogDescription({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
626
|
+
|
|
627
|
+
/** Text direction, either left-to-right or right-to-left. */
|
|
628
|
+
type Direction = "ltr" | "rtl";
|
|
629
|
+
/**
|
|
630
|
+
* Context provider that sets the text direction for descendant components.
|
|
631
|
+
* All Radix-based components in this library read from this provider automatically.
|
|
632
|
+
*
|
|
633
|
+
* @example
|
|
634
|
+
* <DirectionProvider dir="rtl">{children}</DirectionProvider>
|
|
635
|
+
*
|
|
636
|
+
* @prop dir - Text direction, defaults to "ltr"
|
|
637
|
+
*/
|
|
638
|
+
declare function DirectionProvider({ dir, children, }: {
|
|
639
|
+
dir?: Direction;
|
|
640
|
+
children: React$1.ReactNode;
|
|
641
|
+
}): react_jsx_runtime.JSX.Element;
|
|
642
|
+
/** Hook that returns the current text direction from DirectionProvider context. */
|
|
643
|
+
declare function useDirection(): Direction;
|
|
836
644
|
|
|
837
|
-
interface
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
filterColumn?: string;
|
|
841
|
-
filterPlaceholder?: string;
|
|
842
|
-
showColumnToggle?: boolean;
|
|
843
|
-
showPagination?: boolean;
|
|
844
|
-
showSelectedCount?: boolean;
|
|
845
|
-
className?: string;
|
|
645
|
+
interface DividerProps extends React$1.ComponentPropsWithRef<"div"> {
|
|
646
|
+
orientation?: "horizontal" | "vertical";
|
|
647
|
+
label?: string;
|
|
846
648
|
}
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
649
|
+
/**
|
|
650
|
+
* Visual separator rendered as a horizontal rule, vertical line, or labeled divider.
|
|
651
|
+
*
|
|
652
|
+
* @example
|
|
653
|
+
* <Divider />
|
|
654
|
+
* <Divider label="OR" />
|
|
655
|
+
* <Divider orientation="vertical" />
|
|
656
|
+
*
|
|
657
|
+
* @prop orientation - "horizontal" (default) or "vertical"
|
|
658
|
+
* @prop label - Optional centered text within a horizontal divider
|
|
659
|
+
*/
|
|
660
|
+
declare function Divider({ orientation, label, className, ref, ...props }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Root drawer component powered by Vaul, slides up from the bottom of the viewport.
|
|
664
|
+
*
|
|
665
|
+
* @example
|
|
666
|
+
* <Drawer>
|
|
667
|
+
* <DrawerTrigger>Open</DrawerTrigger>
|
|
668
|
+
* <DrawerContent><DrawerHeader><DrawerTitle>Title</DrawerTitle></DrawerHeader></DrawerContent>
|
|
669
|
+
* </Drawer>
|
|
670
|
+
*/
|
|
671
|
+
declare function Drawer({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
672
|
+
/** Button or element that opens the drawer when clicked. */
|
|
673
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
674
|
+
/** Portals drawer content into document body. */
|
|
675
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
676
|
+
/** Button or element that closes the drawer when clicked. */
|
|
677
|
+
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
678
|
+
/** Semi-transparent backdrop overlay behind the drawer. */
|
|
679
|
+
declare function DrawerOverlay({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
680
|
+
/** Drawer panel that slides up from the bottom with a drag handle. */
|
|
681
|
+
declare function DrawerContent({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
682
|
+
/** Container for drawer title and description. */
|
|
683
|
+
declare function DrawerHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
684
|
+
/** Container for action buttons at the bottom of the drawer. */
|
|
685
|
+
declare function DrawerFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
686
|
+
/** Accessible title heading for the drawer. */
|
|
687
|
+
declare function DrawerTitle({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
688
|
+
/** Accessible description text displayed below the drawer title. */
|
|
689
|
+
declare function DrawerDescription({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
690
|
+
|
|
691
|
+
/** Root dropdown menu component that manages open/close state. */
|
|
692
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
693
|
+
/** Button or element that toggles the dropdown menu. */
|
|
694
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
695
|
+
/** Groups related dropdown menu items together. */
|
|
696
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
697
|
+
/** Portals dropdown menu content into document body. */
|
|
698
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
699
|
+
/** Root component for a nested submenu within a dropdown. */
|
|
700
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
701
|
+
/** Groups radio items so only one can be selected at a time. */
|
|
702
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
703
|
+
/** Menu item that opens a nested submenu on hover or focus. */
|
|
704
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
705
|
+
inset?: boolean;
|
|
706
|
+
}): react_jsx_runtime.JSX.Element;
|
|
707
|
+
/** Animated content panel for a nested submenu. */
|
|
708
|
+
declare function DropdownMenuSubContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
709
|
+
/**
|
|
710
|
+
* Animated popover panel containing the dropdown menu items.
|
|
711
|
+
*
|
|
712
|
+
* @example
|
|
713
|
+
* <DropdownMenu>
|
|
714
|
+
* <DropdownMenuTrigger>Open</DropdownMenuTrigger>
|
|
715
|
+
* <DropdownMenuContent><DropdownMenuItem>Action</DropdownMenuItem></DropdownMenuContent>
|
|
716
|
+
* </DropdownMenu>
|
|
717
|
+
*/
|
|
718
|
+
declare function DropdownMenuContent({ className, sideOffset, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
719
|
+
/** Clickable item within a dropdown menu. */
|
|
720
|
+
declare function DropdownMenuItem({ className, inset, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Item> & {
|
|
721
|
+
inset?: boolean;
|
|
722
|
+
}): react_jsx_runtime.JSX.Element;
|
|
723
|
+
/** Menu item with a checkbox indicator for toggling boolean options. */
|
|
724
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
725
|
+
/** Menu item with a radio indicator for single-select groups. */
|
|
726
|
+
declare function DropdownMenuRadioItem({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
727
|
+
/** Non-interactive label used to title a group of menu items. */
|
|
728
|
+
declare function DropdownMenuLabel({ className, inset, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Label> & {
|
|
729
|
+
inset?: boolean;
|
|
730
|
+
}): react_jsx_runtime.JSX.Element;
|
|
731
|
+
/** Horizontal divider line between groups of menu items. */
|
|
732
|
+
declare function DropdownMenuSeparator({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
733
|
+
/** Right-aligned keyboard shortcut hint displayed within a menu item. */
|
|
734
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Centered empty state container for when no content is available.
|
|
738
|
+
*
|
|
739
|
+
* @example
|
|
740
|
+
* <Empty>
|
|
741
|
+
* <EmptyIcon><InboxIcon /></EmptyIcon>
|
|
742
|
+
* <EmptyTitle>No results</EmptyTitle>
|
|
743
|
+
* <EmptyDescription>Try adjusting your filters.</EmptyDescription>
|
|
744
|
+
* <EmptyAction><Button>Reset</Button></EmptyAction>
|
|
745
|
+
* </Empty>
|
|
746
|
+
*/
|
|
747
|
+
declare function Empty({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
748
|
+
/** Icon container displayed above the empty state title. */
|
|
749
|
+
declare function EmptyIcon({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
750
|
+
/** Heading text for the empty state. */
|
|
751
|
+
declare function EmptyTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
752
|
+
/** Muted description text below the empty state title. */
|
|
753
|
+
declare function EmptyDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
754
|
+
/** Container for a call-to-action button in the empty state. */
|
|
755
|
+
declare function EmptyAction({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
756
|
+
|
|
757
|
+
/** Label text variants. Use with cn(labelVariants()) for non-label elements. */
|
|
758
|
+
declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
759
|
+
/**
|
|
760
|
+
* Accessible label component built on Radix UI Label primitive.
|
|
761
|
+
*
|
|
762
|
+
* @example
|
|
763
|
+
* <Label htmlFor="email">Email</Label>
|
|
764
|
+
*/
|
|
765
|
+
declare function Label({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>): react_jsx_runtime.JSX.Element;
|
|
766
|
+
|
|
767
|
+
interface FieldContextValue {
|
|
768
|
+
id: string;
|
|
769
|
+
hintId: string;
|
|
770
|
+
errorId: string;
|
|
771
|
+
error: boolean;
|
|
851
772
|
}
|
|
852
|
-
|
|
853
|
-
declare
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
773
|
+
/** Hook that returns the current Field context (id, error state, aria IDs). */
|
|
774
|
+
declare function useFieldContext(): FieldContextValue | null;
|
|
775
|
+
interface FieldProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
776
|
+
error?: boolean;
|
|
777
|
+
id?: string;
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Form field wrapper that provides shared context for label, hint, and error linking.
|
|
781
|
+
*
|
|
782
|
+
* @example
|
|
783
|
+
* <Field error={!!errors.name}>
|
|
784
|
+
* <FieldLabel>Name</FieldLabel>
|
|
785
|
+
* <Input />
|
|
786
|
+
* <FieldError>{errors.name}</FieldError>
|
|
787
|
+
* </Field>
|
|
788
|
+
*
|
|
789
|
+
* @prop error - Whether the field is in an error state
|
|
790
|
+
*/
|
|
791
|
+
declare function Field({ className, error, id: idProp, children, ...props }: FieldProps): react_jsx_runtime.JSX.Element;
|
|
792
|
+
/** Label automatically linked to the parent Field's input via htmlFor. */
|
|
793
|
+
declare function FieldLabel({ className, ...props }: React$1.ComponentPropsWithoutRef<typeof Label>): react_jsx_runtime.JSX.Element;
|
|
794
|
+
/** Muted helper text displayed below a field input. */
|
|
795
|
+
declare function FieldHint({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
796
|
+
/** Error message that renders only when children are provided, with role="alert". */
|
|
797
|
+
declare function FieldError({ className, children, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element | null;
|
|
798
|
+
|
|
799
|
+
interface FieldsetProps extends React$1.ComponentPropsWithRef<"fieldset"> {
|
|
800
|
+
legend: string;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Accessible fieldset wrapper with a visible legend label.
|
|
804
|
+
*
|
|
805
|
+
* @example
|
|
806
|
+
* <Fieldset legend="Personal Info"><Input /><Input /></Fieldset>
|
|
807
|
+
*
|
|
808
|
+
* @prop legend - Text displayed as the fieldset legend
|
|
809
|
+
*/
|
|
810
|
+
declare function Fieldset({ legend, className, children, ref, ...props }: FieldsetProps): react_jsx_runtime.JSX.Element;
|
|
811
|
+
|
|
812
|
+
type Gap$2 = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
813
|
+
interface FormProps extends React$1.ComponentPropsWithRef<"form"> {
|
|
814
|
+
gap?: Gap$2;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Form element with vertical stack layout and configurable gap spacing.
|
|
818
|
+
*
|
|
819
|
+
* @example
|
|
820
|
+
* <Form gap="lg" onSubmit={handleSubmit}><Field>...</Field></Form>
|
|
821
|
+
*
|
|
822
|
+
* @prop gap - Vertical spacing between children (default "xl")
|
|
823
|
+
*/
|
|
824
|
+
declare function Form({ gap, className, children, ref, ...props }: FormProps): react_jsx_runtime.JSX.Element;
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Horizontal action bar for form submit/cancel buttons, separated by a top border.
|
|
828
|
+
*
|
|
829
|
+
* @example
|
|
830
|
+
* <FormActions>
|
|
831
|
+
* <Button variant="outline">Cancel</Button>
|
|
832
|
+
* <Button>Save</Button>
|
|
833
|
+
* </FormActions>
|
|
834
|
+
*/
|
|
835
|
+
declare function FormActions({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
836
|
+
/** Left-aligned container for secondary form actions (e.g., delete or reset). */
|
|
837
|
+
declare function FormActionsSecondary({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
838
|
+
/** Right-aligned container for primary form actions (e.g., submit). */
|
|
839
|
+
declare function FormActionsPrimary({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Fieldset-based section for grouping related form fields with a header.
|
|
843
|
+
*
|
|
844
|
+
* @example
|
|
845
|
+
* <FormSection>
|
|
846
|
+
* <FormSectionHeader><FormSectionTitle>Account</FormSectionTitle></FormSectionHeader>
|
|
847
|
+
* <FormSectionContent><Field>...</Field></FormSectionContent>
|
|
848
|
+
* </FormSection>
|
|
849
|
+
*/
|
|
850
|
+
declare function FormSection({ className, ref, ...props }: React$1.ComponentPropsWithRef<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
851
|
+
/** Container for the section title and description. */
|
|
852
|
+
declare function FormSectionHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
853
|
+
/** Legend element used as the section heading. */
|
|
854
|
+
declare function FormSectionTitle({ className, ...props }: React$1.HTMLAttributes<HTMLLegendElement>): react_jsx_runtime.JSX.Element;
|
|
855
|
+
/** Muted paragraph describing the purpose of the form section. */
|
|
856
|
+
declare function FormSectionDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
857
|
+
interface FormSectionContentProps extends React$1.ComponentPropsWithRef<"div"> {
|
|
858
|
+
layout?: "stack" | "grid";
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Content area for form fields, rendered as a stack or two-column grid.
|
|
862
|
+
*
|
|
863
|
+
* @prop layout - "stack" (default) or "grid" for two-column layout
|
|
864
|
+
*/
|
|
865
|
+
declare function FormSectionContent({ layout, className, ref, children, ...props }: FormSectionContentProps): react_jsx_runtime.JSX.Element;
|
|
866
|
+
|
|
867
|
+
declare const gapMap$1: {
|
|
868
|
+
readonly none: "gap-0";
|
|
869
|
+
readonly xs: "gap-1";
|
|
870
|
+
readonly sm: "gap-2";
|
|
871
|
+
readonly md: "gap-4";
|
|
872
|
+
readonly lg: "gap-6";
|
|
873
|
+
readonly xl: "gap-8";
|
|
874
|
+
readonly "2xl": "gap-12";
|
|
858
875
|
};
|
|
876
|
+
type Gap$1 = keyof typeof gapMap$1;
|
|
877
|
+
type Columns = 1 | 2 | 3 | 4 | 5 | 6 | "auto-fill" | "auto-fit";
|
|
878
|
+
interface GridProps extends React$1.ComponentPropsWithRef<"div"> {
|
|
879
|
+
columns?: Columns;
|
|
880
|
+
gap?: Gap$1;
|
|
881
|
+
minChildWidth?: string;
|
|
882
|
+
asChild?: boolean;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* CSS Grid layout component with configurable columns, gap, and auto-fill/auto-fit modes.
|
|
886
|
+
*
|
|
887
|
+
* @example
|
|
888
|
+
* <Grid columns={3} gap="lg"><Card /><Card /><Card /></Grid>
|
|
889
|
+
* <Grid columns="auto-fill" minChildWidth="200px" gap="md">...</Grid>
|
|
890
|
+
*
|
|
891
|
+
* @prop columns - Number of columns (1-6) or "auto-fill"/"auto-fit"
|
|
892
|
+
* @prop gap - Gap size between grid items
|
|
893
|
+
* @prop minChildWidth - Minimum child width for auto-fill/auto-fit columns
|
|
894
|
+
* @prop asChild - Merge props onto child element via Slot
|
|
895
|
+
*/
|
|
896
|
+
declare function Grid({ columns, gap, minChildWidth, asChild, className, style, ref, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
897
|
+
|
|
898
|
+
/** Root hover card component that manages open/close state on hover. */
|
|
899
|
+
declare const HoverCard: React$1.FC<HoverCardPrimitive.HoverCardProps>;
|
|
900
|
+
/** Element that triggers the hover card on mouse enter. */
|
|
901
|
+
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
902
|
+
/**
|
|
903
|
+
* Animated popover panel that appears on hover over the trigger.
|
|
904
|
+
*
|
|
905
|
+
* @example
|
|
906
|
+
* <HoverCard>
|
|
907
|
+
* <HoverCardTrigger>Hover me</HoverCardTrigger>
|
|
908
|
+
* <HoverCardContent>Details here</HoverCardContent>
|
|
909
|
+
* </HoverCard>
|
|
910
|
+
*/
|
|
911
|
+
declare function HoverCardContent({ className, align, sideOffset, ref, ...props }: React$1.ComponentPropsWithRef<typeof HoverCardPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Styled text input with focus ring, border, and disabled state support.
|
|
915
|
+
*
|
|
916
|
+
* @example
|
|
917
|
+
* <Input type="email" placeholder="you@example.com" />
|
|
918
|
+
*/
|
|
919
|
+
declare function Input({ className, type, ref, ...props }: React$1.ComponentPropsWithRef<"input">): react_jsx_runtime.JSX.Element;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Container that visually groups an Input with prefix/suffix addons sharing a single border.
|
|
923
|
+
*
|
|
924
|
+
* @example
|
|
925
|
+
* <InputGroup>
|
|
926
|
+
* <InputGroupPrefix>$</InputGroupPrefix>
|
|
927
|
+
* <Input placeholder="0.00" />
|
|
928
|
+
* <InputGroupSuffix>USD</InputGroupSuffix>
|
|
929
|
+
* </InputGroup>
|
|
930
|
+
*/
|
|
931
|
+
declare function InputGroup({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
932
|
+
/** Left-side addon content (icon, text) within an InputGroup. */
|
|
933
|
+
declare function InputGroupPrefix({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
934
|
+
/** Right-side addon content (icon, text) within an InputGroup. */
|
|
935
|
+
declare function InputGroupSuffix({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* One-time password input supporting configurable length and pattern validation.
|
|
939
|
+
*
|
|
940
|
+
* @example
|
|
941
|
+
* <InputOTP maxLength={6}>
|
|
942
|
+
* <InputOTPGroup><InputOTPSlot index={0} /><InputOTPSlot index={1} /></InputOTPGroup>
|
|
943
|
+
* <InputOTPSeparator />
|
|
944
|
+
* <InputOTPGroup><InputOTPSlot index={2} /><InputOTPSlot index={3} /></InputOTPGroup>
|
|
945
|
+
* </InputOTP>
|
|
946
|
+
*/
|
|
947
|
+
declare function InputOTP({ className, containerClassName, ref, ...props }: React$1.ComponentPropsWithRef<typeof OTPInput>): react_jsx_runtime.JSX.Element;
|
|
948
|
+
/** Groups adjacent OTP slots together visually. */
|
|
949
|
+
declare function InputOTPGroup({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
950
|
+
/**
|
|
951
|
+
* Individual character slot within an OTP input displaying a single digit.
|
|
952
|
+
*
|
|
953
|
+
* @prop index - Zero-based position of this slot in the OTP sequence
|
|
954
|
+
*/
|
|
955
|
+
declare function InputOTPSlot({ index, className, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & {
|
|
956
|
+
index: number;
|
|
957
|
+
}): react_jsx_runtime.JSX.Element;
|
|
958
|
+
/** Dot separator rendered between OTP slot groups. */
|
|
959
|
+
declare function InputOTPSeparator({ ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
960
|
+
|
|
961
|
+
interface ItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
962
|
+
active?: boolean;
|
|
963
|
+
disabled?: boolean;
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* Interactive list item with active and disabled states, commonly used in menus and lists.
|
|
967
|
+
*
|
|
968
|
+
* @example
|
|
969
|
+
* <Item active onClick={handleClick}><ItemIcon><StarIcon /></ItemIcon><ItemLabel>Favorites</ItemLabel></Item>
|
|
970
|
+
*
|
|
971
|
+
* @prop active - Highlights the item as currently selected
|
|
972
|
+
* @prop disabled - Dims the item and disables pointer events
|
|
973
|
+
*/
|
|
974
|
+
declare function Item({ className, active, disabled, ...props }: ItemProps): react_jsx_runtime.JSX.Element;
|
|
975
|
+
/** Shrink-proof icon wrapper inside an Item. */
|
|
976
|
+
declare function ItemIcon({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
977
|
+
/** Truncating text label inside an Item. */
|
|
978
|
+
declare function ItemLabel({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
979
|
+
|
|
980
|
+
interface KbdProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
981
|
+
keys?: string | string[];
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Renders a keyboard key indicator, supporting single keys or key combinations.
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* <Kbd keys={["Ctrl", "S"]} />
|
|
988
|
+
* <Kbd>Enter</Kbd>
|
|
989
|
+
*
|
|
990
|
+
* @prop keys - A single key string or array of key strings to display as a combination.
|
|
991
|
+
*/
|
|
992
|
+
declare function Kbd({ className, keys, children, ...props }: KbdProps): react_jsx_runtime.JSX.Element;
|
|
993
|
+
|
|
994
|
+
/** Wrapper for an individual menu within the menubar. */
|
|
995
|
+
declare function MenubarMenu({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Menu>): react_jsx_runtime.JSX.Element;
|
|
996
|
+
/** Groups related menubar items together. */
|
|
997
|
+
declare function MenubarGroup({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
998
|
+
/** Portal for rendering menubar content outside the DOM hierarchy. */
|
|
999
|
+
declare function MenubarPortal({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
1000
|
+
/** Groups menubar radio items for single-selection behavior. */
|
|
1001
|
+
declare function MenubarRadioGroup({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
1002
|
+
/** Container for a nested submenu within the menubar. */
|
|
1003
|
+
declare function MenubarSub({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
1004
|
+
/**
|
|
1005
|
+
* Horizontal menubar root component built on Radix UI Menubar.
|
|
1006
|
+
*
|
|
1007
|
+
* @example
|
|
1008
|
+
* <Menubar>
|
|
1009
|
+
* <MenubarMenu>
|
|
1010
|
+
* <MenubarTrigger>File</MenubarTrigger>
|
|
1011
|
+
* <MenubarContent>
|
|
1012
|
+
* <MenubarItem>New</MenubarItem>
|
|
1013
|
+
* </MenubarContent>
|
|
1014
|
+
* </MenubarMenu>
|
|
1015
|
+
* </Menubar>
|
|
1016
|
+
*/
|
|
1017
|
+
declare function Menubar({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1018
|
+
/** Button that opens a menubar dropdown. */
|
|
1019
|
+
declare function MenubarTrigger({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1020
|
+
/** Trigger that opens a nested submenu, displaying a chevron indicator. */
|
|
1021
|
+
declare function MenubarSubTrigger({ className, inset, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.SubTrigger> & {
|
|
1022
|
+
inset?: boolean;
|
|
1023
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1024
|
+
/** Animated dropdown content for a menubar submenu. */
|
|
1025
|
+
declare function MenubarSubContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
1026
|
+
/** Animated dropdown content panel for a top-level menubar menu. */
|
|
1027
|
+
declare function MenubarContent({ className, align, alignOffset, sideOffset, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1028
|
+
/** An interactive item within a menubar dropdown. */
|
|
1029
|
+
declare function MenubarItem({ className, inset, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.Item> & {
|
|
1030
|
+
inset?: boolean;
|
|
1031
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1032
|
+
/** A menubar item with a checkbox indicator for toggling options. */
|
|
1033
|
+
declare function MenubarCheckboxItem({ className, children, checked, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
1034
|
+
/** A menubar item with a radio indicator for exclusive selection. */
|
|
1035
|
+
declare function MenubarRadioItem({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
1036
|
+
/** Non-interactive label used to title a group of menubar items. */
|
|
1037
|
+
declare function MenubarLabel({ className, inset, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.Label> & {
|
|
1038
|
+
inset?: boolean;
|
|
1039
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1040
|
+
/** Visual divider between groups of menubar items. */
|
|
1041
|
+
declare function MenubarSeparator({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof MenubarPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
1042
|
+
/** Displays a keyboard shortcut hint aligned to the right of a menubar item. */
|
|
1043
|
+
declare function MenubarShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
1044
|
+
|
|
1045
|
+
/** Size variants for the native select element. Use with cn(nativeSelectVariants({...})) for non-select elements. */
|
|
1046
|
+
declare const nativeSelectVariants: (props?: ({
|
|
1047
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1048
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1049
|
+
interface NativeSelectProps extends Omit<React$1.SelectHTMLAttributes<HTMLSelectElement>, "size">, VariantProps<typeof nativeSelectVariants> {
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Styled native HTML select element with a custom chevron indicator.
|
|
1053
|
+
*
|
|
1054
|
+
* @example
|
|
1055
|
+
* <NativeSelect size="default">
|
|
1056
|
+
* <option value="a">Option A</option>
|
|
1057
|
+
* </NativeSelect>
|
|
1058
|
+
*
|
|
1059
|
+
* @prop size - Controls the height of the select: "sm", "default", or "lg".
|
|
1060
|
+
*/
|
|
1061
|
+
declare function NativeSelect({ className, size, children, ...props }: NativeSelectProps): react_jsx_runtime.JSX.Element;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Root navigation menu component built on Radix UI NavigationMenu.
|
|
1065
|
+
*
|
|
1066
|
+
* @example
|
|
1067
|
+
* <NavigationMenu>
|
|
1068
|
+
* <NavigationMenuList>
|
|
1069
|
+
* <NavigationMenuItem>
|
|
1070
|
+
* <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>
|
|
1071
|
+
* <NavigationMenuContent>...</NavigationMenuContent>
|
|
1072
|
+
* </NavigationMenuItem>
|
|
1073
|
+
* </NavigationMenuList>
|
|
1074
|
+
* </NavigationMenu>
|
|
1075
|
+
*/
|
|
1076
|
+
declare function NavigationMenu({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1077
|
+
/** Horizontal list container for navigation menu items. */
|
|
1078
|
+
declare function NavigationMenuList({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof NavigationMenuPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
1079
|
+
/** Individual item within a navigation menu list. */
|
|
1080
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
1081
|
+
/** Trigger button style variants. Use with cn(navigationMenuTriggerStyle()) for non-trigger elements. */
|
|
1082
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
1083
|
+
/** Button that toggles the visibility of a navigation menu content panel. */
|
|
1084
|
+
declare function NavigationMenuTrigger({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1085
|
+
/** Animated content panel revealed when a navigation menu trigger is activated. */
|
|
1086
|
+
declare function NavigationMenuContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1087
|
+
/** Accessible link element within a navigation menu. */
|
|
1088
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
1089
|
+
/** Viewport container that renders the active navigation menu content with animations. */
|
|
1090
|
+
declare function NavigationMenuViewport({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime.JSX.Element;
|
|
1091
|
+
/** Animated arrow indicator that tracks the active navigation menu item. */
|
|
1092
|
+
declare function NavigationMenuIndicator({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* Navigation container for paginated content.
|
|
1096
|
+
*
|
|
1097
|
+
* @example
|
|
1098
|
+
* <Pagination>
|
|
1099
|
+
* <PaginationContent>
|
|
1100
|
+
* <PaginationItem><PaginationPrevious href="#" /></PaginationItem>
|
|
1101
|
+
* <PaginationItem><PaginationLink href="#">1</PaginationLink></PaginationItem>
|
|
1102
|
+
* <PaginationItem><PaginationNext href="#" /></PaginationItem>
|
|
1103
|
+
* </PaginationContent>
|
|
1104
|
+
* </Pagination>
|
|
1105
|
+
*/
|
|
1106
|
+
declare function Pagination({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
1107
|
+
/** Flex row container for pagination items. */
|
|
1108
|
+
declare function PaginationContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<"ul">): react_jsx_runtime.JSX.Element;
|
|
1109
|
+
/** List item wrapper for a single pagination element. */
|
|
1110
|
+
declare function PaginationItem({ className, ref, ...props }: React$1.ComponentPropsWithRef<"li">): react_jsx_runtime.JSX.Element;
|
|
1111
|
+
type PaginationLinkProps = {
|
|
1112
|
+
isActive?: boolean;
|
|
1113
|
+
} & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
|
|
1114
|
+
/**
|
|
1115
|
+
* Styled anchor for an individual page number.
|
|
1116
|
+
*
|
|
1117
|
+
* @prop isActive - Highlights the link as the current page.
|
|
1118
|
+
* @prop size - Button size variant, defaults to "icon".
|
|
1119
|
+
*/
|
|
1120
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
1121
|
+
/** "Previous" pagination link with a left chevron icon. */
|
|
1122
|
+
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
1123
|
+
/** "Next" pagination link with a right chevron icon. */
|
|
1124
|
+
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
1125
|
+
/** Ellipsis indicator representing omitted page numbers. */
|
|
1126
|
+
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
1127
|
+
|
|
1128
|
+
/** Root popover component that manages open/close state. */
|
|
1129
|
+
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
1130
|
+
/** Element that toggles the popover open and closed. */
|
|
1131
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Animated floating content panel displayed when a popover is open.
|
|
1134
|
+
*
|
|
1135
|
+
* @example
|
|
1136
|
+
* <Popover>
|
|
1137
|
+
* <PopoverTrigger>Open</PopoverTrigger>
|
|
1138
|
+
* <PopoverContent>Content here</PopoverContent>
|
|
1139
|
+
* </Popover>
|
|
1140
|
+
*/
|
|
1141
|
+
declare function PopoverContent({ className, align, sideOffset, ref, ...props }: React$1.ComponentPropsWithRef<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Horizontal progress bar indicating completion percentage.
|
|
1145
|
+
*
|
|
1146
|
+
* @example
|
|
1147
|
+
* <Progress value={60} />
|
|
1148
|
+
*
|
|
1149
|
+
* @prop value - Current progress from 0 to 100.
|
|
1150
|
+
*/
|
|
1151
|
+
declare function Progress({ className, value, ref, ...props }: React$1.ComponentPropsWithRef<typeof ProgressPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* A group of radio inputs where only one can be selected at a time.
|
|
1155
|
+
*
|
|
1156
|
+
* @example
|
|
1157
|
+
* <RadioGroup defaultValue="a">
|
|
1158
|
+
* <RadioGroupItem value="a" />
|
|
1159
|
+
* <RadioGroupItem value="b" />
|
|
1160
|
+
* </RadioGroup>
|
|
1161
|
+
*/
|
|
1162
|
+
declare function RadioGroup({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1163
|
+
/** An individual radio option within a RadioGroup. */
|
|
1164
|
+
declare function RadioGroupItem({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* A container that arranges resizable panels in a horizontal or vertical layout.
|
|
1168
|
+
*
|
|
1169
|
+
* @example
|
|
1170
|
+
* <ResizablePanelGroup direction="horizontal">
|
|
1171
|
+
* <ResizablePanel>Left</ResizablePanel>
|
|
1172
|
+
* <ResizableHandle />
|
|
1173
|
+
* <ResizablePanel>Right</ResizablePanel>
|
|
1174
|
+
* </ResizablePanelGroup>
|
|
1175
|
+
*/
|
|
1176
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof Group>) => react_jsx_runtime.JSX.Element;
|
|
1177
|
+
/** A single resizable panel within a ResizablePanelGroup. */
|
|
1178
|
+
declare const ResizablePanel: typeof Panel;
|
|
1179
|
+
/**
|
|
1180
|
+
* A draggable handle between resizable panels for adjusting their sizes.
|
|
1181
|
+
*
|
|
1182
|
+
* @example
|
|
1183
|
+
* <ResizableHandle withHandle />
|
|
1184
|
+
*
|
|
1185
|
+
* @prop withHandle - Whether to show a visible grip icon on the handle.
|
|
1186
|
+
*/
|
|
1187
|
+
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof Separator$1> & {
|
|
1188
|
+
withHandle?: boolean;
|
|
1189
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* A scrollable area with custom styled scrollbars.
|
|
1193
|
+
*
|
|
1194
|
+
* @example
|
|
1195
|
+
* <ScrollArea className="h-72">
|
|
1196
|
+
* <div>Scrollable content</div>
|
|
1197
|
+
* </ScrollArea>
|
|
1198
|
+
*/
|
|
1199
|
+
declare function ScrollArea({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof ScrollAreaPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1200
|
+
/** A styled scrollbar track and thumb, used internally by ScrollArea. */
|
|
1201
|
+
declare function ScrollBar({ className, orientation, ref, ...props }: React$1.ComponentPropsWithRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
1202
|
+
|
|
1203
|
+
/** Props for the SearchField component. */
|
|
1204
|
+
interface SearchFieldProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
1205
|
+
placeholder?: string;
|
|
1206
|
+
shortcut?: string;
|
|
1207
|
+
value: string;
|
|
1208
|
+
onChange: (value: string) => void;
|
|
1209
|
+
onClear?: () => void;
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* A search input with a search icon, clearable value, and optional keyboard shortcut hint.
|
|
1213
|
+
*
|
|
1214
|
+
* @example
|
|
1215
|
+
* <SearchField value={query} onChange={setQuery} shortcut="/" />
|
|
1216
|
+
*
|
|
1217
|
+
* @prop value - The current search string.
|
|
1218
|
+
* @prop onChange - Callback fired when the search value changes.
|
|
1219
|
+
* @prop shortcut - Optional keyboard shortcut label displayed when empty.
|
|
1220
|
+
* @prop onClear - Optional callback fired when the clear button is clicked.
|
|
1221
|
+
*/
|
|
1222
|
+
declare function SearchField({ placeholder, shortcut, value, onChange, onClear, className, ...props }: SearchFieldProps): react_jsx_runtime.JSX.Element;
|
|
1223
|
+
|
|
1224
|
+
/** Root component that manages select state and context. */
|
|
1225
|
+
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
1226
|
+
/** Groups related select items with an optional label. */
|
|
1227
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1228
|
+
/** Renders the currently selected value or placeholder text. */
|
|
1229
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1230
|
+
/**
|
|
1231
|
+
* The button that toggles the select dropdown.
|
|
1232
|
+
*
|
|
1233
|
+
* @example
|
|
1234
|
+
* <Select>
|
|
1235
|
+
* <SelectTrigger><SelectValue placeholder="Pick one" /></SelectTrigger>
|
|
1236
|
+
* <SelectContent>
|
|
1237
|
+
* <SelectItem value="a">Option A</SelectItem>
|
|
1238
|
+
* </SelectContent>
|
|
1239
|
+
* </Select>
|
|
1240
|
+
*/
|
|
1241
|
+
declare function SelectTrigger({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof SelectPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
1242
|
+
/** A button shown at the top of the dropdown to scroll content upward. */
|
|
1243
|
+
declare function SelectScrollUpButton({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
1244
|
+
/** A button shown at the bottom of the dropdown to scroll content downward. */
|
|
1245
|
+
declare function SelectScrollDownButton({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
1246
|
+
/** The dropdown popover that contains selectable items. */
|
|
1247
|
+
declare function SelectContent({ className, children, position, ref, ...props }: React$1.ComponentPropsWithRef<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1248
|
+
/** A non-interactive label for a group of select items. */
|
|
1249
|
+
declare function SelectLabel({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
1250
|
+
/** A selectable option within the select dropdown. */
|
|
1251
|
+
declare function SelectItem({ className, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
1252
|
+
/** A visual divider between groups of select items. */
|
|
1253
|
+
declare function SelectSeparator({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* A visual divider that separates content horizontally or vertically.
|
|
1257
|
+
*
|
|
1258
|
+
* @example
|
|
1259
|
+
* <Separator orientation="horizontal" />
|
|
1260
|
+
*/
|
|
1261
|
+
declare function Separator({ className, orientation, decorative, ref, ...props }: React$1.ComponentPropsWithRef<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
1262
|
+
|
|
1263
|
+
/** Root component that manages sheet open/closed state. */
|
|
1264
|
+
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
1265
|
+
/** A button or element that opens the sheet when clicked. */
|
|
1266
|
+
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1267
|
+
/** A button or element that closes the sheet when clicked. */
|
|
1268
|
+
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1269
|
+
/** Portals sheet content into the document body. */
|
|
1270
|
+
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1271
|
+
/** A semi-transparent backdrop displayed behind the sheet content. */
|
|
1272
|
+
declare function SheetOverlay({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
1273
|
+
/** Sheet position variants for top/bottom/left/right sides. Use with cn(sheetVariants({...})) for non-sheet elements. */
|
|
1274
|
+
declare const sheetVariants: (props?: ({
|
|
1275
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1276
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1277
|
+
interface SheetContentProps extends React$1.ComponentPropsWithRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* The sliding panel content of the sheet, rendered from a specified side.
|
|
1281
|
+
*
|
|
1282
|
+
* @example
|
|
1283
|
+
* <Sheet>
|
|
1284
|
+
* <SheetTrigger>Open</SheetTrigger>
|
|
1285
|
+
* <SheetContent side="right">Content here</SheetContent>
|
|
1286
|
+
* </Sheet>
|
|
1287
|
+
*
|
|
1288
|
+
* @prop side - Which edge the sheet slides in from (top, bottom, left, right).
|
|
1289
|
+
*/
|
|
1290
|
+
declare function SheetContent({ side, className, children, ref, ...props }: SheetContentProps): react_jsx_runtime.JSX.Element;
|
|
1291
|
+
/** A layout container for the sheet's title and description at the top. */
|
|
1292
|
+
declare function SheetHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1293
|
+
/** A layout container for action buttons at the bottom of the sheet. */
|
|
1294
|
+
declare function SheetFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1295
|
+
/** The accessible title heading for the sheet. */
|
|
1296
|
+
declare function SheetTitle({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
1297
|
+
/** An accessible description for the sheet content. */
|
|
1298
|
+
declare function SheetDescription({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
1299
|
+
|
|
1300
|
+
/** Global tooltip configuration provider (delay, skip-delay, etc.). */
|
|
1301
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1302
|
+
/** Root tooltip wrapper that manages open state. */
|
|
1303
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
1304
|
+
/** Element that triggers the tooltip on hover/focus. */
|
|
1305
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1306
|
+
/** Animated popover content displayed when the tooltip is open.
|
|
1307
|
+
*
|
|
1308
|
+
* @example
|
|
1309
|
+
* <Tooltip><TooltipTrigger>Hover me</TooltipTrigger><TooltipContent>Tip text</TooltipContent></Tooltip>
|
|
1310
|
+
*/
|
|
1311
|
+
declare function TooltipContent({ className, sideOffset, ref, ...props }: React$1.ComponentPropsWithRef<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
859
1312
|
|
|
860
1313
|
type SidebarContextProps = {
|
|
861
1314
|
state: "expanded" | "collapsed";
|
|
@@ -866,367 +1319,291 @@ type SidebarContextProps = {
|
|
|
866
1319
|
isMobile: boolean;
|
|
867
1320
|
toggleSidebar: () => void;
|
|
868
1321
|
};
|
|
1322
|
+
/** Returns the sidebar context including open state, toggle, and mobile detection. */
|
|
869
1323
|
declare function useSidebar(): SidebarContextProps;
|
|
870
|
-
|
|
1324
|
+
/**
|
|
1325
|
+
* Provides sidebar context and manages expand/collapse state, mobile sheet, and keyboard shortcut.
|
|
1326
|
+
*
|
|
1327
|
+
* @example
|
|
1328
|
+
* <SidebarProvider>
|
|
1329
|
+
* <Sidebar>...</Sidebar>
|
|
1330
|
+
* <SidebarInset>main content</SidebarInset>
|
|
1331
|
+
* </SidebarProvider>
|
|
1332
|
+
*/
|
|
1333
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & {
|
|
871
1334
|
defaultOpen?: boolean;
|
|
872
1335
|
open?: boolean;
|
|
873
1336
|
onOpenChange?: (open: boolean) => void;
|
|
874
|
-
}
|
|
875
|
-
|
|
1337
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1338
|
+
/**
|
|
1339
|
+
* The main sidebar container that renders as a fixed panel on desktop or a sheet on mobile.
|
|
1340
|
+
*
|
|
1341
|
+
* @prop side - Which edge the sidebar appears on (left or right).
|
|
1342
|
+
* @prop variant - Visual variant (sidebar, floating, inset).
|
|
1343
|
+
* @prop collapsible - Collapse behavior (offcanvas, icon, none).
|
|
1344
|
+
*/
|
|
1345
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & {
|
|
876
1346
|
side?: "left" | "right";
|
|
877
1347
|
variant?: "sidebar" | "floating" | "inset";
|
|
878
1348
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
879
|
-
}
|
|
880
|
-
|
|
1349
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1350
|
+
/** A button that toggles the sidebar open/closed state. */
|
|
1351
|
+
declare function SidebarTrigger({ className, onClick, ref, ...props }: React$1.ComponentPropsWithRef<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
1352
|
+
/** A thin interactive rail at the sidebar edge for toggling via click or drag. */
|
|
1353
|
+
declare function SidebarRail({ className, ref, ...props }: React$1.ComponentPropsWithRef<"button">): react_jsx_runtime.JSX.Element;
|
|
1354
|
+
/** The main content area adjacent to the sidebar. */
|
|
1355
|
+
declare function SidebarInset({ className, ref, ...props }: React$1.ComponentPropsWithRef<"main">): react_jsx_runtime.JSX.Element;
|
|
1356
|
+
/** A styled text input for use within the sidebar. */
|
|
1357
|
+
declare function SidebarInput({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
1358
|
+
/** A container for content at the top of the sidebar. */
|
|
1359
|
+
declare function SidebarHeader({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
1360
|
+
/** A container for content at the bottom of the sidebar. */
|
|
1361
|
+
declare function SidebarFooter({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
1362
|
+
/** A horizontal divider styled for the sidebar context. */
|
|
1363
|
+
declare function SidebarSeparator({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1364
|
+
/** The scrollable body area of the sidebar that holds groups and menus. */
|
|
1365
|
+
declare function SidebarContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
1366
|
+
/** A logical grouping of sidebar items, typically with a label. */
|
|
1367
|
+
declare function SidebarGroup({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
1368
|
+
/** A small label heading for a SidebarGroup. */
|
|
1369
|
+
declare function SidebarGroupLabel({ className, asChild, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & {
|
|
881
1370
|
asChild?: boolean;
|
|
882
|
-
}
|
|
883
|
-
|
|
1371
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1372
|
+
/** An action button positioned at the top-right of a SidebarGroup. */
|
|
1373
|
+
declare function SidebarGroupAction({ className, asChild, ref, ...props }: React$1.ComponentPropsWithRef<"button"> & {
|
|
884
1374
|
asChild?: boolean;
|
|
885
|
-
}
|
|
1375
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1376
|
+
/** A wrapper for the content within a SidebarGroup. */
|
|
1377
|
+
declare function SidebarGroupContent({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
1378
|
+
/** A list container for sidebar menu items. */
|
|
1379
|
+
declare function SidebarMenu({ className, ref, ...props }: React$1.ComponentPropsWithRef<"ul">): react_jsx_runtime.JSX.Element;
|
|
1380
|
+
/** A list item wrapper for a single sidebar menu entry. */
|
|
1381
|
+
declare function SidebarMenuItem({ className, ref, ...props }: React$1.ComponentPropsWithRef<"li">): react_jsx_runtime.JSX.Element;
|
|
1382
|
+
/** Sidebar menu button style variants. Use with cn(sidebarMenuButtonVariants({...})) for non-button elements. */
|
|
886
1383
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1384
|
+
variant?: "default" | "outline" | null | undefined;
|
|
887
1385
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
888
1386
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
889
|
-
|
|
1387
|
+
/**
|
|
1388
|
+
* An interactive button within a sidebar menu item, with optional tooltip when collapsed.
|
|
1389
|
+
*
|
|
1390
|
+
* @prop isActive - Whether the item is currently active/selected.
|
|
1391
|
+
* @prop tooltip - Tooltip content shown when the sidebar is collapsed.
|
|
1392
|
+
*/
|
|
1393
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ref, ...props }: React$1.ComponentPropsWithRef<"button"> & {
|
|
890
1394
|
asChild?: boolean;
|
|
891
1395
|
isActive?: boolean;
|
|
892
|
-
tooltip?: string | React$1.
|
|
893
|
-
}
|
|
894
|
-
|
|
1396
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
1397
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
1398
|
+
/** A secondary action button (e.g. delete, edit) within a sidebar menu item. */
|
|
1399
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ref, ...props }: React$1.ComponentPropsWithRef<"button"> & {
|
|
895
1400
|
asChild?: boolean;
|
|
896
1401
|
showOnHover?: boolean;
|
|
897
|
-
}
|
|
898
|
-
|
|
1402
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1403
|
+
/** A badge displayed alongside a sidebar menu button, such as a count indicator. */
|
|
1404
|
+
declare function SidebarMenuBadge({ className, ref, ...props }: React$1.ComponentPropsWithRef<"div">): react_jsx_runtime.JSX.Element;
|
|
1405
|
+
/** A loading placeholder skeleton for a sidebar menu item. */
|
|
1406
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ref, ...props }: React$1.ComponentPropsWithRef<"div"> & {
|
|
899
1407
|
showIcon?: boolean;
|
|
900
|
-
}
|
|
901
|
-
|
|
1408
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1409
|
+
/** A nested sub-menu list within a sidebar menu item. */
|
|
1410
|
+
declare function SidebarMenuSub({ className, ref, ...props }: React$1.ComponentPropsWithRef<"ul">): react_jsx_runtime.JSX.Element;
|
|
1411
|
+
/** A list item wrapper for a single entry within a SidebarMenuSub. */
|
|
1412
|
+
declare function SidebarMenuSubItem({ ref, ...props }: React$1.ComponentPropsWithRef<"li">): react_jsx_runtime.JSX.Element;
|
|
1413
|
+
/** An interactive button within a sidebar sub-menu item. */
|
|
1414
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ref, ...props }: React$1.ComponentPropsWithRef<"a"> & {
|
|
902
1415
|
asChild?: boolean;
|
|
903
1416
|
size?: "sm" | "md";
|
|
904
1417
|
isActive?: boolean;
|
|
905
|
-
}
|
|
906
|
-
declare const SidebarComponent: {
|
|
907
|
-
({ side, variant, collapsible, className, children, ...props }: ISidebarRootProps): react_jsx_runtime.JSX.Element;
|
|
908
|
-
displayName: string;
|
|
909
|
-
} & {
|
|
910
|
-
Provider: {
|
|
911
|
-
({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: ISidebarProviderProps): react_jsx_runtime.JSX.Element;
|
|
912
|
-
displayName: string;
|
|
913
|
-
};
|
|
914
|
-
Trigger: React$1.ForwardRefExoticComponent<Omit<IButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
915
|
-
Rail: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
916
|
-
Inset: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & React$1.RefAttributes<HTMLElement>>;
|
|
917
|
-
Input: React$1.ForwardRefExoticComponent<Omit<IInputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
918
|
-
Header: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
919
|
-
Footer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
920
|
-
Content: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
921
|
-
Group: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
922
|
-
GroupLabel: React$1.ForwardRefExoticComponent<ISidebarGroupLabelProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
923
|
-
GroupAction: React$1.ForwardRefExoticComponent<ISidebarGroupActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
924
|
-
GroupContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
925
|
-
Menu: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLUListElement> & React$1.RefAttributes<HTMLUListElement>>;
|
|
926
|
-
MenuItem: React$1.ForwardRefExoticComponent<React$1.LiHTMLAttributes<HTMLLIElement> & React$1.RefAttributes<HTMLLIElement>>;
|
|
927
|
-
MenuButton: React$1.ForwardRefExoticComponent<ISidebarMenuButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
928
|
-
MenuAction: React$1.ForwardRefExoticComponent<ISidebarMenuActionProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
929
|
-
MenuBadge: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
930
|
-
MenuSkeleton: React$1.ForwardRefExoticComponent<ISidebarMenuSkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
931
|
-
MenuSub: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLUListElement> & React$1.RefAttributes<HTMLUListElement>>;
|
|
932
|
-
MenuSubItem: React$1.ForwardRefExoticComponent<React$1.LiHTMLAttributes<HTMLLIElement> & React$1.RefAttributes<HTMLLIElement>>;
|
|
933
|
-
MenuSubButton: React$1.ForwardRefExoticComponent<ISidebarMenuSubButtonProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
interface CardGridProps {
|
|
937
|
-
children?: React__default.ReactNode;
|
|
938
|
-
columns?: 2 | 3 | 4;
|
|
939
|
-
className?: string;
|
|
940
|
-
}
|
|
941
|
-
declare function CardGrid({ children, columns, className }: CardGridProps): react_jsx_runtime.JSX.Element;
|
|
942
|
-
|
|
943
|
-
interface NavLink {
|
|
944
|
-
label: string;
|
|
945
|
-
href: string;
|
|
946
|
-
}
|
|
947
|
-
interface NavMenuItem {
|
|
948
|
-
label: string;
|
|
949
|
-
href?: string;
|
|
950
|
-
onClick?: () => void;
|
|
951
|
-
}
|
|
952
|
-
interface NavBrand {
|
|
953
|
-
name: string;
|
|
954
|
-
logo?: string;
|
|
955
|
-
href?: string;
|
|
956
|
-
}
|
|
957
|
-
type NavAuth = {
|
|
958
|
-
state: "signed-out";
|
|
959
|
-
href: string;
|
|
960
|
-
label?: string;
|
|
961
|
-
} | {
|
|
962
|
-
state: "signed-in";
|
|
963
|
-
user: {
|
|
964
|
-
name: string;
|
|
965
|
-
avatar?: string;
|
|
966
|
-
};
|
|
967
|
-
menuItems: NavMenuItem[];
|
|
968
|
-
};
|
|
969
|
-
interface NavBarProps {
|
|
970
|
-
brand: NavBrand;
|
|
971
|
-
links?: NavLink[];
|
|
972
|
-
auth: NavAuth;
|
|
973
|
-
/** Element used for navigation links. Defaults to `"a"`. Pass `Link` from `next/link` (or your router's equivalent) for client-side transitions. */
|
|
974
|
-
linkComponent?: React__default.ElementType;
|
|
975
|
-
className?: string;
|
|
976
|
-
}
|
|
977
|
-
declare function NavBar({ brand, links, auth, linkComponent: LinkComp, className }: NavBarProps): react_jsx_runtime.JSX.Element;
|
|
1418
|
+
}): react_jsx_runtime.JSX.Element;
|
|
978
1419
|
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}
|
|
986
|
-
declare function SimplePage({ title, subtitle, actions, children, className, }: SimplePageProps): react_jsx_runtime.JSX.Element;
|
|
1420
|
+
/**
|
|
1421
|
+
* A pulsing placeholder element used to indicate loading content.
|
|
1422
|
+
*
|
|
1423
|
+
* @example
|
|
1424
|
+
* <Skeleton className="h-4 w-48" />
|
|
1425
|
+
*/
|
|
1426
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
987
1427
|
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
/** Offset from top in pixels (e.g. to stack below a sticky header) */
|
|
996
|
-
offsetTop?: number;
|
|
997
|
-
}
|
|
998
|
-
declare function SectionNav({ items, className, offsetTop }: ISectionNavProps): react_jsx_runtime.JSX.Element;
|
|
1428
|
+
/**
|
|
1429
|
+
* A range input that allows selecting a numeric value by dragging a thumb along a track.
|
|
1430
|
+
*
|
|
1431
|
+
* @example
|
|
1432
|
+
* <Slider defaultValue={[50]} max={100} step={1} />
|
|
1433
|
+
*/
|
|
1434
|
+
declare function Slider({ className, defaultValue, value, ref, ...props }: React$1.ComponentPropsWithRef<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
999
1435
|
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
declare
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
Left: typeof TwoColumnLeft;
|
|
1020
|
-
Right: typeof TwoColumnRight;
|
|
1436
|
+
/** Props for the Toaster component. */
|
|
1437
|
+
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
1438
|
+
/**
|
|
1439
|
+
* A theme-aware toast notification container powered by Sonner.
|
|
1440
|
+
*
|
|
1441
|
+
* @example
|
|
1442
|
+
* <Toaster />
|
|
1443
|
+
*/
|
|
1444
|
+
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
1445
|
+
|
|
1446
|
+
/** Map of size tokens to pixel values for the Spacer component. */
|
|
1447
|
+
declare const sizeMap: {
|
|
1448
|
+
readonly none: "0px";
|
|
1449
|
+
readonly xs: "4px";
|
|
1450
|
+
readonly sm: "8px";
|
|
1451
|
+
readonly md: "16px";
|
|
1452
|
+
readonly lg: "24px";
|
|
1453
|
+
readonly xl: "32px";
|
|
1454
|
+
readonly "2xl": "48px";
|
|
1021
1455
|
};
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
theme: Theme;
|
|
1027
|
-
resolvedTheme: "light" | "dark";
|
|
1028
|
-
setTheme: (theme: Theme) => void;
|
|
1029
|
-
colorTheme: ColorTheme;
|
|
1030
|
-
setColorTheme: (colorTheme: ColorTheme) => void;
|
|
1031
|
-
colorThemes: readonly ColorTheme[];
|
|
1032
|
-
}
|
|
1033
|
-
interface ThemeProviderProps {
|
|
1034
|
-
children: React.ReactNode;
|
|
1035
|
-
defaultTheme?: Theme;
|
|
1036
|
-
defaultColorTheme?: ColorTheme;
|
|
1037
|
-
storageKey?: string;
|
|
1038
|
-
colorStorageKey?: string;
|
|
1039
|
-
}
|
|
1040
|
-
declare function ThemeProvider({ children, defaultTheme, defaultColorTheme, storageKey, colorStorageKey, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
1041
|
-
declare function useTheme(): ThemeProviderState;
|
|
1042
|
-
|
|
1043
|
-
interface ThemeToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, VariantProps<typeof iconButtonVariants> {
|
|
1044
|
-
}
|
|
1045
|
-
declare function ThemeToggle({ variant, size, className, ...props }: ThemeToggleProps): react_jsx_runtime.JSX.Element;
|
|
1046
|
-
|
|
1047
|
-
interface ColorThemeToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, VariantProps<typeof iconButtonVariants> {
|
|
1048
|
-
}
|
|
1049
|
-
declare function ColorThemeToggle({ variant, size, className, ...props }: ColorThemeToggleProps): react_jsx_runtime.JSX.Element;
|
|
1050
|
-
|
|
1051
|
-
interface ThemeConfig {
|
|
1052
|
-
/** Primary brand color and its foreground */
|
|
1053
|
-
primary?: string;
|
|
1054
|
-
primaryForeground?: string;
|
|
1055
|
-
/** Secondary color */
|
|
1056
|
-
secondary?: string;
|
|
1057
|
-
secondaryForeground?: string;
|
|
1058
|
-
/** Background and foreground */
|
|
1059
|
-
background?: string;
|
|
1060
|
-
foreground?: string;
|
|
1061
|
-
/** Card surface */
|
|
1062
|
-
card?: string;
|
|
1063
|
-
cardForeground?: string;
|
|
1064
|
-
/** Muted/subtle surface */
|
|
1065
|
-
muted?: string;
|
|
1066
|
-
mutedForeground?: string;
|
|
1067
|
-
/** Accent color */
|
|
1068
|
-
accent?: string;
|
|
1069
|
-
accentForeground?: string;
|
|
1070
|
-
/** Destructive/error */
|
|
1071
|
-
destructive?: string;
|
|
1072
|
-
destructiveForeground?: string;
|
|
1073
|
-
/** Success */
|
|
1074
|
-
success?: string;
|
|
1075
|
-
successForeground?: string;
|
|
1076
|
-
/** Warning */
|
|
1077
|
-
warning?: string;
|
|
1078
|
-
warningForeground?: string;
|
|
1079
|
-
/** Border color */
|
|
1080
|
-
border?: string;
|
|
1081
|
-
/** Input border */
|
|
1082
|
-
input?: string;
|
|
1083
|
-
/** Focus ring */
|
|
1084
|
-
ring?: string;
|
|
1085
|
-
/** Default border radius override */
|
|
1086
|
-
radius?: string;
|
|
1456
|
+
type Size = keyof typeof sizeMap;
|
|
1457
|
+
interface SpacerProps extends React$1.ComponentPropsWithRef<"div"> {
|
|
1458
|
+
size?: Size;
|
|
1459
|
+
axis?: "horizontal" | "vertical";
|
|
1087
1460
|
}
|
|
1088
1461
|
/**
|
|
1089
|
-
*
|
|
1090
|
-
* Apply the returned CSS to your stylesheet, then add the class name to a container element.
|
|
1462
|
+
* A flexible spacing element that either fills available space or adds a fixed gap.
|
|
1091
1463
|
*
|
|
1092
1464
|
* @example
|
|
1093
|
-
*
|
|
1094
|
-
*
|
|
1465
|
+
* <Spacer size="md" axis="vertical" />
|
|
1466
|
+
*
|
|
1467
|
+
* @prop size - The spacing size token; omit to fill available flex space.
|
|
1468
|
+
* @prop axis - Whether spacing is applied horizontally or vertically.
|
|
1095
1469
|
*/
|
|
1096
|
-
declare function
|
|
1470
|
+
declare function Spacer({ size, axis, className, style, ...props }: SpacerProps): react_jsx_runtime.JSX.Element;
|
|
1097
1471
|
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
subtitle?: React$1.ReactNode;
|
|
1102
|
-
actions?: React$1.ReactNode;
|
|
1103
|
-
children?: React$1.ReactNode;
|
|
1104
|
-
className?: string;
|
|
1105
|
-
align?: "left" | "center";
|
|
1106
|
-
}
|
|
1107
|
-
declare function Hero({ badge, title, subtitle, actions, children, className, align, }: HeroProps): react_jsx_runtime.JSX.Element;
|
|
1108
|
-
|
|
1109
|
-
declare const sectionVariants: (props?: ({
|
|
1110
|
-
background?: "default" | "muted" | "primary" | "card" | null | undefined;
|
|
1472
|
+
/** Spinner size variants. Use with cn(spinnerVariants({...})) for non-spinner elements. */
|
|
1473
|
+
declare const spinnerVariants: (props?: ({
|
|
1474
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1111
1475
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
interface
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
features: PricingFeature[];
|
|
1144
|
-
cta: React$1.ReactNode;
|
|
1145
|
-
highlighted?: boolean;
|
|
1146
|
-
badge?: React$1.ReactNode;
|
|
1147
|
-
}
|
|
1148
|
-
interface PricingTableProps {
|
|
1149
|
-
tiers: PricingTier[];
|
|
1150
|
-
className?: string;
|
|
1151
|
-
}
|
|
1152
|
-
declare function PricingTable({ tiers, className }: PricingTableProps): react_jsx_runtime.JSX.Element;
|
|
1153
|
-
|
|
1154
|
-
interface Feature {
|
|
1155
|
-
icon?: React$1.ReactNode;
|
|
1156
|
-
title: string;
|
|
1157
|
-
description: string;
|
|
1158
|
-
}
|
|
1159
|
-
interface FeatureSectionProps {
|
|
1160
|
-
features: Feature[];
|
|
1161
|
-
columns?: 2 | 3 | 4;
|
|
1162
|
-
className?: string;
|
|
1163
|
-
}
|
|
1164
|
-
declare function FeatureSection({ features, columns, className, }: FeatureSectionProps): react_jsx_runtime.JSX.Element;
|
|
1165
|
-
|
|
1166
|
-
interface TestimonialItem {
|
|
1167
|
-
quote: string;
|
|
1168
|
-
name: string;
|
|
1169
|
-
role?: string;
|
|
1170
|
-
company?: string;
|
|
1171
|
-
avatar?: React$1.ReactNode;
|
|
1172
|
-
}
|
|
1173
|
-
interface TestimonialProps {
|
|
1174
|
-
testimonials: TestimonialItem[];
|
|
1175
|
-
columns?: 1 | 2 | 3;
|
|
1176
|
-
className?: string;
|
|
1177
|
-
}
|
|
1178
|
-
declare function Testimonial({ testimonials, columns, className, }: TestimonialProps): react_jsx_runtime.JSX.Element;
|
|
1179
|
-
|
|
1180
|
-
interface LogoCloudProps {
|
|
1181
|
-
children: React$1.ReactNode;
|
|
1182
|
-
className?: string;
|
|
1183
|
-
}
|
|
1184
|
-
declare function LogoCloud({ children, className }: LogoCloudProps): react_jsx_runtime.JSX.Element;
|
|
1185
|
-
|
|
1186
|
-
interface CTABannerProps {
|
|
1187
|
-
title: React$1.ReactNode;
|
|
1188
|
-
subtitle?: React$1.ReactNode;
|
|
1189
|
-
actions?: React$1.ReactNode;
|
|
1190
|
-
className?: string;
|
|
1191
|
-
}
|
|
1192
|
-
declare function CTABanner({ title, subtitle, actions, className, }: CTABannerProps): react_jsx_runtime.JSX.Element;
|
|
1193
|
-
|
|
1194
|
-
interface FAQItem {
|
|
1195
|
-
question: string;
|
|
1196
|
-
answer: React$1.ReactNode;
|
|
1197
|
-
}
|
|
1198
|
-
interface FAQProps {
|
|
1199
|
-
items: FAQItem[];
|
|
1200
|
-
className?: string;
|
|
1201
|
-
}
|
|
1202
|
-
declare function FAQ({ items, className }: FAQProps): react_jsx_runtime.JSX.Element;
|
|
1203
|
-
|
|
1204
|
-
interface Stat {
|
|
1205
|
-
value: React$1.ReactNode;
|
|
1206
|
-
label: string;
|
|
1207
|
-
}
|
|
1208
|
-
interface StatsBarProps {
|
|
1209
|
-
stats: Stat[];
|
|
1210
|
-
className?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* An animated loading spinner indicator.
|
|
1478
|
+
*
|
|
1479
|
+
* @example
|
|
1480
|
+
* <Spinner size="lg" />
|
|
1481
|
+
*
|
|
1482
|
+
* @prop size - The spinner diameter (sm, default, lg).
|
|
1483
|
+
*/
|
|
1484
|
+
declare function Spinner({ className, size, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants>): react_jsx_runtime.JSX.Element;
|
|
1485
|
+
|
|
1486
|
+
declare const gapMap: {
|
|
1487
|
+
readonly none: "gap-0";
|
|
1488
|
+
readonly xs: "gap-1";
|
|
1489
|
+
readonly sm: "gap-2";
|
|
1490
|
+
readonly md: "gap-4";
|
|
1491
|
+
readonly lg: "gap-6";
|
|
1492
|
+
readonly xl: "gap-8";
|
|
1493
|
+
readonly "2xl": "gap-12";
|
|
1494
|
+
};
|
|
1495
|
+
declare const alignMap: {
|
|
1496
|
+
readonly start: "items-start";
|
|
1497
|
+
readonly center: "items-center";
|
|
1498
|
+
readonly end: "items-end";
|
|
1499
|
+
readonly stretch: "items-stretch";
|
|
1500
|
+
};
|
|
1501
|
+
type Gap = keyof typeof gapMap;
|
|
1502
|
+
type Align = keyof typeof alignMap;
|
|
1503
|
+
interface StackProps extends React$1.ComponentPropsWithRef<"div"> {
|
|
1504
|
+
gap?: Gap;
|
|
1505
|
+
align?: Align;
|
|
1506
|
+
asChild?: boolean;
|
|
1211
1507
|
}
|
|
1212
|
-
|
|
1508
|
+
/**
|
|
1509
|
+
* A vertical flex container with configurable gap and alignment.
|
|
1510
|
+
*
|
|
1511
|
+
* @example
|
|
1512
|
+
* <Stack gap="lg" align="center">
|
|
1513
|
+
* <div>Item 1</div>
|
|
1514
|
+
* <div>Item 2</div>
|
|
1515
|
+
* </Stack>
|
|
1516
|
+
*
|
|
1517
|
+
* @prop gap - The spacing between children (none, xs, sm, md, lg, xl, 2xl).
|
|
1518
|
+
* @prop align - Cross-axis alignment of children.
|
|
1519
|
+
* @prop asChild - Merge props onto the child element instead of rendering a div.
|
|
1520
|
+
*/
|
|
1521
|
+
declare function Stack({ gap, align, asChild, className, ref, ...props }: StackProps): react_jsx_runtime.JSX.Element;
|
|
1213
1522
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1523
|
+
/**
|
|
1524
|
+
* A toggle switch for boolean on/off input.
|
|
1525
|
+
*
|
|
1526
|
+
* @example
|
|
1527
|
+
* <Switch checked={enabled} onCheckedChange={setEnabled} />
|
|
1528
|
+
*/
|
|
1529
|
+
declare function Switch({ className, ref, ...props }: React$1.ComponentPropsWithRef<typeof SwitchPrimitives.Root>): react_jsx_runtime.JSX.Element;
|
|
1220
1530
|
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
declare function
|
|
1531
|
+
/** Scrollable data table wrapper that renders a full-width HTML table.
|
|
1532
|
+
*
|
|
1533
|
+
* @example
|
|
1534
|
+
* <Table><TableHeader>...</TableHeader><TableBody>...</TableBody></Table>
|
|
1535
|
+
*/
|
|
1536
|
+
declare function Table({ className, ref, ...props }: React$1.ComponentPropsWithRef<"table">): react_jsx_runtime.JSX.Element;
|
|
1537
|
+
/** Table head section that applies a bottom border to its rows. */
|
|
1538
|
+
declare function TableHeader({ className, ref, ...props }: React$1.ComponentPropsWithRef<"thead">): react_jsx_runtime.JSX.Element;
|
|
1539
|
+
/** Table body section that removes the border from the last row. */
|
|
1540
|
+
declare function TableBody({ className, ref, ...props }: React$1.ComponentPropsWithRef<"tbody">): react_jsx_runtime.JSX.Element;
|
|
1541
|
+
/** Table footer with a muted background and top border. */
|
|
1542
|
+
declare function TableFooter({ className, ref, ...props }: React$1.ComponentPropsWithRef<"tfoot">): react_jsx_runtime.JSX.Element;
|
|
1543
|
+
/** Table row with hover highlight and selected state styling. */
|
|
1544
|
+
declare function TableRow({ className, ref, ...props }: React$1.ComponentPropsWithRef<"tr">): react_jsx_runtime.JSX.Element;
|
|
1545
|
+
/** Table header cell with uppercase monospace label styling. */
|
|
1546
|
+
declare function TableHead({ className, ref, ...props }: React$1.ComponentPropsWithRef<"th">): react_jsx_runtime.JSX.Element;
|
|
1547
|
+
/** Standard table data cell with consistent padding. */
|
|
1548
|
+
declare function TableCell({ className, ref, ...props }: React$1.ComponentPropsWithRef<"td">): react_jsx_runtime.JSX.Element;
|
|
1549
|
+
/** Table caption rendered below the table in muted text. */
|
|
1550
|
+
declare function TableCaption({ className, ref, ...props }: React$1.ComponentPropsWithRef<"caption">): react_jsx_runtime.JSX.Element;
|
|
1551
|
+
|
|
1552
|
+
/** Multi-line text input with consistent border, focus ring, and disabled styles.
|
|
1553
|
+
*
|
|
1554
|
+
* @example
|
|
1555
|
+
* <Textarea placeholder="Enter description..." rows={4} />
|
|
1556
|
+
*/
|
|
1557
|
+
declare function Textarea({ className, ref, ...props }: React$1.ComponentPropsWithRef<"textarea">): react_jsx_runtime.JSX.Element;
|
|
1229
1558
|
|
|
1230
|
-
|
|
1559
|
+
/** Toggle button style variants (default, outline) and sizes. Use with cn(toggleVariants({...})) for non-Toggle elements. */
|
|
1560
|
+
declare const toggleVariants: (props?: ({
|
|
1561
|
+
variant?: "default" | "outline" | null | undefined;
|
|
1562
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1563
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1564
|
+
/** A two-state toggle button built on Radix Toggle.
|
|
1565
|
+
*
|
|
1566
|
+
* @example
|
|
1567
|
+
* <Toggle variant="outline" size="sm"><BoldIcon /></Toggle>
|
|
1568
|
+
*
|
|
1569
|
+
* @prop variant - Visual style: "default" or "outline".
|
|
1570
|
+
* @prop size - Button size: "sm", "default", or "lg".
|
|
1571
|
+
*/
|
|
1572
|
+
declare function Toggle({ className, variant, size, ref, ...props }: React$1.ComponentPropsWithRef<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
1231
1573
|
|
|
1232
|
-
|
|
1574
|
+
/** A group of toggle buttons that share variant and size context.
|
|
1575
|
+
*
|
|
1576
|
+
* @example
|
|
1577
|
+
* <ToggleGroup type="single" variant="outline"><ToggleGroupItem value="a">A</ToggleGroupItem></ToggleGroup>
|
|
1578
|
+
*
|
|
1579
|
+
* @prop variant - Visual style applied to all child items.
|
|
1580
|
+
* @prop size - Size applied to all child items.
|
|
1581
|
+
*/
|
|
1582
|
+
declare function ToggleGroup({ className, variant, size, children, ref, ...props }: React$1.ComponentPropsWithRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
1583
|
+
/** Individual toggle item within a ToggleGroup. */
|
|
1584
|
+
declare function ToggleGroupItem({ className, children, variant, size, ref, ...props }: React$1.ComponentPropsWithRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
1585
|
+
|
|
1586
|
+
/** Semantic h1 heading with bold, tight tracking at 4xl size. */
|
|
1587
|
+
declare function H1({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
1588
|
+
/** Semantic h2 heading with semibold weight at 3xl size. */
|
|
1589
|
+
declare function H2({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
1590
|
+
/** Semantic h3 heading with semibold weight at 2xl size. */
|
|
1591
|
+
declare function H3({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
1592
|
+
/** Semantic h4 heading with semibold weight at xl size. */
|
|
1593
|
+
declare function H4({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
1594
|
+
/** Standard paragraph element with base size and relaxed leading. */
|
|
1595
|
+
declare function P({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
1596
|
+
/** Lead paragraph rendered in xl muted text for introductory copy. */
|
|
1597
|
+
declare function Lead({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
1598
|
+
/** Large semibold text block rendered as a div. */
|
|
1599
|
+
declare function Large({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1600
|
+
/** Small text element with medium weight and tight leading. */
|
|
1601
|
+
declare function Small({ className, ...props }: React$1.HTMLAttributes<HTMLElement>): react_jsx_runtime.JSX.Element;
|
|
1602
|
+
/** Muted paragraph in small size for secondary or helper text. */
|
|
1603
|
+
declare function Muted({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
1604
|
+
/** Inline code snippet with monospace font and sunken background. */
|
|
1605
|
+
declare function Code({ className, ...props }: React$1.HTMLAttributes<HTMLElement>): react_jsx_runtime.JSX.Element;
|
|
1606
|
+
/** Inline monospace span without background styling. */
|
|
1607
|
+
declare function Mono({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
1608
|
+
|
|
1609
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Center, type CenterProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Cluster, type ClusterProps, Code, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, type ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, DataTablePagination, DataTableToolbar, DataTableViewOptions, DatePicker, DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type Direction, DirectionProvider, Divider, type DividerProps, 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, Empty, EmptyAction, EmptyDescription, EmptyIcon, EmptyTitle, Field, FieldError, FieldHint, FieldLabel, Fieldset, Form, FormActions, FormActionsPrimary, FormActionsSecondary, FormSection, FormSectionContent, FormSectionDescription, FormSectionHeader, FormSectionTitle, Grid, type GridProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupPrefix, InputGroupSuffix, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemIcon, ItemLabel, Kbd, Label, Large, Lead, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Mono, Muted, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchField, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Small, Spacer, type SpacerProps, Spinner, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, createSelectColumn, nativeSelectVariants, navigationMenuTriggerStyle, spinnerVariants, toggleVariants, useDirection, useFieldContext, useSidebar };
|