adminium 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -30
- package/dist/index.cjs +4360 -880
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +607 -29
- package/dist/index.d.ts +607 -29
- package/dist/index.js +4212 -884
- package/dist/index.js.map +1 -1
- package/dist/styles/adminium.css +5219 -0
- package/dist/styles/config.reui.css +108 -0
- package/dist/styles/global.css +17 -2814
- package/package.json +28 -4
- package/dist/styles/global.d.cts +0 -2
- package/dist/styles/global.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,378 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
+
import { ReactNode, CSSProperties, HTMLAttributes, RefObject } from 'react';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
|
-
import
|
|
6
|
+
import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Popover as Popover$1, Avatar as Avatar$1, Tabs as Tabs$1, Label as Label$1, Switch as Switch$1, ScrollArea as ScrollArea$1, AspectRatio as AspectRatio$1, Select as Select$1 } from 'radix-ui';
|
|
6
7
|
import { LucideIcon } from 'lucide-react';
|
|
8
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
9
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
10
|
+
import { RowData, Table, SortingState, ColumnFiltersState, Row, Cell, Column, HeaderGroup, Header } from '@tanstack/react-table';
|
|
7
11
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
12
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
13
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
8
14
|
import { ClassValue } from 'clsx';
|
|
9
15
|
|
|
16
|
+
declare const alertVariants: (props?: ({
|
|
17
|
+
variant?: "secondary" | "primary" | "mono" | "destructive" | "success" | "info" | "warning" | null | undefined;
|
|
18
|
+
icon?: "primary" | "destructive" | "success" | "info" | "warning" | null | undefined;
|
|
19
|
+
appearance?: "stroke" | "outline" | "solid" | "light" | null | undefined;
|
|
20
|
+
size?: "md" | "sm" | "lg" | null | undefined;
|
|
21
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
|
+
interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
23
|
+
close?: boolean;
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
}
|
|
26
|
+
interface AlertIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
|
|
27
|
+
}
|
|
28
|
+
declare function Alert({ className, variant, size, icon, appearance, close, onClose, children, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function AlertTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function AlertIcon({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare function AlertToolbar({ children, className, ...props }: AlertIconProps): react_jsx_runtime.JSX.Element;
|
|
32
|
+
declare function AlertDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
33
|
+
declare function AlertContent({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
declare const buttonVariantConfig: {
|
|
36
|
+
readonly variant: {
|
|
37
|
+
readonly primary: "bg-primary text-primary-foreground hover:bg-primary/90 data-[state=open]:bg-primary/90";
|
|
38
|
+
readonly mono: "bg-zinc-950 text-white dark:bg-zinc-300 dark:text-black hover:bg-zinc-950/90 dark:hover:bg-zinc-300/90 data-[state=open]:bg-zinc-950/90 dark:data-[state=open]:bg-zinc-300/90";
|
|
39
|
+
readonly destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90 data-[state=open]:bg-destructive/90";
|
|
40
|
+
readonly success: "bg-emerald-500 text-white hover:bg-emerald-600 data-[state=open]:bg-emerald-600";
|
|
41
|
+
readonly secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/90 data-[state=open]:bg-secondary/90";
|
|
42
|
+
readonly outline: "bg-background text-accent-foreground border border-input hover:bg-accent data-[state=open]:bg-accent";
|
|
43
|
+
readonly dashed: "text-accent-foreground border border-input border-dashed bg-background hover:bg-accent hover:text-accent-foreground data-[state=open]:text-accent-foreground";
|
|
44
|
+
readonly ghost: "text-accent-foreground hover:bg-accent hover:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground";
|
|
45
|
+
readonly dim: "text-muted-foreground hover:text-foreground data-[state=open]:text-foreground";
|
|
46
|
+
readonly foreground: "";
|
|
47
|
+
readonly inverse: "";
|
|
48
|
+
};
|
|
49
|
+
readonly appearance: {
|
|
50
|
+
readonly default: "";
|
|
51
|
+
readonly ghost: "";
|
|
52
|
+
};
|
|
53
|
+
readonly underline: {
|
|
54
|
+
readonly solid: "";
|
|
55
|
+
readonly dashed: "";
|
|
56
|
+
};
|
|
57
|
+
readonly underlined: {
|
|
58
|
+
readonly solid: "";
|
|
59
|
+
readonly dashed: "";
|
|
60
|
+
};
|
|
61
|
+
readonly size: {
|
|
62
|
+
readonly lg: "h-10 rounded-md px-4 text-sm gap-1.5 [&_svg:not([class*=size-])]:size-4";
|
|
63
|
+
readonly md: "h-8.5 rounded-md px-3 gap-1.5 text-[0.8125rem] leading-[var(--text-sm--line-height)] [&_svg:not([class*=size-])]:size-4";
|
|
64
|
+
readonly sm: "h-7 rounded-md px-2.5 gap-1.25 text-xs [&_svg:not([class*=size-])]:size-3.5";
|
|
65
|
+
readonly icon: "size-8.5 rounded-md [&_svg:not([class*=size-])]:size-4 shrink-0";
|
|
66
|
+
};
|
|
67
|
+
readonly autoHeight: {
|
|
68
|
+
readonly true: "";
|
|
69
|
+
readonly false: "";
|
|
70
|
+
};
|
|
71
|
+
readonly shape: {
|
|
72
|
+
readonly default: "";
|
|
73
|
+
readonly circle: "rounded-full";
|
|
74
|
+
};
|
|
75
|
+
readonly mode: {
|
|
76
|
+
readonly default: "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
|
|
77
|
+
readonly icon: "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 shrink-0";
|
|
78
|
+
readonly link: "text-primary h-auto p-0 bg-transparent rounded-none hover:bg-transparent data-[state=open]:bg-transparent";
|
|
79
|
+
readonly input: "\n justify-start font-normal hover:bg-background [&_svg]:transition-colors [&_svg]:hover:text-foreground data-[state=open]:bg-background\n focus-visible:border-ring focus-visible:outline-hidden focus-visible:ring-[3px] focus-visible:ring-ring/30\n [[data-state=open]>&]:border-ring [[data-state=open]>&]:outline-hidden [[data-state=open]>&]:ring-[3px]\n [[data-state=open]>&]:ring-ring/30\n aria-invalid:border-destructive/60 aria-invalid:ring-destructive/10 dark:aria-invalid:border-destructive dark:aria-invalid:ring-destructive/20\n in-data-[invalid=true]:border-destructive/60 in-data-[invalid=true]:ring-destructive/10 dark:in-data-[invalid=true]:border-destructive dark:in-data-[invalid=true]:ring-destructive/20\n ";
|
|
80
|
+
};
|
|
81
|
+
readonly placeholder: {
|
|
82
|
+
readonly true: "text-muted-foreground";
|
|
83
|
+
readonly false: "";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
declare const buttonVariants: (props?: ({
|
|
87
|
+
readonly variant?: "ghost" | "outline" | "dashed" | "secondary" | "primary" | "mono" | "destructive" | "inverse" | "foreground" | "success" | "dim" | null | undefined;
|
|
88
|
+
readonly appearance?: "default" | "ghost" | null | undefined;
|
|
89
|
+
readonly underline?: "dashed" | "solid" | null | undefined;
|
|
90
|
+
readonly underlined?: "dashed" | "solid" | null | undefined;
|
|
91
|
+
readonly size?: "icon" | "md" | "sm" | "lg" | null | undefined;
|
|
92
|
+
readonly autoHeight?: boolean | null | undefined;
|
|
93
|
+
readonly shape?: "circle" | "default" | null | undefined;
|
|
94
|
+
readonly mode?: "input" | "link" | "default" | "icon" | null | undefined;
|
|
95
|
+
readonly placeholder?: boolean | null | undefined;
|
|
96
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
97
|
+
declare function Button({ className, selected, variant, shape, appearance, mode, size, autoHeight, underlined, underline, asChild, placeholder, loading, children, disabled, onClick, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
98
|
+
selected?: boolean;
|
|
99
|
+
asChild?: boolean;
|
|
100
|
+
loading?: boolean;
|
|
101
|
+
}): react_jsx_runtime.JSX.Element;
|
|
102
|
+
interface ButtonArrowProps extends React$1.SVGProps<SVGSVGElement> {
|
|
103
|
+
icon?: LucideIcon;
|
|
104
|
+
}
|
|
105
|
+
declare function ButtonArrow({ icon: Icon, className, ...props }: ButtonArrowProps): react_jsx_runtime.JSX.Element;
|
|
106
|
+
|
|
107
|
+
declare function AlertDialog({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
108
|
+
declare function AlertDialogTrigger({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
109
|
+
declare function AlertDialogPortal({ ...props }: React$1.ComponentProps<typeof AlertDialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
110
|
+
declare function AlertDialogOverlay({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
111
|
+
declare function AlertDialogContent({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Content>): react_jsx_runtime.JSX.Element;
|
|
112
|
+
declare const AlertDialogHeader: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare const AlertDialogFooter: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
114
|
+
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
115
|
+
declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
116
|
+
declare function AlertDialogAction({ className, variant, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Action> & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
|
|
117
|
+
declare function AlertDialogCancel({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Cancel>): react_jsx_runtime.JSX.Element;
|
|
118
|
+
|
|
119
|
+
declare const dialogContentVariants: (props?: ({
|
|
120
|
+
variant?: "default" | "fullscreen" | null | undefined;
|
|
121
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
122
|
+
declare function Dialog({ ...props }: React$1.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
123
|
+
declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function DialogClose({ ...props }: React$1.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
126
|
+
declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
127
|
+
declare function DialogContent({ className, children, showCloseButton, overlay, variant, "aria-describedby": ariaDescribedBy, ...props }: React$1.ComponentProps<typeof Dialog$1.Content> & VariantProps<typeof dialogContentVariants> & {
|
|
128
|
+
showCloseButton?: boolean;
|
|
129
|
+
overlay?: boolean;
|
|
130
|
+
}): react_jsx_runtime.JSX.Element;
|
|
131
|
+
|
|
132
|
+
declare const DialogHeader: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
133
|
+
declare const DialogFooter: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
135
|
+
declare const DialogBody: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
136
|
+
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
137
|
+
|
|
138
|
+
declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
140
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime.JSX.Element;
|
|
141
|
+
|
|
142
|
+
declare const Drawer: ({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>) => react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
144
|
+
declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
145
|
+
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
146
|
+
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
147
|
+
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element;
|
|
148
|
+
declare const DrawerHeader: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
149
|
+
declare const DrawerFooter: ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
150
|
+
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
151
|
+
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
152
|
+
|
|
153
|
+
declare function HoverCard({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
154
|
+
declare function HoverCardTrigger({ ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function HoverCardContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof HoverCardPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
156
|
+
|
|
157
|
+
declare function Sheet({ ...props }: React$1.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
158
|
+
declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof Dialog$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
159
|
+
declare function SheetClose({ ...props }: React$1.ComponentProps<typeof Dialog$1.Close>): react_jsx_runtime.JSX.Element;
|
|
160
|
+
declare function SheetPortal({ ...props }: React$1.ComponentProps<typeof Dialog$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
161
|
+
declare function SheetOverlay({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
162
|
+
declare const sheetVariants: (props?: ({
|
|
163
|
+
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
164
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
165
|
+
interface SheetContentProps extends React$1.ComponentProps<typeof Dialog$1.Content>, VariantProps<typeof sheetVariants> {
|
|
166
|
+
overlay?: boolean;
|
|
167
|
+
close?: boolean;
|
|
168
|
+
}
|
|
169
|
+
declare function SheetContent({ side, overlay, close, className, children, ...props }: React$1.ComponentProps<typeof Dialog$1.Content> & SheetContentProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
declare function SheetHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
171
|
+
declare function SheetBody({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
172
|
+
declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
173
|
+
declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
174
|
+
declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof Dialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
175
|
+
|
|
10
176
|
declare const avatarStatusVariants: (props?: ({
|
|
11
177
|
variant?: "online" | "offline" | "busy" | "away" | null | undefined;
|
|
12
178
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
-
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof
|
|
14
|
-
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof
|
|
15
|
-
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof
|
|
179
|
+
declare function Avatar({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Root>): react_jsx_runtime.JSX.Element;
|
|
180
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Image>): react_jsx_runtime.JSX.Element;
|
|
181
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof Avatar$1.Fallback>): react_jsx_runtime.JSX.Element;
|
|
16
182
|
declare function AvatarIndicator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
17
183
|
declare function AvatarStatus({ className, variant, ...props }: React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof avatarStatusVariants>): react_jsx_runtime.JSX.Element;
|
|
18
184
|
|
|
185
|
+
type AnimationType = "default" | "flip" | "reveal";
|
|
186
|
+
interface AvatarGroupProps {
|
|
187
|
+
children: React$1.ReactNode;
|
|
188
|
+
className?: string;
|
|
189
|
+
tooltipClassName?: string;
|
|
190
|
+
animation?: AnimationType;
|
|
191
|
+
}
|
|
192
|
+
interface AvatarGroupItemProps {
|
|
193
|
+
children: React$1.ReactNode;
|
|
194
|
+
className?: string;
|
|
195
|
+
tooltipClassName?: string;
|
|
196
|
+
animation?: AnimationType;
|
|
197
|
+
}
|
|
198
|
+
interface AvatarGroupTooltipProps {
|
|
199
|
+
children: React$1.ReactNode;
|
|
200
|
+
className?: string;
|
|
201
|
+
}
|
|
202
|
+
declare function AvatarGroup({ children, className, tooltipClassName, animation, }: AvatarGroupProps): react_jsx_runtime.JSX.Element;
|
|
203
|
+
declare function AvatarGroupItem({ children, className, tooltipClassName, animation: itemAnimation, }: AvatarGroupItemProps): react_jsx_runtime.JSX.Element;
|
|
204
|
+
declare function AvatarGroupTooltip({ children, className, }: AvatarGroupTooltipProps): react_jsx_runtime.JSX.Element;
|
|
205
|
+
|
|
206
|
+
declare module "@tanstack/react-table" {
|
|
207
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
208
|
+
headerTitle?: string;
|
|
209
|
+
headerClassName?: string;
|
|
210
|
+
cellClassName?: string;
|
|
211
|
+
skeleton?: ReactNode;
|
|
212
|
+
expandedContent?: (row: TData) => ReactNode;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
type DataGridApiFetchParams = {
|
|
216
|
+
pageIndex: number;
|
|
217
|
+
pageSize: number;
|
|
218
|
+
sorting?: SortingState;
|
|
219
|
+
filters?: ColumnFiltersState;
|
|
220
|
+
searchQuery?: string;
|
|
221
|
+
};
|
|
222
|
+
type DataGridApiResponse<T> = {
|
|
223
|
+
data: T[];
|
|
224
|
+
empty: boolean;
|
|
225
|
+
pagination: {
|
|
226
|
+
total: number;
|
|
227
|
+
page: number;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
interface DataGridContextProps<TData extends object> {
|
|
231
|
+
props: DataGridProps<TData>;
|
|
232
|
+
table: Table<TData>;
|
|
233
|
+
recordCount: number;
|
|
234
|
+
isLoading: boolean;
|
|
235
|
+
}
|
|
236
|
+
type DataGridRequestParams = {
|
|
237
|
+
pageIndex: number;
|
|
238
|
+
pageSize: number;
|
|
239
|
+
sorting?: SortingState;
|
|
240
|
+
columnFilters?: ColumnFiltersState;
|
|
241
|
+
};
|
|
242
|
+
interface DataGridProps<TData extends object> {
|
|
243
|
+
className?: string;
|
|
244
|
+
table?: Table<TData>;
|
|
245
|
+
recordCount: number;
|
|
246
|
+
children?: ReactNode;
|
|
247
|
+
onRowClick?: (row: TData) => void;
|
|
248
|
+
isLoading?: boolean;
|
|
249
|
+
loadingMode?: "skeleton" | "spinner";
|
|
250
|
+
loadingMessage?: ReactNode | string;
|
|
251
|
+
emptyMessage?: ReactNode | string;
|
|
252
|
+
tableLayout?: {
|
|
253
|
+
dense?: boolean;
|
|
254
|
+
cellBorder?: boolean;
|
|
255
|
+
rowBorder?: boolean;
|
|
256
|
+
rowRounded?: boolean;
|
|
257
|
+
stripped?: boolean;
|
|
258
|
+
headerBackground?: boolean;
|
|
259
|
+
headerBorder?: boolean;
|
|
260
|
+
headerSticky?: boolean;
|
|
261
|
+
width?: "auto" | "fixed";
|
|
262
|
+
columnsVisibility?: boolean;
|
|
263
|
+
columnsResizable?: boolean;
|
|
264
|
+
columnsPinnable?: boolean;
|
|
265
|
+
columnsMovable?: boolean;
|
|
266
|
+
columnsDraggable?: boolean;
|
|
267
|
+
rowsDraggable?: boolean;
|
|
268
|
+
};
|
|
269
|
+
tableClassNames?: {
|
|
270
|
+
base?: string;
|
|
271
|
+
header?: string;
|
|
272
|
+
headerRow?: string;
|
|
273
|
+
headerSticky?: string;
|
|
274
|
+
body?: string;
|
|
275
|
+
bodyRow?: string;
|
|
276
|
+
footer?: string;
|
|
277
|
+
edgeCell?: string;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
declare function useDataGrid(): DataGridContextProps<any>;
|
|
281
|
+
declare function DataGridProvider<TData extends object>({ children, table, ...props }: DataGridProps<TData> & {
|
|
282
|
+
table: Table<TData>;
|
|
283
|
+
}): react_jsx_runtime.JSX.Element;
|
|
284
|
+
declare function DataGrid<TData extends object>({ children, table, ...props }: DataGridProps<TData>): react_jsx_runtime.JSX.Element;
|
|
285
|
+
declare function DataGridContainer({ children, className, border, }: {
|
|
286
|
+
children: ReactNode;
|
|
287
|
+
className?: string;
|
|
288
|
+
border?: boolean;
|
|
289
|
+
}): react_jsx_runtime.JSX.Element;
|
|
290
|
+
|
|
291
|
+
declare function DataGridTableBase({ children }: {
|
|
292
|
+
children: ReactNode;
|
|
293
|
+
}): react_jsx_runtime.JSX.Element;
|
|
294
|
+
declare function DataGridTableHead({ children }: {
|
|
295
|
+
children: ReactNode;
|
|
296
|
+
}): react_jsx_runtime.JSX.Element;
|
|
297
|
+
declare function DataGridTableHeadRow<TData>({ children, headerGroup, }: {
|
|
298
|
+
children: ReactNode;
|
|
299
|
+
headerGroup: HeaderGroup<TData>;
|
|
300
|
+
}): react_jsx_runtime.JSX.Element;
|
|
301
|
+
declare function DataGridTableHeadRowCell<TData>({ children, header, dndRef, dndStyle, }: {
|
|
302
|
+
children: ReactNode;
|
|
303
|
+
header: Header<TData, unknown>;
|
|
304
|
+
dndRef?: React$1.Ref<HTMLTableCellElement>;
|
|
305
|
+
dndStyle?: CSSProperties;
|
|
306
|
+
}): react_jsx_runtime.JSX.Element;
|
|
307
|
+
declare function DataGridTableHeadRowCellResize<TData>({ header, }: {
|
|
308
|
+
header: Header<TData, unknown>;
|
|
309
|
+
}): react_jsx_runtime.JSX.Element;
|
|
310
|
+
declare function DataGridTableRowSpacer(): react_jsx_runtime.JSX.Element;
|
|
311
|
+
declare function DataGridTableBody({ children }: {
|
|
312
|
+
children: ReactNode;
|
|
313
|
+
}): react_jsx_runtime.JSX.Element;
|
|
314
|
+
declare function DataGridTableBodyRowSkeleton({ children }: {
|
|
315
|
+
children: ReactNode;
|
|
316
|
+
}): react_jsx_runtime.JSX.Element;
|
|
317
|
+
declare function DataGridTableBodyRowSkeletonCell<TData>({ children, column, }: {
|
|
318
|
+
children: ReactNode;
|
|
319
|
+
column: Column<TData>;
|
|
320
|
+
}): react_jsx_runtime.JSX.Element;
|
|
321
|
+
declare function DataGridTableBodyRow<TData>({ children, row, dndRef, dndStyle, }: {
|
|
322
|
+
children: ReactNode;
|
|
323
|
+
row: Row<TData>;
|
|
324
|
+
dndRef?: React$1.Ref<HTMLTableRowElement>;
|
|
325
|
+
dndStyle?: CSSProperties;
|
|
326
|
+
}): react_jsx_runtime.JSX.Element;
|
|
327
|
+
declare function DataGridTableBodyRowExpanded<TData>({ row }: {
|
|
328
|
+
row: Row<TData>;
|
|
329
|
+
}): react_jsx_runtime.JSX.Element;
|
|
330
|
+
declare function DataGridTableBodyRowCell<TData>({ children, cell, dndRef, dndStyle, }: {
|
|
331
|
+
children: ReactNode;
|
|
332
|
+
cell: Cell<TData, unknown>;
|
|
333
|
+
dndRef?: React$1.Ref<HTMLTableCellElement>;
|
|
334
|
+
dndStyle?: CSSProperties;
|
|
335
|
+
}): react_jsx_runtime.JSX.Element;
|
|
336
|
+
declare function DataGridTableEmpty(): react_jsx_runtime.JSX.Element;
|
|
337
|
+
declare function DataGridTableLoader(): react_jsx_runtime.JSX.Element;
|
|
338
|
+
declare function DataGridTableRowSelect<TData>({ row, size, }: {
|
|
339
|
+
row: Row<TData>;
|
|
340
|
+
size?: "sm" | "md" | "lg";
|
|
341
|
+
}): react_jsx_runtime.JSX.Element;
|
|
342
|
+
declare function DataGridTableRowSelectAll({ size }: {
|
|
343
|
+
size?: "sm" | "md" | "lg";
|
|
344
|
+
}): react_jsx_runtime.JSX.Element;
|
|
345
|
+
declare function DataGridTable<TData>(): react_jsx_runtime.JSX.Element;
|
|
346
|
+
|
|
347
|
+
interface DataGridColumnHeaderProps<TData, TValue> extends HTMLAttributes<HTMLDivElement> {
|
|
348
|
+
column: Column<TData, TValue>;
|
|
349
|
+
title?: string;
|
|
350
|
+
icon?: ReactNode;
|
|
351
|
+
pinnable?: boolean;
|
|
352
|
+
filter?: ReactNode;
|
|
353
|
+
visibility?: boolean;
|
|
354
|
+
}
|
|
355
|
+
declare function DataGridColumnHeader<TData, TValue>({ column, title, icon, className, filter, visibility, }: DataGridColumnHeaderProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
356
|
+
|
|
357
|
+
interface DataGridPaginationProps {
|
|
358
|
+
sizes?: number[];
|
|
359
|
+
sizesInfo?: string;
|
|
360
|
+
sizesLabel?: string;
|
|
361
|
+
sizesDescription?: string;
|
|
362
|
+
sizesSkeleton?: ReactNode;
|
|
363
|
+
more?: boolean;
|
|
364
|
+
moreLimit?: number;
|
|
365
|
+
info?: string;
|
|
366
|
+
infoSkeleton?: ReactNode;
|
|
367
|
+
className?: string;
|
|
368
|
+
}
|
|
369
|
+
declare function DataGridPagination(props: DataGridPaginationProps): react_jsx_runtime.JSX.Element;
|
|
370
|
+
|
|
371
|
+
declare function DataGridColumnVisibility<TData>({ table, trigger, }: {
|
|
372
|
+
table: Table<TData>;
|
|
373
|
+
trigger: ReactNode;
|
|
374
|
+
}): react_jsx_runtime.JSX.Element;
|
|
375
|
+
|
|
19
376
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
20
377
|
asChild?: boolean;
|
|
21
378
|
dotClassName?: string;
|
|
@@ -26,10 +383,10 @@ interface BadgeButtonProps extends React$1.ButtonHTMLAttributes<HTMLDivElement>,
|
|
|
26
383
|
}
|
|
27
384
|
type BadgeDotProps = React$1.HTMLAttributes<HTMLSpanElement>;
|
|
28
385
|
declare const badgeVariants: (props?: ({
|
|
29
|
-
variant?: "
|
|
30
|
-
appearance?: "default" | "
|
|
386
|
+
variant?: "outline" | "secondary" | "primary" | "destructive" | "success" | "info" | "warning" | null | undefined;
|
|
387
|
+
appearance?: "default" | "ghost" | "outline" | "light" | null | undefined;
|
|
31
388
|
disabled?: boolean | null | undefined;
|
|
32
|
-
size?: "
|
|
389
|
+
size?: "md" | "sm" | "lg" | "xs" | null | undefined;
|
|
33
390
|
shape?: "circle" | "default" | null | undefined;
|
|
34
391
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
35
392
|
declare const badgeButtonVariants: (props?: ({
|
|
@@ -43,25 +400,47 @@ declare function BadgeButton({ className, variant, asChild, ...props }: React$1.
|
|
|
43
400
|
}): react_jsx_runtime.JSX.Element;
|
|
44
401
|
declare function BadgeDot({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
45
402
|
|
|
46
|
-
declare
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
autoHeight?: boolean | null | undefined;
|
|
53
|
-
shape?: "circle" | "default" | null | undefined;
|
|
54
|
-
mode?: "input" | "link" | "default" | "icon" | null | undefined;
|
|
55
|
-
placeholder?: boolean | null | undefined;
|
|
56
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
57
|
-
declare function Button({ className, selected, variant, shape, appearance, mode, size, autoHeight, underlined, underline, asChild, placeholder, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
58
|
-
selected?: boolean;
|
|
403
|
+
declare function Breadcrumb({ ...props }: React$1.ComponentProps<"nav"> & {
|
|
404
|
+
separator?: React$1.ReactNode;
|
|
405
|
+
}): react_jsx_runtime.JSX.Element;
|
|
406
|
+
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
|
|
407
|
+
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
408
|
+
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<"a"> & {
|
|
59
409
|
asChild?: boolean;
|
|
60
410
|
}): react_jsx_runtime.JSX.Element;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
411
|
+
declare function BreadcrumbPage({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
412
|
+
declare const BreadcrumbSeparator: ({ children, className, ...props }: React$1.ComponentProps<"li">) => react_jsx_runtime.JSX.Element;
|
|
413
|
+
declare const BreadcrumbEllipsis: ({ className, ...props }: React$1.ComponentProps<"span">) => react_jsx_runtime.JSX.Element;
|
|
414
|
+
|
|
415
|
+
declare const tabsListVariantConfig: {
|
|
416
|
+
readonly variant: {
|
|
417
|
+
readonly default: "bg-accent p-1";
|
|
418
|
+
readonly button: "";
|
|
419
|
+
readonly line: "border-b border-border";
|
|
420
|
+
};
|
|
421
|
+
readonly shape: {
|
|
422
|
+
readonly default: "";
|
|
423
|
+
readonly pill: "";
|
|
424
|
+
};
|
|
425
|
+
readonly size: {
|
|
426
|
+
readonly lg: "gap-2.5";
|
|
427
|
+
readonly md: "gap-2";
|
|
428
|
+
readonly sm: "gap-1.5";
|
|
429
|
+
readonly xs: "gap-1";
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
declare const tabsListVariants: (props?: ({
|
|
433
|
+
readonly variant?: "button" | "line" | "default" | null | undefined;
|
|
434
|
+
readonly shape?: "default" | "pill" | null | undefined;
|
|
435
|
+
readonly size?: "md" | "sm" | "lg" | "xs" | null | undefined;
|
|
436
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
437
|
+
declare const tabsContentVariants: (props?: ({
|
|
438
|
+
variant?: "default" | null | undefined;
|
|
439
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
440
|
+
declare function Tabs({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Root>): react_jsx_runtime.JSX.Element;
|
|
441
|
+
declare function TabsList({ className, variant, shape, size, ...props }: React$1.ComponentProps<typeof Tabs$1.List> & VariantProps<typeof tabsListVariants>): react_jsx_runtime.JSX.Element;
|
|
442
|
+
declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof Tabs$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
443
|
+
declare function TabsContent({ className, variant, ...props }: React$1.ComponentProps<typeof Tabs$1.Content> & VariantProps<typeof tabsContentVariants>): react_jsx_runtime.JSX.Element;
|
|
65
444
|
|
|
66
445
|
declare const cardVariants: (props?: ({
|
|
67
446
|
variant?: "default" | "accent" | null | undefined;
|
|
@@ -77,7 +456,7 @@ declare function CardTitle({ className, ...props }: React$1.HTMLAttributes<HTMLH
|
|
|
77
456
|
declare function CardDescription({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
78
457
|
|
|
79
458
|
declare const checkboxVariants: (props?: ({
|
|
80
|
-
size?: "
|
|
459
|
+
size?: "md" | "sm" | "lg" | null | undefined;
|
|
81
460
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
82
461
|
declare function Checkbox({ className, size, ...props }: React$1.ComponentProps<typeof CheckboxPrimitive.Root> & VariantProps<typeof checkboxVariants>): react_jsx_runtime.JSX.Element;
|
|
83
462
|
|
|
@@ -108,15 +487,15 @@ declare const Icons: {
|
|
|
108
487
|
};
|
|
109
488
|
|
|
110
489
|
declare const inputVariants: (props?: ({
|
|
111
|
-
variant?: "
|
|
490
|
+
variant?: "md" | "sm" | "lg" | null | undefined;
|
|
112
491
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
113
492
|
declare const inputAddonVariants: (props?: ({
|
|
114
|
-
variant?: "
|
|
493
|
+
variant?: "md" | "sm" | "lg" | null | undefined;
|
|
115
494
|
mode?: "default" | "icon" | null | undefined;
|
|
116
495
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
117
496
|
declare const inputGroupVariants: (props?: ({} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
118
497
|
declare const inputWrapperVariants: (props?: ({
|
|
119
|
-
variant?: "
|
|
498
|
+
variant?: "md" | "sm" | "lg" | null | undefined;
|
|
120
499
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
121
500
|
declare function Input({ className, type, variant, ...props }: React$1.ComponentProps<"input"> & VariantProps<typeof inputVariants>): react_jsx_runtime.JSX.Element;
|
|
122
501
|
declare function InputAddon({ className, variant, mode, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputAddonVariants>): react_jsx_runtime.JSX.Element;
|
|
@@ -125,6 +504,205 @@ declare function InputWrapper({ className, variant, ...props }: React$1.Componen
|
|
|
125
504
|
|
|
126
505
|
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
127
506
|
|
|
507
|
+
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
508
|
+
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
509
|
+
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
510
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
511
|
+
inset?: boolean;
|
|
512
|
+
}): react_jsx_runtime.JSX.Element;
|
|
513
|
+
declare function DropdownMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
514
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
515
|
+
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
516
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
517
|
+
inset?: boolean;
|
|
518
|
+
variant?: "destructive";
|
|
519
|
+
}): react_jsx_runtime.JSX.Element;
|
|
520
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
521
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
522
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
523
|
+
inset?: boolean;
|
|
524
|
+
}): react_jsx_runtime.JSX.Element;
|
|
525
|
+
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
526
|
+
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
527
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
528
|
+
declare function DropdownMenuSub({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
529
|
+
|
|
530
|
+
declare const labelVariants: (props?: ({
|
|
531
|
+
variant?: "secondary" | "primary" | null | undefined;
|
|
532
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
533
|
+
declare function Label({ className, variant, ...props }: React$1.ComponentProps<typeof Label$1.Root> & VariantProps<typeof labelVariants>): react_jsx_runtime.JSX.Element;
|
|
534
|
+
|
|
535
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
536
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
537
|
+
variant?: "legend" | "label";
|
|
538
|
+
}): react_jsx_runtime.JSX.Element;
|
|
539
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
540
|
+
declare const fieldVariants: (props?: ({
|
|
541
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
542
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
543
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime.JSX.Element;
|
|
544
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
545
|
+
declare function FieldLabel({ className, required, children, ...props }: React.ComponentProps<typeof Label> & {
|
|
546
|
+
required?: boolean;
|
|
547
|
+
}): react_jsx_runtime.JSX.Element;
|
|
548
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
549
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
550
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
551
|
+
children?: React.ReactNode;
|
|
552
|
+
}): react_jsx_runtime.JSX.Element;
|
|
553
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
554
|
+
errors?: Array<{
|
|
555
|
+
message?: string;
|
|
556
|
+
} | undefined>;
|
|
557
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
558
|
+
|
|
559
|
+
declare const switchShapes: {
|
|
560
|
+
readonly pill: "rounded-full";
|
|
561
|
+
readonly square: "rounded-md";
|
|
562
|
+
};
|
|
563
|
+
declare const switchSizes: {
|
|
564
|
+
readonly xs: "h-4 w-7";
|
|
565
|
+
readonly sm: "h-5 w-8";
|
|
566
|
+
readonly md: "h-6 w-10";
|
|
567
|
+
readonly lg: "h-8 w-14";
|
|
568
|
+
readonly xl: "h-9 w-16";
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* CVA variants for the switch track (root element).
|
|
572
|
+
* Handles shape (pill/square), size (xs/sm/md/lg/xl), and permanent mode styling.
|
|
573
|
+
* Includes focus-visible ring, disabled opacity, and form validation error states.
|
|
574
|
+
*/
|
|
575
|
+
declare const switchVariants: (props?: ({
|
|
576
|
+
shape?: "square" | "pill" | null | undefined;
|
|
577
|
+
size?: "md" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
578
|
+
permanent?: boolean | null | undefined;
|
|
579
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
580
|
+
/**
|
|
581
|
+
* CVA variants for on/off indicator labels inside the switch track.
|
|
582
|
+
* In non-permanent mode, the active indicator slides in and the inactive one
|
|
583
|
+
* becomes invisible. In permanent mode, both labels stay visible and stationary.
|
|
584
|
+
*/
|
|
585
|
+
declare const switchIndicatorVariants: (props?: ({
|
|
586
|
+
state?: "off" | "on" | null | undefined;
|
|
587
|
+
permanent?: boolean | null | undefined;
|
|
588
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
589
|
+
/**
|
|
590
|
+
* Wrapper component that provides SwitchContext and a positioned container
|
|
591
|
+
* for the Switch and optional SwitchIndicator siblings.
|
|
592
|
+
*
|
|
593
|
+
* @param permanent - When true, both on/off indicator labels remain visible
|
|
594
|
+
* at all times instead of toggling visibility based on the checked state.
|
|
595
|
+
*
|
|
596
|
+
* @example
|
|
597
|
+
* ```tsx
|
|
598
|
+
* <SwitchWrapper permanent>
|
|
599
|
+
* <Switch id="toggle" size="xl" />
|
|
600
|
+
* <SwitchIndicator state="on">On</SwitchIndicator>
|
|
601
|
+
* <SwitchIndicator state="off">Off</SwitchIndicator>
|
|
602
|
+
* </SwitchWrapper>
|
|
603
|
+
* ```
|
|
604
|
+
*/
|
|
605
|
+
declare function SwitchWrapper({ className, children, permanent, ...props }: React$1.HTMLAttributes<HTMLDivElement> & {
|
|
606
|
+
permanent?: boolean;
|
|
607
|
+
}): react_jsx_runtime.JSX.Element;
|
|
608
|
+
/**
|
|
609
|
+
* Toggle switch built on Radix UI Switch primitive.
|
|
610
|
+
* Must be used inside a SwitchWrapper for context access.
|
|
611
|
+
*
|
|
612
|
+
* @param shape - Track shape: "pill" (rounded) or "square" (slightly rounded).
|
|
613
|
+
* @param size - Switch dimensions: "xs" | "sm" | "md" | "lg" | "xl".
|
|
614
|
+
* @param thumbClassName - Optional additional classes for the thumb element.
|
|
615
|
+
*
|
|
616
|
+
* @example
|
|
617
|
+
* ```tsx
|
|
618
|
+
* <SwitchWrapper>
|
|
619
|
+
* <Switch id="notifications" shape="pill" size="md" />
|
|
620
|
+
* </SwitchWrapper>
|
|
621
|
+
* ```
|
|
622
|
+
*/
|
|
623
|
+
declare function Switch({ className, thumbClassName, shape, size, ...props }: React$1.ComponentProps<typeof Switch$1.Root> & VariantProps<typeof switchVariants> & {
|
|
624
|
+
thumbClassName?: string;
|
|
625
|
+
}): react_jsx_runtime.JSX.Element;
|
|
626
|
+
/**
|
|
627
|
+
* Label overlay displayed inside the switch track to indicate on/off state.
|
|
628
|
+
* Must be placed as a sibling of Switch inside a SwitchWrapper.
|
|
629
|
+
* Uses CSS peer selectors to show/hide based on the Switch checked state.
|
|
630
|
+
*
|
|
631
|
+
* @param state - Which state this indicator represents: "on" or "off".
|
|
632
|
+
*
|
|
633
|
+
* @example
|
|
634
|
+
* ```tsx
|
|
635
|
+
* <SwitchWrapper>
|
|
636
|
+
* <Switch id="toggle" size="lg" />
|
|
637
|
+
* <SwitchIndicator state="on">On</SwitchIndicator>
|
|
638
|
+
* <SwitchIndicator state="off">Off</SwitchIndicator>
|
|
639
|
+
* </SwitchWrapper>
|
|
640
|
+
* ```
|
|
641
|
+
*/
|
|
642
|
+
declare function SwitchIndicator({ className, state, ...props }: React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof switchIndicatorVariants>): react_jsx_runtime.JSX.Element;
|
|
643
|
+
|
|
644
|
+
declare function ScrollArea({ className, viewportClassName, children, viewportRef, ...props }: React$1.ComponentProps<typeof ScrollArea$1.Root> & {
|
|
645
|
+
viewportRef?: React$1.Ref<HTMLDivElement>;
|
|
646
|
+
viewportClassName?: string;
|
|
647
|
+
}): react_jsx_runtime.JSX.Element;
|
|
648
|
+
declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
649
|
+
|
|
650
|
+
type ScrollspyProps = {
|
|
651
|
+
children: ReactNode;
|
|
652
|
+
targetRef?: RefObject<HTMLElement | HTMLDivElement | Document | null | undefined>;
|
|
653
|
+
onUpdate?: (id: string) => void;
|
|
654
|
+
offset?: number;
|
|
655
|
+
smooth?: boolean;
|
|
656
|
+
className?: string;
|
|
657
|
+
dataAttribute?: string;
|
|
658
|
+
history?: boolean;
|
|
659
|
+
throttleTime?: number;
|
|
660
|
+
};
|
|
661
|
+
declare function Scrollspy({ children, targetRef, onUpdate, className, offset, smooth, dataAttribute, history, }: ScrollspyProps): react_jsx_runtime.JSX.Element;
|
|
662
|
+
|
|
663
|
+
declare function AspectRatio(props: React$1.ComponentProps<typeof AspectRatio$1.Root>): react_jsx_runtime.JSX.Element;
|
|
664
|
+
|
|
665
|
+
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
666
|
+
|
|
667
|
+
declare const headings: {
|
|
668
|
+
readonly h1: "h1";
|
|
669
|
+
readonly h2: "h2";
|
|
670
|
+
readonly h3: "h3";
|
|
671
|
+
readonly h4: "h4";
|
|
672
|
+
readonly h5: "h5";
|
|
673
|
+
readonly h6: "h6";
|
|
674
|
+
};
|
|
675
|
+
declare function Toolbar({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
676
|
+
declare function ToolbarHeading({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
677
|
+
declare function ToolbarTitle({ className, as: Component, ...props }: React$1.HTMLAttributes<HTMLHeadingElement> & {
|
|
678
|
+
as?: keyof typeof headings;
|
|
679
|
+
}): react_jsx_runtime.JSX.Element;
|
|
680
|
+
declare function ToolbarDescription({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
681
|
+
declare function ToolbarActions({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
682
|
+
|
|
683
|
+
declare const Select: ({ indicatorPosition, indicatorVisibility, indicator, ...props }: {
|
|
684
|
+
indicatorPosition?: "left" | "right";
|
|
685
|
+
indicatorVisibility?: boolean;
|
|
686
|
+
indicator?: ReactNode;
|
|
687
|
+
} & React$1.ComponentProps<typeof Select$1.Root>) => react_jsx_runtime.JSX.Element;
|
|
688
|
+
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
|
|
689
|
+
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
|
|
690
|
+
declare const selectTriggerVariants: (props?: ({
|
|
691
|
+
size?: "md" | "sm" | "lg" | null | undefined;
|
|
692
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
693
|
+
interface SelectTriggerProps extends React$1.ComponentProps<typeof Select$1.Trigger>, VariantProps<typeof selectTriggerVariants> {
|
|
694
|
+
}
|
|
695
|
+
declare function SelectTrigger({ className, children, size, ...props }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
|
|
696
|
+
declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof Select$1.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
697
|
+
declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof Select$1.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
698
|
+
declare function SelectContent({ className, children, position, ...props }: React$1.ComponentProps<typeof Select$1.Content>): react_jsx_runtime.JSX.Element;
|
|
699
|
+
declare function SelectLabel({ className, ...props }: React$1.ComponentProps<typeof Select$1.Label>): react_jsx_runtime.JSX.Element;
|
|
700
|
+
declare function SelectItem({ className, children, ...props }: React$1.ComponentProps<typeof Select$1.Item>): react_jsx_runtime.JSX.Element;
|
|
701
|
+
declare function SelectIndicator({ children, className, ...props }: React$1.ComponentProps<typeof Select$1.ItemIndicator>): react_jsx_runtime.JSX.Element;
|
|
702
|
+
declare function SelectSeparator({ className, ...props }: React$1.ComponentProps<typeof Select$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
703
|
+
|
|
704
|
+
declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): react_jsx_runtime.JSX.Element;
|
|
705
|
+
|
|
128
706
|
declare function useIsMobile(): boolean;
|
|
129
707
|
|
|
130
708
|
declare function useCopyToClipboard({ timeout, onCopy, }?: {
|
|
@@ -145,4 +723,4 @@ declare function useMounted(): boolean;
|
|
|
145
723
|
*/
|
|
146
724
|
declare function cn(...inputs: ClassValue[]): string;
|
|
147
725
|
|
|
148
|
-
export { Avatar, AvatarFallback, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, Icons, Input, InputAddon, InputGroup, InputWrapper, Skeleton, avatarStatusVariants, badgeVariants, buttonVariants, cn, inputAddonVariants, inputVariants, useCopyToClipboard, useIsMobile, useMounted };
|
|
726
|
+
export { Alert, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AlertToolbar, AspectRatio, Avatar, AvatarFallback, AvatarGroup, AvatarGroupItem, AvatarGroupTooltip, AvatarImage, AvatarIndicator, AvatarStatus, Badge, BadgeButton, type BadgeButtonProps, BadgeDot, type BadgeDotProps, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonArrow, Card, CardContent, CardDescription, CardFooter, CardHeader, CardHeading, CardTable, CardTitle, CardToolbar, Checkbox, DataGrid, type DataGridApiFetchParams, type DataGridApiResponse, DataGridColumnHeader, type DataGridColumnHeaderProps, DataGridColumnVisibility, DataGridContainer, type DataGridContextProps, DataGridPagination, type DataGridPaginationProps, type DataGridProps, DataGridProvider, type DataGridRequestParams, DataGridTable, DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpanded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableLoader, DataGridTableRowSelect, DataGridTableRowSelectAll, DataGridTableRowSpacer, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputAddon, InputGroup, InputWrapper, Label, Popover, PopoverContent, PopoverTrigger, ScrollArea, ScrollBar, Scrollspy, Select, SelectContent, SelectGroup, SelectIndicator, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Spinner, Switch, SwitchIndicator, SwitchWrapper, Tabs, TabsContent, TabsList, TabsTrigger, Toolbar, ToolbarActions, ToolbarDescription, ToolbarHeading, ToolbarTitle, avatarStatusVariants, badgeVariants, buttonVariantConfig, buttonVariants, cn, headings, inputAddonVariants, inputVariants, labelVariants, selectTriggerVariants, switchShapes, switchSizes, tabsListVariantConfig, useCopyToClipboard, useDataGrid, useIsMobile, useMounted };
|