@gilav21/shadcn-angular 0.0.13 → 0.0.15

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.
@@ -130,7 +130,6 @@ export async function init(options) {
130
130
  utils: responses.utilsPath.replace('src/', '@/').replace('.ts', ''),
131
131
  ui: responses.componentsPath.replace('src/', '@/'),
132
132
  },
133
- iconLibrary: 'lucide-angular',
134
133
  };
135
134
  }
136
135
  const spinner = ora('Initializing project...').start();
@@ -178,7 +177,6 @@ export async function init(options) {
178
177
  'clsx',
179
178
  'tailwind-merge',
180
179
  'class-variance-authority',
181
- 'lucide-angular',
182
180
  'tailwindcss',
183
181
  'postcss',
184
182
  '@tailwindcss/postcss'
@@ -195,35 +193,6 @@ export async function init(options) {
195
193
  };
196
194
  await fs.writeJson(postcssrcPath, configContent, { spaces: 4 });
197
195
  }
198
- // Configure app.config.ts with Lucide icons
199
- spinner.text = 'Configuring icons in app.config.ts...';
200
- const appConfigPath = path.join(cwd, 'src/app/app.config.ts');
201
- if (await fs.pathExists(appConfigPath)) {
202
- let appConfigContent = await fs.readFile(appConfigPath, 'utf-8');
203
- // Add imports
204
- if (!appConfigContent.includes('LucideAngularModule')) {
205
- const iconImports = "import { LucideAngularModule, ArrowDown, ArrowUp, ChevronsUpDown, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from 'lucide-angular';";
206
- appConfigContent = iconImports + '\n' + appConfigContent;
207
- }
208
- if (!appConfigContent.includes('importProvidersFrom')) {
209
- appConfigContent = "import { importProvidersFrom } from '@angular/core';\n" + appConfigContent;
210
- }
211
- // Add provider
212
- const providerCode = `
213
- importProvidersFrom(LucideAngularModule.pick({
214
- ArrowDown,
215
- ArrowUp,
216
- ChevronsUpDown,
217
- ChevronLeft,
218
- ChevronRight,
219
- ChevronsLeft,
220
- ChevronsRight
221
- }))`;
222
- if (!appConfigContent.includes('LucideAngularModule.pick')) {
223
- appConfigContent = appConfigContent.replace(/providers:\s*\[/, `providers: [${providerCode},`);
224
- await fs.writeFile(appConfigPath, appConfigContent);
225
- }
226
- }
227
196
  spinner.succeed(chalk.green('Project initialized successfully!'));
228
197
  console.log('\n' + chalk.bold('Next steps:'));
229
198
  console.log(chalk.dim(' 1. Add components: ') + chalk.cyan('npx @gilav21/shadcn-angular add button'));
@@ -119,7 +119,7 @@ export const registry = {
119
119
  'data-table/data-table-column-header.component.ts',
120
120
  'data-table/data-table-pagination.component.ts',
121
121
  'data-table/data-table.types.ts',
122
- 'data-table/cell-host.directive.ts',
122
+ 'data-table/index.ts',
123
123
  ],
124
124
  dependencies: [
125
125
  'table',
@@ -129,6 +129,8 @@ export const registry = {
129
129
  'select',
130
130
  'pagination',
131
131
  'popover',
132
+ 'component-outlet',
133
+ 'icon',
132
134
  ],
133
135
  },
134
136
  dialog: {
@@ -143,11 +145,12 @@ export const registry = {
143
145
  'dock-icon.component.ts',
144
146
  'dock-label.component.ts',
145
147
  ],
148
+ dependencies: ['icon'],
146
149
  },
147
150
  'tree-select': {
148
151
  name: 'tree-select',
149
152
  files: ['tree-select.component.ts'],
150
- dependencies: ['popover', 'tree'],
153
+ dependencies: ['popover', 'tree', 'icon'],
151
154
  },
152
155
  'virtual-scroll': {
153
156
  name: 'virtual-scroll',
@@ -174,6 +177,10 @@ export const registry = {
174
177
  name: 'field',
175
178
  files: ['field.component.ts'],
176
179
  },
180
+ icon: {
181
+ name: 'icon',
182
+ files: ['icon.component.ts'],
183
+ },
177
184
  'file-upload': {
178
185
  name: 'file-upload',
179
186
  files: ['file-upload.component.ts'],
@@ -263,7 +270,7 @@ export const registry = {
263
270
  sidebar: {
264
271
  name: 'sidebar',
265
272
  files: ['sidebar.component.ts'],
266
- dependencies: ['scroll-area', 'tooltip'],
273
+ dependencies: ['scroll-area', 'tooltip', 'icon'],
267
274
  },
268
275
  skeleton: {
269
276
  name: 'skeleton',
@@ -320,6 +327,7 @@ export const registry = {
320
327
  tree: {
321
328
  name: 'tree',
322
329
  files: ['tree.component.ts'],
330
+ dependencies: ['icon'],
323
331
  },
324
332
  'speed-dial': {
325
333
  name: 'speed-dial',
@@ -423,11 +431,34 @@ export const registry = {
423
431
  },
424
432
  'bento-grid': {
425
433
  name: 'bento-grid',
426
- dependencies: ['context-menu'],
434
+ dependencies: ['context-menu', 'component-outlet', 'icon'],
427
435
  files: [
428
436
  'bento-grid.component.ts',
429
437
  ],
430
438
  },
439
+ 'page-builder': {
440
+ name: 'page-builder',
441
+ dependencies: [
442
+ 'bento-grid',
443
+ 'button',
444
+ 'input',
445
+ 'label',
446
+ 'select',
447
+ 'switch',
448
+ 'slider',
449
+ 'icon'
450
+ ],
451
+ files: [
452
+ 'page-builder/page-builder.component.ts',
453
+ 'page-builder/page-builder.types.ts',
454
+ 'page-builder/property-editor.component.ts',
455
+ 'page-builder/page-renderer.component.ts'
456
+ ],
457
+ },
458
+ 'component-outlet': {
459
+ name: 'component-outlet',
460
+ files: ['component-outlet.directive.ts'],
461
+ },
431
462
  'split-button': {
432
463
  name: 'split-button',
433
464
  files: ['split-button.component.ts'],
@@ -12,7 +12,6 @@ export interface Config {
12
12
  utils: string;
13
13
  ui: string;
14
14
  };
15
- iconLibrary: string;
16
15
  }
17
16
  export declare function getDefaultConfig(): Config;
18
17
  export declare function getConfig(cwd: string): Promise<Config | null>;
@@ -15,7 +15,6 @@ export function getDefaultConfig() {
15
15
  utils: '@/components/lib/utils',
16
16
  ui: '@/components/ui',
17
17
  },
18
- iconLibrary: 'lucide-angular',
19
18
  };
20
19
  }
21
20
  export async function getConfig(cwd) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gilav21/shadcn-angular",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "CLI for adding shadcn-angular components to your project",
5
5
  "bin": {
6
6
  "shadcn-angular": "./dist/index.js"
@@ -145,7 +145,6 @@ export async function init(options: InitOptions) {
145
145
  utils: responses.utilsPath.replace('src/', '@/').replace('.ts', ''),
146
146
  ui: responses.componentsPath.replace('src/', '@/'),
147
147
  },
148
- iconLibrary: 'lucide-angular',
149
148
  };
150
149
  }
151
150
 
@@ -204,7 +203,6 @@ export async function init(options: InitOptions) {
204
203
  'clsx',
205
204
  'tailwind-merge',
206
205
  'class-variance-authority',
207
- 'lucide-angular',
208
206
  'tailwindcss',
209
207
  'postcss',
210
208
  '@tailwindcss/postcss'
@@ -224,43 +222,6 @@ export async function init(options: InitOptions) {
224
222
  await fs.writeJson(postcssrcPath, configContent, { spaces: 4 });
225
223
  }
226
224
 
227
- // Configure app.config.ts with Lucide icons
228
- spinner.text = 'Configuring icons in app.config.ts...';
229
- const appConfigPath = path.join(cwd, 'src/app/app.config.ts');
230
-
231
- if (await fs.pathExists(appConfigPath)) {
232
- let appConfigContent = await fs.readFile(appConfigPath, 'utf-8');
233
-
234
- // Add imports
235
- if (!appConfigContent.includes('LucideAngularModule')) {
236
- const iconImports = "import { LucideAngularModule, ArrowDown, ArrowUp, ChevronsUpDown, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from 'lucide-angular';";
237
- appConfigContent = iconImports + '\n' + appConfigContent;
238
- }
239
-
240
- if (!appConfigContent.includes('importProvidersFrom')) {
241
- appConfigContent = "import { importProvidersFrom } from '@angular/core';\n" + appConfigContent;
242
- }
243
-
244
- // Add provider
245
- const providerCode = `
246
- importProvidersFrom(LucideAngularModule.pick({
247
- ArrowDown,
248
- ArrowUp,
249
- ChevronsUpDown,
250
- ChevronLeft,
251
- ChevronRight,
252
- ChevronsLeft,
253
- ChevronsRight
254
- }))`;
255
-
256
- if (!appConfigContent.includes('LucideAngularModule.pick')) {
257
- appConfigContent = appConfigContent.replace(
258
- /providers:\s*\[/,
259
- `providers: [${providerCode},`
260
- );
261
- await fs.writeFile(appConfigPath, appConfigContent);
262
- }
263
- }
264
225
 
265
226
  spinner.succeed(chalk.green('Project initialized successfully!'));
266
227
 
@@ -129,7 +129,7 @@ export const registry: Record<string, ComponentDefinition> = {
129
129
  'data-table/data-table-column-header.component.ts',
130
130
  'data-table/data-table-pagination.component.ts',
131
131
  'data-table/data-table.types.ts',
132
- 'data-table/cell-host.directive.ts',
132
+ 'data-table/index.ts',
133
133
  ],
134
134
  dependencies: [
135
135
  'table',
@@ -139,6 +139,8 @@ export const registry: Record<string, ComponentDefinition> = {
139
139
  'select',
140
140
  'pagination',
141
141
  'popover',
142
+ 'component-outlet',
143
+ 'icon',
142
144
  ],
143
145
  },
144
146
  dialog: {
@@ -153,11 +155,12 @@ export const registry: Record<string, ComponentDefinition> = {
153
155
  'dock-icon.component.ts',
154
156
  'dock-label.component.ts',
155
157
  ],
158
+ dependencies: ['icon'],
156
159
  },
157
160
  'tree-select': {
158
161
  name: 'tree-select',
159
162
  files: ['tree-select.component.ts'],
160
- dependencies: ['popover', 'tree'],
163
+ dependencies: ['popover', 'tree', 'icon'],
161
164
  },
162
165
  'virtual-scroll': {
163
166
  name: 'virtual-scroll',
@@ -184,6 +187,10 @@ export const registry: Record<string, ComponentDefinition> = {
184
187
  name: 'field',
185
188
  files: ['field.component.ts'],
186
189
  },
190
+ icon: {
191
+ name: 'icon',
192
+ files: ['icon.component.ts'],
193
+ },
187
194
 
188
195
  'file-upload': {
189
196
  name: 'file-upload',
@@ -274,7 +281,7 @@ export const registry: Record<string, ComponentDefinition> = {
274
281
  sidebar: {
275
282
  name: 'sidebar',
276
283
  files: ['sidebar.component.ts'],
277
- dependencies: ['scroll-area', 'tooltip'],
284
+ dependencies: ['scroll-area', 'tooltip', 'icon'],
278
285
  },
279
286
  skeleton: {
280
287
  name: 'skeleton',
@@ -331,6 +338,7 @@ export const registry: Record<string, ComponentDefinition> = {
331
338
  tree: {
332
339
  name: 'tree',
333
340
  files: ['tree.component.ts'],
341
+ dependencies: ['icon'],
334
342
  },
335
343
  'speed-dial': {
336
344
  name: 'speed-dial',
@@ -434,11 +442,34 @@ export const registry: Record<string, ComponentDefinition> = {
434
442
  },
435
443
  'bento-grid': {
436
444
  name: 'bento-grid',
437
- dependencies: ['context-menu'],
445
+ dependencies: ['context-menu', 'component-outlet', 'icon'],
438
446
  files: [
439
447
  'bento-grid.component.ts',
440
448
  ],
441
449
  },
450
+ 'page-builder': {
451
+ name: 'page-builder',
452
+ dependencies: [
453
+ 'bento-grid',
454
+ 'button',
455
+ 'input',
456
+ 'label',
457
+ 'select',
458
+ 'switch',
459
+ 'slider',
460
+ 'icon'
461
+ ],
462
+ files: [
463
+ 'page-builder/page-builder.component.ts',
464
+ 'page-builder/page-builder.types.ts',
465
+ 'page-builder/property-editor.component.ts',
466
+ 'page-builder/page-renderer.component.ts'
467
+ ],
468
+ },
469
+ 'component-outlet': {
470
+ name: 'component-outlet',
471
+ files: ['component-outlet.directive.ts'],
472
+ },
442
473
  'split-button': {
443
474
  name: 'split-button',
444
475
  files: ['split-button.component.ts'],
@@ -15,7 +15,6 @@ export interface Config {
15
15
  utils: string;
16
16
  ui: string;
17
17
  };
18
- iconLibrary: string;
19
18
  }
20
19
 
21
20
  export function getDefaultConfig(): Config {
@@ -33,7 +32,6 @@ export function getDefaultConfig(): Config {
33
32
  utils: '@/components/lib/utils',
34
33
  ui: '@/components/ui',
35
34
  },
36
- iconLibrary: 'lucide-angular',
37
35
  };
38
36
  }
39
37