@slicemachine/adapter-next 0.3.15-dev-next-release.0 → 0.3.15-dev-next-release.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.
@@ -0,0 +1,912 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const commonTags = require("common-tags");
4
+ const pascalCase = require("../../lib/pascalCase.cjs");
5
+ const mocks = [
6
+ {
7
+ __TYPE__: "SharedSliceContent",
8
+ variation: "default",
9
+ primary: {
10
+ title: {
11
+ __TYPE__: "StructuredTextContent",
12
+ value: [
13
+ {
14
+ type: "heading1",
15
+ content: {
16
+ text: "Alternate like a star",
17
+ spans: []
18
+ },
19
+ direction: "ltr"
20
+ }
21
+ ]
22
+ },
23
+ description: {
24
+ __TYPE__: "StructuredTextContent",
25
+ value: [
26
+ {
27
+ type: "paragraph",
28
+ content: {
29
+ text: "A predesigned AlternateGrid component, that you can use to list your skills or features of a product.",
30
+ spans: [
31
+ {
32
+ type: "strong",
33
+ start: 44,
34
+ end: 47
35
+ }
36
+ ]
37
+ },
38
+ direction: "ltr"
39
+ }
40
+ ]
41
+ },
42
+ eyebrowHeadline: {
43
+ __TYPE__: "FieldContent",
44
+ type: "Text",
45
+ value: "Eyebrow"
46
+ },
47
+ image: {
48
+ origin: {
49
+ id: "main",
50
+ url: "https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d",
51
+ width: 4076,
52
+ height: 2712
53
+ },
54
+ url: "https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d",
55
+ width: 4076,
56
+ height: 2712,
57
+ edit: {
58
+ zoom: 1,
59
+ crop: {
60
+ x: 0,
61
+ y: 0
62
+ },
63
+ background: "transparent"
64
+ },
65
+ credits: null,
66
+ alt: "Image of computer",
67
+ __TYPE__: "ImageContent",
68
+ thumbnails: {}
69
+ }
70
+ },
71
+ items: [
72
+ {
73
+ __TYPE__: "GroupItemContent",
74
+ value: [
75
+ [
76
+ "title",
77
+ {
78
+ __TYPE__: "StructuredTextContent",
79
+ value: [
80
+ {
81
+ type: "heading3",
82
+ content: {
83
+ text: "Integrate with the SliceZone",
84
+ spans: []
85
+ },
86
+ direction: "ltr"
87
+ }
88
+ ]
89
+ }
90
+ ],
91
+ [
92
+ "description",
93
+ {
94
+ __TYPE__: "StructuredTextContent",
95
+ value: [
96
+ {
97
+ type: "paragraph",
98
+ content: {
99
+ text: "This component has been matched by the SliceZone. Its model has been fetched from SliceMachine next-adapter!",
100
+ spans: []
101
+ },
102
+ direction: "ltr"
103
+ }
104
+ ]
105
+ }
106
+ ]
107
+ ]
108
+ },
109
+ {
110
+ __TYPE__: "GroupItemContent",
111
+ value: [
112
+ [
113
+ "title",
114
+ {
115
+ __TYPE__: "StructuredTextContent",
116
+ value: [
117
+ {
118
+ type: "heading3",
119
+ content: {
120
+ text: "Create your own",
121
+ spans: []
122
+ },
123
+ direction: "ltr"
124
+ }
125
+ ]
126
+ }
127
+ ],
128
+ [
129
+ "description",
130
+ {
131
+ __TYPE__: "StructuredTextContent",
132
+ value: [
133
+ {
134
+ type: "paragraph",
135
+ content: {
136
+ text: "Feel free to use this component fully, or use it as an example! We're adding templates as often as we can.",
137
+ spans: []
138
+ },
139
+ direction: "ltr"
140
+ }
141
+ ]
142
+ }
143
+ ]
144
+ ]
145
+ },
146
+ {
147
+ __TYPE__: "GroupItemContent",
148
+ value: [
149
+ [
150
+ "title",
151
+ {
152
+ __TYPE__: "StructuredTextContent",
153
+ value: [
154
+ {
155
+ type: "heading3",
156
+ content: {
157
+ text: "Add a variation",
158
+ spans: []
159
+ },
160
+ direction: "ltr"
161
+ }
162
+ ]
163
+ }
164
+ ],
165
+ [
166
+ "description",
167
+ {
168
+ __TYPE__: "StructuredTextContent",
169
+ value: [
170
+ {
171
+ type: "paragraph",
172
+ content: {
173
+ text: 'This slice comes with a "Image Right" variation, which means editors can switch text/image direction!',
174
+ spans: []
175
+ },
176
+ direction: "ltr"
177
+ }
178
+ ]
179
+ }
180
+ ]
181
+ ]
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ __TYPE__: "SharedSliceContent",
187
+ variation: "imageRight",
188
+ primary: {
189
+ eyebrowHeadline: {
190
+ __TYPE__: "FieldContent",
191
+ value: "activity",
192
+ type: "Text"
193
+ },
194
+ title: {
195
+ __TYPE__: "StructuredTextContent",
196
+ value: [
197
+ {
198
+ type: "heading1",
199
+ content: {
200
+ text: "Alternate like a star",
201
+ spans: []
202
+ },
203
+ direction: "ltr"
204
+ }
205
+ ]
206
+ },
207
+ description: {
208
+ __TYPE__: "StructuredTextContent",
209
+ value: [
210
+ {
211
+ type: "paragraph",
212
+ content: {
213
+ text: "A predesigned AlternateGrid component, that you can use to list your skills or features of a product.",
214
+ spans: [
215
+ {
216
+ type: "strong",
217
+ start: 44,
218
+ end: 47
219
+ }
220
+ ]
221
+ },
222
+ direction: "ltr"
223
+ }
224
+ ]
225
+ },
226
+ image: {
227
+ origin: {
228
+ id: "main",
229
+ url: "https://images.unsplash.com/photo-1499951360447-b19be8fe80f5",
230
+ width: 5848,
231
+ height: 3899
232
+ },
233
+ url: "https://images.unsplash.com/photo-1499951360447-b19be8fe80f5",
234
+ width: 5848,
235
+ height: 3899,
236
+ edit: {
237
+ zoom: 1,
238
+ crop: {
239
+ x: 0,
240
+ y: 0
241
+ },
242
+ background: "transparent"
243
+ },
244
+ credits: null,
245
+ alt: "Image of computer",
246
+ __TYPE__: "ImageContent",
247
+ thumbnails: {}
248
+ }
249
+ },
250
+ items: [
251
+ {
252
+ __TYPE__: "GroupItemContent",
253
+ value: [
254
+ [
255
+ "title",
256
+ {
257
+ __TYPE__: "StructuredTextContent",
258
+ value: [
259
+ {
260
+ type: "heading3",
261
+ content: {
262
+ text: "Create a unique, high-performing site",
263
+ spans: [
264
+ {
265
+ type: "strong",
266
+ start: 9,
267
+ end: 15
268
+ }
269
+ ]
270
+ },
271
+ direction: "ltr"
272
+ }
273
+ ]
274
+ }
275
+ ],
276
+ [
277
+ "description",
278
+ {
279
+ __TYPE__: "StructuredTextContent",
280
+ value: [
281
+ {
282
+ type: "paragraph",
283
+ content: {
284
+ text: "Prismic is the headless website builder designed to help developers and marketers create unique, high-performing websites that are easy to edit.",
285
+ spans: []
286
+ },
287
+ direction: "ltr"
288
+ }
289
+ ]
290
+ }
291
+ ]
292
+ ]
293
+ }
294
+ ]
295
+ }
296
+ ];
297
+ const model = {
298
+ id: "alternate_grid",
299
+ type: "SharedSlice",
300
+ name: "AlternateGrid",
301
+ description: "AlternateGrid",
302
+ variations: [
303
+ {
304
+ id: "default",
305
+ name: "Default",
306
+ docURL: "...",
307
+ version: "initial",
308
+ description: "Default",
309
+ imageUrl: "",
310
+ primary: {
311
+ eyebrowHeadline: {
312
+ type: "Text",
313
+ config: {
314
+ label: "eyebrowHeadline",
315
+ placeholder: "Eyebrow"
316
+ }
317
+ },
318
+ title: {
319
+ type: "StructuredText",
320
+ config: {
321
+ label: "title",
322
+ placeholder: "",
323
+ allowTargetBlank: true,
324
+ single: "heading1,heading2,heading3,heading4,heading5,heading6,strong,em"
325
+ }
326
+ },
327
+ description: {
328
+ type: "StructuredText",
329
+ config: {
330
+ label: "description",
331
+ placeholder: "",
332
+ allowTargetBlank: true,
333
+ multi: "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item"
334
+ }
335
+ },
336
+ image: {
337
+ type: "Image",
338
+ config: {
339
+ label: "image",
340
+ constraint: {},
341
+ thumbnails: []
342
+ }
343
+ }
344
+ },
345
+ items: {
346
+ title: {
347
+ type: "StructuredText",
348
+ config: {
349
+ label: "title",
350
+ placeholder: "",
351
+ allowTargetBlank: true,
352
+ single: "heading2,heading3,heading4,heading5,heading6,strong,em"
353
+ }
354
+ },
355
+ description: {
356
+ type: "StructuredText",
357
+ config: {
358
+ label: "description",
359
+ placeholder: "",
360
+ allowTargetBlank: true,
361
+ multi: "paragraph,preformatted,hyperlink,strong,em,list-item,o-list-item,rtl"
362
+ }
363
+ }
364
+ }
365
+ },
366
+ {
367
+ id: "imageRight",
368
+ name: "Image Right",
369
+ docURL: "...",
370
+ version: "initial",
371
+ description: "Default",
372
+ imageUrl: "",
373
+ primary: {
374
+ eyebrowHeadline: {
375
+ type: "Text",
376
+ config: {
377
+ label: "eyebrowHeadline",
378
+ placeholder: "Eyebrow"
379
+ }
380
+ },
381
+ title: {
382
+ type: "StructuredText",
383
+ config: {
384
+ label: "title",
385
+ placeholder: "",
386
+ allowTargetBlank: true,
387
+ single: "heading1,heading2,heading3,heading4,heading5,heading6,strong,em"
388
+ }
389
+ },
390
+ description: {
391
+ type: "StructuredText",
392
+ config: {
393
+ label: "description",
394
+ placeholder: "",
395
+ allowTargetBlank: true,
396
+ multi: "paragraph,preformatted,hyperlink,embed,rtl,strong,em,list-item,o-list-item"
397
+ }
398
+ },
399
+ image: {
400
+ type: "Image",
401
+ config: {
402
+ label: "image",
403
+ constraint: {},
404
+ thumbnails: []
405
+ }
406
+ }
407
+ },
408
+ items: {
409
+ title: {
410
+ type: "StructuredText",
411
+ config: {
412
+ label: "title",
413
+ placeholder: "",
414
+ allowTargetBlank: true,
415
+ single: "heading2,heading3,heading4,heading5,heading6,strong,em"
416
+ }
417
+ },
418
+ description: {
419
+ type: "StructuredText",
420
+ config: {
421
+ label: "description",
422
+ placeholder: "",
423
+ allowTargetBlank: true,
424
+ multi: "paragraph,preformatted,hyperlink,strong,em,list-item,o-list-item,rtl"
425
+ }
426
+ }
427
+ }
428
+ }
429
+ ]
430
+ };
431
+ const screenshotPaths = {
432
+ default: "AlternateGrid/screenshot-default.png",
433
+ imageRight: "AlternateGrid/screenshot-imageRight.png"
434
+ };
435
+ const createComponentContents = (model2, isTypeScriptProject) => {
436
+ const pascalName = pascalCase.pascalCase(model2.name);
437
+ if (isTypeScriptProject) {
438
+ return commonTags.stripIndent`
439
+ import { Content, isFilled } from "@prismicio/client";
440
+ import {
441
+ SliceComponentProps,
442
+ PrismicRichText,
443
+ PrismicImage,
444
+ } from "@prismicio/react";
445
+
446
+ export type ${pascalName}Props = SliceComponentProps<Content.${pascalName}Slice>;
447
+
448
+ const ${pascalName} = ({ slice }: ${pascalName}Props): JSX.Element => {
449
+ return (
450
+ <section
451
+ data-slice-type={slice.slice_type}
452
+ data-slice-variation={slice.variation}
453
+ className="essential-slice es-bounded es-alternate-grid"
454
+ >
455
+ <div
456
+ className={\`
457
+ es-bounded__content
458
+ es-alternate-grid__content
459
+ \${isFilled.image(slice.primary.image) ? "es-alternate-grid__content--with-image" : ""}
460
+ \`}
461
+ >
462
+ {isFilled.image(slice.primary.image) && (
463
+ <PrismicImage
464
+ field={slice.primary.image}
465
+ className={\`
466
+ es-alternate-grid__image
467
+ \${
468
+ slice.variation === "imageRight"
469
+ ? "es-alternate-grid__image--right"
470
+ : "es-alternate-grid__image--left"
471
+ }
472
+ \`}
473
+ />
474
+ )}
475
+ <div className="es-alternate-grid__primary-content">
476
+ <div className="es-alternate-grid__primary-content__intro">
477
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
478
+ <p className="es-alternate-grid__primary-content__intro__eyebrow">
479
+ {slice.primary.eyebrowHeadline}
480
+ </p>
481
+ )}
482
+ {isFilled.richText(slice.primary.title) && (
483
+ <div className="es-alternate-grid__primary-content__intro__headline">
484
+ <PrismicRichText field={slice.primary.title} />
485
+ </div>
486
+ )}
487
+ {isFilled.richText(slice.primary.description) && (
488
+ <div className="es-alternate-grid__primary-content__intro__description">
489
+ <PrismicRichText field={slice.primary.description} />
490
+ </div>
491
+ )}
492
+ </div>
493
+ {slice.items.length > 0 && (
494
+ <div className="es-alternate-grid__primary-content__items">
495
+ {slice.items.map((item, i) => (
496
+ <div key={\`item-\${i + 1}\`} className="es-alternate-grid__item">
497
+ {isFilled.richText(item.title) && (
498
+ <div className="es-alternate-grid__item__heading">
499
+ <PrismicRichText field={item.title} />
500
+ </div>
501
+ )}
502
+ {isFilled.richText(item.description) && (
503
+ <div className="es-alternate-grid__item__description">
504
+ <PrismicRichText field={item.description} />
505
+ </div>
506
+ )}
507
+ </div>
508
+ ))}
509
+ </div>
510
+ )}
511
+ </div>
512
+ </div>
513
+
514
+ <style>
515
+ {\`
516
+ .es-bounded {
517
+ margin: 0px;
518
+ min-width: 0px;
519
+ position: relative;
520
+ padding: 8vw 1.25rem;
521
+ }
522
+ .es-bounded-content {
523
+ min-width: 0px;
524
+ max-width: 90%;
525
+ margin: 0px auto;
526
+ }
527
+ .es-alternate-grid {
528
+ font-family: system-ui, sans-serif;
529
+ background-color: #fff;
530
+ color: #333;
531
+ }
532
+
533
+ .es-alternate-grid__content {
534
+ display: grid;
535
+ gap: 1.5rem;
536
+ grid-auto-flow: dense;
537
+ }
538
+
539
+ @media (min-width: 640px) {
540
+ .es-alternate-grid__content--with-image {
541
+ grid-template-columns: repeat(2, 1fr);
542
+ }
543
+ }
544
+
545
+ @media (min-width: 1200px) {
546
+ .es-alternate-grid__content--with-image {
547
+ grid-template-columns: repeat(2, 1fr);
548
+ }
549
+ }
550
+
551
+ .es-alternate-grid__image {
552
+ width: auto;
553
+ height: auto;
554
+ max-width: 100%;
555
+ align-self: center;
556
+ }
557
+
558
+ .es-alternate-grid__image--left {
559
+ grid-column: 1;
560
+ }
561
+
562
+ .es-alternate-grid__image--right {
563
+ grid-column: 2;
564
+ }
565
+
566
+ .es-alternate-grid__primary-content {
567
+ display: grid;
568
+ gap: 2rem;
569
+ }
570
+
571
+ .es-alternate-grid__primary-content__intro {
572
+ display: grid;
573
+ gap: 0.5rem;
574
+ }
575
+
576
+ .es-alternate-grid__primary-content__intro__eyebrow {
577
+ color: #8592e0;
578
+ font-size: 1.15rem;
579
+ font-weight: 500;
580
+ margin: 0;
581
+ }
582
+
583
+ .es-alternate-grid__primary-content__intro__headline {
584
+ font-size: 1.625rem;
585
+ font-weight: 700;
586
+ }
587
+
588
+ .es-alternate-grid__primary-content__intro__headline > * {
589
+ margin: 0;
590
+ }
591
+
592
+ @media (min-width: 640px) {
593
+ .es-alternate-grid__primary-content__intro__headline {
594
+ font-size: 2rem;
595
+ }
596
+ }
597
+
598
+ @media (min-width: 1024px) {
599
+ .es-alternate-grid__primary-content__intro__headline {
600
+ font-size: 2.5rem;
601
+ }
602
+ }
603
+
604
+ @media (min-width: 1200px) {
605
+ .es-alternate-grid__primary-content__intro__headline {
606
+ font-size: 2.75rem;
607
+ }
608
+ }
609
+
610
+ .es-alternate-grid__primary-content__intro__description {
611
+ font-size: 1.15rem;
612
+ max-width: 38rem;
613
+ }
614
+
615
+ .es-alternate-grid__primary-content__intro__description > p {
616
+ margin: 0;
617
+ }
618
+
619
+ @media (min-width: 1200px) {
620
+ .es-alternate-grid__primary-content__intro__description {
621
+ font-size: 1.4rem;
622
+ }
623
+ }
624
+
625
+ .es-alternate-grid__primary-content__items {
626
+ display: grid;
627
+ gap: 2rem;
628
+ }
629
+
630
+ @media (min-width: 640px) {
631
+ .es-alternate-grid__primary-content__items {
632
+ grid-template-columns: repeat(2, 1fr);
633
+ }
634
+ }
635
+
636
+ .es-alternate-grid__item {
637
+ display: grid;
638
+ align-content: start;
639
+ }
640
+
641
+ .es-alternate-grid__item__icon {
642
+ max-height: 3rem;
643
+ }
644
+
645
+ .es-alternate-grid__item__heading {
646
+ font-weight: 700;
647
+ font-size: 1.17rem;
648
+ margin-top: 0;
649
+ margin-bottom: .5rem;
650
+ }
651
+ .es-alternate-grid__item__heading > * {
652
+ margin: 0;
653
+ }
654
+
655
+ .es-alternate-grid__item__description {
656
+ font-size: 0.9rem;
657
+ }
658
+
659
+ .es-alternate-grid__item__description > * {
660
+ margin: 0;
661
+ }
662
+
663
+ \`}
664
+ </style>
665
+ </section>
666
+ );
667
+ };
668
+
669
+ export default ${pascalName};
670
+
671
+ `;
672
+ }
673
+ return commonTags.stripIndent`
674
+ import { isFilled } from "@prismicio/client";
675
+ import {
676
+ PrismicRichText,
677
+ PrismicImage,
678
+ } from "@prismicio/react";
679
+
680
+ /**
681
+ * @typedef {import("@prismicio/client").Content.${pascalName}Slice} ${pascalName}Slice
682
+ * @typedef {import("@prismicio/react").SliceComponentProps<${pascalName}Slice>} ${pascalName}Props
683
+ * @param {${pascalName}Props}
684
+ */
685
+ const ${pascalName} = ({ slice }) => {
686
+ return (
687
+ <section
688
+ data-slice-type={slice.slice_type}
689
+ data-slice-variation={slice.variation}
690
+ className="essential-slice es-bounded es-alternate-grid"
691
+ >
692
+ <div
693
+ className={\`
694
+ es-bounded__content
695
+ es-alternate-grid__content
696
+ \${isFilled.image(slice.primary.image) ? "es-alternate-grid__content--with-image" : ""}
697
+ \`}
698
+ >
699
+ {isFilled.image(slice.primary.image) && (
700
+ <PrismicImage
701
+ field={slice.primary.image}
702
+ className={\`
703
+ es-alternate-grid__image
704
+ \${
705
+ slice.variation === "imageRight"
706
+ ? "es-alternate-grid__image--right"
707
+ : "es-alternate-grid__image--left"
708
+ }
709
+ \`}
710
+ />
711
+ )}
712
+ <div className="es-alternate-grid__primary-content">
713
+ <div className="es-alternate-grid__primary-content__intro">
714
+ {isFilled.keyText(slice.primary.eyebrowHeadline) && (
715
+ <p className="es-alternate-grid__primary-content__intro__eyebrow">
716
+ {slice.primary.eyebrowHeadline}
717
+ </p>
718
+ )}
719
+ {isFilled.richText(slice.primary.title) && (
720
+ <div className="es-alternate-grid__primary-content__intro__headline">
721
+ <PrismicRichText field={slice.primary.title} />
722
+ </div>
723
+ )}
724
+ {isFilled.richText(slice.primary.description) && (
725
+ <div className="es-alternate-grid__primary-content__intro__description">
726
+ <PrismicRichText field={slice.primary.description} />
727
+ </div>
728
+ )}
729
+ </div>
730
+ {slice.items.length > 0 && (
731
+ <div className="es-alternate-grid__primary-content__items">
732
+ {slice.items.map((item, i) => (
733
+ <div key={\`item-\${i + 1}\`} className="es-alternate-grid__item">
734
+ {isFilled.richText(item.title) && (
735
+ <div className="es-alternate-grid__item__heading">
736
+ <PrismicRichText field={item.title} />
737
+ </div>
738
+ )}
739
+ {isFilled.richText(item.description) && (
740
+ <div className="es-alternate-grid__item__description">
741
+ <PrismicRichText field={item.description} />
742
+ </div>
743
+ )}
744
+ </div>
745
+ ))}
746
+ </div>
747
+ )}
748
+ </div>
749
+ </div>
750
+
751
+ <style>
752
+ {\`
753
+ .es-bounded {
754
+ margin: 0px;
755
+ min-width: 0px;
756
+ position: relative;
757
+ padding: 8vw 1.25rem;
758
+ }
759
+ .es-bounded-content {
760
+ min-width: 0px;
761
+ max-width: 90%;
762
+ margin: 0px auto;
763
+ }
764
+ .es-alternate-grid {
765
+ font-family: system-ui, sans-serif;
766
+ background-color: #fff;
767
+ color: #333;
768
+ }
769
+
770
+ .es-alternate-grid__content {
771
+ display: grid;
772
+ gap: 1.5rem;
773
+ grid-auto-flow: dense;
774
+ }
775
+
776
+ @media (min-width: 640px) {
777
+ .es-alternate-grid__content--with-image {
778
+ grid-template-columns: repeat(2, 1fr);
779
+ }
780
+ }
781
+
782
+ @media (min-width: 1200px) {
783
+ .es-alternate-grid__content--with-image {
784
+ grid-template-columns: repeat(2, 1fr);
785
+ }
786
+ }
787
+
788
+ .es-alternate-grid__image {
789
+ max-width: 100%;
790
+ align-self: center;
791
+ }
792
+
793
+ .es-alternate-grid__image--left {
794
+ grid-column: 1;
795
+ }
796
+
797
+ .es-alternate-grid__image--right {
798
+ grid-column: 2;
799
+ }
800
+
801
+ .es-alternate-grid__primary-content {
802
+ display: grid;
803
+ gap: 2rem;
804
+ }
805
+
806
+ .es-alternate-grid__primary-content__intro {
807
+ display: grid;
808
+ gap: 0.5rem;
809
+ }
810
+
811
+ .es-alternate-grid__primary-content__intro__eyebrow {
812
+ color: #8592e0;
813
+ font-size: 1.15rem;
814
+ font-weight: 500;
815
+ margin: 0;
816
+ }
817
+
818
+ .es-alternate-grid__primary-content__intro__headline {
819
+ font-size: 1.625rem;
820
+ font-weight: 700;
821
+ }
822
+
823
+ .es-alternate-grid__primary-content__intro__headline > * {
824
+ margin: 0;
825
+ }
826
+
827
+ @media (min-width: 640px) {
828
+ .es-alternate-grid__primary-content__intro__headline {
829
+ font-size: 2rem;
830
+ }
831
+ }
832
+
833
+ @media (min-width: 1024px) {
834
+ .es-alternate-grid__primary-content__intro__headline {
835
+ font-size: 2.5rem;
836
+ }
837
+ }
838
+
839
+ @media (min-width: 1200px) {
840
+ .es-alternate-grid__primary-content__intro__headline {
841
+ font-size: 2.75rem;
842
+ }
843
+ }
844
+
845
+ .es-alternate-grid__primary-content__intro__description {
846
+ font-size: 1.15rem;
847
+ max-width: 38rem;
848
+ }
849
+
850
+ .es-alternate-grid__primary-content__intro__description > p {
851
+ margin: 0;
852
+ }
853
+
854
+ @media (min-width: 1200px) {
855
+ .es-alternate-grid__primary-content__intro__description {
856
+ font-size: 1.4rem;
857
+ }
858
+ }
859
+
860
+ .es-alternate-grid__primary-content__items {
861
+ display: grid;
862
+ gap: 2rem;
863
+ }
864
+
865
+ @media (min-width: 640px) {
866
+ .es-alternate-grid__primary-content__items {
867
+ grid-template-columns: repeat(2, 1fr);
868
+ }
869
+ }
870
+
871
+ .es-alternate-grid__item {
872
+ display: grid;
873
+ align-content: start;
874
+ }
875
+
876
+ .es-alternate-grid__item__icon {
877
+ max-height: 3rem;
878
+ }
879
+
880
+ .es-alternate-grid__item__heading {
881
+ font-weight: 700;
882
+ font-size: 1.17rem;
883
+ margin-top: 0;
884
+ margin-bottom: .5rem;
885
+ }
886
+ .es-alternate-grid__item__heading > * {
887
+ margin: 0;
888
+ }
889
+
890
+ .es-alternate-grid__item__description {
891
+ font-size: 0.9rem;
892
+ }
893
+
894
+ .es-alternate-grid__item__description > * {
895
+ margin: 0;
896
+ }
897
+
898
+ \`}
899
+ </style>
900
+ </section>
901
+ );
902
+ };
903
+
904
+ export default ${pascalName};
905
+
906
+ `;
907
+ };
908
+ exports.createComponentContents = createComponentContents;
909
+ exports.mocks = mocks;
910
+ exports.model = model;
911
+ exports.screenshotPaths = screenshotPaths;
912
+ //# sourceMappingURL=index.cjs.map