@cntrl-site/components 1.0.42 → 1.0.43-alpha.0

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,68 @@
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' | 'blinds' | '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
+ iconScale?: number;
30
+ iconSize?: number;
31
+ iconColor?: string;
32
+ dimensions?: boolean;
33
+ padding?: Padding;
34
+ cornerRadius?: CornerRadius;
35
+ boxShadow?: BoxShadow;
36
+ boxShadowColor?: string;
37
+ stroke?: number;
38
+ backgroundColor?: string;
39
+ textColor?: string;
40
+ borderColor?: string;
41
+ hoverEffect?: HoverEffect;
42
+ fontFamily?: string;
43
+ fontSettings?: {
44
+ fontWeight?: number;
45
+ fontStyle?: string;
46
+ };
47
+ fontSize?: number;
48
+ lineHeight?: number;
49
+ letterSpacing?: number;
50
+ wordSpacing?: number;
51
+ textAppearance?: {
52
+ textTransform?: string;
53
+ textDecoration?: string;
54
+ fontVariant?: string;
55
+ };
56
+ stateOverrides?: Record<string, Partial<Record<ColorKeys, string>>>;
57
+ minWidth?: number;
58
+ minHeight?: number;
59
+ };
60
+ type ColorKeys = 'backgroundColor' | 'textColor' | 'borderColor' | 'iconColor' | 'boxShadowColor';
61
+ type SimpleButtonProps = {
62
+ settings: SimpleButtonSettings;
63
+ isEditor?: boolean;
64
+ isPreviewMode?: boolean;
65
+ activeEvent?: string;
66
+ } & CommonComponentProps;
67
+ export declare function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent }: SimpleButtonProps): import("react/jsx-runtime").JSX.Element;
68
+ export {};
@@ -0,0 +1,483 @@
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
+ defaultSize: {
9
+ d: {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ m: {
14
+ width: number;
15
+ height: number;
16
+ };
17
+ };
18
+ schema: {
19
+ type: "object";
20
+ version: 1;
21
+ settings: {
22
+ sizing: string;
23
+ properties: {
24
+ type: {
25
+ type: "string";
26
+ scope: "layout";
27
+ title: string;
28
+ display: {
29
+ type: string;
30
+ };
31
+ enum: string[];
32
+ };
33
+ label: {
34
+ type: "string";
35
+ scope: "common";
36
+ title: string;
37
+ display: {
38
+ type: string;
39
+ };
40
+ };
41
+ icon: {
42
+ type: readonly ["string", "null"];
43
+ scope: "common";
44
+ title: string;
45
+ display: {
46
+ type: string;
47
+ visible: boolean;
48
+ };
49
+ };
50
+ alignment: {
51
+ type: "string";
52
+ scope: "layout";
53
+ title: string;
54
+ display: {
55
+ type: string;
56
+ enum: string[];
57
+ };
58
+ };
59
+ alignA: {
60
+ type: "string";
61
+ scope: "layout";
62
+ title: string;
63
+ display: {
64
+ type: string;
65
+ enum: string[];
66
+ visible: boolean;
67
+ };
68
+ };
69
+ order: {
70
+ type: "string";
71
+ scope: "layout";
72
+ title: string;
73
+ display: {
74
+ type: string;
75
+ enum: string[];
76
+ visible: boolean;
77
+ };
78
+ };
79
+ gap: {
80
+ type: "number";
81
+ scope: "layout";
82
+ title: string;
83
+ display: {
84
+ type: string;
85
+ visible: boolean;
86
+ };
87
+ min: number;
88
+ max: number;
89
+ };
90
+ iconScale: {
91
+ type: "number";
92
+ scope: "layout";
93
+ title: string;
94
+ display: {
95
+ type: string;
96
+ visible: boolean;
97
+ };
98
+ min: number;
99
+ max: number;
100
+ };
101
+ iconSize: {
102
+ type: "number";
103
+ scope: "layout";
104
+ title: string;
105
+ display: {
106
+ type: string;
107
+ visible: boolean;
108
+ };
109
+ min: number;
110
+ max: number;
111
+ };
112
+ dimensions: {
113
+ type: "boolean";
114
+ scope: "layout";
115
+ title: string;
116
+ display: {
117
+ type: string;
118
+ enum: string[];
119
+ };
120
+ };
121
+ padding: {
122
+ type: "object";
123
+ scope: "layout";
124
+ title: string;
125
+ display: {
126
+ type: string;
127
+ };
128
+ };
129
+ cornerRadius: {
130
+ type: "object";
131
+ scope: "layout";
132
+ title: string;
133
+ display: {
134
+ type: string;
135
+ };
136
+ };
137
+ boxShadow: {
138
+ type: "object";
139
+ scope: "layout";
140
+ title: string;
141
+ display: {
142
+ type: string;
143
+ step: number;
144
+ decimal: boolean;
145
+ allowNegative: boolean;
146
+ nonNegativeSides: string[];
147
+ sideLetters: {
148
+ top: string;
149
+ left: string;
150
+ right: string;
151
+ bottom: string;
152
+ };
153
+ };
154
+ };
155
+ boxShadowColor: {
156
+ type: "string";
157
+ scope: "common";
158
+ title: string;
159
+ display: {
160
+ type: string;
161
+ };
162
+ };
163
+ stroke: {
164
+ type: "number";
165
+ scope: "layout";
166
+ title: string;
167
+ display: {
168
+ type: string;
169
+ };
170
+ min: number;
171
+ max: number;
172
+ };
173
+ backgroundColor: {
174
+ type: "string";
175
+ scope: "common";
176
+ title: string;
177
+ display: {
178
+ type: string;
179
+ };
180
+ };
181
+ textColor: {
182
+ type: "string";
183
+ scope: "common";
184
+ title: string;
185
+ display: {
186
+ type: string;
187
+ };
188
+ };
189
+ borderColor: {
190
+ type: "string";
191
+ scope: "common";
192
+ title: string;
193
+ display: {
194
+ type: string;
195
+ };
196
+ };
197
+ iconColor: {
198
+ type: "string";
199
+ scope: "common";
200
+ title: string;
201
+ display: {
202
+ type: string;
203
+ };
204
+ };
205
+ stateOverrides: {
206
+ type: "object";
207
+ scope: "common";
208
+ };
209
+ hoverEffect: {
210
+ type: "string";
211
+ scope: "layout";
212
+ title: string;
213
+ display: {
214
+ type: string;
215
+ enum: string[];
216
+ };
217
+ };
218
+ fontFamily: {
219
+ type: "string";
220
+ scope: "common";
221
+ title: string;
222
+ display: {
223
+ type: string;
224
+ };
225
+ };
226
+ fontSettings: {
227
+ scope: "common";
228
+ title: string;
229
+ display: {
230
+ type: string;
231
+ };
232
+ type: "object";
233
+ properties: {
234
+ fontWeight: {
235
+ type: "number";
236
+ };
237
+ fontStyle: {
238
+ type: "string";
239
+ };
240
+ };
241
+ };
242
+ fontSize: {
243
+ type: "number";
244
+ scope: "layout";
245
+ title: string;
246
+ display: {
247
+ type: string;
248
+ };
249
+ };
250
+ lineHeight: {
251
+ type: "number";
252
+ scope: "layout";
253
+ title: string;
254
+ display: {
255
+ type: string;
256
+ };
257
+ };
258
+ letterSpacing: {
259
+ type: "number";
260
+ scope: "layout";
261
+ title: string;
262
+ display: {
263
+ type: string;
264
+ };
265
+ };
266
+ wordSpacing: {
267
+ type: "number";
268
+ scope: "layout";
269
+ title: string;
270
+ display: {
271
+ type: string;
272
+ };
273
+ };
274
+ textAppearance: {
275
+ type: "object";
276
+ scope: "layout";
277
+ title: string;
278
+ display: {
279
+ type: string;
280
+ };
281
+ };
282
+ minWidth: {
283
+ type: "number";
284
+ scope: "layout";
285
+ title: string;
286
+ display: {
287
+ type: string;
288
+ };
289
+ min: number;
290
+ max: number;
291
+ };
292
+ minHeight: {
293
+ type: "number";
294
+ scope: "layout";
295
+ title: string;
296
+ display: {
297
+ type: string;
298
+ };
299
+ min: number;
300
+ max: number;
301
+ };
302
+ };
303
+ defaults: {
304
+ type: string;
305
+ label: string;
306
+ icon: string;
307
+ alignment: string;
308
+ alignA: string;
309
+ order: string;
310
+ gap: number;
311
+ iconScale: number;
312
+ iconSize: number;
313
+ dimensions: boolean;
314
+ padding: {
315
+ top: number;
316
+ right: number;
317
+ bottom: number;
318
+ left: number;
319
+ };
320
+ cornerRadius: {
321
+ top: number;
322
+ right: number;
323
+ bottom: number;
324
+ left: number;
325
+ };
326
+ boxShadow: {
327
+ top: number;
328
+ left: number;
329
+ right: number;
330
+ bottom: number;
331
+ };
332
+ boxShadowColor: string;
333
+ stroke: number;
334
+ backgroundColor: string;
335
+ textColor: string;
336
+ borderColor: string;
337
+ iconColor: string;
338
+ hoverEffect: string;
339
+ fontFamily: string;
340
+ fontSettings: {
341
+ fontWeight: number;
342
+ fontStyle: string;
343
+ };
344
+ letterSpacing: number;
345
+ wordSpacing: number;
346
+ textAppearance: {
347
+ textTransform: string;
348
+ textDecoration: string;
349
+ fontVariant: string;
350
+ };
351
+ stateOverrides: {
352
+ hover: {
353
+ backgroundColor: string;
354
+ };
355
+ active: {
356
+ backgroundColor: string;
357
+ };
358
+ };
359
+ minWidth: number;
360
+ minHeight: number;
361
+ };
362
+ layoutDefaults: {
363
+ m: {
364
+ dimensions: boolean;
365
+ padding: {
366
+ top: number;
367
+ right: number;
368
+ bottom: number;
369
+ left: number;
370
+ };
371
+ minWidth: number;
372
+ minHeight: number;
373
+ iconSize: number;
374
+ fontSize: number;
375
+ lineHeight: number;
376
+ };
377
+ t: {
378
+ dimensions: boolean;
379
+ padding: {
380
+ top: number;
381
+ right: number;
382
+ bottom: number;
383
+ left: number;
384
+ };
385
+ minWidth: number;
386
+ minHeight: number;
387
+ iconSize: number;
388
+ fontSize: number;
389
+ lineHeight: number;
390
+ };
391
+ d: {
392
+ dimensions: boolean;
393
+ padding: {
394
+ top: number;
395
+ right: number;
396
+ bottom: number;
397
+ left: number;
398
+ };
399
+ minWidth: number;
400
+ minHeight: number;
401
+ iconSize: number;
402
+ fontSize: number;
403
+ lineHeight: number;
404
+ };
405
+ };
406
+ layout: (string | {
407
+ type: "row";
408
+ title: string;
409
+ items: string[];
410
+ })[];
411
+ displayRules: ({
412
+ if: {
413
+ name: string;
414
+ value: string;
415
+ };
416
+ then: {
417
+ name: string;
418
+ value: boolean;
419
+ };
420
+ } | {
421
+ if: {
422
+ name: string;
423
+ value: number;
424
+ };
425
+ then: {
426
+ name: string;
427
+ value: boolean;
428
+ };
429
+ } | {
430
+ if: {
431
+ name: string;
432
+ value: boolean;
433
+ };
434
+ then: {
435
+ name: string;
436
+ value: boolean;
437
+ };
438
+ })[];
439
+ };
440
+ panels: {
441
+ id: string;
442
+ icon: string;
443
+ title: string;
444
+ tooltip: string;
445
+ layout: (string | {
446
+ type: "row";
447
+ title: string;
448
+ items: string[];
449
+ })[];
450
+ }[];
451
+ paletteBookmark: {
452
+ items: ("backgroundColor" | "borderColor" | "textColor" | "iconColor" | "boxShadowColor")[];
453
+ panelIds: string[];
454
+ stateItems: {
455
+ default: string[];
456
+ hover: string[];
457
+ active: string[];
458
+ };
459
+ };
460
+ states: string[];
461
+ statesByLayout: {
462
+ m: string[];
463
+ t: string[];
464
+ };
465
+ };
466
+ sourceCode: string;
467
+ assetsPaths: {
468
+ content: never[];
469
+ parameters: {
470
+ path: string;
471
+ placeholderEnabled: boolean;
472
+ }[];
473
+ };
474
+ fontSettingsPaths: {
475
+ content: never[];
476
+ parameters: {
477
+ path: string;
478
+ }[];
479
+ };
480
+ fontRelations: {
481
+ fontSettings: string;
482
+ };
483
+ };