@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.
Files changed (93) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/eds-accordion.cjs.entry.js +4 -4
  5. package/dist/cjs/{eds-avatar_24.cjs.entry.js → eds-avatar_26.cjs.entry.js} +186 -5
  6. package/dist/cjs/{eds-card-desc_3.cjs.entry.js → eds-card-desc_2.cjs.entry.js} +0 -35
  7. package/dist/cjs/eds-card-generic.cjs.entry.js +2 -2
  8. package/dist/cjs/eds-matomo-notice.cjs.entry.js +2 -2
  9. package/dist/cjs/eds-modal.cjs.entry.js +5 -5
  10. package/dist/cjs/eds-section-core_2.cjs.entry.js +2 -2
  11. package/dist/cjs/eds-switch.cjs.entry.js +2 -2
  12. package/dist/cjs/eds-tabs.cjs.entry.js +5 -5
  13. package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
  14. package/dist/cjs/index-2f63169d.js +4 -8
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/components/eds-accordion/eds-accordion.js +5 -5
  17. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +8 -1
  18. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +5 -0
  19. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
  20. package/dist/collection/components/eds-link/eds-link.css +6 -6
  21. package/dist/collection/components/eds-modal/eds-modal.js +6 -6
  22. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +5 -2
  23. package/dist/collection/components/eds-switch/eds-switch.js +3 -3
  24. package/dist/collection/components/eds-tag/eds-tag.css +45 -0
  25. package/dist/collection/components/eds-tag/eds-tag.js +31 -5
  26. package/dist/collection/components/eds-tag/eds-tag.stories.js +11 -4
  27. package/dist/collection/components/eds-timeline/eds-timeline.css +20 -0
  28. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +3 -3
  29. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +3 -3
  30. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +20 -0
  31. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +5 -5
  32. package/dist/collection/shared-ui/eds-user/eds-user.css +20 -0
  33. package/dist/components/components.css +20 -0
  34. package/dist/components/components.esm.js +1 -1
  35. package/dist/components/eds-accordion2.js +5 -5
  36. package/dist/components/eds-breadcrumb.js +8 -1
  37. package/dist/components/eds-card-generic2.js +2 -2
  38. package/dist/components/eds-link2.js +1 -1
  39. package/dist/components/eds-matomo-notice2.js +3 -3
  40. package/dist/components/eds-modal.js +6 -6
  41. package/dist/components/eds-section-heading2.js +2 -2
  42. package/dist/components/eds-social-networks2.js +3 -3
  43. package/dist/components/eds-switch.js +2 -2
  44. package/dist/components/eds-tabs.js +6 -6
  45. package/dist/components/eds-tag2.js +15 -6
  46. package/dist/components/eds-timeline.js +1 -1
  47. package/dist/components/eds-user.js +1 -1
  48. package/dist/components/p-0467ceb5.entry.js +1 -0
  49. package/dist/components/{p-424ba743.entry.js → p-1309a74c.entry.js} +1 -1
  50. package/dist/components/p-4620ebf5.entry.js +1 -0
  51. package/dist/components/{p-bcbc7b7f.entry.js → p-94b1f974.entry.js} +1 -1
  52. package/dist/components/p-b931a634.entry.js +1 -0
  53. package/dist/components/{p-9cbcccf8.entry.js → p-c5c782e7.entry.js} +1 -1
  54. package/dist/components/p-c99745a8.entry.js +1 -0
  55. package/dist/components/p-e42eb100.entry.js +1 -0
  56. package/dist/components/{p-59d963d1.entry.js → p-e710c860.entry.js} +1 -1
  57. package/dist/components/p-f4ce515a.entry.js +1 -0
  58. package/dist/esm/components.js +1 -1
  59. package/dist/esm/eds-accordion.entry.js +4 -4
  60. package/dist/esm/{eds-avatar_24.entry.js → eds-avatar_26.entry.js} +185 -6
  61. package/dist/esm/{eds-card-desc_3.entry.js → eds-card-desc_2.entry.js} +1 -35
  62. package/dist/esm/eds-card-generic.entry.js +2 -2
  63. package/dist/esm/eds-matomo-notice.entry.js +2 -2
  64. package/dist/esm/eds-modal.entry.js +5 -5
  65. package/dist/esm/eds-section-core_2.entry.js +2 -2
  66. package/dist/esm/eds-switch.entry.js +2 -2
  67. package/dist/esm/eds-tabs.entry.js +5 -5
  68. package/dist/esm/eds-timeline.entry.js +1 -1
  69. package/dist/esm/index-8a71b9a7.js +4 -8
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/hydrate/index.js +59 -40
  72. package/dist/hydrate/index.mjs +59 -40
  73. package/dist/stencil.config.js +16 -1
  74. package/dist/types/components/eds-accordion/eds-accordion.d.ts +1 -1
  75. package/dist/types/components/eds-modal/eds-modal.d.ts +1 -1
  76. package/dist/types/components/eds-section/eds-section-heading/eds-section-heading.d.ts +3 -0
  77. package/dist/types/components/eds-switch/eds-switch.d.ts +1 -1
  78. package/dist/types/components/eds-tag/eds-tag.d.ts +5 -1
  79. package/dist/types/components/eds-tag/eds-tag.stories.d.ts +7 -0
  80. package/dist/types/components.d.ts +40 -64
  81. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +1 -1
  82. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  83. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +1 -1
  84. package/package.json +3 -3
  85. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -139
  86. package/dist/components/p-032f9f64.entry.js +0 -1
  87. package/dist/components/p-058cf100.entry.js +0 -1
  88. package/dist/components/p-1b4e9576.entry.js +0 -1
  89. package/dist/components/p-30a319d5.entry.js +0 -1
  90. package/dist/components/p-85ad681a.entry.js +0 -1
  91. package/dist/components/p-b47d115d.entry.js +0 -1
  92. package/dist/components/p-b55b0091.entry.js +0 -1
  93. package/dist/esm/eds-breadcrumb.entry.js +0 -135
@@ -1,5 +1,4 @@
1
1
  import { r as registerInstance, h } from './index-8a71b9a7.js';
2
- import { c as cva } from './index-39c58238.js';
3
2
 
4
3
  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}";
5
4
  const EdsCardDescStyle0 = edsCardDescCss;
@@ -71,37 +70,4 @@ const EdsCardTitle = class {
71
70
  };
72
71
  EdsCardTitle.style = EdsCardTitleStyle0;
73
72
 
74
- 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)}";
75
- const EdsTagStyle0 = edsTagCss;
76
-
77
- // Define the CVA for the tag styles
78
- const tagStyles = cva(['f-ui-05 py-1 px-4 border-2 rounded-pill'], // Base classes
79
- {
80
- variants: {
81
- intent: {
82
- default: 'border-default',
83
- strong: 'text-inverse bg-strongest border-default',
84
- accent: 'text-[#0034CB] border-[#0034CB]',
85
- weak: 'text-light bg-strongest-soft border-transparent',
86
- inverse: 'border-inverse text-inverse',
87
- 'inverse-strong': 'bg-inverse border-inverse text-lighter'
88
- }
89
- },
90
- defaultVariants: {
91
- intent: 'default'
92
- }
93
- });
94
- const EdsTag = class {
95
- constructor(hostRef) {
96
- registerInstance(this, hostRef);
97
- this.label = undefined;
98
- this.intent = 'default';
99
- }
100
- render() {
101
- const classes = tagStyles({ intent: this.intent });
102
- return h("span", { key: '55a6039b040436e5dded9aaf1007668b97091ba3', class: classes }, this.label);
103
- }
104
- };
105
- EdsTag.style = EdsTagStyle0;
106
-
107
- export { EdsCardDesc as eds_card_desc, EdsCardTitle as eds_card_title, EdsTag as eds_tag };
73
+ export { EdsCardDesc as eds_card_desc, EdsCardTitle as eds_card_title };
@@ -2,7 +2,7 @@ import { r as registerInstance, h, g as getElement } from './index-8a71b9a7.js';
2
2
  import { p as parseData } from './sharedUtils-a550989c.js';
3
3
  import { s as sendAnalytics } from './analytics-44b1416b.js';
4
4
 
5
- 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}";
5
+ 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}";
6
6
  const EdsCardGenericStyle0 = edsCardGenericCss;
7
7
 
8
8
  const EdsCardGeneric = class {
@@ -79,7 +79,7 @@ const EdsCardGeneric = class {
79
79
  });
80
80
  }
81
81
  render() {
82
- return (h("article", { key: '440a448c841370838c0c66610bd1266b46f66541', class: this.articleClasses(), onClick: () => this.handleClick() }, 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 && (h("eds-card-desc", { key: '4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (h("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (h("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, h("div", { key: 'cb5c191f6c190fb6edb46446187dbf6b8c1b778b', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (h("eds-tag", { key: index, intent: tag.style, label: tag.label })))), ' '));
82
+ return (h("article", { key: '440a448c841370838c0c66610bd1266b46f66541', class: this.articleClasses(), onClick: () => this.handleClick() }, 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 && (h("eds-card-desc", { key: '4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (h("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (h("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, h("div", { key: '8bdcbbe2982a450843e9ada727e3f6eb62872ae1', class: "flex flex-wrap gap-y-4 gap-x-1" }, this.parsedTags.map((tag, index) => (h("eds-tag", { key: index, intent: tag.style, label: tag.label })))), ' '));
83
83
  }
84
84
  get el() { return getElement(this); }
85
85
  };
@@ -8,7 +8,7 @@ const EdsMatomoNotice = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
10
  this.consent = createEvent(this, "consent", 7);
11
- this.title = 'Analytics Consent';
11
+ this.heading = 'Analytics Consent';
12
12
  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.";
13
13
  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.";
14
14
  this.forceShow = false;
@@ -110,7 +110,7 @@ const EdsMatomoNotice = class {
110
110
  if (!this.showNotice) {
111
111
  return null;
112
112
  }
113
- return (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" }, h("eds-accordion", { title: this.title, description: this.hasCookieConsent() ? this.optOutMessage : this.description, switchBg: true, expanded: true }, this.hasCookieConsent() ? (h("div", { class: "flex items-center gap-4" }, this.optedOut() ? (h("eds-button", { intent: "primary", label: "Opt me in again", "aria-label": "Opt me in again", onClick: () => this.optInAnalytics() })) : (h("eds-button", { intent: "primary", label: "Keep Me In", "aria-label": "Keep Me In", onClick: () => this.keepMeIn() })), h("eds-button", { intent: "ghostInverse", label: "Opt-out", "aria-label": "Opt-out from analytics", onClick: () => this.optOutAnalytics() }))) : (h("div", { class: "flex items-center gap-4" }, h("eds-button", { intent: "primary", label: "I agree", "aria-label": "Opt-in for analytics", onClick: () => this.optInAnalytics() }), h("eds-button", { intent: "ghost", label: "No, thanks", "aria-label": "Opt-out from analytics", onClick: () => this.noThanks() }), h("eds-button", { intent: "ghost", label: "Ask me later", "aria-label": "Defer analytics decision", onClick: () => this.deferDecision() }))))));
113
+ return (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" }, h("eds-accordion", { title: this.heading, description: this.hasCookieConsent() ? this.optOutMessage : this.description, switchBg: true, expanded: true }, this.hasCookieConsent() ? (h("div", { class: "flex items-center gap-4" }, this.optedOut() ? (h("eds-button", { intent: "primary", label: "Opt me in again", "aria-label": "Opt me in again", onClick: () => this.optInAnalytics() })) : (h("eds-button", { intent: "primary", label: "Keep Me In", "aria-label": "Keep Me In", onClick: () => this.keepMeIn() })), h("eds-button", { intent: "ghostInverse", label: "Opt-out", "aria-label": "Opt-out from analytics", onClick: () => this.optOutAnalytics() }))) : (h("div", { class: "flex items-center gap-4" }, h("eds-button", { intent: "primary", label: "I agree", "aria-label": "Opt-in for analytics", onClick: () => this.optInAnalytics() }), h("eds-button", { intent: "ghost", label: "No, thanks", "aria-label": "Opt-out from analytics", onClick: () => this.noThanks() }), h("eds-button", { intent: "ghost", label: "Ask me later", "aria-label": "Defer analytics decision", onClick: () => this.deferDecision() }))))));
114
114
  }
115
115
  get el() { return getElement(this); }
116
116
  };
@@ -8,7 +8,7 @@ const EdsModal = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
10
  this.isOpen = false;
11
- this.title = '';
11
+ this.heading = '';
12
12
  this.truncate = true;
13
13
  this.truncateLines = '1';
14
14
  this.position = 'middle';
@@ -47,7 +47,7 @@ const EdsModal = class {
47
47
  category: 'ui-component',
48
48
  parentContext: null,
49
49
  tag: this.el.tagName.toLowerCase(),
50
- name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
50
+ name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
51
51
  action: 'opened'
52
52
  });
53
53
  }
@@ -61,7 +61,7 @@ const EdsModal = class {
61
61
  category: 'ui-component',
62
62
  parentContext: null,
63
63
  tag: this.el.tagName.toLowerCase(),
64
- name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
64
+ name: ((_a = this.heading) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
65
65
  action: 'closed'
66
66
  });
67
67
  }
@@ -94,9 +94,9 @@ const EdsModal = class {
94
94
  render() {
95
95
  // Generate a unique id for the title so we can reference it for aria-labelledby.
96
96
  const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
97
- return (h("div", { key: 'eb2b985e84912dabea52a9a62eb908087004c958', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (h("div", { key: 'ad47334539d1a8a8694f34ba1e90a38b7dce07ab', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
97
+ return (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 && (h("div", { key: 'c0df46234deb0945ba266e8f36a0b3944bd6d7bd', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
98
98
  ,
99
- onClick: () => this.close() })), h("div", { key: '69d449b6ec986b5cfd73e50cc060363236035915', class: `container max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, h("div", { key: '17395806ef17a06b5465174055087178db9f5356', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, h("span", { key: 'daa5d63b73eab57b9b58ca06d0197f1a7002ca15', id: titleId, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), h("eds-button", { key: '267ee7d1f10819c19af5eed6715465f2ba5f4831', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), h("div", { key: 'fbd3351c851ab1089035117cca2b3ad769c26d18', class: "pt-8" }, h("slot", { key: '9958a61e24320183bef12aef381791f11e421597' })))));
99
+ onClick: () => this.close() })), 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` }, h("div", { key: '80102734c692934c486fd2e2d707286dd5660c69', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, h("span", { key: 'b98138881f6eb4ee1fad3614eda4c91e5349b563', id: titleId, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.heading), h("eds-button", { key: '82f08e8ec6cbcb291c5d984ae97622d364bff5d0', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), h("div", { key: '2ea2fc21a8b734c40b1de4a20025a50f7369d375', class: "pt-8" }, h("slot", { key: 'ca0fa40b4076af9eea37c6b088d26751173e815c' })))));
100
100
  }
101
101
  get el() { return getElement(this); }
102
102
  };
@@ -42,12 +42,12 @@ const EdsSectionHeading = class {
42
42
  render() {
43
43
  const TagType = this.tag; // Dynamically set tag type for the container
44
44
  const HeadingTag = this.headingLevel; // Dynamically set heading level
45
- return (h(TagType, { key: '961a672dc3b656b0a308131a2d334aca51df77f6', class: {
45
+ return (h(TagType, { key: '346654c0118e056276162b42723c6c163712ab4f', class: {
46
46
  'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
47
47
  container: this.withContainer,
48
48
  'pt-48': this.spacingLarge,
49
49
  'pt-28': !this.spacingLarge
50
- } }, h(HeadingTag, { key: '42eb2ccfba8c83cf140967e39fead6ebddc3a279', class: this.getHeadingClass() }, this.sectionTitle)));
50
+ } }, h(HeadingTag, { key: 'c7d17fc22b3926495c799da0bc8bde7dc949e46a', class: this.getHeadingClass() }, this.sectionTitle)));
51
51
  }
52
52
  };
53
53
 
@@ -6,13 +6,13 @@ const EdsSwitchStyle0 = edsSwitchCss;
6
6
  const EdsSwitch = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- this.change = createEvent(this, "change", 7);
9
+ this.toggle = createEvent(this, "toggle", 7);
10
10
  this.toggleSwitch = () => {
11
11
  if (this.disabled) {
12
12
  return;
13
13
  }
14
14
  this.checked = !this.checked;
15
- this.change.emit(this.checked);
15
+ this.toggle.emit(this.checked);
16
16
  };
17
17
  this.checked = false;
18
18
  this.disabled = false;