@ebrains/components 0.5.0-alpha.0 → 0.6.0-alpha.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.
- package/dist/cjs/{analytics-223ea8e5.js → analytics-d8fb3fdd.js} +9 -0
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/eds-accordion_13.cjs.entry.js +911 -0
- package/dist/cjs/eds-alert.cjs.entry.js +97 -0
- package/dist/cjs/eds-block-break.cjs.entry.js +21 -0
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +149 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
- package/dist/cjs/eds-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/eds-footer.cjs.entry.js +41 -0
- package/dist/cjs/eds-form.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +100 -0
- package/dist/cjs/eds-header.cjs.entry.js +97 -0
- package/dist/cjs/eds-link.cjs.entry.js +214 -0
- package/dist/cjs/eds-login.cjs.entry.js +1 -1
- package/dist/cjs/eds-logo.cjs.entry.js +78 -0
- package/dist/cjs/eds-modal.cjs.entry.js +1 -1
- package/dist/cjs/eds-pagination_2.cjs.entry.js +1 -1
- package/dist/cjs/eds-rating.cjs.entry.js +58 -0
- package/dist/cjs/eds-social-networks.cjs.entry.js +66 -0
- package/dist/cjs/eds-steps.cjs.entry.js +65 -0
- package/dist/cjs/eds-switch.cjs.entry.js +38 -0
- package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/eds-tabs.cjs.entry.js +2 -2
- package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/eds-user.cjs.entry.js +1 -1
- package/dist/cjs/index-f08e4f5c.js +52 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-button/eds-button.js +21 -16
- package/dist/collection/components/eds-link/eds-link.css +6793 -6676
- package/dist/collection/components/eds-matomo-notice/eds-matomo-notice.js +207 -0
- package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.js +1 -1
- package/dist/collection/components/eds-steps/eds-steps.css +60 -5
- package/dist/collection/components/eds-steps/eds-steps.js +5 -4
- package/dist/collection/components/eds-tag/eds-tag.js +4 -35
- package/dist/collection/components/eds-toast/eds-toast.css +91 -0
- package/dist/collection/components/eds-toast/eds-toast.js +18 -9
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +236 -140
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +10 -10
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +2 -2
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +87 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -53
- package/dist/collection/shared-ui/eds-header/eds-header.js +2 -2
- package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +1 -1
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +2 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
- package/dist/components/analytics.js +9 -1
- package/dist/components/components.css +520 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/eds-accordion2.js +2 -2
- package/dist/components/eds-button2.js +11 -15
- package/dist/components/eds-card-section.js +4 -4
- package/dist/components/eds-cookies-preference.d.ts +11 -0
- package/dist/components/eds-cookies-preference.js +88 -0
- package/dist/components/eds-footer2.js +3 -13
- package/dist/components/eds-header.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-login.js +1 -1
- package/dist/components/eds-matomo-notice.js +1 -140
- package/dist/components/eds-matomo-notice2.js +127 -0
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-steps.js +7 -6
- package/dist/components/eds-tabs-content.js +2 -2
- package/dist/components/eds-tabs.js +1 -1
- package/dist/components/eds-tag2.js +1 -9
- package/dist/components/eds-toast-manager.js +4 -3
- package/dist/components/eds-toast2.js +13 -10
- package/dist/components/eds-user-modal2.js +1 -1
- package/dist/components/eds-user.js +1 -1
- package/dist/components/p-045681d7.entry.js +1 -0
- package/dist/components/p-0a3b2576.entry.js +1 -0
- package/dist/components/{p-92e16cc9.entry.js → p-10b81c47.entry.js} +1 -1
- package/dist/components/{p-89227919.js → p-13efafb9.js} +1 -1
- package/dist/components/{p-d69ef196.entry.js → p-1ae529f3.entry.js} +1 -1
- package/dist/components/p-21d42cf3.entry.js +1 -0
- package/dist/components/p-34a65e58.entry.js +1 -0
- package/dist/components/p-3a7aa1eb.entry.js +1 -0
- package/dist/components/p-42d3c324.entry.js +1 -0
- package/dist/components/{p-f08eac56.entry.js → p-4b3fbd6d.entry.js} +1 -1
- package/dist/components/p-4ea027ac.entry.js +1 -0
- package/dist/components/p-5097066f.entry.js +1 -0
- package/dist/components/p-5a2b8b6c.entry.js +1 -0
- package/dist/components/{p-72b42d77.entry.js → p-5ff31f14.entry.js} +1 -1
- package/dist/components/{p-030f67c1.entry.js → p-659ed449.entry.js} +1 -1
- package/dist/components/{p-75795b05.entry.js → p-7b3b26b0.entry.js} +1 -1
- package/dist/components/{p-0e0e1815.entry.js → p-88751c8b.entry.js} +1 -1
- package/dist/components/{p-8b583210.entry.js → p-9579f9c2.entry.js} +1 -1
- package/dist/components/p-b50c8d49.entry.js +1 -0
- package/dist/components/{p-59405ecf.entry.js → p-bd43d83c.entry.js} +1 -1
- package/dist/components/p-c683be2c.entry.js +1 -0
- package/dist/components/{p-209fa119.entry.js → p-d2a0b896.entry.js} +1 -1
- package/dist/components/p-d56d9dda.entry.js +1 -0
- package/dist/components/p-d5850ab3.entry.js +1 -0
- package/dist/components/p-e334f5bc.entry.js +1 -0
- package/dist/components/{p-def72462.entry.js → p-fad10768.entry.js} +1 -1
- package/dist/esm/{analytics-1cde8e4a.js → analytics-44b1416b.js} +9 -1
- package/dist/esm/components.js +1 -1
- package/dist/esm/eds-accordion_13.entry.js +895 -0
- package/dist/esm/eds-alert.entry.js +93 -0
- package/dist/esm/eds-block-break.entry.js +17 -0
- package/dist/esm/eds-breadcrumb.entry.js +145 -0
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +35 -0
- package/dist/esm/eds-dropdown_2.entry.js +2 -2
- package/dist/esm/eds-footer.entry.js +37 -0
- package/dist/esm/eds-form.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +96 -0
- package/dist/esm/eds-header.entry.js +93 -0
- package/dist/esm/eds-link.entry.js +210 -0
- package/dist/esm/eds-login.entry.js +1 -1
- package/dist/esm/eds-logo.entry.js +74 -0
- package/dist/esm/eds-modal.entry.js +1 -1
- package/dist/esm/eds-pagination_2.entry.js +1 -1
- package/dist/esm/eds-rating.entry.js +54 -0
- package/dist/esm/eds-social-networks.entry.js +62 -0
- package/dist/esm/eds-steps.entry.js +61 -0
- package/dist/esm/eds-switch.entry.js +34 -0
- package/dist/esm/eds-tabs-content.entry.js +3 -3
- package/dist/esm/eds-tabs.entry.js +2 -2
- package/dist/esm/eds-tooltip.entry.js +1 -1
- package/dist/esm/eds-user.entry.js +1 -1
- package/dist/esm/index-e96badea.js +52 -20
- package/dist/esm/loader.js +1 -1
- package/dist/hydrate/index.js +148 -136
- package/dist/hydrate/index.mjs +148 -136
- package/dist/types/components/eds-button/eds-button.d.ts +3 -1
- package/dist/types/components/eds-matomo-notice/eds-matomo-notice.d.ts +53 -0
- package/dist/types/components/eds-steps/eds-steps.d.ts +0 -1
- package/dist/types/components/eds-tag/eds-tag.d.ts +1 -25
- package/dist/types/components/eds-toast/eds-toast.d.ts +4 -5
- package/dist/types/components.d.ts +101 -88
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +5 -5
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +1 -1
- package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.d.ts +27 -0
- package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.st.d.ts +27 -0
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +2 -15
- package/package.json +1 -1
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -84
- package/dist/cjs/eds-alert_17.cjs.entry.js +0 -1392
- package/dist/cjs/eds-avatar_4.cjs.entry.js +0 -187
- package/dist/cjs/eds-card-generic.cjs.entry.js +0 -104
- package/dist/cjs/eds-card-section.cjs.entry.js +0 -55
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -109
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -164
- package/dist/components/p-0bafc5ae.entry.js +0 -1
- package/dist/components/p-3babd772.entry.js +0 -1
- package/dist/components/p-505ddcda.entry.js +0 -1
- package/dist/components/p-8d19a05b.entry.js +0 -1
- package/dist/components/p-9826acae.entry.js +0 -1
- package/dist/components/p-eeeb0d83.entry.js +0 -1
- package/dist/esm/eds-accordion.entry.js +0 -80
- package/dist/esm/eds-alert_17.entry.js +0 -1372
- package/dist/esm/eds-avatar_4.entry.js +0 -180
- package/dist/esm/eds-card-generic.entry.js +0 -100
- package/dist/esm/eds-card-section.entry.js +0 -51
- package/dist/esm/eds-matomo-notice.entry.js +0 -105
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -77
- /package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.css +0 -0
- /package/dist/types/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
|
|
7
|
+
const edsFullscreenMenuCss = "";
|
|
8
|
+
const EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
9
|
+
|
|
10
|
+
const EdsFullscreenMenu = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.menuClose = index.createEvent(this, "menuClose", 7);
|
|
14
|
+
this.links = undefined;
|
|
15
|
+
this.menuLinks = undefined;
|
|
16
|
+
this.homeUrl = '/';
|
|
17
|
+
this.inverseHeader = false;
|
|
18
|
+
this.isMenuOpen = false;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Listens for the toggleMenu event to open or close the menu.
|
|
22
|
+
* This event is emitted by the eds-header component.
|
|
23
|
+
*/
|
|
24
|
+
handleToggleMenu(event) {
|
|
25
|
+
this.isMenuOpen = event.detail; // Set isMenuOpen based on the event payload
|
|
26
|
+
}
|
|
27
|
+
/** Opens the menu */
|
|
28
|
+
openMenu() {
|
|
29
|
+
this.isMenuOpen = true;
|
|
30
|
+
}
|
|
31
|
+
/** Closes the menu */
|
|
32
|
+
closeMenu() {
|
|
33
|
+
this.isMenuOpen = false;
|
|
34
|
+
this.menuClose.emit();
|
|
35
|
+
}
|
|
36
|
+
// Lifecycle method to add the resize event listener when component loads
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
39
|
+
}
|
|
40
|
+
// Lifecycle method to remove the resize event listener when component unloads
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
window.removeEventListener('resize', this.handleResize.bind(this));
|
|
43
|
+
}
|
|
44
|
+
// Function to close the menu if screen width is larger than a defined breakpoint (1024px)
|
|
45
|
+
handleResize() {
|
|
46
|
+
if (window.innerWidth >= 1024) {
|
|
47
|
+
this.isMenuOpen = false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parses the `links` prop into an array of link objects.
|
|
52
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
53
|
+
*
|
|
54
|
+
* @returns {any[]} Array of parsed link objects
|
|
55
|
+
*/
|
|
56
|
+
get parsedLinks() {
|
|
57
|
+
if (typeof this.links === 'object') {
|
|
58
|
+
return this.links;
|
|
59
|
+
}
|
|
60
|
+
else if (typeof this.links === 'string') {
|
|
61
|
+
try {
|
|
62
|
+
return JSON.parse(this.links);
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
// eslint-disable-next-line
|
|
66
|
+
console.error('Error parsing links prop:', e);
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return [];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Parses the `menuLinks` prop into an array of link objects.
|
|
74
|
+
* Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
|
|
75
|
+
*
|
|
76
|
+
* @returns {any[]} Array of parsed menu link objects
|
|
77
|
+
*/
|
|
78
|
+
get parsedMenuLinks() {
|
|
79
|
+
if (typeof this.menuLinks === 'object') {
|
|
80
|
+
return this.menuLinks;
|
|
81
|
+
}
|
|
82
|
+
else if (typeof this.menuLinks === 'string') {
|
|
83
|
+
try {
|
|
84
|
+
return JSON.parse(this.menuLinks);
|
|
85
|
+
}
|
|
86
|
+
catch (e) {
|
|
87
|
+
// eslint-disable-next-line
|
|
88
|
+
console.error('Error parsing menuLinks prop:', e);
|
|
89
|
+
return [];
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return [];
|
|
93
|
+
}
|
|
94
|
+
render() {
|
|
95
|
+
return this.isMenuOpen ? (index.h("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, index.h("div", { class: "flex min-h-full flex-col" }, index.h("div", { class: `bg-default w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, index.h("div", { class: "mx-auto flex items-center justify-between" }, index.h("div", { class: "mr-auto w-[200px] h-[85px]" }, index.h("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), index.h("div", { class: "px-16" }, index.h("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), index.h("div", { class: "py-16 px-16" }, index.h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index$1) => (index.h("eds-link", { label: link.label, key: index$1, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" })))), index.h("eds-block-break", null), index.h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index$1) => (index.h("eds-link", { label: link.label, key: index$1, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" }))))), index.h("div", { class: "mt-auto" }, index.h("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
EdsFullscreenMenu.style = EdsFullscreenMenuStyle0;
|
|
99
|
+
|
|
100
|
+
exports.eds_fullscreen_menu = EdsFullscreenMenu;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
|
|
7
|
+
const edsHeaderCss = "";
|
|
8
|
+
const EdsHeaderStyle0 = edsHeaderCss;
|
|
9
|
+
|
|
10
|
+
const EdsHeader = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.toggleMenu = index.createEvent(this, "toggleMenu", 7);
|
|
14
|
+
this.homeUrl = '/';
|
|
15
|
+
this.links = undefined;
|
|
16
|
+
this.inverseHeader = false;
|
|
17
|
+
this.menuEnabled = false;
|
|
18
|
+
this.isMenuOpen = false;
|
|
19
|
+
this.isUserMenuOpen = false;
|
|
20
|
+
this.isAuthenticated = false;
|
|
21
|
+
}
|
|
22
|
+
onAuthStatusChanged(event) {
|
|
23
|
+
var _a;
|
|
24
|
+
this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Lifecycle method that runs when the component has fully loaded.
|
|
28
|
+
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
29
|
+
*/
|
|
30
|
+
componentDidLoad() {
|
|
31
|
+
// Emit context for each eds-link element after the component is fully loaded
|
|
32
|
+
const links = this.hostEl.querySelectorAll('eds-link');
|
|
33
|
+
links.forEach((link) => {
|
|
34
|
+
this.emitContext(link);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
39
|
+
* This event provides context information about the breadcrumb component.
|
|
40
|
+
*
|
|
41
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
42
|
+
*/
|
|
43
|
+
emitContext(linkElement) {
|
|
44
|
+
const event = new CustomEvent('parentContext', {
|
|
45
|
+
detail: {
|
|
46
|
+
componentName: this.hostEl.tagName.toLowerCase(),
|
|
47
|
+
identifier: null
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
linkElement.dispatchEvent(event);
|
|
51
|
+
}
|
|
52
|
+
/** Emits an event to open or close the menu */
|
|
53
|
+
handleToggleMenu() {
|
|
54
|
+
this.toggleMenu.emit(!this.isMenuOpen);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Toggles the visibility of the user menu.
|
|
58
|
+
* Opens the user menu if closed, and closes it if open.
|
|
59
|
+
*/
|
|
60
|
+
toggleUserMenu() {
|
|
61
|
+
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Parses the `links` prop into an array of link objects.
|
|
65
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
66
|
+
*
|
|
67
|
+
* @returns {any[]} Array of parsed link objects
|
|
68
|
+
*/
|
|
69
|
+
get parsedLinks() {
|
|
70
|
+
// If it's already an array, return it immediately.
|
|
71
|
+
if (Array.isArray(this.links)) {
|
|
72
|
+
return this.links;
|
|
73
|
+
}
|
|
74
|
+
if (typeof this.links === 'object') {
|
|
75
|
+
return this.links;
|
|
76
|
+
}
|
|
77
|
+
else if (typeof this.links === 'string') {
|
|
78
|
+
try {
|
|
79
|
+
return JSON.parse(this.links);
|
|
80
|
+
}
|
|
81
|
+
catch (e) {
|
|
82
|
+
// eslint-disable-next-line
|
|
83
|
+
console.error('Error parsing links prop:', e);
|
|
84
|
+
return [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return [];
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return (index.h("header", { key: '8447435914bd3cdf61ce03f2a6bc646fd6b39b01', class: `flex items-center justify-between relative z-10
|
|
91
|
+
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, index.h("div", { key: '2a7a525d9ec5f86437212ab5b6c60c901e1f69a8', class: "mr-auto w-[200px] h-[85px]" }, index.h("eds-logo", { key: '29381ef7d9f600690a373a09be30b2dea6d5b936', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (index.h("nav", { key: '8085c6dfa6dadce3d7eefb45505e9c9404fd422d', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, index.h("ul", { key: 'cb8442be1efc058dc46c283c85e50c58dd627f3e', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (index.h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), index.h("slot", { key: '5d39561f4f43641640cc3f5d01edd35ebde794e3' }), this.menuEnabled ? (index.h("div", { class: "md:hidden flex overflow-hidden px-16" }, index.h("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
|
|
92
|
+
}
|
|
93
|
+
get hostEl() { return index.getElement(this); }
|
|
94
|
+
};
|
|
95
|
+
EdsHeader.style = EdsHeaderStyle0;
|
|
96
|
+
|
|
97
|
+
exports.eds_header = EdsHeader;
|