@progressive-development/pd-page 0.5.9 → 0.6.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.
Files changed (43) hide show
  1. package/dist/generated/locale-codes.d.ts +14 -0
  2. package/dist/generated/locale-codes.d.ts.map +1 -0
  3. package/dist/generated/locales/be.d.ts +11 -0
  4. package/dist/generated/locales/be.d.ts.map +1 -0
  5. package/dist/generated/locales/de.d.ts +11 -0
  6. package/dist/generated/locales/de.d.ts.map +1 -0
  7. package/dist/generated/locales/en.d.ts +11 -0
  8. package/dist/generated/locales/en.d.ts.map +1 -0
  9. package/dist/index.d.ts +8 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +3 -7
  12. package/dist/locales/be.d.ts +2 -0
  13. package/dist/locales/be.js +2 -1
  14. package/dist/locales/de.d.ts +2 -0
  15. package/dist/locales/de.js +2 -1
  16. package/dist/locales/en.d.ts +2 -0
  17. package/dist/locales/en.js +2 -1
  18. package/dist/pd-contact-us.d.ts +18 -0
  19. package/dist/pd-contact-us.d.ts.map +1 -0
  20. package/dist/pd-contact-us.js +218 -4
  21. package/dist/pd-footer.d.ts +31 -0
  22. package/dist/pd-footer.d.ts.map +1 -0
  23. package/dist/pd-footer.js +165 -4
  24. package/dist/pd-menu.d.ts +67 -0
  25. package/dist/pd-menu.d.ts.map +1 -0
  26. package/dist/pd-menu.js +483 -4
  27. package/dist/stories/01_index.stories.d.ts +5 -0
  28. package/dist/stories/01_index.stories.d.ts.map +1 -0
  29. package/dist/stories/pd-contact-us.stories.d.ts +6 -0
  30. package/dist/stories/pd-contact-us.stories.d.ts.map +1 -0
  31. package/dist/stories/pd-footer.stories.d.ts +8 -0
  32. package/dist/stories/pd-footer.stories.d.ts.map +1 -0
  33. package/dist/stories/pd-menu.stories.d.ts +20 -0
  34. package/dist/stories/pd-menu.stories.d.ts.map +1 -0
  35. package/dist/types.d.ts +25 -0
  36. package/dist/types.d.ts.map +1 -0
  37. package/package.json +31 -48
  38. package/dist/pd-teaser.js +0 -8
  39. package/dist/src/PdContactUs.js +0 -204
  40. package/dist/src/PdFooter.js +0 -140
  41. package/dist/src/PdMenu.js +0 -449
  42. package/dist/src/PdTeaser.js +0 -247
  43. package/dist/src/PdTeaserContent.js +0 -211
package/dist/pd-menu.js CHANGED
@@ -1,4 +1,483 @@
1
- import { PdMenu } from "./src/PdMenu.js";
2
- if (!customElements.get("pd-menu")) {
3
- window.customElements.define("pd-menu", PdMenu);
4
- }
1
+ import { css, LitElement, html } from "lit";
2
+ import { property, state, customElement } from "lit/decorators.js";
3
+ import { msg } from "@lit/localize";
4
+ import { installMediaQueryWatcher } from "pwa-helpers/media-query.js";
5
+ import { PdColorStyles, PdFontStyles } from "@progressive-development/pd-shared-styles";
6
+ import { pdIcons } from "@progressive-development/pd-icon";
7
+ import "@progressive-development/pd-icon/pd-icon";
8
+ var __defProp = Object.defineProperty;
9
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
+ var __decorateClass = (decorators, target, key, kind) => {
11
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
12
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
13
+ if (decorator = decorators[i])
14
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
15
+ if (kind && result) __defProp(target, key, result);
16
+ return result;
17
+ };
18
+ let PdMenu = class extends LitElement {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.activeRoute = "";
22
+ this.selectedLocale = "";
23
+ this.locales = [];
24
+ this.menuItems = [];
25
+ this.topMenuItems = [];
26
+ this.noBurgerMenu = false;
27
+ this.headerSize = 0;
28
+ this._activeSecIndex = 0;
29
+ this._activeBurgerMenu = false;
30
+ this._activeLocaleMenu = false;
31
+ this._smallScreen = false;
32
+ }
33
+ firstUpdated() {
34
+ const updateActiveSection = (scrollPos) => {
35
+ let activeIndex = -1;
36
+ let closestDistance = scrollPos > 300 ? 5e3 : 300;
37
+ this.menuItems.forEach((item, index) => {
38
+ if (item.ref) {
39
+ const dist = Math.abs(item.ref.getBoundingClientRect().top);
40
+ if (dist < closestDistance) {
41
+ activeIndex = index;
42
+ closestDistance = dist;
43
+ }
44
+ }
45
+ });
46
+ this._activeSecIndex = activeIndex >= 0 ? activeIndex + 1 : 0;
47
+ };
48
+ let ticking = false;
49
+ document.addEventListener("scroll", () => {
50
+ const scrollY = window.scrollY;
51
+ if (!ticking) {
52
+ window.requestAnimationFrame(() => {
53
+ updateActiveSection(scrollY);
54
+ ticking = false;
55
+ });
56
+ ticking = true;
57
+ }
58
+ });
59
+ installMediaQueryWatcher(`(max-width: 700px)`, (matches) => {
60
+ this._smallScreen = matches && !this.noBurgerMenu;
61
+ });
62
+ }
63
+ render() {
64
+ return html`
65
+ <div class="menu-container">
66
+ <slot name="slotLogo" @click="${this._logoClicked}"></slot>
67
+
68
+ <ul class="menu-ul ${this._smallScreen ? "burger-ul" : ""}">
69
+ ${this._renderItems(
70
+ this._smallScreen ? [...this.menuItems, ...this.topMenuItems] : this.menuItems,
71
+ true,
72
+ this._smallScreen
73
+ )}
74
+ </ul>
75
+
76
+ ${!this._smallScreen ? html`
77
+ <ul class="menu-ul topMenu">
78
+ ${this._renderItems(this.topMenuItems, false)}
79
+ ${this.locales.length > 1 ? html`
80
+ <li
81
+ class="item menu-li locale-li"
82
+ @click="${this._toggleLocaleSelection}"
83
+ >
84
+ ${this.selectedLocale}
85
+ <pd-icon
86
+ class="locale-selection-logo"
87
+ icon="${pdIcons.ICON_TOOGLE_ARROW}"
88
+ ?activeIcon="${!this._activeLocaleMenu}"
89
+ ></pd-icon>
90
+ <ul class="menu-ul locale-ul">
91
+ ${this.locales.filter((l) => l !== this.selectedLocale).map(
92
+ (locale) => html`
93
+ <li
94
+ class="item menu-li burger-li burger-item locale-item"
95
+ data-key="${locale}"
96
+ @click="${this._localeClicked}"
97
+ >
98
+ ${locale}
99
+ </li>
100
+ `
101
+ )}
102
+ </ul>
103
+ </li>
104
+ ` : ""}
105
+ </ul>
106
+ ` : html`
107
+ <div class="menu-wrapper">
108
+ <div class="burger-menu" @click="${this._toggleBurgerMenu}">
109
+ <pd-icon
110
+ class="burgerLogo"
111
+ icon="${pdIcons.ICON_BURGER_MENU}"
112
+ ?activeIcon="${!this._activeBurgerMenu}"
113
+ ></pd-icon>
114
+ <span class="item ${this._activeBurgerMenu ? "active" : ""}"
115
+ >${msg("Menü", { id: "pd.menu.label" })}</span
116
+ >
117
+ </div>
118
+ </div>
119
+ `}
120
+ </div>
121
+ `;
122
+ }
123
+ _renderItems(items, highlight, disableIcons = false) {
124
+ return html`
125
+ ${items.map(
126
+ (item, index) => html`
127
+ <li
128
+ class="item menu-li ${this._smallScreen ? "burger-li burger-item" : ""}
129
+ ${highlight && (this._activeSecIndex === index + 1 || item.route === this.activeRoute) ? "active" : ""}"
130
+ data-key="${item.key}"
131
+ @click="${this._menuItemClicked}"
132
+ >
133
+ ${item.icon && !disableIcons ? html`<pd-icon
134
+ class="topItemLogo"
135
+ icon="${item.icon}"
136
+ ></pd-icon>` : ""}
137
+ ${item.name}
138
+ </li>
139
+ `
140
+ )}
141
+ `;
142
+ }
143
+ _toggleBurgerMenu() {
144
+ this._activeBurgerMenu = !this._activeBurgerMenu;
145
+ }
146
+ _toggleLocaleSelection() {
147
+ this._activeLocaleMenu = !this._activeLocaleMenu;
148
+ }
149
+ _localeClicked(e) {
150
+ const locale = e.target.dataset.key;
151
+ this.dispatchEvent(new CustomEvent("locale-change", { detail: locale }));
152
+ }
153
+ _menuItemClicked(e) {
154
+ const key = e.target.dataset.key;
155
+ const item = [...this.menuItems, ...this.topMenuItems].find(
156
+ (i) => i.key === key
157
+ );
158
+ if (!item) return;
159
+ if (item.sec && item.ref) {
160
+ const rect = item.ref.getBoundingClientRect();
161
+ window.scrollBy({
162
+ top: rect.top - this.headerSize,
163
+ behavior: "smooth"
164
+ });
165
+ } else if (item.route) {
166
+ this.dispatchEvent(
167
+ new CustomEvent("route-event", {
168
+ detail: { route: item.route === "back" ? "" : item.route },
169
+ bubbles: true,
170
+ composed: true
171
+ })
172
+ );
173
+ } else if (item.action) {
174
+ item.action();
175
+ }
176
+ if (this._activeBurgerMenu) {
177
+ this._activeBurgerMenu = false;
178
+ }
179
+ }
180
+ _logoClicked() {
181
+ PdMenu._scrollToTop();
182
+ this.dispatchEvent(
183
+ new CustomEvent("route-event", {
184
+ detail: { route: "" },
185
+ bubbles: true,
186
+ composed: true
187
+ })
188
+ );
189
+ }
190
+ static _scrollToTop() {
191
+ window.scrollTo({ top: 0, behavior: "smooth" });
192
+ }
193
+ };
194
+ PdMenu.styles = [
195
+ PdColorStyles,
196
+ PdFontStyles,
197
+ css`
198
+ :host {
199
+ display: block;
200
+ position: relative;
201
+ height: var(--pd-menu-height, 100px);
202
+ background-color: var(--pd-menu-bg-col, var(--pd-default-col));
203
+ box-shadow: var(--pd-menu-shadow, 3px 3px 5px grey);
204
+
205
+ /*
206
+ Add into component, before styled from outside by using element
207
+ removed fixed again => not fit for the teaser, custom properties possible, but now handle this in SPAHelper header element
208
+ width: 100%;
209
+ position: fixed;
210
+ top: 0;
211
+ */
212
+ }
213
+
214
+ .menu-container {
215
+ height: 100%;
216
+ padding-left: 10px;
217
+ padding-right: 10px;
218
+ display: flex;
219
+ justify-content: space-between;
220
+ align-items: center;
221
+ white-space: nowrap;
222
+ max-width: var(--pd-menu-wax-width, 1170px);
223
+ margin: 0 auto;
224
+ }
225
+
226
+ .menu-ul {
227
+ display: flex;
228
+ align-items: center;
229
+ list-style: none;
230
+ margin: 0;
231
+ padding: 0;
232
+ }
233
+
234
+ .burger-ul {
235
+ visibility: hidden;
236
+ overflow: hidden;
237
+ z-index: -1;
238
+ position: absolute;
239
+ flex-direction: column;
240
+ top: calc(var(--pd-menu-height, 100px) * -1);
241
+ right: 0px;
242
+ background-color: var(
243
+ --pd-menu-burger-bg-col,
244
+ var(--pd-default-light-col)
245
+ );
246
+
247
+ box-shadow: var(--pd-menu-shadow, 3px 3px 5px grey);
248
+ border-bottom: var(--pd-menu-burger-bottomborder);
249
+ padding: var(--pd-menu-burger-padding, 0);
250
+ width: 100%;
251
+ -moz-border-radius: var(--pd-border-radius);
252
+ border-radius: var(--pd-border-radius);
253
+
254
+ transition: 0.5s;
255
+ transition-timing-function: ease-out;
256
+
257
+ transform: translateY(0);
258
+ opacity: 0;
259
+ }
260
+
261
+ .locale-ul {
262
+ visibility: hidden;
263
+ position: absolute;
264
+ flex-direction: column;
265
+ top: 10px;
266
+ right: 15px;
267
+ z-index: 100;
268
+ background-color: var(
269
+ --pd-menu-burger-bg-col,
270
+ var(--pd-default-light-col)
271
+ );
272
+
273
+ box-shadow: var(--pd-menu-shadow, 3px 3px 5px grey);
274
+ border-bottom: var(--pd-menu-burger-bottomborder);
275
+ padding: var(--pd-menu-burger-padding, 0);
276
+ -moz-border-radius: var(--pd-border-radius);
277
+ border-radius: var(--pd-border-radius);
278
+
279
+ transition: 0.5s;
280
+ transition-timing-function: ease-out;
281
+
282
+ transform: translateY(0);
283
+ opacity: 0;
284
+ }
285
+
286
+ :host([_activeBurgerMenu]) .burger-ul {
287
+ visibility: visible;
288
+ opacity: 1;
289
+ top: var(--pd-menu-burger-top, var(--pd-menu-height, 100px));
290
+ transition-timing-function: ease-in;
291
+ }
292
+
293
+ :host([_activeLocaleMenu]) .locale-ul {
294
+ visibility: visible;
295
+ opacity: 1;
296
+ top: 40px;
297
+ transition-timing-function: ease-in;
298
+ }
299
+
300
+ .menu-li {
301
+ display: flex;
302
+ align-items: center;
303
+ cursor: pointer;
304
+ border-radius: var(--pd-border-radius);
305
+ }
306
+
307
+ .burger-li {
308
+ border-radius: var(--pd-border-radius);
309
+ align-self: justify;
310
+ width: 80%;
311
+ font-size: 90% !important;
312
+ height: 1rem;
313
+ }
314
+
315
+ .locale-li {
316
+ position: relative;
317
+ }
318
+
319
+ .burger-li:hover {
320
+ background-color: var(--pd-default-dark-col);
321
+ }
322
+
323
+ .item {
324
+ color: var(--pd-menu-font-col, var(--pd-default-bg-col));
325
+ font-family: var(
326
+ --pd-menu-font-family,
327
+ var(--pd-default-font-title-family)
328
+ );
329
+ font-size: var(--pd-menu-font-size, 1.2em);
330
+ font-weight: var(--pd-menu-font-weight, bold);
331
+ padding: var(--pd-menu-item-padding, 0.6em);
332
+ }
333
+
334
+ .burger-item {
335
+ color: var(--pd-menu-burger-font-col, var(--pd-default-dark-col));
336
+ }
337
+
338
+ .locale-item {
339
+ padding-left: 1.5em;
340
+ }
341
+
342
+ .item.active,
343
+ .item:hover {
344
+ color: var(--pd-default-hover-col);
345
+ }
346
+
347
+ .item:hover {
348
+ background-color: var(--pd-menu-item-bg-hover-col);
349
+ }
350
+
351
+ .item:hover .topItemLogo {
352
+ --pd-icon-stroke-col: var(--pd-default-hover-col);
353
+ }
354
+
355
+ .topMenu {
356
+ width: 100%;
357
+ justify-content: end;
358
+ padding-left: 10px;
359
+ }
360
+
361
+ .topItemLogo {
362
+ --pd-icon-size: 1.4rem;
363
+ --pd-icon-bg-col: transparent;
364
+ --pd-icon-stroke-col: var(--pd-menu-font-col, var(--pd-default-bg-col));
365
+ --pd-icon-col: var(--pd-menu-font-col, var(--pd-default-bg-col));
366
+ pointer-events: none;
367
+ }
368
+
369
+ .burgerLogo {
370
+ --pd-icon-size: 2rem;
371
+ --pd-icon-bg-col: transparent;
372
+ pointer-events: none;
373
+ }
374
+
375
+ .menu-wrapper {
376
+ width: 100%;
377
+ display: flex;
378
+ align-items: center;
379
+ justify-content: end;
380
+ padding-right: 0.5rem;
381
+ }
382
+
383
+ .burger-menu {
384
+ display: flex;
385
+ gap: 0.3rem;
386
+ align-items: center;
387
+ cursor: pointer;
388
+
389
+ --pd-icon-stroke-col: var(--pd-menu-font-col, var(--pd-default-bg-col));
390
+ --pd-icon-col: var(--pd-default-hover-col);
391
+
392
+ --pd-icon-stroke-col-active: var(
393
+ --pd-menu-font-col,
394
+ var(--pd-default-bg-col)
395
+ );
396
+ --pd-icon-col-active: lightgrey;
397
+ }
398
+
399
+ .burger-menu:hover {
400
+ --pd-icon-col: var(--pd-default-hover-col);
401
+ --pd-icon-col-active: var(--pd-default-hover-col);
402
+ --pd-icon-stroke-col: var(--pd-menu-font-col, var(--pd-default-bg-col));
403
+ --pd-icon-stroke-col-active: var(
404
+ --pd-menu-font-col,
405
+ var(--pd-default-bg-col)
406
+ );
407
+ }
408
+
409
+ .burger-menu .item {
410
+ padding: 0;
411
+ font-size: 1.5em;
412
+ transition: color ease 0.5s;
413
+ }
414
+
415
+ .burger-menu:hover .item {
416
+ color: var(--pd-default-hover-col);
417
+ }
418
+
419
+ /* Doppelt zum logo-container, pd-logo sonst nicht mehr funktional
420
+ */
421
+ ::slotted(.logo) {
422
+ width: 100%;
423
+ max-width: var(--pd-menu-logo-maxwidth, 8rem);
424
+ padding: var(--pd-menu-logo-padding, 2em);
425
+ width: 100%;
426
+ fill: var(--pd-menu-logo-color, #067394);
427
+ cursor: pointer;
428
+ }
429
+
430
+ .locale-selection-logo {
431
+ --pd-icon-size: 0.8rem;
432
+ --pd-icon-bg-col: transparent;
433
+ --pd-icon-stroke-col: var(--pd-menu-font-col, var(--pd-default-bg-col));
434
+ --pd-icon-col: var(--pd-default-hover-col);
435
+ --pd-icon-stroke-col-active: var(
436
+ --pd-menu-font-col,
437
+ var(--pd-default-bg-col)
438
+ );
439
+ --pd-icon-col-active: var(--pd-menu-font-col, var(--pd-default-bg-col));
440
+ margin-top: 2px;
441
+ pointer-events: none;
442
+ }
443
+ `
444
+ ];
445
+ __decorateClass([
446
+ property({ type: String })
447
+ ], PdMenu.prototype, "activeRoute", 2);
448
+ __decorateClass([
449
+ property({ type: String })
450
+ ], PdMenu.prototype, "selectedLocale", 2);
451
+ __decorateClass([
452
+ property({ type: Array })
453
+ ], PdMenu.prototype, "locales", 2);
454
+ __decorateClass([
455
+ property({ type: Array })
456
+ ], PdMenu.prototype, "menuItems", 2);
457
+ __decorateClass([
458
+ property({ type: Array })
459
+ ], PdMenu.prototype, "topMenuItems", 2);
460
+ __decorateClass([
461
+ property({ type: Boolean })
462
+ ], PdMenu.prototype, "noBurgerMenu", 2);
463
+ __decorateClass([
464
+ property({ type: Number })
465
+ ], PdMenu.prototype, "headerSize", 2);
466
+ __decorateClass([
467
+ state()
468
+ ], PdMenu.prototype, "_activeSecIndex", 2);
469
+ __decorateClass([
470
+ state()
471
+ ], PdMenu.prototype, "_activeBurgerMenu", 2);
472
+ __decorateClass([
473
+ state()
474
+ ], PdMenu.prototype, "_activeLocaleMenu", 2);
475
+ __decorateClass([
476
+ state()
477
+ ], PdMenu.prototype, "_smallScreen", 2);
478
+ PdMenu = __decorateClass([
479
+ customElement("pd-menu")
480
+ ], PdMenu);
481
+ export {
482
+ PdMenu
483
+ };
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const PageExamples: StoryObj;
5
+ //# sourceMappingURL=01_index.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"01_index.stories.d.ts","sourceRoot":"","sources":["../../src/stories/01_index.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAKhE,OAAO,eAAe,CAAC;AACvB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,iBAAiB,CAAC;wBAMpB,IAAI;AAJT,wBAIU;AA0DV,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+ import { PdContactUs } from '../pd-contact-us';
3
+ declare const _default: Meta<PdContactUs>;
4
+ export default _default;
5
+ export declare const Default: StoryFn<PdContactUs>;
6
+ //# sourceMappingURL=pd-contact-us.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pd-contact-us.stories.d.ts","sourceRoot":"","sources":["../../src/stories/pd-contact-us.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,kBAAkB,CAAC;wBAoBrB,IAAI,CAAC,WAAW,CAAC;AAlBtB,wBAkBuB;AAMvB,eAAO,MAAM,OAAO,sBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: StoryFn;
5
+ export declare const OhneVersionUndMadeBy: StoryFn;
6
+ export declare const NurLinks: StoryFn;
7
+ export declare const NurMadeByMitLink: StoryFn;
8
+ //# sourceMappingURL=pd-footer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pd-footer.stories.d.ts","sourceRoot":"","sources":["../../src/stories/pd-footer.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAI/D,OAAO,iBAAiB,CAAC;wBAcpB,IAAI;AAZT,wBAYU;AAuBV,eAAO,MAAM,OAAO,EAAE,OAA2B,CAAC;AAQlD,eAAO,MAAM,oBAAoB,EAAE,OAA2B,CAAC;AAM/D,eAAO,MAAM,QAAQ,EAAE,OAA2B,CAAC;AAKnD,eAAO,MAAM,gBAAgB,EAAE,OAA2B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { TemplateResult } from 'lit';
2
+ import { Meta, StoryFn } from '@storybook/web-components';
3
+ import { PdMenu } from '../pd-menu.js';
4
+ export declare const ticomiLogo: TemplateResult<1>;
5
+ declare const _default: Meta<PdMenu>;
6
+ export default _default;
7
+ type PdMenuArgs = Partial<PdMenu> & {
8
+ color?: string;
9
+ logo?: TemplateResult<1>;
10
+ menuColor: string;
11
+ noBurger: boolean;
12
+ menuHeight: number;
13
+ };
14
+ export declare const BasicColor1: StoryFn<PdMenuArgs>;
15
+ export declare const BasicColor2: StoryFn<PdMenuArgs>;
16
+ export declare const WithLogo: StoryFn<PdMenuArgs>;
17
+ export declare const WithTopItems: StoryFn<PdMenuArgs>;
18
+ export declare const WithoutBurger: StoryFn<PdMenuArgs>;
19
+ export declare const SmallTopMenuWithoutBurger: StoryFn<PdMenuArgs>;
20
+ //# sourceMappingURL=pd-menu.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pd-menu.stories.d.ts","sourceRoot":"","sources":["../../src/stories/pd-menu.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,eAAe,CAAC;AAEvB,eAAO,MAAM,UAAU,mBAsEtB,CAAC;wBAYG,IAAI,CAAC,MAAM,CAAC;AAVjB,wBAUkB;AAElB,KAAK,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AA8BF,eAAO,MAAM,WAAW,qBAAoB,CAAC;AAW7C,eAAO,MAAM,WAAW,qBAAoB,CAAC;AAM7C,eAAO,MAAM,QAAQ,qBAAoB,CAAC;AAO1C,eAAO,MAAM,YAAY,qBAAoB,CAAC;AAU9C,eAAO,MAAM,aAAa,qBAAoB,CAAC;AAM/C,eAAO,MAAM,yBAAyB,qBAAoB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Datentyp für einen Footer-Link.
3
+ */
4
+ export interface PdFooterLink {
5
+ key: string;
6
+ name: string;
7
+ }
8
+ /**
9
+ * Datentyp für den "madeBy"-Block.
10
+ */
11
+ export interface PdFooterMadeBy {
12
+ txt: string;
13
+ email?: string;
14
+ link?: string;
15
+ }
16
+ export interface PdMenuItem {
17
+ key: string;
18
+ name: string;
19
+ route?: string;
20
+ sec?: string;
21
+ icon?: string;
22
+ action?: () => void;
23
+ ref?: HTMLElement;
24
+ }
25
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,GAAG,CAAC,EAAE,WAAW,CAAC;CACnB"}