fulldev-ui 0.5.0-beta.0 → 0.5.0-beta.10

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.
Files changed (91) hide show
  1. package/CONTRIBUTING.md +10 -4
  2. package/astro.config.ts +4 -11
  3. package/package.json +5 -3
  4. package/pnpm-lock.yaml +6400 -0
  5. package/src/blocks/Article.astro +31 -12
  6. package/src/blocks/Banner.astro +2 -1
  7. package/src/blocks/Contact.astro +7 -30
  8. package/src/blocks/Excerpt.astro +14 -0
  9. package/src/blocks/Intro.astro +3 -1
  10. package/src/blocks/Product.astro +55 -22
  11. package/src/components/Card.astro +11 -5
  12. package/src/components/Cart.astro +38 -0
  13. package/src/components/CartForm.astro +121 -0
  14. package/src/components/CartList.astro +134 -0
  15. package/src/components/CartSummary.astro +147 -0
  16. package/src/components/Drawer.astro +128 -52
  17. package/src/components/Footer.astro +6 -3
  18. package/src/components/Form.astro +49 -0
  19. package/src/components/Header.astro +19 -14
  20. package/src/components/Image.astro +0 -1
  21. package/src/components/Input.astro +6 -0
  22. package/src/components/Menu.astro +56 -0
  23. package/src/components/Price.astro +7 -11
  24. package/src/components/Search.astro +1 -4
  25. package/src/components/Section.astro +2 -1
  26. package/src/components/Sidebar.astro +66 -105
  27. package/src/components/Social.astro +7 -0
  28. package/src/components/ThemeSelect.astro +3 -0
  29. package/src/components/Toc.astro +33 -94
  30. package/src/components/docs/PropsTable.astro +2 -2
  31. package/src/components/experimental/Form.astro +31 -5
  32. package/src/components/experimental/Gallery.astro +50 -126
  33. package/src/components/experimental/Prose.astro +32 -0
  34. package/src/content/pages/base/select.mdx +0 -8
  35. package/src/content/pages/base/textarea.mdx +0 -5
  36. package/src/content/pages/blocks/_product.mdx +73 -2
  37. package/src/content/pages/index.mdx +0 -3
  38. package/src/content/pages/layouts/_layout.mdx +14 -0
  39. package/src/content/pages/layouts/docslayout.mdx +10 -1
  40. package/src/content/pages/overview/components.mdx +5 -0
  41. package/src/content/pages/overview/content-collections.mdx +139 -0
  42. package/src/content/pages/overview/installation.mdx +25 -26
  43. package/src/content/pages/overview/introduction.mdx +16 -10
  44. package/src/content/pages/overview/theming.mdx +69 -0
  45. package/src/content/pages/schemas/page.mdx +6 -0
  46. package/src/content/presets/base.yml +57 -44
  47. package/src/content/presets/blocks.yml +0 -3
  48. package/src/content/presets/docs.yml +3 -62
  49. package/src/env.d.ts +1 -1
  50. package/src/integration/index.ts +49 -33
  51. package/src/layouts/DocsLayout.astro +23 -35
  52. package/src/layouts/Layout.astro +37 -21
  53. package/src/layouts/OverviewLayout.astro +17 -10
  54. package/src/layouts/PostLayout.astro +7 -7
  55. package/src/layouts/ProductLayout.astro +5 -2
  56. package/src/schemas/components/footer.ts +1 -0
  57. package/src/schemas/components/header.ts +1 -0
  58. package/src/schemas/components/menu.ts +13 -0
  59. package/src/schemas/components/sidebar.ts +15 -0
  60. package/src/schemas/components/toc.ts +3 -0
  61. package/src/schemas/pageSchema.ts +72 -34
  62. package/src/schemas/presetSchema.ts +2 -28
  63. package/src/schemas/utils/navigation.ts +6 -51
  64. package/src/stores/cart.ts +23 -0
  65. package/src/utils/cart.ts +36 -0
  66. package/src/utils/{getChildPages.ts → getFolderChildren.ts} +3 -1
  67. package/src/utils/{getCategoryPages.ts → getReferenceChildren.ts} +6 -3
  68. package/tsconfig.json +1 -3
  69. package/.astro/assets.mjs +0 -1
  70. package/.astro/astro/content.d.ts +0 -547
  71. package/.astro/collections/blocks.schema.json +0 -851
  72. package/.astro/collections/collections.json +0 -63
  73. package/.astro/collections/images.schema.json +0 -22
  74. package/.astro/collections/layouts.schema.json +0 -826
  75. package/.astro/collections/pages.schema.json +0 -568
  76. package/.astro/collections/presets.schema.json +0 -489
  77. package/.astro/collections/records.schema.json +0 -822
  78. package/.astro/collections/settings.schema.json +0 -822
  79. package/.astro/data-store.json +0 -1
  80. package/.astro/modules.mjs +0 -1
  81. package/.astro/settings.json +0 -5
  82. package/.astro/types.d.ts +0 -2
  83. package/src/components/experimental/GalleryVertical.astro +0 -161
  84. package/src/content/pages/layouts/layout.mdx +0 -21
  85. package/src/content/pages/layouts/pagelayout.mdx +0 -21
  86. package/src/content/pages/overview/content-layer.mdx +0 -128
  87. package/src/content/pages/overview/customization.mdx +0 -83
  88. package/src/layouts/ContentLayout.astro +0 -16
  89. package/src/layouts/PageLayout.astro +0 -15
  90. /package/src/schemas/utils/{categories.ts → parents.ts} +0 -0
  91. /package/src/types/{global-props.d.ts → global-props.ts} +0 -0
@@ -1,826 +0,0 @@
1
- {
2
- "$ref": "#/definitions/layouts",
3
- "definitions": {
4
- "layouts": {
5
- "anyOf": [
6
- {
7
- "not": {}
8
- },
9
- {
10
- "type": "object",
11
- "properties": {
12
- "tagline": {
13
- "type": "string"
14
- },
15
- "icon": {
16
- "type": "string"
17
- },
18
- "badge": {
19
- "anyOf": [
20
- {
21
- "type": "string"
22
- },
23
- {
24
- "type": "object",
25
- "properties": {
26
- "text": {
27
- "type": "string"
28
- },
29
- "href": {
30
- "type": "string"
31
- }
32
- },
33
- "required": [
34
- "text",
35
- "href"
36
- ],
37
- "additionalProperties": false
38
- }
39
- ]
40
- },
41
- "heading": {
42
- "type": "string"
43
- },
44
- "text": {
45
- "type": "string"
46
- },
47
- "html": {
48
- "type": "string"
49
- },
50
- "image": {
51
- "type": "string"
52
- },
53
- "images": {
54
- "type": "array",
55
- "items": {
56
- "type": "string"
57
- }
58
- },
59
- "rating": {
60
- "anyOf": [
61
- {
62
- "type": "number"
63
- },
64
- {
65
- "type": "object",
66
- "properties": {
67
- "value": {
68
- "type": "number"
69
- },
70
- "label": {
71
- "type": "string"
72
- },
73
- "avatars": {
74
- "type": "array",
75
- "items": {
76
- "type": "string"
77
- }
78
- },
79
- "avatar": {
80
- "type": "string"
81
- }
82
- },
83
- "additionalProperties": false
84
- }
85
- ]
86
- },
87
- "button": {
88
- "type": "object",
89
- "properties": {
90
- "text": {
91
- "type": "string"
92
- },
93
- "href": {
94
- "type": "string"
95
- },
96
- "icon": {
97
- "type": "string"
98
- }
99
- },
100
- "additionalProperties": true
101
- },
102
- "buttons": {
103
- "type": "array",
104
- "items": {
105
- "$ref": "#/definitions/layouts/anyOf/1/properties/button"
106
- }
107
- },
108
- "link": {
109
- "type": "object",
110
- "properties": {
111
- "text": {
112
- "type": "string"
113
- },
114
- "href": {
115
- "type": "string"
116
- }
117
- },
118
- "additionalProperties": true
119
- },
120
- "links": {
121
- "type": "array",
122
- "items": {
123
- "$ref": "#/definitions/layouts/anyOf/1/properties/link"
124
- }
125
- },
126
- "list": {
127
- "type": "array",
128
- "items": {
129
- "type": "string"
130
- }
131
- },
132
- "avatar": {
133
- "type": "string"
134
- },
135
- "price": {
136
- "type": "number"
137
- },
138
- "input": {
139
- "type": "object",
140
- "properties": {
141
- "placeholder": {
142
- "type": "string"
143
- },
144
- "submit": {
145
- "type": "string"
146
- }
147
- },
148
- "additionalProperties": true
149
- },
150
- "logos": {
151
- "type": "array",
152
- "items": {
153
- "type": "string"
154
- }
155
- },
156
- "logo": {
157
- "type": "string"
158
- },
159
- "channels": {
160
- "type": "object",
161
- "properties": {
162
- "phone": {
163
- "type": "string"
164
- },
165
- "email": {
166
- "type": "string"
167
- },
168
- "address": {
169
- "type": "string"
170
- }
171
- },
172
- "additionalProperties": true
173
- },
174
- "socials": {
175
- "type": "object",
176
- "properties": {
177
- "facebook": {
178
- "type": "string"
179
- },
180
- "instagram": {
181
- "type": "string"
182
- }
183
- },
184
- "additionalProperties": true
185
- },
186
- "hours": {
187
- "type": "object",
188
- "properties": {
189
- "monday": {
190
- "type": "string"
191
- },
192
- "tuesday": {
193
- "type": "string"
194
- },
195
- "wednesday": {
196
- "type": "string"
197
- },
198
- "thursday": {
199
- "type": "string"
200
- },
201
- "friday": {
202
- "type": "string"
203
- },
204
- "saturday": {
205
- "type": "string"
206
- },
207
- "sunday": {
208
- "type": "string"
209
- }
210
- },
211
- "additionalProperties": true
212
- },
213
- "i18n": {
214
- "allOf": [
215
- {
216
- "type": "string"
217
- },
218
- {
219
- "anyOf": [
220
- {
221
- "type": "string"
222
- },
223
- {
224
- "type": "object",
225
- "properties": {
226
- "id": {
227
- "type": "string"
228
- },
229
- "collection": {
230
- "type": "string"
231
- }
232
- },
233
- "required": [
234
- "id",
235
- "collection"
236
- ],
237
- "additionalProperties": false
238
- },
239
- {
240
- "type": "object",
241
- "properties": {
242
- "slug": {
243
- "type": "string"
244
- },
245
- "collection": {
246
- "type": "string"
247
- }
248
- },
249
- "required": [
250
- "slug",
251
- "collection"
252
- ],
253
- "additionalProperties": false
254
- }
255
- ]
256
- }
257
- ]
258
- },
259
- "_layout": {
260
- "allOf": [
261
- {
262
- "type": "string"
263
- },
264
- {
265
- "anyOf": [
266
- {
267
- "type": "string"
268
- },
269
- {
270
- "type": "object",
271
- "properties": {
272
- "id": {
273
- "type": "string"
274
- },
275
- "collection": {
276
- "type": "string"
277
- }
278
- },
279
- "required": [
280
- "id",
281
- "collection"
282
- ],
283
- "additionalProperties": false
284
- },
285
- {
286
- "type": "object",
287
- "properties": {
288
- "slug": {
289
- "type": "string"
290
- },
291
- "collection": {
292
- "type": "string"
293
- }
294
- },
295
- "required": [
296
- "slug",
297
- "collection"
298
- ],
299
- "additionalProperties": false
300
- }
301
- ]
302
- }
303
- ]
304
- },
305
- "seo": {
306
- "type": "object",
307
- "properties": {
308
- "title": {
309
- "type": "string"
310
- },
311
- "description": {
312
- "type": "string"
313
- },
314
- "image": {
315
- "type": "string"
316
- }
317
- },
318
- "additionalProperties": true
319
- },
320
- "code": {
321
- "type": "object",
322
- "properties": {
323
- "head": {
324
- "type": "string"
325
- },
326
- "body": {
327
- "type": "string"
328
- }
329
- },
330
- "additionalProperties": true
331
- },
332
- "pages": {
333
- "type": "array",
334
- "items": {
335
- "allOf": [
336
- {
337
- "type": "string"
338
- },
339
- {
340
- "anyOf": [
341
- {
342
- "type": "string"
343
- },
344
- {
345
- "type": "object",
346
- "properties": {
347
- "id": {
348
- "type": "string"
349
- },
350
- "collection": {
351
- "type": "string"
352
- }
353
- },
354
- "required": [
355
- "id",
356
- "collection"
357
- ],
358
- "additionalProperties": false
359
- },
360
- {
361
- "type": "object",
362
- "properties": {
363
- "slug": {
364
- "type": "string"
365
- },
366
- "collection": {
367
- "type": "string"
368
- }
369
- },
370
- "required": [
371
- "slug",
372
- "collection"
373
- ],
374
- "additionalProperties": false
375
- }
376
- ]
377
- }
378
- ]
379
- }
380
- },
381
- "records": {
382
- "type": "array",
383
- "items": {
384
- "allOf": [
385
- {
386
- "type": "string"
387
- },
388
- {
389
- "anyOf": [
390
- {
391
- "type": "string"
392
- },
393
- {
394
- "type": "object",
395
- "properties": {
396
- "id": {
397
- "type": "string"
398
- },
399
- "collection": {
400
- "type": "string"
401
- }
402
- },
403
- "required": [
404
- "id",
405
- "collection"
406
- ],
407
- "additionalProperties": false
408
- },
409
- {
410
- "type": "object",
411
- "properties": {
412
- "slug": {
413
- "type": "string"
414
- },
415
- "collection": {
416
- "type": "string"
417
- }
418
- },
419
- "required": [
420
- "slug",
421
- "collection"
422
- ],
423
- "additionalProperties": false
424
- }
425
- ]
426
- }
427
- ]
428
- }
429
- },
430
- "title": {
431
- "type": "string"
432
- },
433
- "description": {
434
- "type": "string"
435
- },
436
- "header": {
437
- "anyOf": [
438
- {
439
- "type": "object",
440
- "properties": {
441
- "tagline": {
442
- "$ref": "#/definitions/layouts/anyOf/1/properties/tagline"
443
- },
444
- "icon": {
445
- "$ref": "#/definitions/layouts/anyOf/1/properties/icon"
446
- },
447
- "badge": {
448
- "$ref": "#/definitions/layouts/anyOf/1/properties/badge"
449
- },
450
- "heading": {
451
- "$ref": "#/definitions/layouts/anyOf/1/properties/heading"
452
- },
453
- "text": {
454
- "$ref": "#/definitions/layouts/anyOf/1/properties/text"
455
- },
456
- "html": {
457
- "$ref": "#/definitions/layouts/anyOf/1/properties/html"
458
- },
459
- "image": {
460
- "$ref": "#/definitions/layouts/anyOf/1/properties/image"
461
- },
462
- "images": {
463
- "$ref": "#/definitions/layouts/anyOf/1/properties/images"
464
- },
465
- "rating": {
466
- "$ref": "#/definitions/layouts/anyOf/1/properties/rating"
467
- },
468
- "button": {
469
- "$ref": "#/definitions/layouts/anyOf/1/properties/button"
470
- },
471
- "buttons": {
472
- "$ref": "#/definitions/layouts/anyOf/1/properties/buttons"
473
- },
474
- "link": {
475
- "$ref": "#/definitions/layouts/anyOf/1/properties/link"
476
- },
477
- "links": {
478
- "$ref": "#/definitions/layouts/anyOf/1/properties/links"
479
- },
480
- "list": {
481
- "$ref": "#/definitions/layouts/anyOf/1/properties/list"
482
- },
483
- "avatar": {
484
- "$ref": "#/definitions/layouts/anyOf/1/properties/avatar"
485
- },
486
- "price": {
487
- "$ref": "#/definitions/layouts/anyOf/1/properties/price"
488
- },
489
- "input": {
490
- "$ref": "#/definitions/layouts/anyOf/1/properties/input"
491
- },
492
- "logos": {
493
- "$ref": "#/definitions/layouts/anyOf/1/properties/logos"
494
- },
495
- "logo": {
496
- "$ref": "#/definitions/layouts/anyOf/1/properties/logo"
497
- },
498
- "channels": {
499
- "$ref": "#/definitions/layouts/anyOf/1/properties/channels"
500
- },
501
- "socials": {
502
- "$ref": "#/definitions/layouts/anyOf/1/properties/socials"
503
- },
504
- "hours": {
505
- "$ref": "#/definitions/layouts/anyOf/1/properties/hours"
506
- },
507
- "columns": {
508
- "type": "array",
509
- "items": {
510
- "type": "object",
511
- "properties": {
512
- "tagline": {
513
- "$ref": "#/definitions/layouts/anyOf/1/properties/tagline"
514
- },
515
- "icon": {
516
- "$ref": "#/definitions/layouts/anyOf/1/properties/icon"
517
- },
518
- "badge": {
519
- "$ref": "#/definitions/layouts/anyOf/1/properties/badge"
520
- },
521
- "heading": {
522
- "$ref": "#/definitions/layouts/anyOf/1/properties/heading"
523
- },
524
- "text": {
525
- "$ref": "#/definitions/layouts/anyOf/1/properties/text"
526
- },
527
- "html": {
528
- "$ref": "#/definitions/layouts/anyOf/1/properties/html"
529
- },
530
- "image": {
531
- "$ref": "#/definitions/layouts/anyOf/1/properties/image"
532
- },
533
- "images": {
534
- "$ref": "#/definitions/layouts/anyOf/1/properties/images"
535
- },
536
- "rating": {
537
- "$ref": "#/definitions/layouts/anyOf/1/properties/rating"
538
- },
539
- "button": {
540
- "$ref": "#/definitions/layouts/anyOf/1/properties/button"
541
- },
542
- "buttons": {
543
- "$ref": "#/definitions/layouts/anyOf/1/properties/buttons"
544
- },
545
- "link": {
546
- "$ref": "#/definitions/layouts/anyOf/1/properties/link"
547
- },
548
- "links": {
549
- "$ref": "#/definitions/layouts/anyOf/1/properties/links"
550
- },
551
- "list": {
552
- "$ref": "#/definitions/layouts/anyOf/1/properties/list"
553
- },
554
- "avatar": {
555
- "$ref": "#/definitions/layouts/anyOf/1/properties/avatar"
556
- },
557
- "price": {
558
- "$ref": "#/definitions/layouts/anyOf/1/properties/price"
559
- },
560
- "input": {
561
- "$ref": "#/definitions/layouts/anyOf/1/properties/input"
562
- },
563
- "logos": {
564
- "$ref": "#/definitions/layouts/anyOf/1/properties/logos"
565
- },
566
- "logo": {
567
- "$ref": "#/definitions/layouts/anyOf/1/properties/logo"
568
- },
569
- "channels": {
570
- "$ref": "#/definitions/layouts/anyOf/1/properties/channels"
571
- },
572
- "socials": {
573
- "$ref": "#/definitions/layouts/anyOf/1/properties/socials"
574
- },
575
- "hours": {
576
- "$ref": "#/definitions/layouts/anyOf/1/properties/hours"
577
- }
578
- },
579
- "additionalProperties": true
580
- }
581
- },
582
- "cards": {
583
- "type": "array",
584
- "items": {
585
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0/properties/columns/items"
586
- }
587
- },
588
- "source": {
589
- "type": "string",
590
- "enum": [
591
- "children",
592
- "references"
593
- ]
594
- },
595
- "pages": {
596
- "type": "array",
597
- "items": {
598
- "allOf": [
599
- {
600
- "type": "string"
601
- },
602
- {
603
- "anyOf": [
604
- {
605
- "type": "string"
606
- },
607
- {
608
- "type": "object",
609
- "properties": {
610
- "id": {
611
- "type": "string"
612
- },
613
- "collection": {
614
- "type": "string"
615
- }
616
- },
617
- "required": [
618
- "id",
619
- "collection"
620
- ],
621
- "additionalProperties": false
622
- },
623
- {
624
- "type": "object",
625
- "properties": {
626
- "slug": {
627
- "type": "string"
628
- },
629
- "collection": {
630
- "type": "string"
631
- }
632
- },
633
- "required": [
634
- "slug",
635
- "collection"
636
- ],
637
- "additionalProperties": false
638
- }
639
- ]
640
- }
641
- ]
642
- }
643
- },
644
- "records": {
645
- "type": "array",
646
- "items": {
647
- "allOf": [
648
- {
649
- "type": "string"
650
- },
651
- {
652
- "anyOf": [
653
- {
654
- "type": "string"
655
- },
656
- {
657
- "type": "object",
658
- "properties": {
659
- "id": {
660
- "type": "string"
661
- },
662
- "collection": {
663
- "type": "string"
664
- }
665
- },
666
- "required": [
667
- "id",
668
- "collection"
669
- ],
670
- "additionalProperties": false
671
- },
672
- {
673
- "type": "object",
674
- "properties": {
675
- "slug": {
676
- "type": "string"
677
- },
678
- "collection": {
679
- "type": "string"
680
- }
681
- },
682
- "required": [
683
- "slug",
684
- "collection"
685
- ],
686
- "additionalProperties": false
687
- }
688
- ]
689
- }
690
- ]
691
- }
692
- }
693
- },
694
- "additionalProperties": true
695
- },
696
- {
697
- "type": "boolean",
698
- "const": false
699
- }
700
- ]
701
- },
702
- "headers": {
703
- "anyOf": [
704
- {
705
- "type": "array",
706
- "items": {
707
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
708
- }
709
- },
710
- {
711
- "type": "boolean",
712
- "const": false
713
- }
714
- ]
715
- },
716
- "hero": {
717
- "anyOf": [
718
- {
719
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
720
- },
721
- {
722
- "type": "boolean",
723
- "const": false
724
- }
725
- ]
726
- },
727
- "block": {
728
- "anyOf": [
729
- {
730
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
731
- },
732
- {
733
- "type": "boolean",
734
- "const": false
735
- }
736
- ]
737
- },
738
- "section": {
739
- "anyOf": [
740
- {
741
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
742
- },
743
- {
744
- "type": "boolean",
745
- "const": false
746
- }
747
- ]
748
- },
749
- "blocks": {
750
- "anyOf": [
751
- {
752
- "type": "array",
753
- "items": {
754
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
755
- }
756
- },
757
- {
758
- "type": "object",
759
- "properties": {},
760
- "additionalProperties": {
761
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
762
- }
763
- }
764
- ]
765
- },
766
- "sections": {
767
- "anyOf": [
768
- {
769
- "type": "array",
770
- "items": {
771
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
772
- }
773
- },
774
- {
775
- "type": "object",
776
- "properties": {},
777
- "additionalProperties": {
778
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
779
- }
780
- }
781
- ]
782
- },
783
- "cta": {
784
- "anyOf": [
785
- {
786
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
787
- },
788
- {
789
- "type": "boolean",
790
- "const": false
791
- }
792
- ]
793
- },
794
- "footer": {
795
- "anyOf": [
796
- {
797
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
798
- },
799
- {
800
- "type": "boolean",
801
- "const": false
802
- }
803
- ]
804
- },
805
- "footers": {
806
- "anyOf": [
807
- {
808
- "type": "array",
809
- "items": {
810
- "$ref": "#/definitions/layouts/anyOf/1/properties/header/anyOf/0"
811
- }
812
- },
813
- {
814
- "type": "boolean",
815
- "const": false
816
- }
817
- ]
818
- }
819
- },
820
- "additionalProperties": true
821
- }
822
- ]
823
- }
824
- },
825
- "$schema": "http://json-schema.org/draft-07/schema#"
826
- }