grg-kit-cli 0.3.1 → 0.3.3

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.
@@ -2,6 +2,9 @@
2
2
  * Resource definitions for GRG Kit
3
3
  * This file is auto-generated from templates directory
4
4
  * Run: node scripts/generate-resources.js to update
5
+ *
6
+ * Note: Spartan-NG examples are NOT included here.
7
+ * They are pre-installed via grg init and documented in design-system.md
5
8
  */
6
9
 
7
10
  const RESOURCES = {
@@ -161,7 +164,7 @@ const RESOURCES = {
161
164
  "name": "auth",
162
165
  "title": "Auth Block",
163
166
  "description": "Authentication pages layout (login, signup, forgot password)",
164
- "path": "templates/ui/layouts/auth",
167
+ "path": "templates/ui/blocks/auth",
165
168
  "defaultOutput": "src/app/blocks/auth",
166
169
  "tags": [
167
170
  "auth",
@@ -179,7 +182,7 @@ const RESOURCES = {
179
182
  "name": "settings",
180
183
  "title": "Settings Block",
181
184
  "description": "settings block",
182
- "path": "templates/ui/layouts/settings",
185
+ "path": "templates/ui/blocks/settings",
183
186
  "defaultOutput": "src/app/blocks/settings",
184
187
  "tags": [
185
188
  "settings"
@@ -190,705 +193,14 @@ const RESOURCES = {
190
193
  "name": "shell",
191
194
  "title": "Shell Block",
192
195
  "description": "shell block",
193
- "path": "templates/ui/layouts/shell",
196
+ "path": "templates/ui/blocks/shell",
194
197
  "defaultOutput": "src/app/blocks/shell",
195
198
  "tags": [
196
199
  "shell"
197
200
  ],
198
201
  "dependencies": []
199
202
  }
200
- ],
201
- "examples": {
202
- "all": {
203
- "name": "all",
204
- "title": "All Spartan-NG Examples",
205
- "description": "Complete collection of 56+ Spartan-NG component examples with usage patterns and variants",
206
- "path": "templates/spartan-examples",
207
- "defaultOutput": "src/app/spartan-examples",
208
- "tags": [
209
- "examples",
210
- "spartan-ng",
211
- "all",
212
- "reference"
213
- ],
214
- "count": "56+",
215
- "purpose": "Learning and reference for developers and LLMs"
216
- },
217
- "components": [
218
- {
219
- "name": "accordion",
220
- "title": "Accordion Examples",
221
- "description": "Collapsible content sections examples",
222
- "path": "templates/spartan-examples/components/(accordion)",
223
- "defaultOutput": "src/app/examples/accordion",
224
- "tags": [
225
- "accordion",
226
- "example",
227
- "spartan-ng"
228
- ]
229
- },
230
- {
231
- "name": "alert",
232
- "title": "Alert Examples",
233
- "description": "Status messages and notifications examples",
234
- "path": "templates/spartan-examples/components/(alert)",
235
- "defaultOutput": "src/app/examples/alert",
236
- "tags": [
237
- "alert",
238
- "example",
239
- "spartan-ng"
240
- ]
241
- },
242
- {
243
- "name": "alert-dialog",
244
- "title": "Alert Dialog Examples",
245
- "description": "Confirmation and alert dialogs examples",
246
- "path": "templates/spartan-examples/components/(alert-dialog)",
247
- "defaultOutput": "src/app/examples/alert-dialog",
248
- "tags": [
249
- "alert-dialog",
250
- "example",
251
- "spartan-ng"
252
- ]
253
- },
254
- {
255
- "name": "aspect-ratio",
256
- "title": "Aspect Ratio Examples",
257
- "description": "Responsive containers with fixed aspect ratios examples",
258
- "path": "templates/spartan-examples/components/(aspect-ratio)",
259
- "defaultOutput": "src/app/examples/aspect-ratio",
260
- "tags": [
261
- "aspect-ratio",
262
- "example",
263
- "spartan-ng"
264
- ]
265
- },
266
- {
267
- "name": "autocomplete",
268
- "title": "Autocomplete Examples",
269
- "description": "Search-enabled input controls examples",
270
- "path": "templates/spartan-examples/components/(autocomplete)",
271
- "defaultOutput": "src/app/examples/autocomplete",
272
- "tags": [
273
- "autocomplete",
274
- "example",
275
- "spartan-ng"
276
- ]
277
- },
278
- {
279
- "name": "avatar",
280
- "title": "Avatar Examples",
281
- "description": "User profile images with fallbacks examples",
282
- "path": "templates/spartan-examples/components/(avatar)",
283
- "defaultOutput": "src/app/examples/avatar",
284
- "tags": [
285
- "avatar",
286
- "example",
287
- "spartan-ng"
288
- ]
289
- },
290
- {
291
- "name": "badge",
292
- "title": "Badge Examples",
293
- "description": "Status indicators and tags examples",
294
- "path": "templates/spartan-examples/components/(badge)",
295
- "defaultOutput": "src/app/examples/badge",
296
- "tags": [
297
- "badge",
298
- "example",
299
- "spartan-ng"
300
- ]
301
- },
302
- {
303
- "name": "breadcrumb",
304
- "title": "Breadcrumb Examples",
305
- "description": "Hierarchical navigation indicators examples",
306
- "path": "templates/spartan-examples/components/(breadcrumb)",
307
- "defaultOutput": "src/app/examples/breadcrumb",
308
- "tags": [
309
- "breadcrumb",
310
- "example",
311
- "spartan-ng"
312
- ]
313
- },
314
- {
315
- "name": "button",
316
- "title": "Button Examples",
317
- "description": "Interactive buttons with multiple variants examples",
318
- "path": "templates/spartan-examples/components/(button)",
319
- "defaultOutput": "src/app/examples/button",
320
- "tags": [
321
- "button",
322
- "example",
323
- "spartan-ng"
324
- ]
325
- },
326
- {
327
- "name": "button-group",
328
- "title": "Button Group Examples",
329
- "description": "Grouped button controls examples",
330
- "path": "templates/spartan-examples/components/(button-group)",
331
- "defaultOutput": "src/app/examples/button-group",
332
- "tags": [
333
- "button-group",
334
- "example",
335
- "spartan-ng"
336
- ]
337
- },
338
- {
339
- "name": "calendar",
340
- "title": "Calendar Examples",
341
- "description": "Date selection interfaces examples",
342
- "path": "templates/spartan-examples/components/(calendar)",
343
- "defaultOutput": "src/app/examples/calendar",
344
- "tags": [
345
- "calendar",
346
- "example",
347
- "spartan-ng"
348
- ]
349
- },
350
- {
351
- "name": "card",
352
- "title": "Card Examples",
353
- "description": "Content containers with header, content, and footer examples",
354
- "path": "templates/spartan-examples/components/(card)",
355
- "defaultOutput": "src/app/examples/card",
356
- "tags": [
357
- "card",
358
- "example",
359
- "spartan-ng"
360
- ]
361
- },
362
- {
363
- "name": "carousel",
364
- "title": "Carousel Examples",
365
- "description": "Image and content carousels examples",
366
- "path": "templates/spartan-examples/components/(carousel)",
367
- "defaultOutput": "src/app/examples/carousel",
368
- "tags": [
369
- "carousel",
370
- "example",
371
- "spartan-ng"
372
- ]
373
- },
374
- {
375
- "name": "checkbox",
376
- "title": "Checkbox Examples",
377
- "description": "Boolean input controls examples",
378
- "path": "templates/spartan-examples/components/(checkbox)",
379
- "defaultOutput": "src/app/examples/checkbox",
380
- "tags": [
381
- "checkbox",
382
- "example",
383
- "spartan-ng"
384
- ]
385
- },
386
- {
387
- "name": "collapsible",
388
- "title": "Collapsible Examples",
389
- "description": "Expandable/collapsible content examples",
390
- "path": "templates/spartan-examples/components/(collapsible)",
391
- "defaultOutput": "src/app/examples/collapsible",
392
- "tags": [
393
- "collapsible",
394
- "example",
395
- "spartan-ng"
396
- ]
397
- },
398
- {
399
- "name": "combobox",
400
- "title": "Combobox Examples",
401
- "description": "Searchable select controls examples",
402
- "path": "templates/spartan-examples/components/(combobox)",
403
- "defaultOutput": "src/app/examples/combobox",
404
- "tags": [
405
- "combobox",
406
- "example",
407
- "spartan-ng"
408
- ]
409
- },
410
- {
411
- "name": "command",
412
- "title": "Command Examples",
413
- "description": "Command palette and search interfaces examples",
414
- "path": "templates/spartan-examples/components/(command)",
415
- "defaultOutput": "src/app/examples/command",
416
- "tags": [
417
- "command",
418
- "example",
419
- "spartan-ng"
420
- ]
421
- },
422
- {
423
- "name": "context-menu",
424
- "title": "Context Menu Examples",
425
- "description": "Right-click context menus examples",
426
- "path": "templates/spartan-examples/components/(context-menu)",
427
- "defaultOutput": "src/app/examples/context-menu",
428
- "tags": [
429
- "context-menu",
430
- "example",
431
- "spartan-ng"
432
- ]
433
- },
434
- {
435
- "name": "data-table",
436
- "title": "Data Table Examples",
437
- "description": "Advanced data tables with sorting and filtering examples",
438
- "path": "templates/spartan-examples/components/(data-table)",
439
- "defaultOutput": "src/app/examples/data-table",
440
- "tags": [
441
- "data-table",
442
- "example",
443
- "spartan-ng"
444
- ]
445
- },
446
- {
447
- "name": "date-picker",
448
- "title": "Date Picker Examples",
449
- "description": "Date input controls examples",
450
- "path": "templates/spartan-examples/components/(date-picker)",
451
- "defaultOutput": "src/app/examples/date-picker",
452
- "tags": [
453
- "date-picker",
454
- "example",
455
- "spartan-ng"
456
- ]
457
- },
458
- {
459
- "name": "dialog",
460
- "title": "Dialog Examples",
461
- "description": "Modal dialogs and popups examples",
462
- "path": "templates/spartan-examples/components/(dialog)",
463
- "defaultOutput": "src/app/examples/dialog",
464
- "tags": [
465
- "dialog",
466
- "example",
467
- "spartan-ng"
468
- ]
469
- },
470
- {
471
- "name": "dropdown-menu",
472
- "title": "Dropdown Menu Examples",
473
- "description": "Dropdown menu controls examples",
474
- "path": "templates/spartan-examples/components/(dropdown-menu)",
475
- "defaultOutput": "src/app/examples/dropdown-menu",
476
- "tags": [
477
- "dropdown-menu",
478
- "example",
479
- "spartan-ng"
480
- ]
481
- },
482
- {
483
- "name": "empty",
484
- "title": "Empty Examples",
485
- "description": "Empty state components examples",
486
- "path": "templates/spartan-examples/components/(empty)",
487
- "defaultOutput": "src/app/examples/empty",
488
- "tags": [
489
- "empty",
490
- "example",
491
- "spartan-ng"
492
- ]
493
- },
494
- {
495
- "name": "field",
496
- "title": "Field Examples",
497
- "description": "Form field components examples",
498
- "path": "templates/spartan-examples/components/(field)",
499
- "defaultOutput": "src/app/examples/field",
500
- "tags": [
501
- "field",
502
- "example",
503
- "spartan-ng"
504
- ]
505
- },
506
- {
507
- "name": "form-field",
508
- "title": "Form Field Examples",
509
- "description": "Complete form fields with validation examples",
510
- "path": "templates/spartan-examples/components/(form-field)",
511
- "defaultOutput": "src/app/examples/form-field",
512
- "tags": [
513
- "form-field",
514
- "example",
515
- "spartan-ng"
516
- ]
517
- },
518
- {
519
- "name": "hover-card",
520
- "title": "Hover Card Examples",
521
- "description": "Content previews on hover examples",
522
- "path": "templates/spartan-examples/components/(hover-card)",
523
- "defaultOutput": "src/app/examples/hover-card",
524
- "tags": [
525
- "hover-card",
526
- "example",
527
- "spartan-ng"
528
- ]
529
- },
530
- {
531
- "name": "icon",
532
- "title": "Icon Examples",
533
- "description": "Icon components examples",
534
- "path": "templates/spartan-examples/components/(icon)",
535
- "defaultOutput": "src/app/examples/icon",
536
- "tags": [
537
- "icon",
538
- "example",
539
- "spartan-ng"
540
- ]
541
- },
542
- {
543
- "name": "input",
544
- "title": "Input Examples",
545
- "description": "Form input fields examples",
546
- "path": "templates/spartan-examples/components/(input)",
547
- "defaultOutput": "src/app/examples/input",
548
- "tags": [
549
- "input",
550
- "example",
551
- "spartan-ng"
552
- ]
553
- },
554
- {
555
- "name": "input-group",
556
- "title": "Input Group Examples",
557
- "description": "Grouped input controls examples",
558
- "path": "templates/spartan-examples/components/(input-group)",
559
- "defaultOutput": "src/app/examples/input-group",
560
- "tags": [
561
- "input-group",
562
- "example",
563
- "spartan-ng"
564
- ]
565
- },
566
- {
567
- "name": "input-otp",
568
- "title": "Input Otp Examples",
569
- "description": "One-time password inputs examples",
570
- "path": "templates/spartan-examples/components/(input-otp)",
571
- "defaultOutput": "src/app/examples/input-otp",
572
- "tags": [
573
- "input-otp",
574
- "example",
575
- "spartan-ng"
576
- ]
577
- },
578
- {
579
- "name": "item",
580
- "title": "Item Examples",
581
- "description": "List item components examples",
582
- "path": "templates/spartan-examples/components/(item)",
583
- "defaultOutput": "src/app/examples/item",
584
- "tags": [
585
- "item",
586
- "example",
587
- "spartan-ng"
588
- ]
589
- },
590
- {
591
- "name": "kbd",
592
- "title": "Kbd Examples",
593
- "description": "Keyboard shortcut displays examples",
594
- "path": "templates/spartan-examples/components/(kbd)",
595
- "defaultOutput": "src/app/examples/kbd",
596
- "tags": [
597
- "kbd",
598
- "example",
599
- "spartan-ng"
600
- ]
601
- },
602
- {
603
- "name": "label",
604
- "title": "Label Examples",
605
- "description": "Form labels examples",
606
- "path": "templates/spartan-examples/components/(label)",
607
- "defaultOutput": "src/app/examples/label",
608
- "tags": [
609
- "label",
610
- "example",
611
- "spartan-ng"
612
- ]
613
- },
614
- {
615
- "name": "menubar",
616
- "title": "Menubar Examples",
617
- "description": "Application menu bars examples",
618
- "path": "templates/spartan-examples/components/(menubar)",
619
- "defaultOutput": "src/app/examples/menubar",
620
- "tags": [
621
- "menubar",
622
- "example",
623
- "spartan-ng"
624
- ]
625
- },
626
- {
627
- "name": "navigation-menu",
628
- "title": "Navigation Menu Examples",
629
- "description": "Primary navigation menus examples",
630
- "path": "templates/spartan-examples/components/(navigation-menu)",
631
- "defaultOutput": "src/app/examples/navigation-menu",
632
- "tags": [
633
- "navigation-menu",
634
- "example",
635
- "spartan-ng"
636
- ]
637
- },
638
- {
639
- "name": "pagination",
640
- "title": "Pagination Examples",
641
- "description": "Data pagination controls examples",
642
- "path": "templates/spartan-examples/components/(pagination)",
643
- "defaultOutput": "src/app/examples/pagination",
644
- "tags": [
645
- "pagination",
646
- "example",
647
- "spartan-ng"
648
- ]
649
- },
650
- {
651
- "name": "popover",
652
- "title": "Popover Examples",
653
- "description": "Contextual content overlays examples",
654
- "path": "templates/spartan-examples/components/(popover)",
655
- "defaultOutput": "src/app/examples/popover",
656
- "tags": [
657
- "popover",
658
- "example",
659
- "spartan-ng"
660
- ]
661
- },
662
- {
663
- "name": "progress",
664
- "title": "Progress Examples",
665
- "description": "Progress indicators examples",
666
- "path": "templates/spartan-examples/components/(progress)",
667
- "defaultOutput": "src/app/examples/progress",
668
- "tags": [
669
- "progress",
670
- "example",
671
- "spartan-ng"
672
- ]
673
- },
674
- {
675
- "name": "radio-group",
676
- "title": "Radio Group Examples",
677
- "description": "Single-choice selection controls examples",
678
- "path": "templates/spartan-examples/components/(radio-group)",
679
- "defaultOutput": "src/app/examples/radio-group",
680
- "tags": [
681
- "radio-group",
682
- "example",
683
- "spartan-ng"
684
- ]
685
- },
686
- {
687
- "name": "resizable",
688
- "title": "Resizable Examples",
689
- "description": "Resizable panels examples",
690
- "path": "templates/spartan-examples/components/(resizable)",
691
- "defaultOutput": "src/app/examples/resizable",
692
- "tags": [
693
- "resizable",
694
- "example",
695
- "spartan-ng"
696
- ]
697
- },
698
- {
699
- "name": "scroll-area",
700
- "title": "Scroll Area Examples",
701
- "description": "Custom scrollable containers examples",
702
- "path": "templates/spartan-examples/components/(scroll-area)",
703
- "defaultOutput": "src/app/examples/scroll-area",
704
- "tags": [
705
- "scroll-area",
706
- "example",
707
- "spartan-ng"
708
- ]
709
- },
710
- {
711
- "name": "select",
712
- "title": "Select Examples",
713
- "description": "Dropdown selection controls examples",
714
- "path": "templates/spartan-examples/components/(select)",
715
- "defaultOutput": "src/app/examples/select",
716
- "tags": [
717
- "select",
718
- "example",
719
- "spartan-ng"
720
- ]
721
- },
722
- {
723
- "name": "separator",
724
- "title": "Separator Examples",
725
- "description": "Visual dividers examples",
726
- "path": "templates/spartan-examples/components/(separator)",
727
- "defaultOutput": "src/app/examples/separator",
728
- "tags": [
729
- "separator",
730
- "example",
731
- "spartan-ng"
732
- ]
733
- },
734
- {
735
- "name": "sheet",
736
- "title": "Sheet Examples",
737
- "description": "Slide-out panels examples",
738
- "path": "templates/spartan-examples/components/(sheet)",
739
- "defaultOutput": "src/app/examples/sheet",
740
- "tags": [
741
- "sheet",
742
- "example",
743
- "spartan-ng"
744
- ]
745
- },
746
- {
747
- "name": "sidebar",
748
- "title": "Sidebar Examples",
749
- "description": "Application sidebars examples",
750
- "path": "templates/spartan-examples/components/(sidebar)",
751
- "defaultOutput": "src/app/examples/sidebar",
752
- "tags": [
753
- "sidebar",
754
- "example",
755
- "spartan-ng"
756
- ]
757
- },
758
- {
759
- "name": "skeleton",
760
- "title": "Skeleton Examples",
761
- "description": "Loading state placeholders examples",
762
- "path": "templates/spartan-examples/components/(skeleton)",
763
- "defaultOutput": "src/app/examples/skeleton",
764
- "tags": [
765
- "skeleton",
766
- "example",
767
- "spartan-ng"
768
- ]
769
- },
770
- {
771
- "name": "slider",
772
- "title": "Slider Examples",
773
- "description": "Range input controls examples",
774
- "path": "templates/spartan-examples/components/(slider)",
775
- "defaultOutput": "src/app/examples/slider",
776
- "tags": [
777
- "slider",
778
- "example",
779
- "spartan-ng"
780
- ]
781
- },
782
- {
783
- "name": "sonner",
784
- "title": "Sonner Examples",
785
- "description": "Toast notifications examples",
786
- "path": "templates/spartan-examples/components/(sonner)",
787
- "defaultOutput": "src/app/examples/sonner",
788
- "tags": [
789
- "sonner",
790
- "example",
791
- "spartan-ng"
792
- ]
793
- },
794
- {
795
- "name": "spinner",
796
- "title": "Spinner Examples",
797
- "description": "Loading spinners examples",
798
- "path": "templates/spartan-examples/components/(spinner)",
799
- "defaultOutput": "src/app/examples/spinner",
800
- "tags": [
801
- "spinner",
802
- "example",
803
- "spartan-ng"
804
- ]
805
- },
806
- {
807
- "name": "switch",
808
- "title": "Switch Examples",
809
- "description": "Toggle switches examples",
810
- "path": "templates/spartan-examples/components/(switch)",
811
- "defaultOutput": "src/app/examples/switch",
812
- "tags": [
813
- "switch",
814
- "example",
815
- "spartan-ng"
816
- ]
817
- },
818
- {
819
- "name": "table",
820
- "title": "Table Examples",
821
- "description": "Data tables examples",
822
- "path": "templates/spartan-examples/components/(table)",
823
- "defaultOutput": "src/app/examples/table",
824
- "tags": [
825
- "table",
826
- "example",
827
- "spartan-ng"
828
- ]
829
- },
830
- {
831
- "name": "tabs",
832
- "title": "Tabs Examples",
833
- "description": "Tabbed interfaces examples",
834
- "path": "templates/spartan-examples/components/(tabs)",
835
- "defaultOutput": "src/app/examples/tabs",
836
- "tags": [
837
- "tabs",
838
- "example",
839
- "spartan-ng"
840
- ]
841
- },
842
- {
843
- "name": "textarea",
844
- "title": "Textarea Examples",
845
- "description": "Multi-line text inputs examples",
846
- "path": "templates/spartan-examples/components/(textarea)",
847
- "defaultOutput": "src/app/examples/textarea",
848
- "tags": [
849
- "textarea",
850
- "example",
851
- "spartan-ng"
852
- ]
853
- },
854
- {
855
- "name": "toggle",
856
- "title": "Toggle Examples",
857
- "description": "Toggle buttons examples",
858
- "path": "templates/spartan-examples/components/(toggle)",
859
- "defaultOutput": "src/app/examples/toggle",
860
- "tags": [
861
- "toggle",
862
- "example",
863
- "spartan-ng"
864
- ]
865
- },
866
- {
867
- "name": "toggle-group",
868
- "title": "Toggle Group Examples",
869
- "description": "Grouped toggle controls examples",
870
- "path": "templates/spartan-examples/components/(toggle-group)",
871
- "defaultOutput": "src/app/examples/toggle-group",
872
- "tags": [
873
- "toggle-group",
874
- "example",
875
- "spartan-ng"
876
- ]
877
- },
878
- {
879
- "name": "tooltip",
880
- "title": "Tooltip Examples",
881
- "description": "Contextual tooltips examples",
882
- "path": "templates/spartan-examples/components/(tooltip)",
883
- "defaultOutput": "src/app/examples/tooltip",
884
- "tags": [
885
- "tooltip",
886
- "example",
887
- "spartan-ng"
888
- ]
889
- }
890
- ]
891
- }
203
+ ]
892
204
  };
893
205
 
894
206
  const REPO = 'Genesis-Research/grg-kit';