@cntrl-site/components 1.0.47 → 1.0.48

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