@loykin/designkit 0.0.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,667 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React$1 from 'react';
3
+ import React__default, { ComponentType } from 'react';
4
+ import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+ import { useRender } from '@base-ui/react/use-render';
7
+ import { VariantProps } from 'class-variance-authority';
8
+ import { Button as Button$1 } from '@base-ui/react/button';
9
+ import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
10
+ import { Menu } from '@base-ui/react/menu';
11
+ import { Popover as Popover$1 } from '@base-ui/react/popover';
12
+ import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
13
+ import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
14
+ import { Select as Select$1 } from '@base-ui/react/select';
15
+ import { Separator as Separator$1 } from '@base-ui/react/separator';
16
+ import { Dialog } from '@base-ui/react/dialog';
17
+ import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
18
+ import { Slider as Slider$1 } from '@base-ui/react/slider';
19
+ import { Switch as Switch$1 } from '@base-ui/react/switch';
20
+ import { Tabs as Tabs$2 } from '@base-ui/react/tabs';
21
+ import { DataGridColumnDef } from '@loykin/gridkit';
22
+ export { DataGridColumnDef } from '@loykin/gridkit';
23
+ import { Table as Table$1, Row } from '@tanstack/react-table';
24
+ import { ClassValue } from 'clsx';
25
+ import * as zustand from 'zustand';
26
+
27
+ declare function Avatar({ className, size, ...props }: Avatar$1.Root.Props & {
28
+ size?: 'default' | 'sm' | 'lg';
29
+ }): react_jsx_runtime.JSX.Element;
30
+ declare function AvatarImage({ className, ...props }: Avatar$1.Image.Props): react_jsx_runtime.JSX.Element;
31
+ declare function AvatarFallback({ className, ...props }: Avatar$1.Fallback.Props): react_jsx_runtime.JSX.Element;
32
+ declare function AvatarBadge({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
33
+ declare function AvatarGroup({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
34
+ declare function AvatarGroupCount({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
35
+
36
+ declare const badgeVariants: (props?: ({
37
+ variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
38
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
39
+ declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<'span'> & VariantProps<typeof badgeVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
40
+
41
+ declare const buttonVariants: (props?: ({
42
+ variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
43
+ size?: "default" | "sm" | "lg" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
44
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
45
+ declare function Button({ className, variant, size, ...props }: Button$1.Props & VariantProps<typeof buttonVariants>): react_jsx_runtime.JSX.Element;
46
+
47
+ declare function Card({ className, size, ...props }: React$1.ComponentProps<'div'> & {
48
+ size?: 'default' | 'sm';
49
+ }): react_jsx_runtime.JSX.Element;
50
+ declare function CardHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
51
+ declare function CardTitle({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
52
+ declare function CardDescription({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
53
+ declare function CardAction({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
54
+ declare function CardContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
55
+ declare function CardFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
56
+
57
+ declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): react_jsx_runtime.JSX.Element;
58
+
59
+ declare function DropdownMenu({ ...props }: Menu.Root.Props): react_jsx_runtime.JSX.Element;
60
+ declare function DropdownMenuPortal({ ...props }: Menu.Portal.Props): react_jsx_runtime.JSX.Element;
61
+ declare function DropdownMenuTrigger({ asChild: _asChild, ...props }: Menu.Trigger.Props & {
62
+ asChild?: boolean;
63
+ }): react_jsx_runtime.JSX.Element;
64
+ declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): react_jsx_runtime.JSX.Element;
65
+ declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): react_jsx_runtime.JSX.Element;
66
+ declare function DropdownMenuLabel({ className, inset, ...props }: Menu.GroupLabel.Props & {
67
+ inset?: boolean;
68
+ }): react_jsx_runtime.JSX.Element;
69
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: Menu.Item.Props & {
70
+ inset?: boolean;
71
+ variant?: 'default' | 'destructive';
72
+ }): react_jsx_runtime.JSX.Element;
73
+ declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): react_jsx_runtime.JSX.Element;
74
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: Menu.SubmenuTrigger.Props & {
75
+ inset?: boolean;
76
+ }): react_jsx_runtime.JSX.Element;
77
+ declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React$1.ComponentProps<typeof DropdownMenuContent>): react_jsx_runtime.JSX.Element;
78
+ declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: Menu.CheckboxItem.Props & {
79
+ inset?: boolean;
80
+ }): react_jsx_runtime.JSX.Element;
81
+ declare function DropdownMenuRadioGroup({ ...props }: Menu.RadioGroup.Props): react_jsx_runtime.JSX.Element;
82
+ declare function DropdownMenuRadioItem({ className, children, inset, ...props }: Menu.RadioItem.Props & {
83
+ inset?: boolean;
84
+ }): react_jsx_runtime.JSX.Element;
85
+ declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): react_jsx_runtime.JSX.Element;
86
+ declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
87
+
88
+ declare function Input({ className, type, ...props }: React$1.ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
89
+
90
+ declare function Label({ className, ...props }: React$1.ComponentProps<'label'>): react_jsx_runtime.JSX.Element;
91
+
92
+ declare function Popover({ ...props }: Popover$1.Root.Props): react_jsx_runtime.JSX.Element;
93
+ declare function PopoverTrigger({ ...props }: Popover$1.Trigger.Props): react_jsx_runtime.JSX.Element;
94
+ declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: Popover$1.Popup.Props & Pick<Popover$1.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): react_jsx_runtime.JSX.Element;
95
+ declare function PopoverHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
96
+ declare function PopoverTitle({ className, ...props }: Popover$1.Title.Props): react_jsx_runtime.JSX.Element;
97
+ declare function PopoverDescription({ className, ...props }: Popover$1.Description.Props): react_jsx_runtime.JSX.Element;
98
+
99
+ declare function ScrollArea({ className, children, ...props }: ScrollArea$1.Root.Props): react_jsx_runtime.JSX.Element;
100
+ declare function ScrollBar({ className, orientation, ...props }: ScrollArea$1.Scrollbar.Props): react_jsx_runtime.JSX.Element;
101
+
102
+ declare function NavigationMenu({ align, className, children, ...props }: NavigationMenu$1.Root.Props & Pick<NavigationMenu$1.Positioner.Props, 'align'>): react_jsx_runtime.JSX.Element;
103
+ declare function NavigationMenuList({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenu$1.List>): react_jsx_runtime.JSX.Element;
104
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenu$1.Item>): react_jsx_runtime.JSX.Element;
105
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
106
+ declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenu$1.Trigger.Props): react_jsx_runtime.JSX.Element;
107
+ declare function NavigationMenuContent({ className, ...props }: NavigationMenu$1.Content.Props): react_jsx_runtime.JSX.Element;
108
+ declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, ...props }: NavigationMenu$1.Positioner.Props): react_jsx_runtime.JSX.Element;
109
+ declare function NavigationMenuLink({ className, ...props }: NavigationMenu$1.Link.Props): react_jsx_runtime.JSX.Element;
110
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenu$1.Icon>): react_jsx_runtime.JSX.Element;
111
+
112
+ declare const Select: typeof Select$1.Root;
113
+ declare function SelectGroup({ className, ...props }: Select$1.Group.Props): react_jsx_runtime.JSX.Element;
114
+ declare function SelectValue({ className, ...props }: Select$1.Value.Props): react_jsx_runtime.JSX.Element;
115
+ declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
116
+ size?: 'sm' | 'default';
117
+ }): react_jsx_runtime.JSX.Element;
118
+ declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'>): react_jsx_runtime.JSX.Element;
119
+ declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element;
120
+ declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): react_jsx_runtime.JSX.Element;
121
+ declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): react_jsx_runtime.JSX.Element;
122
+ declare function SelectScrollUpButton({ className, ...props }: React$1.ComponentProps<typeof Select$1.ScrollUpArrow>): react_jsx_runtime.JSX.Element;
123
+ declare function SelectScrollDownButton({ className, ...props }: React$1.ComponentProps<typeof Select$1.ScrollDownArrow>): react_jsx_runtime.JSX.Element;
124
+
125
+ declare function Separator({ className, orientation, ...props }: Separator$1.Props): react_jsx_runtime.JSX.Element;
126
+
127
+ declare function Sheet({ ...props }: Dialog.Root.Props): react_jsx_runtime.JSX.Element;
128
+ declare function SheetTrigger({ ...props }: Dialog.Trigger.Props): react_jsx_runtime.JSX.Element;
129
+ declare function SheetClose({ ...props }: Dialog.Close.Props): react_jsx_runtime.JSX.Element;
130
+ declare function SheetContent({ className, children, side, showCloseButton, ...props }: Dialog.Popup.Props & {
131
+ side?: 'top' | 'right' | 'bottom' | 'left';
132
+ showCloseButton?: boolean;
133
+ }): react_jsx_runtime.JSX.Element;
134
+ declare function SheetHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
135
+ declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
136
+ declare function SheetTitle({ className, ...props }: Dialog.Title.Props): react_jsx_runtime.JSX.Element;
137
+ declare function SheetDescription({ className, ...props }: Dialog.Description.Props): react_jsx_runtime.JSX.Element;
138
+
139
+ declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): react_jsx_runtime.JSX.Element;
140
+ declare function Tooltip({ ...props }: Tooltip$1.Root.Props): react_jsx_runtime.JSX.Element;
141
+ declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): react_jsx_runtime.JSX.Element;
142
+ declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'>): react_jsx_runtime.JSX.Element;
143
+
144
+ type SidebarContextProps = {
145
+ state: 'expanded' | 'collapsed';
146
+ open: boolean;
147
+ setOpen: (open: boolean) => void;
148
+ openMobile: boolean;
149
+ setOpenMobile: (open: boolean) => void;
150
+ isMobile: boolean;
151
+ toggleSidebar: () => void;
152
+ };
153
+ declare function useSidebar(): SidebarContextProps;
154
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<'div'> & {
155
+ defaultOpen?: boolean;
156
+ open?: boolean;
157
+ onOpenChange?: (open: boolean) => void;
158
+ }): react_jsx_runtime.JSX.Element;
159
+ declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React$1.ComponentProps<'div'> & {
160
+ side?: 'left' | 'right';
161
+ variant?: 'sidebar' | 'floating' | 'inset';
162
+ collapsible?: 'offcanvas' | 'icon' | 'none';
163
+ }): react_jsx_runtime.JSX.Element;
164
+ declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
165
+ declare function SidebarRail({ className, ...props }: React$1.ComponentProps<'button'>): react_jsx_runtime.JSX.Element;
166
+ declare function SidebarInset({ className, ...props }: React$1.ComponentProps<'main'>): react_jsx_runtime.JSX.Element;
167
+ declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
168
+ declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
169
+ declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
170
+ declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
171
+ declare function SidebarContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
172
+ declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
173
+ declare function SidebarGroupLabel({ className, render, ...props }: useRender.ComponentProps<'div'> & React$1.ComponentProps<'div'>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
174
+ declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
175
+ declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
176
+ declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
177
+ declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
178
+ declare const sidebarMenuButtonVariants: (props?: ({
179
+ variant?: "default" | "outline" | null | undefined;
180
+ size?: "default" | "sm" | "lg" | null | undefined;
181
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
182
+ declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, className, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'> & {
183
+ isActive?: boolean;
184
+ tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
185
+ } & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
186
+ declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'> & {
187
+ showOnHover?: boolean;
188
+ }): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
189
+ declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
190
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<'div'> & {
191
+ showIcon?: boolean;
192
+ }): react_jsx_runtime.JSX.Element;
193
+ declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
194
+ declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
195
+ declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<'a'> & React$1.ComponentProps<'a'> & {
196
+ size?: 'sm' | 'md';
197
+ isActive?: boolean;
198
+ }): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
199
+
200
+ interface EmptyStateAction {
201
+ label: string;
202
+ onClick?: () => void;
203
+ variant?: 'default' | 'outline' | 'ghost';
204
+ }
205
+ interface EmptyStateProps {
206
+ icon?: ComponentType<{
207
+ className?: string;
208
+ }>;
209
+ title: string;
210
+ description?: string;
211
+ action?: EmptyStateAction;
212
+ className?: string;
213
+ }
214
+ declare function EmptyState({ icon: Icon, title, description, action, className }: EmptyStateProps): react_jsx_runtime.JSX.Element;
215
+
216
+ declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
217
+
218
+ declare function Slider({ className, defaultValue, value, min, max, ...props }: Slider$1.Root.Props): react_jsx_runtime.JSX.Element;
219
+
220
+ declare function Switch({ className, size, ...props }: Switch$1.Root.Props & {
221
+ size?: 'sm' | 'default';
222
+ }): react_jsx_runtime.JSX.Element;
223
+
224
+ declare function Table({ className, ...props }: React$1.ComponentProps<'table'>): react_jsx_runtime.JSX.Element;
225
+ declare function TableHeader({ className, ...props }: React$1.ComponentProps<'thead'>): react_jsx_runtime.JSX.Element;
226
+ declare function TableBody({ className, ...props }: React$1.ComponentProps<'tbody'>): react_jsx_runtime.JSX.Element;
227
+ declare function TableFooter({ className, ...props }: React$1.ComponentProps<'tfoot'>): react_jsx_runtime.JSX.Element;
228
+ declare function TableRow({ className, ...props }: React$1.ComponentProps<'tr'>): react_jsx_runtime.JSX.Element;
229
+ declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>): react_jsx_runtime.JSX.Element;
230
+ declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): react_jsx_runtime.JSX.Element;
231
+ declare function TableCaption({ className, ...props }: React$1.ComponentProps<'caption'>): react_jsx_runtime.JSX.Element;
232
+
233
+ declare function Tabs$1({ className, orientation, ...props }: Tabs$2.Root.Props): react_jsx_runtime.JSX.Element;
234
+ declare const tabsListVariants: (props?: ({
235
+ variant?: "default" | "line" | null | undefined;
236
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
237
+ declare function TabsList({ className, variant, ...props }: Tabs$2.List.Props & VariantProps<typeof tabsListVariants>): react_jsx_runtime.JSX.Element;
238
+ declare function TabsTrigger({ className, ...props }: Tabs$2.Tab.Props): react_jsx_runtime.JSX.Element;
239
+ declare function TabsContent({ className, ...props }: Tabs$2.Panel.Props): react_jsx_runtime.JSX.Element;
240
+
241
+ type ShellId = 'sidebar' | 'header';
242
+ type DensityId = 'compact' | 'default' | 'comfortable';
243
+ type TemplateId = 'table' | 'table-infinity' | 'table-drag' | 'table-card' | 'table-card-list' | 'tabbed' | 'form' | 'form-stacked' | 'form-wizard' | 'form-inline' | 'databody' | 'databody-detail' | 'databody-split' | 'sectioned' | 'typography' | 'colors' | 'login' | 'login-forgot' | 'login-reset' | 'login-otp';
244
+ interface GlobalTheme {
245
+ radius: number;
246
+ primaryHue: number;
247
+ primaryChroma: number;
248
+ fontScale: number;
249
+ lineHeight: number;
250
+ density: DensityId;
251
+ darkMode: boolean;
252
+ }
253
+ interface TemplateOverride {
254
+ radius?: number;
255
+ primaryChroma?: number;
256
+ density?: DensityId;
257
+ pagePaddingY?: string;
258
+ panelGap?: string;
259
+ toolbarHeight?: string;
260
+ }
261
+ interface ThemeState {
262
+ global: GlobalTheme;
263
+ overrides: Record<TemplateId, TemplateOverride>;
264
+ activeShell: ShellId;
265
+ activeTemplate: TemplateId;
266
+ setGlobal: (patch: Partial<GlobalTheme>) => void;
267
+ setOverride: (id: TemplateId, patch: Partial<TemplateOverride>) => void;
268
+ setShell: (shell: ShellId) => void;
269
+ setTemplate: (template: TemplateId) => void;
270
+ }
271
+
272
+ type DataGridViewVariant = 'standard' | 'infinity' | 'drag' | 'card' | 'card-list';
273
+ type DataGridViewFilter<T> = (table: Table$1<T>) => React.ReactNode;
274
+ interface DataGridViewInfinityProps<T> {
275
+ data?: T[];
276
+ hasNextPage: boolean;
277
+ isFetchingNextPage: boolean;
278
+ fetchNextPage: () => void;
279
+ tableKey?: string;
280
+ }
281
+ interface DataGridViewDragProps<T> {
282
+ onRowReorder?: (rows: T[]) => void;
283
+ dragColumnSize?: number;
284
+ }
285
+ interface DataGridViewCardProps<T> {
286
+ renderCard?: (row: Row<T>) => React.ReactNode;
287
+ cardColumns?: number;
288
+ minCardWidth?: number;
289
+ minColumns?: number;
290
+ }
291
+ interface DataGridViewProps<T extends Record<string, unknown>> {
292
+ data: T[];
293
+ columns: DataGridColumnDef<T>[];
294
+ getRowId?: (row: T, index: number) => string;
295
+ variant?: DataGridViewVariant;
296
+ tableHeight?: string | number;
297
+ rowHeight?: number;
298
+ tableWidthMode?: 'spacer' | 'fill-last' | 'independent';
299
+ enableSorting?: boolean;
300
+ enableColumnFilters?: boolean;
301
+ emptyMessage?: string;
302
+ headerLeft?: DataGridViewFilter<T>;
303
+ headerRight?: DataGridViewFilter<T>;
304
+ pagination?: {
305
+ pageSize?: number;
306
+ } | false;
307
+ footer?: (table: Table$1<T>) => React.ReactNode;
308
+ infinity?: DataGridViewInfinityProps<T>;
309
+ drag?: DataGridViewDragProps<T>;
310
+ card?: DataGridViewCardProps<T>;
311
+ }
312
+
313
+ declare function DataGridView<T extends Record<string, unknown>>({ data, columns, getRowId, variant, tableHeight, rowHeight, tableWidthMode, enableSorting, enableColumnFilters, emptyMessage, headerLeft, headerRight, pagination, footer, infinity, drag, card, }: DataGridViewProps<T>): react_jsx_runtime.JSX.Element;
314
+
315
+ type TemplateGroup = 'Table' | 'Pages' | 'Design' | 'Auth';
316
+ type TemplateNavigationGroupId = 'DataBodyTemplate' | 'FormWizardBodyTemplate' | 'LoginBodyTemplate' | 'Common';
317
+ type TemplateExportKind = 'data-grid' | 'data-grid-card' | 'body-template' | 'typography' | 'databody' | 'login';
318
+ interface TemplateOptionChoice {
319
+ value: string;
320
+ label: string;
321
+ }
322
+ interface TemplateOptionSpec {
323
+ key: string;
324
+ label: string;
325
+ type: 'select';
326
+ choices: TemplateOptionChoice[];
327
+ defaultValue: string;
328
+ }
329
+ interface TemplateDefinition {
330
+ id: TemplateId;
331
+ label: string;
332
+ /** Short label used only in nav sub-menu (omit to fall back to label) */
333
+ navigationLabel?: string;
334
+ /** Section-header label for the nav group this item anchors (omit to fall back to label) */
335
+ navigationSubgroupLabel?: string;
336
+ group: TemplateGroup;
337
+ navigationGroup: TemplateNavigationGroupId;
338
+ navigationParent?: TemplateId;
339
+ layoutClassName: string;
340
+ exportComponent: string;
341
+ exportKind: TemplateExportKind;
342
+ preset: TemplateOverride;
343
+ options?: TemplateOptionSpec[];
344
+ preview?: {
345
+ variant?: DataGridViewVariant;
346
+ breadcrumb?: React.ReactNode;
347
+ title?: React.ReactNode;
348
+ description?: React.ReactNode;
349
+ };
350
+ }
351
+ declare const TEMPLATE_DEFINITIONS: TemplateDefinition[];
352
+ declare function getTemplateDefinition(id: TemplateId): TemplateDefinition | undefined;
353
+ declare function createTemplateOverrides(): Record<TemplateId, TemplateOverride>;
354
+
355
+ interface TemplateCodeContext {
356
+ definition: TemplateDefinition;
357
+ themeProp: string;
358
+ layoutClassName: string;
359
+ }
360
+ type TemplateCodeBuilder = (context: TemplateCodeContext) => string;
361
+
362
+ interface DataBodyTabProps {
363
+ id: string;
364
+ label: React__default.ReactNode;
365
+ count?: number;
366
+ disabled?: boolean;
367
+ children: React__default.ReactNode;
368
+ }
369
+ declare function DataBodyTab(_props: DataBodyTabProps): null;
370
+ interface DataBodyBodyProps {
371
+ children?: React__default.ReactNode;
372
+ className?: string;
373
+ }
374
+ declare function DataBodyBody(_props: DataBodyBodyProps): null;
375
+ interface DataBodySectionProps {
376
+ id: string;
377
+ label: React__default.ReactNode;
378
+ description?: React__default.ReactNode;
379
+ disabled?: boolean;
380
+ children?: React__default.ReactNode;
381
+ }
382
+ declare function DataBodySection(_props: DataBodySectionProps): null;
383
+ interface DataBodySummaryProps {
384
+ children?: React__default.ReactNode;
385
+ }
386
+ declare function DataBodySummary(_props: DataBodySummaryProps): null;
387
+ type GroupLayout = 'stacked' | 'horizontal' | 'inline' | 'split';
388
+ type GroupVariant = 'card' | 'plain' | 'bordered';
389
+ interface DataBodyGroupProps {
390
+ layout?: GroupLayout;
391
+ variant?: GroupVariant;
392
+ title?: React__default.ReactNode;
393
+ description?: React__default.ReactNode;
394
+ actions?: React__default.ReactNode;
395
+ danger?: boolean;
396
+ children?: React__default.ReactNode;
397
+ }
398
+ declare function DataBodyGroup(props: DataBodyGroupProps): react_jsx_runtime.JSX.Element;
399
+ interface DataBodyFieldProps {
400
+ label: string;
401
+ description?: string;
402
+ children?: React__default.ReactNode;
403
+ }
404
+ declare function DataBodyField({ label, description, children }: DataBodyFieldProps): react_jsx_runtime.JSX.Element;
405
+ interface DataBodyRowProps {
406
+ label: string;
407
+ description?: string;
408
+ required?: boolean;
409
+ children?: React__default.ReactNode;
410
+ }
411
+ declare function DataBodyRow({ label, description, required, children }: DataBodyRowProps): react_jsx_runtime.JSX.Element;
412
+ interface DataBodyTemplateProps {
413
+ theme?: React__default.CSSProperties;
414
+ className?: string;
415
+ topBar?: React__default.ReactNode;
416
+ title?: React__default.ReactNode;
417
+ description?: React__default.ReactNode;
418
+ actions?: React__default.ReactNode;
419
+ toolbarLeft?: React__default.ReactNode;
420
+ toolbarRight?: React__default.ReactNode;
421
+ activeTab?: string;
422
+ defaultTab?: string;
423
+ onTabChange?: (id: string) => void;
424
+ children?: React__default.ReactNode;
425
+ contentClassName?: string;
426
+ }
427
+ declare function Root$1({ theme, className, topBar, title, description, actions, toolbarLeft, toolbarRight, activeTab: controlledActive, defaultTab, onTabChange, children, contentClassName, }: DataBodyTemplateProps): react_jsx_runtime.JSX.Element;
428
+ declare const DataBodyTemplate: typeof Root$1 & {
429
+ Body: typeof DataBodyBody;
430
+ Tab: typeof DataBodyTab;
431
+ Section: typeof DataBodySection;
432
+ Summary: typeof DataBodySummary;
433
+ Group: typeof DataBodyGroup;
434
+ Row: typeof DataBodyRow;
435
+ Field: typeof DataBodyField;
436
+ };
437
+
438
+ interface DataBodyTemplateDemoProps {
439
+ theme?: React__default.CSSProperties;
440
+ topBarShow?: string;
441
+ topBarVariant?: string;
442
+ topBarBg?: string;
443
+ }
444
+ declare function DataBodyTemplateDemo({ theme, topBarShow, topBarVariant, topBarBg }: DataBodyTemplateDemoProps): react_jsx_runtime.JSX.Element;
445
+
446
+ type FormWizardVariant = 'card' | 'plain';
447
+ interface FormWizardStep {
448
+ key: string;
449
+ title: string;
450
+ description?: string;
451
+ content: React.ReactNode;
452
+ }
453
+ interface FormWizardBodyTemplateProps {
454
+ theme?: React.CSSProperties;
455
+ title?: string;
456
+ topBar?: React.ReactNode;
457
+ variant?: FormWizardVariant;
458
+ steps: FormWizardStep[];
459
+ activeStep: number;
460
+ onNext?: () => void;
461
+ onBack?: () => void;
462
+ onFinish?: () => void;
463
+ }
464
+ declare function FormWizardBodyTemplate({ theme, title, topBar, variant, steps, activeStep, onNext, onBack, onFinish, }: FormWizardBodyTemplateProps): react_jsx_runtime.JSX.Element;
465
+
466
+ declare function FormWizardBodyTemplateDemo({ theme, variant, topBarShow, topBarVariant, topBarBg, }: {
467
+ theme?: React.CSSProperties;
468
+ variant?: FormWizardVariant;
469
+ topBarShow?: string;
470
+ topBarVariant?: string;
471
+ topBarBg?: string;
472
+ }): react_jsx_runtime.JSX.Element;
473
+
474
+ interface TypographyBodyTemplateProps {
475
+ theme?: React.CSSProperties;
476
+ breadcrumb?: React.ReactNode;
477
+ }
478
+ declare function TypographyBodyTemplate({ theme, breadcrumb }: TypographyBodyTemplateProps): react_jsx_runtime.JSX.Element;
479
+
480
+ interface ColorsBodyTemplateProps {
481
+ theme?: React.CSSProperties;
482
+ breadcrumb?: React.ReactNode;
483
+ }
484
+ declare function ColorsBodyTemplate({ theme, breadcrumb }: ColorsBodyTemplateProps): react_jsx_runtime.JSX.Element;
485
+
486
+ interface DataPageProps {
487
+ children: React.ReactNode;
488
+ className?: string;
489
+ style?: React.CSSProperties;
490
+ }
491
+ interface DataPageHeaderProps {
492
+ children?: React.ReactNode;
493
+ className?: string;
494
+ }
495
+ interface DataPageTitleBlockProps {
496
+ title?: React.ReactNode;
497
+ description?: React.ReactNode;
498
+ breadcrumb?: React.ReactNode;
499
+ className?: string;
500
+ }
501
+ interface DataPageActionsProps {
502
+ children?: React.ReactNode;
503
+ className?: string;
504
+ }
505
+ interface DataPageTabsProps {
506
+ children?: React.ReactNode;
507
+ className?: string;
508
+ }
509
+ interface DataPageTabProps {
510
+ active?: boolean;
511
+ count?: number;
512
+ children: React.ReactNode;
513
+ onClick?: () => void;
514
+ disabled?: boolean;
515
+ className?: string;
516
+ }
517
+ interface DataPageContentProps {
518
+ children?: React.ReactNode;
519
+ className?: string;
520
+ padding?: 'none' | 'compact' | 'default';
521
+ }
522
+ interface DataPageGroupProps {
523
+ children?: React.ReactNode;
524
+ className?: string;
525
+ surface?: 'none' | 'bordered' | 'card';
526
+ }
527
+ interface DataPageGroupHeaderProps {
528
+ title?: React.ReactNode;
529
+ description?: React.ReactNode;
530
+ actions?: React.ReactNode;
531
+ children?: React.ReactNode;
532
+ className?: string;
533
+ }
534
+ interface DataPageGroupToolbarProps {
535
+ children?: React.ReactNode;
536
+ className?: string;
537
+ }
538
+ interface DataPageGroupBodyProps {
539
+ children?: React.ReactNode;
540
+ className?: string;
541
+ }
542
+ interface DataPageFooterProps {
543
+ children?: React.ReactNode;
544
+ className?: string;
545
+ }
546
+ declare function Root({ children, className, style }: DataPageProps): react_jsx_runtime.JSX.Element;
547
+ declare function Header({ children, className }: DataPageHeaderProps): react_jsx_runtime.JSX.Element;
548
+ declare function TitleBlock({ title, description, breadcrumb, className }: DataPageTitleBlockProps): react_jsx_runtime.JSX.Element | null;
549
+ declare function Actions({ children, className }: DataPageActionsProps): react_jsx_runtime.JSX.Element | null;
550
+ declare function Tabs({ children, className }: DataPageTabsProps): react_jsx_runtime.JSX.Element | null;
551
+ declare function Tab({ active, count, children, onClick, disabled, className }: DataPageTabProps): react_jsx_runtime.JSX.Element;
552
+ declare function Content({ children, className, padding }: DataPageContentProps): react_jsx_runtime.JSX.Element;
553
+ declare function Group({ children, className, surface }: DataPageGroupProps): react_jsx_runtime.JSX.Element;
554
+ declare function GroupHeader({ title, description, actions, children, className, }: DataPageGroupHeaderProps): react_jsx_runtime.JSX.Element | null;
555
+ declare function GroupToolbar({ children, className }: DataPageGroupToolbarProps): react_jsx_runtime.JSX.Element | null;
556
+ declare function GroupBody({ children, className }: DataPageGroupBodyProps): react_jsx_runtime.JSX.Element;
557
+ declare function Footer({ children, className }: DataPageFooterProps): react_jsx_runtime.JSX.Element | null;
558
+ declare const DataPage: typeof Root & {
559
+ Header: typeof Header;
560
+ TitleBlock: typeof TitleBlock;
561
+ Actions: typeof Actions;
562
+ Tabs: typeof Tabs;
563
+ Tab: typeof Tab;
564
+ Content: typeof Content;
565
+ Group: typeof Group;
566
+ GroupHeader: typeof GroupHeader;
567
+ GroupToolbar: typeof GroupToolbar;
568
+ GroupBody: typeof GroupBody;
569
+ Footer: typeof Footer;
570
+ };
571
+
572
+ type LoginLayout = 'centered' | 'split';
573
+ type LoginSide = 'left' | 'right';
574
+ type LoginCard = 'card' | 'plain';
575
+ type LoginBg = 'default' | 'none' | 'subtle';
576
+ type LoginCardWidth = 'sm' | 'md' | 'lg';
577
+ interface LoginBodyTemplateProps {
578
+ theme?: React__default.CSSProperties;
579
+ layout?: LoginLayout;
580
+ side?: LoginSide;
581
+ card?: LoginCard;
582
+ bg?: LoginBg;
583
+ cardWidth?: LoginCardWidth;
584
+ brand?: React__default.ReactNode;
585
+ children?: React__default.ReactNode;
586
+ className?: string;
587
+ }
588
+ declare function LoginBodyTemplate({ theme, layout, side, card, bg, cardWidth, brand, children, className, }: LoginBodyTemplateProps): react_jsx_runtime.JSX.Element;
589
+
590
+ type PageTopBarVariant = 'ghost' | 'default';
591
+ interface PageTopBarProps {
592
+ left?: React__default.ReactNode;
593
+ right?: React__default.ReactNode;
594
+ variant?: PageTopBarVariant;
595
+ height?: string;
596
+ className?: string;
597
+ style?: React__default.CSSProperties;
598
+ children?: React__default.ReactNode;
599
+ }
600
+ type PageBreadcrumbItem = string | {
601
+ label: string;
602
+ href?: string;
603
+ };
604
+ declare function PageBreadcrumb({ items }: {
605
+ items: PageBreadcrumbItem[];
606
+ }): react_jsx_runtime.JSX.Element;
607
+ /** Builds a PageTopBar ReactNode from playground option strings. */
608
+ declare function buildTopBar(opts: {
609
+ topBarShow?: string;
610
+ topBarVariant?: string;
611
+ topBarBg?: string;
612
+ left: React__default.ReactNode;
613
+ right?: React__default.ReactNode;
614
+ }): React__default.ReactNode;
615
+ declare function PageTopBar({ left, right, variant, height, className, style, children, }: PageTopBarProps): react_jsx_runtime.JSX.Element;
616
+
617
+ interface TemplateConfig {
618
+ id: TemplateId;
619
+ label: string;
620
+ component: ComponentType<{
621
+ theme?: React.CSSProperties;
622
+ }>;
623
+ buildCode?: TemplateCodeBuilder;
624
+ group?: string;
625
+ description?: string;
626
+ }
627
+ interface TemplateNavigationItem {
628
+ id: TemplateId;
629
+ label: string;
630
+ icon?: ComponentType<{
631
+ className?: string;
632
+ }>;
633
+ children?: TemplateNavigationItem[];
634
+ }
635
+ interface TemplateNavigationGroup {
636
+ label: string;
637
+ items: TemplateNavigationItem[];
638
+ }
639
+
640
+ declare const TEMPLATES: TemplateConfig[];
641
+ declare const TEMPLATE_NAVIGATION: TemplateNavigationGroup[];
642
+
643
+ declare function useIsMobile(): boolean;
644
+
645
+ declare function useStyleInjector(): void;
646
+ /** Returns CSS custom properties for a template — used as inline style for external usage */
647
+ declare function buildTemplateTheme(g: {
648
+ radius: number;
649
+ primaryHue: number;
650
+ primaryChroma: number;
651
+ density?: DensityId;
652
+ fontScale?: number;
653
+ lineHeight?: number;
654
+ }, ov?: {
655
+ radius?: number;
656
+ primaryChroma?: number;
657
+ density?: DensityId;
658
+ pagePaddingY?: string;
659
+ panelGap?: string;
660
+ toolbarHeight?: string;
661
+ }): React.CSSProperties;
662
+
663
+ declare function cn(...inputs: ClassValue[]): string;
664
+
665
+ declare const useThemeStore: zustand.UseBoundStore<zustand.StoreApi<ThemeState>>;
666
+
667
+ export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColorsBodyTemplate, type ColorsBodyTemplateProps, type DataBodyBodyProps, type DataBodyFieldProps, type DataBodyGroupProps, type DataBodyRowProps, type DataBodySectionProps, type DataBodySummaryProps, type DataBodyTabProps, DataBodyTemplate, DataBodyTemplateDemo, type DataBodyTemplateProps, DataGridView, type DataGridViewProps, type DataGridViewVariant, DataPage, type DataPageActionsProps, type DataPageContentProps, type DataPageFooterProps, type DataPageGroupBodyProps, type DataPageGroupHeaderProps, type DataPageGroupProps, type DataPageGroupToolbarProps, type DataPageHeaderProps, type DataPageProps, type DataPageTabProps, type DataPageTabsProps, type DataPageTitleBlockProps, type DensityId, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateAction, type EmptyStateProps, FormWizardBodyTemplate, FormWizardBodyTemplateDemo, type FormWizardBodyTemplateProps, type FormWizardStep, type FormWizardVariant, type GlobalTheme, type GroupLayout, type GroupVariant, Input, Label, LoginBodyTemplate, type LoginBodyTemplateProps, type LoginLayout, type LoginSide, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, PageBreadcrumb, type PageBreadcrumbItem, PageTopBar, type PageTopBarProps, type PageTopBarVariant, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, type ShellId, 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, Switch, TEMPLATES, TEMPLATE_DEFINITIONS, TEMPLATE_NAVIGATION, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs$1 as Tabs, TabsContent, TabsList, TabsTrigger, type TemplateCodeBuilder, type TemplateCodeContext, type TemplateConfig, type TemplateDefinition, type TemplateExportKind, type TemplateGroup, type TemplateId, type TemplateNavigationGroup, type TemplateNavigationGroupId, type TemplateNavigationItem, type TemplateOptionChoice, type TemplateOptionSpec, type TemplateOverride, type ThemeState, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TypographyBodyTemplate, type TypographyBodyTemplateProps, badgeVariants, buildTemplateTheme, buildTopBar, buttonVariants, cn, createTemplateOverrides, getTemplateDefinition, navigationMenuTriggerStyle, tabsListVariants, useIsMobile, useSidebar, useStyleInjector, useThemeStore };