@nextlyhq/ui 0.0.2-alpha.35 → 0.0.2-alpha.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -11
- package/dist/index.cjs +936 -655
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -109
- package/dist/index.d.ts +29 -109
- package/dist/index.mjs +685 -387
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.scoped.css +2 -0
- package/dist/tailwind-preset.cjs +98 -0
- package/dist/tailwind-preset.cjs.map +1 -0
- package/dist/tailwind-preset.d.cts +80 -0
- package/dist/tailwind-preset.d.ts +80 -0
- package/dist/tailwind-preset.mjs +93 -0
- package/dist/tailwind-preset.mjs.map +1 -0
- package/dist/theme.css +63 -29
- package/dist/utils.cjs +13 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +17 -0
- package/dist/utils.d.ts +17 -0
- package/dist/utils.mjs +11 -0
- package/dist/utils.mjs.map +1 -0
- package/docs/plugin-ui-authoring.md +26 -26
- package/package.json +47 -13
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ComponentProps, TextareaHTMLAttributes, HTMLAttributes,
|
|
3
|
+
import { ButtonHTMLAttributes, ComponentProps, TextareaHTMLAttributes, HTMLAttributes, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
4
4
|
import * as class_variance_authority from 'class-variance-authority';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -24,7 +24,6 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
24
24
|
import { LucideProps } from 'lucide-react';
|
|
25
25
|
import { ToasterProps } from 'sonner';
|
|
26
26
|
export { ToasterProps, toast } from 'sonner';
|
|
27
|
-
import { ClassValue } from 'clsx';
|
|
28
27
|
|
|
29
28
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
30
29
|
asChild?: boolean;
|
|
@@ -218,6 +217,33 @@ declare const CardContent: react.ForwardRefExoticComponent<CardContentProps & re
|
|
|
218
217
|
type CardFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
219
218
|
declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
220
219
|
|
|
220
|
+
type Gap = 0 | 1 | 2 | 3 | 4 | 6 | 8;
|
|
221
|
+
type Cols = 1 | 2 | 3 | 4 | 6;
|
|
222
|
+
interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
223
|
+
/** Main-axis direction. Default `col`. */
|
|
224
|
+
direction?: "col" | "row";
|
|
225
|
+
/** Gap between children (Tailwind spacing step). Default `4`. */
|
|
226
|
+
gap?: Gap;
|
|
227
|
+
}
|
|
228
|
+
/** Flex stack: vertical by default, horizontal with `direction="row"`. */
|
|
229
|
+
declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
231
|
+
/** Column count. Default `2`. */
|
|
232
|
+
cols?: Cols;
|
|
233
|
+
/** Gap between cells. Default `4`. */
|
|
234
|
+
gap?: Gap;
|
|
235
|
+
}
|
|
236
|
+
/** Simple fixed-column grid. */
|
|
237
|
+
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
interface StatProps extends HTMLAttributes<HTMLDivElement> {
|
|
239
|
+
/** Muted label above the value. */
|
|
240
|
+
label: string;
|
|
241
|
+
/** The emphasized value (string or node). */
|
|
242
|
+
value: ReactNode;
|
|
243
|
+
}
|
|
244
|
+
/** Labelled metric block for dashboard-style plugin widgets. */
|
|
245
|
+
declare const Stat: react.ForwardRefExoticComponent<StatProps & react.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
|
|
221
247
|
/**
|
|
222
248
|
* Alert Component - Design System Specification
|
|
223
249
|
*
|
|
@@ -2112,110 +2138,4 @@ interface PortalProviderProps {
|
|
|
2112
2138
|
declare function PortalProvider({ container, children }: PortalProviderProps): react_jsx_runtime.JSX.Element;
|
|
2113
2139
|
declare function usePortalContainer(): HTMLElement | undefined;
|
|
2114
2140
|
|
|
2115
|
-
|
|
2116
|
-
* Utility function to merge class names with Tailwind CSS support.
|
|
2117
|
-
*
|
|
2118
|
-
* Combines clsx for conditional class names with tailwind-merge
|
|
2119
|
-
* to properly handle Tailwind CSS class conflicts.
|
|
2120
|
-
*
|
|
2121
|
-
* @example
|
|
2122
|
-
* ```typescript
|
|
2123
|
-
* cn('px-2 py-1', 'px-4') // => 'py-1 px-4'
|
|
2124
|
-
* cn('text-muted-foreground', condition && 'text-foreground')
|
|
2125
|
-
* ```
|
|
2126
|
-
*/
|
|
2127
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
2128
|
-
|
|
2129
|
-
/**
|
|
2130
|
-
* Tailwind CSS preset for @nextlyhq/ui components.
|
|
2131
|
-
*
|
|
2132
|
-
* Defines the CSS custom property contract that all UI components expect.
|
|
2133
|
-
* Consumers must provide the actual CSS variable values in their stylesheets.
|
|
2134
|
-
*
|
|
2135
|
-
* Usage (Tailwind v3):
|
|
2136
|
-
* // tailwind.config.ts
|
|
2137
|
-
* import uiPreset from "@nextlyhq/ui/tailwind-preset";
|
|
2138
|
-
* export default { presets: [uiPreset], ... };
|
|
2139
|
-
*
|
|
2140
|
-
* Usage (Tailwind v4 with @config):
|
|
2141
|
-
* Consumers define the equivalent @theme tokens in their CSS.
|
|
2142
|
-
* This file serves as the reference contract.
|
|
2143
|
-
*/
|
|
2144
|
-
declare const uiPreset: {
|
|
2145
|
-
theme: {
|
|
2146
|
-
extend: {
|
|
2147
|
-
colors: {
|
|
2148
|
-
border: string;
|
|
2149
|
-
input: string;
|
|
2150
|
-
ring: string;
|
|
2151
|
-
background: string;
|
|
2152
|
-
foreground: string;
|
|
2153
|
-
primary: {
|
|
2154
|
-
DEFAULT: string;
|
|
2155
|
-
foreground: string;
|
|
2156
|
-
};
|
|
2157
|
-
secondary: {
|
|
2158
|
-
DEFAULT: string;
|
|
2159
|
-
foreground: string;
|
|
2160
|
-
};
|
|
2161
|
-
destructive: {
|
|
2162
|
-
DEFAULT: string;
|
|
2163
|
-
foreground: string;
|
|
2164
|
-
};
|
|
2165
|
-
success: {
|
|
2166
|
-
DEFAULT: string;
|
|
2167
|
-
foreground: string;
|
|
2168
|
-
};
|
|
2169
|
-
warning: {
|
|
2170
|
-
DEFAULT: string;
|
|
2171
|
-
foreground: string;
|
|
2172
|
-
};
|
|
2173
|
-
muted: {
|
|
2174
|
-
DEFAULT: string;
|
|
2175
|
-
foreground: string;
|
|
2176
|
-
};
|
|
2177
|
-
accent: {
|
|
2178
|
-
DEFAULT: string;
|
|
2179
|
-
foreground: string;
|
|
2180
|
-
};
|
|
2181
|
-
popover: {
|
|
2182
|
-
DEFAULT: string;
|
|
2183
|
-
foreground: string;
|
|
2184
|
-
};
|
|
2185
|
-
card: {
|
|
2186
|
-
DEFAULT: string;
|
|
2187
|
-
foreground: string;
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
borderRadius: {
|
|
2191
|
-
lg: string;
|
|
2192
|
-
md: string;
|
|
2193
|
-
sm: string;
|
|
2194
|
-
};
|
|
2195
|
-
keyframes: {
|
|
2196
|
-
"accordion-down": {
|
|
2197
|
-
from: {
|
|
2198
|
-
height: string;
|
|
2199
|
-
};
|
|
2200
|
-
to: {
|
|
2201
|
-
height: string;
|
|
2202
|
-
};
|
|
2203
|
-
};
|
|
2204
|
-
"accordion-up": {
|
|
2205
|
-
from: {
|
|
2206
|
-
height: string;
|
|
2207
|
-
};
|
|
2208
|
-
to: {
|
|
2209
|
-
height: string;
|
|
2210
|
-
};
|
|
2211
|
-
};
|
|
2212
|
-
};
|
|
2213
|
-
animation: {
|
|
2214
|
-
"accordion-down": string;
|
|
2215
|
-
"accordion-up": string;
|
|
2216
|
-
};
|
|
2217
|
-
};
|
|
2218
|
-
};
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FilterInfo, FormLabelWithTooltip, type FormLabelWithTooltipProps, Input, type InputProps, Label, type ListResponse, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, type SortInfo, Spinner, type SpinnerProps, Switch, Table, TableBody, TableCaption, TableCell, TableEmpty, type TableEmptyProps, TableError, type TableErrorProps, TableFooter, TableHead, TableHeader, TableLoading, type TableParams, TableRow, TableSearch, type TableSearchProps, TableSkeleton, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, cn, dialogContentVariants, inputVariants, progressVariants, selectTriggerVariants, sheetVariants, spinnerVariants, uiPreset, usePortalContainer };
|
|
2141
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FilterInfo, FormLabelWithTooltip, type FormLabelWithTooltipProps, Grid, type GridProps, Input, type InputProps, Label, type ListResponse, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, type SortInfo, Spinner, type SpinnerProps, Stack, type StackProps, Stat, type StatProps, Switch, Table, TableBody, TableCaption, TableCell, TableEmpty, type TableEmptyProps, TableError, type TableErrorProps, TableFooter, TableHead, TableHeader, TableLoading, type TableParams, TableRow, TableSearch, type TableSearchProps, TableSkeleton, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, progressVariants, selectTriggerVariants, sheetVariants, spinnerVariants, usePortalContainer };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ComponentProps, TextareaHTMLAttributes, HTMLAttributes,
|
|
3
|
+
import { ButtonHTMLAttributes, ComponentProps, TextareaHTMLAttributes, HTMLAttributes, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
4
4
|
import * as class_variance_authority from 'class-variance-authority';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -24,7 +24,6 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
24
24
|
import { LucideProps } from 'lucide-react';
|
|
25
25
|
import { ToasterProps } from 'sonner';
|
|
26
26
|
export { ToasterProps, toast } from 'sonner';
|
|
27
|
-
import { ClassValue } from 'clsx';
|
|
28
27
|
|
|
29
28
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
30
29
|
asChild?: boolean;
|
|
@@ -218,6 +217,33 @@ declare const CardContent: react.ForwardRefExoticComponent<CardContentProps & re
|
|
|
218
217
|
type CardFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
219
218
|
declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
220
219
|
|
|
220
|
+
type Gap = 0 | 1 | 2 | 3 | 4 | 6 | 8;
|
|
221
|
+
type Cols = 1 | 2 | 3 | 4 | 6;
|
|
222
|
+
interface StackProps extends HTMLAttributes<HTMLDivElement> {
|
|
223
|
+
/** Main-axis direction. Default `col`. */
|
|
224
|
+
direction?: "col" | "row";
|
|
225
|
+
/** Gap between children (Tailwind spacing step). Default `4`. */
|
|
226
|
+
gap?: Gap;
|
|
227
|
+
}
|
|
228
|
+
/** Flex stack: vertical by default, horizontal with `direction="row"`. */
|
|
229
|
+
declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
interface GridProps extends HTMLAttributes<HTMLDivElement> {
|
|
231
|
+
/** Column count. Default `2`. */
|
|
232
|
+
cols?: Cols;
|
|
233
|
+
/** Gap between cells. Default `4`. */
|
|
234
|
+
gap?: Gap;
|
|
235
|
+
}
|
|
236
|
+
/** Simple fixed-column grid. */
|
|
237
|
+
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
interface StatProps extends HTMLAttributes<HTMLDivElement> {
|
|
239
|
+
/** Muted label above the value. */
|
|
240
|
+
label: string;
|
|
241
|
+
/** The emphasized value (string or node). */
|
|
242
|
+
value: ReactNode;
|
|
243
|
+
}
|
|
244
|
+
/** Labelled metric block for dashboard-style plugin widgets. */
|
|
245
|
+
declare const Stat: react.ForwardRefExoticComponent<StatProps & react.RefAttributes<HTMLDivElement>>;
|
|
246
|
+
|
|
221
247
|
/**
|
|
222
248
|
* Alert Component - Design System Specification
|
|
223
249
|
*
|
|
@@ -2112,110 +2138,4 @@ interface PortalProviderProps {
|
|
|
2112
2138
|
declare function PortalProvider({ container, children }: PortalProviderProps): react_jsx_runtime.JSX.Element;
|
|
2113
2139
|
declare function usePortalContainer(): HTMLElement | undefined;
|
|
2114
2140
|
|
|
2115
|
-
|
|
2116
|
-
* Utility function to merge class names with Tailwind CSS support.
|
|
2117
|
-
*
|
|
2118
|
-
* Combines clsx for conditional class names with tailwind-merge
|
|
2119
|
-
* to properly handle Tailwind CSS class conflicts.
|
|
2120
|
-
*
|
|
2121
|
-
* @example
|
|
2122
|
-
* ```typescript
|
|
2123
|
-
* cn('px-2 py-1', 'px-4') // => 'py-1 px-4'
|
|
2124
|
-
* cn('text-muted-foreground', condition && 'text-foreground')
|
|
2125
|
-
* ```
|
|
2126
|
-
*/
|
|
2127
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
2128
|
-
|
|
2129
|
-
/**
|
|
2130
|
-
* Tailwind CSS preset for @nextlyhq/ui components.
|
|
2131
|
-
*
|
|
2132
|
-
* Defines the CSS custom property contract that all UI components expect.
|
|
2133
|
-
* Consumers must provide the actual CSS variable values in their stylesheets.
|
|
2134
|
-
*
|
|
2135
|
-
* Usage (Tailwind v3):
|
|
2136
|
-
* // tailwind.config.ts
|
|
2137
|
-
* import uiPreset from "@nextlyhq/ui/tailwind-preset";
|
|
2138
|
-
* export default { presets: [uiPreset], ... };
|
|
2139
|
-
*
|
|
2140
|
-
* Usage (Tailwind v4 with @config):
|
|
2141
|
-
* Consumers define the equivalent @theme tokens in their CSS.
|
|
2142
|
-
* This file serves as the reference contract.
|
|
2143
|
-
*/
|
|
2144
|
-
declare const uiPreset: {
|
|
2145
|
-
theme: {
|
|
2146
|
-
extend: {
|
|
2147
|
-
colors: {
|
|
2148
|
-
border: string;
|
|
2149
|
-
input: string;
|
|
2150
|
-
ring: string;
|
|
2151
|
-
background: string;
|
|
2152
|
-
foreground: string;
|
|
2153
|
-
primary: {
|
|
2154
|
-
DEFAULT: string;
|
|
2155
|
-
foreground: string;
|
|
2156
|
-
};
|
|
2157
|
-
secondary: {
|
|
2158
|
-
DEFAULT: string;
|
|
2159
|
-
foreground: string;
|
|
2160
|
-
};
|
|
2161
|
-
destructive: {
|
|
2162
|
-
DEFAULT: string;
|
|
2163
|
-
foreground: string;
|
|
2164
|
-
};
|
|
2165
|
-
success: {
|
|
2166
|
-
DEFAULT: string;
|
|
2167
|
-
foreground: string;
|
|
2168
|
-
};
|
|
2169
|
-
warning: {
|
|
2170
|
-
DEFAULT: string;
|
|
2171
|
-
foreground: string;
|
|
2172
|
-
};
|
|
2173
|
-
muted: {
|
|
2174
|
-
DEFAULT: string;
|
|
2175
|
-
foreground: string;
|
|
2176
|
-
};
|
|
2177
|
-
accent: {
|
|
2178
|
-
DEFAULT: string;
|
|
2179
|
-
foreground: string;
|
|
2180
|
-
};
|
|
2181
|
-
popover: {
|
|
2182
|
-
DEFAULT: string;
|
|
2183
|
-
foreground: string;
|
|
2184
|
-
};
|
|
2185
|
-
card: {
|
|
2186
|
-
DEFAULT: string;
|
|
2187
|
-
foreground: string;
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
borderRadius: {
|
|
2191
|
-
lg: string;
|
|
2192
|
-
md: string;
|
|
2193
|
-
sm: string;
|
|
2194
|
-
};
|
|
2195
|
-
keyframes: {
|
|
2196
|
-
"accordion-down": {
|
|
2197
|
-
from: {
|
|
2198
|
-
height: string;
|
|
2199
|
-
};
|
|
2200
|
-
to: {
|
|
2201
|
-
height: string;
|
|
2202
|
-
};
|
|
2203
|
-
};
|
|
2204
|
-
"accordion-up": {
|
|
2205
|
-
from: {
|
|
2206
|
-
height: string;
|
|
2207
|
-
};
|
|
2208
|
-
to: {
|
|
2209
|
-
height: string;
|
|
2210
|
-
};
|
|
2211
|
-
};
|
|
2212
|
-
};
|
|
2213
|
-
animation: {
|
|
2214
|
-
"accordion-down": string;
|
|
2215
|
-
"accordion-up": string;
|
|
2216
|
-
};
|
|
2217
|
-
};
|
|
2218
|
-
};
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FilterInfo, FormLabelWithTooltip, type FormLabelWithTooltipProps, Input, type InputProps, Label, type ListResponse, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, type SortInfo, Spinner, type SpinnerProps, Switch, Table, TableBody, TableCaption, TableCell, TableEmpty, type TableEmptyProps, TableError, type TableErrorProps, TableFooter, TableHead, TableHeader, TableLoading, type TableParams, TableRow, TableSearch, type TableSearchProps, TableSkeleton, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, cn, dialogContentVariants, inputVariants, progressVariants, selectTriggerVariants, sheetVariants, spinnerVariants, uiPreset, usePortalContainer };
|
|
2141
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FilterInfo, FormLabelWithTooltip, type FormLabelWithTooltipProps, Grid, type GridProps, Input, type InputProps, Label, type ListResponse, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, type SortInfo, Spinner, type SpinnerProps, Stack, type StackProps, Stat, type StatProps, Switch, Table, TableBody, TableCaption, TableCell, TableEmpty, type TableEmptyProps, TableError, type TableErrorProps, TableFooter, TableHead, TableHeader, TableLoading, type TableParams, TableRow, TableSearch, type TableSearchProps, TableSkeleton, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, progressVariants, selectTriggerVariants, sheetVariants, spinnerVariants, usePortalContainer };
|