@contentrain/astro-kit 0.5.0 → 0.6.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.
Files changed (66) hide show
  1. package/catalog.json +1512 -167
  2. package/components/_shared/KitImage.astro +10 -4
  3. package/components/_shared/image.ts +14 -0
  4. package/components/_shared/types.ts +2 -1
  5. package/components/announcement/Announcement.astro +53 -0
  6. package/components/announcement/fixtures.json +6 -0
  7. package/components/announcement/meta.json +53 -0
  8. package/components/card-grid/CardGrid.astro +5 -3
  9. package/components/card-grid/meta.json +25 -11
  10. package/components/consent/Consent.astro +87 -0
  11. package/components/consent/fixtures.json +4 -0
  12. package/components/consent/meta.json +67 -0
  13. package/components/contact-details/ContactDetails.astro +74 -0
  14. package/components/contact-details/fixtures.json +4 -0
  15. package/components/contact-details/meta.json +105 -0
  16. package/components/contact-form/ContactForm.astro +22 -6
  17. package/components/contact-form/fixtures.json +2 -1
  18. package/components/contact-form/meta.json +7 -6
  19. package/components/cta/meta.json +4 -4
  20. package/components/faq/meta.json +6 -6
  21. package/components/feature-list/FeatureList.astro +85 -0
  22. package/components/feature-list/fixtures.json +129 -0
  23. package/components/feature-list/meta.json +118 -0
  24. package/components/footer/Footer.astro +14 -6
  25. package/components/footer/fixtures.json +3 -1
  26. package/components/footer/meta.json +12 -0
  27. package/components/gallery/Gallery.astro +7 -3
  28. package/components/gallery/meta.json +6 -6
  29. package/components/header/Header.astro +19 -8
  30. package/components/header/fixtures.json +2 -1
  31. package/components/hero/meta.json +30 -8
  32. package/components/logo-cloud/LogoCloud.astro +69 -0
  33. package/components/logo-cloud/fixtures.json +139 -0
  34. package/components/logo-cloud/meta.json +107 -0
  35. package/components/newsletter/meta.json +12 -0
  36. package/components/pricing/Pricing.astro +94 -0
  37. package/components/pricing/fixtures.json +6 -0
  38. package/components/pricing/meta.json +133 -0
  39. package/components/prose/Prose.astro +7 -3
  40. package/components/prose/fixtures.json +2 -1
  41. package/components/prose/meta.json +5 -2
  42. package/components/slider/Slider.astro +15 -3
  43. package/components/slider/meta.json +8 -8
  44. package/components/split/Split.astro +64 -0
  45. package/components/split/fixtures.json +6 -0
  46. package/components/split/meta.json +154 -0
  47. package/components/stats/Stats.astro +66 -0
  48. package/components/stats/fixtures.json +98 -0
  49. package/components/stats/meta.json +113 -0
  50. package/components/steps/Steps.astro +77 -0
  51. package/components/steps/fixtures.json +5 -0
  52. package/components/steps/meta.json +105 -0
  53. package/components/team/Team.astro +82 -0
  54. package/components/team/fixtures.json +5 -0
  55. package/components/team/meta.json +116 -0
  56. package/components/testimonial/Testimonial.astro +5 -3
  57. package/components/testimonial/meta.json +21 -20
  58. package/dist/index.d.mts +115 -2
  59. package/dist/index.d.mts.map +1 -1
  60. package/dist/index.mjs +175 -3
  61. package/dist/index.mjs.map +1 -1
  62. package/mapping/classic.json +51 -6
  63. package/mapping/divi.json +359 -9
  64. package/mapping/elementor.json +581 -8
  65. package/mapping/gutenberg.json +420 -4
  66. package/package.json +2 -2
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "format": "astro-kit-mapping@1",
3
3
  "builder": "elementor",
4
- "version": "5",
4
+ "version": "6",
5
5
  "fallback": "prose",
6
6
  "defaults": {
7
7
  "elementor/video": {
8
8
  "video_type": "youtube"
9
+ },
10
+ "elementor/icon-box": {
11
+ "text_align": "center"
12
+ },
13
+ "elementor/image-box": {
14
+ "text_align": "center"
9
15
  }
10
16
  },
11
17
  "rules": [
@@ -89,7 +95,8 @@
89
95
  "title": "dom:.elementor-image-box-title",
90
96
  "text": "dom:.elementor-image-box-description",
91
97
  "href": "dom:a@href",
92
- "image": "img:img"
98
+ "image": "img:img@src",
99
+ "imageAlt": "img:img@alt"
93
100
  }
94
101
  },
95
102
  {
@@ -172,7 +179,8 @@
172
179
  "into": "slides",
173
180
  "each": ".swiper-slide:not(.swiper-slide-duplicate)",
174
181
  "item": {
175
- "image": "img:img",
182
+ "image": "img:img@src",
183
+ "imageAlt": "img:img@alt",
176
184
  "text": "dom:figcaption"
177
185
  }
178
186
  },
@@ -189,7 +197,8 @@
189
197
  "into": "slides",
190
198
  "each": ".swiper-slide:not(.swiper-slide-duplicate)",
191
199
  "item": {
192
- "image": "img:img"
200
+ "image": "img:img@src",
201
+ "imageAlt": "img:img@alt"
193
202
  }
194
203
  },
195
204
  {
@@ -207,7 +216,8 @@
207
216
  "item": {
208
217
  "title": "dom:.elementor-slide-heading",
209
218
  "text": "dom:.elementor-slide-description",
210
- "action": "link:.elementor-slide-button"
219
+ "ctaLabel": "dom:.elementor-slide-button",
220
+ "ctaHref": "dom:.elementor-slide-button@href"
211
221
  }
212
222
  },
213
223
  {
@@ -272,7 +282,8 @@
272
282
  "quote": "dom:.elementor-testimonial-content",
273
283
  "name": "dom:.elementor-testimonial-name",
274
284
  "role": "dom:.elementor-testimonial-job",
275
- "avatar": "img:.elementor-testimonial-image img"
285
+ "avatar": "img:.elementor-testimonial-image img@src",
286
+ "avatarAlt": "img:.elementor-testimonial-image img@alt"
276
287
  }
277
288
  },
278
289
  {
@@ -284,7 +295,8 @@
284
295
  "into": "items",
285
296
  "each": ".gallery-item",
286
297
  "item": {
287
- "image": "img:img",
298
+ "image": "img:img@src",
299
+ "imageAlt": "img:img@alt",
288
300
  "caption": "dom:.gallery-caption"
289
301
  }
290
302
  },
@@ -297,7 +309,8 @@
297
309
  "into": "items",
298
310
  "each": ".e-gallery-item",
299
311
  "item": {
300
- "image": "img:img",
312
+ "image": "img:img@src",
313
+ "imageAlt": "img:img@alt",
301
314
  "caption": "dom:.elementor-gallery-item__title"
302
315
  }
303
316
  },
@@ -363,5 +376,565 @@
363
376
  "showLabel": "ui:embed.show"
364
377
  }
365
378
  }
379
+ ],
380
+ "sections": [
381
+ {
382
+ "id": "hero.split",
383
+ "component": "hero",
384
+ "variant": {
385
+ "layout": "split"
386
+ },
387
+ "when": {
388
+ "position": "first",
389
+ "columns": [
390
+ 1,
391
+ 2
392
+ ]
393
+ },
394
+ "slots": {
395
+ "title": {
396
+ "match": "elementor/heading",
397
+ "max": 1,
398
+ "min": 1,
399
+ "attr": {
400
+ "header_size": "h1|h2"
401
+ }
402
+ },
403
+ "lead": {
404
+ "match": "elementor/text-editor",
405
+ "max": 1
406
+ },
407
+ "button": {
408
+ "match": "elementor/button",
409
+ "max": 2
410
+ },
411
+ "media": {
412
+ "match": "elementor/image",
413
+ "min": 1,
414
+ "max": 1
415
+ }
416
+ },
417
+ "props": {
418
+ "heading": "@title attr:title || @title dom:",
419
+ "lead": "@lead dom:",
420
+ "image": "@media img:img"
421
+ },
422
+ "into": "actions",
423
+ "each": "@button",
424
+ "item": {
425
+ "label": "attr:text || dom:.elementor-button-text",
426
+ "href": "attr:link.url || dom:a@href"
427
+ }
428
+ },
429
+ {
430
+ "id": "hero.centered",
431
+ "component": "hero",
432
+ "variant": {
433
+ "layout": "centered"
434
+ },
435
+ "when": {
436
+ "position": "first",
437
+ "columns": 1
438
+ },
439
+ "slots": {
440
+ "title": {
441
+ "match": "elementor/heading",
442
+ "max": 1,
443
+ "min": 1,
444
+ "attr": {
445
+ "header_size": "h1|h2"
446
+ }
447
+ },
448
+ "lead": {
449
+ "match": "elementor/text-editor",
450
+ "max": 1
451
+ },
452
+ "button": {
453
+ "match": "elementor/button",
454
+ "max": 2
455
+ }
456
+ },
457
+ "props": {
458
+ "heading": "@title attr:title || @title dom:",
459
+ "lead": "@lead dom:"
460
+ },
461
+ "into": "actions",
462
+ "each": "@button",
463
+ "item": {
464
+ "label": "attr:text || dom:.elementor-button-text",
465
+ "href": "attr:link.url || dom:a@href"
466
+ }
467
+ },
468
+ {
469
+ "id": "announcement.alert",
470
+ "component": "announcement",
471
+ "slots": {
472
+ "alert": {
473
+ "match": "elementor/alert",
474
+ "min": 1,
475
+ "max": 1
476
+ }
477
+ },
478
+ "props": {
479
+ "message": "@alert attr:alert_title || @alert dom:.elementor-alert-title"
480
+ }
481
+ },
482
+ {
483
+ "id": "split.image-text",
484
+ "component": "split",
485
+ "when": {
486
+ "columns": 2
487
+ },
488
+ "slots": {
489
+ "media": {
490
+ "match": "elementor/image",
491
+ "min": 1,
492
+ "max": 1
493
+ },
494
+ "title": {
495
+ "match": "elementor/heading",
496
+ "max": 1,
497
+ "min": 1
498
+ },
499
+ "body": {
500
+ "match": [
501
+ "elementor/text-editor",
502
+ "elementor/icon-list"
503
+ ],
504
+ "max": 3
505
+ },
506
+ "button": {
507
+ "match": "elementor/button",
508
+ "max": 2
509
+ }
510
+ },
511
+ "props": {
512
+ "heading": "@title attr:title || @title dom:",
513
+ "body": "@body html:",
514
+ "image": "@media img:img"
515
+ },
516
+ "into": "actions",
517
+ "each": "@button",
518
+ "item": {
519
+ "label": "attr:text || dom:.elementor-button-text",
520
+ "href": "attr:link.url || dom:a@href"
521
+ }
522
+ },
523
+ {
524
+ "id": "card-grid.icon-box",
525
+ "component": "card-grid",
526
+ "slots": {
527
+ "title": {
528
+ "match": "elementor/heading",
529
+ "max": 1
530
+ },
531
+ "intro": {
532
+ "match": "elementor/text-editor",
533
+ "max": 1
534
+ },
535
+ "box": {
536
+ "match": "elementor/icon-box",
537
+ "min": 2
538
+ }
539
+ },
540
+ "props": {
541
+ "title": "@title attr:title || @title dom:",
542
+ "intro": "@intro dom:"
543
+ },
544
+ "into": "items",
545
+ "each": "@box",
546
+ "item": {
547
+ "title": "attr:title_text || dom:.elementor-icon-box-title",
548
+ "text": "attr:description_text || dom:.elementor-icon-box-description",
549
+ "href": "attr:link.url || dom:a@href"
550
+ }
551
+ },
552
+ {
553
+ "id": "card-grid.image-box",
554
+ "component": "card-grid",
555
+ "slots": {
556
+ "title": {
557
+ "match": "elementor/heading",
558
+ "max": 1
559
+ },
560
+ "intro": {
561
+ "match": "elementor/text-editor",
562
+ "max": 1
563
+ },
564
+ "box": {
565
+ "match": "elementor/image-box",
566
+ "min": 2
567
+ }
568
+ },
569
+ "props": {
570
+ "title": "@title attr:title || @title dom:",
571
+ "intro": "@intro dom:"
572
+ },
573
+ "into": "items",
574
+ "each": "@box",
575
+ "item": {
576
+ "title": "attr:title_text || dom:.elementor-image-box-title",
577
+ "text": "attr:description_text || dom:.elementor-image-box-description",
578
+ "href": "attr:link.url || dom:a@href",
579
+ "image": "attr:image.url || img:img@src",
580
+ "imageAlt": "img:img@alt"
581
+ }
582
+ },
583
+ {
584
+ "id": "stats.counter",
585
+ "component": "stats",
586
+ "slots": {
587
+ "title": {
588
+ "match": "elementor/heading",
589
+ "max": 1
590
+ },
591
+ "intro": {
592
+ "match": "elementor/text-editor",
593
+ "max": 1
594
+ },
595
+ "counter": {
596
+ "match": "elementor/counter",
597
+ "min": 2
598
+ }
599
+ },
600
+ "props": {
601
+ "heading": "@title attr:title || @title dom:",
602
+ "intro": "@intro dom:"
603
+ },
604
+ "into": "items",
605
+ "each": "@counter",
606
+ "item": {
607
+ "value": "attr:ending_number || dom:.elementor-counter-number",
608
+ "label": "attr:title || dom:.elementor-counter-title",
609
+ "prefix": "attr:prefix || dom:.elementor-counter-number-prefix",
610
+ "suffix": "attr:suffix || dom:.elementor-counter-number-suffix"
611
+ }
612
+ },
613
+ {
614
+ "id": "pricing.price-table",
615
+ "component": "pricing",
616
+ "slots": {
617
+ "title": {
618
+ "match": "elementor/heading",
619
+ "max": 1
620
+ },
621
+ "intro": {
622
+ "match": "elementor/text-editor",
623
+ "max": 1
624
+ },
625
+ "plan": {
626
+ "match": "elementor/price-table",
627
+ "min": 1
628
+ }
629
+ },
630
+ "props": {
631
+ "heading": "@title attr:title || @title dom:",
632
+ "intro": "@intro dom:"
633
+ },
634
+ "into": "plans",
635
+ "each": "@plan",
636
+ "item": {
637
+ "name": "attr:heading || dom:.elementor-price-table__heading",
638
+ "price": "dom:.elementor-price-table__price || attr:price",
639
+ "period": "attr:period || dom:.elementor-price-table__period",
640
+ "description": "attr:sub_heading || dom:.elementor-price-table__subheading",
641
+ "features": "html:.elementor-price-table__features-list",
642
+ "ctaLabel": "attr:button_text || dom:.elementor-price-table__button",
643
+ "ctaHref": "attr:link.url || dom:.elementor-price-table__button@href"
644
+ }
645
+ },
646
+ {
647
+ "id": "logo-cloud.images",
648
+ "component": "logo-cloud",
649
+ "slots": {
650
+ "title": {
651
+ "match": "elementor/heading",
652
+ "max": 1
653
+ },
654
+ "logo": {
655
+ "match": "elementor/image",
656
+ "min": 3
657
+ }
658
+ },
659
+ "props": {
660
+ "heading": "@title attr:title || @title dom:"
661
+ },
662
+ "into": "items",
663
+ "each": "@logo",
664
+ "item": {
665
+ "image": "attr:image.url || img:img@src",
666
+ "imageAlt": "img:img@alt",
667
+ "href": "attr:link.url || dom:a@href"
668
+ }
669
+ },
670
+ {
671
+ "id": "testimonial.quotes",
672
+ "component": "testimonial",
673
+ "slots": {
674
+ "title": {
675
+ "match": "elementor/heading",
676
+ "max": 1
677
+ },
678
+ "quote": {
679
+ "match": "elementor/testimonial",
680
+ "min": 1
681
+ }
682
+ },
683
+ "props": {
684
+ "heading": "@title attr:title || @title dom:"
685
+ },
686
+ "into": "items",
687
+ "each": "@quote",
688
+ "item": {
689
+ "quote": "attr:testimonial_content || dom:.elementor-testimonial-content",
690
+ "name": "attr:testimonial_name || dom:.elementor-testimonial-name",
691
+ "role": "attr:testimonial_job || dom:.elementor-testimonial-job",
692
+ "avatar": "attr:testimonial_image.url || img:.elementor-testimonial-image img@src",
693
+ "avatarAlt": "img:.elementor-testimonial-image img@alt"
694
+ }
695
+ },
696
+ {
697
+ "id": "faq.accordion",
698
+ "component": "faq",
699
+ "slots": {
700
+ "title": {
701
+ "match": "elementor/heading",
702
+ "max": 1
703
+ },
704
+ "faq": {
705
+ "match": "elementor/accordion",
706
+ "min": 1,
707
+ "max": 1
708
+ }
709
+ },
710
+ "props": {
711
+ "heading": "@title attr:title || @title dom:"
712
+ },
713
+ "into": "items",
714
+ "each": "@faq .elementor-accordion-item",
715
+ "item": {
716
+ "question": "dom:.elementor-accordion-title",
717
+ "answer": "html:.elementor-tab-content"
718
+ }
719
+ },
720
+ {
721
+ "id": "faq.toggle",
722
+ "component": "faq",
723
+ "slots": {
724
+ "title": {
725
+ "match": "elementor/heading",
726
+ "max": 1
727
+ },
728
+ "faq": {
729
+ "match": "elementor/toggle",
730
+ "min": 1,
731
+ "max": 1
732
+ }
733
+ },
734
+ "props": {
735
+ "heading": "@title attr:title || @title dom:",
736
+ "exclusive": "const:false"
737
+ },
738
+ "into": "items",
739
+ "each": "@faq .elementor-toggle-item",
740
+ "item": {
741
+ "question": "dom:.elementor-toggle-title",
742
+ "answer": "html:.elementor-tab-content"
743
+ }
744
+ },
745
+ {
746
+ "id": "faq.nested",
747
+ "component": "faq",
748
+ "slots": {
749
+ "title": {
750
+ "match": "elementor/heading",
751
+ "max": 1
752
+ },
753
+ "faq": {
754
+ "match": "elementor/nested-accordion",
755
+ "min": 1,
756
+ "max": 1
757
+ }
758
+ },
759
+ "props": {
760
+ "heading": "@title attr:title || @title dom:"
761
+ },
762
+ "into": "items",
763
+ "each": "@faq details",
764
+ "item": {
765
+ "question": "dom:summary",
766
+ "answer": "html::scope > :not(summary)"
767
+ }
768
+ },
769
+ {
770
+ "id": "gallery.image-gallery",
771
+ "component": "gallery",
772
+ "slots": {
773
+ "title": {
774
+ "match": "elementor/heading",
775
+ "max": 1
776
+ },
777
+ "images": {
778
+ "match": "elementor/image-gallery",
779
+ "min": 1,
780
+ "max": 1
781
+ }
782
+ },
783
+ "props": {
784
+ "heading": "@title attr:title || @title dom:",
785
+ "closeLabel": "ui:gallery.close"
786
+ },
787
+ "into": "items",
788
+ "each": "@images .gallery-item",
789
+ "item": {
790
+ "image": "img:img@src",
791
+ "imageAlt": "img:img@alt",
792
+ "caption": "dom:.gallery-caption"
793
+ }
794
+ },
795
+ {
796
+ "id": "gallery.pro",
797
+ "component": "gallery",
798
+ "slots": {
799
+ "title": {
800
+ "match": "elementor/heading",
801
+ "max": 1
802
+ },
803
+ "images": {
804
+ "match": "elementor/gallery",
805
+ "min": 1,
806
+ "max": 1
807
+ }
808
+ },
809
+ "props": {
810
+ "heading": "@title attr:title || @title dom:",
811
+ "closeLabel": "ui:gallery.close"
812
+ },
813
+ "into": "items",
814
+ "each": "@images .e-gallery-item",
815
+ "item": {
816
+ "image": "img:img@src",
817
+ "imageAlt": "img:img@alt",
818
+ "caption": "dom:.elementor-gallery-item__title"
819
+ }
820
+ },
821
+ {
822
+ "id": "slider.carousel",
823
+ "component": "slider",
824
+ "slots": {
825
+ "slides": {
826
+ "match": [
827
+ "elementor/image-carousel",
828
+ "elementor/media-carousel"
829
+ ],
830
+ "min": 1,
831
+ "max": 1
832
+ }
833
+ },
834
+ "props": {
835
+ "label": "ui:slider.label",
836
+ "prevLabel": "ui:slider.prev",
837
+ "nextLabel": "ui:slider.next",
838
+ "slideLabel": "ui:slider.slide",
839
+ "ofLabel": "ui:slider.of"
840
+ },
841
+ "into": "slides",
842
+ "each": "@slides .swiper-slide:not(.swiper-slide-duplicate)",
843
+ "item": {
844
+ "image": "img:img@src",
845
+ "imageAlt": "img:img@alt",
846
+ "text": "dom:figcaption"
847
+ }
848
+ },
849
+ {
850
+ "id": "contact-form.form",
851
+ "component": "contact-form",
852
+ "slots": {
853
+ "title": {
854
+ "match": "elementor/heading",
855
+ "max": 1
856
+ },
857
+ "formTitle": {
858
+ "match": "elementor/heading",
859
+ "max": 1
860
+ },
861
+ "intro": {
862
+ "match": "elementor/text-editor",
863
+ "max": 1
864
+ },
865
+ "form": {
866
+ "match": "elementor/form",
867
+ "min": 1,
868
+ "max": 1
869
+ }
870
+ },
871
+ "props": {
872
+ "model": "const:contact",
873
+ "heading": "@title attr:title || @title dom: || @form attr:form_name",
874
+ "intro": "@intro dom:",
875
+ "formHeading": "@formTitle attr:title || @formTitle dom:"
876
+ }
877
+ },
878
+ {
879
+ "id": "cta.text-button",
880
+ "component": "cta",
881
+ "slots": {
882
+ "title": {
883
+ "match": "elementor/heading",
884
+ "max": 1,
885
+ "min": 1
886
+ },
887
+ "body": {
888
+ "match": "elementor/text-editor",
889
+ "max": 1
890
+ },
891
+ "button": {
892
+ "match": "elementor/button",
893
+ "min": 1,
894
+ "max": 2
895
+ }
896
+ },
897
+ "props": {
898
+ "heading": "@title attr:title || @title dom:",
899
+ "body": "@body dom:"
900
+ },
901
+ "into": "actions",
902
+ "each": "@button",
903
+ "item": {
904
+ "label": "attr:text || dom:.elementor-button-text",
905
+ "href": "attr:link.url || dom:a@href"
906
+ }
907
+ },
908
+ {
909
+ "id": "feature-list.icon-list",
910
+ "component": "feature-list",
911
+ "variant": {
912
+ "style": "icon"
913
+ },
914
+ "slots": {
915
+ "title": {
916
+ "match": "elementor/heading",
917
+ "max": 1
918
+ },
919
+ "intro": {
920
+ "match": "elementor/text-editor",
921
+ "max": 1
922
+ },
923
+ "list": {
924
+ "match": "elementor/icon-list",
925
+ "min": 1,
926
+ "max": 1
927
+ }
928
+ },
929
+ "props": {
930
+ "heading": "@title attr:title || @title dom:",
931
+ "intro": "@intro dom:"
932
+ },
933
+ "into": "items",
934
+ "each": "@list .elementor-icon-list-item",
935
+ "item": {
936
+ "title": "dom:.elementor-icon-list-text"
937
+ }
938
+ }
366
939
  ]
367
940
  }