@codapet/design-system 0.1.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.
@@ -0,0 +1,123 @@
1
+ @import "tw-animate-css";
2
+
3
+ @custom-variant dark (&:is(.dark *));
4
+
5
+ @theme inline {
6
+ --color-background: var(--background);
7
+ --color-foreground: var(--foreground);
8
+ --font-sans: var(--font-geist-sans);
9
+ --font-mono: var(--font-geist-mono);
10
+ --color-sidebar-ring: var(--sidebar-ring);
11
+ --color-sidebar-border: var(--sidebar-border);
12
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
13
+ --color-sidebar-accent: var(--sidebar-accent);
14
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
15
+ --color-sidebar-primary: var(--sidebar-primary);
16
+ --color-sidebar-foreground: var(--sidebar-foreground);
17
+ --color-sidebar: var(--sidebar);
18
+ --color-chart-5: var(--chart-5);
19
+ --color-chart-4: var(--chart-4);
20
+ --color-chart-3: var(--chart-3);
21
+ --color-chart-2: var(--chart-2);
22
+ --color-chart-1: var(--chart-1);
23
+ --color-ring: var(--ring);
24
+ --color-input: var(--input);
25
+ --color-border: var(--border);
26
+ --color-destructive: var(--destructive);
27
+ --color-accent-foreground: var(--accent-foreground);
28
+ --color-accent: var(--accent);
29
+ --color-muted-foreground: var(--muted-foreground);
30
+ --color-muted: var(--muted);
31
+ --color-secondary-foreground: var(--secondary-foreground);
32
+ --color-secondary: var(--secondary);
33
+ --color-primary-foreground: var(--primary-foreground);
34
+ --color-primary: var(--primary);
35
+ --color-popover-foreground: var(--popover-foreground);
36
+ --color-popover: var(--popover);
37
+ --color-card-foreground: var(--card-foreground);
38
+ --color-card: var(--card);
39
+ --radius-sm: calc(var(--radius) - 4px);
40
+ --radius-md: calc(var(--radius) - 2px);
41
+ --radius-lg: var(--radius);
42
+ --radius-xl: calc(var(--radius) + 4px);
43
+ }
44
+
45
+ :root {
46
+ --radius: 0.625rem;
47
+ --background: oklch(1 0 0);
48
+ --foreground: oklch(0.129 0.042 264.695);
49
+ --card: oklch(1 0 0);
50
+ --card-foreground: oklch(0.129 0.042 264.695);
51
+ --popover: oklch(1 0 0);
52
+ --popover-foreground: oklch(0.129 0.042 264.695);
53
+ --primary: oklch(0.208 0.042 265.755);
54
+ --primary-foreground: oklch(0.984 0.003 247.858);
55
+ --secondary: oklch(0.968 0.007 247.896);
56
+ --secondary-foreground: oklch(0.208 0.042 265.755);
57
+ --muted: oklch(0.968 0.007 247.896);
58
+ --muted-foreground: oklch(0.554 0.046 257.417);
59
+ --accent: oklch(0.968 0.007 247.896);
60
+ --accent-foreground: oklch(0.208 0.042 265.755);
61
+ --destructive: oklch(0.577 0.245 27.325);
62
+ --border: oklch(0.929 0.013 255.508);
63
+ --input: oklch(0.929 0.013 255.508);
64
+ --ring: oklch(0.704 0.04 256.788);
65
+ --chart-1: oklch(0.646 0.222 41.116);
66
+ --chart-2: oklch(0.6 0.118 184.704);
67
+ --chart-3: oklch(0.398 0.07 227.392);
68
+ --chart-4: oklch(0.828 0.189 84.429);
69
+ --chart-5: oklch(0.769 0.188 70.08);
70
+ --sidebar: oklch(0.984 0.003 247.858);
71
+ --sidebar-foreground: oklch(0.129 0.042 264.695);
72
+ --sidebar-primary: oklch(0.208 0.042 265.755);
73
+ --sidebar-primary-foreground: oklch(0.984 0.003 247.858);
74
+ --sidebar-accent: oklch(0.968 0.007 247.896);
75
+ --sidebar-accent-foreground: oklch(0.208 0.042 265.755);
76
+ --sidebar-border: oklch(0.929 0.013 255.508);
77
+ --sidebar-ring: oklch(0.704 0.04 256.788);
78
+ }
79
+
80
+ .dark {
81
+ --background: oklch(0.129 0.042 264.695);
82
+ --foreground: oklch(0.984 0.003 247.858);
83
+ --card: oklch(0.208 0.042 265.755);
84
+ --card-foreground: oklch(0.984 0.003 247.858);
85
+ --popover: oklch(0.208 0.042 265.755);
86
+ --popover-foreground: oklch(0.984 0.003 247.858);
87
+ --primary: oklch(0.929 0.013 255.508);
88
+ --primary-foreground: oklch(0.208 0.042 265.755);
89
+ --secondary: oklch(0.279 0.041 260.031);
90
+ --secondary-foreground: oklch(0.984 0.003 247.858);
91
+ --muted: oklch(0.279 0.041 260.031);
92
+ --muted-foreground: oklch(0.704 0.04 256.788);
93
+ --accent: oklch(0.279 0.041 260.031);
94
+ --accent-foreground: oklch(0.984 0.003 247.858);
95
+ --destructive: oklch(0.704 0.191 22.216);
96
+ --border: oklch(1 0 0 / 10%);
97
+ --input: oklch(1 0 0 / 15%);
98
+ --ring: oklch(0.551 0.027 264.364);
99
+ --chart-1: oklch(0.488 0.243 264.376);
100
+ --chart-2: oklch(0.696 0.17 162.48);
101
+ --chart-3: oklch(0.769 0.188 70.08);
102
+ --chart-4: oklch(0.627 0.265 303.9);
103
+ --chart-5: oklch(0.645 0.246 16.439);
104
+ --sidebar: oklch(0.208 0.042 265.755);
105
+ --sidebar-foreground: oklch(0.984 0.003 247.858);
106
+ --sidebar-primary: oklch(0.488 0.243 264.376);
107
+ --sidebar-primary-foreground: oklch(0.984 0.003 247.858);
108
+ --sidebar-accent: oklch(0.279 0.041 260.031);
109
+ --sidebar-accent-foreground: oklch(0.984 0.003 247.858);
110
+ --sidebar-border: oklch(1 0 0 / 10%);
111
+ --sidebar-ring: oklch(0.551 0.027 264.364);
112
+ }
113
+
114
+ @layer base {
115
+ * {
116
+ @apply border-border outline-ring/50;
117
+ }
118
+ body {
119
+ @apply bg-background text-foreground;
120
+ }
121
+ }
122
+
123
+
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@codapet/design-system",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "main": "./dist/index.mjs",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.mts",
8
+ "style": "./dist/styles.css",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.mts",
12
+ "import": "./dist/index.mjs"
13
+ },
14
+ "./styles": "./dist/styles.css"
15
+ },
16
+ "sideEffects": [
17
+ "./dist/styles.css"
18
+ ],
19
+ "files": [
20
+ "dist/**"
21
+ ],
22
+ "scripts": {
23
+ "dev": "next dev --turbopack",
24
+ "build": "next build --turbopack",
25
+ "build:lib": "tsup",
26
+ "build:css": "cp src/styles.css dist/styles.css",
27
+ "build:all": "npm run build:lib && npm run build:css && npm run build",
28
+ "start": "next start",
29
+ "lint": "eslint",
30
+ "prepublishOnly": "npm run build:lib && npm run build:css && npm run test:lib",
31
+ "test:lib": "node -e \"import('./dist/index.mjs').then(m => console.log('✅ Library test passed:', Object.keys(m).length, 'exports'))\"",
32
+ "check:deps": "npm ls --depth=0",
33
+ "clean:deps": "rm -rf node_modules package-lock.json && npm install"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "peerDependencies": {
39
+ "react": ">=18.0.0",
40
+ "react-dom": ">=18.0.0"
41
+ },
42
+ "dependencies": {
43
+ "@hookform/resolvers": "^5.2.1",
44
+ "@radix-ui/react-accordion": "^1.2.12",
45
+ "@radix-ui/react-alert-dialog": "^1.1.15",
46
+ "@radix-ui/react-aspect-ratio": "^1.1.7",
47
+ "@radix-ui/react-avatar": "^1.1.10",
48
+ "@radix-ui/react-checkbox": "^1.3.3",
49
+ "@radix-ui/react-collapsible": "^1.1.12",
50
+ "@radix-ui/react-context-menu": "^2.2.16",
51
+ "@radix-ui/react-dialog": "^1.1.15",
52
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
53
+ "@radix-ui/react-hover-card": "^1.1.15",
54
+ "@radix-ui/react-label": "^2.1.7",
55
+ "@radix-ui/react-menubar": "^1.1.16",
56
+ "@radix-ui/react-navigation-menu": "^1.2.14",
57
+ "@radix-ui/react-popover": "^1.1.15",
58
+ "@radix-ui/react-progress": "^1.1.7",
59
+ "@radix-ui/react-radio-group": "^1.3.8",
60
+ "@radix-ui/react-scroll-area": "^1.2.10",
61
+ "@radix-ui/react-select": "^2.2.6",
62
+ "@radix-ui/react-separator": "^1.1.7",
63
+ "@radix-ui/react-slider": "^1.3.6",
64
+ "@radix-ui/react-slot": "^1.2.3",
65
+ "@radix-ui/react-switch": "^1.2.6",
66
+ "@radix-ui/react-tabs": "^1.1.13",
67
+ "@radix-ui/react-toggle": "^1.1.10",
68
+ "@radix-ui/react-toggle-group": "^1.1.11",
69
+ "@radix-ui/react-tooltip": "^1.2.8",
70
+ "class-variance-authority": "^0.7.1",
71
+ "clsx": "^2.1.1",
72
+ "cmdk": "^1.1.1",
73
+ "date-fns": "^4.1.0",
74
+ "embla-carousel-react": "^8.6.0",
75
+ "input-otp": "^1.4.2",
76
+ "lucide-react": "^0.542.0",
77
+ "next-themes": "^0.4.6",
78
+ "react-day-picker": "^9.9.0",
79
+ "react-hook-form": "^7.62.0",
80
+ "react-resizable-panels": "^3.0.5",
81
+ "recharts": "^2.15.4",
82
+ "sonner": "^2.0.7",
83
+ "tailwind-merge": "^3.3.1",
84
+ "vaul": "^1.1.2",
85
+ "zod": "^4.1.3"
86
+ },
87
+ "devDependencies": {
88
+ "@eslint/eslintrc": "^3",
89
+ "@tailwindcss/postcss": "^4",
90
+ "@types/node": "^20",
91
+ "@types/react": "^19",
92
+ "@types/react-dom": "^19",
93
+ "eslint": "^9",
94
+ "eslint-config-next": "15.5.0",
95
+ "next": "15.5.0",
96
+ "react": "19.1.0",
97
+ "react-dom": "19.1.0",
98
+ "tailwindcss": "^4",
99
+ "tsup": "^8.5.0",
100
+ "tw-animate-css": "^1.3.7",
101
+ "typescript": "^5"
102
+ }
103
+ }