@ebrains/react 0.4.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/analytics-44b1416b.esm.js +55 -0
- package/color-2554aad6.esm.js +122 -0
- package/color-primary-palette_6.entry.esm.js +106 -106
- package/correct-use-of-colors.entry.esm.js +33 -33
- package/eds-accordion_13.entry.esm.js +1064 -0
- package/eds-alert.entry.esm.js +104 -0
- package/eds-block-break.entry.esm.js +22 -0
- package/eds-breadcrumb.entry.esm.js +182 -0
- package/eds-card-project.entry.esm.js +12 -11
- package/eds-card-tags.entry.esm.js +1 -1
- package/eds-card-tool.entry.esm.js +5 -6
- package/eds-card-wrapper.entry.esm.js +4 -4
- package/eds-code-block.entry.esm.js +8 -8
- package/eds-components-section.entry.esm.js +14 -2
- package/eds-cookies-preference.entry.esm.js +47 -0
- package/eds-docs-palettes.entry.esm.js +1 -1
- package/eds-docs-tokens.entry.esm.js +1 -1
- package/eds-dropdown_2.entry.esm.js +235 -0
- package/eds-footer.entry.esm.js +102 -0
- package/eds-form.entry.esm.js +410 -0
- package/eds-frame.entry.esm.js +117 -0
- package/eds-fullscreen-menu.entry.esm.js +143 -0
- package/eds-header.entry.esm.js +130 -0
- package/eds-icon-arrow-diagonal.entry.esm.js +1 -1
- package/eds-icon-arrow-right.entry.esm.js +1 -1
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-chevron-down.entry.esm.js +1 -1
- package/eds-icon-chevron-left.entry.esm.js +1 -1
- package/eds-icon-chevron-right.entry.esm.js +1 -1
- package/eds-icon-chevron-up.entry.esm.js +1 -1
- package/eds-icon-close.entry.esm.js +1 -1
- package/eds-icon-copy.entry.esm.js +1 -1
- package/eds-icon-eu.entry.esm.js +1 -1
- package/eds-icon-facebook.entry.esm.js +1 -1
- package/eds-icon-gitlab.entry.esm.js +1 -1
- package/eds-icon-linkedin.entry.esm.js +1 -1
- package/eds-icon-loader.entry.esm.js +1 -1
- package/eds-icon-mastodon.entry.esm.js +1 -1
- package/eds-icon-menu.entry.esm.js +1 -1
- package/eds-icon-more.entry.esm.js +1 -1
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-user.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-input_7.entry.esm.js +529 -0
- package/eds-link.entry.esm.js +204 -0
- package/eds-login.entry.esm.js +66 -45
- package/eds-logo-variations.entry.esm.js +1 -1
- package/eds-logo.entry.esm.js +87 -0
- package/eds-modal.entry.esm.js +129 -0
- package/eds-navigator.entry.esm.js +5 -5
- package/eds-pagination_2.entry.esm.js +15 -16
- package/eds-progress-bar.entry.esm.js +7 -2
- package/eds-rating.entry.esm.js +28 -18
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-social-networks.entry.esm.js +74 -0
- package/eds-steps.entry.esm.js +98 -0
- package/eds-svg-repository.entry.esm.js +1 -1
- package/eds-switch.entry.esm.js +58 -0
- package/eds-tab.entry.esm.js +1 -1
- package/eds-tabs-content.entry.esm.js +5 -5
- package/eds-tabs.entry.esm.js +4 -4
- package/eds-timeline.entry.esm.js +4 -4
- package/eds-tooltip.entry.esm.js +4 -5
- package/eds-trl.entry.esm.js +2 -2
- package/eds-user.entry.esm.js +118 -0
- package/eds-vertical-stepper.entry.esm.js +81 -0
- package/incorrect-use-of-colors.entry.esm.js +7 -7
- package/index.esm.js +1 -1
- package/index.esm2.js +63 -9
- package/{keycloak-13893af6.esm.js → keycloak-d502ec16.esm.js} +219 -168
- package/logo-space.entry.esm.js +4 -4
- package/logo-variations-horizontal_2.entry.esm.js +26 -26
- package/logo-wrong-usage.entry.esm.js +37 -37
- package/package.json +1 -1
- package/src/components.d.ts +3 -0
- package/token-list_3.entry.esm.js +5 -5
- package/token-ratios.entry.esm.js +3 -3
- package/token-spacing.entry.esm.js +26 -26
- package/token-typography.entry.esm.js +2 -2
- package/color-bb472c37.esm.js +0 -423
- package/eds-accordion_33.entry.esm.js +0 -369
- package/eds-card-section.entry.esm.js +0 -70
- package/eds-matomo-notice.entry.esm.js +0 -129
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
|
|
6
|
+
const EdsFrame = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.frameLabel = undefined;
|
|
10
|
+
this.urlLabel = 'Open in Storybook';
|
|
11
|
+
this.errorMessage = 'Could not load the requested Storybook content. Please check the URL or try again later.';
|
|
12
|
+
this.storybookUrl = undefined;
|
|
13
|
+
this.storyPath = undefined;
|
|
14
|
+
this.intent = 'strong';
|
|
15
|
+
this.tiny = false;
|
|
16
|
+
this.size = 'auto';
|
|
17
|
+
this.bg = true;
|
|
18
|
+
this.iframeError = false;
|
|
19
|
+
}
|
|
20
|
+
articleClasses() {
|
|
21
|
+
return [this.tiny ? 'min-h-120' : 'min-h-156', this.bg ? 'bg-inverse' : 'bg-default', 'rounded border-softer effect-focus-within relative flex grow flex-col border-2', 'w-full h-full'].join(' ');
|
|
22
|
+
}
|
|
23
|
+
getFrameHeight() {
|
|
24
|
+
switch (this.size) {
|
|
25
|
+
case 'sm':
|
|
26
|
+
return '100px';
|
|
27
|
+
case 'md':
|
|
28
|
+
return '200px';
|
|
29
|
+
case 'lg':
|
|
30
|
+
return '400px';
|
|
31
|
+
case 'xl':
|
|
32
|
+
return '700px';
|
|
33
|
+
default:
|
|
34
|
+
return 'auto';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async checkIframeAvailability() {
|
|
38
|
+
try {
|
|
39
|
+
const response = await fetch(this.frameSrc, {
|
|
40
|
+
method: 'GET'
|
|
41
|
+
});
|
|
42
|
+
if (!response.ok) {
|
|
43
|
+
throw new Error('Failed to load');
|
|
44
|
+
}
|
|
45
|
+
} catch (error) {
|
|
46
|
+
this.iframeError = true;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
componentWillLoad() {
|
|
50
|
+
this.checkIframeAvailability();
|
|
51
|
+
}
|
|
52
|
+
componentDidLoad() {
|
|
53
|
+
// Emit context for each eds-link element after the component is fully loaded
|
|
54
|
+
const links = this.el.querySelectorAll('eds-link');
|
|
55
|
+
links.forEach(link => {
|
|
56
|
+
this.emitContext(link);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
61
|
+
* This event provides context information about the breadcrumb component.
|
|
62
|
+
*
|
|
63
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
64
|
+
*/
|
|
65
|
+
emitContext(linkElement) {
|
|
66
|
+
const event = new CustomEvent('parentContext', {
|
|
67
|
+
detail: {
|
|
68
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
69
|
+
identifier: this.frameLabel
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
linkElement.dispatchEvent(event);
|
|
73
|
+
}
|
|
74
|
+
get storyLink() {
|
|
75
|
+
return `${this.storybookUrl}/?path=/story/${this.storyPath}`;
|
|
76
|
+
}
|
|
77
|
+
get frameSrc() {
|
|
78
|
+
return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
return h("div", {
|
|
82
|
+
key: '20786dd40414d29f98d496e29720bd78b9d7cf8e',
|
|
83
|
+
class: this.articleClasses()
|
|
84
|
+
}, h("div", {
|
|
85
|
+
key: '208612330c9d2872c68aeb310e164c8a915a51ef',
|
|
86
|
+
class: "effect-height flex items-center justify-between py-8 px-12"
|
|
87
|
+
}, h("span", {
|
|
88
|
+
key: 'ada2a40384ffaffadc8887580aa6184422008a68',
|
|
89
|
+
class: "f-ui-02"
|
|
90
|
+
}, this.frameLabel), !this.iframeError ? h("eds-link", {
|
|
91
|
+
label: this.urlLabel,
|
|
92
|
+
url: this.storyLink,
|
|
93
|
+
intent: this.intent,
|
|
94
|
+
class: "ml-auto",
|
|
95
|
+
external: true,
|
|
96
|
+
disabled: false,
|
|
97
|
+
icon: "arrow-diagonal"
|
|
98
|
+
}) : null), h("div", {
|
|
99
|
+
key: '26a5ae1c81b60b05b6f4859ffa4dbd13bb2557f3',
|
|
100
|
+
class: "border-softer border-t-2"
|
|
101
|
+
}, this.iframeError ? h("div", {
|
|
102
|
+
class: "container ml-8 mr-8 mt-16"
|
|
103
|
+
}, this.errorMessage) : h("iframe", {
|
|
104
|
+
src: this.frameSrc,
|
|
105
|
+
width: "100%",
|
|
106
|
+
height: this.getFrameHeight(),
|
|
107
|
+
title: this.frameLabel,
|
|
108
|
+
frameBorder: "0",
|
|
109
|
+
allowFullScreen: true
|
|
110
|
+
})));
|
|
111
|
+
}
|
|
112
|
+
get el() {
|
|
113
|
+
return getElement(this);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { EdsFrame as eds_frame };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
|
|
6
|
+
const edsFullscreenMenuCss = "";
|
|
7
|
+
const EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
8
|
+
const EdsFullscreenMenu = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.menuClose = createEvent(this, "menuClose", 7);
|
|
12
|
+
this.links = undefined;
|
|
13
|
+
this.menuLinks = undefined;
|
|
14
|
+
this.homeUrl = '/';
|
|
15
|
+
this.inverseHeader = false;
|
|
16
|
+
this.isMenuOpen = false;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Listens for the toggleMenu event to open or close the menu.
|
|
20
|
+
* This event is emitted by the eds-header component.
|
|
21
|
+
*/
|
|
22
|
+
handleToggleMenu(event) {
|
|
23
|
+
this.isMenuOpen = event.detail; // Set isMenuOpen based on the event payload
|
|
24
|
+
}
|
|
25
|
+
/** Opens the menu */
|
|
26
|
+
openMenu() {
|
|
27
|
+
this.isMenuOpen = true;
|
|
28
|
+
}
|
|
29
|
+
/** Closes the menu */
|
|
30
|
+
closeMenu() {
|
|
31
|
+
this.isMenuOpen = false;
|
|
32
|
+
this.menuClose.emit();
|
|
33
|
+
}
|
|
34
|
+
// Lifecycle method to add the resize event listener when component loads
|
|
35
|
+
componentDidLoad() {
|
|
36
|
+
window.addEventListener('resize', this.handleResize.bind(this));
|
|
37
|
+
}
|
|
38
|
+
// Lifecycle method to remove the resize event listener when component unloads
|
|
39
|
+
disconnectedCallback() {
|
|
40
|
+
window.removeEventListener('resize', this.handleResize.bind(this));
|
|
41
|
+
}
|
|
42
|
+
// Function to close the menu if screen width is larger than a defined breakpoint (1024px)
|
|
43
|
+
handleResize() {
|
|
44
|
+
if (window.innerWidth >= 1024) {
|
|
45
|
+
this.isMenuOpen = false;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Parses the `links` prop into an array of link objects.
|
|
50
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
51
|
+
*
|
|
52
|
+
* @returns {any[]} Array of parsed link objects
|
|
53
|
+
*/
|
|
54
|
+
get parsedLinks() {
|
|
55
|
+
if (typeof this.links === 'object') {
|
|
56
|
+
return this.links;
|
|
57
|
+
} else if (typeof this.links === 'string') {
|
|
58
|
+
try {
|
|
59
|
+
return JSON.parse(this.links);
|
|
60
|
+
} catch (e) {
|
|
61
|
+
// eslint-disable-next-line
|
|
62
|
+
console.error('Error parsing links prop:', e);
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return [];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Parses the `menuLinks` prop into an array of link objects.
|
|
70
|
+
* Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
|
|
71
|
+
*
|
|
72
|
+
* @returns {any[]} Array of parsed menu link objects
|
|
73
|
+
*/
|
|
74
|
+
get parsedMenuLinks() {
|
|
75
|
+
if (typeof this.menuLinks === 'object') {
|
|
76
|
+
return this.menuLinks;
|
|
77
|
+
} else if (typeof this.menuLinks === 'string') {
|
|
78
|
+
try {
|
|
79
|
+
return JSON.parse(this.menuLinks);
|
|
80
|
+
} catch (e) {
|
|
81
|
+
// eslint-disable-next-line
|
|
82
|
+
console.error('Error parsing menuLinks prop:', e);
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return [];
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
return this.isMenuOpen ? h("div", {
|
|
90
|
+
class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll"
|
|
91
|
+
}, h("div", {
|
|
92
|
+
class: "flex min-h-full flex-col"
|
|
93
|
+
}, h("div", {
|
|
94
|
+
class: `bg-default w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}`
|
|
95
|
+
}, h("div", {
|
|
96
|
+
class: "mx-auto flex items-center justify-between"
|
|
97
|
+
}, h("div", {
|
|
98
|
+
class: "mr-auto w-[200px] h-[85px]"
|
|
99
|
+
}, h("eds-logo", {
|
|
100
|
+
type: this.inverseHeader ? 'color-white' : 'color',
|
|
101
|
+
href: this.homeUrl
|
|
102
|
+
})), h("div", {
|
|
103
|
+
class: "px-16"
|
|
104
|
+
}, h("eds-button", {
|
|
105
|
+
"aria-label": "Close menu",
|
|
106
|
+
intent: "ghostInverse",
|
|
107
|
+
icon: "close",
|
|
108
|
+
onClick: () => this.closeMenu()
|
|
109
|
+
})))), h("div", {
|
|
110
|
+
class: "py-16 px-16"
|
|
111
|
+
}, h("nav", {
|
|
112
|
+
class: "mt-28 flex flex-col gap-y-8"
|
|
113
|
+
}, this.parsedLinks.map((link, index) => h("eds-link", {
|
|
114
|
+
label: link.label,
|
|
115
|
+
key: index,
|
|
116
|
+
url: link.url,
|
|
117
|
+
intent: "tertiary",
|
|
118
|
+
size: "large",
|
|
119
|
+
class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",
|
|
120
|
+
onClick: () => this.closeMenu(),
|
|
121
|
+
icon: "arrow-right"
|
|
122
|
+
}))), h("eds-block-break", null), h("nav", {
|
|
123
|
+
class: "mt-28 flex flex-col gap-y-8"
|
|
124
|
+
}, this.parsedMenuLinks.map((link, index) => h("eds-link", {
|
|
125
|
+
label: link.label,
|
|
126
|
+
key: index,
|
|
127
|
+
url: link.url,
|
|
128
|
+
intent: "tertiary",
|
|
129
|
+
size: "large",
|
|
130
|
+
class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit",
|
|
131
|
+
onClick: () => this.closeMenu(),
|
|
132
|
+
icon: "chevron-right"
|
|
133
|
+
})))), h("div", {
|
|
134
|
+
class: "mt-auto"
|
|
135
|
+
}, h("eds-footer", {
|
|
136
|
+
social: true,
|
|
137
|
+
"extra-class": "bg-darker"
|
|
138
|
+
})))) : null;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
EdsFullscreenMenu.style = EdsFullscreenMenuStyle0;
|
|
142
|
+
|
|
143
|
+
export { EdsFullscreenMenu as eds_fullscreen_menu };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index.esm2.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
|
|
6
|
+
const edsHeaderCss = "";
|
|
7
|
+
const EdsHeaderStyle0 = edsHeaderCss;
|
|
8
|
+
const EdsHeader = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.toggleMenu = createEvent(this, "toggleMenu", 7);
|
|
12
|
+
this.homeUrl = '/';
|
|
13
|
+
this.links = undefined;
|
|
14
|
+
this.inverseHeader = false;
|
|
15
|
+
this.menuEnabled = false;
|
|
16
|
+
this.isMenuOpen = false;
|
|
17
|
+
this.isUserMenuOpen = false;
|
|
18
|
+
this.isAuthenticated = false;
|
|
19
|
+
}
|
|
20
|
+
onAuthStatusChanged(event) {
|
|
21
|
+
var _a;
|
|
22
|
+
this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Lifecycle method that runs when the component has fully loaded.
|
|
26
|
+
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
27
|
+
*/
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
// Emit context for each eds-link element after the component is fully loaded
|
|
30
|
+
const links = this.hostEl.querySelectorAll('eds-link');
|
|
31
|
+
links.forEach(link => {
|
|
32
|
+
this.emitContext(link);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
37
|
+
* This event provides context information about the breadcrumb component.
|
|
38
|
+
*
|
|
39
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
40
|
+
*/
|
|
41
|
+
emitContext(linkElement) {
|
|
42
|
+
const event = new CustomEvent('parentContext', {
|
|
43
|
+
detail: {
|
|
44
|
+
componentName: this.hostEl.tagName.toLowerCase(),
|
|
45
|
+
identifier: null
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
linkElement.dispatchEvent(event);
|
|
49
|
+
}
|
|
50
|
+
/** Emits an event to open or close the menu */
|
|
51
|
+
handleToggleMenu() {
|
|
52
|
+
this.toggleMenu.emit(!this.isMenuOpen);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Toggles the visibility of the user menu.
|
|
56
|
+
* Opens the user menu if closed, and closes it if open.
|
|
57
|
+
*/
|
|
58
|
+
toggleUserMenu() {
|
|
59
|
+
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Parses the `links` prop into an array of link objects.
|
|
63
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
64
|
+
*
|
|
65
|
+
* @returns {any[]} Array of parsed link objects
|
|
66
|
+
*/
|
|
67
|
+
get parsedLinks() {
|
|
68
|
+
// If it's already an array, return it immediately.
|
|
69
|
+
if (Array.isArray(this.links)) {
|
|
70
|
+
return this.links;
|
|
71
|
+
}
|
|
72
|
+
if (typeof this.links === 'object') {
|
|
73
|
+
return this.links;
|
|
74
|
+
} else if (typeof this.links === 'string') {
|
|
75
|
+
try {
|
|
76
|
+
return JSON.parse(this.links);
|
|
77
|
+
} catch (e) {
|
|
78
|
+
// eslint-disable-next-line
|
|
79
|
+
console.error('Error parsing links prop:', e);
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
return h("header", {
|
|
87
|
+
key: '8447435914bd3cdf61ce03f2a6bc646fd6b39b01',
|
|
88
|
+
class: `flex items-center justify-between relative z-10
|
|
89
|
+
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}`
|
|
90
|
+
}, h("div", {
|
|
91
|
+
key: '2a7a525d9ec5f86437212ab5b6c60c901e1f69a8',
|
|
92
|
+
class: "mr-auto w-[200px] h-[85px]"
|
|
93
|
+
}, h("eds-logo", {
|
|
94
|
+
key: '29381ef7d9f600690a373a09be30b2dea6d5b936',
|
|
95
|
+
type: this.inverseHeader ? 'color-white' : 'color',
|
|
96
|
+
href: this.homeUrl
|
|
97
|
+
})), this.parsedLinks && h("nav", {
|
|
98
|
+
key: '8085c6dfa6dadce3d7eefb45505e9c9404fd422d',
|
|
99
|
+
class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex"
|
|
100
|
+
}, h("ul", {
|
|
101
|
+
key: 'cb8442be1efc058dc46c283c85e50c58dd627f3e',
|
|
102
|
+
class: "flex gap-x-2"
|
|
103
|
+
}, this.parsedLinks.map(link => h("eds-link", {
|
|
104
|
+
label: link.label,
|
|
105
|
+
"aria-label": link.label,
|
|
106
|
+
url: link.url,
|
|
107
|
+
intent: "ghost",
|
|
108
|
+
size: "small",
|
|
109
|
+
icon: link.icon,
|
|
110
|
+
external: link.external,
|
|
111
|
+
"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"
|
|
112
|
+
})))), h("slot", {
|
|
113
|
+
key: '5d39561f4f43641640cc3f5d01edd35ebde794e3'
|
|
114
|
+
}), this.menuEnabled ? h("div", {
|
|
115
|
+
class: "md:hidden flex overflow-hidden px-16"
|
|
116
|
+
}, h("eds-button", {
|
|
117
|
+
"aria-label": "Menu",
|
|
118
|
+
intent: "ghostInverse",
|
|
119
|
+
icon: "menu",
|
|
120
|
+
size: "small",
|
|
121
|
+
onClick: () => this.handleToggleMenu()
|
|
122
|
+
})) : null);
|
|
123
|
+
}
|
|
124
|
+
get hostEl() {
|
|
125
|
+
return getElement(this);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
EdsHeader.style = EdsHeaderStyle0;
|
|
129
|
+
|
|
130
|
+
export { EdsHeader as eds_header };
|
package/eds-icon-eu.entry.esm.js
CHANGED