@gradeui/ui 0.7.0 → 0.8.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/dist/index.d.mts CHANGED
@@ -2,6 +2,7 @@ import * as React$1 from 'react';
2
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
6
  import { DayPicker, DayButton, DateRange } from 'react-day-picker';
6
7
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
7
8
  import * as DialogPrimitive from '@radix-ui/react-dialog';
@@ -26,7 +27,7 @@ declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<Accordion
26
27
  declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
27
28
 
28
29
  declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
29
- variant?: "destructive" | "success" | "warning" | "info" | "highlight" | "default" | null | undefined;
30
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | "highlight" | null | undefined;
30
31
  } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
31
32
  declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
32
33
  declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
@@ -64,7 +65,7 @@ declare const navVariants: (props?: ({
64
65
  sticky?: boolean | null | undefined;
65
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
66
67
  declare const mainVariants: (props?: ({
67
- maxWidth?: "container" | "full" | null | undefined;
68
+ maxWidth?: "full" | "container" | null | undefined;
68
69
  } & class_variance_authority_types.ClassProp) | undefined) => string;
69
70
  interface AppShellProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof shellVariants> {
70
71
  /** Render as the single child element via Radix Slot — lets you stamp the
@@ -81,8 +82,12 @@ interface AppShellMainProps extends React$1.HTMLAttributes<HTMLElement>, Variant
81
82
  }
82
83
  declare const AppShellMain: React$1.ForwardRefExoticComponent<AppShellMainProps & React$1.RefAttributes<HTMLElement>>;
83
84
 
85
+ declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
86
+ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
87
+ declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
88
+
84
89
  declare const badgeVariants: (props?: ({
85
- variant?: "secondary" | "destructive" | "success" | "warning" | "info" | "highlight" | "default" | "outline" | "success-soft" | "warning-soft" | "destructive-soft" | "info-soft" | "highlight-soft" | "success-outline" | "warning-outline" | "destructive-outline" | "info-outline" | null | undefined;
90
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | "highlight" | "secondary" | "outline" | "success-soft" | "warning-soft" | "destructive-soft" | "info-soft" | "highlight-soft" | "success-outline" | "warning-outline" | "destructive-outline" | "info-outline" | null | undefined;
86
91
  rounded?: "default" | "full" | null | undefined;
87
92
  } & class_variance_authority_types.ClassProp) | undefined) => string;
88
93
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
@@ -90,8 +95,8 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
90
95
  declare function Badge({ className, variant, rounded, ...props }: BadgeProps): React$1.JSX.Element;
91
96
 
92
97
  declare const buttonVariants: (props?: ({
93
- variant?: "link" | "secondary" | "destructive" | "default" | "outline" | "ghost" | null | undefined;
94
- size?: "lg" | "sm" | "default" | "icon" | null | undefined;
98
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
99
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
95
100
  } & class_variance_authority_types.ClassProp) | undefined) => string;
96
101
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
97
102
  asChild?: boolean;
@@ -248,7 +253,7 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
248
253
  * etc.) and is a separate primitive.
249
254
  */
250
255
  declare const rowVariants: (props?: ({
251
- gap?: "lg" | "md" | "sm" | "none" | "xs" | "xl" | "2xl" | null | undefined;
256
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
252
257
  align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
253
258
  justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
254
259
  wrap?: boolean | null | undefined;
@@ -261,6 +266,76 @@ interface RowProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<
261
266
  }
262
267
  declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
263
268
 
269
+ /**
270
+ * Grid — 2D layout primitive. The partner to Stack and Row.
271
+ *
272
+ * Stack handles vertical, Row handles horizontal, Grid handles the
273
+ * responsive 2D case — most commonly a set of equal-width tiles (stat
274
+ * cards, feature cards, pricing columns) that needs to collapse
275
+ * gracefully on narrow viewports. Without this primitive, every
276
+ * vibe-coded dashboard reinvents `grid grid-cols-1 md:grid-cols-2
277
+ * lg:grid-cols-4` and the settings panel has nothing to mutate.
278
+ *
279
+ * `cols` names the DESIRED desktop column count. Each value is a
280
+ * baked-in responsive ladder that matches the standard pattern for that
281
+ * count (1→2→N for small counts, 2→3→N for denser grids) so the model
282
+ * just writes `<Grid cols="4">` and gets the same behaviour it would
283
+ * hand-roll. If you need bespoke breakpoints, override via `className`.
284
+ *
285
+ * Sharing the `gap` / `align` scale with Stack and Row is deliberate:
286
+ * when the Studio panel offers a "switch layout type" control between
287
+ * Stack / Row / Grid, those props transfer cleanly — only `cols`
288
+ * (Grid-only) and `justify` / `wrap` (Row-only) are lost.
289
+ */
290
+ declare const gridVariants: (props?: ({
291
+ cols?: "1" | "2" | "3" | "4" | "5" | "6" | "12" | null | undefined;
292
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
293
+ align?: "center" | "end" | "start" | "stretch" | null | undefined;
294
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
295
+ interface GridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
296
+ /** When true, render as the single child element via Radix Slot — lets
297
+ * you stamp Grid's layout classes onto an existing semantic tag
298
+ * without nesting an extra `<div>`. */
299
+ asChild?: boolean;
300
+ }
301
+ declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLDivElement>>;
302
+
303
+ /**
304
+ * Flex — the unopinionated flexbox primitive.
305
+ *
306
+ * The CSS-aligned partner to Stack / Row / Grid. Where Stack and Row bake in
307
+ * a direction and a sensible gap/align default, Flex exposes the raw CSS
308
+ * knobs and ships with CSS's own defaults — direction=row, gap=none,
309
+ * justify=start, align=stretch, wrap=nowrap. Nothing is opinionated; you pay
310
+ * for exactly the props you set.
311
+ *
312
+ * Use Flex when:
313
+ * - You need `direction="col-reverse"` or `"row-reverse"` — Stack and Row
314
+ * can't express either without falling back to className.
315
+ * - You want CSS defaults (stretch alignment, no baked-in gap) rather than
316
+ * Row's "items-center gap-md" starting point.
317
+ * - You're reaching for `className="flex …"` and want the settings-panel
318
+ * editability you lose when hand-rolling utility classes.
319
+ *
320
+ * Otherwise prefer Stack (vertical) / Row (horizontal) / Grid (2D) —
321
+ * they're easier to read at a glance and have defaults tuned for the 95%
322
+ * case. Flex is the escape hatch, not the default.
323
+ */
324
+ declare const flexVariants: (props?: ({
325
+ direction?: "col" | "row" | "row-reverse" | "col-reverse" | null | undefined;
326
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
327
+ align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
328
+ justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
329
+ wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
330
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
331
+ interface FlexProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexVariants> {
332
+ /** When true, render as the single child element via Radix Slot — lets
333
+ * you stamp Flex's layout classes onto an existing semantic tag without
334
+ * nesting an extra `<div>`. */
335
+ asChild?: boolean;
336
+ }
337
+ declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAttributes<HTMLDivElement>>;
338
+
264
339
  declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
265
340
  declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
266
341
 
@@ -318,7 +393,7 @@ declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.Sli
318
393
  * for a centred narrow column (auth cards, marketing copy).
319
394
  */
320
395
  declare const stackVariants: (props?: ({
321
- gap?: "lg" | "md" | "sm" | "none" | "xs" | "xl" | "2xl" | null | undefined;
396
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
322
397
  align?: "center" | "end" | "start" | "stretch" | null | undefined;
323
398
  } & class_variance_authority_types.ClassProp) | undefined) => string;
324
399
  interface StackProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
@@ -1373,4 +1448,4 @@ declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProp
1373
1448
  */
1374
1449
  declare function ThemeToggle(): React$1.JSX.Element;
1375
1450
 
1376
- export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AppShell, AppShellMain, type AppShellMainProps, AppShellNav, type AppShellNavProps, type AppShellProps, BUILT_IN_INPUTS, Badge, type BaseMediaProps, type BreadcrumbItem, Button, type ButtonShape, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardStyle, CardTitle, type ChartPalette, Checkbox, type ColorIntensity, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FRAGMENT_HEADER, type FontKey, GRADE_PRE_HYDRATION_SCRIPT, type GeneratedTheme, GradeModeSwitcher, GradeThemeProvider, type GradeThemeProviderProps, GradeThemeSwitcher, Input, type InputStyle, Label, LenisProvider, type MediaAspect, type MediaRadius, MediaSurface, type MediaSurfaceProps, type ModeName, type OKLCHTriplet, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PostPreset, Progress, RadioGroup, RadioGroupItem, type RadiusStyle, type Ramp, RivePlayer, type RivePlayerProps, Row, type RowProps, type SceneContext, type SceneFactory, type SceneHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShaderCompileError, type ShaderPreset, ShaderPresetPicker, type ShaderPresetPickerProps, ShaderPresetPreview, type ShaderPresetPreviewProps, type ShadowIntensity, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, type SpacingDensity, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ThemeInput, ThemeToggle, ThreeScene, type ThreeSceneProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, type TypeScalePreset, VideoPlayer, type VideoPlayerProps, mainVariants as appShellMainVariants, navVariants as appShellNavVariants, applyThemeToRoot, badgeVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, duplicateTheme, energyInput, generateTheme, getTheme, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, shaderPresetById, shaderPresets, shellVariants, stackVariants, themeToCSSVars, useGradeTheme, useMaybeGradeTheme, usePrefersReducedMotion };
1451
+ export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AppShell, AppShellMain, type AppShellMainProps, AppShellNav, type AppShellNavProps, type AppShellProps, Avatar, AvatarFallback, AvatarImage, BUILT_IN_INPUTS, Badge, type BaseMediaProps, type BreadcrumbItem, Button, type ButtonShape, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardStyle, CardTitle, type ChartPalette, Checkbox, type ColorIntensity, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FRAGMENT_HEADER, Flex, type FlexProps, type FontKey, GRADE_PRE_HYDRATION_SCRIPT, type GeneratedTheme, GradeModeSwitcher, GradeThemeProvider, type GradeThemeProviderProps, GradeThemeSwitcher, Grid, type GridProps, Input, type InputStyle, Label, LenisProvider, type MediaAspect, type MediaRadius, MediaSurface, type MediaSurfaceProps, type ModeName, type OKLCHTriplet, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PostPreset, Progress, RadioGroup, RadioGroupItem, type RadiusStyle, type Ramp, RivePlayer, type RivePlayerProps, Row, type RowProps, type SceneContext, type SceneFactory, type SceneHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShaderCompileError, type ShaderPreset, ShaderPresetPicker, type ShaderPresetPickerProps, ShaderPresetPreview, type ShaderPresetPreviewProps, type ShadowIntensity, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, type SpacingDensity, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ThemeInput, ThemeToggle, ThreeScene, type ThreeSceneProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, type TypeScalePreset, VideoPlayer, type VideoPlayerProps, mainVariants as appShellMainVariants, navVariants as appShellNavVariants, applyThemeToRoot, badgeVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, duplicateTheme, energyInput, flexVariants, generateTheme, getTheme, gridVariants, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, shaderPresetById, shaderPresets, shellVariants, stackVariants, themeToCSSVars, useGradeTheme, useMaybeGradeTheme, usePrefersReducedMotion };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import * as React$1 from 'react';
2
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
6
  import { DayPicker, DayButton, DateRange } from 'react-day-picker';
6
7
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
7
8
  import * as DialogPrimitive from '@radix-ui/react-dialog';
@@ -26,7 +27,7 @@ declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<Accordion
26
27
  declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
27
28
 
28
29
  declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
29
- variant?: "destructive" | "success" | "warning" | "info" | "highlight" | "default" | null | undefined;
30
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | "highlight" | null | undefined;
30
31
  } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
31
32
  declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
32
33
  declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
@@ -64,7 +65,7 @@ declare const navVariants: (props?: ({
64
65
  sticky?: boolean | null | undefined;
65
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
66
67
  declare const mainVariants: (props?: ({
67
- maxWidth?: "container" | "full" | null | undefined;
68
+ maxWidth?: "full" | "container" | null | undefined;
68
69
  } & class_variance_authority_types.ClassProp) | undefined) => string;
69
70
  interface AppShellProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof shellVariants> {
70
71
  /** Render as the single child element via Radix Slot — lets you stamp the
@@ -81,8 +82,12 @@ interface AppShellMainProps extends React$1.HTMLAttributes<HTMLElement>, Variant
81
82
  }
82
83
  declare const AppShellMain: React$1.ForwardRefExoticComponent<AppShellMainProps & React$1.RefAttributes<HTMLElement>>;
83
84
 
85
+ declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
86
+ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
87
+ declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
88
+
84
89
  declare const badgeVariants: (props?: ({
85
- variant?: "secondary" | "destructive" | "success" | "warning" | "info" | "highlight" | "default" | "outline" | "success-soft" | "warning-soft" | "destructive-soft" | "info-soft" | "highlight-soft" | "success-outline" | "warning-outline" | "destructive-outline" | "info-outline" | null | undefined;
90
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | "highlight" | "secondary" | "outline" | "success-soft" | "warning-soft" | "destructive-soft" | "info-soft" | "highlight-soft" | "success-outline" | "warning-outline" | "destructive-outline" | "info-outline" | null | undefined;
86
91
  rounded?: "default" | "full" | null | undefined;
87
92
  } & class_variance_authority_types.ClassProp) | undefined) => string;
88
93
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
@@ -90,8 +95,8 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
90
95
  declare function Badge({ className, variant, rounded, ...props }: BadgeProps): React$1.JSX.Element;
91
96
 
92
97
  declare const buttonVariants: (props?: ({
93
- variant?: "link" | "secondary" | "destructive" | "default" | "outline" | "ghost" | null | undefined;
94
- size?: "lg" | "sm" | "default" | "icon" | null | undefined;
98
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
99
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
95
100
  } & class_variance_authority_types.ClassProp) | undefined) => string;
96
101
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
97
102
  asChild?: boolean;
@@ -248,7 +253,7 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
248
253
  * etc.) and is a separate primitive.
249
254
  */
250
255
  declare const rowVariants: (props?: ({
251
- gap?: "lg" | "md" | "sm" | "none" | "xs" | "xl" | "2xl" | null | undefined;
256
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
252
257
  align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
253
258
  justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
254
259
  wrap?: boolean | null | undefined;
@@ -261,6 +266,76 @@ interface RowProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<
261
266
  }
262
267
  declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
263
268
 
269
+ /**
270
+ * Grid — 2D layout primitive. The partner to Stack and Row.
271
+ *
272
+ * Stack handles vertical, Row handles horizontal, Grid handles the
273
+ * responsive 2D case — most commonly a set of equal-width tiles (stat
274
+ * cards, feature cards, pricing columns) that needs to collapse
275
+ * gracefully on narrow viewports. Without this primitive, every
276
+ * vibe-coded dashboard reinvents `grid grid-cols-1 md:grid-cols-2
277
+ * lg:grid-cols-4` and the settings panel has nothing to mutate.
278
+ *
279
+ * `cols` names the DESIRED desktop column count. Each value is a
280
+ * baked-in responsive ladder that matches the standard pattern for that
281
+ * count (1→2→N for small counts, 2→3→N for denser grids) so the model
282
+ * just writes `<Grid cols="4">` and gets the same behaviour it would
283
+ * hand-roll. If you need bespoke breakpoints, override via `className`.
284
+ *
285
+ * Sharing the `gap` / `align` scale with Stack and Row is deliberate:
286
+ * when the Studio panel offers a "switch layout type" control between
287
+ * Stack / Row / Grid, those props transfer cleanly — only `cols`
288
+ * (Grid-only) and `justify` / `wrap` (Row-only) are lost.
289
+ */
290
+ declare const gridVariants: (props?: ({
291
+ cols?: "1" | "2" | "3" | "4" | "5" | "6" | "12" | null | undefined;
292
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
293
+ align?: "center" | "end" | "start" | "stretch" | null | undefined;
294
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
295
+ interface GridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
296
+ /** When true, render as the single child element via Radix Slot — lets
297
+ * you stamp Grid's layout classes onto an existing semantic tag
298
+ * without nesting an extra `<div>`. */
299
+ asChild?: boolean;
300
+ }
301
+ declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLDivElement>>;
302
+
303
+ /**
304
+ * Flex — the unopinionated flexbox primitive.
305
+ *
306
+ * The CSS-aligned partner to Stack / Row / Grid. Where Stack and Row bake in
307
+ * a direction and a sensible gap/align default, Flex exposes the raw CSS
308
+ * knobs and ships with CSS's own defaults — direction=row, gap=none,
309
+ * justify=start, align=stretch, wrap=nowrap. Nothing is opinionated; you pay
310
+ * for exactly the props you set.
311
+ *
312
+ * Use Flex when:
313
+ * - You need `direction="col-reverse"` or `"row-reverse"` — Stack and Row
314
+ * can't express either without falling back to className.
315
+ * - You want CSS defaults (stretch alignment, no baked-in gap) rather than
316
+ * Row's "items-center gap-md" starting point.
317
+ * - You're reaching for `className="flex …"` and want the settings-panel
318
+ * editability you lose when hand-rolling utility classes.
319
+ *
320
+ * Otherwise prefer Stack (vertical) / Row (horizontal) / Grid (2D) —
321
+ * they're easier to read at a glance and have defaults tuned for the 95%
322
+ * case. Flex is the escape hatch, not the default.
323
+ */
324
+ declare const flexVariants: (props?: ({
325
+ direction?: "col" | "row" | "row-reverse" | "col-reverse" | null | undefined;
326
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
327
+ align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
328
+ justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
329
+ wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
330
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
331
+ interface FlexProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexVariants> {
332
+ /** When true, render as the single child element via Radix Slot — lets
333
+ * you stamp Flex's layout classes onto an existing semantic tag without
334
+ * nesting an extra `<div>`. */
335
+ asChild?: boolean;
336
+ }
337
+ declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAttributes<HTMLDivElement>>;
338
+
264
339
  declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
265
340
  declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
266
341
 
@@ -318,7 +393,7 @@ declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.Sli
318
393
  * for a centred narrow column (auth cards, marketing copy).
319
394
  */
320
395
  declare const stackVariants: (props?: ({
321
- gap?: "lg" | "md" | "sm" | "none" | "xs" | "xl" | "2xl" | null | undefined;
396
+ gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
322
397
  align?: "center" | "end" | "start" | "stretch" | null | undefined;
323
398
  } & class_variance_authority_types.ClassProp) | undefined) => string;
324
399
  interface StackProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
@@ -1373,4 +1448,4 @@ declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProp
1373
1448
  */
1374
1449
  declare function ThemeToggle(): React$1.JSX.Element;
1375
1450
 
1376
- export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AppShell, AppShellMain, type AppShellMainProps, AppShellNav, type AppShellNavProps, type AppShellProps, BUILT_IN_INPUTS, Badge, type BaseMediaProps, type BreadcrumbItem, Button, type ButtonShape, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardStyle, CardTitle, type ChartPalette, Checkbox, type ColorIntensity, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FRAGMENT_HEADER, type FontKey, GRADE_PRE_HYDRATION_SCRIPT, type GeneratedTheme, GradeModeSwitcher, GradeThemeProvider, type GradeThemeProviderProps, GradeThemeSwitcher, Input, type InputStyle, Label, LenisProvider, type MediaAspect, type MediaRadius, MediaSurface, type MediaSurfaceProps, type ModeName, type OKLCHTriplet, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PostPreset, Progress, RadioGroup, RadioGroupItem, type RadiusStyle, type Ramp, RivePlayer, type RivePlayerProps, Row, type RowProps, type SceneContext, type SceneFactory, type SceneHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShaderCompileError, type ShaderPreset, ShaderPresetPicker, type ShaderPresetPickerProps, ShaderPresetPreview, type ShaderPresetPreviewProps, type ShadowIntensity, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, type SpacingDensity, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ThemeInput, ThemeToggle, ThreeScene, type ThreeSceneProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, type TypeScalePreset, VideoPlayer, type VideoPlayerProps, mainVariants as appShellMainVariants, navVariants as appShellNavVariants, applyThemeToRoot, badgeVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, duplicateTheme, energyInput, generateTheme, getTheme, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, shaderPresetById, shaderPresets, shellVariants, stackVariants, themeToCSSVars, useGradeTheme, useMaybeGradeTheme, usePrefersReducedMotion };
1451
+ export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AppShell, AppShellMain, type AppShellMainProps, AppShellNav, type AppShellNavProps, type AppShellProps, Avatar, AvatarFallback, AvatarImage, BUILT_IN_INPUTS, Badge, type BaseMediaProps, type BreadcrumbItem, Button, type ButtonShape, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardStyle, CardTitle, type ChartPalette, Checkbox, type ColorIntensity, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FRAGMENT_HEADER, Flex, type FlexProps, type FontKey, GRADE_PRE_HYDRATION_SCRIPT, type GeneratedTheme, GradeModeSwitcher, GradeThemeProvider, type GradeThemeProviderProps, GradeThemeSwitcher, Grid, type GridProps, Input, type InputStyle, Label, LenisProvider, type MediaAspect, type MediaRadius, MediaSurface, type MediaSurfaceProps, type ModeName, type OKLCHTriplet, type Palette, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PostPreset, Progress, RadioGroup, RadioGroupItem, type RadiusStyle, type Ramp, RivePlayer, type RivePlayerProps, Row, type RowProps, type SceneContext, type SceneFactory, type SceneHandle, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShaderCompileError, type ShaderPreset, ShaderPresetPicker, type ShaderPresetPickerProps, ShaderPresetPreview, type ShaderPresetPreviewProps, type ShadowIntensity, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SideMenu, type SideMenuItem, type SideMenuProps, type SideMenuSection, type SimpleTab, SimpleTabs, SimpleTabsContent, SimpleTabsList, type SimpleTabsListProps, SimpleTabsPanel, type SimpleTabsPanelProps, type SimpleTabsProps, SimpleTabsRoot, type SimpleTabsRootProps, SimpleTabsTrigger, type SimpleTabsTriggerProps, Skeleton, Slider, type SpacingDensity, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ThemeInput, ThemeToggle, ThreeScene, type ThreeSceneProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopMenu, type TopMenuProps, TopMenuUser, TopMenuUserItem, type TopMenuUserItemProps, type TopMenuUserProps, TopMenuUserSection, type TypeScalePreset, VideoPlayer, type VideoPlayerProps, mainVariants as appShellMainVariants, navVariants as appShellNavVariants, applyThemeToRoot, badgeVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, duplicateTheme, energyInput, flexVariants, generateTheme, getTheme, gridVariants, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, shaderPresetById, shaderPresets, shellVariants, stackVariants, themeToCSSVars, useGradeTheme, useMaybeGradeTheme, usePrefersReducedMotion };