@codapet/design-system 0.1.7 → 0.1.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 +8 -8
- package/dist/index.mjs +14 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -71,7 +71,7 @@ declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typ
|
|
|
71
71
|
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
72
72
|
|
|
73
73
|
declare const badgeVariants: (props?: ({
|
|
74
|
-
variant?: "default" | "destructive" | "
|
|
74
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
75
75
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
76
76
|
declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
77
77
|
asChild?: boolean;
|
|
@@ -88,8 +88,8 @@ declare function BreadcrumbSeparator({ children, className, ...props }: React$1.
|
|
|
88
88
|
declare function BreadcrumbEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
89
89
|
|
|
90
90
|
declare const buttonVariants: (props?: ({
|
|
91
|
-
variant?: "link" | "
|
|
92
|
-
size?: "
|
|
91
|
+
variant?: "link" | "destructive" | "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive-secondary" | "destructive-tertiary" | null | undefined;
|
|
92
|
+
size?: "md" | "sm" | "lg" | "icon" | null | undefined;
|
|
93
93
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
94
94
|
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
95
95
|
asChild?: boolean;
|
|
@@ -326,16 +326,16 @@ declare function NavigationMenuViewport({ className, ...props }: React$1.Compone
|
|
|
326
326
|
declare function NavigationMenuLink({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
|
|
327
327
|
declare function NavigationMenuIndicator({ className, ...props }: React$1.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
328
328
|
|
|
329
|
-
declare function Pagination({ className, ...props }: React$1.ComponentProps<
|
|
330
|
-
declare function PaginationContent({ className, ...props }: React$1.ComponentProps<
|
|
331
|
-
declare function PaginationItem({ ...props }: React$1.ComponentProps<
|
|
329
|
+
declare function Pagination({ className, ...props }: React$1.ComponentProps<'nav'>): react_jsx_runtime.JSX.Element;
|
|
330
|
+
declare function PaginationContent({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
331
|
+
declare function PaginationItem({ ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
332
332
|
type PaginationLinkProps = {
|
|
333
333
|
isActive?: boolean;
|
|
334
|
-
} & Pick<React$1.ComponentProps<typeof Button>,
|
|
334
|
+
} & Pick<React$1.ComponentProps<typeof Button>, 'size'> & React$1.ComponentProps<'a'>;
|
|
335
335
|
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
336
336
|
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
337
337
|
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
338
|
-
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<
|
|
338
|
+
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
339
339
|
|
|
340
340
|
declare function Popover({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
341
341
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
package/dist/index.mjs
CHANGED
|
@@ -142,27 +142,30 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
142
142
|
import { cva as cva2 } from "class-variance-authority";
|
|
143
143
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
144
144
|
var buttonVariants = cva2(
|
|
145
|
-
"cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-semibold transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
145
|
+
"cursor-pointer active:opacity-70 inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-semibold transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
146
146
|
{
|
|
147
147
|
variants: {
|
|
148
148
|
variant: {
|
|
149
|
-
|
|
150
|
-
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
151
|
-
outline: "text-zinc-800 border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
149
|
+
primary: "bg-primary text-primary-foreground hover:bg-brand-dark",
|
|
152
150
|
secondary: "bg-brand-subtle text-brand-vibrant hover:bg-brand-light border border-brand-light",
|
|
151
|
+
tertiary: "bg-zinc-100 text-zinc-700 hover:bg-zinc-300 hover:border-zinc-300 border border-zinc-200",
|
|
152
|
+
outline: "text-zinc-800 border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
153
153
|
ghost: "text-zinc-800 hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
154
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
154
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
155
|
+
destructive: "bg-red-400 text-white hover:bg-red-900 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
156
|
+
"destructive-secondary": "bg-red-50 border border-red-200 text-red-400 hover:border-red-400 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
157
|
+
"destructive-tertiary": "bg-transparent border border-red-200 text-red-400 hover:border-red-200 hover:bg-red-50 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
|
|
155
158
|
},
|
|
156
159
|
size: {
|
|
157
|
-
|
|
160
|
+
md: "h-10 px-4 py-2 has-[>svg]:px-3 text-lg",
|
|
158
161
|
sm: "h-9 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5 text-base",
|
|
159
162
|
lg: "h-12 rounded-md px-6 has-[>svg]:px-4 text-lg",
|
|
160
|
-
icon: "size-
|
|
163
|
+
icon: "size-8"
|
|
161
164
|
}
|
|
162
165
|
},
|
|
163
166
|
defaultVariants: {
|
|
164
|
-
variant: "
|
|
165
|
-
size: "
|
|
167
|
+
variant: "primary",
|
|
168
|
+
size: "lg"
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
171
|
);
|
|
@@ -2809,7 +2812,7 @@ function PaginationPrevious({
|
|
|
2809
2812
|
PaginationLink,
|
|
2810
2813
|
{
|
|
2811
2814
|
"aria-label": "Go to previous page",
|
|
2812
|
-
size: "
|
|
2815
|
+
size: "sm",
|
|
2813
2816
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
2814
2817
|
...props,
|
|
2815
2818
|
children: [
|
|
@@ -2827,7 +2830,7 @@ function PaginationNext({
|
|
|
2827
2830
|
PaginationLink,
|
|
2828
2831
|
{
|
|
2829
2832
|
"aria-label": "Go to next page",
|
|
2830
|
-
size: "
|
|
2833
|
+
size: "sm",
|
|
2831
2834
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
2832
2835
|
...props,
|
|
2833
2836
|
children: [
|