@cntrl-site/components 1.0.69-alpha.4 → 1.0.69-alpha.5
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.
- package/dist/Components/Burger/Burger.d.ts +33 -32
- package/dist/Components/Burger/BurgerComponent.d.ts +170 -135
- package/dist/Components/props.d.ts +5 -0
- package/dist/Components/utils/index.d.ts +3 -0
- package/dist/Components/utils/panelAvailability.d.ts +13 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +715 -978
- package/dist/index.mjs +8254 -8570
- package/dist/panelAvailability-CgSic84c.mjs +126 -0
- package/dist/panelAvailability-D8c7cdbu.js +1 -0
- package/dist/types/SchemaV1.d.ts +7 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +12 -8
- package/package.json +1 -1
- package/dist/readTestimonialTextMeasure-Bgp0Kf4S.js +0 -1
- package/dist/readTestimonialTextMeasure-C1WvcXUk.mjs +0 -63
|
@@ -26,15 +26,6 @@ export declare const BurgerComponent: {
|
|
|
26
26
|
settings: {
|
|
27
27
|
sizing: string;
|
|
28
28
|
properties: {
|
|
29
|
-
type: {
|
|
30
|
-
type: "string";
|
|
31
|
-
scope: "layout";
|
|
32
|
-
title: string;
|
|
33
|
-
display: {
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
|
-
enum: string[];
|
|
37
|
-
};
|
|
38
29
|
link: {
|
|
39
30
|
type: "array";
|
|
40
31
|
scope: "common";
|
|
@@ -113,6 +104,36 @@ export declare const BurgerComponent: {
|
|
|
113
104
|
min: number;
|
|
114
105
|
max: number;
|
|
115
106
|
};
|
|
107
|
+
logoPosition: {
|
|
108
|
+
type: "string";
|
|
109
|
+
scope: "layout";
|
|
110
|
+
title: string;
|
|
111
|
+
display: {
|
|
112
|
+
type: string;
|
|
113
|
+
enum: string[];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
compactLogoPosition: {
|
|
117
|
+
type: "string";
|
|
118
|
+
scope: "layout";
|
|
119
|
+
title: string;
|
|
120
|
+
display: {
|
|
121
|
+
type: string;
|
|
122
|
+
enum: string[];
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
logoColor: {
|
|
126
|
+
type: "string";
|
|
127
|
+
scope: "common";
|
|
128
|
+
title: string;
|
|
129
|
+
titleByState: {
|
|
130
|
+
default: string;
|
|
131
|
+
hover: string;
|
|
132
|
+
};
|
|
133
|
+
display: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
116
137
|
panelHeight: {
|
|
117
138
|
type: "number";
|
|
118
139
|
scope: "layout";
|
|
@@ -123,7 +144,7 @@ export declare const BurgerComponent: {
|
|
|
123
144
|
min: number;
|
|
124
145
|
max: number;
|
|
125
146
|
};
|
|
126
|
-
|
|
147
|
+
backgroundColor: {
|
|
127
148
|
type: "string";
|
|
128
149
|
scope: "common";
|
|
129
150
|
title: string;
|
|
@@ -135,6 +156,10 @@ export declare const BurgerComponent: {
|
|
|
135
156
|
type: "string";
|
|
136
157
|
scope: "common";
|
|
137
158
|
title: string;
|
|
159
|
+
titleByState: {
|
|
160
|
+
default: string;
|
|
161
|
+
hover: string;
|
|
162
|
+
};
|
|
138
163
|
display: {
|
|
139
164
|
type: string;
|
|
140
165
|
};
|
|
@@ -170,35 +195,55 @@ export declare const BurgerComponent: {
|
|
|
170
195
|
type: string;
|
|
171
196
|
};
|
|
172
197
|
};
|
|
173
|
-
|
|
198
|
+
compactIconColor: {
|
|
199
|
+
type: "string";
|
|
200
|
+
scope: "common";
|
|
201
|
+
title: string;
|
|
202
|
+
titleByState: {
|
|
203
|
+
compact: string;
|
|
204
|
+
'compact-hover': string;
|
|
205
|
+
};
|
|
206
|
+
display: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
compactCloseButtonColor: {
|
|
174
211
|
type: "string";
|
|
175
212
|
scope: "common";
|
|
176
213
|
title: string;
|
|
214
|
+
titleByState: {
|
|
215
|
+
compact: string;
|
|
216
|
+
'compact-hover': string;
|
|
217
|
+
};
|
|
177
218
|
display: {
|
|
178
219
|
type: string;
|
|
179
220
|
};
|
|
180
221
|
};
|
|
181
|
-
|
|
222
|
+
compactLinkColor: {
|
|
182
223
|
type: "string";
|
|
183
224
|
scope: "common";
|
|
184
225
|
title: string;
|
|
226
|
+
titleByState: {
|
|
227
|
+
compact: string;
|
|
228
|
+
'compact-hover': string;
|
|
229
|
+
};
|
|
185
230
|
display: {
|
|
186
231
|
type: string;
|
|
187
232
|
};
|
|
188
233
|
};
|
|
189
|
-
|
|
234
|
+
compactLogoColor: {
|
|
190
235
|
type: "string";
|
|
191
236
|
scope: "common";
|
|
192
237
|
title: string;
|
|
193
238
|
titleByState: {
|
|
194
|
-
|
|
195
|
-
'
|
|
239
|
+
compact: string;
|
|
240
|
+
'compact-hover': string;
|
|
196
241
|
};
|
|
197
242
|
display: {
|
|
198
243
|
type: string;
|
|
199
244
|
};
|
|
200
245
|
};
|
|
201
|
-
|
|
246
|
+
compactBackgroundColor: {
|
|
202
247
|
type: "string";
|
|
203
248
|
scope: "common";
|
|
204
249
|
title: string;
|
|
@@ -225,8 +270,8 @@ export declare const BurgerComponent: {
|
|
|
225
270
|
titleByState: {
|
|
226
271
|
default: string;
|
|
227
272
|
hover: string;
|
|
228
|
-
|
|
229
|
-
'
|
|
273
|
+
compact: string;
|
|
274
|
+
'compact-hover': string;
|
|
230
275
|
open: string;
|
|
231
276
|
'open-hover': string;
|
|
232
277
|
};
|
|
@@ -234,15 +279,19 @@ export declare const BurgerComponent: {
|
|
|
234
279
|
type: string;
|
|
235
280
|
};
|
|
236
281
|
};
|
|
237
|
-
|
|
282
|
+
openLogoColor: {
|
|
238
283
|
type: "string";
|
|
239
284
|
scope: "common";
|
|
240
285
|
title: string;
|
|
286
|
+
titleByState: {
|
|
287
|
+
open: string;
|
|
288
|
+
'open-hover': string;
|
|
289
|
+
};
|
|
241
290
|
display: {
|
|
242
291
|
type: string;
|
|
243
292
|
};
|
|
244
293
|
};
|
|
245
|
-
|
|
294
|
+
menuBackgroundColor: {
|
|
246
295
|
type: "string";
|
|
247
296
|
scope: "common";
|
|
248
297
|
title: string;
|
|
@@ -250,7 +299,7 @@ export declare const BurgerComponent: {
|
|
|
250
299
|
type: string;
|
|
251
300
|
};
|
|
252
301
|
};
|
|
253
|
-
|
|
302
|
+
overlayColor: {
|
|
254
303
|
type: "string";
|
|
255
304
|
scope: "common";
|
|
256
305
|
title: string;
|
|
@@ -258,24 +307,28 @@ export declare const BurgerComponent: {
|
|
|
258
307
|
type: string;
|
|
259
308
|
};
|
|
260
309
|
};
|
|
261
|
-
|
|
310
|
+
closeButtonColor: {
|
|
262
311
|
type: "string";
|
|
263
|
-
scope: "
|
|
312
|
+
scope: "common";
|
|
264
313
|
title: string;
|
|
314
|
+
titleByState: {
|
|
315
|
+
default: string;
|
|
316
|
+
hover: string;
|
|
317
|
+
open: string;
|
|
318
|
+
'open-hover': string;
|
|
319
|
+
};
|
|
265
320
|
display: {
|
|
266
321
|
type: string;
|
|
267
|
-
enum: string[];
|
|
268
322
|
};
|
|
269
323
|
};
|
|
270
|
-
|
|
271
|
-
type: "
|
|
324
|
+
effect: {
|
|
325
|
+
type: "string";
|
|
272
326
|
scope: "layout";
|
|
273
327
|
title: string;
|
|
274
328
|
display: {
|
|
275
329
|
type: string;
|
|
330
|
+
enum: string[];
|
|
276
331
|
};
|
|
277
|
-
min: number;
|
|
278
|
-
max: number;
|
|
279
332
|
};
|
|
280
333
|
textWidth: {
|
|
281
334
|
type: "number";
|
|
@@ -306,33 +359,6 @@ export declare const BurgerComponent: {
|
|
|
306
359
|
enum: ("left-top" | "center-top" | "right-top" | "left-center" | "center-center" | "right-center" | "left-bottom" | "center-bottom" | "right-bottom")[];
|
|
307
360
|
};
|
|
308
361
|
};
|
|
309
|
-
horizontalAlign: {
|
|
310
|
-
type: "string";
|
|
311
|
-
scope: "layout";
|
|
312
|
-
title: string;
|
|
313
|
-
display: {
|
|
314
|
-
type: string;
|
|
315
|
-
enum: string[];
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
verticalAlign: {
|
|
319
|
-
type: "string";
|
|
320
|
-
scope: "layout";
|
|
321
|
-
title: string;
|
|
322
|
-
display: {
|
|
323
|
-
type: string;
|
|
324
|
-
enum: string[];
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
textOrientation: {
|
|
328
|
-
type: "string";
|
|
329
|
-
scope: "layout";
|
|
330
|
-
title: string;
|
|
331
|
-
display: {
|
|
332
|
-
type: string;
|
|
333
|
-
enum: string[];
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
362
|
stateOverrides: {
|
|
337
363
|
type: "object";
|
|
338
364
|
scope: "common";
|
|
@@ -420,7 +446,7 @@ export declare const BurgerComponent: {
|
|
|
420
446
|
type: "range-control";
|
|
421
447
|
};
|
|
422
448
|
};
|
|
423
|
-
|
|
449
|
+
compactLogoMaxHeight: {
|
|
424
450
|
type: "number";
|
|
425
451
|
scope: "layout";
|
|
426
452
|
title: string;
|
|
@@ -430,7 +456,7 @@ export declare const BurgerComponent: {
|
|
|
430
456
|
min: number;
|
|
431
457
|
max: number;
|
|
432
458
|
};
|
|
433
|
-
|
|
459
|
+
compactPanelHeight: {
|
|
434
460
|
type: "number";
|
|
435
461
|
scope: "layout";
|
|
436
462
|
title: string;
|
|
@@ -440,7 +466,7 @@ export declare const BurgerComponent: {
|
|
|
440
466
|
min: number;
|
|
441
467
|
max: number;
|
|
442
468
|
};
|
|
443
|
-
|
|
469
|
+
compactIconSize: {
|
|
444
470
|
type: "number";
|
|
445
471
|
scope: "layout";
|
|
446
472
|
title: string;
|
|
@@ -450,7 +476,7 @@ export declare const BurgerComponent: {
|
|
|
450
476
|
min: number;
|
|
451
477
|
max: number;
|
|
452
478
|
};
|
|
453
|
-
|
|
479
|
+
compactIconAnimation: {
|
|
454
480
|
type: "string";
|
|
455
481
|
scope: "layout";
|
|
456
482
|
title: string;
|
|
@@ -459,7 +485,7 @@ export declare const BurgerComponent: {
|
|
|
459
485
|
enum: string[];
|
|
460
486
|
};
|
|
461
487
|
};
|
|
462
|
-
|
|
488
|
+
compactNavTextWidth: {
|
|
463
489
|
type: "number";
|
|
464
490
|
scope: "layout";
|
|
465
491
|
title: string;
|
|
@@ -469,7 +495,7 @@ export declare const BurgerComponent: {
|
|
|
469
495
|
min: number;
|
|
470
496
|
max: number;
|
|
471
497
|
};
|
|
472
|
-
|
|
498
|
+
compactNavGap: {
|
|
473
499
|
type: "number";
|
|
474
500
|
scope: "layout";
|
|
475
501
|
title: string;
|
|
@@ -480,7 +506,7 @@ export declare const BurgerComponent: {
|
|
|
480
506
|
visible: boolean;
|
|
481
507
|
};
|
|
482
508
|
};
|
|
483
|
-
|
|
509
|
+
compactNavPaddingLeft: {
|
|
484
510
|
type: "number";
|
|
485
511
|
scope: "layout";
|
|
486
512
|
title: string;
|
|
@@ -491,7 +517,7 @@ export declare const BurgerComponent: {
|
|
|
491
517
|
visible: boolean;
|
|
492
518
|
};
|
|
493
519
|
};
|
|
494
|
-
|
|
520
|
+
compactNavPaddingRight: {
|
|
495
521
|
type: "number";
|
|
496
522
|
scope: "layout";
|
|
497
523
|
title: string;
|
|
@@ -518,22 +544,26 @@ export declare const BurgerComponent: {
|
|
|
518
544
|
mode: string;
|
|
519
545
|
icon: null;
|
|
520
546
|
};
|
|
521
|
-
|
|
547
|
+
backgroundColor: string;
|
|
548
|
+
logoColor: string;
|
|
522
549
|
iconColor: string;
|
|
523
550
|
linkColor: string;
|
|
524
551
|
openLinkColor: string;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
552
|
+
compactIconColor: string;
|
|
553
|
+
compactCloseButtonColor: string;
|
|
554
|
+
compactLinkColor: string;
|
|
555
|
+
compactLogoColor: string;
|
|
556
|
+
compactBackgroundColor: string;
|
|
529
557
|
socialIconColor: string;
|
|
558
|
+
openLogoColor: string;
|
|
530
559
|
menuBackgroundColor: string;
|
|
531
560
|
overlayColor: string;
|
|
532
561
|
closeButtonColor: string;
|
|
533
562
|
effect: string;
|
|
534
563
|
iconAnimation: string;
|
|
564
|
+
logoPosition: string;
|
|
565
|
+
compactLogoPosition: string;
|
|
535
566
|
position: string;
|
|
536
|
-
textOrientation: string;
|
|
537
567
|
fontFamily: string;
|
|
538
568
|
fontSettings: {
|
|
539
569
|
fontWeight: number;
|
|
@@ -546,49 +576,41 @@ export declare const BurgerComponent: {
|
|
|
546
576
|
fontStyle: string;
|
|
547
577
|
};
|
|
548
578
|
openTextAlign: string;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
579
|
+
compactIconAnimation: string;
|
|
580
|
+
compactFontFamily: string;
|
|
581
|
+
compactFontSettings: {
|
|
552
582
|
fontWeight: number;
|
|
553
583
|
fontStyle: string;
|
|
554
584
|
};
|
|
555
|
-
|
|
585
|
+
compactTextAlign: string;
|
|
556
586
|
stateOverrides: {
|
|
557
587
|
hover: {
|
|
558
588
|
linkColor: string;
|
|
559
589
|
socialIconColor: string;
|
|
590
|
+
iconColor: string;
|
|
591
|
+
logoColor: string;
|
|
592
|
+
closeButtonColor: string;
|
|
560
593
|
};
|
|
561
594
|
};
|
|
562
595
|
};
|
|
563
|
-
displayRules:
|
|
564
|
-
if: {
|
|
565
|
-
name: string;
|
|
566
|
-
value: string;
|
|
567
|
-
isNotEqual?: undefined;
|
|
568
|
-
};
|
|
569
|
-
then: {
|
|
570
|
-
name: string;
|
|
571
|
-
value: boolean;
|
|
572
|
-
};
|
|
573
|
-
} | {
|
|
596
|
+
displayRules: {
|
|
574
597
|
if: {
|
|
575
598
|
name: string;
|
|
576
599
|
value: string;
|
|
577
|
-
isNotEqual: true;
|
|
578
600
|
};
|
|
579
601
|
then: {
|
|
580
602
|
name: string;
|
|
581
603
|
value: boolean;
|
|
582
604
|
};
|
|
583
|
-
}
|
|
605
|
+
}[];
|
|
584
606
|
layoutDefaults: {
|
|
585
607
|
m: {
|
|
586
|
-
type: string;
|
|
587
608
|
position: string;
|
|
588
609
|
panelHeight: number;
|
|
589
610
|
logoMaxHeight: number;
|
|
611
|
+
logoPosition: string;
|
|
612
|
+
compactLogoPosition: string;
|
|
590
613
|
iconSize: number;
|
|
591
|
-
menuWidth: number;
|
|
592
614
|
textWidth: number;
|
|
593
615
|
navTextWidth: number;
|
|
594
616
|
gap: number;
|
|
@@ -617,30 +639,30 @@ export declare const BurgerComponent: {
|
|
|
617
639
|
textDecoration: string;
|
|
618
640
|
fontVariant: string;
|
|
619
641
|
};
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
642
|
+
compactPanelHeight: number;
|
|
643
|
+
compactLogoMaxHeight: number;
|
|
644
|
+
compactIconSize: number;
|
|
645
|
+
compactNavTextWidth: number;
|
|
646
|
+
compactNavGap: number;
|
|
647
|
+
compactNavPaddingLeft: number;
|
|
648
|
+
compactNavPaddingRight: number;
|
|
649
|
+
compactFontSize: number;
|
|
650
|
+
compactLineHeight: number;
|
|
651
|
+
compactLetterSpacing: number;
|
|
652
|
+
compactWordSpacing: number;
|
|
653
|
+
compactTextAppearance: {
|
|
632
654
|
textTransform: string;
|
|
633
655
|
textDecoration: string;
|
|
634
656
|
fontVariant: string;
|
|
635
657
|
};
|
|
636
658
|
};
|
|
637
659
|
t: {
|
|
638
|
-
type: string;
|
|
639
660
|
position: string;
|
|
640
661
|
panelHeight: number;
|
|
641
662
|
logoMaxHeight: number;
|
|
663
|
+
logoPosition: string;
|
|
664
|
+
compactLogoPosition: string;
|
|
642
665
|
iconSize: number;
|
|
643
|
-
menuWidth: number;
|
|
644
666
|
textWidth: number;
|
|
645
667
|
navTextWidth: number;
|
|
646
668
|
gap: number;
|
|
@@ -669,30 +691,30 @@ export declare const BurgerComponent: {
|
|
|
669
691
|
textDecoration: string;
|
|
670
692
|
fontVariant: string;
|
|
671
693
|
};
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
694
|
+
compactPanelHeight: number;
|
|
695
|
+
compactLogoMaxHeight: number;
|
|
696
|
+
compactIconSize: number;
|
|
697
|
+
compactNavTextWidth: number;
|
|
698
|
+
compactNavGap: number;
|
|
699
|
+
compactNavPaddingLeft: number;
|
|
700
|
+
compactNavPaddingRight: number;
|
|
701
|
+
compactFontSize: number;
|
|
702
|
+
compactLineHeight: number;
|
|
703
|
+
compactLetterSpacing: number;
|
|
704
|
+
compactWordSpacing: number;
|
|
705
|
+
compactTextAppearance: {
|
|
684
706
|
textTransform: string;
|
|
685
707
|
textDecoration: string;
|
|
686
708
|
fontVariant: string;
|
|
687
709
|
};
|
|
688
710
|
};
|
|
689
711
|
d: {
|
|
690
|
-
type: string;
|
|
691
712
|
position: string;
|
|
692
713
|
panelHeight: number;
|
|
693
714
|
logoMaxHeight: number;
|
|
715
|
+
logoPosition: string;
|
|
716
|
+
compactLogoPosition: string;
|
|
694
717
|
iconSize: number;
|
|
695
|
-
menuWidth: number;
|
|
696
718
|
textWidth: number;
|
|
697
719
|
navTextWidth: number;
|
|
698
720
|
gap: number;
|
|
@@ -723,28 +745,28 @@ export declare const BurgerComponent: {
|
|
|
723
745
|
fontVariant: string;
|
|
724
746
|
};
|
|
725
747
|
openTextAlign: string;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
748
|
+
compactPanelHeight: number;
|
|
749
|
+
compactLogoMaxHeight: number;
|
|
750
|
+
compactIconSize: number;
|
|
751
|
+
compactNavTextWidth: number;
|
|
752
|
+
compactNavGap: number;
|
|
753
|
+
compactNavPaddingLeft: number;
|
|
754
|
+
compactNavPaddingRight: number;
|
|
755
|
+
compactFontSize: number;
|
|
756
|
+
compactLineHeight: number;
|
|
757
|
+
compactLetterSpacing: number;
|
|
758
|
+
compactWordSpacing: number;
|
|
759
|
+
compactTextAppearance: {
|
|
738
760
|
textTransform: string;
|
|
739
761
|
textDecoration: string;
|
|
740
762
|
fontVariant: string;
|
|
741
763
|
};
|
|
742
|
-
|
|
764
|
+
compactTextAlign: string;
|
|
743
765
|
};
|
|
744
766
|
};
|
|
745
767
|
layout: string[];
|
|
746
768
|
};
|
|
747
|
-
panels: {
|
|
769
|
+
panels: ({
|
|
748
770
|
id: string;
|
|
749
771
|
icon: string;
|
|
750
772
|
title: string;
|
|
@@ -753,15 +775,28 @@ export declare const BurgerComponent: {
|
|
|
753
775
|
type: "row";
|
|
754
776
|
items: string[];
|
|
755
777
|
})[];
|
|
756
|
-
|
|
778
|
+
availableWhen?: undefined;
|
|
779
|
+
} | {
|
|
780
|
+
id: string;
|
|
781
|
+
icon: string;
|
|
782
|
+
title: string;
|
|
783
|
+
tooltip: string;
|
|
784
|
+
layout: (string | {
|
|
785
|
+
type: "row";
|
|
786
|
+
items: string[];
|
|
787
|
+
})[];
|
|
788
|
+
availableWhen: {
|
|
789
|
+
navigationPosition: string[];
|
|
790
|
+
};
|
|
791
|
+
})[];
|
|
757
792
|
paletteBookmark: {
|
|
758
|
-
items: ("iconColor" | "linkColor" | "closeButtonColor" | "
|
|
793
|
+
items: ("backgroundColor" | "iconColor" | "linkColor" | "closeButtonColor" | "logoColor")[];
|
|
759
794
|
panelIds: string[];
|
|
760
795
|
stateItems: {
|
|
761
796
|
default: string[];
|
|
762
797
|
hover: string[];
|
|
763
|
-
|
|
764
|
-
'
|
|
798
|
+
compact: string[];
|
|
799
|
+
'compact-hover': string[];
|
|
765
800
|
open: string[];
|
|
766
801
|
'open-hover': string[];
|
|
767
802
|
};
|
|
@@ -785,6 +820,6 @@ export declare const BurgerComponent: {
|
|
|
785
820
|
fontRelations: {
|
|
786
821
|
fontSettings: string;
|
|
787
822
|
openFontSettings: string;
|
|
788
|
-
|
|
823
|
+
compactFontSettings: string;
|
|
789
824
|
};
|
|
790
825
|
};
|
|
@@ -5,4 +5,9 @@ export type CommonComponentProps = {
|
|
|
5
5
|
* Omitted on the published site unless a wrapper needs to pin a state.
|
|
6
6
|
*/
|
|
7
7
|
currentState?: string | null;
|
|
8
|
+
/**
|
|
9
|
+
* State panel ids that must not become the visual state.
|
|
10
|
+
* Derived from schema `availableWhen` and the current host context.
|
|
11
|
+
*/
|
|
12
|
+
unavailableStates?: string[];
|
|
8
13
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export { scalingValue } from './scalingValue';
|
|
2
2
|
export { buildColorVars } from './buildColorVars';
|
|
3
|
+
export { getColorAlpha } from './getColorAlpha';
|
|
3
4
|
export { getFormFieldValidationError, isValidEmailFormat, isValidPhoneFormat, } from './formFieldValidation';
|
|
4
5
|
export type { ValidatableFormField } from './formFieldValidation';
|
|
5
6
|
export { useScopedStyles } from './useScopedStyles';
|
|
6
7
|
export type { ScopedStyles } from './useScopedStyles';
|
|
7
8
|
export type { CommonComponentProps } from '../props';
|
|
8
9
|
export { readTestimonialTextMeasure } from './readTestimonialTextMeasure';
|
|
10
|
+
export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './panelAvailability';
|
|
11
|
+
export type { PanelAvailabilityContext } from './panelAvailability';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type PanelAvailabilityContext = Record<string, string | undefined>;
|
|
2
|
+
type AvailabilityPanel = {
|
|
3
|
+
id: string;
|
|
4
|
+
availableWhen?: Record<string, string[]>;
|
|
5
|
+
};
|
|
6
|
+
type AvailabilitySchema = {
|
|
7
|
+
panels?: AvailabilityPanel[];
|
|
8
|
+
statePanels?: string[] | null;
|
|
9
|
+
};
|
|
10
|
+
export declare function isPanelAvailable(panel: AvailabilityPanel | undefined, context: PanelAvailabilityContext): boolean;
|
|
11
|
+
export declare function getAvailableStatePanels(schema: AvailabilitySchema | undefined, context: PanelAvailabilityContext): string[] | null;
|
|
12
|
+
export declare function getUnavailableStates(schema: AvailabilitySchema | undefined, context: PanelAvailabilityContext): string[];
|
|
13
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentSize, isSchemaV1 } from './types/Component';
|
|
2
|
-
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
2
|
+
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaPanelAvailability, SchemaDisplay } from './types/SchemaV1';
|
|
3
3
|
export { components } from './Components/components';
|
|
4
|
+
export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './Components/utils/panelAvailability';
|
|
5
|
+
export type { PanelAvailabilityContext } from './Components/utils/panelAvailability';
|