@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
2
|
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
3
|
type BurgerEffect = 'fade' | 'left' | 'top' | 'right' | 'bottom';
|
|
4
|
-
type BurgerType = 'a' | 'b' | 'c';
|
|
5
4
|
type BurgerLogo = {
|
|
6
5
|
mode?: 'On' | 'Off';
|
|
7
6
|
icon?: string | null;
|
|
8
7
|
};
|
|
8
|
+
type BurgerLogoPosition = 'left' | 'center' | 'right';
|
|
9
9
|
type BurgerLink = {
|
|
10
10
|
mode?: 'page' | 'url';
|
|
11
11
|
page?: string;
|
|
@@ -15,56 +15,57 @@ type BurgerLink = {
|
|
|
15
15
|
openIn?: string;
|
|
16
16
|
showIn?: string;
|
|
17
17
|
};
|
|
18
|
-
type BurgerTextOrientation = 'vertical' | 'horizontal';
|
|
19
18
|
type BurgerPosition = 'left-top' | 'center-top' | 'right-top' | 'left-center' | 'center-center' | 'right-center' | 'left-bottom' | 'center-bottom' | 'right-bottom';
|
|
20
19
|
type BurgerSettings = {
|
|
21
|
-
type?: BurgerType;
|
|
22
20
|
link?: BurgerLink[];
|
|
23
21
|
socialLink?: string[];
|
|
24
22
|
logo?: BurgerLogo | null;
|
|
25
23
|
logoMaxWidth?: number;
|
|
26
24
|
logoMaxHeight?: number;
|
|
25
|
+
logoPosition?: BurgerLogoPosition;
|
|
26
|
+
logoColor?: string;
|
|
27
27
|
panelHeight?: number;
|
|
28
|
-
|
|
28
|
+
backgroundColor?: string;
|
|
29
29
|
position?: BurgerPosition;
|
|
30
30
|
horizontalAlign?: 'left' | 'center' | 'right';
|
|
31
31
|
verticalAlign?: 'top' | 'center' | 'bottom';
|
|
32
|
-
textOrientation?: BurgerTextOrientation;
|
|
33
32
|
iconColor?: string;
|
|
34
33
|
iconSize?: number;
|
|
35
34
|
iconAnimation?: 'a';
|
|
36
35
|
linkColor?: string;
|
|
37
36
|
openLinkColor?: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
compactIconColor?: string;
|
|
38
|
+
compactCloseButtonColor?: string;
|
|
39
|
+
compactLinkColor?: string;
|
|
40
|
+
compactLogoColor?: string;
|
|
41
|
+
compactBackgroundColor?: string;
|
|
42
|
+
compactLogoMaxWidth?: number;
|
|
43
|
+
compactLogoMaxHeight?: number;
|
|
44
|
+
compactLogoPosition?: BurgerLogoPosition;
|
|
45
|
+
compactPanelHeight?: number;
|
|
46
|
+
compactIconSize?: number;
|
|
47
|
+
compactIconAnimation?: 'a';
|
|
48
|
+
compactNavTextWidth?: number;
|
|
49
|
+
compactNavGap?: number;
|
|
50
|
+
compactNavPaddingLeft?: number;
|
|
51
|
+
compactNavPaddingRight?: number;
|
|
52
|
+
compactFontFamily?: string;
|
|
53
|
+
compactFontSettings?: {
|
|
53
54
|
fontWeight?: number;
|
|
54
55
|
fontStyle?: string;
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
compactFontSize?: number;
|
|
58
|
+
compactLineHeight?: number;
|
|
59
|
+
compactLetterSpacing?: number;
|
|
60
|
+
compactWordSpacing?: number;
|
|
61
|
+
compactTextAlign?: TextStyles['textAlign'];
|
|
62
|
+
compactTextAppearance?: TextStyles['textAppearance'];
|
|
62
63
|
socialIconColor?: string;
|
|
64
|
+
openLogoColor?: string;
|
|
63
65
|
menuBackgroundColor?: string;
|
|
64
66
|
overlayColor?: string;
|
|
65
67
|
closeButtonColor?: string;
|
|
66
68
|
effect?: BurgerEffect;
|
|
67
|
-
menuWidth?: number;
|
|
68
69
|
textWidth?: number;
|
|
69
70
|
navTextWidth?: number;
|
|
70
71
|
gap?: number;
|
|
@@ -97,7 +98,7 @@ type BurgerSettings = {
|
|
|
97
98
|
openWordSpacing?: number;
|
|
98
99
|
openTextAlign?: TextStyles['textAlign'];
|
|
99
100
|
openTextAppearance?: TextStyles['textAppearance'];
|
|
100
|
-
stateOverrides?: Record<string, Partial<Record<'iconColor' | 'closeButtonColor' | 'linkColor' | 'openLinkColor' | '
|
|
101
|
+
stateOverrides?: Record<string, Partial<Record<'iconColor' | 'closeButtonColor' | 'linkColor' | 'openLinkColor' | 'compactIconColor' | 'compactCloseButtonColor' | 'compactLinkColor' | 'compactLogoColor' | 'compactBackgroundColor' | 'socialIconColor' | 'openLogoColor' | 'menuBackgroundColor' | 'overlayColor' | 'backgroundColor' | 'logoColor', string>>>;
|
|
101
102
|
};
|
|
102
103
|
type BurgerPageRef = {
|
|
103
104
|
id: string;
|
|
@@ -120,9 +121,9 @@ type BurgerProps = {
|
|
|
120
121
|
isPreviewMode?: boolean;
|
|
121
122
|
activeEvent?: string;
|
|
122
123
|
/**
|
|
123
|
-
* Editor-controlled visual state (`
|
|
124
|
-
* `statePanels` id. On the published site a navigation wrapper may pin `
|
|
125
|
-
* or `
|
|
124
|
+
* Editor-controlled visual state (`default` | `compact` | `open`), matching a
|
|
125
|
+
* `statePanels` id. On the published site a navigation wrapper may pin `default`
|
|
126
|
+
* or `compact` (e.g. the `switch` position). When omitted the component
|
|
126
127
|
* watches scroll and click itself.
|
|
127
128
|
*/
|
|
128
129
|
currentState?: string | null;
|
|
@@ -133,5 +134,5 @@ type BurgerProps = {
|
|
|
133
134
|
onUpdateSettings?: (settings: BurgerSettings) => void;
|
|
134
135
|
onOpenChange?: (isOpen: boolean) => void;
|
|
135
136
|
} & CommonComponentProps;
|
|
136
|
-
export declare function Burger({ settings: settingsProp, isEditor, isEditMode, isPreviewMode, activeEvent, currentState: currentStateProp, layoutId, pages, onLinkNavigate, onUpdateSettings, onOpenChange, }: BurgerProps): import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
export declare function Burger({ settings: settingsProp, isEditor, isEditMode, isPreviewMode, activeEvent, currentState: currentStateProp, unavailableStates, layoutId, pages, onLinkNavigate, onUpdateSettings, onOpenChange, }: BurgerProps): import("react/jsx-runtime").JSX.Element;
|
|
137
138
|
export {};
|