@emberkit/cli 0.6.1-alpha.1 → 0.6.1-alpha.2

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.
@@ -103,196 +103,179 @@ const Layout: RouteComponent = ({ children }) => {
103
103
 
104
104
  export default Layout;`,
105
105
  "src/routes/index.tsx": `import type { RouteComponent } from '@emberkit/core';
106
- import { Button, Card, Heading, Text, Badge, Input } from '@emberkit/ui';
107
106
  import { signal } from '@emberkit/core';
107
+ import {
108
+ Button,
109
+ Card,
110
+ Heading,
111
+ Text,
112
+ Badge,
113
+ Tabs,
114
+ Alert,
115
+ Icon,
116
+ } from '@emberkit/ui';
108
117
 
109
118
  const HomePage: RouteComponent = () => {
110
- const email = signal('');
111
- const activeTab = signal('buttons');
119
+ const activeTab = signal('features');
120
+
121
+ const features = [
122
+ { icon: '⚡', title: 'Lightning Fast', desc: 'Sub-10KB runtime with tree-shakeable architecture' },
123
+ { icon: '📘', title: 'TypeScript First', desc: 'Full type safety with intelligent autocomplete' },
124
+ { icon: '📁', title: 'File-Based Routing', desc: 'Routes automatically created from your file structure' },
125
+ ];
126
+
127
+ const components = [
128
+ { name: 'Button', desc: 'Multiple variants and sizes for all use cases' },
129
+ { name: 'Card', desc: 'Flexible container component with padding options' },
130
+ { name: 'Badge', desc: 'Status indicators with different variants' },
131
+ { name: 'Alert', desc: 'Notification component for important messages' },
132
+ { name: 'Tabs', desc: 'Organized content switching interface' },
133
+ { name: 'Input', desc: 'Styled form input with validation support' },
134
+ ];
112
135
 
113
136
  return (
114
137
  <div className="relative space-y-24">
115
- {/* Hero */}
138
+ {/* Hero Section */}
116
139
  <section className="relative text-center py-20">
117
140
  <div className="pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 h-[400px] w-[400px] rounded-full bg-ember-500/15 blur-[150px] animate-pulse-glow" />
118
-
119
- <div className="relative z-10 animate-fade-in-down">
120
- <Badge variant="primary" className="mb-6 inline-flex">
121
- &#10024; Built with EmberKit UI
141
+ <div className="relative z-10 space-y-6 animate-fade-in-down">
142
+ <Badge variant="primary" className="inline-block">
143
+ Welcome to {{name}}
122
144
  </Badge>
123
- <Heading level="h1" size="4xl" weight="bold" className="mb-6">
124
- Welcome to{' '}
125
- <span className="bg-gradient-to-r from-ember-400 via-ember-500 to-amber-500 bg-clip-text text-transparent">
126
- {{name}}
127
- </span>
145
+ <Heading level="h1" size="4xl" weight="bold">
146
+ Built with EmberKit <span className="bg-gradient-to-r from-ember-400 via-ember-500 to-amber-500 bg-clip-text text-transparent">UI System</span>
128
147
  </Heading>
129
- <Text size="xl" color="muted" className="max-w-2xl mx-auto mb-10">
130
- A modern starter template with EmberKit UI components and Tailwind CSS.
131
- Build beautiful interfaces with our pre-built component library.
148
+ <Text size="xl" color="muted" className="max-w-2xl mx-auto">
149
+ A modern, component-driven template using the EmberKit design system. Beautiful, accessible, and production-ready.
132
150
  </Text>
133
- <div className="flex gap-4 justify-center flex-wrap">
134
- <Button variant="primary" size="lg" className="shadow-lg shadow-ember-500/20 hover:shadow-ember-500/40 transition-shadow">
151
+ <div className="flex gap-4 justify-center flex-wrap pt-4">
152
+ <Button variant="primary" size="lg">
135
153
  Get Started
136
154
  </Button>
137
155
  <Button variant="secondary" size="lg">
138
- View Docs &#8594;
156
+ View Docs
139
157
  </Button>
140
158
  </div>
141
159
  </div>
142
160
  </section>
143
161
 
144
- {/* Features Grid */}
162
+ {/* Features Grid using Cards */}
145
163
  <section>
146
- <Heading level="h2" size="2xl" weight="semibold" className="mb-2 text-center">
164
+ <Heading level="h2" size="2xl" weight="semibold" className="text-center mb-2">
147
165
  Why EmberKit?
148
166
  </Heading>
149
- <Text color="muted" className="text-center mb-10 max-w-lg mx-auto">
167
+ <Text color="muted" className="text-center mb-12 max-w-lg mx-auto">
150
168
  Everything you need to build fast, beautiful web applications.
151
169
  </Text>
152
170
  <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
153
- {[
154
- { icon: '&#9889;', title: 'Lightning Fast', desc: 'Sub-10KB runtime with tree-shakeable architecture' },
155
- { icon: '&#128303;', title: 'TypeScript First', desc: 'Full type safety with intelligent autocomplete' },
156
- { icon: '&#128726;', title: 'File-Based Routing', desc: 'Routes automatically created from your file structure' },
157
- ].map((f, i) => (
158
- <Card key={f.title} padding="lg" className="relative group hover:border-ember-500/50 transition-all duration-300 hover:-translate-y-1 cursor-pointer">
171
+ {features.map((feature) => (
172
+ <Card key={feature.title} padding="lg" className="relative group hover:border-ember-500/50 transition-all hover:-translate-y-1 cursor-pointer">
159
173
  <div className="absolute inset-0 rounded-xl bg-gradient-to-br from-ember-500/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity" />
160
- <div className="relative">
161
- <div className="w-12 h-12 rounded-xl bg-ember-500/10 flex items-center justify-center text-2xl mb-4 group-hover:scale-110 transition-transform">
162
- {f.icon}
163
- </div>
164
- <Heading level="h3" size="lg" weight="semibold" className="mb-2">
165
- {f.title}
174
+ <div className="relative space-y-3">
175
+ <div className="text-3xl">{feature.icon}</div>
176
+ <Heading level="h3" size="md" weight="semibold">
177
+ {feature.title}
166
178
  </Heading>
167
- <Text color="muted">{f.desc}</Text>
179
+ <Text color="muted" size="sm">
180
+ {feature.desc}
181
+ </Text>
168
182
  </div>
169
183
  </Card>
170
184
  ))}
171
185
  </div>
172
186
  </section>
173
187
 
174
- {/* Component Showcase */}
188
+ {/* Component Showcase with Tabs */}
175
189
  <section>
176
- <Heading level="h2" size="2xl" weight="semibold" className="mb-2 text-center">
177
- UI Components
190
+ <Heading level="h2" size="2xl" weight="semibold" className="text-center mb-2">
191
+ Design System Components
178
192
  </Heading>
179
- <Text color="muted" className="text-center mb-8">
180
- Explore our pre-built component library.
193
+ <Text color="muted" className="text-center mb-8 max-w-lg mx-auto">
194
+ Pre-built, accessible components ready to use in your project.
181
195
  </Text>
182
196
 
183
- {/* Tabs */}
184
- <div className="flex justify-center mb-8">
185
- <div className="inline-flex p-1 rounded-lg bg-slate-800/50 border border-slate-700/50">
186
- {[
187
- { id: 'buttons', label: 'Buttons' },
188
- { id: 'cards', label: 'Cards' },
189
- { id: 'forms', label: 'Forms' },
190
- ].map((tab) => (
191
- <button
192
- key={tab.id}
193
- className={\`px-4 py-2 text-sm font-medium rounded-md transition-all \${activeTab.value === tab.id ? 'bg-ember-500 text-white shadow-md' : 'text-slate-400 hover:text-slate-200'}\`}
194
- onClick={() => { activeTab.value = tab.id; }}
195
- >
196
- {tab.label}
197
- </button>
198
- ))}
199
- </div>
200
- </div>
201
-
202
- {/* Tab Content */}
203
- {activeTab.value === 'buttons' && (
204
- <Card padding="xl" className="max-w-2xl mx-auto">
205
- <div className="text-center mb-6">
206
- <Badge variant="primary" className="mb-2">Buttons</Badge>
207
- <Heading level="h3" size="lg" weight="semibold">Button Variants</Heading>
208
- </div>
209
- <div className="flex flex-wrap gap-3 justify-center">
210
- <Button variant="primary">Primary</Button>
211
- <Button variant="secondary">Secondary</Button>
212
- <Button variant="ghost">Ghost</Button>
213
- <Button variant="primary" size="sm">Small</Button>
214
- <Button variant="secondary" size="lg">Large</Button>
215
- </div>
216
- <div className="mt-6 pt-6 border-t border-slate-700/50">
217
- <Heading level="h4" size="sm" weight="semibold" className="mb-3 text-slate-400">With Icons</Heading>
218
- <div className="flex flex-wrap gap-3 justify-center">
219
- <Button variant="primary">&#9889; Get Started</Button>
220
- <Button variant="secondary">Learn More &#8594;</Button>
221
- <Button variant="ghost">&#10084; Like</Button>
197
+ <div className="space-y-8">
198
+ {/* Buttons Section */}
199
+ <Card padding="xl">
200
+ <Heading level="h3" size="lg" weight="semibold" className="mb-6">
201
+ Button Component
202
+ </Heading>
203
+ <div className="space-y-4">
204
+ <Text color="muted" size="sm">
205
+ The Button component comes in multiple variants and sizes for different use cases.
206
+ </Text>
207
+ <div className="flex flex-wrap gap-2 pt-4">
208
+ <Button variant="primary">Primary</Button>
209
+ <Button variant="secondary">Secondary</Button>
210
+ <Button variant="ghost">Ghost</Button>
211
+ <Button variant="primary" size="sm">Small</Button>
212
+ <Button variant="secondary" size="lg">Large</Button>
222
213
  </div>
223
214
  </div>
224
215
  </Card>
225
- )}
226
-
227
- {activeTab.value === 'cards' && (
228
- <div className="grid md:grid-cols-2 gap-6 max-w-3xl mx-auto">
229
- <Card padding="lg" className="hover:border-ember-500/50 transition-colors">
230
- <Badge variant="success" className="mb-3">Analytics</Badge>
231
- <Heading level="h3" size="lg" weight="semibold" className="mb-2">
232
- Revenue Growth
233
- </Heading>
234
- <div className="text-3xl font-bold text-ember-400 mb-1">$45,231</div>
235
- <Text color="muted" className="text-sm">+20.1% from last month</Text>
236
- <div className="mt-4 h-2 rounded-full bg-slate-700 overflow-hidden">
237
- <div className="h-full w-3/4 rounded-full bg-gradient-to-r from-ember-500 to-amber-500" />
238
- </div>
239
- </Card>
240
- <Card padding="lg" className="hover:border-ember-500/50 transition-colors">
241
- <Badge variant="info" className="mb-3">Users</Badge>
242
- <Heading level="h3" size="lg" weight="semibold" className="mb-2">
243
- Active Users
244
- </Heading>
245
- <div className="text-3xl font-bold text-blue-400 mb-1">2,338</div>
246
- <Text color="muted" className="text-sm">+15.3% from last month</Text>
247
- <div className="mt-4 h-2 rounded-full bg-slate-700 overflow-hidden">
248
- <div className="h-full w-1/2 rounded-full bg-gradient-to-r from-blue-500 to-cyan-500" />
249
- </div>
250
- </Card>
251
- </div>
252
- )}
253
216
 
254
- {activeTab.value === 'forms' && (
255
- <Card padding="xl" className="max-w-md mx-auto">
256
- <div className="text-center mb-6">
257
- <Badge variant="info" className="mb-2">Forms</Badge>
258
- <Heading level="h3" size="lg" weight="semibold">Newsletter Signup</Heading>
217
+ {/* Badge & Alert Section */}
218
+ <Card padding="xl">
219
+ <Heading level="h3" size="lg" weight="semibold" className="mb-6">
220
+ Status Components
221
+ </Heading>
222
+ <div className="space-y-6">
223
+ <div>
224
+ <Text weight="semibold" className="mb-3">Badges</Text>
225
+ <div className="flex flex-wrap gap-2">
226
+ <Badge variant="primary">Primary</Badge>
227
+ <Badge variant="success">Success</Badge>
228
+ <Badge variant="warning">Warning</Badge>
229
+ <Badge variant="info">Info</Badge>
230
+ </div>
231
+ </div>
232
+ <Alert variant="success">
233
+ ✓ This is a success alert message. Use it to confirm important actions.
234
+ </Alert>
235
+ <Alert variant="info">
236
+ ℹ This is an info alert. Useful for displaying helpful information.
237
+ </Alert>
259
238
  </div>
260
- <div className="space-y-4">
261
- <Input
262
- label="Name"
263
- placeholder="John Doe"
264
- />
265
- <Input
266
- label="Email"
267
- type="email"
268
- placeholder="you@example.com"
269
- value={email.value}
270
- onChange={(e) => { email.value = e.currentTarget.value; }}
271
- />
272
- <Button variant="primary" className="w-full shadow-lg shadow-ember-500/20">
273
- Subscribe &#10148;
274
- </Button>
239
+ </Card>
240
+
241
+ {/* Components Grid */}
242
+ <Card padding="xl">
243
+ <Heading level="h3" size="lg" weight="semibold" className="mb-6">
244
+ Available Components
245
+ </Heading>
246
+ <div className="grid md:grid-cols-2 gap-4">
247
+ {components.map((comp) => (
248
+ <div key={comp.name} className="p-4 rounded-lg bg-slate-800/30 border border-slate-700/50">
249
+ <Text weight="semibold" size="sm">{comp.name}</Text>
250
+ <Text color="muted" size="xs" className="mt-1">{comp.desc}</Text>
251
+ </div>
252
+ ))}
275
253
  </div>
276
254
  </Card>
277
- )}
255
+ </div>
278
256
  </section>
279
257
 
280
- {/* CTA */}
258
+ {/* CTA Section */}
281
259
  <section className="relative py-20">
282
260
  <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
283
261
  <div className="w-[500px] h-[200px] rounded-full bg-ember-500/10 blur-[100px]" />
284
262
  </div>
285
- <div className="relative z-10 text-center">
263
+ <Card padding="xl" className="relative z-10 max-w-2xl mx-auto text-center">
286
264
  <Heading level="h2" size="2xl" weight="semibold" className="mb-4">
287
- Ready to build something amazing?
265
+ Ready to Build?
288
266
  </Heading>
289
- <Text color="muted" className="max-w-xl mx-auto mb-8">
267
+ <Text color="muted" className="mb-8">
290
268
  Start building your next project with EmberKit's powerful components and TypeScript-first API.
291
269
  </Text>
292
- <Button variant="primary" size="lg" className="shadow-lg shadow-ember-500/25 hover:shadow-ember-500/40 transition-shadow">
293
- Create Project &#10148;
294
- </Button>
295
- </div>
270
+ <div className="flex gap-4 justify-center">
271
+ <Button variant="primary" size="lg">
272
+ Create Project →
273
+ </Button>
274
+ <Button variant="secondary" size="lg">
275
+ Learn More
276
+ </Button>
277
+ </div>
278
+ </Card>
296
279
  </section>
297
280
  </div>
298
281
  );
@@ -301,9 +284,18 @@ const HomePage: RouteComponent = () => {
301
284
  export default HomePage;`,
302
285
  "src/routes/about.tsx": `import type { RouteComponent } from '@emberkit/core';
303
286
  import { Head } from '@emberkit/core';
304
- import { Heading, Text, Button, Card, Badge } from '@emberkit/ui';
287
+ import { Heading, Text, Button, Card, Badge, Alert } from '@emberkit/ui';
305
288
 
306
289
  const AboutPage: RouteComponent = () => {
290
+ const features = [
291
+ { icon: '⚙️', title: 'TypeScript-first', desc: 'Full type safety with intelligent autocomplete' },
292
+ { icon: '🎨', title: 'UI Components', desc: 'Pre-built design system components' },
293
+ { icon: '🎯', title: 'Tailwind CSS', desc: 'Utility-first styling framework' },
294
+ { icon: '📁', title: 'File Routing', desc: 'Automatic routes from file structure' },
295
+ ];
296
+
297
+ const techStack = ['EmberKit', 'TypeScript', 'Tailwind CSS', 'Vite', 'JSX', 'Design System'];
298
+
307
299
  return (
308
300
  <>
309
301
  <Head>
@@ -311,59 +303,69 @@ const AboutPage: RouteComponent = () => {
311
303
  </Head>
312
304
  <div className="max-w-3xl mx-auto space-y-12">
313
305
  {/* Header */}
314
- <div className="text-center">
315
- <Badge variant="primary" className="mb-4 inline-flex">About</Badge>
306
+ <div className="text-center space-y-4">
307
+ <Badge variant="primary" className="inline-block">
308
+ About Us
309
+ </Badge>
316
310
  <Heading level="h1" size="3xl" weight="bold">
317
- About {' '}
318
- <span className="bg-gradient-to-r from-ember-400 to-ember-600 bg-clip-text text-transparent">{{name}}</span>
311
+ About <span className="bg-gradient-to-r from-ember-400 to-ember-600 bg-clip-text text-transparent">{{name}}</span>
319
312
  </Heading>
313
+ <Text size="lg" color="muted" className="max-w-2xl mx-auto">
314
+ A modern, component-driven project built with EmberKit and the UI design system.
315
+ </Text>
320
316
  </div>
321
317
 
322
- {/* Description */}
318
+ {/* Description Card */}
323
319
  <Card padding="xl" className="border-ember-500/20">
324
320
  <Text size="lg" color="muted" className="leading-relaxed">
325
- This project was created with EmberKit and the UI component library.
326
- It demonstrates how to build modern, beautiful interfaces with our
327
- pre-built components and Tailwind CSS.
321
+ This project demonstrates how to build modern, beautiful interfaces with EmberKit's pre-built components and Tailwind CSS.
322
+ It showcases best practices in component-driven development, accessible design, and TypeScript-first architecture.
328
323
  </Text>
329
324
  </Card>
330
325
 
331
- {/* Features */}
332
- <div className="grid sm:grid-cols-2 gap-4">
333
- {[
334
- { icon: '&#128268;', title: 'TypeScript-first', desc: 'Full type safety with intelligent autocomplete' },
335
- { icon: '&#127912;', title: 'UI Components', desc: 'Pre-built atoms, molecules, and organisms' },
336
- { icon: '&#127752;', title: 'Tailwind CSS', desc: 'Utility-first styling with custom theme' },
337
- { icon: '&#128726;', title: 'File Routing', desc: 'Automatic routes from your file structure' },
338
- ].map((f) => (
339
- <Card key={f.title} padding="lg" className="hover:border-ember-500/50 transition-all hover:-translate-y-0.5">
340
- <div className="text-2xl mb-3">{f.icon}</div>
341
- <Heading level="h3" size="md" weight="semibold" className="mb-1">
342
- {f.title}
343
- </Heading>
344
- <Text color="muted" size="sm">{f.desc}</Text>
345
- </Card>
346
- ))}
347
- </div>
348
-
349
- {/* Tech Stack */}
350
- <Card padding="xl">
351
- <Heading level="h3" size="lg" weight="semibold" className="mb-4 text-center">
352
- Tech Stack
326
+ {/* Features Grid */}
327
+ <section>
328
+ <Heading level="h2" size="xl" weight="semibold" className="mb-6">
329
+ Key Features
353
330
  </Heading>
354
- <div className="flex flex-wrap gap-2 justify-center">
355
- {['EmberKit', 'TypeScript', 'Tailwind CSS', 'Vite', 'JSX'].map((tech) => (
356
- <Badge key={tech} variant="primary" className="px-3 py-1.5">
357
- {tech}
358
- </Badge>
331
+ <div className="grid sm:grid-cols-2 gap-4">
332
+ {features.map((f) => (
333
+ <Card key={f.title} padding="lg" className="hover:border-ember-500/50 transition-all hover:-translate-y-0.5">
334
+ <div className="text-2xl mb-3">{f.icon}</div>
335
+ <Heading level="h3" size="md" weight="semibold" className="mb-1">
336
+ {f.title}
337
+ </Heading>
338
+ <Text color="muted" size="sm">{f.desc}</Text>
339
+ </Card>
359
340
  ))}
360
341
  </div>
361
- </Card>
342
+ </section>
343
+
344
+ {/* Tech Stack */}
345
+ <section>
346
+ <Card padding="xl">
347
+ <Heading level="h3" size="lg" weight="semibold" className="mb-6 text-center">
348
+ Tech Stack
349
+ </Heading>
350
+ <div className="flex flex-wrap gap-2 justify-center">
351
+ {techStack.map((tech) => (
352
+ <Badge key={tech} variant="primary" className="px-3 py-1.5">
353
+ {tech}
354
+ </Badge>
355
+ ))}
356
+ </div>
357
+ </Card>
358
+ </section>
359
+
360
+ {/* Benefits Alert */}
361
+ <Alert variant="success">
362
+ ✨ <strong>Pro Tip:</strong> This template uses the EmberKit design system components. Check the component library documentation to learn about all available components and their capabilities.
363
+ </Alert>
362
364
 
363
- {/* Back */}
364
- <div className="text-center">
365
+ {/* Back Button */}
366
+ <div className="text-center pt-4">
365
367
  <Button variant="secondary">
366
- &#8592; Back to Home
368
+ Back to Home
367
369
  </Button>
368
370
  </div>
369
371
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emberkit/cli",
3
- "version": "0.6.1-alpha.1",
3
+ "version": "0.6.1-alpha.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "CLI tool for EmberKit projects",