@codapet/design-system 0.6.5 → 0.6.8
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 +161 -50
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +61 -34
- 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
|
@@ -149,9 +149,9 @@ var alertBannerVariants = cva2(
|
|
|
149
149
|
{
|
|
150
150
|
variants: {
|
|
151
151
|
type: {
|
|
152
|
-
informative: "bg-alert-bg-informative border-gray-stroke-light",
|
|
153
|
-
error: "bg-alert-bg-error border-error-stroke-light",
|
|
154
|
-
success: "bg-success-surface-subtle border-success-stroke-light"
|
|
152
|
+
informative: "bg-alert-bg-informative border-gray-stroke-light [&_svg]:text-[#52525c] dark:[&_svg]:text-[#a1a1aa]",
|
|
153
|
+
error: "bg-alert-bg-error border-error-stroke-light [&_svg]:text-[#ff6467] dark:[&_svg]:text-[#ff8486]",
|
|
154
|
+
success: "bg-success-surface-subtle border-success-stroke-light [&_svg]:text-[#00a63e] dark:[&_svg]:text-[#34d399]"
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
defaultVariants: {
|
|
@@ -212,14 +212,14 @@ var buttonVariants = cva3(
|
|
|
212
212
|
variants: {
|
|
213
213
|
variant: {
|
|
214
214
|
primary: "bg-primary text-primary-foreground hover:bg-brand-dark active:bg-active-primary",
|
|
215
|
-
secondary: "bg-brand-subtle text-
|
|
216
|
-
tertiary: "bg-gray-surface-light text-foreground-secondary hover:bg-gray-surface-default border border-gray-stroke-light active:bg-
|
|
215
|
+
secondary: "bg-brand-subtle text-primary-stroke-default hover:bg-primary-surface-light border border-brand-light active:bg-icon-disabled",
|
|
216
|
+
tertiary: "bg-gray-surface-light text-foreground-secondary hover:bg-gray-surface-default border border-gray-stroke-light hover:border-transparent active:border-transparent active:bg-[#9f9fa9] dark:active:bg-[#71717a]",
|
|
217
217
|
outline: "text-foreground-secondary border border-gray-surface-default bg-background hover:bg-gray-surface-light hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 active:bg-gray-surface-default",
|
|
218
|
-
ghost: "text-
|
|
218
|
+
ghost: "text-primary-stroke-default hover:bg-primary-surface-subtle dark:hover:bg-accent/50 active:bg-primary-surface-light",
|
|
219
219
|
"ghost-secondary": "text-foreground-secondary hover:bg-gray-surface-light hover:text-accent-foreground dark:hover:bg-accent/50 active:bg-gray-surface-default",
|
|
220
220
|
"ghost-destructive": "bg-transparent text-destructive-text hover:bg-destructive-hover focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-destructive-active",
|
|
221
221
|
link: "text-foreground-secondary underline-offset-4 underline hover:bg-none active:bg-none hover:text-brand-vibrant",
|
|
222
|
-
destructive: "bg-error-surface-default text-primary-foreground hover:bg-
|
|
222
|
+
destructive: "bg-error-surface-default text-primary-foreground hover:bg-red-800 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-error-surface-dark",
|
|
223
223
|
"destructive-secondary": "bg-error-surface-light border border-error-stroke-light text-destructive-text hover:border-error-surface-default focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-destructive-active",
|
|
224
224
|
"destructive-tertiary": "bg-transparent border border-error-stroke-light text-destructive-text hover:bg-destructive-hover focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 active:bg-destructive-active"
|
|
225
225
|
},
|
|
@@ -2209,28 +2209,19 @@ var inputVariants = cva8(
|
|
|
2209
2209
|
[
|
|
2210
2210
|
// Base styles
|
|
2211
2211
|
"file:text-foreground-secondary placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
2212
|
-
"flex w-full min-w-0 rounded-
|
|
2212
|
+
"flex w-full min-w-0 rounded-lg border bg-transparent text-base font-medium transition-all duration-400",
|
|
2213
2213
|
"outline-none font-sans",
|
|
2214
2214
|
// File input styles
|
|
2215
2215
|
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
2216
2216
|
// 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"
|
|
2217
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-60"
|
|
2227
2218
|
],
|
|
2228
2219
|
{
|
|
2229
2220
|
variants: {
|
|
2230
2221
|
size: {
|
|
2231
|
-
sm: "h-
|
|
2232
|
-
md: "h-
|
|
2233
|
-
lg: "h-
|
|
2222
|
+
sm: "h-10 px-3 py-2 text-base",
|
|
2223
|
+
md: "h-12 px-3 py-2 text-base",
|
|
2224
|
+
lg: "h-14 px-4 py-3 text-base"
|
|
2234
2225
|
}
|
|
2235
2226
|
},
|
|
2236
2227
|
defaultVariants: {
|
|
@@ -2252,11 +2243,17 @@ var Input = React22.forwardRef(
|
|
|
2252
2243
|
error,
|
|
2253
2244
|
...props
|
|
2254
2245
|
}, ref) => {
|
|
2255
|
-
const
|
|
2256
|
-
"border-
|
|
2257
|
-
"
|
|
2258
|
-
"
|
|
2259
|
-
|
|
2246
|
+
const stateStyles = error ? [
|
|
2247
|
+
"border-error-stroke-default bg-error-surface-subtle",
|
|
2248
|
+
"hover:border-error-stroke-default",
|
|
2249
|
+
"focus:border-2 focus:border-error-stroke-default",
|
|
2250
|
+
"active:border-error-stroke-default"
|
|
2251
|
+
] : [
|
|
2252
|
+
"border-gray-stroke-default bg-background",
|
|
2253
|
+
"hover:border-focus-ring",
|
|
2254
|
+
"focus:border-2 focus:border-focus-ring",
|
|
2255
|
+
"active:border-focus-ring"
|
|
2256
|
+
];
|
|
2260
2257
|
if (leftIcon || rightIcon) {
|
|
2261
2258
|
return /* @__PURE__ */ jsxs12("div", { className: "relative", children: [
|
|
2262
2259
|
/* @__PURE__ */ jsx24(
|
|
@@ -2266,9 +2263,9 @@ var Input = React22.forwardRef(
|
|
|
2266
2263
|
"data-slot": "input",
|
|
2267
2264
|
className: cn(
|
|
2268
2265
|
inputVariants({ size }),
|
|
2269
|
-
|
|
2266
|
+
stateStyles,
|
|
2270
2267
|
"peer",
|
|
2271
|
-
leftIcon && "pl-
|
|
2268
|
+
leftIcon && "pl-10",
|
|
2272
2269
|
rightIcon && "pr-10",
|
|
2273
2270
|
className
|
|
2274
2271
|
),
|
|
@@ -2283,13 +2280,13 @@ var Input = React22.forwardRef(
|
|
|
2283
2280
|
className: cn(
|
|
2284
2281
|
"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
2285
2282
|
"transition-colors stroke-[1.5px]",
|
|
2286
|
-
error ? "text-
|
|
2283
|
+
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
2284
|
leftIconClassName
|
|
2288
2285
|
),
|
|
2289
2286
|
children: React22.isValidElement(leftIcon) ? (() => {
|
|
2290
2287
|
const iconEl = leftIcon;
|
|
2291
2288
|
return React22.cloneElement(iconEl, {
|
|
2292
|
-
className: cn("h-
|
|
2289
|
+
className: cn("h-5 w-5", iconEl.props.className)
|
|
2293
2290
|
});
|
|
2294
2291
|
})() : leftIcon
|
|
2295
2292
|
}
|
|
@@ -2303,7 +2300,7 @@ var Input = React22.forwardRef(
|
|
|
2303
2300
|
className: cn(
|
|
2304
2301
|
"absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
2305
2302
|
"h-6 w-6 rounded-sm transition-colors",
|
|
2306
|
-
error ? "text-
|
|
2303
|
+
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
2304
|
rightIconClassName
|
|
2308
2305
|
),
|
|
2309
2306
|
"aria-label": "Input action",
|
|
@@ -2311,7 +2308,7 @@ var Input = React22.forwardRef(
|
|
|
2311
2308
|
children: React22.isValidElement(rightIcon) ? (() => {
|
|
2312
2309
|
const iconEl = rightIcon;
|
|
2313
2310
|
return React22.cloneElement(iconEl, {
|
|
2314
|
-
className: cn("h-
|
|
2311
|
+
className: cn("h-5 w-5", iconEl.props.className)
|
|
2315
2312
|
});
|
|
2316
2313
|
})() : rightIcon
|
|
2317
2314
|
}
|
|
@@ -2323,7 +2320,7 @@ var Input = React22.forwardRef(
|
|
|
2323
2320
|
{
|
|
2324
2321
|
type,
|
|
2325
2322
|
"data-slot": "input",
|
|
2326
|
-
className: cn(inputVariants({ size }),
|
|
2323
|
+
className: cn(inputVariants({ size }), stateStyles, className),
|
|
2327
2324
|
ref,
|
|
2328
2325
|
"aria-invalid": error,
|
|
2329
2326
|
...props
|
|
@@ -3543,7 +3540,7 @@ import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
|
3543
3540
|
import { cva as cva9 } from "class-variance-authority";
|
|
3544
3541
|
import "react";
|
|
3545
3542
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3546
|
-
var labelTextVariants = cva9("font-sans font-semibold ", {
|
|
3543
|
+
var labelTextVariants = cva9("font-sans font-semibold text-vibrant-text-body", {
|
|
3547
3544
|
variants: {
|
|
3548
3545
|
size: {
|
|
3549
3546
|
lg: "text-base md:text-lg md:leading-[1.625rem] leading-[1.5rem]",
|
|
@@ -7224,13 +7221,13 @@ import { cva as cva15 } from "class-variance-authority";
|
|
|
7224
7221
|
import "react";
|
|
7225
7222
|
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
7226
7223
|
var displayTextVariants = cva15(
|
|
7227
|
-
"tracking-normal font-normal
|
|
7224
|
+
"tracking-normal font-normal font-serif italic text-vibrant-text-display",
|
|
7228
7225
|
{
|
|
7229
7226
|
variants: {
|
|
7230
7227
|
size: {
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7228
|
+
lg: "text-4xl md:text-[3.25rem] leading-[44px] md:leading-[64px]",
|
|
7229
|
+
md: "text-[1.75rem] md:text-4xl leading-[36px] md:leading-[44px]",
|
|
7230
|
+
sm: "text-lg md:text-xl leading-[26px] md:leading-[28px]"
|
|
7234
7231
|
}
|
|
7235
7232
|
},
|
|
7236
7233
|
defaultVariants: {
|
|
@@ -7254,13 +7251,13 @@ function DisplayHeading({
|
|
|
7254
7251
|
}
|
|
7255
7252
|
);
|
|
7256
7253
|
}
|
|
7257
|
-
var bodyTextVariants = cva15("font-sans ", {
|
|
7254
|
+
var bodyTextVariants = cva15("font-sans text-vibrant-text-body", {
|
|
7258
7255
|
variants: {
|
|
7259
7256
|
size: {
|
|
7260
|
-
lg: "text-lg md:text-xl leading-[
|
|
7261
|
-
md: "text-base
|
|
7262
|
-
sm: "text-sm
|
|
7263
|
-
xs: "text-xs leading-[
|
|
7257
|
+
lg: "text-lg md:text-xl leading-[26px] md:leading-[28px]",
|
|
7258
|
+
md: "text-base leading-[24px]",
|
|
7259
|
+
sm: "text-sm leading-[20px]",
|
|
7260
|
+
xs: "text-xs leading-[16px]"
|
|
7264
7261
|
}
|
|
7265
7262
|
},
|
|
7266
7263
|
defaultVariants: {
|
|
@@ -7277,7 +7274,7 @@ function Body({
|
|
|
7277
7274
|
return /* @__PURE__ */ jsx63(
|
|
7278
7275
|
Comp,
|
|
7279
7276
|
{
|
|
7280
|
-
"data-slot": "
|
|
7277
|
+
"data-slot": "p",
|
|
7281
7278
|
className: cn(bodyTextVariants({ size, className })),
|
|
7282
7279
|
...props
|
|
7283
7280
|
}
|
|
@@ -7294,7 +7291,7 @@ function HeadingXL({
|
|
|
7294
7291
|
{
|
|
7295
7292
|
"data-slot": "h1",
|
|
7296
7293
|
className: cn(
|
|
7297
|
-
"text-2xl md:text-[2rem]
|
|
7294
|
+
"text-2xl md:text-[2rem] leading-[32px] md:leading-[40px] font-semibold font-sans text-vibrant-text-heading",
|
|
7298
7295
|
className
|
|
7299
7296
|
),
|
|
7300
7297
|
...props
|
|
@@ -7312,7 +7309,7 @@ function HeadingL({
|
|
|
7312
7309
|
{
|
|
7313
7310
|
"data-slot": "h2",
|
|
7314
7311
|
className: cn(
|
|
7315
|
-
"
|
|
7312
|
+
"text-[1.25rem] md:text-[1.5rem] leading-[28px] md:leading-[32px] font-semibold font-sans text-vibrant-text-heading",
|
|
7316
7313
|
className
|
|
7317
7314
|
),
|
|
7318
7315
|
...props
|
|
@@ -7330,7 +7327,7 @@ function HeadingM({
|
|
|
7330
7327
|
{
|
|
7331
7328
|
"data-slot": "h3",
|
|
7332
7329
|
className: cn(
|
|
7333
|
-
"text-[1.125rem] md:text-xl
|
|
7330
|
+
"text-[1.125rem] md:text-xl leading-[26px] md:leading-[28px] font-semibold font-sans text-vibrant-text-heading",
|
|
7334
7331
|
className
|
|
7335
7332
|
),
|
|
7336
7333
|
...props
|
|
@@ -7348,7 +7345,7 @@ function HeadingS({
|
|
|
7348
7345
|
{
|
|
7349
7346
|
"data-slot": "h4",
|
|
7350
7347
|
className: cn(
|
|
7351
|
-
"text-base leading-[
|
|
7348
|
+
"text-base leading-[24px] font-semibold font-sans text-vibrant-text-heading",
|
|
7352
7349
|
className
|
|
7353
7350
|
),
|
|
7354
7351
|
...props
|
|
@@ -7366,7 +7363,7 @@ function HeadingXS({
|
|
|
7366
7363
|
{
|
|
7367
7364
|
"data-slot": "h5",
|
|
7368
7365
|
className: cn(
|
|
7369
|
-
"text-sm
|
|
7366
|
+
"text-sm leading-[20px] font-semibold font-sans text-vibrant-text-heading",
|
|
7370
7367
|
className
|
|
7371
7368
|
),
|
|
7372
7369
|
...props
|
|
@@ -7379,12 +7376,120 @@ function HeadingXXS({
|
|
|
7379
7376
|
...props
|
|
7380
7377
|
}) {
|
|
7381
7378
|
const Comp = asChild ? Slot7 : "h6";
|
|
7379
|
+
return /* @__PURE__ */ jsx63(
|
|
7380
|
+
Comp,
|
|
7381
|
+
{
|
|
7382
|
+
"data-slot": "h6",
|
|
7383
|
+
className: cn(
|
|
7384
|
+
"text-xs leading-[16px] font-medium font-sans text-vibrant-text-heading",
|
|
7385
|
+
className
|
|
7386
|
+
),
|
|
7387
|
+
...props
|
|
7388
|
+
}
|
|
7389
|
+
);
|
|
7390
|
+
}
|
|
7391
|
+
function HeadingXLMedium({
|
|
7392
|
+
className,
|
|
7393
|
+
asChild = false,
|
|
7394
|
+
...props
|
|
7395
|
+
}) {
|
|
7396
|
+
const Comp = asChild ? Slot7 : "h1";
|
|
7397
|
+
return /* @__PURE__ */ jsx63(
|
|
7398
|
+
Comp,
|
|
7399
|
+
{
|
|
7400
|
+
"data-slot": "h1",
|
|
7401
|
+
className: cn(
|
|
7402
|
+
"text-2xl md:text-[2rem] leading-[32px] md:leading-[40px] font-medium font-sans text-vibrant-text-heading",
|
|
7403
|
+
className
|
|
7404
|
+
),
|
|
7405
|
+
...props
|
|
7406
|
+
}
|
|
7407
|
+
);
|
|
7408
|
+
}
|
|
7409
|
+
function HeadingLMedium({
|
|
7410
|
+
className,
|
|
7411
|
+
asChild = false,
|
|
7412
|
+
...props
|
|
7413
|
+
}) {
|
|
7414
|
+
const Comp = asChild ? Slot7 : "h2";
|
|
7415
|
+
return /* @__PURE__ */ jsx63(
|
|
7416
|
+
Comp,
|
|
7417
|
+
{
|
|
7418
|
+
"data-slot": "h2",
|
|
7419
|
+
className: cn(
|
|
7420
|
+
"text-[1.25rem] md:text-[1.5rem] leading-[28px] md:leading-[32px] font-medium font-sans text-vibrant-text-heading",
|
|
7421
|
+
className
|
|
7422
|
+
),
|
|
7423
|
+
...props
|
|
7424
|
+
}
|
|
7425
|
+
);
|
|
7426
|
+
}
|
|
7427
|
+
function HeadingMMedium({
|
|
7428
|
+
className,
|
|
7429
|
+
asChild = false,
|
|
7430
|
+
...props
|
|
7431
|
+
}) {
|
|
7432
|
+
const Comp = asChild ? Slot7 : "h3";
|
|
7433
|
+
return /* @__PURE__ */ jsx63(
|
|
7434
|
+
Comp,
|
|
7435
|
+
{
|
|
7436
|
+
"data-slot": "h3",
|
|
7437
|
+
className: cn(
|
|
7438
|
+
"text-[1.125rem] md:text-xl leading-[26px] md:leading-[28px] font-medium font-sans text-vibrant-text-heading",
|
|
7439
|
+
className
|
|
7440
|
+
),
|
|
7441
|
+
...props
|
|
7442
|
+
}
|
|
7443
|
+
);
|
|
7444
|
+
}
|
|
7445
|
+
function HeadingSMedium({
|
|
7446
|
+
className,
|
|
7447
|
+
asChild = false,
|
|
7448
|
+
...props
|
|
7449
|
+
}) {
|
|
7450
|
+
const Comp = asChild ? Slot7 : "h4";
|
|
7451
|
+
return /* @__PURE__ */ jsx63(
|
|
7452
|
+
Comp,
|
|
7453
|
+
{
|
|
7454
|
+
"data-slot": "h4",
|
|
7455
|
+
className: cn(
|
|
7456
|
+
"text-base leading-[24px] font-medium font-sans text-vibrant-text-heading",
|
|
7457
|
+
className
|
|
7458
|
+
),
|
|
7459
|
+
...props
|
|
7460
|
+
}
|
|
7461
|
+
);
|
|
7462
|
+
}
|
|
7463
|
+
function HeadingXSMedium({
|
|
7464
|
+
className,
|
|
7465
|
+
asChild = false,
|
|
7466
|
+
...props
|
|
7467
|
+
}) {
|
|
7468
|
+
const Comp = asChild ? Slot7 : "h5";
|
|
7382
7469
|
return /* @__PURE__ */ jsx63(
|
|
7383
7470
|
Comp,
|
|
7384
7471
|
{
|
|
7385
7472
|
"data-slot": "h5",
|
|
7386
7473
|
className: cn(
|
|
7387
|
-
"text-
|
|
7474
|
+
"text-sm leading-[20px] font-medium font-sans text-vibrant-text-heading",
|
|
7475
|
+
className
|
|
7476
|
+
),
|
|
7477
|
+
...props
|
|
7478
|
+
}
|
|
7479
|
+
);
|
|
7480
|
+
}
|
|
7481
|
+
function HeadingXXSMedium({
|
|
7482
|
+
className,
|
|
7483
|
+
asChild = false,
|
|
7484
|
+
...props
|
|
7485
|
+
}) {
|
|
7486
|
+
const Comp = asChild ? Slot7 : "h6";
|
|
7487
|
+
return /* @__PURE__ */ jsx63(
|
|
7488
|
+
Comp,
|
|
7489
|
+
{
|
|
7490
|
+
"data-slot": "h6",
|
|
7491
|
+
className: cn(
|
|
7492
|
+
"text-xs leading-[16px] font-medium font-sans text-vibrant-text-heading",
|
|
7388
7493
|
className
|
|
7389
7494
|
),
|
|
7390
7495
|
...props
|
|
@@ -7533,11 +7638,17 @@ export {
|
|
|
7533
7638
|
FormLabel,
|
|
7534
7639
|
FormMessage,
|
|
7535
7640
|
HeadingL,
|
|
7641
|
+
HeadingLMedium,
|
|
7536
7642
|
HeadingM,
|
|
7643
|
+
HeadingMMedium,
|
|
7537
7644
|
HeadingS,
|
|
7645
|
+
HeadingSMedium,
|
|
7538
7646
|
HeadingXL,
|
|
7647
|
+
HeadingXLMedium,
|
|
7539
7648
|
HeadingXS,
|
|
7649
|
+
HeadingXSMedium,
|
|
7540
7650
|
HeadingXXS,
|
|
7651
|
+
HeadingXXSMedium,
|
|
7541
7652
|
HoverCard,
|
|
7542
7653
|
HoverCardContent,
|
|
7543
7654
|
HoverCardTrigger,
|