@bobbykim/mcl-header 0.5.1 → 0.6.1

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,314 @@
1
+ import { BodyText } from '@bobbykim/manguito-theme';
2
+ import { ColorPalette } from '@bobbykim/manguito-theme';
3
+ import { ComponentOptionsMixin } from 'vue';
4
+ import { CtaTarget } from '@bobbykim/manguito-theme';
5
+ import { DefineComponent } from 'vue';
6
+ import { ExtractPropTypes } from 'vue';
7
+ import { HeadingSize } from '@bobbykim/manguito-theme';
8
+ import { PropType } from 'vue';
9
+ import { PublicProps } from 'vue';
10
+
11
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+
13
+ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
14
+
15
+ declare type __VLS_Prettify<T> = {
16
+ [K in keyof T]: T[K];
17
+ } & {};
18
+
19
+ declare type __VLS_Prettify_2<T> = {
20
+ [K in keyof T]: T[K];
21
+ } & {};
22
+
23
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+
32
+ declare type __VLS_TypePropsToRuntimeProps_2<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
35
+ } : {
36
+ type: PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+
41
+ declare type __VLS_WithDefaults<P, D> = {
42
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
+ default: D[K];
44
+ }> : P[K];
45
+ };
46
+
47
+ declare type __VLS_WithDefaults_2<P, D> = {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
49
+ default: D[K];
50
+ }> : P[K];
51
+ };
52
+
53
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
58
+
59
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
64
+
65
+ export declare const MclHeaderA: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
66
+ logo: string;
67
+ logoSmall?: string | undefined;
68
+ logoAlt?: string | undefined;
69
+ title: string;
70
+ titleSize?: HeadingSize | undefined;
71
+ titleColor?: ColorPalette | undefined;
72
+ titleBlockAsLink?: boolean | undefined;
73
+ titleBlockLinkTarget?: CtaTarget | undefined;
74
+ titleBlockLink: string;
75
+ menuItems: (MenuItemType | MenuCollapseType)[];
76
+ menuItemAsLink?: boolean | undefined;
77
+ menuTextSize?: BodyText | undefined;
78
+ menuTextColor?: ColorPalette | undefined;
79
+ menuTextBold?: boolean | undefined;
80
+ displayHighlight?: boolean | undefined;
81
+ highlightColor?: ColorPalette | undefined;
82
+ bgColor?: ColorPalette | undefined;
83
+ mobileMenuBgColor?: ColorPalette | undefined;
84
+ drawerBtnColor?: ColorPalette | undefined;
85
+ drawerBtnBorder?: boolean | undefined;
86
+ fadeInOnScroll?: boolean | undefined;
87
+ scrollDistance?: number | undefined;
88
+ }>, {
89
+ logoAlt: string;
90
+ titleSize: string;
91
+ titleColor: string;
92
+ titleBlockAsLink: boolean;
93
+ titleBlockLinkTarget: string;
94
+ menuItemAsLink: boolean;
95
+ menuTextSize: string;
96
+ menuTextColor: string;
97
+ menuTextBold: boolean;
98
+ displayHighlight: boolean;
99
+ highlightColor: string;
100
+ bgColor: string;
101
+ mobileMenuBgColor: string;
102
+ drawerBtnColor: string;
103
+ drawerBtnBorder: boolean;
104
+ fadeInOnScroll: boolean;
105
+ scrollDistance: number;
106
+ }>, {
107
+ headerClose: () => void;
108
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
109
+ "toggle-drawer": (event: Event, open: boolean) => void;
110
+ "title-click": (event: Event, url: string, target: CtaTarget) => void;
111
+ "menu-click": (event: Event, item: MenuItemType) => void;
112
+ "collapse-click": (event: Event, title: string, visible: boolean) => void;
113
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
114
+ logo: string;
115
+ logoSmall?: string | undefined;
116
+ logoAlt?: string | undefined;
117
+ title: string;
118
+ titleSize?: HeadingSize | undefined;
119
+ titleColor?: ColorPalette | undefined;
120
+ titleBlockAsLink?: boolean | undefined;
121
+ titleBlockLinkTarget?: CtaTarget | undefined;
122
+ titleBlockLink: string;
123
+ menuItems: (MenuItemType | MenuCollapseType)[];
124
+ menuItemAsLink?: boolean | undefined;
125
+ menuTextSize?: BodyText | undefined;
126
+ menuTextColor?: ColorPalette | undefined;
127
+ menuTextBold?: boolean | undefined;
128
+ displayHighlight?: boolean | undefined;
129
+ highlightColor?: ColorPalette | undefined;
130
+ bgColor?: ColorPalette | undefined;
131
+ mobileMenuBgColor?: ColorPalette | undefined;
132
+ drawerBtnColor?: ColorPalette | undefined;
133
+ drawerBtnBorder?: boolean | undefined;
134
+ fadeInOnScroll?: boolean | undefined;
135
+ scrollDistance?: number | undefined;
136
+ }>, {
137
+ logoAlt: string;
138
+ titleSize: string;
139
+ titleColor: string;
140
+ titleBlockAsLink: boolean;
141
+ titleBlockLinkTarget: string;
142
+ menuItemAsLink: boolean;
143
+ menuTextSize: string;
144
+ menuTextColor: string;
145
+ menuTextBold: boolean;
146
+ displayHighlight: boolean;
147
+ highlightColor: string;
148
+ bgColor: string;
149
+ mobileMenuBgColor: string;
150
+ drawerBtnColor: string;
151
+ drawerBtnBorder: boolean;
152
+ fadeInOnScroll: boolean;
153
+ scrollDistance: number;
154
+ }>>> & {
155
+ "onToggle-drawer"?: ((event: Event, open: boolean) => any) | undefined;
156
+ "onTitle-click"?: ((event: Event, url: string, target: CtaTarget) => any) | undefined;
157
+ "onMenu-click"?: ((event: Event, item: MenuItemType) => any) | undefined;
158
+ "onCollapse-click"?: ((event: Event, title: string, visible: boolean) => any) | undefined;
159
+ }, {
160
+ bgColor: ColorPalette;
161
+ menuTextSize: BodyText;
162
+ menuTextColor: ColorPalette;
163
+ menuTextBold: boolean;
164
+ displayHighlight: boolean;
165
+ highlightColor: ColorPalette;
166
+ logoAlt: string;
167
+ titleSize: HeadingSize;
168
+ titleColor: ColorPalette;
169
+ titleBlockAsLink: boolean;
170
+ titleBlockLinkTarget: CtaTarget;
171
+ menuItemAsLink: boolean;
172
+ mobileMenuBgColor: ColorPalette;
173
+ drawerBtnColor: ColorPalette;
174
+ drawerBtnBorder: boolean;
175
+ fadeInOnScroll: boolean;
176
+ scrollDistance: number;
177
+ }, {}>, Readonly<{
178
+ 'content-right': any;
179
+ 'mobile-bottom'(props: {
180
+ headerClose: () => void;
181
+ }): any;
182
+ }> & {
183
+ 'content-right': any;
184
+ 'mobile-bottom'(props: {
185
+ headerClose: () => void;
186
+ }): any;
187
+ }>;
188
+
189
+ export declare const MclHeaderB: __VLS_WithTemplateSlots_2<DefineComponent<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
190
+ logo: string;
191
+ logoAlt?: string | undefined;
192
+ title: string;
193
+ titleSize?: HeadingSize | undefined;
194
+ titleColor?: ColorPalette | undefined;
195
+ titleBlockAsLink?: boolean | undefined;
196
+ titleBlockLinkTarget?: CtaTarget | undefined;
197
+ titleBlockLink: string;
198
+ menuItems: (MenuItemType | MenuCollapseType)[];
199
+ menuItemAsLink?: boolean | undefined;
200
+ menuTextSize?: BodyText | undefined;
201
+ menuTextColor?: ColorPalette | undefined;
202
+ menuTextBold?: boolean | undefined;
203
+ displayHighlight?: boolean | undefined;
204
+ highlightColor?: ColorPalette | undefined;
205
+ bgColor?: ColorPalette | undefined;
206
+ drawerBtnColor?: ColorPalette | undefined;
207
+ drawerBtnBorder?: boolean | undefined;
208
+ headerWidth?: number | undefined;
209
+ }>, {
210
+ logoAlt: string;
211
+ titleBlockAsLink: boolean;
212
+ titleBlockLinkTarget: string;
213
+ titleSize: string;
214
+ titleColor: string;
215
+ menuItemAsLink: boolean;
216
+ menuTextSize: string;
217
+ menuTextColor: string;
218
+ menuTextBold: boolean;
219
+ displayHighlight: boolean;
220
+ highlightColor: string;
221
+ bgColor: string;
222
+ drawerBtnColor: string;
223
+ drawerBtnBorder: boolean;
224
+ headerWidth: number;
225
+ }>, {
226
+ headerClose: () => void;
227
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
228
+ "toggle-drawer": (event: Event, open: boolean) => void;
229
+ "title-click": (event: Event, url: string, target: CtaTarget) => void;
230
+ "menu-click": (event: Event, item: MenuItemType) => void;
231
+ "collapse-click": (event: Event, title: string, visible: boolean) => void;
232
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
233
+ logo: string;
234
+ logoAlt?: string | undefined;
235
+ title: string;
236
+ titleSize?: HeadingSize | undefined;
237
+ titleColor?: ColorPalette | undefined;
238
+ titleBlockAsLink?: boolean | undefined;
239
+ titleBlockLinkTarget?: CtaTarget | undefined;
240
+ titleBlockLink: string;
241
+ menuItems: (MenuItemType | MenuCollapseType)[];
242
+ menuItemAsLink?: boolean | undefined;
243
+ menuTextSize?: BodyText | undefined;
244
+ menuTextColor?: ColorPalette | undefined;
245
+ menuTextBold?: boolean | undefined;
246
+ displayHighlight?: boolean | undefined;
247
+ highlightColor?: ColorPalette | undefined;
248
+ bgColor?: ColorPalette | undefined;
249
+ drawerBtnColor?: ColorPalette | undefined;
250
+ drawerBtnBorder?: boolean | undefined;
251
+ headerWidth?: number | undefined;
252
+ }>, {
253
+ logoAlt: string;
254
+ titleBlockAsLink: boolean;
255
+ titleBlockLinkTarget: string;
256
+ titleSize: string;
257
+ titleColor: string;
258
+ menuItemAsLink: boolean;
259
+ menuTextSize: string;
260
+ menuTextColor: string;
261
+ menuTextBold: boolean;
262
+ displayHighlight: boolean;
263
+ highlightColor: string;
264
+ bgColor: string;
265
+ drawerBtnColor: string;
266
+ drawerBtnBorder: boolean;
267
+ headerWidth: number;
268
+ }>>> & {
269
+ "onToggle-drawer"?: ((event: Event, open: boolean) => any) | undefined;
270
+ "onTitle-click"?: ((event: Event, url: string, target: CtaTarget) => any) | undefined;
271
+ "onMenu-click"?: ((event: Event, item: MenuItemType) => any) | undefined;
272
+ "onCollapse-click"?: ((event: Event, title: string, visible: boolean) => any) | undefined;
273
+ }, {
274
+ bgColor: ColorPalette;
275
+ menuTextSize: BodyText;
276
+ menuTextColor: ColorPalette;
277
+ menuTextBold: boolean;
278
+ displayHighlight: boolean;
279
+ highlightColor: ColorPalette;
280
+ logoAlt: string;
281
+ titleSize: HeadingSize;
282
+ titleColor: ColorPalette;
283
+ titleBlockAsLink: boolean;
284
+ titleBlockLinkTarget: CtaTarget;
285
+ menuItemAsLink: boolean;
286
+ drawerBtnColor: ColorPalette;
287
+ drawerBtnBorder: boolean;
288
+ headerWidth: number;
289
+ }, {}>, Readonly<{
290
+ default: any;
291
+ 'content-bottom': any;
292
+ 'mobile-bottom'(props: {
293
+ headerClose: () => void;
294
+ }): any;
295
+ }> & {
296
+ default: any;
297
+ 'content-bottom': any;
298
+ 'mobile-bottom'(props: {
299
+ headerClose: () => void;
300
+ }): any;
301
+ }>;
302
+
303
+ export declare interface MenuCollapseType {
304
+ title: string;
305
+ children: MenuItemType[];
306
+ }
307
+
308
+ export declare interface MenuItemType {
309
+ title: string;
310
+ url: string;
311
+ target?: CtaTarget;
312
+ }
313
+
314
+ export { }