@codapet/design-system 0.6.6 → 0.6.9
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 +20 -2
- package/dist/index.mjs +164 -54
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +7 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -849,7 +849,7 @@ declare function DisplayHeading({ className, size, asChild, ...props }: React$1.
|
|
|
849
849
|
declare const bodyTextVariants: (props?: ({
|
|
850
850
|
size?: "md" | "sm" | "lg" | "xs" | null | undefined;
|
|
851
851
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
852
|
-
declare function Body({ className, size, asChild, ...props }: React$1.ComponentProps<'
|
|
852
|
+
declare function Body({ className, size, asChild, ...props }: React$1.ComponentProps<'p'> & VariantProps<typeof bodyTextVariants> & {
|
|
853
853
|
asChild?: boolean;
|
|
854
854
|
}): react_jsx_runtime.JSX.Element;
|
|
855
855
|
declare function HeadingXL({ className, asChild, ...props }: React$1.ComponentProps<'h1'> & {
|
|
@@ -870,9 +870,27 @@ declare function HeadingXS({ className, asChild, ...props }: React$1.ComponentPr
|
|
|
870
870
|
declare function HeadingXXS({ className, asChild, ...props }: React$1.ComponentProps<'h6'> & {
|
|
871
871
|
asChild?: boolean;
|
|
872
872
|
}): react_jsx_runtime.JSX.Element;
|
|
873
|
+
declare function HeadingXLMedium({ className, asChild, ...props }: React$1.ComponentProps<'h1'> & {
|
|
874
|
+
asChild?: boolean;
|
|
875
|
+
}): react_jsx_runtime.JSX.Element;
|
|
876
|
+
declare function HeadingLMedium({ className, asChild, ...props }: React$1.ComponentProps<'h2'> & {
|
|
877
|
+
asChild?: boolean;
|
|
878
|
+
}): react_jsx_runtime.JSX.Element;
|
|
879
|
+
declare function HeadingMMedium({ className, asChild, ...props }: React$1.ComponentProps<'h3'> & {
|
|
880
|
+
asChild?: boolean;
|
|
881
|
+
}): react_jsx_runtime.JSX.Element;
|
|
882
|
+
declare function HeadingSMedium({ className, asChild, ...props }: React$1.ComponentProps<'h4'> & {
|
|
883
|
+
asChild?: boolean;
|
|
884
|
+
}): react_jsx_runtime.JSX.Element;
|
|
885
|
+
declare function HeadingXSMedium({ className, asChild, ...props }: React$1.ComponentProps<'h5'> & {
|
|
886
|
+
asChild?: boolean;
|
|
887
|
+
}): react_jsx_runtime.JSX.Element;
|
|
888
|
+
declare function HeadingXXSMedium({ className, asChild, ...props }: React$1.ComponentProps<'h6'> & {
|
|
889
|
+
asChild?: boolean;
|
|
890
|
+
}): react_jsx_runtime.JSX.Element;
|
|
873
891
|
|
|
874
892
|
declare function cn(...inputs: ClassValue[]): string;
|
|
875
893
|
|
|
876
894
|
declare function useIsMobile(): boolean;
|
|
877
895
|
|
|
878
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertBanner, type AlertBannerProps, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AutoResizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, BadgeActionable, type BadgeActionableProps, BadgeInformative, BadgeInformativeGroup, BadgeInformativeItem, type BadgeInformativeProps, BadgeNumber, type BadgeNumberProps, Body, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DateFormat, DateInput, type DateInputProps, DateRangeInput, type DateRangeInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayHeading, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownSelect, DropdownSelectContent, type DropdownSelectContentProps, DropdownSelectLabel, type DropdownSelectLabelProps, DropdownSelectOption, type DropdownSelectOptionProps, type DropdownSelectProps, DropdownSelectTrigger, type DropdownSelectTriggerProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeadingL, HeadingM, HeadingS, HeadingXL, HeadingXS, HeadingXXS, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MultiSelectFreeText, type MultiSelectFreeTextOption, type MultiSelectFreeTextProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTooltipContent, type RichTooltipContentProps, ScrollArea, ScrollBar, SearchInput, type SearchInputProps, type SearchSuggestion, SearchableSelect, SearchableSelectContent, SearchableSelectEmpty, SearchableSelectGroup, SearchableSelectItem, type SearchableSelectOption, type SearchableSelectProps, SearchableSelectTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SmartDialog, SmartDialogClose, SmartDialogContent, SmartDialogDescription, SmartDialogFooter, SmartDialogHeader, SmartDialogTitle, SmartDialogTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type TimeFormat, TimeInput, type TimeInputProps, type TimeValue, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertBannerVariants, badgeActionableVariants, badgeInformativeVariants, badgeNumberVariants, badgeVariants, bodyTextVariants, buttonVariants, cn, displayTextVariants, inputVariants, labelTextVariants, navigationMenuTriggerStyle, progressBarVariants, tabsTriggerVariants, toggleVariants, useFormField, useIsMobile, useSidebar };
|
|
896
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertBanner, type AlertBannerProps, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, AutoResizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, BadgeActionable, type BadgeActionableProps, BadgeInformative, BadgeInformativeGroup, BadgeInformativeItem, type BadgeInformativeProps, BadgeNumber, type BadgeNumberProps, Body, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DateFormat, DateInput, type DateInputProps, DateRangeInput, type DateRangeInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayHeading, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownSelect, DropdownSelectContent, type DropdownSelectContentProps, DropdownSelectLabel, type DropdownSelectLabelProps, DropdownSelectOption, type DropdownSelectOptionProps, type DropdownSelectProps, DropdownSelectTrigger, type DropdownSelectTriggerProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeadingL, HeadingLMedium, HeadingM, HeadingMMedium, HeadingS, HeadingSMedium, HeadingXL, HeadingXLMedium, HeadingXS, HeadingXSMedium, HeadingXXS, HeadingXXSMedium, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MultiSelectFreeText, type MultiSelectFreeTextOption, type MultiSelectFreeTextProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RichTooltipContent, type RichTooltipContentProps, ScrollArea, ScrollBar, SearchInput, type SearchInputProps, type SearchSuggestion, SearchableSelect, SearchableSelectContent, SearchableSelectEmpty, SearchableSelectGroup, SearchableSelectItem, type SearchableSelectOption, type SearchableSelectProps, SearchableSelectTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, SmartDialog, SmartDialogClose, SmartDialogContent, SmartDialogDescription, SmartDialogFooter, SmartDialogHeader, SmartDialogTitle, SmartDialogTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, ThemeProvider, ThemeToggle, type TimeFormat, TimeInput, type TimeInputProps, type TimeValue, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertBannerVariants, badgeActionableVariants, badgeInformativeVariants, badgeNumberVariants, badgeVariants, bodyTextVariants, buttonVariants, cn, displayTextVariants, inputVariants, labelTextVariants, navigationMenuTriggerStyle, progressBarVariants, tabsTriggerVariants, toggleVariants, useFormField, useIsMobile, useSidebar };
|
package/dist/index.mjs
CHANGED
|
@@ -404,25 +404,24 @@ import { jsx as jsx7 } from "react/jsx-runtime";
|
|
|
404
404
|
var textareaBaseStyles = [
|
|
405
405
|
// Base styles aligned with Input
|
|
406
406
|
"placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
407
|
-
"flex w-full min-w-0 rounded-
|
|
407
|
+
"flex w-full min-w-0 rounded-lg border bg-transparent text-base font-medium transition-all duration-400",
|
|
408
408
|
"outline-none font-sans",
|
|
409
409
|
// Disabled
|
|
410
|
-
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-
|
|
411
|
-
// Responsive text size
|
|
412
|
-
"md:text-sm",
|
|
410
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-40",
|
|
413
411
|
// Default state
|
|
414
|
-
"border-
|
|
412
|
+
"border-gray-stroke-default bg-background",
|
|
415
413
|
// Hover/Focus/Active states
|
|
416
|
-
"hover:border-
|
|
417
|
-
"focus:border-focus-ring",
|
|
418
|
-
"active:border-
|
|
414
|
+
"hover:border-focus-ring",
|
|
415
|
+
"focus:border-2 focus:border-focus-ring",
|
|
416
|
+
"active:border-focus-ring",
|
|
419
417
|
// Textarea specific
|
|
420
418
|
"field-sizing-content min-h-16 resize-y px-3 py-2"
|
|
421
419
|
].join(" ");
|
|
422
420
|
var errorStyles = [
|
|
423
|
-
"border-
|
|
424
|
-
"
|
|
425
|
-
"
|
|
421
|
+
"border-error-stroke-default bg-white",
|
|
422
|
+
"hover:border-error-stroke-default",
|
|
423
|
+
"focus:border-2 focus:border-error-stroke-default",
|
|
424
|
+
"active:border-error-stroke-default"
|
|
426
425
|
].join(" ");
|
|
427
426
|
var Textarea = React6.forwardRef(
|
|
428
427
|
({ className, error, ...props }, ref) => {
|
|
@@ -2209,28 +2208,19 @@ var inputVariants = cva8(
|
|
|
2209
2208
|
[
|
|
2210
2209
|
// Base styles
|
|
2211
2210
|
"file:text-foreground-secondary placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
2212
|
-
"flex w-full min-w-0 rounded-
|
|
2211
|
+
"flex w-full min-w-0 rounded-lg border bg-transparent text-base font-medium transition-all duration-400",
|
|
2213
2212
|
"outline-none font-sans",
|
|
2214
2213
|
// File input styles
|
|
2215
2214
|
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
2216
2215
|
// Disabled styles
|
|
2217
|
-
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-
|
|
2218
|
-
// Responsive text size
|
|
2219
|
-
"md:text-sm",
|
|
2220
|
-
// Default state
|
|
2221
|
-
"border-border-default bg-background",
|
|
2222
|
-
// Hover state
|
|
2223
|
-
"hover:border-primary-stroke-default",
|
|
2224
|
-
// Focus state
|
|
2225
|
-
"focus:border-focus-ring",
|
|
2226
|
-
"active:border-brand-normal"
|
|
2216
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-60"
|
|
2227
2217
|
],
|
|
2228
2218
|
{
|
|
2229
2219
|
variants: {
|
|
2230
2220
|
size: {
|
|
2231
|
-
sm: "h-
|
|
2232
|
-
md: "h-
|
|
2233
|
-
lg: "h-
|
|
2221
|
+
sm: "h-10 px-3 py-2 text-base",
|
|
2222
|
+
md: "h-12 px-3 py-2 text-base",
|
|
2223
|
+
lg: "h-14 px-4 py-3 text-base"
|
|
2234
2224
|
}
|
|
2235
2225
|
},
|
|
2236
2226
|
defaultVariants: {
|
|
@@ -2252,11 +2242,17 @@ var Input = React22.forwardRef(
|
|
|
2252
2242
|
error,
|
|
2253
2243
|
...props
|
|
2254
2244
|
}, ref) => {
|
|
2255
|
-
const
|
|
2256
|
-
"border-
|
|
2257
|
-
"
|
|
2258
|
-
"
|
|
2259
|
-
|
|
2245
|
+
const stateStyles = error ? [
|
|
2246
|
+
"border-error-stroke-default bg-error-surface-subtle",
|
|
2247
|
+
"hover:border-error-stroke-default",
|
|
2248
|
+
"focus:border-2 focus:border-error-stroke-default",
|
|
2249
|
+
"active:border-error-stroke-default"
|
|
2250
|
+
] : [
|
|
2251
|
+
"border-gray-stroke-default bg-background",
|
|
2252
|
+
"hover:border-focus-ring",
|
|
2253
|
+
"focus:border-2 focus:border-focus-ring",
|
|
2254
|
+
"active:border-focus-ring"
|
|
2255
|
+
];
|
|
2260
2256
|
if (leftIcon || rightIcon) {
|
|
2261
2257
|
return /* @__PURE__ */ jsxs12("div", { className: "relative", children: [
|
|
2262
2258
|
/* @__PURE__ */ jsx24(
|
|
@@ -2266,9 +2262,9 @@ var Input = React22.forwardRef(
|
|
|
2266
2262
|
"data-slot": "input",
|
|
2267
2263
|
className: cn(
|
|
2268
2264
|
inputVariants({ size }),
|
|
2269
|
-
|
|
2265
|
+
stateStyles,
|
|
2270
2266
|
"peer",
|
|
2271
|
-
leftIcon && "pl-
|
|
2267
|
+
leftIcon && "pl-10",
|
|
2272
2268
|
rightIcon && "pr-10",
|
|
2273
2269
|
className
|
|
2274
2270
|
),
|
|
@@ -2283,13 +2279,13 @@ var Input = React22.forwardRef(
|
|
|
2283
2279
|
className: cn(
|
|
2284
2280
|
"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
2285
2281
|
"transition-colors stroke-[1.5px]",
|
|
2286
|
-
error ? "text-
|
|
2282
|
+
error ? "text-error-stroke-default peer-hover:text-error-stroke-default peer-focus:text-error-stroke-default peer-active:text-error-stroke-default" : "text-muted-foreground peer-hover:text-focus-ring peer-focus:text-focus-ring peer-active:text-focus-ring",
|
|
2287
2283
|
leftIconClassName
|
|
2288
2284
|
),
|
|
2289
2285
|
children: React22.isValidElement(leftIcon) ? (() => {
|
|
2290
2286
|
const iconEl = leftIcon;
|
|
2291
2287
|
return React22.cloneElement(iconEl, {
|
|
2292
|
-
className: cn("h-
|
|
2288
|
+
className: cn("h-5 w-5", iconEl.props.className)
|
|
2293
2289
|
});
|
|
2294
2290
|
})() : leftIcon
|
|
2295
2291
|
}
|
|
@@ -2303,7 +2299,7 @@ var Input = React22.forwardRef(
|
|
|
2303
2299
|
className: cn(
|
|
2304
2300
|
"absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
2305
2301
|
"h-6 w-6 rounded-sm transition-colors",
|
|
2306
|
-
error ? "text-
|
|
2302
|
+
error ? "text-error-stroke-default hover:text-error-stroke-default focus:text-error-stroke-default" : "text-muted-foreground hover:text-focus-ring focus:text-focus-ring",
|
|
2307
2303
|
rightIconClassName
|
|
2308
2304
|
),
|
|
2309
2305
|
"aria-label": "Input action",
|
|
@@ -2311,7 +2307,7 @@ var Input = React22.forwardRef(
|
|
|
2311
2307
|
children: React22.isValidElement(rightIcon) ? (() => {
|
|
2312
2308
|
const iconEl = rightIcon;
|
|
2313
2309
|
return React22.cloneElement(iconEl, {
|
|
2314
|
-
className: cn("h-
|
|
2310
|
+
className: cn("h-5 w-5", iconEl.props.className)
|
|
2315
2311
|
});
|
|
2316
2312
|
})() : rightIcon
|
|
2317
2313
|
}
|
|
@@ -2323,7 +2319,7 @@ var Input = React22.forwardRef(
|
|
|
2323
2319
|
{
|
|
2324
2320
|
type,
|
|
2325
2321
|
"data-slot": "input",
|
|
2326
|
-
className: cn(inputVariants({ size }),
|
|
2322
|
+
className: cn(inputVariants({ size }), stateStyles, className),
|
|
2327
2323
|
ref,
|
|
2328
2324
|
"aria-invalid": error,
|
|
2329
2325
|
...props
|
|
@@ -3543,7 +3539,7 @@ import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
|
3543
3539
|
import { cva as cva9 } from "class-variance-authority";
|
|
3544
3540
|
import "react";
|
|
3545
3541
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3546
|
-
var labelTextVariants = cva9("font-sans font-semibold ", {
|
|
3542
|
+
var labelTextVariants = cva9("font-sans font-semibold text-vibrant-text-body", {
|
|
3547
3543
|
variants: {
|
|
3548
3544
|
size: {
|
|
3549
3545
|
lg: "text-base md:text-lg md:leading-[1.625rem] leading-[1.5rem]",
|
|
@@ -7224,13 +7220,13 @@ import { cva as cva15 } from "class-variance-authority";
|
|
|
7224
7220
|
import "react";
|
|
7225
7221
|
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
7226
7222
|
var displayTextVariants = cva15(
|
|
7227
|
-
"tracking-normal font-normal
|
|
7223
|
+
"tracking-normal font-normal font-serif italic text-vibrant-text-display",
|
|
7228
7224
|
{
|
|
7229
7225
|
variants: {
|
|
7230
7226
|
size: {
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7227
|
+
lg: "text-4xl md:text-[3.25rem] leading-[44px] md:leading-[64px]",
|
|
7228
|
+
md: "text-[1.75rem] md:text-4xl leading-[36px] md:leading-[44px]",
|
|
7229
|
+
sm: "text-lg md:text-xl leading-[26px] md:leading-[28px]"
|
|
7234
7230
|
}
|
|
7235
7231
|
},
|
|
7236
7232
|
defaultVariants: {
|
|
@@ -7254,13 +7250,13 @@ function DisplayHeading({
|
|
|
7254
7250
|
}
|
|
7255
7251
|
);
|
|
7256
7252
|
}
|
|
7257
|
-
var bodyTextVariants = cva15("font-sans ", {
|
|
7253
|
+
var bodyTextVariants = cva15("font-sans text-vibrant-text-body", {
|
|
7258
7254
|
variants: {
|
|
7259
7255
|
size: {
|
|
7260
|
-
lg: "text-lg md:text-xl leading-[
|
|
7261
|
-
md: "text-base
|
|
7262
|
-
sm: "text-sm
|
|
7263
|
-
xs: "text-xs leading-[
|
|
7256
|
+
lg: "text-lg md:text-xl leading-[26px] md:leading-[28px]",
|
|
7257
|
+
md: "text-base leading-[24px]",
|
|
7258
|
+
sm: "text-sm leading-[20px]",
|
|
7259
|
+
xs: "text-xs leading-[16px]"
|
|
7264
7260
|
}
|
|
7265
7261
|
},
|
|
7266
7262
|
defaultVariants: {
|
|
@@ -7277,7 +7273,7 @@ function Body({
|
|
|
7277
7273
|
return /* @__PURE__ */ jsx63(
|
|
7278
7274
|
Comp,
|
|
7279
7275
|
{
|
|
7280
|
-
"data-slot": "
|
|
7276
|
+
"data-slot": "p",
|
|
7281
7277
|
className: cn(bodyTextVariants({ size, className })),
|
|
7282
7278
|
...props
|
|
7283
7279
|
}
|
|
@@ -7294,7 +7290,7 @@ function HeadingXL({
|
|
|
7294
7290
|
{
|
|
7295
7291
|
"data-slot": "h1",
|
|
7296
7292
|
className: cn(
|
|
7297
|
-
"text-2xl md:text-[2rem]
|
|
7293
|
+
"text-2xl md:text-[2rem] leading-[32px] md:leading-[40px] font-semibold font-sans text-vibrant-text-heading",
|
|
7298
7294
|
className
|
|
7299
7295
|
),
|
|
7300
7296
|
...props
|
|
@@ -7312,7 +7308,7 @@ function HeadingL({
|
|
|
7312
7308
|
{
|
|
7313
7309
|
"data-slot": "h2",
|
|
7314
7310
|
className: cn(
|
|
7315
|
-
"
|
|
7311
|
+
"text-[1.25rem] md:text-[1.5rem] leading-[28px] md:leading-[32px] font-semibold font-sans text-vibrant-text-heading",
|
|
7316
7312
|
className
|
|
7317
7313
|
),
|
|
7318
7314
|
...props
|
|
@@ -7330,7 +7326,7 @@ function HeadingM({
|
|
|
7330
7326
|
{
|
|
7331
7327
|
"data-slot": "h3",
|
|
7332
7328
|
className: cn(
|
|
7333
|
-
"text-[1.125rem] md:text-xl
|
|
7329
|
+
"text-[1.125rem] md:text-xl leading-[26px] md:leading-[28px] font-semibold font-sans text-vibrant-text-heading",
|
|
7334
7330
|
className
|
|
7335
7331
|
),
|
|
7336
7332
|
...props
|
|
@@ -7348,7 +7344,7 @@ function HeadingS({
|
|
|
7348
7344
|
{
|
|
7349
7345
|
"data-slot": "h4",
|
|
7350
7346
|
className: cn(
|
|
7351
|
-
"text-base leading-[
|
|
7347
|
+
"text-base leading-[24px] font-semibold font-sans text-vibrant-text-heading",
|
|
7352
7348
|
className
|
|
7353
7349
|
),
|
|
7354
7350
|
...props
|
|
@@ -7366,7 +7362,7 @@ function HeadingXS({
|
|
|
7366
7362
|
{
|
|
7367
7363
|
"data-slot": "h5",
|
|
7368
7364
|
className: cn(
|
|
7369
|
-
"text-sm
|
|
7365
|
+
"text-sm leading-[20px] font-semibold font-sans text-vibrant-text-heading",
|
|
7370
7366
|
className
|
|
7371
7367
|
),
|
|
7372
7368
|
...props
|
|
@@ -7379,12 +7375,120 @@ function HeadingXXS({
|
|
|
7379
7375
|
...props
|
|
7380
7376
|
}) {
|
|
7381
7377
|
const Comp = asChild ? Slot7 : "h6";
|
|
7378
|
+
return /* @__PURE__ */ jsx63(
|
|
7379
|
+
Comp,
|
|
7380
|
+
{
|
|
7381
|
+
"data-slot": "h6",
|
|
7382
|
+
className: cn(
|
|
7383
|
+
"text-xs leading-[16px] font-medium font-sans text-vibrant-text-heading",
|
|
7384
|
+
className
|
|
7385
|
+
),
|
|
7386
|
+
...props
|
|
7387
|
+
}
|
|
7388
|
+
);
|
|
7389
|
+
}
|
|
7390
|
+
function HeadingXLMedium({
|
|
7391
|
+
className,
|
|
7392
|
+
asChild = false,
|
|
7393
|
+
...props
|
|
7394
|
+
}) {
|
|
7395
|
+
const Comp = asChild ? Slot7 : "h1";
|
|
7396
|
+
return /* @__PURE__ */ jsx63(
|
|
7397
|
+
Comp,
|
|
7398
|
+
{
|
|
7399
|
+
"data-slot": "h1",
|
|
7400
|
+
className: cn(
|
|
7401
|
+
"text-2xl md:text-[2rem] leading-[32px] md:leading-[40px] font-medium font-sans text-vibrant-text-heading",
|
|
7402
|
+
className
|
|
7403
|
+
),
|
|
7404
|
+
...props
|
|
7405
|
+
}
|
|
7406
|
+
);
|
|
7407
|
+
}
|
|
7408
|
+
function HeadingLMedium({
|
|
7409
|
+
className,
|
|
7410
|
+
asChild = false,
|
|
7411
|
+
...props
|
|
7412
|
+
}) {
|
|
7413
|
+
const Comp = asChild ? Slot7 : "h2";
|
|
7414
|
+
return /* @__PURE__ */ jsx63(
|
|
7415
|
+
Comp,
|
|
7416
|
+
{
|
|
7417
|
+
"data-slot": "h2",
|
|
7418
|
+
className: cn(
|
|
7419
|
+
"text-[1.25rem] md:text-[1.5rem] leading-[28px] md:leading-[32px] font-medium font-sans text-vibrant-text-heading",
|
|
7420
|
+
className
|
|
7421
|
+
),
|
|
7422
|
+
...props
|
|
7423
|
+
}
|
|
7424
|
+
);
|
|
7425
|
+
}
|
|
7426
|
+
function HeadingMMedium({
|
|
7427
|
+
className,
|
|
7428
|
+
asChild = false,
|
|
7429
|
+
...props
|
|
7430
|
+
}) {
|
|
7431
|
+
const Comp = asChild ? Slot7 : "h3";
|
|
7432
|
+
return /* @__PURE__ */ jsx63(
|
|
7433
|
+
Comp,
|
|
7434
|
+
{
|
|
7435
|
+
"data-slot": "h3",
|
|
7436
|
+
className: cn(
|
|
7437
|
+
"text-[1.125rem] md:text-xl leading-[26px] md:leading-[28px] font-medium font-sans text-vibrant-text-heading",
|
|
7438
|
+
className
|
|
7439
|
+
),
|
|
7440
|
+
...props
|
|
7441
|
+
}
|
|
7442
|
+
);
|
|
7443
|
+
}
|
|
7444
|
+
function HeadingSMedium({
|
|
7445
|
+
className,
|
|
7446
|
+
asChild = false,
|
|
7447
|
+
...props
|
|
7448
|
+
}) {
|
|
7449
|
+
const Comp = asChild ? Slot7 : "h4";
|
|
7450
|
+
return /* @__PURE__ */ jsx63(
|
|
7451
|
+
Comp,
|
|
7452
|
+
{
|
|
7453
|
+
"data-slot": "h4",
|
|
7454
|
+
className: cn(
|
|
7455
|
+
"text-base leading-[24px] font-medium font-sans text-vibrant-text-heading",
|
|
7456
|
+
className
|
|
7457
|
+
),
|
|
7458
|
+
...props
|
|
7459
|
+
}
|
|
7460
|
+
);
|
|
7461
|
+
}
|
|
7462
|
+
function HeadingXSMedium({
|
|
7463
|
+
className,
|
|
7464
|
+
asChild = false,
|
|
7465
|
+
...props
|
|
7466
|
+
}) {
|
|
7467
|
+
const Comp = asChild ? Slot7 : "h5";
|
|
7382
7468
|
return /* @__PURE__ */ jsx63(
|
|
7383
7469
|
Comp,
|
|
7384
7470
|
{
|
|
7385
7471
|
"data-slot": "h5",
|
|
7386
7472
|
className: cn(
|
|
7387
|
-
"text-
|
|
7473
|
+
"text-sm leading-[20px] font-medium font-sans text-vibrant-text-heading",
|
|
7474
|
+
className
|
|
7475
|
+
),
|
|
7476
|
+
...props
|
|
7477
|
+
}
|
|
7478
|
+
);
|
|
7479
|
+
}
|
|
7480
|
+
function HeadingXXSMedium({
|
|
7481
|
+
className,
|
|
7482
|
+
asChild = false,
|
|
7483
|
+
...props
|
|
7484
|
+
}) {
|
|
7485
|
+
const Comp = asChild ? Slot7 : "h6";
|
|
7486
|
+
return /* @__PURE__ */ jsx63(
|
|
7487
|
+
Comp,
|
|
7488
|
+
{
|
|
7489
|
+
"data-slot": "h6",
|
|
7490
|
+
className: cn(
|
|
7491
|
+
"text-xs leading-[16px] font-medium font-sans text-vibrant-text-heading",
|
|
7388
7492
|
className
|
|
7389
7493
|
),
|
|
7390
7494
|
...props
|
|
@@ -7533,11 +7637,17 @@ export {
|
|
|
7533
7637
|
FormLabel,
|
|
7534
7638
|
FormMessage,
|
|
7535
7639
|
HeadingL,
|
|
7640
|
+
HeadingLMedium,
|
|
7536
7641
|
HeadingM,
|
|
7642
|
+
HeadingMMedium,
|
|
7537
7643
|
HeadingS,
|
|
7644
|
+
HeadingSMedium,
|
|
7538
7645
|
HeadingXL,
|
|
7646
|
+
HeadingXLMedium,
|
|
7539
7647
|
HeadingXS,
|
|
7648
|
+
HeadingXSMedium,
|
|
7540
7649
|
HeadingXXS,
|
|
7650
|
+
HeadingXXSMedium,
|
|
7541
7651
|
HoverCard,
|
|
7542
7652
|
HoverCardContent,
|
|
7543
7653
|
HoverCardTrigger,
|