@cntrl-site/components 1.0.79-alpha.1 → 1.0.79-alpha.4
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 +9 -1
- package/dist/Components/Burger/BurgerComponent.d.ts +45 -23
- package/dist/index.d.ts +1 -1
- package/dist/index.js +200 -115
- package/dist/index.mjs +3931 -3782
- package/dist/types/Component.d.ts +3 -0
- package/package.json +1 -1
|
@@ -6,14 +6,22 @@ type BurgerLogo = {
|
|
|
6
6
|
icon?: string | null;
|
|
7
7
|
};
|
|
8
8
|
type BurgerLogoPosition = 'left' | 'center' | 'right';
|
|
9
|
+
type BurgerShowInValue = string | Record<string, string>;
|
|
9
10
|
type BurgerLink = {
|
|
11
|
+
link?: {
|
|
12
|
+
type?: 'url' | 'page' | 'anchor';
|
|
13
|
+
value?: string;
|
|
14
|
+
target?: string;
|
|
15
|
+
anchor?: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
};
|
|
10
18
|
mode?: 'page' | 'url';
|
|
11
19
|
page?: string;
|
|
12
20
|
url?: string;
|
|
13
21
|
label?: string;
|
|
14
22
|
anchor?: string;
|
|
15
23
|
openIn?: string;
|
|
16
|
-
showIn?:
|
|
24
|
+
showIn?: BurgerShowInValue;
|
|
17
25
|
};
|
|
18
26
|
type BurgerPosition = 'left-top' | 'center-top' | 'right-top' | 'left-center' | 'center' | 'center-center' | 'right-center' | 'left-bottom' | 'center-bottom' | 'right-bottom';
|
|
19
27
|
type BurgerSettings = {
|
|
@@ -5,6 +5,10 @@ export declare const BurgerComponent: {
|
|
|
5
5
|
name: string;
|
|
6
6
|
category: string;
|
|
7
7
|
version: number;
|
|
8
|
+
preview: {
|
|
9
|
+
type: "image";
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
8
12
|
layoutMode: "navigation";
|
|
9
13
|
defaultSize: {
|
|
10
14
|
d: {
|
|
@@ -20,6 +24,11 @@ export declare const BurgerComponent: {
|
|
|
20
24
|
height: number;
|
|
21
25
|
};
|
|
22
26
|
};
|
|
27
|
+
defaultNavigationPosition: {
|
|
28
|
+
readonly d: "switch";
|
|
29
|
+
readonly t: "switch";
|
|
30
|
+
readonly m: "stickyTop";
|
|
31
|
+
};
|
|
23
32
|
schema: {
|
|
24
33
|
type: "object";
|
|
25
34
|
version: 1;
|
|
@@ -35,28 +44,32 @@ export declare const BurgerComponent: {
|
|
|
35
44
|
items: {
|
|
36
45
|
type: "object";
|
|
37
46
|
properties: {
|
|
38
|
-
|
|
39
|
-
type: "
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
link: {
|
|
48
|
+
type: "object";
|
|
49
|
+
properties: {
|
|
50
|
+
type: {
|
|
51
|
+
type: "string";
|
|
52
|
+
enum: string[];
|
|
53
|
+
};
|
|
54
|
+
value: {
|
|
55
|
+
type: "string";
|
|
56
|
+
message: string;
|
|
57
|
+
};
|
|
58
|
+
target: {
|
|
59
|
+
type: "string";
|
|
60
|
+
enum: string[];
|
|
61
|
+
};
|
|
62
|
+
anchor: {
|
|
63
|
+
type: "string";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
48
66
|
};
|
|
49
67
|
label: {
|
|
50
68
|
type: "string";
|
|
51
69
|
};
|
|
52
|
-
anchor: {
|
|
53
|
-
type: "string";
|
|
54
|
-
};
|
|
55
|
-
openIn: {
|
|
56
|
-
type: "string";
|
|
57
|
-
};
|
|
58
70
|
showIn: {
|
|
59
71
|
type: "string";
|
|
72
|
+
scope: "layout";
|
|
60
73
|
enum: string[];
|
|
61
74
|
};
|
|
62
75
|
};
|
|
@@ -504,17 +517,21 @@ export declare const BurgerComponent: {
|
|
|
504
517
|
};
|
|
505
518
|
defaults: {
|
|
506
519
|
link: {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
520
|
+
link: {
|
|
521
|
+
type: string;
|
|
522
|
+
value: string;
|
|
523
|
+
target: string;
|
|
524
|
+
};
|
|
510
525
|
label: string;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
526
|
+
showIn: {
|
|
527
|
+
d: string;
|
|
528
|
+
t: string;
|
|
529
|
+
m: string;
|
|
530
|
+
};
|
|
514
531
|
}[];
|
|
515
532
|
logo: {
|
|
516
533
|
mode: string;
|
|
517
|
-
icon:
|
|
534
|
+
icon: string;
|
|
518
535
|
};
|
|
519
536
|
backgroundColor: string;
|
|
520
537
|
logoColor: string;
|
|
@@ -610,6 +627,7 @@ export declare const BurgerComponent: {
|
|
|
610
627
|
textDecoration: string;
|
|
611
628
|
fontVariant: string;
|
|
612
629
|
};
|
|
630
|
+
openTextAlign: string;
|
|
613
631
|
compactPanelHeight: number;
|
|
614
632
|
compactLogoMaxHeight: number;
|
|
615
633
|
compactShowIcon: string;
|
|
@@ -629,6 +647,7 @@ export declare const BurgerComponent: {
|
|
|
629
647
|
};
|
|
630
648
|
};
|
|
631
649
|
t: {
|
|
650
|
+
textAlign: string;
|
|
632
651
|
position: string;
|
|
633
652
|
panelHeight: number;
|
|
634
653
|
logoMaxHeight: number;
|
|
@@ -664,6 +683,8 @@ export declare const BurgerComponent: {
|
|
|
664
683
|
textDecoration: string;
|
|
665
684
|
fontVariant: string;
|
|
666
685
|
};
|
|
686
|
+
openTextAlign: string;
|
|
687
|
+
compactTextAlign: string;
|
|
667
688
|
compactPanelHeight: number;
|
|
668
689
|
compactLogoMaxHeight: number;
|
|
669
690
|
compactShowIcon: string;
|
|
@@ -790,6 +811,7 @@ export declare const BurgerComponent: {
|
|
|
790
811
|
content: never[];
|
|
791
812
|
parameters: {
|
|
792
813
|
path: string;
|
|
814
|
+
placeholderEnabled: boolean;
|
|
793
815
|
}[];
|
|
794
816
|
};
|
|
795
817
|
fontSettingsPaths: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentSize, isSchemaV1 } from './types/Component';
|
|
1
|
+
export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentDefaultNavigationPosition, type ComponentNavigationPosition, type ComponentSize, isSchemaV1 } from './types/Component';
|
|
2
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
4
|
export { getAvailableStatePanels, getUnavailableStates, isPanelAvailable, } from './Components/utils/panelAvailability';
|