@revenuecat/purchases-ui-js 2.0.3 → 2.0.4

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 (39) hide show
  1. package/dist/components/button/ButtonNode.svelte +20 -3
  2. package/dist/components/carousel/Carousel.stories.svelte +1039 -0
  3. package/dist/components/carousel/Carousel.stories.svelte.d.ts +19 -0
  4. package/dist/components/carousel/Carousel.svelte +298 -0
  5. package/dist/components/carousel/Carousel.svelte.d.ts +4 -0
  6. package/dist/components/carousel/CarouselPage.svelte +39 -0
  7. package/dist/components/carousel/CarouselPage.svelte.d.ts +11 -0
  8. package/dist/components/carousel/PageControl.svelte +93 -0
  9. package/dist/components/carousel/PageControl.svelte.d.ts +4 -0
  10. package/dist/components/carousel/carousel-utils.d.ts +4 -0
  11. package/dist/components/carousel/carousel-utils.js +21 -0
  12. package/dist/components/paywall/Node.svelte +4 -10
  13. package/dist/components/paywall/Node.svelte.d.ts +2 -1
  14. package/dist/components/paywall/Paywall.svelte +5 -5
  15. package/dist/components/paywall/Paywall.svelte.d.ts +2 -1
  16. package/dist/components/paywall/fixtures/override-paywall.d.ts +1 -1
  17. package/dist/components/paywall/fixtures/stack-paywall.d.ts +1 -1
  18. package/dist/components/paywall/paywall-utils.d.ts +1 -1
  19. package/dist/components/stack/Stack.svelte +6 -1
  20. package/dist/components/stack/Stack.svelte.d.ts +2 -0
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +2 -2
  23. package/dist/stores/paywall.d.ts +1 -1
  24. package/dist/stories/fixtures.d.ts +2 -1
  25. package/dist/stories/viewport-wrapper.svelte +7 -5
  26. package/dist/types/component.d.ts +2 -1
  27. package/dist/types/components/button.d.ts +2 -0
  28. package/dist/types/components/carousel.d.ts +51 -0
  29. package/dist/types/paywall.d.ts +27 -0
  30. package/dist/types/paywall.js +1 -0
  31. package/dist/types/ui-config.d.ts +20 -0
  32. package/dist/types/ui-config.js +1 -0
  33. package/dist/utils/font-utils.d.ts +1 -1
  34. package/dist/utils/style-utils.d.ts +1 -1
  35. package/dist/utils/style-utils.js +7 -2
  36. package/dist/web-components/index.js +969 -942
  37. package/package.json +20 -20
  38. package/dist/data/entities.d.ts +0 -46
  39. /package/dist/{data/entities.js → types/components/carousel.js} +0 -0
@@ -0,0 +1,1039 @@
1
+ <script module lang="ts">
2
+ import { componentDecorator } from "../../stories/component-decorator";
3
+ import { localizationDecorator } from "../../stories/localization-decorator";
4
+ import { viewportDecorator } from "../../stories/viewport-decorator";
5
+ import type { CarouselProps } from "../../types/components/carousel";
6
+ import { DEFAULT_SPACING } from "../../utils/constants";
7
+ import { defineMeta } from "@storybook/addon-svelte-csf";
8
+ import Carousel from "./Carousel.svelte";
9
+
10
+ const defaultLocale = "en_US";
11
+
12
+ const pages: CarouselProps["pages"] = [
13
+ {
14
+ background: {
15
+ type: "color",
16
+ value: {
17
+ light: {
18
+ degrees: 180,
19
+ points: [
20
+ {
21
+ color: "#EAEDFB2E",
22
+ percent: 0,
23
+ },
24
+ {
25
+ color: "#EAEDFBFF",
26
+ percent: 100,
27
+ },
28
+ ],
29
+ type: "linear",
30
+ },
31
+ },
32
+ },
33
+ background_color: null,
34
+ badge: null,
35
+ border: {
36
+ color: {
37
+ light: {
38
+ type: "hex",
39
+ value: "#cccccc",
40
+ },
41
+ },
42
+ width: 1,
43
+ },
44
+ components: [
45
+ {
46
+ background_color: null,
47
+ color: {
48
+ light: {
49
+ type: "hex",
50
+ value: "#000000",
51
+ },
52
+ },
53
+ font_name: null,
54
+ font_size: 14,
55
+ font_weight: "regular",
56
+ font_weight_int: 400,
57
+ horizontal_alignment: "leading",
58
+ id: "soRLOc3Acb",
59
+ margin: {
60
+ bottom: 0,
61
+ leading: 0,
62
+ top: 0,
63
+ trailing: 0,
64
+ },
65
+ name: "",
66
+ padding: {
67
+ bottom: 0,
68
+ leading: 0,
69
+ top: 0,
70
+ trailing: 0,
71
+ },
72
+ size: {
73
+ height: {
74
+ type: "fit",
75
+ value: null,
76
+ },
77
+ width: {
78
+ type: "fit",
79
+ value: null,
80
+ },
81
+ },
82
+ text_lid: "first",
83
+ type: "text",
84
+ },
85
+ ],
86
+ dimension: {
87
+ alignment: "center",
88
+ distribution: "center",
89
+ type: "horizontal",
90
+ },
91
+ id: "N3iBhLTsUa",
92
+ margin: {
93
+ bottom: 0,
94
+ leading: 0,
95
+ top: 0,
96
+ trailing: 0,
97
+ },
98
+ name: "Page 1",
99
+ padding: {
100
+ bottom: 0,
101
+ leading: 0,
102
+ top: 0,
103
+ trailing: 0,
104
+ },
105
+ shadow: null,
106
+ shape: {
107
+ corners: {
108
+ bottom_leading: 16,
109
+ bottom_trailing: 16,
110
+ top_leading: 16,
111
+ top_trailing: 16,
112
+ },
113
+ type: "rectangle",
114
+ },
115
+ size: {
116
+ height: {
117
+ type: "fixed",
118
+ value: 160,
119
+ },
120
+ width: {
121
+ type: "fill",
122
+ value: null,
123
+ },
124
+ },
125
+ spacing: 0,
126
+ type: "stack",
127
+ },
128
+ {
129
+ background: {
130
+ type: "color",
131
+ value: {
132
+ light: {
133
+ degrees: 180,
134
+ points: [
135
+ {
136
+ color: "#E1F9EF2E",
137
+ percent: 0,
138
+ },
139
+ {
140
+ color: "#E1F9EFFF",
141
+ percent: 100,
142
+ },
143
+ ],
144
+ type: "linear",
145
+ },
146
+ },
147
+ },
148
+ background_color: null,
149
+ badge: null,
150
+ border: {
151
+ color: {
152
+ light: {
153
+ type: "hex",
154
+ value: "#cccccc",
155
+ },
156
+ },
157
+ width: 1,
158
+ },
159
+ components: [
160
+ {
161
+ background_color: null,
162
+ color: {
163
+ light: {
164
+ type: "hex",
165
+ value: "#000000",
166
+ },
167
+ },
168
+ font_name: null,
169
+ font_size: 14,
170
+ font_weight: "regular",
171
+ font_weight_int: 400,
172
+ horizontal_alignment: "leading",
173
+ id: "RAsFXX8203",
174
+ margin: {
175
+ bottom: 0,
176
+ leading: 0,
177
+ top: 0,
178
+ trailing: 0,
179
+ },
180
+ name: "",
181
+ padding: {
182
+ bottom: 0,
183
+ leading: 0,
184
+ top: 0,
185
+ trailing: 0,
186
+ },
187
+ size: {
188
+ height: {
189
+ type: "fit",
190
+ value: null,
191
+ },
192
+ width: {
193
+ type: "fit",
194
+ value: null,
195
+ },
196
+ },
197
+ text_lid: "second",
198
+ type: "text",
199
+ },
200
+ ],
201
+ dimension: {
202
+ alignment: "center",
203
+ distribution: "center",
204
+ type: "horizontal",
205
+ },
206
+ id: "xQIsfuIIN0",
207
+ margin: {
208
+ bottom: 0,
209
+ leading: 0,
210
+ top: 0,
211
+ trailing: 0,
212
+ },
213
+ name: "Page 2",
214
+ padding: {
215
+ bottom: 0,
216
+ leading: 0,
217
+ top: 0,
218
+ trailing: 0,
219
+ },
220
+ shadow: null,
221
+ shape: {
222
+ corners: {
223
+ bottom_leading: 16,
224
+ bottom_trailing: 16,
225
+ top_leading: 16,
226
+ top_trailing: 16,
227
+ },
228
+ type: "rectangle",
229
+ },
230
+ size: {
231
+ height: {
232
+ type: "fixed",
233
+ value: 120,
234
+ },
235
+ width: {
236
+ type: "fill",
237
+ value: null,
238
+ },
239
+ },
240
+ spacing: 0,
241
+ type: "stack",
242
+ },
243
+ {
244
+ background: {
245
+ type: "color",
246
+ value: {
247
+ light: {
248
+ degrees: 180,
249
+ points: [
250
+ {
251
+ color: "#FDE7E72E",
252
+ percent: 0,
253
+ },
254
+ {
255
+ color: "#FDE7E7FF",
256
+ percent: 100,
257
+ },
258
+ ],
259
+ type: "linear",
260
+ },
261
+ },
262
+ },
263
+ background_color: null,
264
+ badge: null,
265
+ border: {
266
+ color: {
267
+ light: {
268
+ type: "hex",
269
+ value: "#cccccc",
270
+ },
271
+ },
272
+ width: 1,
273
+ },
274
+ components: [
275
+ {
276
+ background_color: null,
277
+ color: {
278
+ light: {
279
+ type: "hex",
280
+ value: "#000000",
281
+ },
282
+ },
283
+ font_name: null,
284
+ font_size: 14,
285
+ font_weight: "regular",
286
+ font_weight_int: 400,
287
+ horizontal_alignment: "leading",
288
+ id: "QMk1xrZOgz",
289
+ margin: {
290
+ bottom: 0,
291
+ leading: 0,
292
+ top: 0,
293
+ trailing: 0,
294
+ },
295
+ name: "",
296
+ padding: {
297
+ bottom: 0,
298
+ leading: 0,
299
+ top: 0,
300
+ trailing: 0,
301
+ },
302
+ size: {
303
+ height: {
304
+ type: "fit",
305
+ value: null,
306
+ },
307
+ width: {
308
+ type: "fit",
309
+ value: null,
310
+ },
311
+ },
312
+ text_lid: "third",
313
+ type: "text",
314
+ },
315
+ ],
316
+ dimension: {
317
+ alignment: "center",
318
+ distribution: "center",
319
+ type: "horizontal",
320
+ },
321
+ id: "7zbI8t5CmX",
322
+ margin: {
323
+ bottom: 0,
324
+ leading: 0,
325
+ top: 0,
326
+ trailing: 0,
327
+ },
328
+ name: "Page 3",
329
+ padding: {
330
+ bottom: 0,
331
+ leading: 0,
332
+ top: 0,
333
+ trailing: 0,
334
+ },
335
+ shadow: null,
336
+ shape: {
337
+ corners: {
338
+ bottom_leading: 16,
339
+ bottom_trailing: 16,
340
+ top_leading: 16,
341
+ top_trailing: 16,
342
+ },
343
+ type: "rectangle",
344
+ },
345
+ size: {
346
+ height: {
347
+ type: "fixed",
348
+ value: 80,
349
+ },
350
+ width: {
351
+ type: "fill",
352
+ value: null,
353
+ },
354
+ },
355
+ spacing: 0,
356
+ type: "stack",
357
+ },
358
+ ];
359
+
360
+ const lastPage = pages.length - 1;
361
+
362
+ const { Story } = defineMeta({
363
+ title: "Components/Carousel",
364
+ component: Carousel,
365
+ decorators: [
366
+ viewportDecorator(400, 300, 0),
367
+ componentDecorator(),
368
+ localizationDecorator({
369
+ defaultLocale,
370
+ localizations: {
371
+ [defaultLocale]: {
372
+ first: "First",
373
+ second: "Second",
374
+ third: "Third",
375
+ badge: "Badge",
376
+ },
377
+ },
378
+ }),
379
+ ],
380
+ args: {
381
+ type: "carousel",
382
+ id: "carousel",
383
+ name: "Carousel",
384
+ padding: { bottom: 8, leading: 0, top: 8, trailing: 0 },
385
+ margin: DEFAULT_SPACING,
386
+ background: null,
387
+ shape: null,
388
+ border: null,
389
+ shadow: null,
390
+ page_alignment: "center",
391
+ page_spacing: 16,
392
+ page_peek: 16,
393
+ initial_page_index: 0,
394
+ loop: false,
395
+ auto_advance: {
396
+ ms_time_per_page: 2500,
397
+ ms_transition_time: 500,
398
+ transition_type: "slide",
399
+ },
400
+ page_control: {
401
+ active: {
402
+ color: {
403
+ light: {
404
+ type: "hex",
405
+ value: "#00000088",
406
+ },
407
+ },
408
+ height: 5,
409
+ width: 5,
410
+ },
411
+ background_color: null,
412
+ border: null,
413
+ default: {
414
+ color: {
415
+ light: {
416
+ type: "hex",
417
+ value: "#0000004C",
418
+ },
419
+ },
420
+ height: 5,
421
+ width: 5,
422
+ },
423
+ margin: {
424
+ bottom: 0,
425
+ leading: 0,
426
+ top: 8,
427
+ trailing: 0,
428
+ },
429
+ padding: {
430
+ bottom: 8,
431
+ leading: 8,
432
+ top: 8,
433
+ trailing: 8,
434
+ },
435
+ position: "bottom",
436
+ shadow: null,
437
+ shape: null,
438
+ spacing: 8,
439
+ },
440
+ pages,
441
+ } satisfies CarouselProps,
442
+ });
443
+ </script>
444
+
445
+ <Story
446
+ name="No loop - first page"
447
+ args={{
448
+ loop: false,
449
+ initial_page_index: 0,
450
+ auto_advance: null,
451
+ }}
452
+ />
453
+
454
+ <Story
455
+ name="No loop - last page"
456
+ args={{
457
+ loop: false,
458
+ initial_page_index: lastPage,
459
+ auto_advance: null,
460
+ }}
461
+ />
462
+
463
+ <Story
464
+ name="Loop - first page"
465
+ args={{
466
+ loop: true,
467
+ initial_page_index: 0,
468
+ auto_advance: null,
469
+ }}
470
+ />
471
+
472
+ <Story
473
+ name="Loop - last page"
474
+ args={{
475
+ loop: true,
476
+ initial_page_index: lastPage,
477
+ auto_advance: null,
478
+ }}
479
+ />
480
+
481
+ <Story
482
+ name="Fancy"
483
+ args={{
484
+ initial_page_index: 0,
485
+ loop: true,
486
+ margin: {
487
+ bottom: 16,
488
+ leading: 16,
489
+ top: 16,
490
+ trailing: 16,
491
+ },
492
+ padding: {
493
+ bottom: 16,
494
+ leading: 0,
495
+ top: 16,
496
+ trailing: 0,
497
+ },
498
+ page_alignment: "top",
499
+ page_control: {
500
+ active: {
501
+ color: {
502
+ light: {
503
+ type: "hex",
504
+ value: "#3fe33fFF",
505
+ },
506
+ },
507
+ height: 16,
508
+ stroke_color: {
509
+ light: {
510
+ type: "hex",
511
+ value: "#20a50bFF",
512
+ },
513
+ },
514
+ stroke_width: 2,
515
+ width: 16,
516
+ },
517
+ background_color: null,
518
+ border: {
519
+ color: {
520
+ light: {
521
+ type: "hex",
522
+ value: "#00000040",
523
+ },
524
+ },
525
+ width: 2,
526
+ },
527
+ default: {
528
+ color: {
529
+ light: {
530
+ type: "hex",
531
+ value: "#00000040",
532
+ },
533
+ },
534
+ height: 16,
535
+ stroke_color: {
536
+ light: {
537
+ type: "hex",
538
+ value: "#000000FF",
539
+ },
540
+ },
541
+ stroke_width: 1,
542
+ width: 16,
543
+ },
544
+ margin: {
545
+ bottom: 16,
546
+ leading: 16,
547
+ top: 16,
548
+ trailing: 16,
549
+ },
550
+ padding: {
551
+ bottom: 16,
552
+ leading: 16,
553
+ top: 16,
554
+ trailing: 16,
555
+ },
556
+ position: "bottom",
557
+ shadow: {
558
+ color: {
559
+ light: {
560
+ type: "hex",
561
+ value: "#00000040",
562
+ },
563
+ },
564
+ radius: 8,
565
+ x: 4,
566
+ y: 4,
567
+ },
568
+ shape: {
569
+ corners: null,
570
+ type: "pill",
571
+ },
572
+ spacing: 16,
573
+ },
574
+ page_peek: 32,
575
+ page_spacing: 8,
576
+ pages: [
577
+ {
578
+ background: {
579
+ type: "color",
580
+ value: {
581
+ light: {
582
+ degrees: 180,
583
+ points: [
584
+ {
585
+ color: "#EAEDFB2E",
586
+ percent: 0,
587
+ },
588
+ {
589
+ color: "#EAEDFBFF",
590
+ percent: 100,
591
+ },
592
+ ],
593
+ type: "linear",
594
+ },
595
+ },
596
+ },
597
+ background_color: null,
598
+ badge: {
599
+ alignment: "top",
600
+ stack: {
601
+ background: {
602
+ type: "color",
603
+ value: {
604
+ light: {
605
+ type: "hex",
606
+ value: "#11D483FF",
607
+ },
608
+ },
609
+ },
610
+ background_color: {
611
+ light: {
612
+ type: "hex",
613
+ value: "#11D483FF",
614
+ },
615
+ },
616
+ badge: null,
617
+ border: null,
618
+ components: [
619
+ {
620
+ background_color: null,
621
+ color: {
622
+ light: {
623
+ type: "hex",
624
+ value: "#000000",
625
+ },
626
+ },
627
+ font_name: null,
628
+ font_size: 14,
629
+ font_weight: "regular",
630
+ font_weight_int: 400,
631
+ horizontal_alignment: "center",
632
+ id: "cKjC2eAb7t",
633
+ margin: {
634
+ bottom: 0,
635
+ leading: 0,
636
+ top: 0,
637
+ trailing: 0,
638
+ },
639
+ name: "",
640
+ padding: {
641
+ bottom: 0,
642
+ leading: 0,
643
+ top: 0,
644
+ trailing: 0,
645
+ },
646
+ size: {
647
+ height: {
648
+ type: "fit",
649
+ value: null,
650
+ },
651
+ width: {
652
+ type: "fit",
653
+ value: null,
654
+ },
655
+ },
656
+ text_lid: "badge",
657
+ type: "text",
658
+ },
659
+ ],
660
+ dimension: {
661
+ alignment: "center",
662
+ distribution: "center",
663
+ type: "vertical",
664
+ },
665
+ id: "CprMWfZc-p",
666
+ margin: {
667
+ bottom: 0,
668
+ leading: 0,
669
+ top: 0,
670
+ trailing: 0,
671
+ },
672
+ name: "",
673
+ padding: {
674
+ bottom: 4,
675
+ leading: 8,
676
+ top: 4,
677
+ trailing: 8,
678
+ },
679
+ shadow: null,
680
+ shape: {
681
+ corners: {
682
+ bottom_leading: 0,
683
+ bottom_trailing: 0,
684
+ top_leading: 0,
685
+ top_trailing: 0,
686
+ },
687
+ type: "pill",
688
+ },
689
+ size: {
690
+ height: {
691
+ type: "fit",
692
+ value: null,
693
+ },
694
+ width: {
695
+ type: "fit",
696
+ value: null,
697
+ },
698
+ },
699
+ spacing: 0,
700
+ type: "stack",
701
+ },
702
+ style: "overlay",
703
+ },
704
+ border: {
705
+ color: {
706
+ light: {
707
+ type: "hex",
708
+ value: "#cccccc",
709
+ },
710
+ },
711
+ width: 1,
712
+ },
713
+ components: [
714
+ {
715
+ background_color: null,
716
+ color: {
717
+ light: {
718
+ type: "hex",
719
+ value: "#000000",
720
+ },
721
+ },
722
+ font_name: null,
723
+ font_size: 14,
724
+ font_weight: "regular",
725
+ font_weight_int: 400,
726
+ horizontal_alignment: "leading",
727
+ id: "Ux4DRHWPn2",
728
+ margin: {
729
+ bottom: 0,
730
+ leading: 0,
731
+ top: 0,
732
+ trailing: 0,
733
+ },
734
+ name: "",
735
+ padding: {
736
+ bottom: 0,
737
+ leading: 0,
738
+ top: 0,
739
+ trailing: 0,
740
+ },
741
+ size: {
742
+ height: {
743
+ type: "fit",
744
+ value: null,
745
+ },
746
+ width: {
747
+ type: "fit",
748
+ value: null,
749
+ },
750
+ },
751
+ text_lid: "first",
752
+ type: "text",
753
+ },
754
+ ],
755
+ dimension: {
756
+ alignment: "center",
757
+ distribution: "center",
758
+ type: "horizontal",
759
+ },
760
+ id: "AQKHrLfmTu",
761
+ margin: {
762
+ bottom: 0,
763
+ leading: 0,
764
+ top: 0,
765
+ trailing: 0,
766
+ },
767
+ name: "Page 1",
768
+ padding: {
769
+ bottom: 0,
770
+ leading: 0,
771
+ top: 0,
772
+ trailing: 0,
773
+ },
774
+ shadow: {
775
+ color: {
776
+ light: {
777
+ type: "hex",
778
+ value: "#000000FF",
779
+ },
780
+ },
781
+ radius: 8,
782
+ x: 4,
783
+ y: 4,
784
+ },
785
+ shape: {
786
+ corners: {
787
+ bottom_leading: 16,
788
+ bottom_trailing: 16,
789
+ top_leading: 16,
790
+ top_trailing: 16,
791
+ },
792
+ type: "rectangle",
793
+ },
794
+ size: {
795
+ height: {
796
+ type: "fixed",
797
+ value: 160,
798
+ },
799
+ width: {
800
+ type: "fill",
801
+ value: null,
802
+ },
803
+ },
804
+ spacing: 0,
805
+ type: "stack",
806
+ },
807
+ {
808
+ background: {
809
+ type: "color",
810
+ value: {
811
+ light: {
812
+ degrees: 180,
813
+ points: [
814
+ {
815
+ color: "#E1F9EF2E",
816
+ percent: 0,
817
+ },
818
+ {
819
+ color: "#E1F9EFFF",
820
+ percent: 100,
821
+ },
822
+ ],
823
+ type: "linear",
824
+ },
825
+ },
826
+ },
827
+ background_color: null,
828
+ badge: null,
829
+ border: {
830
+ color: {
831
+ light: {
832
+ type: "hex",
833
+ value: "#cccccc",
834
+ },
835
+ },
836
+ width: 1,
837
+ },
838
+ components: [
839
+ {
840
+ background_color: null,
841
+ color: {
842
+ light: {
843
+ type: "hex",
844
+ value: "#000000",
845
+ },
846
+ },
847
+ font_name: null,
848
+ font_size: 14,
849
+ font_weight: "regular",
850
+ font_weight_int: 400,
851
+ horizontal_alignment: "leading",
852
+ id: "xQZSdZKraB",
853
+ margin: {
854
+ bottom: 0,
855
+ leading: 0,
856
+ top: 0,
857
+ trailing: 0,
858
+ },
859
+ name: "",
860
+ padding: {
861
+ bottom: 0,
862
+ leading: 0,
863
+ top: 0,
864
+ trailing: 0,
865
+ },
866
+ size: {
867
+ height: {
868
+ type: "fit",
869
+ value: null,
870
+ },
871
+ width: {
872
+ type: "fit",
873
+ value: null,
874
+ },
875
+ },
876
+ text_lid: "second",
877
+ type: "text",
878
+ },
879
+ ],
880
+ dimension: {
881
+ alignment: "center",
882
+ distribution: "center",
883
+ type: "horizontal",
884
+ },
885
+ id: "0WDm5elVWc",
886
+ margin: {
887
+ bottom: 0,
888
+ leading: 0,
889
+ top: 0,
890
+ trailing: 0,
891
+ },
892
+ name: "Page 2",
893
+ padding: {
894
+ bottom: 0,
895
+ leading: 0,
896
+ top: 0,
897
+ trailing: 0,
898
+ },
899
+ shadow: null,
900
+ shape: {
901
+ corners: {
902
+ bottom_leading: 16,
903
+ bottom_trailing: 16,
904
+ top_leading: 16,
905
+ top_trailing: 16,
906
+ },
907
+ type: "rectangle",
908
+ },
909
+ size: {
910
+ height: {
911
+ type: "fixed",
912
+ value: 120,
913
+ },
914
+ width: {
915
+ type: "fill",
916
+ value: null,
917
+ },
918
+ },
919
+ spacing: 0,
920
+ type: "stack",
921
+ },
922
+ {
923
+ background: {
924
+ type: "color",
925
+ value: {
926
+ light: {
927
+ degrees: 180,
928
+ points: [
929
+ {
930
+ color: "#FDE7E72E",
931
+ percent: 0,
932
+ },
933
+ {
934
+ color: "#FDE7E7FF",
935
+ percent: 100,
936
+ },
937
+ ],
938
+ type: "linear",
939
+ },
940
+ },
941
+ },
942
+ background_color: null,
943
+ badge: null,
944
+ border: {
945
+ color: {
946
+ light: {
947
+ type: "hex",
948
+ value: "#cccccc",
949
+ },
950
+ },
951
+ width: 1,
952
+ },
953
+ components: [
954
+ {
955
+ background_color: null,
956
+ color: {
957
+ light: {
958
+ type: "hex",
959
+ value: "#000000",
960
+ },
961
+ },
962
+ font_name: null,
963
+ font_size: 14,
964
+ font_weight: "regular",
965
+ font_weight_int: 400,
966
+ horizontal_alignment: "leading",
967
+ id: "wqvw-od0-k",
968
+ margin: {
969
+ bottom: 0,
970
+ leading: 0,
971
+ top: 0,
972
+ trailing: 0,
973
+ },
974
+ name: "",
975
+ padding: {
976
+ bottom: 0,
977
+ leading: 0,
978
+ top: 0,
979
+ trailing: 0,
980
+ },
981
+ size: {
982
+ height: {
983
+ type: "fit",
984
+ value: null,
985
+ },
986
+ width: {
987
+ type: "fit",
988
+ value: null,
989
+ },
990
+ },
991
+ text_lid: "third",
992
+ type: "text",
993
+ },
994
+ ],
995
+ dimension: {
996
+ alignment: "center",
997
+ distribution: "center",
998
+ type: "horizontal",
999
+ },
1000
+ id: "ce6DWrkJtQ",
1001
+ margin: {
1002
+ bottom: 0,
1003
+ leading: 0,
1004
+ top: 0,
1005
+ trailing: 0,
1006
+ },
1007
+ name: "Page 3",
1008
+ padding: {
1009
+ bottom: 0,
1010
+ leading: 0,
1011
+ top: 0,
1012
+ trailing: 0,
1013
+ },
1014
+ shadow: null,
1015
+ shape: {
1016
+ corners: {
1017
+ bottom_leading: 16,
1018
+ bottom_trailing: 16,
1019
+ top_leading: 16,
1020
+ top_trailing: 16,
1021
+ },
1022
+ type: "rectangle",
1023
+ },
1024
+ size: {
1025
+ height: {
1026
+ type: "fixed",
1027
+ value: 80,
1028
+ },
1029
+ width: {
1030
+ type: "fill",
1031
+ value: null,
1032
+ },
1033
+ },
1034
+ spacing: 0,
1035
+ type: "stack",
1036
+ },
1037
+ ],
1038
+ }}
1039
+ />