@solid-design-system/components 3.14.0 → 3.14.1

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 (145) hide show
  1. package/dist/components/es/carousel.js +3 -3
  2. package/dist/components/umd/solid-components.js +13 -13
  3. package/dist/custom-elements.json +1 -1
  4. package/dist/package/components/carousel/carousel.d.ts +4 -2
  5. package/dist/package/components/carousel/carousel.js +53 -14
  6. package/dist/versioned-components/es/accordion-group.js +1 -1
  7. package/dist/versioned-components/es/accordion.js +1 -1
  8. package/dist/versioned-components/es/badge.js +1 -1
  9. package/dist/versioned-components/es/brandshape.js +1 -1
  10. package/dist/versioned-components/es/button.js +1 -1
  11. package/dist/versioned-components/es/carousel-item.js +1 -1
  12. package/dist/versioned-components/es/carousel.js +3 -3
  13. package/dist/versioned-components/es/checkbox-group.js +1 -1
  14. package/dist/versioned-components/es/checkbox.js +1 -1
  15. package/dist/versioned-components/es/dialog.js +1 -1
  16. package/dist/versioned-components/es/divider.js +1 -1
  17. package/dist/versioned-components/es/drawer.js +1 -1
  18. package/dist/versioned-components/es/dropdown.js +1 -1
  19. package/dist/versioned-components/es/expandable.js +1 -1
  20. package/dist/versioned-components/es/flipcard.js +1 -1
  21. package/dist/versioned-components/es/form.js +1 -1
  22. package/dist/versioned-components/es/header.js +1 -1
  23. package/dist/versioned-components/es/icon.js +1 -1
  24. package/dist/versioned-components/es/include.js +1 -1
  25. package/dist/versioned-components/es/input.js +1 -1
  26. package/dist/versioned-components/es/link.js +1 -1
  27. package/dist/versioned-components/es/map-marker.js +1 -1
  28. package/dist/versioned-components/es/navigation-item.js +1 -1
  29. package/dist/versioned-components/es/notification.js +1 -1
  30. package/dist/versioned-components/es/option.js +1 -1
  31. package/dist/versioned-components/es/quickfact.js +1 -1
  32. package/dist/versioned-components/es/radio-button.js +1 -1
  33. package/dist/versioned-components/es/radio-group.js +1 -1
  34. package/dist/versioned-components/es/radio.js +1 -1
  35. package/dist/versioned-components/es/scrollable.js +1 -1
  36. package/dist/versioned-components/es/select.js +3 -3
  37. package/dist/versioned-components/es/solid-components2.js +1 -1
  38. package/dist/versioned-components/es/spinner.js +1 -1
  39. package/dist/versioned-components/es/step-group.js +1 -1
  40. package/dist/versioned-components/es/step.js +1 -1
  41. package/dist/versioned-components/es/switch.js +1 -1
  42. package/dist/versioned-components/es/tab-group.js +1 -1
  43. package/dist/versioned-components/es/tab-panel.js +1 -1
  44. package/dist/versioned-components/es/tab.js +1 -1
  45. package/dist/versioned-components/es/tag.js +1 -1
  46. package/dist/versioned-components/es/teaser-media.js +1 -1
  47. package/dist/versioned-components/es/teaser.js +1 -1
  48. package/dist/versioned-components/es/textarea.js +1 -1
  49. package/dist/versioned-components/es/tooltip.js +2 -2
  50. package/dist/versioned-components/es/video.js +1 -1
  51. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  52. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  53. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  54. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  55. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  56. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  57. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  58. package/dist/versioned-package/components/badge/badge.js +1 -1
  59. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  60. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  61. package/dist/versioned-package/components/button/button.d.ts +1 -1
  62. package/dist/versioned-package/components/button/button.js +4 -4
  63. package/dist/versioned-package/components/carousel/carousel.d.ts +5 -3
  64. package/dist/versioned-package/components/carousel/carousel.js +59 -20
  65. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  66. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  67. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  68. package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
  69. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  70. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  71. package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
  72. package/dist/versioned-package/components/dialog/dialog.js +2 -2
  73. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  74. package/dist/versioned-package/components/divider/divider.js +2 -2
  75. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  76. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  77. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  78. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  79. package/dist/versioned-package/components/expandable/expandable.d.ts +1 -1
  80. package/dist/versioned-package/components/expandable/expandable.js +2 -2
  81. package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
  82. package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
  83. package/dist/versioned-package/components/header/header.d.ts +1 -1
  84. package/dist/versioned-package/components/header/header.js +4 -4
  85. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  86. package/dist/versioned-package/components/icon/icon.js +1 -1
  87. package/dist/versioned-package/components/include/include.d.ts +1 -1
  88. package/dist/versioned-package/components/include/include.js +1 -1
  89. package/dist/versioned-package/components/input/input.d.ts +1 -1
  90. package/dist/versioned-package/components/input/input.js +2 -2
  91. package/dist/versioned-package/components/link/link.d.ts +1 -1
  92. package/dist/versioned-package/components/link/link.js +2 -2
  93. package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
  94. package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
  95. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  96. package/dist/versioned-package/components/navigation-item/navigation-item.js +5 -5
  97. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  98. package/dist/versioned-package/components/notification/notification.js +5 -5
  99. package/dist/versioned-package/components/option/option.d.ts +1 -1
  100. package/dist/versioned-package/components/option/option.js +2 -2
  101. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  102. package/dist/versioned-package/components/popup/popup.js +1 -1
  103. package/dist/versioned-package/components/quickfact/quickfact.d.ts +1 -1
  104. package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
  105. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  106. package/dist/versioned-package/components/radio/radio.js +2 -2
  107. package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
  108. package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
  109. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  110. package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
  111. package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
  112. package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
  113. package/dist/versioned-package/components/select/select.d.ts +4 -4
  114. package/dist/versioned-package/components/select/select.js +25 -25
  115. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  116. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  117. package/dist/versioned-package/components/step/step.d.ts +1 -1
  118. package/dist/versioned-package/components/step/step.js +5 -5
  119. package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
  120. package/dist/versioned-package/components/step-group/step-group.js +2 -2
  121. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  122. package/dist/versioned-package/components/switch/switch.js +1 -1
  123. package/dist/versioned-package/components/tab/tab.d.ts +1 -1
  124. package/dist/versioned-package/components/tab/tab.js +2 -2
  125. package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
  126. package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
  127. package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
  128. package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
  129. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  130. package/dist/versioned-package/components/tag/tag.js +2 -2
  131. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  132. package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
  133. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  134. package/dist/versioned-package/components/textarea/textarea.js +2 -2
  135. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  136. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  137. package/dist/versioned-package/components/video/video.d.ts +1 -1
  138. package/dist/versioned-package/components/video/video.js +2 -2
  139. package/dist/versioned-package/internal/form.js +3 -3
  140. package/dist/versioned-package/styles/headline/headline.css.js +1 -1
  141. package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
  142. package/dist/versioned-styles/solid-styles.css +1 -1
  143. package/dist/vscode.html-custom-data.json +44 -44
  144. package/dist/web-types.json +53 -45
  145. package/package.json +3 -3
@@ -35,10 +35,11 @@ let SdCarousel = class extends SolidElement {
35
35
  this.slidesPerPage = 1;
36
36
  this.slidesPerMove = 1;
37
37
  this.activeSlide = 0;
38
+ this.currentPage = 1;
38
39
  this.pausedAutoplay = false;
39
40
  this.autoplayController = new AutoplayController(this, () => this.next());
40
41
  this.scrollController = new ScrollController(this);
41
- this.slides = this.getElementsByTagName("sd-3-14-0-carousel-item");
42
+ this.slides = this.getElementsByTagName("sd-3-14-1-carousel-item");
42
43
  this.intersectionObserverEntries = /* @__PURE__ */ new Map();
43
44
  this.localize = new LocalizeController(this);
44
45
  this.handleSlotChange = (mutations) => {
@@ -87,11 +88,14 @@ let SdCarousel = class extends SolidElement {
87
88
  this.mutationObserver = new MutationObserver(this.handleSlotChange);
88
89
  this.mutationObserver.observe(this, { childList: true, subtree: false });
89
90
  }
90
- getPageCount() {
91
- return Math.ceil(this.getSlides().length / this.slidesPerPage);
91
+ static getPageCount(totalSlides, slidesPerPage, slidesPerMove) {
92
+ return Math.ceil((totalSlides - slidesPerPage) / slidesPerMove) + 1 > 0 ? Math.ceil((totalSlides - slidesPerPage) / slidesPerMove) + 1 : (
93
+ // Returns 1 if the total number of slides is less than the number of slides per page
94
+ 1
95
+ );
92
96
  }
93
- getCurrentPage() {
94
- return Math.ceil(this.activeSlide / this.slidesPerPage);
97
+ static getCurrentPage(totalSlides, activeSlide, slidesPerPage, slidesPerMove) {
98
+ return Math.ceil((totalSlides - slidesPerPage) / slidesPerMove) - Math.ceil((totalSlides - slidesPerPage - activeSlide) / slidesPerMove) + 1;
95
99
  }
96
100
  getSlides({ excludeClones = true } = {}) {
97
101
  return [...this.slides].filter((slide) => !excludeClones || !slide.hasAttribute("data-clone"));
@@ -183,6 +187,12 @@ let SdCarousel = class extends SolidElement {
183
187
  this.goToSlide(this.activeSlide, "auto");
184
188
  }
185
189
  handelSlideChange() {
190
+ this.currentPage = SdCarousel.getCurrentPage(
191
+ this.getSlides().length,
192
+ this.activeSlide,
193
+ this.slidesPerPage,
194
+ this.slidesPerMove
195
+ );
186
196
  const slides = this.getSlides();
187
197
  slides.forEach((slide, i) => {
188
198
  slide.classList.toggle("--is-active", i === this.activeSlide);
@@ -195,6 +205,9 @@ let SdCarousel = class extends SolidElement {
195
205
  }
196
206
  });
197
207
  }
208
+ if (this.currentPage > SdCarousel.getPageCount(this.getSlides().length, this.slidesPerPage, this.slidesPerMove)) {
209
+ this.nextTillFirst();
210
+ }
198
211
  }
199
212
  handleSlidesPerMoveChange() {
200
213
  const slides = this.getSlides({ excludeClones: false });
@@ -226,7 +239,11 @@ let SdCarousel = class extends SolidElement {
226
239
  previousIndex -= 1;
227
240
  canSnap = Math.abs(previousIndex - this.slidesPerMove) % this.slidesPerMove === 0;
228
241
  }
229
- this.goToSlide(previousIndex, behavior);
242
+ if (this.currentPage - 1 === 0 && this.loop) {
243
+ this.goToSlide(this.activeSlide - this.slidesPerPage, behavior);
244
+ } else {
245
+ this.goToSlide(previousIndex, behavior);
246
+ }
230
247
  }
231
248
  /**
232
249
  * Move the carousel forward by `slides-per-move` slides.
@@ -234,7 +251,22 @@ let SdCarousel = class extends SolidElement {
234
251
  * @param behavior - The behavior used for scrolling.
235
252
  */
236
253
  next(behavior = "smooth") {
237
- this.goToSlide(this.activeSlide + this.slidesPerMove, behavior);
254
+ if (this.currentPage + 1 > SdCarousel.getPageCount(this.getSlides().length, this.slidesPerPage, this.slidesPerMove) && this.loop) {
255
+ this.nextTillFirst(behavior);
256
+ } else {
257
+ this.goToSlide(this.activeSlide + this.slidesPerMove, behavior);
258
+ }
259
+ }
260
+ nextTillFirst(behavior = "smooth") {
261
+ while (this.activeSlide !== 0) {
262
+ this.goToSlide(this.activeSlide + 1, behavior);
263
+ }
264
+ this.currentPage = SdCarousel.getCurrentPage(
265
+ this.getSlides().length,
266
+ this.activeSlide,
267
+ this.slidesPerPage,
268
+ this.slidesPerMove
269
+ );
238
270
  }
239
271
  /**
240
272
  * Scrolls the carousel to the slide specified by `index`.
@@ -248,7 +280,7 @@ let SdCarousel = class extends SolidElement {
248
280
  const slidesWithClones = this.getSlides({ excludeClones: false });
249
281
  const newActiveSlide = (index + slides.length) % slides.length;
250
282
  this.activeSlide = newActiveSlide;
251
- const nextSlideIndex = clamp(index + (loop ? slidesPerPage : 0), 0, slidesWithClones.length - 1);
283
+ const nextSlideIndex = clamp(index + (loop ? slidesPerPage : 0), 0, slidesWithClones.length + 1);
252
284
  const nextSlide = slidesWithClones[nextSlideIndex];
253
285
  const scrollContainerRect = scrollContainer.getBoundingClientRect();
254
286
  const nextSlideRect = nextSlide.getBoundingClientRect();
@@ -260,10 +292,15 @@ let SdCarousel = class extends SolidElement {
260
292
  }
261
293
  render() {
262
294
  const { scrollController, slidesPerPage } = this;
263
- const pagesCount = this.getPageCount();
264
- const currentPage = this.getCurrentPage();
265
- const prevEnabled = this.loop || currentPage > 0;
266
- const nextEnabled = this.loop || currentPage < pagesCount - 1;
295
+ const pagesCount = SdCarousel.getPageCount(this.getSlides().length, this.slidesPerPage, this.slidesPerMove);
296
+ const currentPage = SdCarousel.getCurrentPage(
297
+ this.getSlides().length,
298
+ this.activeSlide,
299
+ this.slidesPerPage,
300
+ this.slidesPerMove
301
+ );
302
+ const prevEnabled = this.loop || currentPage > 1;
303
+ const nextEnabled = this.loop || currentPage < pagesCount;
267
304
  const isLtr = this.localize.dir() === "ltr";
268
305
  return html`<div part="base" class="${cx(`carousel h-full w-full`)}"><div id="scroll-container" part="scroll-container" class="${cx(
269
306
  `carousel__slides mb-6
@@ -275,8 +312,8 @@ let SdCarousel = class extends SolidElement {
275
312
  "!mr-6 !rounded-sm sd-interactive",
276
313
  !prevEnabled && "sd-interactive--disabled",
277
314
  this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset"
278
- )}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @click="${prevEnabled ? () => this.previous() : null}"><slot name="previous-icon"><sd-3-14-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-3-14-0-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
279
- const isActive = index === currentPage;
315
+ )}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @click="${prevEnabled ? () => this.previous() : null}"><slot name="previous-icon"><sd-3-14-1-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-3-14-1-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
316
+ const isActive = index + 1 === currentPage;
280
317
  return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
281
318
  "carousel__pagination-item",
282
319
  "block cursor-pointer bg-none border-0 rounded-full",
@@ -288,26 +325,25 @@ let SdCarousel = class extends SolidElement {
288
325
  isActive && "bg-accent border-none",
289
326
  isActive ? this.inverted ? "hover:bg-accent-300" : "hover:bg-accent-550" : ""
290
327
  )}"></span></button>`;
291
- })}</div>` : html`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${cx("w-5 text-center border-b-2 border-accent", this.inverted ? "text-white" : "text-black")}">${currentPage + 1}</span> <span part="pagination-divider" class="${cx("scale-y-[1.5]", "text-center", this.inverted ? "text-white" : "text-black")}">/</span> <span part="pagination-item" class="${cx("w-5 text-center", this.inverted ? "text-white" : "text-black")}">${pagesCount}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!nextEnabled ? true : false}" class="${cx(
328
+ })}</div>` : html`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${cx("w-5 text-center border-b-2 border-accent", this.inverted ? "text-white" : "text-black")}">${currentPage}</span> <span part="pagination-divider" class="${cx("scale-y-[1.5]", "text-center", this.inverted ? "text-white" : "text-black")}">/</span> <span part="pagination-item" class="${cx("w-5 text-center", this.inverted ? "text-white" : "text-black")}">${pagesCount}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!nextEnabled ? true : false}" class="${cx(
292
329
  "!ml-6 !rounded-sm sd-interactive ",
293
330
  !nextEnabled && "sd-interactive--disabled",
294
331
  this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset"
295
332
  )}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @click="${nextEnabled ? () => {
296
- console.log("click-next");
297
333
  this.next();
298
- } : null}"><slot name="next-icon"><sd-3-14-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-3-14-0-icon></slot></button></div><button class="${cx(
334
+ } : null}"><slot name="next-icon"><sd-3-14-1-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-3-14-1-icon></slot></button></div><button class="${cx(
299
335
  "ml-6 !rounded-sm",
300
336
  "!absolute !right-0 sd-interactive",
301
337
  this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
302
338
  !this.autoplay && "!hidden"
303
- )}" part="autoplay-controls" @click="${() => this.pausedAutoplay = !this.pausedAutoplay}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-3-14-0-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-3-14-0-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-3-14-0-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-3-14-0-icon></slot></button></div></div>`;
339
+ )}" part="autoplay-controls" @click="${() => this.pausedAutoplay = !this.pausedAutoplay}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-3-14-1-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-3-14-1-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-3-14-1-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-3-14-1-icon></slot></button></div></div>`;
304
340
  }
305
341
  };
306
342
  SdCarousel.styles = [
307
343
  SolidElement.styles,
308
344
  unsafeCSS(InteractiveStyles),
309
345
  componentStyles,
310
- css`:host{--slide-gap:var(--sl-spacing-medium, 1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:'. slides .' '. pagination .'}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-3-14-0-button::part(label){pointer-events:none;display:flex;flex:1 1 auto;align-items:center}`
346
+ css`:host{--slide-gap:var(--sl-spacing-medium, 1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:'. slides .' '. pagination .'}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-3-14-1-button::part(label){pointer-events:none;display:flex;flex:1 1 auto;align-items:center}`
311
347
  ];
312
348
  __decorateClass([
313
349
  property({ type: String, reflect: true })
@@ -339,6 +375,9 @@ __decorateClass([
339
375
  __decorateClass([
340
376
  state()
341
377
  ], SdCarousel.prototype, "activeSlide", 2);
378
+ __decorateClass([
379
+ state()
380
+ ], SdCarousel.prototype, "currentPage", 2);
342
381
  __decorateClass([
343
382
  state()
344
383
  ], SdCarousel.prototype, "pausedAutoplay", 2);
@@ -359,7 +398,7 @@ __decorateClass([
359
398
  watch("autoplay")
360
399
  ], SdCarousel.prototype, "handleAutoplayChange", 1);
361
400
  SdCarousel = __decorateClass([
362
- customElement("sd-3-14-0-carousel")
401
+ customElement("sd-3-14-1-carousel")
363
402
  ], SdCarousel);
364
403
  export {
365
404
  SdCarousel as default
@@ -7,6 +7,6 @@ export default class SdCarouselItem extends SolidElement {
7
7
  }
8
8
  declare global {
9
9
  interface HTMLElementTagNameMap {
10
- 'sd-3-14-0-carousel-item': SdCarouselItem;
10
+ 'sd-3-14-1-carousel-item': SdCarouselItem;
11
11
  }
12
12
  }
@@ -30,7 +30,7 @@ SdCarouselItem.styles = [
30
30
  css`:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`
31
31
  ];
32
32
  SdCarouselItem = __decorateClass([
33
- customElement("sd-3-14-0-carousel-item")
33
+ customElement("sd-3-14-1-carousel-item")
34
34
  ], SdCarouselItem);
35
35
  export {
36
36
  SdCarouselItem as default
@@ -37,6 +37,6 @@ export default class SdCheckbox extends SolidElement implements SolidFormControl
37
37
  }
38
38
  declare global {
39
39
  interface HTMLElementTagNameMap {
40
- 'sd-3-14-0-checkbox': SdCheckbox;
40
+ 'sd-3-14-1-checkbox': SdCheckbox;
41
41
  }
42
42
  }
@@ -109,7 +109,7 @@ let SdCheckbox = class extends SolidElement {
109
109
  render() {
110
110
  const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
111
111
  return html`<label part="base" class="${cx(
112
- "sd-3-14-0-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
112
+ "sd-3-14-1-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
113
113
  this.disabled && "hover:cursor-not-allowed",
114
114
  {
115
115
  /* sizes, fonts */
@@ -133,7 +133,7 @@ let SdCheckbox = class extends SolidElement {
133
133
  filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
134
134
  default: "border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
135
135
  }[checkboxState]
136
- )}">${this.checked ? html`<sd-3-14-0-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-3-14-0-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-3-14-0-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-3-14-0-icon>` : ""} </span><span part="label" id="label" class="${cx(
136
+ )}">${this.checked ? html`<sd-3-14-1-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-3-14-1-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-3-14-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-3-14-1-icon>` : ""} </span><span part="label" id="label" class="${cx(
137
137
  "select-none inline-block ml-2",
138
138
  this.disabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
139
139
  )}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
@@ -189,7 +189,7 @@ __decorateClass([
189
189
  watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
190
190
  ], SdCheckbox.prototype, "handleStateChange", 1);
191
191
  SdCheckbox = __decorateClass([
192
- customElement("sd-3-14-0-checkbox")
192
+ customElement("sd-3-14-1-checkbox")
193
193
  ], SdCheckbox);
194
194
  export {
195
195
  SdCheckbox as default
@@ -15,6 +15,6 @@ export default class SdCheckboxGroup extends SolidElement {
15
15
  }
16
16
  declare global {
17
17
  interface HTMLElementTagNameMap {
18
- 'sd-3-14-0-checkbox-group': SdCheckboxGroup;
18
+ 'sd-3-14-1-checkbox-group': SdCheckboxGroup;
19
19
  }
20
20
  }
@@ -26,7 +26,7 @@ let SdCheckboxGroup = class extends SolidElement {
26
26
  this.orientation = "vertical";
27
27
  }
28
28
  getAllCheckboxes() {
29
- return [...this.querySelectorAll("sd-3-14-0-checkbox")];
29
+ return [...this.querySelectorAll("sd-3-14-1-checkbox")];
30
30
  }
31
31
  async syncCheckboxElements() {
32
32
  const checkboxes = this.getAllCheckboxes();
@@ -42,10 +42,10 @@ let SdCheckboxGroup = class extends SolidElement {
42
42
  }
43
43
  }
44
44
  syncCheckboxes() {
45
- if (customElements.get("sd-3-14-0-checkbox")) {
45
+ if (customElements.get("sd-3-14-1-checkbox")) {
46
46
  this.syncCheckboxElements();
47
47
  } else {
48
- customElements.whenDefined("sd-3-14-0-checkbox").then(() => this.syncCheckboxes());
48
+ customElements.whenDefined("sd-3-14-1-checkbox").then(() => this.syncCheckboxes());
49
49
  }
50
50
  }
51
51
  handleSizeChange() {
@@ -76,7 +76,7 @@ let SdCheckboxGroup = class extends SolidElement {
76
76
  SdCheckboxGroup.styles = [
77
77
  componentStyles,
78
78
  SolidElement.styles,
79
- css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-3-14-0-checkbox){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-3-14-0-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-3-14-0-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-3-14-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-14-0-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-14-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
79
+ css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-3-14-1-checkbox){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-3-14-1-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-3-14-1-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-3-14-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-14-1-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-14-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
80
80
  ];
81
81
  __decorateClass([
82
82
  property()
@@ -94,7 +94,7 @@ __decorateClass([
94
94
  watch("invalid", { waitUntilFirstUpdate: true })
95
95
  ], SdCheckboxGroup.prototype, "handleInvalid", 1);
96
96
  SdCheckboxGroup = __decorateClass([
97
- customElement("sd-3-14-0-checkbox-group")
97
+ customElement("sd-3-14-1-checkbox-group")
98
98
  ], SdCheckboxGroup);
99
99
  export {
100
100
  SdCheckboxGroup as default
@@ -28,6 +28,6 @@ export default class SdDialog extends SolidElement {
28
28
  }
29
29
  declare global {
30
30
  interface HTMLElementTagNameMap {
31
- 'sd-3-14-0-dialog': SdDialog;
31
+ 'sd-3-14-1-dialog': SdDialog;
32
32
  }
33
33
  }
@@ -157,7 +157,7 @@ let SdDialog = class extends SolidElement {
157
157
  )}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
158
158
  "flex flex-col z-20 bg-white focus:outline-none py-4 sm:py-8 relative gap-6",
159
159
  this.open && "flex opacity-100"
160
- )}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<h4 class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</h4>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-3-14-0-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-3-14-0-icon name="close" library="system" color="currentColor"></sd-3-14-0-icon></sd-3-14-0-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`;
160
+ )}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<h4 class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</h4>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-3-14-1-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-3-14-1-icon name="close" library="system" color="currentColor"></sd-3-14-1-icon></sd-3-14-1-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`;
161
161
  }
162
162
  };
163
163
  SdDialog.styles = [
@@ -188,7 +188,7 @@ __decorateClass([
188
188
  watch("open", { waitUntilFirstUpdate: true })
189
189
  ], SdDialog.prototype, "handleOpenChange", 1);
190
190
  SdDialog = __decorateClass([
191
- customElement("sd-3-14-0-dialog")
191
+ customElement("sd-3-14-1-dialog")
192
192
  ], SdDialog);
193
193
  setDefaultAnimation("dialog.show", {
194
194
  keyframes: [
@@ -8,6 +8,6 @@ export default class SdDivider extends SolidElement {
8
8
  }
9
9
  declare global {
10
10
  interface HTMLElementTagNameMap {
11
- 'sd-3-14-0-divider': SdDivider;
11
+ 'sd-3-14-1-divider': SdDivider;
12
12
  }
13
13
  }
@@ -34,7 +34,7 @@ let SdDivider = class extends SolidElement {
34
34
  SdDivider.styles = [
35
35
  componentStyles,
36
36
  SolidElement.styles,
37
- css`:host{margin:var(--sd-spacing-0,0)}:host(sd-3-14-0-divider[orientation=horizontal]){display:block}:host(sd-3-14-0-divider[orientation=vertical]){display:inline-block}`
37
+ css`:host{margin:var(--sd-spacing-0,0)}:host(sd-3-14-1-divider[orientation=horizontal]){display:block}:host(sd-3-14-1-divider[orientation=vertical]){display:inline-block}`
38
38
  ];
39
39
  __decorateClass([
40
40
  property({ reflect: true })
@@ -43,7 +43,7 @@ __decorateClass([
43
43
  property({ type: Boolean, reflect: true })
44
44
  ], SdDivider.prototype, "inverted", 2);
45
45
  SdDivider = __decorateClass([
46
- customElement("sd-3-14-0-divider")
46
+ customElement("sd-3-14-1-divider")
47
47
  ], SdDivider);
48
48
  export {
49
49
  SdDivider as default
@@ -30,6 +30,6 @@ export default class SdDrawer extends SolidElement {
30
30
  }
31
31
  declare global {
32
32
  interface HTMLElementTagNameMap {
33
- 'sd-3-14-0-drawer': SdDrawer;
33
+ 'sd-3-14-1-drawer': SdDrawer;
34
34
  }
35
35
  }
@@ -182,7 +182,7 @@ let SdDrawer = class extends SolidElement {
182
182
  end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
183
183
  start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
184
184
  }[this.placement]
185
- )}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.label}" aria-labelledby="${ifDefined(!this.noHeader ? "title" : void 0)}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-3-14-0-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-3-14-0-icon name="close" library="system"></sd-3-14-0-icon></sd-3-14-0-button></div></header>` : ""}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></div>`;
185
+ )}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.label}" aria-labelledby="${ifDefined(!this.noHeader ? "title" : void 0)}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-3-14-1-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-3-14-1-icon name="close" library="system"></sd-3-14-1-icon></sd-3-14-1-button></div></header>` : ""}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></div>`;
186
186
  }
187
187
  };
188
188
  SdDrawer.styles = [
@@ -221,7 +221,7 @@ __decorateClass([
221
221
  watch("contained", { waitUntilFirstUpdate: true })
222
222
  ], SdDrawer.prototype, "handleNoModalChange", 1);
223
223
  SdDrawer = __decorateClass([
224
- customElement("sd-3-14-0-drawer")
224
+ customElement("sd-3-14-1-drawer")
225
225
  ], SdDrawer);
226
226
  setDefaultAnimation("drawer.showStart", {
227
227
  keyframes: [
@@ -45,6 +45,6 @@ export default class SdDropdown extends SolidElement {
45
45
  }
46
46
  declare global {
47
47
  interface HTMLElementTagNameMap {
48
- 'sd-3-14-0-dropdown': SdDropdown;
48
+ 'sd-3-14-1-dropdown': SdDropdown;
49
49
  }
50
50
  }
@@ -169,7 +169,7 @@ let SdDropdown = class extends SolidElement {
169
169
  // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,
170
170
  // a child of the slotted element, or an element in the slotted element's shadow root.
171
171
  //
172
- // For example, the accessible trigger of an <sd-3-14-0-button> is a <button> located inside its shadow root.
172
+ // For example, the accessible trigger of an <sd-3-14-1-button> is a <button> located inside its shadow root.
173
173
  //
174
174
  // To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
175
175
  //
@@ -179,8 +179,8 @@ let SdDropdown = class extends SolidElement {
179
179
  let target;
180
180
  if (accessibleTrigger) {
181
181
  switch (accessibleTrigger.tagName.toLowerCase()) {
182
- case "sd-3-14-0-button":
183
- case "sd-3-14-0-icon-button":
182
+ case "sd-3-14-1-button":
183
+ case "sd-3-14-1-icon-button":
184
184
  target = accessibleTrigger.button;
185
185
  break;
186
186
  default:
@@ -215,7 +215,7 @@ let SdDropdown = class extends SolidElement {
215
215
  }
216
216
  addOpenListeners() {
217
217
  this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
218
- this.panel.addEventListener("sd-3-14-0-select", this.handlePanelSelect);
218
+ this.panel.addEventListener("sd-3-14-1-select", this.handlePanelSelect);
219
219
  this.panel.addEventListener("keydown", this.handleKeyDown);
220
220
  document.addEventListener("keydown", this.handleDocumentKeyDown);
221
221
  document.addEventListener("mousedown", this.handleDocumentMouseDown);
@@ -223,7 +223,7 @@ let SdDropdown = class extends SolidElement {
223
223
  removeOpenListeners() {
224
224
  if (this.panel) {
225
225
  this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
226
- this.panel.removeEventListener("sd-3-14-0-select", this.handlePanelSelect);
226
+ this.panel.removeEventListener("sd-3-14-1-select", this.handlePanelSelect);
227
227
  this.panel.removeEventListener("keydown", this.handleKeyDown);
228
228
  }
229
229
  document.removeEventListener("keydown", this.handleDocumentKeyDown);
@@ -256,11 +256,11 @@ let SdDropdown = class extends SolidElement {
256
256
  }
257
257
  }
258
258
  render() {
259
- return html`<sd-3-14-0-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
259
+ return html`<sd-3-14-1-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
260
260
  "shadow bg-white",
261
261
  this.open ? "block pointer-events-auto" : "pointer-events-none",
262
262
  this.rounded && "rounded-md"
263
- )}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-3-14-0-popup>`;
263
+ )}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-3-14-1-popup>`;
264
264
  }
265
265
  };
266
266
  SdDropdown.styles = [
@@ -314,7 +314,7 @@ __decorateClass([
314
314
  watch("open", { waitUntilFirstUpdate: true })
315
315
  ], SdDropdown.prototype, "handleOpenChange", 1);
316
316
  SdDropdown = __decorateClass([
317
- customElement("sd-3-14-0-dropdown")
317
+ customElement("sd-3-14-1-dropdown")
318
318
  ], SdDropdown);
319
319
  setDefaultAnimation("dropdown.show", {
320
320
  keyframes: [
@@ -18,6 +18,6 @@ export default class SdExpandable extends SolidElement {
18
18
  }
19
19
  declare global {
20
20
  interface HTMLElementTagNameMap {
21
- 'sd-3-14-0-expandable': SdExpandable;
21
+ 'sd-3-14-1-expandable': SdExpandable;
22
22
  }
23
23
  }
@@ -70,7 +70,7 @@ let SdExpandable = class extends SolidElement {
70
70
  "sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",
71
71
  this.inverted && "sd-interactive--inverted",
72
72
  !this.inverted ? "!focus-visible:focus-outline" : "!focus-visible:focus-outline-inverted"
73
- )}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-3-14-0-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-3-14-0-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-3-14-0-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-3-14-0-icon>${this.localize.term("showMore")}</slot>`}</button>`;
73
+ )}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-3-14-1-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-3-14-1-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-3-14-1-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-3-14-1-icon>${this.localize.term("showMore")}</slot>`}</button>`;
74
74
  }
75
75
  firstUpdated() {
76
76
  this.cloneContentToLightDOM();
@@ -109,7 +109,7 @@ __decorateClass([
109
109
  watch("open", { waitUntilFirstUpdate: true })
110
110
  ], SdExpandable.prototype, "onOpenChange", 1);
111
111
  SdExpandable = __decorateClass([
112
- customElement("sd-3-14-0-expandable")
112
+ customElement("sd-3-14-1-expandable")
113
113
  ], SdExpandable);
114
114
  export {
115
115
  SdExpandable as default
@@ -18,6 +18,6 @@ export default class SdFlipcard extends SolidElement {
18
18
  }
19
19
  declare global {
20
20
  interface HTMLElementTagNameMap {
21
- 'sd-3-14-0-flipcard': SdFlipcard;
21
+ 'sd-3-14-1-flipcard': SdFlipcard;
22
22
  }
23
23
  }
@@ -173,7 +173,7 @@ __decorateClass([
173
173
  property({ type: String, reflect: true, attribute: "back-variant" })
174
174
  ], SdFlipcard.prototype, "backVariant", 2);
175
175
  SdFlipcard = __decorateClass([
176
- customElement("sd-3-14-0-flipcard")
176
+ customElement("sd-3-14-1-flipcard")
177
177
  ], SdFlipcard);
178
178
  export {
179
179
  SdFlipcard as default
@@ -18,6 +18,6 @@ export default class SdHeader extends SolidElement {
18
18
  }
19
19
  declare global {
20
20
  interface HTMLElementTagNameMap {
21
- 'sd-3-14-0-header': SdHeader;
21
+ 'sd-3-14-1-header': SdHeader;
22
22
  }
23
23
  }
@@ -63,11 +63,11 @@ let SdHeader = class extends SolidElement {
63
63
  setCalculatedHeightProperty() {
64
64
  if (this.fixed && this.refHeaderElement) {
65
65
  document.documentElement.style.setProperty(
66
- "--sd-3-14-0-header-calculated-height",
66
+ "--sd-3-14-1-header-calculated-height",
67
67
  `${this.refHeaderElement.clientHeight}px`
68
68
  );
69
69
  } else {
70
- document.documentElement.style.removeProperty("--sd-3-14-0-header-calculated-height");
70
+ document.documentElement.style.removeProperty("--sd-3-14-1-header-calculated-height");
71
71
  }
72
72
  }
73
73
  render() {
@@ -84,7 +84,7 @@ let SdHeader = class extends SolidElement {
84
84
  SdHeader.styles = [
85
85
  SolidElement.styles,
86
86
  componentStyles,
87
- css`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-3-14-0-header-inner-width);max-width:var(--sd-3-14-0-header-inner-max-width);padding:var(--sd-3-14-0-header-padding,12px 16px)}`
87
+ css`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-3-14-1-header-inner-width);max-width:var(--sd-3-14-1-header-inner-max-width);padding:var(--sd-3-14-1-header-padding,12px 16px)}`
88
88
  ];
89
89
  __decorateClass([
90
90
  property({ reflect: true, type: Boolean })
@@ -93,7 +93,7 @@ __decorateClass([
93
93
  debounce(100)
94
94
  ], SdHeader.prototype, "onResize", 1);
95
95
  SdHeader = __decorateClass([
96
- customElement("sd-3-14-0-header")
96
+ customElement("sd-3-14-1-header")
97
97
  ], SdHeader);
98
98
  export {
99
99
  SdHeader as default
@@ -17,6 +17,6 @@ export default class SdIcon extends SolidElement {
17
17
  }
18
18
  declare global {
19
19
  interface HTMLElementTagNameMap {
20
- 'sd-3-14-0-icon': SdIcon;
20
+ 'sd-3-14-1-icon': SdIcon;
21
21
  }
22
22
  }
@@ -122,7 +122,7 @@ __decorateClass([
122
122
  watch(["name", "src", "library"])
123
123
  ], SdIcon.prototype, "setIcon", 1);
124
124
  SdIcon = __decorateClass([
125
- customElement("sd-3-14-0-icon")
125
+ customElement("sd-3-14-1-icon")
126
126
  ], SdIcon);
127
127
  export {
128
128
  SdIcon as default
@@ -10,6 +10,6 @@ export default class SdInclude extends SolidElement {
10
10
  }
11
11
  declare global {
12
12
  interface HTMLElementTagNameMap {
13
- 'sd-3-14-0-include': SdInclude;
13
+ 'sd-3-14-1-include': SdInclude;
14
14
  }
15
15
  }
@@ -68,7 +68,7 @@ __decorateClass([
68
68
  watch("src")
69
69
  ], SdInclude.prototype, "handleSrcChange", 1);
70
70
  SdInclude = __decorateClass([
71
- customElement("sd-3-14-0-include")
71
+ customElement("sd-3-14-1-include")
72
72
  ], SdInclude);
73
73
  export {
74
74
  SdInclude as default
@@ -76,6 +76,6 @@ export default class SdInput extends SolidElement implements SolidFormControl {
76
76
  }
77
77
  declare global {
78
78
  interface HTMLElementTagNameMap {
79
- 'sd-3-14-0-input': SdInput;
79
+ 'sd-3-14-1-input': SdInput;
80
80
  }
81
81
  }