@ebrains/react 0.8.0-alpha.0 → 0.9.0-beta
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/README.md +7 -0
- package/bookmark-c200037c.esm.js +16 -0
- package/color-primary-palette_6.entry.esm.js +163 -141
- package/{eds-components-section.entry.esm.js → components-section.entry.esm.js} +22 -18
- package/correct-use-of-colors.entry.esm.js +49 -49
- package/{eds-docs-palettes.entry.esm.js → docs-palettes.entry.esm.js} +3 -3
- package/{eds-docs-tokens.entry.esm.js → docs-tokens.entry.esm.js} +3 -3
- package/eds-accordion.entry.esm.js +132 -0
- package/eds-app-root.entry.esm.js +4 -4
- package/{eds-accordion_17.entry.esm.js → eds-avatar_24.entry.esm.js} +128 -49
- package/eds-card-desc_3.entry.esm.js +1 -1
- package/eds-cookies-preference.entry.esm.js +2 -2
- package/eds-feedback.entry.esm.js +9 -9
- package/eds-frame.entry.esm.js +9 -15
- package/eds-icon-bluesky.entry.esm.js +1 -1
- package/eds-icon-bookmark.entry.esm.js +21 -0
- 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-external.entry.esm.js +21 -0
- 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-minus.entry.esm.js +21 -0
- package/eds-icon-more.entry.esm.js +1 -1
- package/eds-icon-paper.entry.esm.js +21 -0
- package/eds-icon-plus.entry.esm.js +21 -0
- package/eds-icon-portal.entry.esm.js +21 -0
- package/eds-icon-private.entry.esm.js +21 -0
- package/eds-icon-public.entry.esm.js +21 -0
- package/eds-icon-search.entry.esm.js +1 -1
- package/eds-icon-star.entry.esm.js +1 -1
- package/eds-icon-success.entry.esm.js +1 -1
- package/eds-icon-thumbs-down.entry.esm.js +1 -1
- package/eds-icon-thumbs-up.entry.esm.js +1 -1
- package/eds-icon-tutorial.entry.esm.js +21 -0
- package/eds-icon-twitter.entry.esm.js +1 -1
- package/eds-icon-unknown.entry.esm.js +21 -0
- package/eds-icon-updown.entry.esm.js +21 -0
- package/eds-icon-user.entry.esm.js +1 -1
- package/eds-icon-youtube.entry.esm.js +1 -1
- package/eds-login_2.entry.esm.js +27 -15
- package/eds-matomo-notice.entry.esm.js +162 -0
- package/eds-modal.entry.esm.js +13 -13
- package/eds-pagination_2.entry.esm.js +12 -12
- package/eds-progress-bar.entry.esm.js +2 -2
- package/eds-rating.entry.esm.js +1 -1
- package/eds-section-core_2.entry.esm.js +5 -5
- package/eds-spinner.entry.esm.js +3 -3
- package/eds-switch.entry.esm.js +5 -5
- package/eds-tabs.entry.esm.js +4 -4
- package/eds-timeline.entry.esm.js +5 -5
- package/eds-toast-manager.entry.esm.js +1 -1
- package/eds-tooltip.entry.esm.js +3 -3
- package/eds-trl.entry.esm.js +2 -2
- package/incorrect-use-of-colors.entry.esm.js +9 -9
- package/index.esm.js +1 -1
- package/index.esm2.js +58 -30
- package/logo-space.entry.esm.js +28 -12
- package/logo-variations-horizontal_2.entry.esm.js +73 -66
- package/{eds-logo-variations.entry.esm.js → logo-variations-tabs.entry.esm.js} +3 -3
- package/logo-wrong-usage.entry.esm.js +71 -107
- package/minus-b30a7c71.esm.js +11 -0
- package/package.json +1 -1
- package/paper-8e74ea31.esm.js +15 -0
- package/plus-89c07be2.esm.js +12 -0
- package/portal-d6c8ce56.esm.js +18 -0
- package/private-1c25ff8e.esm.js +25 -0
- package/public-d4d8c585.esm.js +16 -0
- package/src/components.d.ts +0 -2
- package/{eds-svg-repository.entry.esm.js → svg-repository.entry.esm.js} +29 -28
- package/token-list_3.entry.esm.js +9 -9
- package/token-ratios.entry.esm.js +3 -3
- package/token-typography.entry.esm.js +10 -7
- package/tutotial-150ee1fd.esm.js +27 -0
- package/unknown-ed01a24c.esm.js +22 -0
- package/up-and-down-d747abee.esm.js +12 -0
- package/eds-form.entry.esm.js +0 -473
- package/eds-input_7.entry.esm.js +0 -569
- package/token-spacing.entry.esm.js +0 -93
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index.esm2.js';
|
|
2
|
+
import { m as matomoOptIn, a as matomoOptOut } from './analytics-44b1416b.esm.js';
|
|
3
|
+
import 'react';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
|
|
7
|
+
const edsMatomoNoticeCss = ".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.z-\\[999999\\]{z-index:999999}.left-0{left:0rem}.left-1\\/2{left:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}";
|
|
8
|
+
const EdsMatomoNoticeStyle0 = edsMatomoNoticeCss;
|
|
9
|
+
const EdsMatomoNotice = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
registerInstance(this, hostRef);
|
|
12
|
+
this.consent = createEvent(this, "consent", 7);
|
|
13
|
+
this.title = 'Analytics Consent';
|
|
14
|
+
this.description = "We use anonymous analytics to improve our services. No data is collected unless you give your consent. If you don't wish to send data right now, you can always re-enable analytics later by clicking the Cookies Preference button in the footer. However, by opting in today, you're joining a community that shapes our product's future—all while keeping your data completely anonymous.";
|
|
15
|
+
this.optOutMessage = "You are already part of our community, and your anonymous data helps shape our product's future! Rest assured, your privacy is fully protected.";
|
|
16
|
+
this.forceShow = false;
|
|
17
|
+
this.showNotice = true;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Listens for global custom events to open the matomo-consent.
|
|
21
|
+
*/
|
|
22
|
+
toggleCookiesConsent() {
|
|
23
|
+
this.showNotice = !this.showNotice;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Checks if the consent cookie exists.
|
|
27
|
+
*/
|
|
28
|
+
hasCookieConsent() {
|
|
29
|
+
return !!document.cookie.split('; ').find(row => row.startsWith('mtm_consent='));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Checks if the user has opted out after has opted in.
|
|
33
|
+
*/
|
|
34
|
+
optedOut() {
|
|
35
|
+
return !!document.cookie.split('; ').find(row => row.startsWith('mtm_consent_removed'));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Generate a unique storage key based on appId or the app's domain.
|
|
39
|
+
*/
|
|
40
|
+
getStorageKey() {
|
|
41
|
+
return `${window.location.host}-matomo-deferred`;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check cookies and sessionStorage (unless forceShow is true) to decide if the notice should be shown.
|
|
45
|
+
*/
|
|
46
|
+
componentWillLoad() {
|
|
47
|
+
// If a decision has been made previously (opted in or out), don't show the notice.
|
|
48
|
+
const consentGiven = localStorage.getItem('matomo-consent-given');
|
|
49
|
+
if (consentGiven === 'out' || this.optedOut()) {
|
|
50
|
+
this.showNotice = false;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (this.forceShow) {
|
|
54
|
+
// If forceShow is true, always show the notice
|
|
55
|
+
this.showNotice = true;
|
|
56
|
+
} else {
|
|
57
|
+
// If user has already consented, hide the notice
|
|
58
|
+
// eslint-disable-next-line
|
|
59
|
+
if (this.hasCookieConsent()) {
|
|
60
|
+
this.showNotice = false;
|
|
61
|
+
} else {
|
|
62
|
+
// Otherwise check if user deferred in this session
|
|
63
|
+
const sessionDeferred = sessionStorage.getItem(this.getStorageKey());
|
|
64
|
+
this.showNotice = !sessionDeferred;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
componentDidLoad() {
|
|
69
|
+
const btns = this.el.shadowRoot.querySelectorAll('eds-button');
|
|
70
|
+
btns.forEach(b => {
|
|
71
|
+
this.emitContext(b);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
emitContext(linkElement) {
|
|
75
|
+
const event = new CustomEvent('parentContext', {
|
|
76
|
+
detail: {
|
|
77
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
78
|
+
identifier: null
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
linkElement.dispatchEvent(event);
|
|
82
|
+
}
|
|
83
|
+
optInAnalytics() {
|
|
84
|
+
matomoOptIn();
|
|
85
|
+
localStorage.removeItem('matomo-consent-given');
|
|
86
|
+
this.hideNotice();
|
|
87
|
+
this.consent.emit('in');
|
|
88
|
+
}
|
|
89
|
+
optOutAnalytics() {
|
|
90
|
+
matomoOptOut();
|
|
91
|
+
this.hideNotice();
|
|
92
|
+
this.consent.emit('out');
|
|
93
|
+
}
|
|
94
|
+
noThanks() {
|
|
95
|
+
localStorage.setItem('matomo-consent-given', 'out');
|
|
96
|
+
this.hideNotice();
|
|
97
|
+
}
|
|
98
|
+
deferDecision() {
|
|
99
|
+
sessionStorage.setItem(this.getStorageKey(), 'true');
|
|
100
|
+
this.hideNotice();
|
|
101
|
+
this.consent.emit('defer');
|
|
102
|
+
}
|
|
103
|
+
keepMeIn() {
|
|
104
|
+
this.hideNotice();
|
|
105
|
+
}
|
|
106
|
+
hideNotice() {
|
|
107
|
+
this.showNotice = false;
|
|
108
|
+
}
|
|
109
|
+
render() {
|
|
110
|
+
if (!this.showNotice) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
return h("div", {
|
|
114
|
+
class: "fixed bottom-0 p-8 z-[999999] grow md:left-1/2 md:-translate-x-1/2 md:-translate-y-1/2 justify-center"
|
|
115
|
+
}, h("eds-accordion", {
|
|
116
|
+
title: this.title,
|
|
117
|
+
description: this.hasCookieConsent() ? this.optOutMessage : this.description,
|
|
118
|
+
switchBg: true,
|
|
119
|
+
expanded: true
|
|
120
|
+
}, this.hasCookieConsent() ? h("div", {
|
|
121
|
+
class: "flex items-center gap-4"
|
|
122
|
+
}, this.optedOut() ? h("eds-button", {
|
|
123
|
+
intent: "primary",
|
|
124
|
+
label: "Opt me in again",
|
|
125
|
+
"aria-label": "Opt me in again",
|
|
126
|
+
onClick: () => this.optInAnalytics()
|
|
127
|
+
}) : h("eds-button", {
|
|
128
|
+
intent: "primary",
|
|
129
|
+
label: "Keep Me In",
|
|
130
|
+
"aria-label": "Keep Me In",
|
|
131
|
+
onClick: () => this.keepMeIn()
|
|
132
|
+
}), h("eds-button", {
|
|
133
|
+
intent: "ghostInverse",
|
|
134
|
+
label: "Opt-out",
|
|
135
|
+
"aria-label": "Opt-out from analytics",
|
|
136
|
+
onClick: () => this.optOutAnalytics()
|
|
137
|
+
})) : h("div", {
|
|
138
|
+
class: "flex items-center gap-4"
|
|
139
|
+
}, h("eds-button", {
|
|
140
|
+
intent: "primary",
|
|
141
|
+
label: "I agree",
|
|
142
|
+
"aria-label": "Opt-in for analytics",
|
|
143
|
+
onClick: () => this.optInAnalytics()
|
|
144
|
+
}), h("eds-button", {
|
|
145
|
+
intent: "ghost",
|
|
146
|
+
label: "No, thanks",
|
|
147
|
+
"aria-label": "Opt-out from analytics",
|
|
148
|
+
onClick: () => this.noThanks()
|
|
149
|
+
}), h("eds-button", {
|
|
150
|
+
intent: "ghost",
|
|
151
|
+
label: "Ask me later",
|
|
152
|
+
"aria-label": "Defer analytics decision",
|
|
153
|
+
onClick: () => this.deferDecision()
|
|
154
|
+
}))));
|
|
155
|
+
}
|
|
156
|
+
get el() {
|
|
157
|
+
return getElement(this);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
EdsMatomoNotice.style = EdsMatomoNoticeStyle0;
|
|
161
|
+
|
|
162
|
+
export { EdsMatomoNotice as eds_matomo_notice };
|
package/eds-modal.entry.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'react';
|
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react-dom';
|
|
6
6
|
|
|
7
|
-
const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
|
|
7
|
+
const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.z-50{z-index:50}.z-9999999{z-index:9999999}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:gap-y-12{row-gap:0.75rem}}";
|
|
8
8
|
const EdsModalStyle0 = edsModalCss;
|
|
9
9
|
const EdsModal = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -27,16 +27,16 @@ const EdsModal = class {
|
|
|
27
27
|
getModalPositionClasses() {
|
|
28
28
|
switch (this.position) {
|
|
29
29
|
case 'top':
|
|
30
|
-
return 'left-1/2 top-20
|
|
30
|
+
return 'md:left-1/2 top-20 md:-translate-x-1/2';
|
|
31
31
|
case 'bottom':
|
|
32
|
-
return 'left-1/2 bottom-20
|
|
32
|
+
return 'md:left-1/2 bottom-20 md:-translate-x-1/2';
|
|
33
33
|
case 'left':
|
|
34
34
|
return 'left-20 top-1/2 -translate-y-1/2';
|
|
35
35
|
case 'right':
|
|
36
36
|
return 'right-20 top-1/2 -translate-y-1/2';
|
|
37
37
|
case 'middle':
|
|
38
38
|
default:
|
|
39
|
-
return 'left-1/2 top-1/2
|
|
39
|
+
return 'md:left-1/2 top-1/2 md:-translate-x-1/2 -translate-y-1/2';
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
@@ -97,40 +97,40 @@ const EdsModal = class {
|
|
|
97
97
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
98
98
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
99
99
|
return h("div", {
|
|
100
|
-
key: '
|
|
100
|
+
key: 'eb2b985e84912dabea52a9a62eb908087004c958',
|
|
101
101
|
id: "eds-modal",
|
|
102
|
-
class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-
|
|
102
|
+
class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`,
|
|
103
103
|
role: "dialog",
|
|
104
104
|
"aria-modal": "true",
|
|
105
105
|
"aria-labelledby": titleId
|
|
106
106
|
}, this.isOpen && h("div", {
|
|
107
|
-
key: '
|
|
107
|
+
key: 'ad47334539d1a8a8694f34ba1e90a38b7dce07ab',
|
|
108
108
|
class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
109
109
|
,
|
|
110
110
|
|
|
111
111
|
onClick: () => this.close()
|
|
112
112
|
}), h("div", {
|
|
113
|
-
key: '
|
|
113
|
+
key: '69d449b6ec986b5cfd73e50cc060363236035915',
|
|
114
114
|
class: `container max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center`
|
|
115
115
|
}, h("div", {
|
|
116
|
-
key: '
|
|
116
|
+
key: '17395806ef17a06b5465174055087178db9f5356',
|
|
117
117
|
class: "flex justify-between items-center border-b-2 border-softer pb-8"
|
|
118
118
|
}, h("span", {
|
|
119
|
-
key: '
|
|
119
|
+
key: 'daa5d63b73eab57b9b58ca06d0197f1a7002ca15',
|
|
120
120
|
id: titleId,
|
|
121
121
|
class: `f-heading-04 text-lighter ${this.getTruncateClass()}`
|
|
122
122
|
}, this.title), h("eds-button", {
|
|
123
|
-
key: '
|
|
123
|
+
key: '267ee7d1f10819c19af5eed6715465f2ba5f4831',
|
|
124
124
|
intent: "tertiary",
|
|
125
125
|
icon: "close",
|
|
126
126
|
"aria-label": "Close modal",
|
|
127
127
|
onClick: () => this.close(),
|
|
128
128
|
"extra-class": "ml-8"
|
|
129
129
|
})), h("div", {
|
|
130
|
-
key: '
|
|
130
|
+
key: 'fbd3351c851ab1089035117cca2b3ad769c26d18',
|
|
131
131
|
class: "pt-8"
|
|
132
132
|
}, h("slot", {
|
|
133
|
-
key: '
|
|
133
|
+
key: '9958a61e24320183bef12aef381791f11e421597'
|
|
134
134
|
}))));
|
|
135
135
|
}
|
|
136
136
|
get el() {
|
|
@@ -172,12 +172,12 @@ const EdsPagination = class {
|
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
174
|
return h("div", {
|
|
175
|
-
key: '
|
|
175
|
+
key: 'b33415e05457ccc78ea3744a1baa9affbf38ca4a'
|
|
176
176
|
}, this.total > 0 && this.mode === 'default' && h("p", {
|
|
177
|
-
key: '
|
|
177
|
+
key: 'e555e94a3fd13cf0d57108bd2cca3fb97cd0c688',
|
|
178
178
|
class: "f-ui-03 text-lightest mb-28 w-full text-center"
|
|
179
179
|
}, h("span", {
|
|
180
|
-
key: '
|
|
180
|
+
key: 'c63f1d5aa6154a23d714c74dcd9a0a75b68df579',
|
|
181
181
|
class: "sr-only"
|
|
182
182
|
}, "Results:"), this.pageResults()), this.mode === 'navigator' || this.lastPage && this.lastPage > 1 ? h("nav", {
|
|
183
183
|
"aria-label": "Pagination"
|
|
@@ -424,9 +424,9 @@ const EdsTable = class {
|
|
|
424
424
|
const paginatedRows = this.getPaginatedRows();
|
|
425
425
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
426
426
|
return h("div", {
|
|
427
|
-
key: '
|
|
427
|
+
key: '43add2309d8e2c85c98676709cd87fc07e4de017'
|
|
428
428
|
}, this.searchEnabled && h("div", {
|
|
429
|
-
key: '
|
|
429
|
+
key: '1213d8aaa8a2402bd1705e03375d17f570877d5e'
|
|
430
430
|
}, h("eds-input-field", {
|
|
431
431
|
key: 1,
|
|
432
432
|
name: "search",
|
|
@@ -436,15 +436,15 @@ const EdsTable = class {
|
|
|
436
436
|
// @ts-ignore
|
|
437
437
|
onInput: event => this.handleSearch(event)
|
|
438
438
|
})), h("div", {
|
|
439
|
-
key: '
|
|
439
|
+
key: 'a2ec6392ed99a527e4de46a9018bc1ea9b383ecb',
|
|
440
440
|
class: "mt-20"
|
|
441
441
|
}, h("table", {
|
|
442
|
-
key: '
|
|
442
|
+
key: 'ef79ce872f0cb1439dd6a7987f24cac005ac23ea',
|
|
443
443
|
class: "block overflow-x-auto mt-6 p-0"
|
|
444
444
|
}, h("thead", {
|
|
445
|
-
key: '
|
|
445
|
+
key: '0853a09e45f748b4bc85e319cbb08efd97426617'
|
|
446
446
|
}, h("tr", {
|
|
447
|
-
key: '
|
|
447
|
+
key: '64e114ae3661a027e9ab744ba45801d98f2faee9',
|
|
448
448
|
class: "m-0 p-0 border border-softer even:bg-inverse-softer"
|
|
449
449
|
}, this.columns.map(column => {
|
|
450
450
|
var _a;
|
|
@@ -455,7 +455,7 @@ const EdsTable = class {
|
|
|
455
455
|
}
|
|
456
456
|
}, column);
|
|
457
457
|
}))), h("tbody", {
|
|
458
|
-
key: '
|
|
458
|
+
key: '1afd468551bab11221bbfc70d0f19f4e105e7432'
|
|
459
459
|
}, paginatedRows.map(row => h("tr", {
|
|
460
460
|
class: "m-0 p-0 border border-softer even:bg-inverse-softer"
|
|
461
461
|
}, this.columns.map(column => {
|
|
@@ -467,10 +467,10 @@ const EdsTable = class {
|
|
|
467
467
|
}
|
|
468
468
|
}, this.renderCell(row[column], column));
|
|
469
469
|
})))))), this.shouldEnablePagination() && h("div", {
|
|
470
|
-
key: '
|
|
470
|
+
key: 'c415ded700580eec2464a72a1659bd8be5bcacb3',
|
|
471
471
|
class: "mt-20"
|
|
472
472
|
}, h("eds-pagination", {
|
|
473
|
-
key: '
|
|
473
|
+
key: '81088574b7c7fd254e07761ceed6cd1d69c2f2ed',
|
|
474
474
|
currentPage: this.currentPage,
|
|
475
475
|
lastPage: lastPage,
|
|
476
476
|
perPage: this.rowsPerPage,
|
|
@@ -20,7 +20,7 @@ const EdsProgressBar = class {
|
|
|
20
20
|
render() {
|
|
21
21
|
const progressValue = this.value;
|
|
22
22
|
return h("div", {
|
|
23
|
-
key: '
|
|
23
|
+
key: '9a7fa42058034305b22818d464e7b633d7831d67',
|
|
24
24
|
role: "progressbar",
|
|
25
25
|
"aria-valuemin": "0",
|
|
26
26
|
"aria-valuemax": "100",
|
|
@@ -28,7 +28,7 @@ const EdsProgressBar = class {
|
|
|
28
28
|
"aria-valuetext": `${progressValue}%`,
|
|
29
29
|
class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden"
|
|
30
30
|
}, h("div", {
|
|
31
|
-
key: '
|
|
31
|
+
key: '90b0ac9a538b575a30163c0dbbf437e1cfe8ce39',
|
|
32
32
|
class: `inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02`,
|
|
33
33
|
style: {
|
|
34
34
|
width: `${progressValue}%`
|
package/eds-rating.entry.esm.js
CHANGED
|
@@ -15,13 +15,13 @@ const EdsSectionCore = class {
|
|
|
15
15
|
render() {
|
|
16
16
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
17
17
|
return h(TagType, {
|
|
18
|
-
key: '
|
|
18
|
+
key: '39c4280156ca46b83538de499baa9b152360b1b4'
|
|
19
19
|
}, h("eds-section-heading", {
|
|
20
|
-
key: '
|
|
20
|
+
key: '34da742e606f0e9bb485faac8aba1519eccc8934',
|
|
21
21
|
headingLevel: this.headingLevel,
|
|
22
22
|
sectionTitle: this.sectionTitle
|
|
23
23
|
}), h("slot", {
|
|
24
|
-
key: '
|
|
24
|
+
key: '517b8ecc112565e8c6bb0bf85b02525deaa6f9df'
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
@@ -52,7 +52,7 @@ const EdsSectionHeading = class {
|
|
|
52
52
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
53
53
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
54
54
|
return h(TagType, {
|
|
55
|
-
key: '
|
|
55
|
+
key: '961a672dc3b656b0a308131a2d334aca51df77f6',
|
|
56
56
|
class: {
|
|
57
57
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
58
58
|
container: this.withContainer,
|
|
@@ -60,7 +60,7 @@ const EdsSectionHeading = class {
|
|
|
60
60
|
'pt-28': !this.spacingLarge
|
|
61
61
|
}
|
|
62
62
|
}, h(HeadingTag, {
|
|
63
|
-
key: '
|
|
63
|
+
key: '42eb2ccfba8c83cf140967e39fead6ebddc3a279',
|
|
64
64
|
class: this.getHeadingClass()
|
|
65
65
|
}, this.sectionTitle));
|
|
66
66
|
}
|
package/eds-spinner.entry.esm.js
CHANGED
|
@@ -50,13 +50,13 @@ const EdsSpinner = class {
|
|
|
50
50
|
justifyContent: 'center'
|
|
51
51
|
};
|
|
52
52
|
return h(Host, {
|
|
53
|
-
key: '
|
|
53
|
+
key: '1e1e4ea2734fff8a680e55ca5163e69d2000a55d'
|
|
54
54
|
}, h("div", {
|
|
55
|
-
key: '
|
|
55
|
+
key: 'acf09f69d43404f317240c0d24e644ec0d046cd7',
|
|
56
56
|
class: "spinner-overlay",
|
|
57
57
|
style: overlayStyle
|
|
58
58
|
}, h("span", {
|
|
59
|
-
key: '
|
|
59
|
+
key: '3728629fdff738a0b753cd499dc26052b1e3cb7b',
|
|
60
60
|
class: "spinner",
|
|
61
61
|
style: spinnerStyle
|
|
62
62
|
})));
|
package/eds-switch.entry.esm.js
CHANGED
|
@@ -25,13 +25,13 @@ const EdsSwitch = class {
|
|
|
25
25
|
// Compute an accessible name based on state.
|
|
26
26
|
const accessibleLabel = this.labelOn || this.labelOff ? this.checked ? this.labelOn : this.labelOff : 'Toggle switch';
|
|
27
27
|
return h("div", {
|
|
28
|
-
key: '
|
|
28
|
+
key: '842d7ecb771ab848481c9f1f6a1aa2f5f04505a7',
|
|
29
29
|
class: "switch-container"
|
|
30
30
|
}, this.labelOff && h("span", {
|
|
31
|
-
key: '
|
|
31
|
+
key: 'f20f4293896dcbde94346e82d10ed748bdeae0f6',
|
|
32
32
|
class: "switch-label switch-label--off"
|
|
33
33
|
}, this.labelOff), h("button", {
|
|
34
|
-
key: '
|
|
34
|
+
key: 'ac485fe118bae7f6a42ddb9f7edeccba2224312c',
|
|
35
35
|
type: "button",
|
|
36
36
|
role: "switch",
|
|
37
37
|
"aria-checked": this.checked ? 'true' : 'false',
|
|
@@ -45,10 +45,10 @@ const EdsSwitch = class {
|
|
|
45
45
|
onClick: this.toggleSwitch,
|
|
46
46
|
disabled: this.disabled
|
|
47
47
|
}, h("span", {
|
|
48
|
-
key: '
|
|
48
|
+
key: '3701615162b3b8946fa5b9040e77dfa20b7de3fe',
|
|
49
49
|
class: "switch-handle"
|
|
50
50
|
})), this.labelOn && h("span", {
|
|
51
|
-
key: '
|
|
51
|
+
key: 'b57bd428c7d6818bcec1f069a920a7aa2a2e776d',
|
|
52
52
|
class: "switch-label switch-label--on"
|
|
53
53
|
}, this.labelOn));
|
|
54
54
|
}
|