@cntrl-site/components 1.0.6 → 1.0.7-alpha.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.
@@ -1,4 +1,3 @@
1
- import { ComponentSchemaV1 } from '../../types/SchemaV1';
2
1
  export declare const OnelinerFormComponent: {
3
2
  element: ({ settings, isEditor, metadata, activeEvent }: {
4
3
  settings: import('./OnelinerForm').OnelinerFormSettings;
@@ -8,7 +7,7 @@ export declare const OnelinerFormComponent: {
8
7
  } & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
9
8
  id: string;
10
9
  name: string;
11
- version: number;
10
+ category: string;
12
11
  preview: {
13
12
  type: "image";
14
13
  url: string;
@@ -23,6 +22,604 @@ export declare const OnelinerFormComponent: {
23
22
  path: string;
24
23
  }[];
25
24
  };
26
- schema: ComponentSchemaV1;
25
+ schema: {
26
+ type: "object";
27
+ version: 1;
28
+ settings: {
29
+ sizing: string;
30
+ properties: {
31
+ fieldsToShow: {
32
+ type: "number";
33
+ scope: "common";
34
+ title: string;
35
+ display: {
36
+ type: string;
37
+ };
38
+ min: number;
39
+ max: number;
40
+ };
41
+ fields: {
42
+ type: "array";
43
+ scope: "common";
44
+ display: {
45
+ type: string;
46
+ };
47
+ items: {
48
+ type: "object";
49
+ properties: {
50
+ name: {
51
+ type: "string";
52
+ };
53
+ type: {
54
+ type: "string";
55
+ enum: string[];
56
+ };
57
+ placeholder: {
58
+ type: "string";
59
+ };
60
+ label: {
61
+ type: "string";
62
+ };
63
+ isRequired: {
64
+ type: "boolean";
65
+ };
66
+ error: {
67
+ type: "string";
68
+ };
69
+ };
70
+ };
71
+ };
72
+ buttonLabel: {
73
+ type: "string";
74
+ scope: "common";
75
+ title: string;
76
+ display: {
77
+ type: string;
78
+ };
79
+ };
80
+ buttonIcon: {
81
+ type: "object";
82
+ scope: "common";
83
+ title: string;
84
+ display: {
85
+ type: string;
86
+ };
87
+ properties: {
88
+ mode: {
89
+ type: "string";
90
+ enum: string[];
91
+ };
92
+ icon: {
93
+ type: readonly ["string", "null"];
94
+ title: string;
95
+ display: {
96
+ type: string;
97
+ };
98
+ };
99
+ };
100
+ };
101
+ iconMaxWidth: {
102
+ type: "number";
103
+ scope: "common";
104
+ title: string;
105
+ display: {
106
+ type: string;
107
+ };
108
+ min: number;
109
+ max: number;
110
+ };
111
+ fontFamily: {
112
+ type: "string";
113
+ scope: "common";
114
+ title: string;
115
+ display: {
116
+ type: string;
117
+ };
118
+ };
119
+ inputPadding: {
120
+ type: "object";
121
+ scope: "layout";
122
+ title: string;
123
+ display: {
124
+ type: string;
125
+ };
126
+ };
127
+ buttonPadding: {
128
+ type: "object";
129
+ scope: "layout";
130
+ title: string;
131
+ display: {
132
+ type: string;
133
+ };
134
+ };
135
+ minHeight: {
136
+ type: "number";
137
+ scope: "layout";
138
+ title: string;
139
+ display: {
140
+ type: string;
141
+ };
142
+ min: number;
143
+ max: number;
144
+ };
145
+ corners: {
146
+ type: "number";
147
+ scope: "layout";
148
+ title: string;
149
+ display: {
150
+ type: string;
151
+ };
152
+ min: number;
153
+ max: number;
154
+ };
155
+ stroke: {
156
+ type: "number";
157
+ scope: "layout";
158
+ title: string;
159
+ display: {
160
+ type: string;
161
+ };
162
+ min: number;
163
+ max: number;
164
+ };
165
+ strokeColor: {
166
+ type: "string";
167
+ scope: "common";
168
+ title: string;
169
+ display: {
170
+ type: string;
171
+ };
172
+ };
173
+ inputColor: {
174
+ type: "string";
175
+ scope: "common";
176
+ title: string;
177
+ display: {
178
+ type: string;
179
+ };
180
+ };
181
+ inputTextColor: {
182
+ type: "string";
183
+ scope: "common";
184
+ title: string;
185
+ display: {
186
+ type: string;
187
+ };
188
+ };
189
+ placeholderColor: {
190
+ type: "string";
191
+ scope: "common";
192
+ title: string;
193
+ display: {
194
+ type: string;
195
+ };
196
+ };
197
+ buttonColor: {
198
+ type: "string";
199
+ scope: "common";
200
+ title: string;
201
+ display: {
202
+ type: string;
203
+ };
204
+ };
205
+ buttonTextColor: {
206
+ type: "string";
207
+ scope: "common";
208
+ title: string;
209
+ display: {
210
+ type: string;
211
+ };
212
+ };
213
+ successColor: {
214
+ type: "string";
215
+ scope: "common";
216
+ title: string;
217
+ display: {
218
+ type: string;
219
+ };
220
+ };
221
+ errorColor: {
222
+ type: "string";
223
+ scope: "common";
224
+ title: string;
225
+ display: {
226
+ type: string;
227
+ };
228
+ };
229
+ successMessage: {
230
+ type: "string";
231
+ scope: "common";
232
+ title: string;
233
+ display: {
234
+ type: string;
235
+ };
236
+ };
237
+ errorMessage: {
238
+ type: "string";
239
+ scope: "common";
240
+ title: string;
241
+ display: {
242
+ type: string;
243
+ };
244
+ };
245
+ stateOverrides: {
246
+ type: "object";
247
+ scope: "common";
248
+ };
249
+ inputFontSettings: {
250
+ scope: "common";
251
+ title: string;
252
+ type: "object";
253
+ display: {
254
+ type: string;
255
+ visible: boolean;
256
+ };
257
+ properties: {
258
+ fontWeight: {
259
+ type: "number";
260
+ };
261
+ fontStyle: {
262
+ type: "string";
263
+ };
264
+ };
265
+ };
266
+ inputFontSize: {
267
+ type: "number";
268
+ scope: "layout";
269
+ title: string;
270
+ display: {
271
+ type: string;
272
+ };
273
+ };
274
+ inputLineHeight: {
275
+ type: "number";
276
+ scope: "layout";
277
+ title: string;
278
+ display: {
279
+ type: string;
280
+ };
281
+ };
282
+ inputLetterSpacing: {
283
+ type: "number";
284
+ scope: "layout";
285
+ title: string;
286
+ display: {
287
+ type: string;
288
+ };
289
+ };
290
+ inputWordSpacing: {
291
+ type: "number";
292
+ scope: "layout";
293
+ title: string;
294
+ display: {
295
+ type: string;
296
+ };
297
+ };
298
+ inputTextAppearance: {
299
+ type: "object";
300
+ scope: "layout";
301
+ title: string;
302
+ display: {
303
+ type: string;
304
+ };
305
+ };
306
+ buttonFontSettings: {
307
+ scope: "common";
308
+ title: string;
309
+ type: "object";
310
+ display: {
311
+ type: string;
312
+ visible: boolean;
313
+ };
314
+ properties: {
315
+ fontWeight: {
316
+ type: "number";
317
+ };
318
+ fontStyle: {
319
+ type: "string";
320
+ };
321
+ };
322
+ };
323
+ buttonFontSize: {
324
+ type: "number";
325
+ scope: "layout";
326
+ title: string;
327
+ display: {
328
+ type: string;
329
+ };
330
+ };
331
+ buttonLineHeight: {
332
+ type: "number";
333
+ scope: "layout";
334
+ title: string;
335
+ display: {
336
+ type: string;
337
+ };
338
+ };
339
+ buttonLetterSpacing: {
340
+ type: "number";
341
+ scope: "layout";
342
+ title: string;
343
+ display: {
344
+ type: string;
345
+ };
346
+ };
347
+ buttonWordSpacing: {
348
+ type: "number";
349
+ scope: "layout";
350
+ title: string;
351
+ display: {
352
+ type: string;
353
+ };
354
+ };
355
+ buttonTextAppearance: {
356
+ type: "object";
357
+ scope: "layout";
358
+ title: string;
359
+ display: {
360
+ type: string;
361
+ };
362
+ };
363
+ statusFontSettings: {
364
+ scope: "common";
365
+ title: string;
366
+ type: "object";
367
+ display: {
368
+ type: string;
369
+ visible: boolean;
370
+ };
371
+ properties: {
372
+ fontWeight: {
373
+ type: "number";
374
+ };
375
+ fontStyle: {
376
+ type: "string";
377
+ };
378
+ };
379
+ };
380
+ statusFontSize: {
381
+ type: "number";
382
+ scope: "layout";
383
+ title: string;
384
+ display: {
385
+ type: string;
386
+ };
387
+ };
388
+ statusLineHeight: {
389
+ type: "number";
390
+ scope: "layout";
391
+ title: string;
392
+ display: {
393
+ type: string;
394
+ };
395
+ };
396
+ statusLetterSpacing: {
397
+ type: "number";
398
+ scope: "layout";
399
+ title: string;
400
+ display: {
401
+ type: string;
402
+ };
403
+ };
404
+ statusWordSpacing: {
405
+ type: "number";
406
+ scope: "layout";
407
+ title: string;
408
+ display: {
409
+ type: string;
410
+ };
411
+ };
412
+ statusTextAppearance: {
413
+ type: "object";
414
+ scope: "layout";
415
+ title: string;
416
+ display: {
417
+ type: string;
418
+ };
419
+ };
420
+ };
421
+ defaults: {
422
+ fields: ({
423
+ name: string;
424
+ type: "email";
425
+ placeholder: string;
426
+ label: string;
427
+ isRequired: boolean;
428
+ error: string;
429
+ } | {
430
+ name: string;
431
+ type: "text";
432
+ placeholder: string;
433
+ label: string;
434
+ isRequired: boolean;
435
+ error: string;
436
+ } | {
437
+ name: string;
438
+ type: "phone";
439
+ placeholder: string;
440
+ label: string;
441
+ isRequired: boolean;
442
+ error: string;
443
+ })[];
444
+ fieldsToShow: number;
445
+ buttonLabel: string;
446
+ buttonIcon: {
447
+ mode: string;
448
+ icon: string;
449
+ };
450
+ fontFamily: string;
451
+ strokeColor: string;
452
+ inputColor: string;
453
+ inputTextColor: string;
454
+ placeholderColor: string;
455
+ buttonColor: string;
456
+ buttonTextColor: string;
457
+ errorColor: string;
458
+ successColor: string;
459
+ successMessage: string;
460
+ errorMessage: string;
461
+ stateOverrides: {
462
+ hover: {
463
+ buttonColor: string;
464
+ };
465
+ };
466
+ inputFontSettings: {
467
+ fontWeight: number;
468
+ fontStyle: string;
469
+ };
470
+ inputLetterSpacing: number;
471
+ inputWordSpacing: number;
472
+ inputTextAppearance: {
473
+ textTransform: string;
474
+ textDecoration: string;
475
+ fontVariant: string;
476
+ };
477
+ buttonFontSettings: {
478
+ fontWeight: number;
479
+ fontStyle: string;
480
+ };
481
+ buttonLetterSpacing: number;
482
+ buttonWordSpacing: number;
483
+ buttonTextAppearance: {
484
+ textTransform: string;
485
+ textDecoration: string;
486
+ fontVariant: string;
487
+ };
488
+ statusFontSettings: {
489
+ fontWeight: number;
490
+ fontStyle: string;
491
+ };
492
+ statusLetterSpacing: number;
493
+ statusWordSpacing: number;
494
+ statusTextAppearance: {
495
+ textTransform: string;
496
+ textDecoration: string;
497
+ fontVariant: string;
498
+ };
499
+ };
500
+ layoutDefaults: {
501
+ m: {
502
+ minHeight: number;
503
+ iconMaxWidth: number;
504
+ stroke: number;
505
+ corners: number;
506
+ buttonPadding: {
507
+ top: number;
508
+ right: number;
509
+ bottom: number;
510
+ left: number;
511
+ };
512
+ inputPadding: {
513
+ top: number;
514
+ right: number;
515
+ bottom: number;
516
+ left: number;
517
+ };
518
+ inputFontSize: number;
519
+ inputLineHeight: number;
520
+ buttonFontSize: number;
521
+ buttonLineHeight: number;
522
+ statusFontSize: number;
523
+ statusLineHeight: number;
524
+ };
525
+ d: {
526
+ minHeight: number;
527
+ iconMaxWidth: number;
528
+ stroke: number;
529
+ corners: number;
530
+ buttonPadding: {
531
+ right: number;
532
+ left: number;
533
+ top: number;
534
+ bottom: number;
535
+ };
536
+ inputPadding: {
537
+ top: number;
538
+ right: number;
539
+ bottom: number;
540
+ left: number;
541
+ };
542
+ inputFontSize: number;
543
+ inputLineHeight: number;
544
+ buttonFontSize: number;
545
+ buttonLineHeight: number;
546
+ statusFontSize: number;
547
+ statusLineHeight: number;
548
+ };
549
+ };
550
+ displayRules: ({
551
+ if: {
552
+ name: string;
553
+ value: number;
554
+ };
555
+ then: {
556
+ name: string;
557
+ value: boolean;
558
+ };
559
+ } | {
560
+ if: {
561
+ name: string;
562
+ value: string;
563
+ };
564
+ then: {
565
+ name: string;
566
+ value: boolean;
567
+ };
568
+ })[];
569
+ };
570
+ panels: ({
571
+ id: string;
572
+ icon: string;
573
+ title: string;
574
+ tooltip: string;
575
+ layout: (string | {
576
+ type: "row";
577
+ items: string[];
578
+ } | {
579
+ type: "row";
580
+ items: ({
581
+ type: "group";
582
+ title: string;
583
+ items: string[];
584
+ options?: undefined;
585
+ } | {
586
+ type: "switcher";
587
+ title: string;
588
+ options: {
589
+ Input: string[];
590
+ Button: string[];
591
+ };
592
+ items?: undefined;
593
+ })[];
594
+ })[];
595
+ } | {
596
+ id: string;
597
+ icon: string;
598
+ title: string;
599
+ tooltip: string;
600
+ layout: (string | {
601
+ type: "group";
602
+ title: string;
603
+ items: (string | {
604
+ type: "row";
605
+ items: string[];
606
+ })[];
607
+ })[];
608
+ })[];
609
+ paletteBookmark: {
610
+ items: ("strokeColor" | "inputColor" | "inputTextColor" | "placeholderColor" | "buttonColor" | "buttonTextColor" | "successColor" | "errorColor")[];
611
+ panelIds: string[];
612
+ stateItems: {
613
+ default: string[];
614
+ hover: string[];
615
+ focus: string[];
616
+ filled: string[];
617
+ success: string[];
618
+ error: string[];
619
+ };
620
+ };
621
+ allowedPlugins: string[];
622
+ states: string[];
623
+ };
27
624
  sourceCode: string;
28
625
  };
@@ -0,0 +1,77 @@
1
+ import { CommonComponentProps } from '../props';
2
+ type TestimonialsProps = {
3
+ settings: TestimonialsSettings;
4
+ content?: TestimonialsItem[];
5
+ isEditor?: boolean;
6
+ } & CommonComponentProps;
7
+ export declare const Testimonials: ({ settings, content, isEditor }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
8
+ export type TestimonialsItem = {
9
+ image?: {
10
+ url?: string;
11
+ name?: string;
12
+ objectFit?: 'cover' | 'contain';
13
+ };
14
+ icon?: {
15
+ url?: string;
16
+ name?: string;
17
+ objectFit?: 'cover' | 'contain';
18
+ };
19
+ text: any[];
20
+ caption: any[];
21
+ };
22
+ type Padding = {
23
+ top: number;
24
+ right: number;
25
+ bottom: number;
26
+ left: number;
27
+ };
28
+ type TestimonialsSettings = {
29
+ type: 'A' | 'B';
30
+ autoplay: 'on' | 'off';
31
+ speed: number;
32
+ direction: 'left' | 'right';
33
+ pauseOnHover: 'on' | 'off';
34
+ gap: number;
35
+ cardWidth: number;
36
+ cardHeight: number;
37
+ corners: number;
38
+ stroke: number;
39
+ strokeColor: string;
40
+ bgColor: string;
41
+ padding: Padding;
42
+ iconMarginTop: number;
43
+ iconWidth: number;
44
+ textMarginTop: number;
45
+ textMinHeight: number;
46
+ captionMarginTop: number;
47
+ styles: TestimonialsStyles;
48
+ };
49
+ type CaptionStyles = {
50
+ fontSettings: {
51
+ fontFamily: string;
52
+ fontWeight: number;
53
+ fontStyle: string;
54
+ };
55
+ widthSettings: {
56
+ width: number;
57
+ sizing: 'auto' | 'manual';
58
+ };
59
+ letterSpacing: number;
60
+ textAlign: 'left' | 'center' | 'right';
61
+ wordSpacing: number;
62
+ fontSizeLineHeight: {
63
+ fontSize: number;
64
+ lineHeight: number;
65
+ };
66
+ textAppearance: {
67
+ textTransform: 'none' | 'uppercase' | 'lowercase';
68
+ textDecoration: 'none' | 'underline';
69
+ fontVariant: 'normal' | 'small-caps';
70
+ };
71
+ color: string;
72
+ };
73
+ type TestimonialsStyles = {
74
+ text: CaptionStyles;
75
+ caption: CaptionStyles;
76
+ };
77
+ export {};