@codapet/design-system 0.3.0 → 0.3.1
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 +2 -2
- package/dist/index.mjs +15 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -176,8 +176,8 @@ declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<t
|
|
|
176
176
|
declare function DialogContent({ className, children, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
177
177
|
showCloseButton?: boolean;
|
|
178
178
|
}): react_jsx_runtime.JSX.Element;
|
|
179
|
-
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<
|
|
180
|
-
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<
|
|
179
|
+
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
180
|
+
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
181
181
|
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
182
182
|
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
183
183
|
|
package/dist/index.mjs
CHANGED
|
@@ -48,7 +48,7 @@ function AccordionTrigger({
|
|
|
48
48
|
...props,
|
|
49
49
|
children: [
|
|
50
50
|
children,
|
|
51
|
-
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-
|
|
51
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-400" })
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
) });
|
|
@@ -142,7 +142,7 @@ import { cva as cva2 } from "class-variance-authority";
|
|
|
142
142
|
import "react";
|
|
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-
|
|
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 relative select-none will-change-auto focus-visible:before:absolute focus-visible:before:-inset-[3px] focus-visible:before:rounded-lg focus-visible:before:ring-2 focus-visible:before:ring-blue-500/80 focus-visible:before:pointer-events-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive duration-400",
|
|
146
146
|
{
|
|
147
147
|
variants: {
|
|
148
148
|
variant: {
|
|
@@ -1223,7 +1223,7 @@ function Checkbox({
|
|
|
1223
1223
|
{
|
|
1224
1224
|
"data-slot": "checkbox",
|
|
1225
1225
|
className: cn(
|
|
1226
|
-
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border
|
|
1226
|
+
"group peer border-input dark:bg-input/30 transition-colors duration-400 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:before:absolute focus-visible:before:-inset-[3px] focus:ring-offset-1 focus:ring-offset-brand-text-vibrant",
|
|
1227
1227
|
className
|
|
1228
1228
|
),
|
|
1229
1229
|
...props,
|
|
@@ -1231,7 +1231,8 @@ function Checkbox({
|
|
|
1231
1231
|
CheckboxPrimitive.Indicator,
|
|
1232
1232
|
{
|
|
1233
1233
|
"data-slot": "checkbox-indicator",
|
|
1234
|
-
|
|
1234
|
+
forceMount: true,
|
|
1235
|
+
className: "flex items-center justify-center text-current transition-opacity duration-400 opacity-0 group-data-[state=checked]:opacity-100",
|
|
1235
1236
|
children: /* @__PURE__ */ jsx13(Check, { className: "size-3.5" })
|
|
1236
1237
|
}
|
|
1237
1238
|
)
|
|
@@ -1329,7 +1330,7 @@ function DialogContent({
|
|
|
1329
1330
|
{
|
|
1330
1331
|
"data-slot": "dialog-content",
|
|
1331
1332
|
className: cn(
|
|
1332
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-
|
|
1333
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-400 sm:max-w-lg",
|
|
1333
1334
|
className
|
|
1334
1335
|
),
|
|
1335
1336
|
...props,
|
|
@@ -2292,7 +2293,7 @@ var inputVariants = cva5(
|
|
|
2292
2293
|
[
|
|
2293
2294
|
// Base styles
|
|
2294
2295
|
"file:text-zinc-800 placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
2295
|
-
"flex w-full min-w-0 rounded-md border bg-transparent text-base transition-all duration-
|
|
2296
|
+
"flex w-full min-w-0 rounded-md border bg-transparent text-base transition-all duration-400",
|
|
2296
2297
|
"outline-none font-sans",
|
|
2297
2298
|
// File input styles
|
|
2298
2299
|
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
@@ -2790,7 +2791,7 @@ function NavigationMenuTrigger({
|
|
|
2790
2791
|
/* @__PURE__ */ jsx26(
|
|
2791
2792
|
ChevronDownIcon3,
|
|
2792
2793
|
{
|
|
2793
|
-
className: "relative top-[1px] ml-1 size-3 transition duration-
|
|
2794
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-400 group-data-[state=open]:rotate-180",
|
|
2794
2795
|
"aria-hidden": "true"
|
|
2795
2796
|
}
|
|
2796
2797
|
)
|
|
@@ -2808,7 +2809,7 @@ function NavigationMenuContent({
|
|
|
2808
2809
|
"data-slot": "navigation-menu-content",
|
|
2809
2810
|
className: cn(
|
|
2810
2811
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
2811
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-
|
|
2812
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-400 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
2812
2813
|
className
|
|
2813
2814
|
),
|
|
2814
2815
|
...props
|
|
@@ -3084,7 +3085,7 @@ function RadioGroupItem({
|
|
|
3084
3085
|
{
|
|
3085
3086
|
"data-slot": "radio-group-item",
|
|
3086
3087
|
className: cn(
|
|
3087
|
-
"border-input text-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-
|
|
3088
|
+
"border-input text-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-all duration-400 outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary",
|
|
3088
3089
|
className
|
|
3089
3090
|
),
|
|
3090
3091
|
...props,
|
|
@@ -3092,8 +3093,8 @@ function RadioGroupItem({
|
|
|
3092
3093
|
RadioGroupPrimitive.Indicator,
|
|
3093
3094
|
{
|
|
3094
3095
|
"data-slot": "radio-group-indicator",
|
|
3095
|
-
className: "relative flex items-center justify-center
|
|
3096
|
-
children: /* @__PURE__ */ jsx30(CircleIcon4, { className: "fill-white absolute top-1/2 left-1/2 size-1.5 -translate-x-1/2 -translate-y-1/2
|
|
3096
|
+
className: "relative flex items-center justify-center",
|
|
3097
|
+
children: /* @__PURE__ */ jsx30(CircleIcon4, { className: "fill-white absolute top-1/2 left-1/2 size-1.5 -translate-x-1/2 -translate-y-1/2" })
|
|
3097
3098
|
}
|
|
3098
3099
|
)
|
|
3099
3100
|
}
|
|
@@ -4289,7 +4290,7 @@ function Switch({
|
|
|
4289
4290
|
{
|
|
4290
4291
|
"data-slot": "switch",
|
|
4291
4292
|
className: cn(
|
|
4292
|
-
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-brand-text-vibrant dark:data-[state=unchecked]:bg-input/80 inline-flex h-[
|
|
4293
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-brand-text-vibrant dark:data-[state=unchecked]:bg-input/80 inline-flex h-[24px] w-[40px] shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:ring-offset-1 ",
|
|
4293
4294
|
className
|
|
4294
4295
|
),
|
|
4295
4296
|
...props,
|
|
@@ -4298,7 +4299,7 @@ function Switch({
|
|
|
4298
4299
|
{
|
|
4299
4300
|
"data-slot": "switch-thumb",
|
|
4300
4301
|
className: cn(
|
|
4301
|
-
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-
|
|
4302
|
+
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-5 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-3px)] data-[state=unchecked]:translate-x-[1px]"
|
|
4302
4303
|
)
|
|
4303
4304
|
}
|
|
4304
4305
|
)
|
|
@@ -4481,7 +4482,7 @@ import { jsx as jsx44 } from "react/jsx-runtime";
|
|
|
4481
4482
|
var textareaBaseStyles = [
|
|
4482
4483
|
// Base styles aligned with Input
|
|
4483
4484
|
"placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
4484
|
-
"flex w-full min-w-0 rounded-md border bg-transparent text-base shadow-xs transition-all duration-
|
|
4485
|
+
"flex w-full min-w-0 rounded-md border bg-transparent text-base shadow-xs transition-all duration-400",
|
|
4485
4486
|
"outline-none font-sans",
|
|
4486
4487
|
// Disabled
|
|
4487
4488
|
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|