@gradeui/ui 0.6.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 +122 -2
- package/dist/index.d.ts +122 -2
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -29
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -31,6 +31,56 @@ declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
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>>;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* AppShell — top-level page scaffold for an app-like layout.
|
|
36
|
+
*
|
|
37
|
+
* The Studio was missing a named "app layout" primitive — without one,
|
|
38
|
+
* agent-generated pages either freestyle grids or reinvent the nav-plus-
|
|
39
|
+
* content structure every time. AppShell gives them one component with a
|
|
40
|
+
* small, bounded set of layout variants so vibe-coded prototypes land in a
|
|
41
|
+
* recognisable shape: a nav region (top, side, or none) plus a main region
|
|
42
|
+
* that optionally constrains its content width.
|
|
43
|
+
*
|
|
44
|
+
* It is deliberately *just* structure: no collapse state, no context, no
|
|
45
|
+
* runtime JS. Nav content is whatever the caller drops in — a SideMenu,
|
|
46
|
+
* a TopMenu, or a hand-rolled `<nav>`. Keeping it dumb means it renders
|
|
47
|
+
* fine on the server and can be styled by consumers without fighting a
|
|
48
|
+
* behaviour model.
|
|
49
|
+
*
|
|
50
|
+
* Variants:
|
|
51
|
+
* - `nav` — "none" | "top" | "side". Chooses the grid structure.
|
|
52
|
+
* - `maxWidth` — "full" | "container". Caps the main region width for
|
|
53
|
+
* marketing-style pages without the caller having to wrap
|
|
54
|
+
* their content in a max-w-* div.
|
|
55
|
+
* - `sticky` — boolean. Sticks top nav to the viewport top / side nav
|
|
56
|
+
* to the viewport when the page scrolls. Sensible default
|
|
57
|
+
* for app chrome.
|
|
58
|
+
*/
|
|
59
|
+
declare const shellVariants: (props?: ({
|
|
60
|
+
nav?: "none" | "top" | "side" | null | undefined;
|
|
61
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
62
|
+
declare const navVariants: (props?: ({
|
|
63
|
+
placement?: "none" | "top" | "side" | null | undefined;
|
|
64
|
+
sticky?: boolean | null | undefined;
|
|
65
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
|
+
declare const mainVariants: (props?: ({
|
|
67
|
+
maxWidth?: "full" | "container" | null | undefined;
|
|
68
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
69
|
+
interface AppShellProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof shellVariants> {
|
|
70
|
+
/** Render as the single child element via Radix Slot — lets you stamp the
|
|
71
|
+
* shell layout onto an existing root tag without an extra wrapper. */
|
|
72
|
+
asChild?: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare const AppShell: React$1.ForwardRefExoticComponent<AppShellProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
interface AppShellNavProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof navVariants> {
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
}
|
|
78
|
+
declare const AppShellNav: React$1.ForwardRefExoticComponent<AppShellNavProps & React$1.RefAttributes<HTMLElement>>;
|
|
79
|
+
interface AppShellMainProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof mainVariants> {
|
|
80
|
+
asChild?: boolean;
|
|
81
|
+
}
|
|
82
|
+
declare const AppShellMain: React$1.ForwardRefExoticComponent<AppShellMainProps & React$1.RefAttributes<HTMLElement>>;
|
|
83
|
+
|
|
34
84
|
declare const badgeVariants: (props?: ({
|
|
35
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;
|
|
36
86
|
rounded?: "default" | "full" | null | undefined;
|
|
@@ -211,6 +261,76 @@ interface RowProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
211
261
|
}
|
|
212
262
|
declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
213
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
|
+
|
|
214
334
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
215
335
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
216
336
|
|
|
@@ -233,7 +353,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
233
353
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
234
354
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
235
355
|
declare const sheetVariants: (props?: ({
|
|
236
|
-
side?: "
|
|
356
|
+
side?: "top" | "left" | "right" | "bottom" | null | undefined;
|
|
237
357
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
238
358
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
239
359
|
}
|
|
@@ -1323,4 +1443,4 @@ declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProp
|
|
|
1323
1443
|
*/
|
|
1324
1444
|
declare function ThemeToggle(): React$1.JSX.Element;
|
|
1325
1445
|
|
|
1326
|
-
export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, 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, applyThemeToRoot, badgeVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, duplicateTheme, energyInput, generateTheme, getTheme, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, shaderPresetById, shaderPresets, 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
|
@@ -31,6 +31,56 @@ declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HT
|
|
|
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>>;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* AppShell — top-level page scaffold for an app-like layout.
|
|
36
|
+
*
|
|
37
|
+
* The Studio was missing a named "app layout" primitive — without one,
|
|
38
|
+
* agent-generated pages either freestyle grids or reinvent the nav-plus-
|
|
39
|
+
* content structure every time. AppShell gives them one component with a
|
|
40
|
+
* small, bounded set of layout variants so vibe-coded prototypes land in a
|
|
41
|
+
* recognisable shape: a nav region (top, side, or none) plus a main region
|
|
42
|
+
* that optionally constrains its content width.
|
|
43
|
+
*
|
|
44
|
+
* It is deliberately *just* structure: no collapse state, no context, no
|
|
45
|
+
* runtime JS. Nav content is whatever the caller drops in — a SideMenu,
|
|
46
|
+
* a TopMenu, or a hand-rolled `<nav>`. Keeping it dumb means it renders
|
|
47
|
+
* fine on the server and can be styled by consumers without fighting a
|
|
48
|
+
* behaviour model.
|
|
49
|
+
*
|
|
50
|
+
* Variants:
|
|
51
|
+
* - `nav` — "none" | "top" | "side". Chooses the grid structure.
|
|
52
|
+
* - `maxWidth` — "full" | "container". Caps the main region width for
|
|
53
|
+
* marketing-style pages without the caller having to wrap
|
|
54
|
+
* their content in a max-w-* div.
|
|
55
|
+
* - `sticky` — boolean. Sticks top nav to the viewport top / side nav
|
|
56
|
+
* to the viewport when the page scrolls. Sensible default
|
|
57
|
+
* for app chrome.
|
|
58
|
+
*/
|
|
59
|
+
declare const shellVariants: (props?: ({
|
|
60
|
+
nav?: "none" | "top" | "side" | null | undefined;
|
|
61
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
62
|
+
declare const navVariants: (props?: ({
|
|
63
|
+
placement?: "none" | "top" | "side" | null | undefined;
|
|
64
|
+
sticky?: boolean | null | undefined;
|
|
65
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
|
+
declare const mainVariants: (props?: ({
|
|
67
|
+
maxWidth?: "full" | "container" | null | undefined;
|
|
68
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
69
|
+
interface AppShellProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof shellVariants> {
|
|
70
|
+
/** Render as the single child element via Radix Slot — lets you stamp the
|
|
71
|
+
* shell layout onto an existing root tag without an extra wrapper. */
|
|
72
|
+
asChild?: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare const AppShell: React$1.ForwardRefExoticComponent<AppShellProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
interface AppShellNavProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof navVariants> {
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
}
|
|
78
|
+
declare const AppShellNav: React$1.ForwardRefExoticComponent<AppShellNavProps & React$1.RefAttributes<HTMLElement>>;
|
|
79
|
+
interface AppShellMainProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof mainVariants> {
|
|
80
|
+
asChild?: boolean;
|
|
81
|
+
}
|
|
82
|
+
declare const AppShellMain: React$1.ForwardRefExoticComponent<AppShellMainProps & React$1.RefAttributes<HTMLElement>>;
|
|
83
|
+
|
|
34
84
|
declare const badgeVariants: (props?: ({
|
|
35
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;
|
|
36
86
|
rounded?: "default" | "full" | null | undefined;
|
|
@@ -211,6 +261,76 @@ interface RowProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<
|
|
|
211
261
|
}
|
|
212
262
|
declare const Row: React$1.ForwardRefExoticComponent<RowProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
213
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
|
+
|
|
214
334
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
215
335
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
216
336
|
|
|
@@ -233,7 +353,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
233
353
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
234
354
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
235
355
|
declare const sheetVariants: (props?: ({
|
|
236
|
-
side?: "
|
|
356
|
+
side?: "top" | "left" | "right" | "bottom" | null | undefined;
|
|
237
357
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
238
358
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
239
359
|
}
|
|
@@ -1323,4 +1443,4 @@ declare function GradeModeSwitcher({ className, variant }: GradeModeSwitcherProp
|
|
|
1323
1443
|
*/
|
|
1324
1444
|
declare function ThemeToggle(): React$1.JSX.Element;
|
|
1325
1445
|
|
|
1326
|
-
export { ALL_MODES, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, 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, applyThemeToRoot, badgeVariants, buildFragmentShaderScene, builtInThemes, buttonVariants, calmInput, cn, defaultPostPreset, defaultThemeId, deleteUserTheme, duplicateTheme, energyInput, generateTheme, getTheme, listThemes, listUserThemes, loadUserThemeInput, postPresets, rowVariants, saveUserTheme, sceneRegistry, shaderPresetById, shaderPresets, 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 };
|