@ebrains/components 0.9.0-beta → 0.9.1-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/LICENSE +21 -0
- package/README.md +9 -0
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/eds-accordion.cjs.entry.js +4 -4
- package/dist/cjs/{eds-avatar_24.cjs.entry.js → eds-avatar_26.cjs.entry.js} +186 -5
- package/dist/cjs/{eds-card-desc_3.cjs.entry.js → eds-card-desc_2.cjs.entry.js} +0 -35
- package/dist/cjs/eds-card-generic.cjs.entry.js +2 -2
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +2 -2
- package/dist/cjs/eds-modal.cjs.entry.js +5 -5
- package/dist/cjs/eds-section-core_2.cjs.entry.js +2 -2
- package/dist/cjs/eds-switch.cjs.entry.js +2 -2
- package/dist/cjs/eds-tabs.cjs.entry.js +5 -5
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/index-2f63169d.js +4 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +5 -5
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +8 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +5 -0
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
- package/dist/collection/components/eds-link/eds-link.css +6 -6
- package/dist/collection/components/eds-modal/eds-modal.js +6 -6
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +5 -2
- package/dist/collection/components/eds-switch/eds-switch.js +3 -3
- package/dist/collection/components/eds-tag/eds-tag.css +45 -0
- package/dist/collection/components/eds-tag/eds-tag.js +31 -5
- package/dist/collection/components/eds-tag/eds-tag.stories.js +11 -4
- package/dist/collection/components/eds-timeline/eds-timeline.css +20 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +3 -3
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +3 -3
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +20 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +5 -5
- package/dist/collection/shared-ui/eds-user/eds-user.css +20 -0
- package/dist/components/components.css +20 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/eds-accordion2.js +5 -5
- package/dist/components/eds-breadcrumb.js +8 -1
- package/dist/components/eds-card-generic2.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-matomo-notice2.js +3 -3
- package/dist/components/eds-modal.js +6 -6
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +3 -3
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-tabs.js +6 -6
- package/dist/components/eds-tag2.js +15 -6
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-user.js +1 -1
- package/dist/components/p-0467ceb5.entry.js +1 -0
- package/dist/components/{p-424ba743.entry.js → p-1309a74c.entry.js} +1 -1
- package/dist/components/p-4620ebf5.entry.js +1 -0
- package/dist/components/{p-bcbc7b7f.entry.js → p-94b1f974.entry.js} +1 -1
- package/dist/components/p-b931a634.entry.js +1 -0
- package/dist/components/{p-9cbcccf8.entry.js → p-c5c782e7.entry.js} +1 -1
- package/dist/components/p-c99745a8.entry.js +1 -0
- package/dist/components/p-e42eb100.entry.js +1 -0
- package/dist/components/{p-59d963d1.entry.js → p-e710c860.entry.js} +1 -1
- package/dist/components/p-f4ce515a.entry.js +1 -0
- package/dist/esm/components.js +1 -1
- package/dist/esm/eds-accordion.entry.js +4 -4
- package/dist/esm/{eds-avatar_24.entry.js → eds-avatar_26.entry.js} +185 -6
- package/dist/esm/{eds-card-desc_3.entry.js → eds-card-desc_2.entry.js} +1 -35
- package/dist/esm/eds-card-generic.entry.js +2 -2
- package/dist/esm/eds-matomo-notice.entry.js +2 -2
- package/dist/esm/eds-modal.entry.js +5 -5
- package/dist/esm/eds-section-core_2.entry.js +2 -2
- package/dist/esm/eds-switch.entry.js +2 -2
- package/dist/esm/eds-tabs.entry.js +5 -5
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/index-8a71b9a7.js +4 -8
- package/dist/esm/loader.js +1 -1
- package/dist/hydrate/index.js +59 -40
- package/dist/hydrate/index.mjs +59 -40
- package/dist/stencil.config.js +16 -1
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +1 -1
- package/dist/types/components/eds-modal/eds-modal.d.ts +1 -1
- package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +3 -0
- package/dist/types/components/eds-switch/eds-switch.d.ts +1 -1
- package/dist/types/components/eds-tag/eds-tag.d.ts +5 -1
- package/dist/types/components/eds-tag/eds-tag.stories.d.ts +7 -0
- package/dist/types/components.d.ts +40 -64
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +1 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -139
- package/dist/components/p-032f9f64.entry.js +0 -1
- package/dist/components/p-058cf100.entry.js +0 -1
- package/dist/components/p-1b4e9576.entry.js +0 -1
- package/dist/components/p-30a319d5.entry.js +0 -1
- package/dist/components/p-85ad681a.entry.js +0 -1
- package/dist/components/p-b47d115d.entry.js +0 -1
- package/dist/components/p-b55b0091.entry.js +0 -1
- package/dist/esm/eds-breadcrumb.entry.js +0 -135
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2f63169d.js');
|
|
6
|
-
const index$1 = require('./index-ab9fbefe.js');
|
|
7
6
|
|
|
8
7
|
const edsCardDescCss = ".f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.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}";
|
|
9
8
|
const EdsCardDescStyle0 = edsCardDescCss;
|
|
@@ -75,39 +74,5 @@ const EdsCardTitle = class {
|
|
|
75
74
|
};
|
|
76
75
|
EdsCardTitle.style = EdsCardTitleStyle0;
|
|
77
76
|
|
|
78
|
-
const edsTagCss = ".f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.py-1{padding-top:0.0625rem;padding-bottom:0.0625rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.border-2{border-width:2px}.rounded-pill{border-radius:100px}.border-default{border:2px solid var(--black)}.text-inverse{color:var(--white)}.bg-strongest{background-color:var(--black)}.text-\\[\\#0034CB\\]{--tw-text-opacity:1;color:rgb(0 52 203 / var(--tw-text-opacity))}.border-\\[\\#0034CB\\]{--tw-border-opacity:1;border:2px solid rgb(0 52 203 / var(--tw-border-opacity))}.text-light{color:var(--grey-700)}.bg-strongest-soft{background-color:rgba(0, 0, 0, .05)}.border-transparent{border-color:var(--transparent)}.border-inverse{border-color:var(--white)}.bg-inverse{background-color:var(--white)}.text-lighter{color:var(--grey-600)}";
|
|
79
|
-
const EdsTagStyle0 = edsTagCss;
|
|
80
|
-
|
|
81
|
-
// Define the CVA for the tag styles
|
|
82
|
-
const tagStyles = index$1.cva(['f-ui-05 py-1 px-4 border-2 rounded-pill'], // Base classes
|
|
83
|
-
{
|
|
84
|
-
variants: {
|
|
85
|
-
intent: {
|
|
86
|
-
default: 'border-default',
|
|
87
|
-
strong: 'text-inverse bg-strongest border-default',
|
|
88
|
-
accent: 'text-[#0034CB] border-[#0034CB]',
|
|
89
|
-
weak: 'text-light bg-strongest-soft border-transparent',
|
|
90
|
-
inverse: 'border-inverse text-inverse',
|
|
91
|
-
'inverse-strong': 'bg-inverse border-inverse text-lighter'
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
defaultVariants: {
|
|
95
|
-
intent: 'default'
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
const EdsTag = class {
|
|
99
|
-
constructor(hostRef) {
|
|
100
|
-
index.registerInstance(this, hostRef);
|
|
101
|
-
this.label = undefined;
|
|
102
|
-
this.intent = 'default';
|
|
103
|
-
}
|
|
104
|
-
render() {
|
|
105
|
-
const classes = tagStyles({ intent: this.intent });
|
|
106
|
-
return index.h("span", { key: '55a6039b040436e5dded9aaf1007668b97091ba3', class: classes }, this.label);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
EdsTag.style = EdsTagStyle0;
|
|
110
|
-
|
|
111
77
|
exports.eds_card_desc = EdsCardDesc;
|
|
112
78
|
exports.eds_card_title = EdsCardTitle;
|
|
113
|
-
exports.eds_tag = EdsTag;
|
|
@@ -6,7 +6,7 @@ const index = require('./index-2f63169d.js');
|
|
|
6
6
|
const sharedUtils = require('./sharedUtils-8e287250.js');
|
|
7
7
|
const analytics = require('./analytics-d8fb3fdd.js');
|
|
8
8
|
|
|
9
|
-
const edsCardGenericCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
|
|
9
|
+
const edsCardGenericCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-x-1{-moz-column-gap:0.0625rem;column-gap:0.0625rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
|
|
10
10
|
const EdsCardGenericStyle0 = edsCardGenericCss;
|
|
11
11
|
|
|
12
12
|
const EdsCardGeneric = class {
|
|
@@ -83,7 +83,7 @@ const EdsCardGeneric = class {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return (index.h("article", { key: '440a448c841370838c0c66610bd1266b46f66541', class: this.articleClasses(), onClick: () => this.handleClick() }, index.h("eds-card-title", { key: '292d93a9a993c6dcbfd276097a21d3984b1794c4', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && (index.h("eds-card-desc", { key: '4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (index.h("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (index.h("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, index.h("div", { key: '
|
|
86
|
+
return (index.h("article", { key: '440a448c841370838c0c66610bd1266b46f66541', class: this.articleClasses(), onClick: () => this.handleClick() }, index.h("eds-card-title", { key: '292d93a9a993c6dcbfd276097a21d3984b1794c4', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && (index.h("eds-card-desc", { key: '4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (index.h("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (index.h("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, index.h("div", { key: '8bdcbbe2982a450843e9ada727e3f6eb62872ae1', class: "flex flex-wrap gap-y-4 gap-x-1" }, this.parsedTags.map((tag, index$1) => (index.h("eds-tag", { key: index$1, intent: tag.style, label: tag.label })))), ' '));
|
|
87
87
|
}
|
|
88
88
|
get el() { return index.getElement(this); }
|
|
89
89
|
};
|
|
@@ -12,7 +12,7 @@ const EdsMatomoNotice = class {
|
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.consent = index.createEvent(this, "consent", 7);
|
|
15
|
-
this.
|
|
15
|
+
this.heading = 'Analytics Consent';
|
|
16
16
|
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.";
|
|
17
17
|
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.";
|
|
18
18
|
this.forceShow = false;
|
|
@@ -114,7 +114,7 @@ const EdsMatomoNotice = class {
|
|
|
114
114
|
if (!this.showNotice) {
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
return (index.h("div", { 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" }, index.h("eds-accordion", { title: this.
|
|
117
|
+
return (index.h("div", { 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" }, index.h("eds-accordion", { title: this.heading, description: this.hasCookieConsent() ? this.optOutMessage : this.description, switchBg: true, expanded: true }, this.hasCookieConsent() ? (index.h("div", { class: "flex items-center gap-4" }, this.optedOut() ? (index.h("eds-button", { intent: "primary", label: "Opt me in again", "aria-label": "Opt me in again", onClick: () => this.optInAnalytics() })) : (index.h("eds-button", { intent: "primary", label: "Keep Me In", "aria-label": "Keep Me In", onClick: () => this.keepMeIn() })), index.h("eds-button", { intent: "ghostInverse", label: "Opt-out", "aria-label": "Opt-out from analytics", onClick: () => this.optOutAnalytics() }))) : (index.h("div", { class: "flex items-center gap-4" }, index.h("eds-button", { intent: "primary", label: "I agree", "aria-label": "Opt-in for analytics", onClick: () => this.optInAnalytics() }), index.h("eds-button", { intent: "ghost", label: "No, thanks", "aria-label": "Opt-out from analytics", onClick: () => this.noThanks() }), index.h("eds-button", { intent: "ghost", label: "Ask me later", "aria-label": "Defer analytics decision", onClick: () => this.deferDecision() }))))));
|
|
118
118
|
}
|
|
119
119
|
get el() { return index.getElement(this); }
|
|
120
120
|
};
|
|
@@ -12,7 +12,7 @@ const EdsModal = class {
|
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.isOpen = false;
|
|
15
|
-
this.
|
|
15
|
+
this.heading = '';
|
|
16
16
|
this.truncate = true;
|
|
17
17
|
this.truncateLines = '1';
|
|
18
18
|
this.position = 'middle';
|
|
@@ -51,7 +51,7 @@ const EdsModal = class {
|
|
|
51
51
|
category: 'ui-component',
|
|
52
52
|
parentContext: null,
|
|
53
53
|
tag: this.el.tagName.toLowerCase(),
|
|
54
|
-
name: ((_a = this.
|
|
54
|
+
name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
55
55
|
action: 'opened'
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -65,7 +65,7 @@ const EdsModal = class {
|
|
|
65
65
|
category: 'ui-component',
|
|
66
66
|
parentContext: null,
|
|
67
67
|
tag: this.el.tagName.toLowerCase(),
|
|
68
|
-
name: ((_a = this.
|
|
68
|
+
name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
69
69
|
action: 'closed'
|
|
70
70
|
});
|
|
71
71
|
}
|
|
@@ -98,9 +98,9 @@ const EdsModal = class {
|
|
|
98
98
|
render() {
|
|
99
99
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
100
100
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
101
|
-
return (index.h("div", { key: '
|
|
101
|
+
return (index.h("div", { key: '3965b74182a1015d34ebc0d5692ab89de44774e6', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (index.h("div", { key: 'c0df46234deb0945ba266e8f36a0b3944bd6d7bd', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
102
102
|
,
|
|
103
|
-
onClick: () => this.close() })), index.h("div", { key: '
|
|
103
|
+
onClick: () => this.close() })), index.h("div", { key: '7fd65a4651ca67101b3a3e08ffd439070ccb8a96', class: `container max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, index.h("div", { key: '80102734c692934c486fd2e2d707286dd5660c69', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, index.h("span", { key: 'b98138881f6eb4ee1fad3614eda4c91e5349b563', id: titleId, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.heading), index.h("eds-button", { key: '82f08e8ec6cbcb291c5d984ae97622d364bff5d0', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), index.h("div", { key: '2ea2fc21a8b734c40b1de4a20025a50f7369d375', class: "pt-8" }, index.h("slot", { key: 'ca0fa40b4076af9eea37c6b088d26751173e815c' })))));
|
|
104
104
|
}
|
|
105
105
|
get el() { return index.getElement(this); }
|
|
106
106
|
};
|
|
@@ -46,12 +46,12 @@ const EdsSectionHeading = class {
|
|
|
46
46
|
render() {
|
|
47
47
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
48
48
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
49
|
-
return (index.h(TagType, { key: '
|
|
49
|
+
return (index.h(TagType, { key: '346654c0118e056276162b42723c6c163712ab4f', class: {
|
|
50
50
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
51
51
|
container: this.withContainer,
|
|
52
52
|
'pt-48': this.spacingLarge,
|
|
53
53
|
'pt-28': !this.spacingLarge
|
|
54
|
-
} }, index.h(HeadingTag, { key: '
|
|
54
|
+
} }, index.h(HeadingTag, { key: 'c7d17fc22b3926495c799da0bc8bde7dc949e46a', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -10,13 +10,13 @@ const EdsSwitchStyle0 = edsSwitchCss;
|
|
|
10
10
|
const EdsSwitch = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.
|
|
13
|
+
this.toggle = index.createEvent(this, "toggle", 7);
|
|
14
14
|
this.toggleSwitch = () => {
|
|
15
15
|
if (this.disabled) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
this.checked = !this.checked;
|
|
19
|
-
this.
|
|
19
|
+
this.toggle.emit(this.checked);
|
|
20
20
|
};
|
|
21
21
|
this.checked = false;
|
|
22
22
|
this.disabled = false;
|