@campminder/ds 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.
- package/README.md +51 -0
- package/dist/index.cjs +5597 -0
- package/dist/index.d.cts +771 -0
- package/dist/index.d.ts +771 -0
- package/dist/index.js +5379 -0
- package/package.json +62 -0
- package/styles.css +232 -0
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@campminder/ds",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Campminder design system components, packaged. base-ui-era shadcn primitives + domain components + design tokens, for apps that prefer npm install over shadcn copy-source.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/campminder/campminder-ui.git",
|
|
9
|
+
"directory": "packages/ui"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"*.css"
|
|
14
|
+
],
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"styles.css"
|
|
18
|
+
],
|
|
19
|
+
"main": "./dist/index.cjs",
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./styles.css": "./styles.css"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"sync": "node scripts/sync-from-registry.mjs",
|
|
35
|
+
"gen:tokens": "node scripts/gen-tokens-css.mjs",
|
|
36
|
+
"build": "node scripts/sync-from-registry.mjs && node scripts/gen-tokens-css.mjs && tsup",
|
|
37
|
+
"prepublishOnly": "npm run build"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": ">=19",
|
|
41
|
+
"react-dom": ">=19",
|
|
42
|
+
"@base-ui/react": ">=1"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@hookform/resolvers": "^5",
|
|
46
|
+
"class-variance-authority": "^0.7",
|
|
47
|
+
"clsx": "^2",
|
|
48
|
+
"cmdk": "^1",
|
|
49
|
+
"lucide-react": "^1",
|
|
50
|
+
"react-hook-form": "^7",
|
|
51
|
+
"react-phone-number-input": "^3",
|
|
52
|
+
"sonner": "^2",
|
|
53
|
+
"tailwind-merge": "^3",
|
|
54
|
+
"zod": "^4"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/react": "^19",
|
|
58
|
+
"@types/react-dom": "^19",
|
|
59
|
+
"tsup": "^8.5.0",
|
|
60
|
+
"typescript": "^5"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/* GENERATED from app/globals.css by scripts/gen-tokens-css.mjs — do not edit.
|
|
2
|
+
Run `npm run build` (or `node scripts/gen-tokens-css.mjs`) to regenerate.
|
|
3
|
+
Consumers: @import "@campminder/ds/styles.css" after @import "tailwindcss". */
|
|
4
|
+
|
|
5
|
+
@theme {
|
|
6
|
+
/* Inter is loaded via next/font as --font-inter; fall back to webfont/system Inter */
|
|
7
|
+
--font-sans: var(--font-inter), "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
8
|
+
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
9
|
+
|
|
10
|
+
--color-background: var(--base-background, #ffffff);
|
|
11
|
+
--color-foreground: var(--base-foreground, #0a0a0a);
|
|
12
|
+
--color-foreground-secondary: var(--base-foreground-secondary, #525252);
|
|
13
|
+
--color-foreground-strong: var(--base-foreground-strong, #171717);
|
|
14
|
+
--color-card: var(--base-card, var(--base-background, #ffffff));
|
|
15
|
+
--color-card-foreground: var(--base-card-foreground, var(--base-foreground, #0a0a0a));
|
|
16
|
+
--color-popover: var(--base-popover, var(--base-background, #ffffff));
|
|
17
|
+
--color-popover-foreground: var(--base-popover-foreground, var(--base-foreground, #0a0a0a));
|
|
18
|
+
--color-primary: var(--base-primary, #380f8c);
|
|
19
|
+
--color-primary-foreground: var(--base-primary-foreground, #fafafa);
|
|
20
|
+
--color-primary-soft: var(--base-primary-soft, #c3b7dd);
|
|
21
|
+
--color-secondary: var(--base-secondary, #efeffc);
|
|
22
|
+
--color-secondary-foreground: var(--base-secondary-foreground, #20174a);
|
|
23
|
+
--color-muted: var(--base-muted, #f5f5f5);
|
|
24
|
+
--color-muted-foreground: var(--base-muted-foreground, #525252);
|
|
25
|
+
--color-accent: var(--base-accent, #f5f5f5);
|
|
26
|
+
--color-accent-foreground: var(--base-accent-foreground, #0a0a0a);
|
|
27
|
+
--color-destructive: var(--base-destructive, #dc2626);
|
|
28
|
+
--color-destructive-foreground: var(--base-destructive-foreground, #ffffff);
|
|
29
|
+
--color-destructive-strong: var(--base-destructive-strong, #991b1b);
|
|
30
|
+
--color-destructive-surface: var(--base-destructive-surface, #fef2f2);
|
|
31
|
+
--color-destructive-border: var(--base-destructive-border, #fca5a5);
|
|
32
|
+
--color-border: var(--base-border, #e5e5e5);
|
|
33
|
+
--color-border-strong: var(--base-border-strong, #d4d4d4);
|
|
34
|
+
--color-input: var(--base-border, #e5e5e5);
|
|
35
|
+
--color-ring: var(--base-ring, #380f8c);
|
|
36
|
+
--color-ring-soft: var(--base-ring-soft, #a3a3a3);
|
|
37
|
+
--color-success: var(--base-success, #16a34a);
|
|
38
|
+
--color-success-strong: var(--base-success-strong, #22c55e);
|
|
39
|
+
--color-success-surface: var(--base-success-surface, #f7faf7);
|
|
40
|
+
--color-success-text: var(--base-success-text, #15803d);
|
|
41
|
+
--color-warning: var(--base-warning, #ea580c);
|
|
42
|
+
--color-warning-text: var(--base-warning-text, #b45309);
|
|
43
|
+
--color-info: var(--base-info, #0284c7);
|
|
44
|
+
--color-info-strong: var(--base-info-strong, #2563eb);
|
|
45
|
+
|
|
46
|
+
/* Admin sidebar — brand-purple gradient surface */
|
|
47
|
+
--color-sidebar: var(--base-sidebar-primary, #ffffff);
|
|
48
|
+
--color-sidebar-foreground: var(--base-sidebar-foreground, #f5f3ff);
|
|
49
|
+
--color-sidebar-primary: var(--base-sidebar-primary, #ffffff);
|
|
50
|
+
--color-sidebar-primary-foreground: var(--base-sidebar-primary-foreground, #380f8c);
|
|
51
|
+
--color-sidebar-accent: var(--base-sidebar-accent, rgb(255 255 255 / 0.10));
|
|
52
|
+
--color-sidebar-accent-foreground: var(--base-sidebar-accent-foreground, #ffffff);
|
|
53
|
+
--color-sidebar-border: var(--base-sidebar-border, rgb(255 255 255 / 0.15));
|
|
54
|
+
--color-sidebar-ring: var(--base-sidebar-ring, #c3b7dd);
|
|
55
|
+
|
|
56
|
+
/* Avatar palette — 6 brand-aligned hues for person initials */
|
|
57
|
+
--color-avatar-1: var(--base-avatar-1, #c8baf0);
|
|
58
|
+
--color-avatar-1-foreground: var(--base-avatar-1-foreground, #2c2068);
|
|
59
|
+
--color-avatar-2: var(--base-avatar-2, #f0bbdc);
|
|
60
|
+
--color-avatar-2-foreground: var(--base-avatar-2-foreground, #5e2349);
|
|
61
|
+
--color-avatar-3: var(--base-avatar-3, #b9d6f3);
|
|
62
|
+
--color-avatar-3-foreground: var(--base-avatar-3-foreground, #1f3866);
|
|
63
|
+
--color-avatar-4: var(--base-avatar-4, #b1e0c8);
|
|
64
|
+
--color-avatar-4-foreground: var(--base-avatar-4-foreground, #1b4633);
|
|
65
|
+
--color-avatar-5: var(--base-avatar-5, #f5d0a6);
|
|
66
|
+
--color-avatar-5-foreground: var(--base-avatar-5-foreground, #5e3915);
|
|
67
|
+
--color-avatar-6: var(--base-avatar-6, #d6e0a8);
|
|
68
|
+
--color-avatar-6-foreground: var(--base-avatar-6-foreground, #3d4715);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:root {
|
|
72
|
+
/* Colors - Base */
|
|
73
|
+
--base-primary: #380f8c;
|
|
74
|
+
--base-primary-foreground: #fafafa;
|
|
75
|
+
--base-secondary: #efeffc;
|
|
76
|
+
--base-secondary-foreground: #20174a;
|
|
77
|
+
--base-destructive: #dc2626;
|
|
78
|
+
--base-destructive-foreground: #ffffff;
|
|
79
|
+
--base-success: #10b981;
|
|
80
|
+
--base-warning: #f59e0b;
|
|
81
|
+
--base-info: #0ea5e9;
|
|
82
|
+
--base-foreground: #1c1917;
|
|
83
|
+
--base-foreground-secondary: #57534e;
|
|
84
|
+
--base-foreground-strong: #292524;
|
|
85
|
+
--base-background: #ffffff;
|
|
86
|
+
--base-muted-foreground: #57534e;
|
|
87
|
+
--base-muted: #f5f5f4;
|
|
88
|
+
--base-border: #e7e5e4;
|
|
89
|
+
--base-border-strong: #d6d3d1;
|
|
90
|
+
--base-accent: #f5f5f4;
|
|
91
|
+
--base-accent-foreground: #1c1917;
|
|
92
|
+
--base-ring: #380f8c;
|
|
93
|
+
--base-ring-soft: #a8a29e;
|
|
94
|
+
--base-primary-soft: #c3b7dd;
|
|
95
|
+
--base-destructive-strong: #991b1b;
|
|
96
|
+
--base-destructive-surface: #fef2f2;
|
|
97
|
+
--base-destructive-border: #fca5a5;
|
|
98
|
+
--base-success-strong: #059669;
|
|
99
|
+
--base-success-surface: #ecfdf5;
|
|
100
|
+
--base-success-text: #15803d;
|
|
101
|
+
--base-warning-text: #b45309;
|
|
102
|
+
--base-info-strong: #0284c7;
|
|
103
|
+
|
|
104
|
+
/* Admin sidebar — heritage gradient (light mode default) */
|
|
105
|
+
--base-sidebar-gradient: linear-gradient(
|
|
106
|
+
152.45deg,
|
|
107
|
+
#851936 -26.73%,
|
|
108
|
+
#590e39 5.17%,
|
|
109
|
+
#25023d 42.09%
|
|
110
|
+
);
|
|
111
|
+
--base-sidebar-foreground: #f5f3ff;
|
|
112
|
+
--base-sidebar-primary: #ffffff;
|
|
113
|
+
--base-sidebar-primary-foreground: #380f8c;
|
|
114
|
+
--base-sidebar-accent: rgb(255 255 255 / 0.10);
|
|
115
|
+
--base-sidebar-accent-foreground: #ffffff;
|
|
116
|
+
--base-sidebar-border: rgb(255 255 255 / 0.15);
|
|
117
|
+
--base-sidebar-ring: #c3b7dd;
|
|
118
|
+
|
|
119
|
+
/* Avatar palette */
|
|
120
|
+
--base-avatar-1: #c8baf0;
|
|
121
|
+
--base-avatar-1-foreground: #2c2068;
|
|
122
|
+
--base-avatar-2: #f0bbdc;
|
|
123
|
+
--base-avatar-2-foreground: #5e2349;
|
|
124
|
+
--base-avatar-3: #b9d6f3;
|
|
125
|
+
--base-avatar-3-foreground: #1f3866;
|
|
126
|
+
--base-avatar-4: #b1e0c8;
|
|
127
|
+
--base-avatar-4-foreground: #1b4633;
|
|
128
|
+
--base-avatar-5: #f5d0a6;
|
|
129
|
+
--base-avatar-5-foreground: #5e3915;
|
|
130
|
+
--base-avatar-6: #d6e0a8;
|
|
131
|
+
--base-avatar-6-foreground: #3d4715;
|
|
132
|
+
|
|
133
|
+
/* Spacing */
|
|
134
|
+
--spacing-0: 0px;
|
|
135
|
+
--spacing-1: 4px;
|
|
136
|
+
--spacing-1-5: 6px;
|
|
137
|
+
--spacing-2: 8px;
|
|
138
|
+
--spacing-2-5: 10px;
|
|
139
|
+
--spacing-3: 12px;
|
|
140
|
+
--spacing-3-5: 14px;
|
|
141
|
+
--spacing-4: 16px;
|
|
142
|
+
--spacing-5: 20px;
|
|
143
|
+
--spacing-6: 24px;
|
|
144
|
+
--spacing-7: 28px;
|
|
145
|
+
--spacing-8: 32px;
|
|
146
|
+
--spacing-9: 36px;
|
|
147
|
+
--spacing-10: 40px;
|
|
148
|
+
--spacing-11: 44px;
|
|
149
|
+
--spacing-12: 48px;
|
|
150
|
+
--spacing-16: 64px;
|
|
151
|
+
|
|
152
|
+
/* Font Sizes */
|
|
153
|
+
--text-xs-size: 12px;
|
|
154
|
+
--text-sm-size: 14px;
|
|
155
|
+
--text-base-size: 16px;
|
|
156
|
+
--text-lg-size: 18px;
|
|
157
|
+
--text-xl-size: 20px;
|
|
158
|
+
--text-2xl-size: 24px;
|
|
159
|
+
--text-3xl-size: 30px;
|
|
160
|
+
--text-4xl-size: 36px;
|
|
161
|
+
|
|
162
|
+
/* Line Heights */
|
|
163
|
+
--text-xs-height: 18px;
|
|
164
|
+
--text-sm-height: 20px;
|
|
165
|
+
--text-base-height: 24px;
|
|
166
|
+
--text-lg-height: 28px;
|
|
167
|
+
--text-xl-height: 28px;
|
|
168
|
+
--text-2xl-height: 32px;
|
|
169
|
+
--text-3xl-height: 36px;
|
|
170
|
+
--text-4xl-height: 44px;
|
|
171
|
+
|
|
172
|
+
/* Font Weights */
|
|
173
|
+
--font-weight-light: 300;
|
|
174
|
+
--font-weight-normal: 400;
|
|
175
|
+
--font-weight-medium: 500;
|
|
176
|
+
--font-weight-semibold: 600;
|
|
177
|
+
--font-weight-bold: 700;
|
|
178
|
+
|
|
179
|
+
/* Blurs */
|
|
180
|
+
--blur-xs: 4px;
|
|
181
|
+
--blur-sm: 8px;
|
|
182
|
+
--blur-md: 12px;
|
|
183
|
+
--blur-lg: 16px;
|
|
184
|
+
--blur-xl: 24px;
|
|
185
|
+
--blur-2xl: 40px;
|
|
186
|
+
--blur-3xl: 64px;
|
|
187
|
+
|
|
188
|
+
/* Custom heading sizes */
|
|
189
|
+
--heading-2xs-size: 25px;
|
|
190
|
+
--heading-2xs-height: 32px;
|
|
191
|
+
--heading-md-size: 38px;
|
|
192
|
+
--heading-md-height: 44px;
|
|
193
|
+
--heading-lg-size: 45px;
|
|
194
|
+
--heading-lg-height: 52px;
|
|
195
|
+
--heading-xl-size: 60px;
|
|
196
|
+
--heading-xl-height: 64px;
|
|
197
|
+
|
|
198
|
+
/* Custom spacing */
|
|
199
|
+
--container-padding-x: 24px;
|
|
200
|
+
--section-padding-y: 96px;
|
|
201
|
+
--section-title-gap-xs: 16px;
|
|
202
|
+
--section-title-gap-md: 20px;
|
|
203
|
+
--section-title-gap-lg: 20px;
|
|
204
|
+
--section-title-gap-xl: 24px;
|
|
205
|
+
|
|
206
|
+
/* Breakpoints */
|
|
207
|
+
--breakpoint-sm: 640px;
|
|
208
|
+
--breakpoint-md: 768px;
|
|
209
|
+
--breakpoint-lg: 1024px;
|
|
210
|
+
--breakpoint-xl: 1280px;
|
|
211
|
+
--breakpoint-2xl: 1536px;
|
|
212
|
+
|
|
213
|
+
/* Container max-widths */
|
|
214
|
+
--container-3xs: 256px;
|
|
215
|
+
--container-2xs: 288px;
|
|
216
|
+
--container-xs: 320px;
|
|
217
|
+
--container-sm: 384px;
|
|
218
|
+
--container-md: 448px;
|
|
219
|
+
--container-lg: 512px;
|
|
220
|
+
--container-xl: 576px;
|
|
221
|
+
--container-2xl: 672px;
|
|
222
|
+
--container-3xl: 768px;
|
|
223
|
+
--container-4xl: 896px;
|
|
224
|
+
--container-5xl: 1024px;
|
|
225
|
+
--container-6xl: 1152px;
|
|
226
|
+
--container-7xl: 1280px;
|
|
227
|
+
|
|
228
|
+
color-scheme: light;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Scan the package's compiled components so Tailwind v4 keeps their classes. */
|
|
232
|
+
@source "./dist";
|