@cntrl-site/components 0.1.29 → 0.1.30-grid.1

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,698 @@
1
+ export declare const GridComponent: {
2
+ element: ({ settings, content, styles, isEditor }: {
3
+ settings: {
4
+ grid: {
5
+ entriesPerRow: number;
6
+ rowGap: number;
7
+ columnGap: number;
8
+ };
9
+ media?: {
10
+ widthType: "auto" | "fixed";
11
+ maxWidth: number;
12
+ aspectRatioMode: "fixed" | "original";
13
+ aspectWidth: number;
14
+ aspectHeight: number;
15
+ };
16
+ title?: {
17
+ marginTop: number;
18
+ };
19
+ subtitle?: {
20
+ marginTop: number;
21
+ };
22
+ description?: {
23
+ marginTop: number;
24
+ };
25
+ };
26
+ content: {
27
+ image?: {
28
+ url: string;
29
+ name?: string;
30
+ objectFit?: "cover" | "contain";
31
+ } | null;
32
+ title?: any[];
33
+ subtitle?: any[];
34
+ description?: any[];
35
+ link?: string;
36
+ }[];
37
+ styles: {
38
+ title: import('../../types/TextElementStyles').TextElementStyles;
39
+ subtitle: import('../../types/TextElementStyles').TextElementStyles;
40
+ description: import('../../types/TextElementStyles').TextElementStyles;
41
+ };
42
+ isEditor?: boolean;
43
+ } & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
44
+ id: string;
45
+ name: string;
46
+ preview: {
47
+ type: "video";
48
+ url: string;
49
+ };
50
+ defaultSize: {
51
+ width: string;
52
+ height: string;
53
+ };
54
+ schema: {
55
+ type: string;
56
+ properties: {
57
+ settings: {
58
+ layoutBased: boolean;
59
+ type: string;
60
+ display: {
61
+ type: string;
62
+ };
63
+ properties: {
64
+ grid: {
65
+ title: string;
66
+ icon: string;
67
+ tooltip: string;
68
+ type: string;
69
+ properties: {
70
+ entriesPerRow: {
71
+ type: string;
72
+ min: number;
73
+ max: number;
74
+ label: string;
75
+ display: {
76
+ type: string;
77
+ };
78
+ };
79
+ rowGap: {
80
+ type: string;
81
+ scalingEnabled: boolean;
82
+ label: string;
83
+ display: {
84
+ type: string;
85
+ };
86
+ };
87
+ columnGap: {
88
+ type: string;
89
+ scalingEnabled: boolean;
90
+ label: string;
91
+ display: {
92
+ type: string;
93
+ };
94
+ };
95
+ };
96
+ };
97
+ media: {
98
+ title: string;
99
+ icon: string;
100
+ tooltip: string;
101
+ type: string;
102
+ properties: {
103
+ widthType: {
104
+ type: string;
105
+ display: {
106
+ type: string;
107
+ };
108
+ enum: string[];
109
+ };
110
+ maxWidth: {
111
+ type: string;
112
+ min: number;
113
+ label: string;
114
+ scalingEnabled: boolean;
115
+ display: {
116
+ type: string;
117
+ visible: boolean;
118
+ };
119
+ };
120
+ aspectRatioMode: {
121
+ type: string;
122
+ display: {
123
+ type: string;
124
+ };
125
+ enum: string[];
126
+ };
127
+ aspectWidth: {
128
+ type: string;
129
+ min: number;
130
+ label: string;
131
+ display: {
132
+ type: string;
133
+ visible: boolean;
134
+ };
135
+ };
136
+ aspectHeight: {
137
+ type: string;
138
+ min: number;
139
+ label: string;
140
+ display: {
141
+ type: string;
142
+ visible: boolean;
143
+ };
144
+ };
145
+ };
146
+ };
147
+ title: {
148
+ title: string;
149
+ icon: string;
150
+ tooltip: string;
151
+ type: string;
152
+ properties: {
153
+ marginTop: {
154
+ type: string;
155
+ scalingEnabled: boolean;
156
+ label: string;
157
+ display: {
158
+ type: string;
159
+ };
160
+ };
161
+ };
162
+ };
163
+ subtitle: {
164
+ title: string;
165
+ icon: string;
166
+ tooltip: string;
167
+ type: string;
168
+ properties: {
169
+ marginTop: {
170
+ type: string;
171
+ scalingEnabled: boolean;
172
+ label: string;
173
+ display: {
174
+ type: string;
175
+ };
176
+ };
177
+ };
178
+ };
179
+ description: {
180
+ title: string;
181
+ icon: string;
182
+ tooltip: string;
183
+ type: string;
184
+ properties: {
185
+ marginTop: {
186
+ type: string;
187
+ scalingEnabled: boolean;
188
+ label: string;
189
+ display: {
190
+ type: string;
191
+ };
192
+ };
193
+ };
194
+ };
195
+ };
196
+ default: {
197
+ grid: {
198
+ entriesPerRow: number;
199
+ rowGap: number;
200
+ columnGap: number;
201
+ };
202
+ media: {
203
+ widthType: string;
204
+ maxWidth: number;
205
+ aspectRatioMode: string;
206
+ aspectWidth: number;
207
+ aspectHeight: number;
208
+ };
209
+ title: {
210
+ marginTop: number;
211
+ };
212
+ subtitle: {
213
+ marginTop: number;
214
+ };
215
+ description: {
216
+ marginTop: number;
217
+ };
218
+ };
219
+ displayRules: {
220
+ if: {
221
+ name: string;
222
+ value: string;
223
+ };
224
+ then: {
225
+ name: string;
226
+ value: boolean;
227
+ };
228
+ }[];
229
+ };
230
+ content: {
231
+ layoutBased: boolean;
232
+ type: string;
233
+ settings: {
234
+ addItemFromFileExplorer: boolean;
235
+ defaultWidth: number;
236
+ };
237
+ items: {
238
+ type: string;
239
+ properties: {
240
+ image: {
241
+ type: string;
242
+ label: string;
243
+ display: {
244
+ minWidth: number;
245
+ maxWidth: number;
246
+ type: string;
247
+ };
248
+ properties: {
249
+ url: {
250
+ type: string;
251
+ };
252
+ name: {
253
+ type: string;
254
+ };
255
+ objectFit: {
256
+ type: string;
257
+ enum: string[];
258
+ };
259
+ };
260
+ required: string[];
261
+ };
262
+ title: {
263
+ placeholder: string;
264
+ label: string;
265
+ display: {
266
+ type: string;
267
+ minWidth: number;
268
+ maxWidth: number;
269
+ };
270
+ };
271
+ subtitle: {
272
+ placeholder: string;
273
+ label: string;
274
+ display: {
275
+ type: string;
276
+ minWidth: number;
277
+ maxWidth: number;
278
+ };
279
+ };
280
+ description: {
281
+ placeholder: string;
282
+ label: string;
283
+ display: {
284
+ type: string;
285
+ minWidth: number;
286
+ maxWidth: number;
287
+ };
288
+ };
289
+ link: {
290
+ type: string;
291
+ label: string;
292
+ placeholder: string;
293
+ display: {
294
+ type: string;
295
+ minWidth: number;
296
+ maxWidth: number;
297
+ };
298
+ };
299
+ };
300
+ required: string[];
301
+ };
302
+ default: {
303
+ image: {
304
+ url: string;
305
+ objectFit: "cover";
306
+ };
307
+ title: {
308
+ type: string;
309
+ children: {
310
+ text: string;
311
+ }[];
312
+ }[];
313
+ subtitle: {
314
+ type: string;
315
+ children: {
316
+ text: string;
317
+ }[];
318
+ }[];
319
+ description: {
320
+ type: string;
321
+ children: {
322
+ text: string;
323
+ }[];
324
+ }[];
325
+ link: string;
326
+ }[];
327
+ };
328
+ styles: {
329
+ layoutBased: boolean;
330
+ type: string;
331
+ properties: {
332
+ title: {
333
+ dataName: string;
334
+ type: string;
335
+ properties: {
336
+ fontSettings: {
337
+ type: string;
338
+ display: {
339
+ type: string;
340
+ };
341
+ properties: {
342
+ fontFamily: {
343
+ type: string;
344
+ };
345
+ fontWeight: {
346
+ type: string;
347
+ };
348
+ fontStyle: {
349
+ type: string;
350
+ };
351
+ };
352
+ };
353
+ widthSettings: {
354
+ display: {
355
+ type: string;
356
+ };
357
+ type: string;
358
+ properties: {
359
+ width: {
360
+ type: string;
361
+ };
362
+ sizing: {
363
+ type: string;
364
+ enum: string[];
365
+ };
366
+ };
367
+ };
368
+ fontSizeLineHeight: {
369
+ type: string;
370
+ display: {
371
+ type: string;
372
+ };
373
+ properties: {
374
+ fontSize: {
375
+ type: string;
376
+ };
377
+ lineHeight: {
378
+ type: string;
379
+ };
380
+ };
381
+ };
382
+ letterSpacing: {
383
+ display: {
384
+ type: string;
385
+ };
386
+ type: string;
387
+ };
388
+ wordSpacing: {
389
+ display: {
390
+ type: string;
391
+ };
392
+ type: string;
393
+ };
394
+ textAlign: {
395
+ display: {
396
+ type: string;
397
+ };
398
+ type: string;
399
+ enum: string[];
400
+ };
401
+ textAppearance: {
402
+ display: {
403
+ type: string;
404
+ };
405
+ properties: {
406
+ textTransform: {
407
+ type: string;
408
+ enum: string[];
409
+ };
410
+ textDecoration: {
411
+ type: string;
412
+ enum: string[];
413
+ };
414
+ fontVariant: {
415
+ type: string;
416
+ enum: string[];
417
+ };
418
+ };
419
+ };
420
+ color: {
421
+ display: {
422
+ type: string;
423
+ };
424
+ type: string;
425
+ };
426
+ };
427
+ };
428
+ subtitle: {
429
+ dataName: string;
430
+ type: string;
431
+ properties: {
432
+ fontSettings: {
433
+ type: string;
434
+ display: {
435
+ type: string;
436
+ };
437
+ properties: {
438
+ fontFamily: {
439
+ type: string;
440
+ };
441
+ fontWeight: {
442
+ type: string;
443
+ };
444
+ fontStyle: {
445
+ type: string;
446
+ };
447
+ };
448
+ };
449
+ widthSettings: {
450
+ display: {
451
+ type: string;
452
+ };
453
+ type: string;
454
+ properties: {
455
+ width: {
456
+ type: string;
457
+ };
458
+ sizing: {
459
+ type: string;
460
+ enum: string[];
461
+ };
462
+ };
463
+ };
464
+ fontSizeLineHeight: {
465
+ type: string;
466
+ display: {
467
+ type: string;
468
+ };
469
+ properties: {
470
+ fontSize: {
471
+ type: string;
472
+ };
473
+ lineHeight: {
474
+ type: string;
475
+ };
476
+ };
477
+ };
478
+ letterSpacing: {
479
+ display: {
480
+ type: string;
481
+ };
482
+ type: string;
483
+ };
484
+ wordSpacing: {
485
+ display: {
486
+ type: string;
487
+ };
488
+ type: string;
489
+ };
490
+ textAlign: {
491
+ display: {
492
+ type: string;
493
+ };
494
+ type: string;
495
+ enum: string[];
496
+ };
497
+ textAppearance: {
498
+ display: {
499
+ type: string;
500
+ };
501
+ properties: {
502
+ textTransform: {
503
+ type: string;
504
+ enum: string[];
505
+ };
506
+ textDecoration: {
507
+ type: string;
508
+ enum: string[];
509
+ };
510
+ fontVariant: {
511
+ type: string;
512
+ enum: string[];
513
+ };
514
+ };
515
+ };
516
+ color: {
517
+ display: {
518
+ type: string;
519
+ };
520
+ type: string;
521
+ };
522
+ };
523
+ };
524
+ description: {
525
+ dataName: string;
526
+ type: string;
527
+ properties: {
528
+ fontSettings: {
529
+ type: string;
530
+ display: {
531
+ type: string;
532
+ };
533
+ properties: {
534
+ fontFamily: {
535
+ type: string;
536
+ };
537
+ fontWeight: {
538
+ type: string;
539
+ };
540
+ fontStyle: {
541
+ type: string;
542
+ };
543
+ };
544
+ };
545
+ widthSettings: {
546
+ display: {
547
+ type: string;
548
+ };
549
+ type: string;
550
+ properties: {
551
+ width: {
552
+ type: string;
553
+ };
554
+ sizing: {
555
+ type: string;
556
+ enum: string[];
557
+ };
558
+ };
559
+ };
560
+ fontSizeLineHeight: {
561
+ type: string;
562
+ display: {
563
+ type: string;
564
+ };
565
+ properties: {
566
+ fontSize: {
567
+ type: string;
568
+ };
569
+ lineHeight: {
570
+ type: string;
571
+ };
572
+ };
573
+ };
574
+ letterSpacing: {
575
+ display: {
576
+ type: string;
577
+ };
578
+ type: string;
579
+ };
580
+ wordSpacing: {
581
+ display: {
582
+ type: string;
583
+ };
584
+ type: string;
585
+ };
586
+ textAlign: {
587
+ display: {
588
+ type: string;
589
+ };
590
+ type: string;
591
+ enum: string[];
592
+ };
593
+ textAppearance: {
594
+ display: {
595
+ type: string;
596
+ };
597
+ properties: {
598
+ textTransform: {
599
+ type: string;
600
+ enum: string[];
601
+ };
602
+ textDecoration: {
603
+ type: string;
604
+ enum: string[];
605
+ };
606
+ fontVariant: {
607
+ type: string;
608
+ enum: string[];
609
+ };
610
+ };
611
+ };
612
+ color: {
613
+ display: {
614
+ type: string;
615
+ };
616
+ type: string;
617
+ };
618
+ };
619
+ };
620
+ };
621
+ default: {
622
+ title: {
623
+ widthSettings: {
624
+ width: number;
625
+ sizing: string;
626
+ };
627
+ fontSettings: {
628
+ fontFamily: string;
629
+ fontWeight: number;
630
+ fontStyle: string;
631
+ };
632
+ fontSizeLineHeight: {
633
+ fontSize: number;
634
+ lineHeight: number;
635
+ };
636
+ letterSpacing: number;
637
+ wordSpacing: number;
638
+ textAlign: string;
639
+ textAppearance: {
640
+ textTransform: string;
641
+ textDecoration: string;
642
+ fontVariant: string;
643
+ };
644
+ color: string;
645
+ };
646
+ subtitle: {
647
+ widthSettings: {
648
+ width: number;
649
+ sizing: string;
650
+ };
651
+ fontSettings: {
652
+ fontFamily: string;
653
+ fontWeight: number;
654
+ fontStyle: string;
655
+ };
656
+ fontSizeLineHeight: {
657
+ fontSize: number;
658
+ lineHeight: number;
659
+ };
660
+ letterSpacing: number;
661
+ wordSpacing: number;
662
+ textAlign: string;
663
+ textAppearance: {
664
+ textTransform: string;
665
+ textDecoration: string;
666
+ fontVariant: string;
667
+ };
668
+ color: string;
669
+ };
670
+ description: {
671
+ widthSettings: {
672
+ width: number;
673
+ sizing: string;
674
+ };
675
+ fontSettings: {
676
+ fontFamily: string;
677
+ fontWeight: number;
678
+ fontStyle: string;
679
+ };
680
+ fontSizeLineHeight: {
681
+ fontSize: number;
682
+ lineHeight: number;
683
+ };
684
+ letterSpacing: number;
685
+ wordSpacing: number;
686
+ textAlign: string;
687
+ textAppearance: {
688
+ textTransform: string;
689
+ textDecoration: string;
690
+ fontVariant: string;
691
+ };
692
+ color: string;
693
+ };
694
+ };
695
+ };
696
+ };
697
+ };
698
+ };