@ancatag/at-design 0.3.0
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 +537 -0
- package/dist/components/Sheet.d.ts +20 -0
- package/dist/components/Sheet.d.ts.map +1 -0
- package/dist/components/Sheet.js +26 -0
- package/dist/components/Sheet.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +21 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +27 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +9 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +23 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/avatar.d.ts +7 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +12 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +10 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +21 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/bottom-sheet.d.ts +16 -0
- package/dist/components/bottom-sheet.d.ts.map +1 -0
- package/dist/components/bottom-sheet.js +13 -0
- package/dist/components/bottom-sheet.js.map +1 -0
- package/dist/components/button.d.ts +12 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +34 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card.d.ts +9 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +17 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/checkbox.d.ts +5 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +10 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/combobox.d.ts +19 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.js +101 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/dialog.d.ts +20 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +24 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +28 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +36 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/error-page.d.ts +105 -0
- package/dist/components/error-page.d.ts.map +1 -0
- package/dist/components/error-page.js +99 -0
- package/dist/components/error-page.js.map +1 -0
- package/dist/components/glass-card.d.ts +12 -0
- package/dist/components/glass-card.d.ts.map +1 -0
- package/dist/components/glass-card.js +15 -0
- package/dist/components/glass-card.js.map +1 -0
- package/dist/components/icon-badge.d.ts +15 -0
- package/dist/components/icon-badge.d.ts.map +1 -0
- package/dist/components/icon-badge.js +77 -0
- package/dist/components/icon-badge.js.map +1 -0
- package/dist/components/input.d.ts +6 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +9 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +6 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +11 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/progress.d.ts +5 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +9 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.d.ts +6 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +15 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/responsive-table.d.ts +21 -0
- package/dist/components/responsive-table.d.ts.map +1 -0
- package/dist/components/responsive-table.js +48 -0
- package/dist/components/responsive-table.js.map +1 -0
- package/dist/components/select.d.ts +14 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +27 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/skeleton.d.ts +3 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +7 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +5 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +9 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/stat-card.d.ts +17 -0
- package/dist/components/stat-card.d.ts.map +1 -0
- package/dist/components/stat-card.js +23 -0
- package/dist/components/stat-card.js.map +1 -0
- package/dist/components/switch.d.ts +5 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +9 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +11 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +21 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +8 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +14 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +6 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +9 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toast.d.ts +6 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.js +14 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/tooltip.d.ts +8 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +12 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +6 -0
- package/dist/utils/cn.js.map +1 -0
- package/package.json +96 -0
- package/src/components/Sheet.tsx +117 -0
- package/src/components/alert-dialog.tsx +138 -0
- package/src/components/alert.tsx +58 -0
- package/src/components/avatar.tsx +48 -0
- package/src/components/badge.tsx +36 -0
- package/src/components/bottom-sheet.tsx +68 -0
- package/src/components/button.tsx +56 -0
- package/src/components/card.tsx +85 -0
- package/src/components/checkbox.tsx +30 -0
- package/src/components/combobox.tsx +246 -0
- package/src/components/dialog.tsx +122 -0
- package/src/components/dropdown-menu.tsx +198 -0
- package/src/components/error-page.tsx +368 -0
- package/src/components/glass-card.tsx +37 -0
- package/src/components/icon-badge.tsx +126 -0
- package/src/components/input.tsx +25 -0
- package/src/components/label.tsx +26 -0
- package/src/components/progress.tsx +28 -0
- package/src/components/radio-group.tsx +42 -0
- package/src/components/responsive-table.tsx +191 -0
- package/src/components/select.tsx +158 -0
- package/src/components/skeleton.tsx +15 -0
- package/src/components/slider.tsx +27 -0
- package/src/components/stat-card.tsx +69 -0
- package/src/components/switch.tsx +29 -0
- package/src/components/table.tsx +117 -0
- package/src/components/tabs.tsx +55 -0
- package/src/components/textarea.tsx +23 -0
- package/src/components/toast.tsx +26 -0
- package/src/components/tooltip.tsx +34 -0
- package/src/index.ts +136 -0
- package/src/styles/animations.css +55 -0
- package/src/styles/base.css +51 -0
- package/src/styles/tokens.css +37 -0
- package/src/utils/cn.ts +6 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import { Toaster as Sonner } from "sonner";
|
|
3
|
+
|
|
4
|
+
type ToasterProps = React.ComponentProps<typeof Sonner>;
|
|
5
|
+
|
|
6
|
+
const Toaster = ({ ...props }: ToasterProps) => {
|
|
7
|
+
return (
|
|
8
|
+
<Sonner
|
|
9
|
+
className="toaster group"
|
|
10
|
+
toastOptions={{
|
|
11
|
+
classNames: {
|
|
12
|
+
toast:
|
|
13
|
+
"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
14
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
15
|
+
actionButton:
|
|
16
|
+
"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
17
|
+
cancelButton:
|
|
18
|
+
"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
|
|
19
|
+
},
|
|
20
|
+
}}
|
|
21
|
+
{...props}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { Toaster };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
import { cn } from "../utils/cn";
|
|
7
|
+
|
|
8
|
+
const TooltipProvider = TooltipPrimitive.Provider;
|
|
9
|
+
|
|
10
|
+
const Tooltip = TooltipPrimitive.Root;
|
|
11
|
+
|
|
12
|
+
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
13
|
+
|
|
14
|
+
const TooltipContent = React.forwardRef<
|
|
15
|
+
React.ElementRef<typeof TooltipPrimitive.Content>,
|
|
16
|
+
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
|
|
17
|
+
>(({ className, sideOffset = 4, ...props }, ref) => (
|
|
18
|
+
<TooltipPrimitive.Portal>
|
|
19
|
+
<TooltipPrimitive.Content
|
|
20
|
+
ref={ref}
|
|
21
|
+
sideOffset={sideOffset}
|
|
22
|
+
collisionPadding={8}
|
|
23
|
+
avoidCollisions={true}
|
|
24
|
+
className={cn(
|
|
25
|
+
"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-lg animate-in fade-in-0 duration-300 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-200",
|
|
26
|
+
className,
|
|
27
|
+
)}
|
|
28
|
+
{...props}
|
|
29
|
+
/>
|
|
30
|
+
</TooltipPrimitive.Portal>
|
|
31
|
+
));
|
|
32
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
33
|
+
|
|
34
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// Form Components
|
|
2
|
+
|
|
3
|
+
// Feedback Components
|
|
4
|
+
export { Alert, AlertDescription, AlertTitle } from "./components/alert";
|
|
5
|
+
export {
|
|
6
|
+
AlertDialog,
|
|
7
|
+
AlertDialogAction,
|
|
8
|
+
AlertDialogCancel,
|
|
9
|
+
AlertDialogContent,
|
|
10
|
+
AlertDialogDescription,
|
|
11
|
+
AlertDialogFooter,
|
|
12
|
+
AlertDialogHeader,
|
|
13
|
+
AlertDialogOverlay,
|
|
14
|
+
AlertDialogPortal,
|
|
15
|
+
AlertDialogTitle,
|
|
16
|
+
AlertDialogTrigger,
|
|
17
|
+
} from "./components/alert-dialog";
|
|
18
|
+
export { Avatar, AvatarFallback, AvatarImage } from "./components/avatar";
|
|
19
|
+
export { Badge, type BadgeProps, badgeVariants } from "./components/badge";
|
|
20
|
+
export { BottomSheet } from "./components/bottom-sheet";
|
|
21
|
+
// Action Components
|
|
22
|
+
export { Button, type ButtonProps, buttonVariants } from "./components/button";
|
|
23
|
+
// Display Components
|
|
24
|
+
export {
|
|
25
|
+
Card,
|
|
26
|
+
CardContent,
|
|
27
|
+
CardDescription,
|
|
28
|
+
CardFooter,
|
|
29
|
+
CardHeader,
|
|
30
|
+
CardTitle,
|
|
31
|
+
} from "./components/card";
|
|
32
|
+
export { Checkbox } from "./components/checkbox";
|
|
33
|
+
export {
|
|
34
|
+
Combobox,
|
|
35
|
+
type ComboboxOption,
|
|
36
|
+
type ComboboxProps,
|
|
37
|
+
} from "./components/combobox";
|
|
38
|
+
// Overlay Components
|
|
39
|
+
export {
|
|
40
|
+
Dialog,
|
|
41
|
+
DialogClose,
|
|
42
|
+
DialogContent,
|
|
43
|
+
DialogDescription,
|
|
44
|
+
DialogFooter,
|
|
45
|
+
DialogHeader,
|
|
46
|
+
DialogOverlay,
|
|
47
|
+
DialogPortal,
|
|
48
|
+
DialogTitle,
|
|
49
|
+
DialogTrigger,
|
|
50
|
+
} from "./components/dialog";
|
|
51
|
+
export {
|
|
52
|
+
DropdownMenu,
|
|
53
|
+
DropdownMenuCheckboxItem,
|
|
54
|
+
DropdownMenuContent,
|
|
55
|
+
DropdownMenuGroup,
|
|
56
|
+
DropdownMenuItem,
|
|
57
|
+
DropdownMenuLabel,
|
|
58
|
+
DropdownMenuPortal,
|
|
59
|
+
DropdownMenuRadioGroup,
|
|
60
|
+
DropdownMenuRadioItem,
|
|
61
|
+
DropdownMenuSeparator,
|
|
62
|
+
DropdownMenuShortcut,
|
|
63
|
+
DropdownMenuSub,
|
|
64
|
+
DropdownMenuSubContent,
|
|
65
|
+
DropdownMenuSubTrigger,
|
|
66
|
+
DropdownMenuTrigger,
|
|
67
|
+
} from "./components/dropdown-menu";
|
|
68
|
+
// Error Pages
|
|
69
|
+
export {
|
|
70
|
+
ErrorPage,
|
|
71
|
+
type ErrorPageProps,
|
|
72
|
+
ForbiddenPage,
|
|
73
|
+
NotFoundPage,
|
|
74
|
+
ServerErrorPage,
|
|
75
|
+
UnauthorizedPage,
|
|
76
|
+
} from "./components/error-page";
|
|
77
|
+
export { GlassCard, type GlassCardProps } from "./components/glass-card";
|
|
78
|
+
export { IconBadge, type IconBadgeProps } from "./components/icon-badge";
|
|
79
|
+
export { Input, type InputProps } from "./components/input";
|
|
80
|
+
export { Label } from "./components/label";
|
|
81
|
+
export { Progress } from "./components/progress";
|
|
82
|
+
export { RadioGroup, RadioGroupItem } from "./components/radio-group";
|
|
83
|
+
export {
|
|
84
|
+
ResponsiveTable,
|
|
85
|
+
type ResponsiveTableColumn,
|
|
86
|
+
type ResponsiveTableProps,
|
|
87
|
+
} from "./components/responsive-table";
|
|
88
|
+
export {
|
|
89
|
+
Sheet,
|
|
90
|
+
SheetClose,
|
|
91
|
+
SheetContent,
|
|
92
|
+
SheetDescription,
|
|
93
|
+
SheetFooter,
|
|
94
|
+
SheetHeader,
|
|
95
|
+
SheetTitle,
|
|
96
|
+
SheetTrigger,
|
|
97
|
+
} from "./components/Sheet";
|
|
98
|
+
export {
|
|
99
|
+
Select,
|
|
100
|
+
SelectContent,
|
|
101
|
+
SelectGroup,
|
|
102
|
+
SelectItem,
|
|
103
|
+
SelectLabel,
|
|
104
|
+
SelectScrollDownButton,
|
|
105
|
+
SelectScrollUpButton,
|
|
106
|
+
SelectSeparator,
|
|
107
|
+
SelectTrigger,
|
|
108
|
+
SelectValue,
|
|
109
|
+
} from "./components/select";
|
|
110
|
+
export { Skeleton } from "./components/skeleton";
|
|
111
|
+
export { Slider } from "./components/slider";
|
|
112
|
+
export { StatCard, type StatCardProps } from "./components/stat-card";
|
|
113
|
+
export { Switch } from "./components/switch";
|
|
114
|
+
export {
|
|
115
|
+
Table,
|
|
116
|
+
TableBody,
|
|
117
|
+
TableCaption,
|
|
118
|
+
TableCell,
|
|
119
|
+
TableFooter,
|
|
120
|
+
TableHead,
|
|
121
|
+
TableHeader,
|
|
122
|
+
TableRow,
|
|
123
|
+
} from "./components/table";
|
|
124
|
+
// Navigation & Layout Components
|
|
125
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs";
|
|
126
|
+
export { Textarea, type TextareaProps } from "./components/textarea";
|
|
127
|
+
export { Toaster } from "./components/toast";
|
|
128
|
+
export {
|
|
129
|
+
Tooltip,
|
|
130
|
+
TooltipContent,
|
|
131
|
+
TooltipProvider,
|
|
132
|
+
TooltipTrigger,
|
|
133
|
+
} from "./components/tooltip";
|
|
134
|
+
|
|
135
|
+
// Utilities
|
|
136
|
+
export { cn } from "./utils/cn";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* Apple-style animations */
|
|
2
|
+
@keyframes accordion-down {
|
|
3
|
+
from {
|
|
4
|
+
height: 0;
|
|
5
|
+
opacity: 0;
|
|
6
|
+
}
|
|
7
|
+
to {
|
|
8
|
+
height: var(--radix-accordion-content-height);
|
|
9
|
+
opacity: 1;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes accordion-up {
|
|
14
|
+
from {
|
|
15
|
+
height: var(--radix-accordion-content-height);
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
to {
|
|
19
|
+
height: 0;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes fade-in {
|
|
25
|
+
from {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
transform: translateY(10px);
|
|
28
|
+
}
|
|
29
|
+
to {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
transform: translateY(0);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@keyframes slide-in-right {
|
|
36
|
+
from {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
transform: translateX(20px);
|
|
39
|
+
}
|
|
40
|
+
to {
|
|
41
|
+
opacity: 1;
|
|
42
|
+
transform: translateX(0);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@keyframes fade-in {
|
|
47
|
+
from {
|
|
48
|
+
opacity: 0;
|
|
49
|
+
transform: translateY(20px);
|
|
50
|
+
}
|
|
51
|
+
to {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
transform: translateY(0);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* Global styles - Apple-inspired */
|
|
2
|
+
* {
|
|
3
|
+
border-color: var(--color-border);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
background-color: var(--color-background);
|
|
8
|
+
color: var(--color-foreground);
|
|
9
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
|
|
10
|
+
"SF Pro Text", "Segoe UI", sans-serif;
|
|
11
|
+
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
|
|
12
|
+
line-height: 1.6;
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
text-rendering: optimizeLegibility;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Apple-style smooth scrolling */
|
|
19
|
+
html {
|
|
20
|
+
scroll-behavior: smooth;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Improved focus states */
|
|
24
|
+
:focus-visible {
|
|
25
|
+
outline: 2px solid var(--color-ring);
|
|
26
|
+
outline-offset: 2px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Selection styling */
|
|
30
|
+
::selection {
|
|
31
|
+
background-color: var(--color-primary);
|
|
32
|
+
color: var(--color-primary-foreground);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Smooth transitions for everything */
|
|
36
|
+
* {
|
|
37
|
+
transition-property: color, background-color, border-color, opacity, transform;
|
|
38
|
+
transition-duration: 200ms;
|
|
39
|
+
transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Disable transitions for reduced motion */
|
|
43
|
+
@media (prefers-reduced-motion: reduce) {
|
|
44
|
+
*,
|
|
45
|
+
*::before,
|
|
46
|
+
*::after {
|
|
47
|
+
animation-duration: 0.01ms !important;
|
|
48
|
+
animation-iteration-count: 1 !important;
|
|
49
|
+
transition-duration: 0.01ms !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
/* Theme-agnostic color tokens - apps can override these */
|
|
3
|
+
--color-background: #ffffff;
|
|
4
|
+
--color-foreground: #000000;
|
|
5
|
+
--color-card: #ffffff;
|
|
6
|
+
--color-card-foreground: #000000;
|
|
7
|
+
--color-popover: #ffffff;
|
|
8
|
+
--color-popover-foreground: #000000;
|
|
9
|
+
--color-primary: #0071e3;
|
|
10
|
+
--color-primary-foreground: #ffffff;
|
|
11
|
+
--color-secondary: #f5f5f7;
|
|
12
|
+
--color-secondary-foreground: #000000;
|
|
13
|
+
--color-muted: #f5f5f7;
|
|
14
|
+
--color-muted-foreground: #6e6e73;
|
|
15
|
+
--color-accent: #f5f5f7;
|
|
16
|
+
--color-accent-foreground: #000000;
|
|
17
|
+
--color-destructive: #ff3b30;
|
|
18
|
+
--color-destructive-foreground: #ffffff;
|
|
19
|
+
--color-border: #d2d2d7;
|
|
20
|
+
--color-input: #d2d2d7;
|
|
21
|
+
--color-ring: #0071e3;
|
|
22
|
+
|
|
23
|
+
/* Border radius - Apple uses larger radii */
|
|
24
|
+
--radius-lg: 1rem;
|
|
25
|
+
--radius-md: 0.75rem;
|
|
26
|
+
--radius-sm: 0.5rem;
|
|
27
|
+
|
|
28
|
+
/* Animation - Apple-style smooth */
|
|
29
|
+
--animate-accordion-down: accordion-down 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
|
30
|
+
--animate-accordion-up: accordion-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
|
31
|
+
|
|
32
|
+
/* Apple-inspired shadows */
|
|
33
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
|
|
34
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06);
|
|
35
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08);
|
|
36
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
|
|
37
|
+
}
|
package/src/utils/cn.ts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"strict": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"declarationMap": true,
|
|
13
|
+
"sourceMap": true,
|
|
14
|
+
"outDir": "./dist",
|
|
15
|
+
"rootDir": "./src",
|
|
16
|
+
"jsx": "react-jsx"
|
|
17
|
+
},
|
|
18
|
+
"include": ["src/**/*"],
|
|
19
|
+
"exclude": ["dist", "node_modules", "**/*.test.ts", "**/*.spec.ts"]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|