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