@solid-design-system/components 4.1.0 → 4.1.2

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 (247) hide show
  1. package/cdn/chunks/chunk.C7OWRPK7.js +4 -0
  2. package/cdn/chunks/chunk.KW5L4FQ6.js +3 -0
  3. package/cdn/components/switch/switch.js +1 -1
  4. package/cdn/components/tooltip/tooltip.d.ts +3 -1
  5. package/cdn/components/tooltip/tooltip.js +1 -1
  6. package/cdn/custom-elements.json +1 -1
  7. package/cdn/solid-components.bundle.js +2 -2
  8. package/cdn/solid-components.iife.js +2 -2
  9. package/cdn/solid-components.js +1 -1
  10. package/cdn/web-types.json +1 -1
  11. package/cdn-versioned/_components/menu/menu.js +1 -1
  12. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  13. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  14. package/cdn-versioned/chunks/chunk.2F2YU5TY.js +1 -1
  15. package/cdn-versioned/chunks/chunk.2POHB7E4.js +1 -1
  16. package/cdn-versioned/chunks/chunk.3EINSGT6.js +1 -1
  17. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  18. package/cdn-versioned/chunks/chunk.6DTJTQ5Z.js +1 -1
  19. package/cdn-versioned/chunks/chunk.6XHUCAAC.js +1 -1
  20. package/cdn-versioned/chunks/chunk.7KT5V5SZ.js +4 -4
  21. package/cdn-versioned/chunks/chunk.AWKHYUIP.js +2 -2
  22. package/cdn-versioned/chunks/chunk.BMK7S33Z.js +1 -1
  23. package/cdn-versioned/chunks/chunk.BU5EDIFK.js +1 -1
  24. package/cdn-versioned/chunks/chunk.C7OWRPK7.js +4 -0
  25. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  26. package/cdn-versioned/chunks/chunk.DOH6WUNR.js +1 -1
  27. package/cdn-versioned/chunks/chunk.DW5QL76L.js +2 -2
  28. package/cdn-versioned/chunks/chunk.EJKLI2Q4.js +1 -1
  29. package/cdn-versioned/chunks/chunk.G7CN4YKD.js +1 -1
  30. package/cdn-versioned/chunks/chunk.GQIUJUD4.js +1 -1
  31. package/cdn-versioned/chunks/chunk.GQU4LYQ6.js +1 -1
  32. package/cdn-versioned/chunks/chunk.HKKRMPWF.js +1 -1
  33. package/cdn-versioned/chunks/chunk.HOPUF2NO.js +1 -1
  34. package/cdn-versioned/chunks/chunk.HQYSQRUN.js +1 -1
  35. package/cdn-versioned/chunks/chunk.HRNG2LIX.js +1 -1
  36. package/cdn-versioned/chunks/chunk.HUSKVVWH.js +1 -1
  37. package/cdn-versioned/chunks/chunk.K4WR4LYF.js +4 -4
  38. package/cdn-versioned/chunks/chunk.KW5L4FQ6.js +3 -0
  39. package/cdn-versioned/chunks/chunk.LRINU3JN.js +1 -1
  40. package/cdn-versioned/chunks/chunk.MBU5RGYE.js +1 -1
  41. package/cdn-versioned/chunks/chunk.NQZZHVDV.js +1 -1
  42. package/cdn-versioned/chunks/chunk.NVTRGUUN.js +1 -1
  43. package/cdn-versioned/chunks/chunk.OPMM2RN5.js +1 -1
  44. package/cdn-versioned/chunks/chunk.OY3MT73P.js +1 -1
  45. package/cdn-versioned/chunks/chunk.PHRAQBQ7.js +1 -1
  46. package/cdn-versioned/chunks/chunk.PMI5K2Z2.js +1 -1
  47. package/cdn-versioned/chunks/chunk.QJVFSDOZ.js +1 -1
  48. package/cdn-versioned/chunks/chunk.QWPCVRMH.js +1 -1
  49. package/cdn-versioned/chunks/chunk.SIC7OWQL.js +1 -1
  50. package/cdn-versioned/chunks/chunk.SJ2JO4KS.js +1 -1
  51. package/cdn-versioned/chunks/chunk.SNCCOKIM.js +1 -1
  52. package/cdn-versioned/chunks/chunk.SWUGEKNC.js +1 -1
  53. package/cdn-versioned/chunks/chunk.SXH5LQRL.js +1 -1
  54. package/cdn-versioned/chunks/chunk.TET3RDMC.js +1 -1
  55. package/cdn-versioned/chunks/chunk.UBO6O4CS.js +1 -1
  56. package/cdn-versioned/chunks/chunk.V7YY3FWK.js +3 -3
  57. package/cdn-versioned/chunks/chunk.VOX6F6LP.js +1 -1
  58. package/cdn-versioned/chunks/chunk.VYV6SKST.js +1 -1
  59. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  60. package/cdn-versioned/chunks/chunk.WADGCWRK.js +1 -1
  61. package/cdn-versioned/chunks/chunk.WMCAUVW6.js +1 -1
  62. package/cdn-versioned/chunks/chunk.XV2WIQSV.js +1 -1
  63. package/cdn-versioned/chunks/chunk.YFWVU3XM.js +1 -1
  64. package/cdn-versioned/chunks/chunk.YN6CIEPP.js +1 -1
  65. package/cdn-versioned/chunks/chunk.YUUAUQGB.js +1 -1
  66. package/cdn-versioned/chunks/chunk.ZYWB4GHH.js +1 -1
  67. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  68. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  69. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  70. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  71. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  72. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  73. package/cdn-versioned/components/button/button.d.ts +1 -1
  74. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  75. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  76. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  77. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  78. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  79. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  80. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  81. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  82. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  83. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  84. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  85. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  86. package/cdn-versioned/components/header/header.d.ts +1 -1
  87. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  88. package/cdn-versioned/components/include/include.d.ts +1 -1
  89. package/cdn-versioned/components/input/input.d.ts +1 -1
  90. package/cdn-versioned/components/link/link.d.ts +1 -1
  91. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  92. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  93. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  94. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  95. package/cdn-versioned/components/option/option.d.ts +1 -1
  96. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  97. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  98. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  99. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  100. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  101. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  102. package/cdn-versioned/components/select/select.d.ts +4 -4
  103. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  104. package/cdn-versioned/components/step/step.d.ts +1 -1
  105. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  106. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  107. package/cdn-versioned/components/switch/switch.js +1 -1
  108. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  109. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  110. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  111. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  112. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  113. package/cdn-versioned/components/tooltip/tooltip.d.ts +4 -2
  114. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  115. package/cdn-versioned/components/video/video.d.ts +1 -1
  116. package/cdn-versioned/custom-elements.json +202 -202
  117. package/cdn-versioned/internal/form.js +3 -3
  118. package/cdn-versioned/solid-components.bundle.js +17 -17
  119. package/cdn-versioned/solid-components.css +2 -2
  120. package/cdn-versioned/solid-components.iife.js +17 -17
  121. package/cdn-versioned/solid-components.js +1 -1
  122. package/cdn-versioned/vscode.html-custom-data.json +80 -80
  123. package/cdn-versioned/web-types.json +137 -137
  124. package/dist/chunks/{chunk.K3JCC7KV.js → chunk.5PTDC66T.js} +15 -9
  125. package/dist/chunks/{chunk.IN7RNHBF.js → chunk.XKJR2XUZ.js} +1 -1
  126. package/dist/components/switch/switch.js +1 -1
  127. package/dist/components/tooltip/tooltip.d.ts +3 -1
  128. package/dist/components/tooltip/tooltip.js +1 -1
  129. package/dist/custom-elements.json +1 -1
  130. package/dist/solid-components.js +2 -2
  131. package/dist/web-types.json +1 -1
  132. package/dist-versioned/_components/menu/menu.js +1 -1
  133. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  134. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  135. package/dist-versioned/chunks/chunk.274HT4QS.js +3 -3
  136. package/dist-versioned/chunks/chunk.2FXKQI26.js +2 -2
  137. package/dist-versioned/chunks/chunk.4Q7KKH5Z.js +2 -2
  138. package/dist-versioned/chunks/chunk.4SBQOWLU.js +5 -5
  139. package/dist-versioned/chunks/chunk.5FOKRIWL.js +3 -3
  140. package/dist-versioned/chunks/{chunk.K3JCC7KV.js → chunk.5PTDC66T.js} +19 -13
  141. package/dist-versioned/chunks/chunk.674S2Z6M.js +1 -1
  142. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  143. package/dist-versioned/chunks/chunk.7E7C4YEQ.js +3 -3
  144. package/dist-versioned/chunks/chunk.A5S7GZJI.js +3 -3
  145. package/dist-versioned/chunks/chunk.A625ONY2.js +2 -2
  146. package/dist-versioned/chunks/chunk.ACST636J.js +1 -1
  147. package/dist-versioned/chunks/chunk.AJ7V76EG.js +1 -1
  148. package/dist-versioned/chunks/chunk.AKF4KQEW.js +2 -2
  149. package/dist-versioned/chunks/chunk.AQZSZKBJ.js +13 -13
  150. package/dist-versioned/chunks/chunk.BTJACUD5.js +29 -29
  151. package/dist-versioned/chunks/chunk.CCQCEONR.js +2 -2
  152. package/dist-versioned/chunks/chunk.D26WCHLT.js +6 -6
  153. package/dist-versioned/chunks/chunk.D3I3AZEX.js +13 -13
  154. package/dist-versioned/chunks/chunk.DPY2TYIS.js +9 -9
  155. package/dist-versioned/chunks/chunk.DU3O42BH.js +2 -2
  156. package/dist-versioned/chunks/chunk.EH2FHVPN.js +3 -3
  157. package/dist-versioned/chunks/chunk.F63YFNZS.js +5 -5
  158. package/dist-versioned/chunks/chunk.FFKZQXJ2.js +2 -2
  159. package/dist-versioned/chunks/chunk.FTXUZOXH.js +2 -2
  160. package/dist-versioned/chunks/chunk.H5ARRBLT.js +2 -2
  161. package/dist-versioned/chunks/chunk.H5BDO4H5.js +11 -11
  162. package/dist-versioned/chunks/chunk.HFHUY7YD.js +1 -1
  163. package/dist-versioned/chunks/chunk.I5ZJV32M.js +1 -1
  164. package/dist-versioned/chunks/chunk.JIWTAZZS.js +5 -5
  165. package/dist-versioned/chunks/chunk.JZB2D4IZ.js +1 -1
  166. package/dist-versioned/chunks/chunk.KH4M6HPE.js +2 -2
  167. package/dist-versioned/chunks/chunk.KPA6BEFU.js +5 -5
  168. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  169. package/dist-versioned/chunks/chunk.LZA2QYUU.js +1 -1
  170. package/dist-versioned/chunks/chunk.NUIZDE7R.js +1 -1
  171. package/dist-versioned/chunks/chunk.OBWOMZNU.js +2 -2
  172. package/dist-versioned/chunks/chunk.OMBVLHXJ.js +1 -1
  173. package/dist-versioned/chunks/chunk.OR7JTZLE.js +2 -2
  174. package/dist-versioned/chunks/chunk.OZU372TI.js +2 -2
  175. package/dist-versioned/chunks/chunk.PRXP5CUW.js +5 -5
  176. package/dist-versioned/chunks/chunk.PT7MDSWH.js +1 -1
  177. package/dist-versioned/chunks/chunk.QTFIZJGB.js +2 -2
  178. package/dist-versioned/chunks/chunk.QUYKT56M.js +1 -1
  179. package/dist-versioned/chunks/chunk.RSPK767T.js +2 -2
  180. package/dist-versioned/chunks/chunk.SNCHAQYL.js +4 -4
  181. package/dist-versioned/chunks/chunk.TGJ2SBPH.js +6 -6
  182. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  183. package/dist-versioned/chunks/chunk.UZKLVMCI.js +1 -1
  184. package/dist-versioned/chunks/chunk.VTUCPGYW.js +1 -1
  185. package/dist-versioned/chunks/{chunk.IN7RNHBF.js → chunk.XKJR2XUZ.js} +2 -2
  186. package/dist-versioned/chunks/chunk.XL2PSGM5.js +2 -2
  187. package/dist-versioned/chunks/chunk.XOL74PNU.js +26 -26
  188. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  189. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  190. package/dist-versioned/components/animation/animation.d.ts +1 -1
  191. package/dist-versioned/components/audio/audio.d.ts +1 -1
  192. package/dist-versioned/components/badge/badge.d.ts +1 -1
  193. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  194. package/dist-versioned/components/button/button.d.ts +1 -1
  195. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  196. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  197. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  198. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  199. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  200. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  201. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  202. package/dist-versioned/components/divider/divider.d.ts +1 -1
  203. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  204. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  205. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  206. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  207. package/dist-versioned/components/header/header.d.ts +1 -1
  208. package/dist-versioned/components/icon/icon.d.ts +1 -1
  209. package/dist-versioned/components/include/include.d.ts +1 -1
  210. package/dist-versioned/components/input/input.d.ts +1 -1
  211. package/dist-versioned/components/link/link.d.ts +1 -1
  212. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  213. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  214. package/dist-versioned/components/notification/notification.d.ts +1 -1
  215. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  216. package/dist-versioned/components/option/option.d.ts +1 -1
  217. package/dist-versioned/components/popup/popup.d.ts +1 -1
  218. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  219. package/dist-versioned/components/radio/radio.d.ts +1 -1
  220. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  221. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  222. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  223. package/dist-versioned/components/select/select.d.ts +4 -4
  224. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  225. package/dist-versioned/components/step/step.d.ts +1 -1
  226. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  227. package/dist-versioned/components/switch/switch.d.ts +1 -1
  228. package/dist-versioned/components/switch/switch.js +1 -1
  229. package/dist-versioned/components/tab/tab.d.ts +1 -1
  230. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  231. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  232. package/dist-versioned/components/tag/tag.d.ts +1 -1
  233. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  234. package/dist-versioned/components/tooltip/tooltip.d.ts +4 -2
  235. package/dist-versioned/components/tooltip/tooltip.js +1 -1
  236. package/dist-versioned/components/video/video.d.ts +1 -1
  237. package/dist-versioned/custom-elements.json +202 -202
  238. package/dist-versioned/internal/form.js +3 -3
  239. package/dist-versioned/solid-components.css +2 -2
  240. package/dist-versioned/solid-components.js +2 -2
  241. package/dist-versioned/vscode.html-custom-data.json +80 -80
  242. package/dist-versioned/web-types.json +137 -137
  243. package/package.json +2 -2
  244. package/cdn/chunks/chunk.6VYBRKPB.js +0 -3
  245. package/cdn/chunks/chunk.TY23JP7L.js +0 -4
  246. package/cdn-versioned/chunks/chunk.6VYBRKPB.js +0 -3
  247. package/cdn-versioned/chunks/chunk.TY23JP7L.js +0 -4
@@ -31,8 +31,6 @@ import cx from "classix";
31
31
  var SdTooltip = class extends SolidElement {
32
32
  constructor() {
33
33
  super(...arguments);
34
- // Flag to handle the case where a click event is triggered after a focus event
35
- this.isFocusTriggered = false;
36
34
  this.localize = new LocalizeController(this);
37
35
  this.size = "lg";
38
36
  this.content = "";
@@ -41,6 +39,12 @@ var SdTooltip = class extends SolidElement {
41
39
  this.open = false;
42
40
  this.trigger = "click focus";
43
41
  this.hoist = false;
42
+ this.handleMouseInteraction = () => {
43
+ this.interactionType = "mouse";
44
+ };
45
+ this.handleKeyboardInteraction = () => {
46
+ this.interactionType = "keyboard";
47
+ };
44
48
  }
45
49
  connectedCallback() {
46
50
  super.connectedCallback();
@@ -50,6 +54,8 @@ var SdTooltip = class extends SolidElement {
50
54
  this.handleKeyDown = this.handleKeyDown.bind(this);
51
55
  this.handleMouseOver = this.handleMouseOver.bind(this);
52
56
  this.handleMouseOut = this.handleMouseOut.bind(this);
57
+ document.addEventListener("mousedown", this.handleMouseInteraction);
58
+ document.addEventListener("keydown", this.handleKeyboardInteraction);
53
59
  this.updateComplete.then(() => {
54
60
  this.addEventListener("blur", this.handleBlur, true);
55
61
  this.addEventListener("focus", this.handleFocus, true);
@@ -75,6 +81,8 @@ var SdTooltip = class extends SolidElement {
75
81
  this.removeEventListener("keydown", this.handleKeyDown);
76
82
  this.removeEventListener("mouseover", this.handleMouseOver);
77
83
  this.removeEventListener("mouseout", this.handleMouseOut);
84
+ document.removeEventListener("mousedown", this.handleMouseInteraction);
85
+ document.removeEventListener("keydown", this.handleKeyboardInteraction);
78
86
  }
79
87
  // removes empty text nodes from the default slot
80
88
  formatDefaultSlot(slot) {
@@ -93,10 +101,6 @@ var SdTooltip = class extends SolidElement {
93
101
  }
94
102
  handleClick() {
95
103
  if (this.hasTrigger("click")) {
96
- if (this.isFocusTriggered) {
97
- this.isFocusTriggered = false;
98
- return;
99
- }
100
104
  if (this.open) {
101
105
  this.hide();
102
106
  } else {
@@ -106,8 +110,9 @@ var SdTooltip = class extends SolidElement {
106
110
  }
107
111
  handleFocus() {
108
112
  if (this.hasTrigger("focus")) {
109
- this.isFocusTriggered = true;
110
- this.show();
113
+ if (this.interactionType === "keyboard") {
114
+ this.show();
115
+ }
111
116
  }
112
117
  }
113
118
  handleKeyDown(event) {
@@ -181,6 +186,7 @@ var SdTooltip = class extends SolidElement {
181
186
  return void 0;
182
187
  }
183
188
  this.open = false;
189
+ this.blur();
184
190
  return waitForEvent(this, "sd-after-hide");
185
191
  }
186
192
  render() {
@@ -189,7 +195,7 @@ var SdTooltip = class extends SolidElement {
189
195
  return html`<sd-popup part="base" exportparts="
190
196
  popup:base__popup,
191
197
  arrow:base__arrow
192
- " class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-popup>`;
198
+ " class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button aria-describedby="tooltip" class="flex sd-interactive rounded-full" ?disabled="${this.disabled}"><sd-icon library="system" name="info-circle" label="Tooltip" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-popup>`;
193
199
  }
194
200
  };
195
201
  SdTooltip.styles = [
@@ -114,7 +114,7 @@ var SdSwitch = class extends SolidElement {
114
114
  this.disabled && this.checked ? "border-neutral-500 bg-neutral-500" : this.disabled ? "border-neutral-500" : this.showInvalidStyle ? "border-error bg-error hover:bg-error-400" : this.checked ? "border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550" : "border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200"
115
115
  )}"><span id="thumb" part="thumb" class="${cx(
116
116
  "w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",
117
- this.disabled && this.checked ? "bg-white" : this.disabled ? "-translate-x-2 bg-neutral-500" : this.showInvalidStyle ? "bg-white -translate-x-2" : this.checked ? "translate-x-2 bg-white" : "bg-neutral-800 -translate-x-2"
117
+ this.disabled && this.checked ? "bg-white translate-x-2" : this.disabled ? "-translate-x-2 bg-neutral-500" : this.showInvalidStyle ? "bg-white -translate-x-2" : this.checked ? "translate-x-2 bg-white" : "bg-neutral-800 -translate-x-2"
118
118
  )}"></span> </span><span part="label" id="label" class="${cx(
119
119
  "select-none inline-block ml-2",
120
120
  this.disabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SdSwitch
3
- } from "../../chunks/chunk.IN7RNHBF.js";
3
+ } from "../../chunks/chunk.XKJR2XUZ.js";
4
4
  import "../../chunks/chunk.GI7VDIWX.js";
5
5
  import "../../chunks/chunk.KVKRZJS7.js";
6
6
  import "../../chunks/chunk.X2OQMWGY.js";
@@ -4,7 +4,7 @@ import SolidElement from '../../internal/solid-element';
4
4
  import type SdPopup from '../popup/popup';
5
5
  export default class SdTooltip extends SolidElement {
6
6
  private hoverTimeout;
7
- private isFocusTriggered;
7
+ private interactionType;
8
8
  localize: LocalizeController;
9
9
  defaultSlot: HTMLSlotElement;
10
10
  body: HTMLElement;
@@ -20,6 +20,8 @@ export default class SdTooltip extends SolidElement {
20
20
  firstUpdated(): void;
21
21
  disconnectedCallback(): void;
22
22
  private formatDefaultSlot;
23
+ private handleMouseInteraction;
24
+ private handleKeyboardInteraction;
23
25
  private handleBlur;
24
26
  private handleClick;
25
27
  private handleFocus;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SdTooltip
3
- } from "../../chunks/chunk.K3JCC7KV.js";
3
+ } from "../../chunks/chunk.5PTDC66T.js";
4
4
  import "../../chunks/chunk.VTUCPGYW.js";
5
5
  import "../../chunks/chunk.N4LHE3QK.js";
6
6
  import "../../chunks/chunk.EY4JPJJQ.js";
@@ -16748,7 +16748,7 @@
16748
16748
  "package": {
16749
16749
  "name": "@solid-design-system/components",
16750
16750
  "description": "Solid Design System: Components",
16751
- "version": "4.1.0",
16751
+ "version": "4.1.2",
16752
16752
  "author": "Union Investment",
16753
16753
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
16754
16754
  "license": "MIT"
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunks/chunk.RSPK767T.js";
17
17
  import {
18
18
  SdTooltip
19
- } from "./chunks/chunk.K3JCC7KV.js";
19
+ } from "./chunks/chunk.5PTDC66T.js";
20
20
  import {
21
21
  SdVideo
22
22
  } from "./chunks/chunk.2FXKQI26.js";
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunks/chunk.QTFIZJGB.js";
35
35
  import {
36
36
  SdSwitch
37
- } from "./chunks/chunk.IN7RNHBF.js";
37
+ } from "./chunks/chunk.XKJR2XUZ.js";
38
38
  import {
39
39
  SdTab
40
40
  } from "./chunks/chunk.XL2PSGM5.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@solid-design-system/components",
4
- "version": "4.1.0",
4
+ "version": "4.1.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
32
32
  if (item.type === 'checkbox') {
33
33
  item.checked = !item.checked;
34
34
  }
35
- this.emit('sd-4-1-0-select', { detail: { item } });
35
+ this.emit('sd-4-1-2-select', { detail: { item } });
36
36
  }
37
37
  handleKeyDown(event) {
38
38
  if (event.key === 'Enter') {
@@ -11,7 +11,7 @@ export default css `
11
11
  overscroll-behavior: none;
12
12
  }
13
13
 
14
- ::slotted(sd-4-1-0-divider) {
14
+ ::slotted(sd-4-1-2-divider) {
15
15
  --spacing: var(--sd-spacing-x-small);
16
16
  }
17
17
  `;
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
74
74
  })}
75
75
  >
76
76
  <span part="checked-icon" class="menu-item__check">
77
- <sd-4-1-0-icon name="check" library="system" aria-hidden="true"></sd-4-1-0-icon>
77
+ <sd-4-1-2-icon name="check" library="system" aria-hidden="true"></sd-4-1-2-icon>
78
78
  </span>
79
79
 
80
80
  <slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
84
84
  <slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
85
85
 
86
86
  <span class="menu-item__chevron">
87
- <sd-4-1-0-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-1-0-icon>
87
+ <sd-4-1-2-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-1-2-icon>
88
88
  </span>
89
89
  </div>
90
90
  `;
@@ -131,12 +131,12 @@ var SdScrollable = class extends SolidElement {
131
131
  this.orientation === "auto" && "scroll-auto overflow-auto",
132
132
  this.scrollbars ? "show-scrollbars" : "hide-scrollbars",
133
133
  this.inset ? "p-4" : ""
134
- )}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-1-0-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-1-0-icon></slot></button></div>` : null} ${this.canScroll.right ? html`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("right", e)}"><slot name="icon-end"><sd-4-1-0-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-1-0-icon></slot></button></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("up", e)}"><slot name="icon-start"><sd-4-1-0-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-1-0-icon></slot></button></div>` : null} ${this.canScroll.down ? html`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("down", e)}"><slot name="icon-end"><sd-4-1-0-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-1-0-icon></slot></button></div>` : null}` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="shadow-left" class="${scrollShadowClasses} left top-0 left-0 w-[6px] h-full"></div>` : null} ${this.canScroll.right ? html`<div part="shadow-right" class="${scrollShadowClasses} right top-0 right-0 w-[6px] h-full"></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="shadow-top" class="${scrollShadowClasses} top top-0 left-0 w-full h-[6px]"></div>` : null} ${this.canScroll.down ? html`<div part="shadow-bottom" class="${scrollShadowClasses} bottom bottom-0 left-0 w-full h-[6px]"></div>` : null}` : null}` : null}`;
134
+ )}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-1-2-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-1-2-icon></slot></button></div>` : null} ${this.canScroll.right ? html`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("right", e)}"><slot name="icon-end"><sd-4-1-2-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-1-2-icon></slot></button></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("up", e)}"><slot name="icon-start"><sd-4-1-2-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-1-2-icon></slot></button></div>` : null} ${this.canScroll.down ? html`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("down", e)}"><slot name="icon-end"><sd-4-1-2-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-1-2-icon></slot></button></div>` : null}` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="shadow-left" class="${scrollShadowClasses} left top-0 left-0 w-[6px] h-full"></div>` : null} ${this.canScroll.right ? html`<div part="shadow-right" class="${scrollShadowClasses} right top-0 right-0 w-[6px] h-full"></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="shadow-top" class="${scrollShadowClasses} top top-0 left-0 w-full h-[6px]"></div>` : null} ${this.canScroll.down ? html`<div part="shadow-bottom" class="${scrollShadowClasses} bottom bottom-0 left-0 w-full h-[6px]"></div>` : null}` : null}` : null}`;
135
135
  }
136
136
  };
137
137
  SdScrollable.styles = [
138
138
  ...SolidElement.styles,
139
- css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-1-0-icon--top{align-self:flex-start}.sd-4-1-0-icon--down{align-self:flex-end}`
139
+ css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-1-2-icon--top{align-self:flex-start}.sd-4-1-2-icon--down{align-self:flex-end}`
140
140
  ];
141
141
  __decorateClass([
142
142
  property({ type: String, reflect: true })
@@ -169,7 +169,7 @@ __decorateClass([
169
169
  state()
170
170
  ], SdScrollable.prototype, "isKeyboardNavigation", 2);
171
171
  SdScrollable = __decorateClass([
172
- customElement("sd-4-1-0-scrollable")
172
+ customElement("sd-4-1-2-scrollable")
173
173
  ], SdScrollable);
174
174
 
175
175
  export {
@@ -99,7 +99,7 @@ var SdVideo = class extends SolidElement {
99
99
  this.playing ? "opacity-0" : "opacity-100",
100
100
  this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
101
101
  "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline"
102
- )}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-1-0-icon id="default-play-icon" library="system" name="start"></sd-4-1-0-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>` : null}<slot></slot></div>`;
102
+ )}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-1-2-icon id="default-play-icon" library="system" name="start"></sd-4-1-2-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>` : null}<slot></slot></div>`;
103
103
  }
104
104
  };
105
105
  SdVideo.styles = [
@@ -116,7 +116,7 @@ __decorateClass([
116
116
  property({ type: Boolean })
117
117
  ], SdVideo.prototype, "isBelowBreakpoint", 2);
118
118
  SdVideo = __decorateClass([
119
- customElement("sd-4-1-0-video")
119
+ customElement("sd-4-1-2-video")
120
120
  ], SdVideo);
121
121
 
122
122
  export {
@@ -18,7 +18,7 @@ var SdTabPanel = class extends SolidElement {
18
18
  constructor() {
19
19
  super(...arguments);
20
20
  this.attrId = ++id;
21
- this.componentId = `sd-4-1-0-tab-panel-${this.attrId}`;
21
+ this.componentId = `sd-4-1-2-tab-panel-${this.attrId}`;
22
22
  this.name = "";
23
23
  this.active = false;
24
24
  }
@@ -48,7 +48,7 @@ __decorateClass([
48
48
  watch("active")
49
49
  ], SdTabPanel.prototype, "handleActiveChange", 1);
50
50
  SdTabPanel = __decorateClass([
51
- customElement("sd-4-1-0-tab-panel")
51
+ customElement("sd-4-1-2-tab-panel")
52
52
  ], SdTabPanel);
53
53
 
54
54
  export {
@@ -25,7 +25,7 @@ var SdCheckboxGroup = class extends SolidElement {
25
25
  this.label = "";
26
26
  }
27
27
  getAllCheckboxes() {
28
- return [...this.querySelectorAll("sd-4-1-0-checkbox")];
28
+ return [...this.querySelectorAll("sd-4-1-2-checkbox")];
29
29
  }
30
30
  async syncCheckboxElements() {
31
31
  const checkboxes = this.getAllCheckboxes();
@@ -38,10 +38,10 @@ var SdCheckboxGroup = class extends SolidElement {
38
38
  );
39
39
  }
40
40
  syncCheckboxes() {
41
- if (customElements.get("sd-4-1-0-checkbox")) {
41
+ if (customElements.get("sd-4-1-2-checkbox")) {
42
42
  this.syncCheckboxElements();
43
43
  } else {
44
- customElements.whenDefined("sd-4-1-0-checkbox").then(() => this.syncCheckboxes());
44
+ customElements.whenDefined("sd-4-1-2-checkbox").then(() => this.syncCheckboxes());
45
45
  }
46
46
  }
47
47
  handleSizeChange() {
@@ -76,7 +76,7 @@ var SdCheckboxGroup = class extends SolidElement {
76
76
  */
77
77
  SdCheckboxGroup.styles = [
78
78
  ...SolidElement.styles,
79
- css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-1-0-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-1-0-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-1-0-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-1-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-1-0-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-1-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
79
+ css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-1-2-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-1-2-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-1-2-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-1-2-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-1-2-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-1-2-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
80
80
  ];
81
81
  __decorateClass([
82
82
  property({ reflect: true })
@@ -94,7 +94,7 @@ __decorateClass([
94
94
  watch("invalid", { waitUntilFirstUpdate: true })
95
95
  ], SdCheckboxGroup.prototype, "handleInvalid", 1);
96
96
  SdCheckboxGroup = __decorateClass([
97
- customElement("sd-4-1-0-checkbox-group")
97
+ customElement("sd-4-1-2-checkbox-group")
98
98
  ], SdCheckboxGroup);
99
99
 
100
100
  export {
@@ -366,7 +366,7 @@ var SdInput = class extends SolidElement {
366
366
  "min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
367
367
  this.size === "sm" ? "h-6" : "h-8",
368
368
  textSize
369
- )}" 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 invalid-message" @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-4-1-0-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-1-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-4-1-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-4-1-0-icon></slot>` : html`<slot name="hide-password-icon"><sd-4-1-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-4-1-0-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-4-1-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-4-1-0-icon>` : ""} ${this.type === "time" ? html`<sd-4-1-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-4-1-0-icon>` : ""} ${this.type === "search" ? html`<button class="flex items-center" type="button" tabindex="-1"><sd-4-1-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="magnifying-glass"></sd-4-1-0-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-1-0-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-4-1-0-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-4-1-0-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-4-1-0-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-4-1-0-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-1-0-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-4-1-0-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-1-0-icon></slot></button></div>` : ""}</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()}`;
369
+ )}" 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 invalid-message" @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-4-1-2-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-1-2-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-4-1-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-4-1-2-icon></slot>` : html`<slot name="hide-password-icon"><sd-4-1-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-4-1-2-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-4-1-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-4-1-2-icon>` : ""} ${this.type === "time" ? html`<sd-4-1-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-4-1-2-icon>` : ""} ${this.type === "search" ? html`<button class="flex items-center" type="button" tabindex="-1"><sd-4-1-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="magnifying-glass"></sd-4-1-2-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-1-2-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-4-1-2-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-4-1-2-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-4-1-2-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-4-1-2-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-1-2-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-4-1-2-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-1-2-icon></slot></button></div>` : ""}</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()}`;
370
370
  }
371
371
  };
372
372
  /**
@@ -374,7 +374,7 @@ var SdInput = class extends SolidElement {
374
374
  */
375
375
  SdInput.styles = [
376
376
  ...SolidElement.styles,
377
- css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-1-0-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
377
+ css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-1-2-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
378
378
  ];
379
379
  __decorateClass([
380
380
  query("#input")
@@ -501,7 +501,7 @@ __decorateClass([
501
501
  watch("value", { waitUntilFirstUpdate: true })
502
502
  ], SdInput.prototype, "handleValueChange", 1);
503
503
  SdInput = __decorateClass([
504
- customElement("sd-4-1-0-input")
504
+ customElement("sd-4-1-2-input")
505
505
  ], SdInput);
506
506
 
507
507
  export {
@@ -31,8 +31,6 @@ import cx from "classix";
31
31
  var SdTooltip = class extends SolidElement {
32
32
  constructor() {
33
33
  super(...arguments);
34
- // Flag to handle the case where a click event is triggered after a focus event
35
- this.isFocusTriggered = false;
36
34
  this.localize = new LocalizeController(this);
37
35
  this.size = "lg";
38
36
  this.content = "";
@@ -41,6 +39,12 @@ var SdTooltip = class extends SolidElement {
41
39
  this.open = false;
42
40
  this.trigger = "click focus";
43
41
  this.hoist = false;
42
+ this.handleMouseInteraction = () => {
43
+ this.interactionType = "mouse";
44
+ };
45
+ this.handleKeyboardInteraction = () => {
46
+ this.interactionType = "keyboard";
47
+ };
44
48
  }
45
49
  connectedCallback() {
46
50
  super.connectedCallback();
@@ -50,6 +54,8 @@ var SdTooltip = class extends SolidElement {
50
54
  this.handleKeyDown = this.handleKeyDown.bind(this);
51
55
  this.handleMouseOver = this.handleMouseOver.bind(this);
52
56
  this.handleMouseOut = this.handleMouseOut.bind(this);
57
+ document.addEventListener("mousedown", this.handleMouseInteraction);
58
+ document.addEventListener("keydown", this.handleKeyboardInteraction);
53
59
  this.updateComplete.then(() => {
54
60
  this.addEventListener("blur", this.handleBlur, true);
55
61
  this.addEventListener("focus", this.handleFocus, true);
@@ -75,6 +81,8 @@ var SdTooltip = class extends SolidElement {
75
81
  this.removeEventListener("keydown", this.handleKeyDown);
76
82
  this.removeEventListener("mouseover", this.handleMouseOver);
77
83
  this.removeEventListener("mouseout", this.handleMouseOut);
84
+ document.removeEventListener("mousedown", this.handleMouseInteraction);
85
+ document.removeEventListener("keydown", this.handleKeyboardInteraction);
78
86
  }
79
87
  // removes empty text nodes from the default slot
80
88
  formatDefaultSlot(slot) {
@@ -93,10 +101,6 @@ var SdTooltip = class extends SolidElement {
93
101
  }
94
102
  handleClick() {
95
103
  if (this.hasTrigger("click")) {
96
- if (this.isFocusTriggered) {
97
- this.isFocusTriggered = false;
98
- return;
99
- }
100
104
  if (this.open) {
101
105
  this.hide();
102
106
  } else {
@@ -106,8 +110,9 @@ var SdTooltip = class extends SolidElement {
106
110
  }
107
111
  handleFocus() {
108
112
  if (this.hasTrigger("focus")) {
109
- this.isFocusTriggered = true;
110
- this.show();
113
+ if (this.interactionType === "keyboard") {
114
+ this.show();
115
+ }
111
116
  }
112
117
  }
113
118
  handleKeyDown(event) {
@@ -181,20 +186,21 @@ var SdTooltip = class extends SolidElement {
181
186
  return void 0;
182
187
  }
183
188
  this.open = false;
189
+ this.blur();
184
190
  return waitForEvent(this, "sd-after-hide");
185
191
  }
186
192
  render() {
187
193
  const isStart = this.placement.endsWith("-start");
188
194
  const isEnd = this.placement.endsWith("-end");
189
- return html`<sd-4-1-0-popup part="base" exportparts="
195
+ return html`<sd-4-1-2-popup part="base" exportparts="
190
196
  popup:base__popup,
191
197
  arrow:base__arrow
192
- " class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button class="flex sd-interactive rounded-full"><sd-4-1-0-icon library="system" name="info-circle" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-4-1-0-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-4-1-0-popup>`;
198
+ " class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button aria-describedby="tooltip" class="flex sd-interactive rounded-full" ?disabled="${this.disabled}"><sd-4-1-2-icon library="system" name="info-circle" label="Tooltip" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-4-1-2-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-4-1-2-popup>`;
193
199
  }
194
200
  };
195
201
  SdTooltip.styles = [
196
202
  ...SolidElement.styles,
197
- css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-1-0-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-1-0-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-1-0-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-1-0-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-1-0-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`
203
+ css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-1-2-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-1-2-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-1-2-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-1-2-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-1-2-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`
198
204
  ];
199
205
  __decorateClass([
200
206
  query("slot:not([name])")
@@ -203,7 +209,7 @@ __decorateClass([
203
209
  query("#tooltip")
204
210
  ], SdTooltip.prototype, "body", 2);
205
211
  __decorateClass([
206
- query("sd-4-1-0-popup")
212
+ query("sd-4-1-2-popup")
207
213
  ], SdTooltip.prototype, "popup", 2);
208
214
  __decorateClass([
209
215
  property()
@@ -236,7 +242,7 @@ __decorateClass([
236
242
  watch("disabled")
237
243
  ], SdTooltip.prototype, "handleDisabledChange", 1);
238
244
  SdTooltip = __decorateClass([
239
- customElement("sd-4-1-0-tooltip")
245
+ customElement("sd-4-1-2-tooltip")
240
246
  ], SdTooltip);
241
247
  setDefaultAnimation("tooltip.show", {
242
248
  keyframes: [
@@ -64,7 +64,7 @@ __decorateClass([
64
64
  query('[part="base"]')
65
65
  ], SdTeaserMedia.prototype, "teaserMedia", 2);
66
66
  SdTeaserMedia = __decorateClass([
67
- customElement("sd-4-1-0-teaser-media")
67
+ customElement("sd-4-1-2-teaser-media")
68
68
  ], SdTeaserMedia);
69
69
 
70
70
  export {
@@ -10,7 +10,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
10
10
  var _a, _b;
11
11
  const ul = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("ul");
12
12
  ul == null ? void 0 : ul.setAttribute("part", "listbox");
13
- const popup = document.createElement("sd-4-1-0-popup");
13
+ const popup = document.createElement("sd-4-1-2-popup");
14
14
  popup.appendChild(ul);
15
15
  (_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
16
16
  popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
22
22
  popup.anchor = sdInput;
23
23
  popup.sync = "width";
24
24
  }
25
- const styles = css`sd-4-1-0-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-1-0-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-1-0-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-4-1-0-popup li{list-style-type:""}sd-4-1-0-popup li mark{background-color:transparent;font-weight:700}sd-4-1-0-popup li:not(:has(sd-4-1-0-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-4-1-0-popup li:not(:has(sd-4-1-0-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-4-1-0-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
25
+ const styles = css`sd-4-1-2-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-1-2-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-1-2-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-4-1-2-popup li{list-style-type:""}sd-4-1-2-popup li mark{background-color:transparent;font-weight:700}sd-4-1-2-popup li:not(:has(sd-4-1-2-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-4-1-2-popup li:not(:has(sd-4-1-2-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-4-1-2-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
26
26
  const styleSheet = new CSSStyleSheet();
27
27
  styleSheet.replaceSync(styles);
28
28
  sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
35
35
  }
36
36
  input.addEventListener("open", () => {
37
37
  var _a, _b, _c, _d, _e, _f;
38
- (_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-1-0-popup")) == null ? void 0 : _b.setAttribute("active", "true");
38
+ (_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-1-2-popup")) == null ? void 0 : _b.setAttribute("active", "true");
39
39
  (_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
40
40
  (_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
41
41
  });
42
42
  input.addEventListener("close", () => {
43
43
  var _a, _b, _c, _d, _e, _f;
44
- (_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-1-0-popup")) == null ? void 0 : _b.removeAttribute("active");
44
+ (_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-1-2-popup")) == null ? void 0 : _b.removeAttribute("active");
45
45
  (_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
46
46
  (_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
47
47
  });
@@ -64,10 +64,10 @@ var SdQuickfact = class extends SdAccordion {
64
64
  !this.expandable && "hidden"
65
65
  )}
66
66
  ><slot name="expand-icon" class=${cx(this.open && "hidden")}>
67
- <sd-4-1-0-icon library="system" name="chevron-down"></sd-4-1-0-icon>
67
+ <sd-4-1-2-icon library="system" name="chevron-down"></sd-4-1-2-icon>
68
68
  </slot>
69
69
  <slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
70
- <sd-4-1-0-icon library="system" name="chevron-down"></sd-4-1-0-icon> </slot
70
+ <sd-4-1-2-icon library="system" name="chevron-down"></sd-4-1-2-icon> </slot
71
71
  ></span>
72
72
  </${header}>
73
73
  <div part="content" id="content" class=${cx("overflow-hidden", !this.expandable && "hidden")}>
@@ -85,7 +85,7 @@ __decorateClass([
85
85
  property({ type: Boolean, reflect: true })
86
86
  ], SdQuickfact.prototype, "expandable", 2);
87
87
  SdQuickfact = __decorateClass([
88
- customElement("sd-4-1-0-quickfact")
88
+ customElement("sd-4-1-2-quickfact")
89
89
  ], SdQuickfact);
90
90
  setDefaultAnimation("quickfact.show", {
91
91
  keyframes: [
@@ -111,7 +111,7 @@ var SdCheckbox = class extends SolidElement {
111
111
  render() {
112
112
  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";
113
113
  return html`<label part="base" class="${cx(
114
- "sd-4-1-0-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
114
+ "sd-4-1-2-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
115
115
  this.disabled && "hover:cursor-not-allowed",
116
116
  {
117
117
  /* sizes, fonts */
@@ -137,7 +137,7 @@ var SdCheckbox = class extends SolidElement {
137
137
  filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
138
138
  default: "border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
139
139
  }[checkboxState]
140
- )}">${this.checked ? html`<sd-4-1-0-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-1-0-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-4-1-0-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-1-0-icon>` : ""} </span><span part="label" id="label" class="${cx(
140
+ )}">${this.checked ? html`<sd-4-1-2-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-1-2-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-4-1-2-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-1-2-icon>` : ""} </span><span part="label" id="label" class="${cx(
141
141
  "select-none inline-block ml-2",
142
142
  this.disabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
143
143
  )}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
@@ -196,7 +196,7 @@ __decorateClass([
196
196
  watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
197
197
  ], SdCheckbox.prototype, "handleStateChange", 1);
198
198
  SdCheckbox = __decorateClass([
199
- customElement("sd-4-1-0-checkbox")
199
+ customElement("sd-4-1-2-checkbox")
200
200
  ], SdCheckbox);
201
201
 
202
202
  export {
@@ -70,7 +70,7 @@ var SdRadio = class extends SolidElement {
70
70
  }
71
71
  render() {
72
72
  return html`<span part="base" class="${cx(
73
- "sd-4-1-0-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",
73
+ "sd-4-1-2-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",
74
74
  this.disabled && "hover:cursor-not-allowed",
75
75
  {
76
76
  /* sizes, fonts */
@@ -122,7 +122,7 @@ __decorateClass([
122
122
  watch("disabled", { waitUntilFirstUpdate: true })
123
123
  ], SdRadio.prototype, "handleDisabledChange", 1);
124
124
  SdRadio = __decorateClass([
125
- customElement("sd-4-1-0-radio")
125
+ customElement("sd-4-1-2-radio")
126
126
  ], SdRadio);
127
127
 
128
128
  export {