@solid-design-system/components 2.12.0 → 3.0.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 (123) hide show
  1. package/dist/custom-elements.json +1 -1
  2. package/dist/styles/solid-styles.css +1 -1
  3. package/dist/versioned-components/es/accordion-group.js +1 -1
  4. package/dist/versioned-components/es/accordion.js +1 -1
  5. package/dist/versioned-components/es/badge.js +1 -1
  6. package/dist/versioned-components/es/brandshape.js +1 -1
  7. package/dist/versioned-components/es/button.js +1 -1
  8. package/dist/versioned-components/es/carousel-item.js +1 -1
  9. package/dist/versioned-components/es/carousel.js +3 -3
  10. package/dist/versioned-components/es/checkbox-group.js +1 -1
  11. package/dist/versioned-components/es/checkbox.js +1 -1
  12. package/dist/versioned-components/es/dialog.js +1 -1
  13. package/dist/versioned-components/es/divider.js +1 -1
  14. package/dist/versioned-components/es/drawer.js +1 -1
  15. package/dist/versioned-components/es/dropdown.js +1 -1
  16. package/dist/versioned-components/es/form.js +1 -1
  17. package/dist/versioned-components/es/header.js +1 -1
  18. package/dist/versioned-components/es/icon.js +1 -1
  19. package/dist/versioned-components/es/include.js +1 -1
  20. package/dist/versioned-components/es/input.js +1 -1
  21. package/dist/versioned-components/es/link.js +1 -1
  22. package/dist/versioned-components/es/map-marker.js +1 -1
  23. package/dist/versioned-components/es/navigation-item.js +1 -1
  24. package/dist/versioned-components/es/notification.js +1 -1
  25. package/dist/versioned-components/es/option.js +1 -1
  26. package/dist/versioned-components/es/popup.js +1 -1
  27. package/dist/versioned-components/es/radio-button.js +1 -1
  28. package/dist/versioned-components/es/radio-group.js +1 -1
  29. package/dist/versioned-components/es/radio.js +1 -1
  30. package/dist/versioned-components/es/select.js +3 -3
  31. package/dist/versioned-components/es/spinner.js +1 -1
  32. package/dist/versioned-components/es/switch.js +1 -1
  33. package/dist/versioned-components/es/tab-group.js +1 -1
  34. package/dist/versioned-components/es/tab-panel.js +1 -1
  35. package/dist/versioned-components/es/tab.js +1 -1
  36. package/dist/versioned-components/es/tag.js +1 -1
  37. package/dist/versioned-components/es/teaser-media.js +1 -1
  38. package/dist/versioned-components/es/teaser.js +1 -1
  39. package/dist/versioned-components/es/textarea.js +1 -1
  40. package/dist/versioned-components/es/tooltip.js +2 -2
  41. package/dist/versioned-components/es/video.js +1 -1
  42. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  43. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  44. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  45. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  46. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  47. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  48. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  49. package/dist/versioned-package/components/badge/badge.js +1 -1
  50. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  51. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  52. package/dist/versioned-package/components/button/button.d.ts +1 -1
  53. package/dist/versioned-package/components/button/button.js +4 -4
  54. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  55. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  56. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  57. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  58. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  59. package/dist/versioned-package/components/checkbox/checkbox.js +4 -4
  60. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  61. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  62. package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
  63. package/dist/versioned-package/components/dialog/dialog.js +2 -2
  64. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  65. package/dist/versioned-package/components/divider/divider.js +2 -2
  66. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  67. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  68. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  69. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  70. package/dist/versioned-package/components/header/header.d.ts +1 -1
  71. package/dist/versioned-package/components/header/header.js +4 -4
  72. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  73. package/dist/versioned-package/components/icon/icon.js +1 -1
  74. package/dist/versioned-package/components/include/include.d.ts +1 -1
  75. package/dist/versioned-package/components/include/include.js +1 -1
  76. package/dist/versioned-package/components/input/input.d.ts +1 -1
  77. package/dist/versioned-package/components/input/input.js +4 -4
  78. package/dist/versioned-package/components/link/link.d.ts +1 -1
  79. package/dist/versioned-package/components/link/link.js +2 -2
  80. package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
  81. package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
  82. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  83. package/dist/versioned-package/components/navigation-item/navigation-item.js +3 -3
  84. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  85. package/dist/versioned-package/components/notification/notification.js +5 -5
  86. package/dist/versioned-package/components/option/option.d.ts +1 -1
  87. package/dist/versioned-package/components/option/option.js +2 -2
  88. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  89. package/dist/versioned-package/components/popup/popup.js +1 -1
  90. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  91. package/dist/versioned-package/components/radio/radio.js +2 -2
  92. package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
  93. package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
  94. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  95. package/dist/versioned-package/components/radio-group/radio-group.js +15 -15
  96. package/dist/versioned-package/components/select/select.d.ts +4 -4
  97. package/dist/versioned-package/components/select/select.js +29 -29
  98. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  99. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  100. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  101. package/dist/versioned-package/components/switch/switch.js +2 -2
  102. package/dist/versioned-package/components/tab/tab.d.ts +1 -1
  103. package/dist/versioned-package/components/tab/tab.js +2 -2
  104. package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
  105. package/dist/versioned-package/components/tab-group/tab-group.js +15 -15
  106. package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
  107. package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
  108. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  109. package/dist/versioned-package/components/tag/tag.js +2 -2
  110. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  111. package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
  112. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  113. package/dist/versioned-package/components/textarea/textarea.js +3 -3
  114. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  115. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  116. package/dist/versioned-package/components/video/video.d.ts +1 -1
  117. package/dist/versioned-package/components/video/video.js +2 -2
  118. package/dist/versioned-package/internal/form.js +3 -3
  119. package/dist/versioned-package/styles/headline/headline.css.js +1 -1
  120. package/dist/versioned-styles/solid-styles.css +1 -1
  121. package/dist/vscode.html-custom-data.json +38 -38
  122. package/dist/web-types.json +39 -39
  123. package/package.json +1 -1
@@ -213,19 +213,19 @@ let SdButton = class extends SolidElement {
213
213
  md: "ml-2",
214
214
  lg: "ml-2"
215
215
  }[this.size]
216
- )}"></slot>${this.loading ? html`<sd-2-12-0-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-2-12-0-spinner>` : ""}</${tag}>`;
216
+ )}"></slot>${this.loading ? html`<sd-3-0-1-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-3-0-1-spinner>` : ""}</${tag}>`;
217
217
  }
218
218
  };
219
219
  SdButton.styles = [
220
220
  componentStyles,
221
221
  SolidElement.styles,
222
- css`:host{position:relative;display:inline-block;width:var(--sd-spacing-auto,auto);cursor:pointer}sd-2-12-0-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-2-12-0-badge){pointer-events:none;position:absolute;top:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-2-12-0-icon),sd-2-12-0-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`
222
+ css`:host{position:relative;display:inline-block;width:var(--sd-spacing-auto,auto);cursor:pointer}sd-3-0-1-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-3-0-1-badge){pointer-events:none;position:absolute;top:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-3-0-1-icon),sd-3-0-1-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`
223
223
  ];
224
224
  __decorateClass([
225
225
  query("a, button")
226
226
  ], SdButton.prototype, "button", 2);
227
227
  __decorateClass([
228
- queryAssignedElements({ selector: "sd-2-12-0-icon" })
228
+ queryAssignedElements({ selector: "sd-3-0-1-icon" })
229
229
  ], SdButton.prototype, "_iconsInDefaultSlot", 2);
230
230
  __decorateClass([
231
231
  state()
@@ -288,7 +288,7 @@ __decorateClass([
288
288
  watch("disabled", { waitUntilFirstUpdate: true })
289
289
  ], SdButton.prototype, "handleDisabledChange", 1);
290
290
  SdButton = __decorateClass([
291
- customElement("sd-2-12-0-button")
291
+ customElement("sd-3-0-1-button")
292
292
  ], SdButton);
293
293
  export {
294
294
  SdButton as default
@@ -41,6 +41,6 @@ export default class SdCarousel extends SolidElement {
41
41
  }
42
42
  declare global {
43
43
  interface HTMLElementTagNameMap {
44
- 'sd-2-12-0-carousel': SdCarousel;
44
+ 'sd-3-0-1-carousel': SdCarousel;
45
45
  }
46
46
  }
@@ -39,7 +39,7 @@ let SdCarousel = class extends SolidElement {
39
39
  this.pausedAutoplay = false;
40
40
  this.autoplayController = new AutoplayController(this, () => this.next());
41
41
  this.scrollController = new ScrollController(this);
42
- this.slides = this.getElementsByTagName("sd-2-12-0-carousel-item");
42
+ this.slides = this.getElementsByTagName("sd-3-0-1-carousel-item");
43
43
  this.intersectionObserverEntries = /* @__PURE__ */ new Map();
44
44
  this.localize = new LocalizeController(this);
45
45
  this.handleSlotChange = (mutations) => {
@@ -276,7 +276,7 @@ let SdCarousel = class extends SolidElement {
276
276
  "!mr-6 !rounded-sm sd-interactive",
277
277
  !prevEnabled && "sd-interactive--disabled",
278
278
  this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset"
279
- )}" 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-2-12-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-2-12-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
+ )}" 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-0-1-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-3-0-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) => {
280
280
  const isActive = index === currentPage;
281
281
  return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
282
282
  "carousel__pagination-item",
@@ -296,19 +296,19 @@ let SdCarousel = class extends SolidElement {
296
296
  )}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @click="${nextEnabled ? () => {
297
297
  console.log("click-next");
298
298
  this.next();
299
- } : null}"><slot name="next-icon"><sd-2-12-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-2-12-0-icon></slot></button></div><button class="${cx(
299
+ } : null}"><slot name="next-icon"><sd-3-0-1-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-3-0-1-icon></slot></button></div><button class="${cx(
300
300
  "ml-6 !rounded-sm",
301
301
  "!absolute !right-0 sd-interactive",
302
302
  this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
303
303
  !this.autoplay && "!hidden"
304
- )}" part="autoplay-controls" @click="${() => this.pausedAutoplay = !this.pausedAutoplay}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-2-12-0-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-2-12-0-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-2-12-0-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-2-12-0-icon></slot></button></div></div>`;
304
+ )}" part="autoplay-controls" @click="${() => this.pausedAutoplay = !this.pausedAutoplay}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-3-0-1-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-3-0-1-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-3-0-1-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-3-0-1-icon></slot></button></div></div>`;
305
305
  }
306
306
  };
307
307
  SdCarousel.styles = [
308
308
  SolidElement.styles,
309
309
  unsafeCSS(InteractiveStyles),
310
310
  componentStyles,
311
- 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-2-12-0-button::part(label){pointer-events:none;display:flex;flex:1 1 auto;align-items:center}`
311
+ 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-0-1-button::part(label){pointer-events:none;display:flex;flex:1 1 auto;align-items:center}`
312
312
  ];
313
313
  __decorateClass([
314
314
  property({ type: String, reflect: true })
@@ -360,7 +360,7 @@ __decorateClass([
360
360
  watch("autoplay")
361
361
  ], SdCarousel.prototype, "handleAutoplayChange", 1);
362
362
  SdCarousel = __decorateClass([
363
- customElement("sd-2-12-0-carousel")
363
+ customElement("sd-3-0-1-carousel")
364
364
  ], SdCarousel);
365
365
  export {
366
366
  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-2-12-0-carousel-item': SdCarouselItem;
10
+ 'sd-3-0-1-carousel-item': SdCarouselItem;
11
11
  }
12
12
  }
@@ -31,7 +31,7 @@ SdCarouselItem.styles = [
31
31
  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}`
32
32
  ];
33
33
  SdCarouselItem = __decorateClass([
34
- customElement("sd-2-12-0-carousel-item")
34
+ customElement("sd-3-0-1-carousel-item")
35
35
  ], SdCarouselItem);
36
36
  export {
37
37
  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-2-12-0-checkbox': SdCheckbox;
40
+ 'sd-3-0-1-checkbox': SdCheckbox;
41
41
  }
42
42
  }
@@ -55,7 +55,7 @@ let SdCheckbox = class extends SolidElement {
55
55
  this.emit("sd-blur");
56
56
  }
57
57
  handleInput() {
58
- this.emit("sd-2-12-0-input");
58
+ this.emit("sd-input");
59
59
  }
60
60
  handleInvalid(event) {
61
61
  this.formControlController.setValidity(false);
@@ -110,7 +110,7 @@ let SdCheckbox = class extends SolidElement {
110
110
  render() {
111
111
  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";
112
112
  return html`<label part="base" class="${cx(
113
- "sd-2-12-0-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
113
+ "sd-3-0-1-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
114
114
  this.disabled && "hover:cursor-not-allowed",
115
115
  {
116
116
  /* sizes, fonts */
@@ -134,7 +134,7 @@ let SdCheckbox = class extends SolidElement {
134
134
  filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
135
135
  default: "border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
136
136
  }[checkboxState]
137
- )}">${this.checked ? html`<sd-2-12-0-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-hook"></sd-2-12-0-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-2-12-0-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-2-12-0-icon>` : ""} </span><span part="label" id="label" class="${cx(
137
+ )}">${this.checked ? html`<sd-3-0-1-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-hook"></sd-3-0-1-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-3-0-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-3-0-1-icon>` : ""} </span><span part="label" id="label" class="${cx(
138
138
  "select-none inline-block ml-2",
139
139
  this.disabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
140
140
  )}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
@@ -190,7 +190,7 @@ __decorateClass([
190
190
  watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
191
191
  ], SdCheckbox.prototype, "handleStateChange", 1);
192
192
  SdCheckbox = __decorateClass([
193
- customElement("sd-2-12-0-checkbox")
193
+ customElement("sd-3-0-1-checkbox")
194
194
  ], SdCheckbox);
195
195
  export {
196
196
  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-2-12-0-checkbox-group': SdCheckboxGroup;
18
+ 'sd-3-0-1-checkbox-group': SdCheckboxGroup;
19
19
  }
20
20
  }
@@ -27,7 +27,7 @@ let SdCheckboxGroup = class extends SolidElement {
27
27
  this.orientation = "vertical";
28
28
  }
29
29
  getAllCheckboxes() {
30
- return [...this.querySelectorAll("sd-2-12-0-checkbox")];
30
+ return [...this.querySelectorAll("sd-3-0-1-checkbox")];
31
31
  }
32
32
  async syncCheckboxElements() {
33
33
  const checkboxes = this.getAllCheckboxes();
@@ -43,10 +43,10 @@ let SdCheckboxGroup = class extends SolidElement {
43
43
  }
44
44
  }
45
45
  syncCheckboxes() {
46
- if (customElements.get("sd-2-12-0-checkbox")) {
46
+ if (customElements.get("sd-3-0-1-checkbox")) {
47
47
  this.syncCheckboxElements();
48
48
  } else {
49
- customElements.whenDefined("sd-2-12-0-checkbox").then(() => this.syncCheckboxes());
49
+ customElements.whenDefined("sd-3-0-1-checkbox").then(() => this.syncCheckboxes());
50
50
  }
51
51
  }
52
52
  handleSizeChange() {
@@ -77,7 +77,7 @@ let SdCheckboxGroup = class extends SolidElement {
77
77
  SdCheckboxGroup.styles = [
78
78
  componentStyles,
79
79
  SolidElement.styles,
80
- css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-2-12-0-checkbox){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-2-12-0-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-2-12-0-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-2-12-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-2-12-0-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-2-12-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
80
+ css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-3-0-1-checkbox){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-3-0-1-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-3-0-1-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-3-0-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-0-1-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-0-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
81
81
  ];
82
82
  __decorateClass([
83
83
  property()
@@ -95,7 +95,7 @@ __decorateClass([
95
95
  watch("invalid", { waitUntilFirstUpdate: true })
96
96
  ], SdCheckboxGroup.prototype, "handleInvalid", 1);
97
97
  SdCheckboxGroup = __decorateClass([
98
- customElement("sd-2-12-0-checkbox-group")
98
+ customElement("sd-3-0-1-checkbox-group")
99
99
  ], SdCheckboxGroup);
100
100
  export {
101
101
  SdCheckboxGroup as default
@@ -27,6 +27,6 @@ export default class SdDialog extends SolidElement {
27
27
  }
28
28
  declare global {
29
29
  interface HTMLElementTagNameMap {
30
- 'sd-2-12-0-dialog': SdDialog;
30
+ 'sd-3-0-1-dialog': SdDialog;
31
31
  }
32
32
  }
@@ -158,7 +158,7 @@ let SdDialog = class extends SolidElement {
158
158
  )}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
159
159
  "flex flex-col z-20 bg-white focus:outline-none py-4 sm:py-8 relative gap-6",
160
160
  this.open && "flex opacity-100"
161
- )}" 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-2-12-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-2-12-0-icon name="close" library="system" color="currentColor"></sd-2-12-0-icon></sd-2-12-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>`;
161
+ )}" 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-0-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-0-1-icon name="close" library="system" color="currentColor"></sd-3-0-1-icon></sd-3-0-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>`;
162
162
  }
163
163
  };
164
164
  SdDialog.styles = [
@@ -189,7 +189,7 @@ __decorateClass([
189
189
  watch("open", { waitUntilFirstUpdate: true })
190
190
  ], SdDialog.prototype, "handleOpenChange", 1);
191
191
  SdDialog = __decorateClass([
192
- customElement("sd-2-12-0-dialog")
192
+ customElement("sd-3-0-1-dialog")
193
193
  ], SdDialog);
194
194
  setDefaultAnimation("dialog.show", {
195
195
  keyframes: [
@@ -8,6 +8,6 @@ export default class SdDivider extends SolidElement {
8
8
  }
9
9
  declare global {
10
10
  interface HTMLElementTagNameMap {
11
- 'sd-2-12-0-divider': SdDivider;
11
+ 'sd-3-0-1-divider': SdDivider;
12
12
  }
13
13
  }
@@ -35,7 +35,7 @@ let SdDivider = class extends SolidElement {
35
35
  SdDivider.styles = [
36
36
  componentStyles,
37
37
  SolidElement.styles,
38
- css`:host{margin:var(--sd-spacing-0,0)}:host(sd-2-12-0-divider[orientation=horizontal]){display:block}:host(sd-2-12-0-divider[orientation=vertical]){display:inline-block}`
38
+ css`:host{margin:var(--sd-spacing-0,0)}:host(sd-3-0-1-divider[orientation=horizontal]){display:block}:host(sd-3-0-1-divider[orientation=vertical]){display:inline-block}`
39
39
  ];
40
40
  __decorateClass([
41
41
  property({ reflect: true })
@@ -44,7 +44,7 @@ __decorateClass([
44
44
  property({ type: Boolean, reflect: true })
45
45
  ], SdDivider.prototype, "inverted", 2);
46
46
  SdDivider = __decorateClass([
47
- customElement("sd-2-12-0-divider")
47
+ customElement("sd-3-0-1-divider")
48
48
  ], SdDivider);
49
49
  export {
50
50
  SdDivider as default
@@ -29,6 +29,6 @@ export default class SdDrawer extends SolidElement {
29
29
  }
30
30
  declare global {
31
31
  interface HTMLElementTagNameMap {
32
- 'sd-2-12-0-drawer': SdDrawer;
32
+ 'sd-3-0-1-drawer': SdDrawer;
33
33
  }
34
34
  }
@@ -183,7 +183,7 @@ let SdDrawer = class extends SolidElement {
183
183
  end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
184
184
  start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
185
185
  }[this.placement]
186
- )}" 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-2-12-0-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-2-12-0-icon name="close" library="system"></sd-2-12-0-icon></sd-2-12-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>`;
186
+ )}" 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-0-1-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-3-0-1-icon name="close" library="system"></sd-3-0-1-icon></sd-3-0-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>`;
187
187
  }
188
188
  };
189
189
  SdDrawer.styles = [
@@ -222,7 +222,7 @@ __decorateClass([
222
222
  watch("contained", { waitUntilFirstUpdate: true })
223
223
  ], SdDrawer.prototype, "handleNoModalChange", 1);
224
224
  SdDrawer = __decorateClass([
225
- customElement("sd-2-12-0-drawer")
225
+ customElement("sd-3-0-1-drawer")
226
226
  ], SdDrawer);
227
227
  setDefaultAnimation("drawer.showStart", {
228
228
  keyframes: [
@@ -44,6 +44,6 @@ export default class SdDropdown extends SolidElement {
44
44
  }
45
45
  declare global {
46
46
  interface HTMLElementTagNameMap {
47
- 'sd-2-12-0-dropdown': SdDropdown;
47
+ 'sd-3-0-1-dropdown': SdDropdown;
48
48
  }
49
49
  }
@@ -170,7 +170,7 @@ let SdDropdown = class extends SolidElement {
170
170
  // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,
171
171
  // a child of the slotted element, or an element in the slotted element's shadow root.
172
172
  //
173
- // For example, the accessible trigger of an <sd-2-12-0-button> is a <button> located inside its shadow root.
173
+ // For example, the accessible trigger of an <sd-3-0-1-button> is a <button> located inside its shadow root.
174
174
  //
175
175
  // To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
176
176
  //
@@ -180,8 +180,8 @@ let SdDropdown = class extends SolidElement {
180
180
  let target;
181
181
  if (accessibleTrigger) {
182
182
  switch (accessibleTrigger.tagName.toLowerCase()) {
183
- case "sd-2-12-0-button":
184
- case "sd-2-12-0-icon-button":
183
+ case "sd-3-0-1-button":
184
+ case "sd-3-0-1-icon-button":
185
185
  target = accessibleTrigger.button;
186
186
  break;
187
187
  default:
@@ -216,7 +216,7 @@ let SdDropdown = class extends SolidElement {
216
216
  }
217
217
  addOpenListeners() {
218
218
  this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
219
- this.panel.addEventListener("sd-2-12-0-select", this.handlePanelSelect);
219
+ this.panel.addEventListener("sd-3-0-1-select", this.handlePanelSelect);
220
220
  this.panel.addEventListener("keydown", this.handleKeyDown);
221
221
  document.addEventListener("keydown", this.handleDocumentKeyDown);
222
222
  document.addEventListener("mousedown", this.handleDocumentMouseDown);
@@ -224,7 +224,7 @@ let SdDropdown = class extends SolidElement {
224
224
  removeOpenListeners() {
225
225
  if (this.panel) {
226
226
  this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
227
- this.panel.removeEventListener("sd-2-12-0-select", this.handlePanelSelect);
227
+ this.panel.removeEventListener("sd-3-0-1-select", this.handlePanelSelect);
228
228
  this.panel.removeEventListener("keydown", this.handleKeyDown);
229
229
  }
230
230
  document.removeEventListener("keydown", this.handleDocumentKeyDown);
@@ -257,11 +257,11 @@ let SdDropdown = class extends SolidElement {
257
257
  }
258
258
  }
259
259
  render() {
260
- return html`<sd-2-12-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(
260
+ return html`<sd-3-0-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(
261
261
  "shadow bg-white",
262
262
  this.open ? "block pointer-events-auto" : "pointer-events-none",
263
263
  this.rounded && "rounded-md"
264
- )}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-2-12-0-popup>`;
264
+ )}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-3-0-1-popup>`;
265
265
  }
266
266
  };
267
267
  SdDropdown.styles = [
@@ -315,7 +315,7 @@ __decorateClass([
315
315
  watch("open", { waitUntilFirstUpdate: true })
316
316
  ], SdDropdown.prototype, "handleOpenChange", 1);
317
317
  SdDropdown = __decorateClass([
318
- customElement("sd-2-12-0-dropdown")
318
+ customElement("sd-3-0-1-dropdown")
319
319
  ], SdDropdown);
320
320
  setDefaultAnimation("dropdown.show", {
321
321
  keyframes: [
@@ -18,6 +18,6 @@ export default class SdHeader extends SolidElement {
18
18
  }
19
19
  declare global {
20
20
  interface HTMLElementTagNameMap {
21
- 'sd-2-12-0-header': SdHeader;
21
+ 'sd-3-0-1-header': SdHeader;
22
22
  }
23
23
  }
@@ -64,11 +64,11 @@ let SdHeader = class extends SolidElement {
64
64
  setCalculatedHeightProperty() {
65
65
  if (this.fixed && this.refHeaderElement) {
66
66
  document.documentElement.style.setProperty(
67
- "--sd-2-12-0-header-calculated-height",
67
+ "--sd-3-0-1-header-calculated-height",
68
68
  `${this.refHeaderElement.clientHeight}px`
69
69
  );
70
70
  } else {
71
- document.documentElement.style.removeProperty("--sd-2-12-0-header-calculated-height");
71
+ document.documentElement.style.removeProperty("--sd-3-0-1-header-calculated-height");
72
72
  }
73
73
  }
74
74
  render() {
@@ -85,7 +85,7 @@ let SdHeader = class extends SolidElement {
85
85
  SdHeader.styles = [
86
86
  SolidElement.styles,
87
87
  componentStyles,
88
- 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-2-12-0-header-inner-width);max-width:var(--sd-2-12-0-header-inner-max-width);padding:var(--sd-2-12-0-header-padding,12px 16px)}`
88
+ 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-0-1-header-inner-width);max-width:var(--sd-3-0-1-header-inner-max-width);padding:var(--sd-3-0-1-header-padding,12px 16px)}`
89
89
  ];
90
90
  __decorateClass([
91
91
  property({ reflect: true, type: Boolean })
@@ -94,7 +94,7 @@ __decorateClass([
94
94
  debounce(100)
95
95
  ], SdHeader.prototype, "onResize", 1);
96
96
  SdHeader = __decorateClass([
97
- customElement("sd-2-12-0-header")
97
+ customElement("sd-3-0-1-header")
98
98
  ], SdHeader);
99
99
  export {
100
100
  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-2-12-0-icon': SdIcon;
20
+ 'sd-3-0-1-icon': SdIcon;
21
21
  }
22
22
  }
@@ -123,7 +123,7 @@ __decorateClass([
123
123
  watch(["name", "src", "library"])
124
124
  ], SdIcon.prototype, "setIcon", 1);
125
125
  SdIcon = __decorateClass([
126
- customElement("sd-2-12-0-icon")
126
+ customElement("sd-3-0-1-icon")
127
127
  ], SdIcon);
128
128
  export {
129
129
  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-2-12-0-include': SdInclude;
13
+ 'sd-3-0-1-include': SdInclude;
14
14
  }
15
15
  }
@@ -69,7 +69,7 @@ __decorateClass([
69
69
  watch("src")
70
70
  ], SdInclude.prototype, "handleSrcChange", 1);
71
71
  SdInclude = __decorateClass([
72
- customElement("sd-2-12-0-include")
72
+ customElement("sd-3-0-1-include")
73
73
  ], SdInclude);
74
74
  export {
75
75
  SdInclude as default
@@ -75,6 +75,6 @@ export default class SdInput extends SolidElement implements SolidFormControl {
75
75
  }
76
76
  declare global {
77
77
  interface HTMLElementTagNameMap {
78
- 'sd-2-12-0-input': SdInput;
78
+ 'sd-3-0-1-input': SdInput;
79
79
  }
80
80
  }
@@ -103,7 +103,7 @@ let SdInput = class extends SolidElement {
103
103
  handleClearClick(event) {
104
104
  this.value = "";
105
105
  this.emit("sd-clear");
106
- this.emit("sd-2-12-0-input");
106
+ this.emit("sd-input");
107
107
  this.emit("sd-change");
108
108
  this.input.focus();
109
109
  event.stopPropagation();
@@ -115,7 +115,7 @@ let SdInput = class extends SolidElement {
115
115
  handleInput() {
116
116
  this.value = this.input.value;
117
117
  this.formControlController.updateValidity();
118
- this.emit("sd-2-12-0-input");
118
+ this.emit("sd-input");
119
119
  }
120
120
  handleInvalid(event) {
121
121
  this.formControlController.setValidity(false);
@@ -256,7 +256,7 @@ let SdInput = class extends SolidElement {
256
256
  "min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
257
257
  this.size === "sm" ? "h-6" : "h-8",
258
258
  textSize
259
- )}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center ", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-2-12-0-icon class="${cx("text-neutral-500", iconSize)}" library="system" name="closing-round"></sd-2-12-0-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-2-12-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-2-12-0-icon></slot>` : html`<slot name="hide-password-icon"><sd-2-12-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-2-12-0-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-2-12-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-2-12-0-icon>` : ""} ${this.type === "time" ? html`<sd-2-12-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-2-12-0-icon>` : ""} ${this.showInvalidStyle ? html`<sd-2-12-0-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-2-12-0-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-2-12-0-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="confirm" part="valid-icon"></sd-2-12-0-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
259
+ )}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center ", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-3-0-1-icon class="${cx("text-neutral-500", iconSize)}" library="system" name="closing-round"></sd-3-0-1-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-3-0-1-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-3-0-1-icon></slot>` : html`<slot name="hide-password-icon"><sd-3-0-1-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-3-0-1-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-3-0-1-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-3-0-1-icon>` : ""} ${this.type === "time" ? html`<sd-3-0-1-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-3-0-1-icon>` : ""} ${this.showInvalidStyle ? html`<sd-3-0-1-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-3-0-1-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-3-0-1-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="confirm" part="valid-icon"></sd-3-0-1-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
260
260
  }
261
261
  };
262
262
  SdInput.styles = [
@@ -389,7 +389,7 @@ __decorateClass([
389
389
  watch("value", { waitUntilFirstUpdate: true })
390
390
  ], SdInput.prototype, "handleValueChange", 1);
391
391
  SdInput = __decorateClass([
392
- customElement("sd-2-12-0-input")
392
+ customElement("sd-3-0-1-input")
393
393
  ], SdInput);
394
394
  export {
395
395
  SdInput as default
@@ -17,6 +17,6 @@ export default class SdLink extends SolidElement {
17
17
  }
18
18
  declare global {
19
19
  interface HTMLElementTagNameMap {
20
- 'sd-2-12-0-link': SdLink;
20
+ 'sd-3-0-1-link': SdLink;
21
21
  }
22
22
  }
@@ -77,7 +77,7 @@ let SdLink = class extends SolidElement {
77
77
  };
78
78
  SdLink.styles = [
79
79
  SolidElement.styles,
80
- css`::slotted(sd-2-12-0-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-2-12-0-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-2-12-0-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
80
+ css`::slotted(sd-3-0-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-3-0-1-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-3-0-1-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
81
81
  ];
82
82
  __decorateClass([
83
83
  query("a")
@@ -101,7 +101,7 @@ __decorateClass([
101
101
  property()
102
102
  ], SdLink.prototype, "download", 2);
103
103
  SdLink = __decorateClass([
104
- customElement("sd-2-12-0-link")
104
+ customElement("sd-3-0-1-link")
105
105
  ], SdLink);
106
106
  export {
107
107
  SdLink as default
@@ -11,6 +11,6 @@ export default class SdMapMarker extends SolidElement {
11
11
  }
12
12
  declare global {
13
13
  interface HTMLElementTagNameMap {
14
- 'sd-2-12-0-map-marker': SdMapMarker;
14
+ 'sd-3-0-1-map-marker': SdMapMarker;
15
15
  }
16
16
  }
@@ -64,7 +64,7 @@ __decorateClass([
64
64
  property({ type: Boolean, reflect: true })
65
65
  ], SdMapMarker.prototype, "animated", 2);
66
66
  SdMapMarker = __decorateClass([
67
- customElement("sd-2-12-0-map-marker")
67
+ customElement("sd-3-0-1-map-marker")
68
68
  ], SdMapMarker);
69
69
  export {
70
70
  SdMapMarker as default
@@ -26,6 +26,6 @@ export default class SdNavigationItem extends SolidElement {
26
26
  }
27
27
  declare global {
28
28
  interface HTMLElementTagNameMap {
29
- 'sd-2-12-0-navigation-item': SdNavigationItem;
29
+ 'sd-3-0-1-navigation-item': SdNavigationItem;
30
30
  }
31
31
  }
@@ -103,10 +103,10 @@ let SdNavigationItem = class extends SolidElement {
103
103
  isAccordion ? "grow" : "w-full",
104
104
  slots["description"] ? "pb-1" : horizontalPaddingBottom,
105
105
  this.calculatePaddingX()
106
- )}">${this.divider && this.vertical ? html`<sd-2-12-0-divider part="divider" class="${cx("w-full transition-all absolute -top-[1px] left-0", this.calculatePaddingX())}"></sd-2-12-0-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline"></slot></span>${(this.chevron || slots["children"]) && this.vertical ? html`<sd-2-12-0-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
106
+ )}">${this.divider && this.vertical ? html`<sd-3-0-1-divider part="divider" class="${cx("w-full transition-all absolute -top-[1px] left-0", this.calculatePaddingX())}"></sd-3-0-1-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline"></slot></span>${(this.chevron || slots["children"]) && this.vertical ? html`<sd-3-0-1-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
107
107
  "h-6 w-6 ml-2 transition-all",
108
108
  isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
109
- )}"></sd-2-12-0-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
109
+ )}"></sd-3-0-1-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
110
110
  "inline-block text-sm text-left text-black",
111
111
  isAccordion ? "grow" : "w-full",
112
112
  horizontalPaddingBottom,
@@ -157,7 +157,7 @@ __decorateClass([
157
157
  property({ type: Boolean, reflect: true })
158
158
  ], SdNavigationItem.prototype, "open", 2);
159
159
  SdNavigationItem = __decorateClass([
160
- customElement("sd-2-12-0-navigation-item")
160
+ customElement("sd-3-0-1-navigation-item")
161
161
  ], SdNavigationItem);
162
162
  export {
163
163
  SdNavigationItem as default