@gradeui/ui 0.7.0 → 0.8.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.
- package/dist/index.d.mts +78 -8
- package/dist/index.d.ts +78 -8
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -28
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -26,7 +26,7 @@ declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<Accordion
|
|
|
26
26
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
27
27
|
|
|
28
28
|
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
29
|
-
variant?: "destructive" | "success" | "warning" | "info" | "highlight" |
|
|
29
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info" | "highlight" | null | undefined;
|
|
30
30
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
31
31
|
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
32
32
|
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -64,7 +64,7 @@ declare const navVariants: (props?: ({
|
|
|
64
64
|
sticky?: boolean | null | undefined;
|
|
65
65
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
66
|
declare const mainVariants: (props?: ({
|
|
67
|
-
maxWidth?: "
|
|
67
|
+
maxWidth?: "full" | "container" | null | undefined;
|
|
68
68
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
69
69
|
interface AppShellProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof shellVariants> {
|
|
70
70
|
/** Render as the single child element via Radix Slot — lets you stamp the
|
|
@@ -82,7 +82,7 @@ interface AppShellMainProps extends React$1.HTMLAttributes<HTMLElement>, Variant
|
|
|
82
82
|
declare const AppShellMain: React$1.ForwardRefExoticComponent<AppShellMainProps & React$1.RefAttributes<HTMLElement>>;
|
|
83
83
|
|
|
84
84
|
declare const badgeVariants: (props?: ({
|
|
85
|
-
variant?: "
|
|
85
|
+
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
86
|
rounded?: "default" | "full" | null | undefined;
|
|
87
87
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
88
88
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
@@ -90,8 +90,8 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
90
90
|
declare function Badge({ className, variant, rounded, ...props }: BadgeProps): React$1.JSX.Element;
|
|
91
91
|
|
|
92
92
|
declare const buttonVariants: (props?: ({
|
|
93
|
-
variant?: "link" | "
|
|
94
|
-
size?: "
|
|
93
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
94
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
95
95
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
96
96
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
97
97
|
asChild?: boolean;
|
|
@@ -248,7 +248,7 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
|
|
|
248
248
|
* etc.) and is a separate primitive.
|
|
249
249
|
*/
|
|
250
250
|
declare const rowVariants: (props?: ({
|
|
251
|
-
gap?: "
|
|
251
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
252
252
|
align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
|
|
253
253
|
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
254
254
|
wrap?: boolean | null | undefined;
|
|
@@ -261,6 +261,76 @@ interface RowProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
261
261
|
}
|
|
262
262
|
declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
263
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Grid — 2D layout primitive. The partner to Stack and Row.
|
|
266
|
+
*
|
|
267
|
+
* Stack handles vertical, Row handles horizontal, Grid handles the
|
|
268
|
+
* responsive 2D case — most commonly a set of equal-width tiles (stat
|
|
269
|
+
* cards, feature cards, pricing columns) that needs to collapse
|
|
270
|
+
* gracefully on narrow viewports. Without this primitive, every
|
|
271
|
+
* vibe-coded dashboard reinvents `grid grid-cols-1 md:grid-cols-2
|
|
272
|
+
* lg:grid-cols-4` and the settings panel has nothing to mutate.
|
|
273
|
+
*
|
|
274
|
+
* `cols` names the DESIRED desktop column count. Each value is a
|
|
275
|
+
* baked-in responsive ladder that matches the standard pattern for that
|
|
276
|
+
* count (1→2→N for small counts, 2→3→N for denser grids) so the model
|
|
277
|
+
* just writes `<Grid cols="4">` and gets the same behaviour it would
|
|
278
|
+
* hand-roll. If you need bespoke breakpoints, override via `className`.
|
|
279
|
+
*
|
|
280
|
+
* Sharing the `gap` / `align` scale with Stack and Row is deliberate:
|
|
281
|
+
* when the Studio panel offers a "switch layout type" control between
|
|
282
|
+
* Stack / Row / Grid, those props transfer cleanly — only `cols`
|
|
283
|
+
* (Grid-only) and `justify` / `wrap` (Row-only) are lost.
|
|
284
|
+
*/
|
|
285
|
+
declare const gridVariants: (props?: ({
|
|
286
|
+
cols?: "1" | "2" | "3" | "4" | "5" | "6" | "12" | null | undefined;
|
|
287
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
288
|
+
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
289
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
290
|
+
interface GridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
291
|
+
/** When true, render as the single child element via Radix Slot — lets
|
|
292
|
+
* you stamp Grid's layout classes onto an existing semantic tag
|
|
293
|
+
* without nesting an extra `<div>`. */
|
|
294
|
+
asChild?: boolean;
|
|
295
|
+
}
|
|
296
|
+
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Flex — the unopinionated flexbox primitive.
|
|
300
|
+
*
|
|
301
|
+
* The CSS-aligned partner to Stack / Row / Grid. Where Stack and Row bake in
|
|
302
|
+
* a direction and a sensible gap/align default, Flex exposes the raw CSS
|
|
303
|
+
* knobs and ships with CSS's own defaults — direction=row, gap=none,
|
|
304
|
+
* justify=start, align=stretch, wrap=nowrap. Nothing is opinionated; you pay
|
|
305
|
+
* for exactly the props you set.
|
|
306
|
+
*
|
|
307
|
+
* Use Flex when:
|
|
308
|
+
* - You need `direction="col-reverse"` or `"row-reverse"` — Stack and Row
|
|
309
|
+
* can't express either without falling back to className.
|
|
310
|
+
* - You want CSS defaults (stretch alignment, no baked-in gap) rather than
|
|
311
|
+
* Row's "items-center gap-md" starting point.
|
|
312
|
+
* - You're reaching for `className="flex …"` and want the settings-panel
|
|
313
|
+
* editability you lose when hand-rolling utility classes.
|
|
314
|
+
*
|
|
315
|
+
* Otherwise prefer Stack (vertical) / Row (horizontal) / Grid (2D) —
|
|
316
|
+
* they're easier to read at a glance and have defaults tuned for the 95%
|
|
317
|
+
* case. Flex is the escape hatch, not the default.
|
|
318
|
+
*/
|
|
319
|
+
declare const flexVariants: (props?: ({
|
|
320
|
+
direction?: "col" | "row" | "row-reverse" | "col-reverse" | null | undefined;
|
|
321
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
322
|
+
align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
|
|
323
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
324
|
+
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
325
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
326
|
+
interface FlexProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexVariants> {
|
|
327
|
+
/** When true, render as the single child element via Radix Slot — lets
|
|
328
|
+
* you stamp Flex's layout classes onto an existing semantic tag without
|
|
329
|
+
* nesting an extra `<div>`. */
|
|
330
|
+
asChild?: boolean;
|
|
331
|
+
}
|
|
332
|
+
declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
333
|
+
|
|
264
334
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
265
335
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
266
336
|
|
|
@@ -318,7 +388,7 @@ declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.Sli
|
|
|
318
388
|
* for a centred narrow column (auth cards, marketing copy).
|
|
319
389
|
*/
|
|
320
390
|
declare const stackVariants: (props?: ({
|
|
321
|
-
gap?: "
|
|
391
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
322
392
|
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
323
393
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
324
394
|
interface StackProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
|
|
@@ -1373,4 +1443,4 @@ declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProp
|
|
|
1373
1443
|
*/
|
|
1374
1444
|
declare function ThemeToggle(): React$1.JSX.Element;
|
|
1375
1445
|
|
|
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 };
|
|
1446
|
+
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, 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
|
@@ -26,7 +26,7 @@ declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<Accordion
|
|
|
26
26
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
27
27
|
|
|
28
28
|
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
29
|
-
variant?: "destructive" | "success" | "warning" | "info" | "highlight" |
|
|
29
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info" | "highlight" | null | undefined;
|
|
30
30
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
31
31
|
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
32
32
|
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -64,7 +64,7 @@ declare const navVariants: (props?: ({
|
|
|
64
64
|
sticky?: boolean | null | undefined;
|
|
65
65
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
66
|
declare const mainVariants: (props?: ({
|
|
67
|
-
maxWidth?: "
|
|
67
|
+
maxWidth?: "full" | "container" | null | undefined;
|
|
68
68
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
69
69
|
interface AppShellProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof shellVariants> {
|
|
70
70
|
/** Render as the single child element via Radix Slot — lets you stamp the
|
|
@@ -82,7 +82,7 @@ interface AppShellMainProps extends React$1.HTMLAttributes<HTMLElement>, Variant
|
|
|
82
82
|
declare const AppShellMain: React$1.ForwardRefExoticComponent<AppShellMainProps & React$1.RefAttributes<HTMLElement>>;
|
|
83
83
|
|
|
84
84
|
declare const badgeVariants: (props?: ({
|
|
85
|
-
variant?: "
|
|
85
|
+
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
86
|
rounded?: "default" | "full" | null | undefined;
|
|
87
87
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
88
88
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
@@ -90,8 +90,8 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
90
90
|
declare function Badge({ className, variant, rounded, ...props }: BadgeProps): React$1.JSX.Element;
|
|
91
91
|
|
|
92
92
|
declare const buttonVariants: (props?: ({
|
|
93
|
-
variant?: "link" | "
|
|
94
|
-
size?: "
|
|
93
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
94
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
95
95
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
96
96
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
97
97
|
asChild?: boolean;
|
|
@@ -248,7 +248,7 @@ declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupP
|
|
|
248
248
|
* etc.) and is a separate primitive.
|
|
249
249
|
*/
|
|
250
250
|
declare const rowVariants: (props?: ({
|
|
251
|
-
gap?: "
|
|
251
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
252
252
|
align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
|
|
253
253
|
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
254
254
|
wrap?: boolean | null | undefined;
|
|
@@ -261,6 +261,76 @@ interface RowProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
261
261
|
}
|
|
262
262
|
declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
263
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Grid — 2D layout primitive. The partner to Stack and Row.
|
|
266
|
+
*
|
|
267
|
+
* Stack handles vertical, Row handles horizontal, Grid handles the
|
|
268
|
+
* responsive 2D case — most commonly a set of equal-width tiles (stat
|
|
269
|
+
* cards, feature cards, pricing columns) that needs to collapse
|
|
270
|
+
* gracefully on narrow viewports. Without this primitive, every
|
|
271
|
+
* vibe-coded dashboard reinvents `grid grid-cols-1 md:grid-cols-2
|
|
272
|
+
* lg:grid-cols-4` and the settings panel has nothing to mutate.
|
|
273
|
+
*
|
|
274
|
+
* `cols` names the DESIRED desktop column count. Each value is a
|
|
275
|
+
* baked-in responsive ladder that matches the standard pattern for that
|
|
276
|
+
* count (1→2→N for small counts, 2→3→N for denser grids) so the model
|
|
277
|
+
* just writes `<Grid cols="4">` and gets the same behaviour it would
|
|
278
|
+
* hand-roll. If you need bespoke breakpoints, override via `className`.
|
|
279
|
+
*
|
|
280
|
+
* Sharing the `gap` / `align` scale with Stack and Row is deliberate:
|
|
281
|
+
* when the Studio panel offers a "switch layout type" control between
|
|
282
|
+
* Stack / Row / Grid, those props transfer cleanly — only `cols`
|
|
283
|
+
* (Grid-only) and `justify` / `wrap` (Row-only) are lost.
|
|
284
|
+
*/
|
|
285
|
+
declare const gridVariants: (props?: ({
|
|
286
|
+
cols?: "1" | "2" | "3" | "4" | "5" | "6" | "12" | null | undefined;
|
|
287
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
288
|
+
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
289
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
290
|
+
interface GridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
291
|
+
/** When true, render as the single child element via Radix Slot — lets
|
|
292
|
+
* you stamp Grid's layout classes onto an existing semantic tag
|
|
293
|
+
* without nesting an extra `<div>`. */
|
|
294
|
+
asChild?: boolean;
|
|
295
|
+
}
|
|
296
|
+
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Flex — the unopinionated flexbox primitive.
|
|
300
|
+
*
|
|
301
|
+
* The CSS-aligned partner to Stack / Row / Grid. Where Stack and Row bake in
|
|
302
|
+
* a direction and a sensible gap/align default, Flex exposes the raw CSS
|
|
303
|
+
* knobs and ships with CSS's own defaults — direction=row, gap=none,
|
|
304
|
+
* justify=start, align=stretch, wrap=nowrap. Nothing is opinionated; you pay
|
|
305
|
+
* for exactly the props you set.
|
|
306
|
+
*
|
|
307
|
+
* Use Flex when:
|
|
308
|
+
* - You need `direction="col-reverse"` or `"row-reverse"` — Stack and Row
|
|
309
|
+
* can't express either without falling back to className.
|
|
310
|
+
* - You want CSS defaults (stretch alignment, no baked-in gap) rather than
|
|
311
|
+
* Row's "items-center gap-md" starting point.
|
|
312
|
+
* - You're reaching for `className="flex …"` and want the settings-panel
|
|
313
|
+
* editability you lose when hand-rolling utility classes.
|
|
314
|
+
*
|
|
315
|
+
* Otherwise prefer Stack (vertical) / Row (horizontal) / Grid (2D) —
|
|
316
|
+
* they're easier to read at a glance and have defaults tuned for the 95%
|
|
317
|
+
* case. Flex is the escape hatch, not the default.
|
|
318
|
+
*/
|
|
319
|
+
declare const flexVariants: (props?: ({
|
|
320
|
+
direction?: "col" | "row" | "row-reverse" | "col-reverse" | null | undefined;
|
|
321
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
322
|
+
align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
|
|
323
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
324
|
+
wrap?: "wrap" | "nowrap" | "wrap-reverse" | null | undefined;
|
|
325
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
326
|
+
interface FlexProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof flexVariants> {
|
|
327
|
+
/** When true, render as the single child element via Radix Slot — lets
|
|
328
|
+
* you stamp Flex's layout classes onto an existing semantic tag without
|
|
329
|
+
* nesting an extra `<div>`. */
|
|
330
|
+
asChild?: boolean;
|
|
331
|
+
}
|
|
332
|
+
declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
333
|
+
|
|
264
334
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
265
335
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
266
336
|
|
|
@@ -318,7 +388,7 @@ declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.Sli
|
|
|
318
388
|
* for a centred narrow column (auth cards, marketing copy).
|
|
319
389
|
*/
|
|
320
390
|
declare const stackVariants: (props?: ({
|
|
321
|
-
gap?: "
|
|
391
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
322
392
|
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
323
393
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
324
394
|
interface StackProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof stackVariants> {
|
|
@@ -1373,4 +1443,4 @@ declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProp
|
|
|
1373
1443
|
*/
|
|
1374
1444
|
declare function ThemeToggle(): React$1.JSX.Element;
|
|
1375
1445
|
|
|
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 };
|
|
1446
|
+
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, 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 };
|