@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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solid-design-system/components",
3
3
  "description": "Solid Design System: Components",
4
- "version": "4.1.0",
4
+ "version": "4.1.2",
5
5
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
6
6
  "author": "Union Investment",
7
7
  "license": "MIT",
@@ -111,7 +111,7 @@
111
111
  "readme": "README.md",
112
112
  "meta": {
113
113
  "bundleSizeInKb": {
114
- "uncompressed": 402,
114
+ "uncompressed": 403,
115
115
  "gzip": 95
116
116
  }
117
117
  },
@@ -1,3 +0,0 @@
1
- import{b as f}from"./chunk.5CK64GWQ.js";import{a as m}from"./chunk.D7TMPF3D.js";import{b as c}from"./chunk.65NSSTJE.js";import{a as p}from"./chunk.HE2LNCWW.js";import{a}from"./chunk.E2DRD2OX.js";import{a as r}from"./chunk.TWQVHGYD.js";import{a as h,b as l,c as u,d as o,h as s}from"./chunk.GQU4LYQ6.js";import{b as n,e as d}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends s{constructor(){super(...arguments);this.formControlController=new c(this,{value:i=>i.checked?i.value||"on":void 0,defaultValue:i=>i.defaultChecked,setValue:(i,b)=>i.checked=b});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i),this.invalidMessage.textContent=i.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(i){this.input.focus(i)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(i){this.input.setCustomValidity(i),this.formControlController.updateValidity()}render(){return d`<label part="base" class="${r("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${p(this.value)}" .checked="${f(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${r(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
2
- peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
3
- peer-focus-visible:outline-primary`,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")}"><span id="thumb" part="thumb" class="${r("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",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")}"></span> </span><span part="label" id="label" class="${r("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};e.styles=[...s.styles,n`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label:after{content:" *"}`],t([o("input")],e.prototype,"input",2),t([o("#invalid-message")],e.prototype,"invalidMessage",2),t([u()],e.prototype,"showInvalidStyle",2),t([l()],e.prototype,"title",2),t([l()],e.prototype,"name",2),t([l()],e.prototype,"value",2),t([l({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([l({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([m("checked")],e.prototype,"defaultChecked",2),t([l({reflect:!0})],e.prototype,"form",2),t([l({type:Boolean,reflect:!0})],e.prototype,"required",2),t([a("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([a(["checked"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([h("sd-switch")],e);export{e as a};
@@ -1,4 +0,0 @@
1
- import{a as c,c as m}from"./chunk.A3DKF5BY.js";import{a as d,b as l,d as u}from"./chunk.RQYP7MH5.js";import{a as f}from"./chunk.KLRPP4NQ.js";import{a as h}from"./chunk.E2DRD2OX.js";import{a as x}from"./chunk.26YUWEYR.js";import{a as n}from"./chunk.TWQVHGYD.js";import{a as y,b as o,d as r,h as p}from"./chunk.GQU4LYQ6.js";import{b as g,e as b}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends p{constructor(){super(...arguments);this.isFocusTriggered=!1;this.localize=new x(this);this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.formatDefaultSlot(this.defaultSlot),this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}formatDefaultSlot(e){e.assignedNodes({flatten:!0}).forEach(i=>{var w,v;i.nodeType===Node.TEXT_NODE&&!((w=i==null?void 0:i.textContent)!=null&&w.trim())&&((v=i==null?void 0:i.parentNode)==null||v.removeChild(i))})}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered){this.isFocusTriggered=!1;return}this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}}handleMouseOut(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await u(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:e,options:a}=m(this,"tooltip.show",{dir:this.localize.dir()});await d(this.popup.popup,e,a),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.body);let{keyframes:e,options:a}=m(this,"tooltip.hide",{dir:this.localize.dir()});await d(this.popup.popup,e,a),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,f(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,f(this,"sd-after-hide")}render(){let e=this.placement.endsWith("-start"),a=this.placement.endsWith("-end");return b`<sd-popup part="base" exportparts="
2
- popup:base__popup,
3
- arrow:base__arrow
4
- " class="${n(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[e?"start":a?"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="${n(this.size==="lg"?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${n(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>`}};t.styles=[...p.styles,g`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-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-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-popup[placement^=top]::part(popup){transform-origin:bottom}sd-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}`],s([r("slot:not([name])")],t.prototype,"defaultSlot",2),s([r("#tooltip")],t.prototype,"body",2),s([r("sd-popup")],t.prototype,"popup",2),s([o()],t.prototype,"size",2),s([o()],t.prototype,"content",2),s([o({reflect:!0})],t.prototype,"placement",2),s([o({type:Boolean,reflect:!0})],t.prototype,"disabled",2),s([o({type:Boolean,reflect:!0})],t.prototype,"open",2),s([o()],t.prototype,"trigger",2),s([o({type:Boolean})],t.prototype,"hoist",2),s([h("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),s([h(["content","hoist","placement"])],t.prototype,"handleOptionsChange",1),s([h("disabled")],t.prototype,"handleDisabledChange",1),t=s([y("sd-tooltip")],t);c("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});c("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});export{t as a};
@@ -1,3 +0,0 @@
1
- import{b as f}from"./chunk.5CK64GWQ.js";import{a as m}from"./chunk.D7TMPF3D.js";import{b as c}from"./chunk.65NSSTJE.js";import{a as p}from"./chunk.HE2LNCWW.js";import{a}from"./chunk.E2DRD2OX.js";import{a as r}from"./chunk.TWQVHGYD.js";import{a as h,b as l,c as u,d as o,h as s}from"./chunk.GQU4LYQ6.js";import{b as n,e as d}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends s{constructor(){super(...arguments);this.formControlController=new c(this,{value:i=>i.checked?i.value||"on":void 0,defaultValue:i=>i.defaultChecked,setValue:(i,b)=>i.checked=b});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i),this.invalidMessage.textContent=i.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(i){this.input.focus(i)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(i){this.input.setCustomValidity(i),this.formControlController.updateValidity()}render(){return d`<label part="base" class="${r("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${p(this.value)}" .checked="${f(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"}" class="${r(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
2
- peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
3
- peer-focus-visible:outline-primary`,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")}"><span id="thumb" part="thumb" class="${r("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",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")}"></span> </span><span part="label" id="label" class="${r("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};e.styles=[...s.styles,n`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label:after{content:" *"}`],t([o("input")],e.prototype,"input",2),t([o("#invalid-message")],e.prototype,"invalidMessage",2),t([u()],e.prototype,"showInvalidStyle",2),t([l()],e.prototype,"title",2),t([l()],e.prototype,"name",2),t([l()],e.prototype,"value",2),t([l({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([l({type:Boolean,reflect:!0})],e.prototype,"checked",2),t([m("checked")],e.prototype,"defaultChecked",2),t([l({reflect:!0})],e.prototype,"form",2),t([l({type:Boolean,reflect:!0})],e.prototype,"required",2),t([a("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),t([a(["checked"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=t([h("sd-4-1-0-switch")],e);export{e as a};
@@ -1,4 +0,0 @@
1
- import{a as c,c as m}from"./chunk.A3DKF5BY.js";import{a as d,b as l,d as u}from"./chunk.RQYP7MH5.js";import{a as f}from"./chunk.KLRPP4NQ.js";import{a as h}from"./chunk.E2DRD2OX.js";import{a as x}from"./chunk.26YUWEYR.js";import{a as n}from"./chunk.TWQVHGYD.js";import{a as y,b as o,d as r,h as p}from"./chunk.GQU4LYQ6.js";import{b as g,e as b}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends p{constructor(){super(...arguments);this.isFocusTriggered=!1;this.localize=new x(this);this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.formatDefaultSlot(this.defaultSlot),this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}formatDefaultSlot(e){e.assignedNodes({flatten:!0}).forEach(i=>{var w,v;i.nodeType===Node.TEXT_NODE&&!((w=i==null?void 0:i.textContent)!=null&&w.trim())&&((v=i==null?void 0:i.parentNode)==null||v.removeChild(i))})}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered){this.isFocusTriggered=!1;return}this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}}handleMouseOut(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await u(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:e,options:a}=m(this,"tooltip.show",{dir:this.localize.dir()});await d(this.popup.popup,e,a),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.body);let{keyframes:e,options:a}=m(this,"tooltip.hide",{dir:this.localize.dir()});await d(this.popup.popup,e,a),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,f(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,f(this,"sd-after-hide")}render(){let e=this.placement.endsWith("-start"),a=this.placement.endsWith("-end");return b`<sd-4-1-0-popup part="base" exportparts="
2
- popup:base__popup,
3
- arrow:base__arrow
4
- " class="${n(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[e?"start":a?"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="${n(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="${n(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>`}};t.styles=[...p.styles,g`: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}`],s([r("slot:not([name])")],t.prototype,"defaultSlot",2),s([r("#tooltip")],t.prototype,"body",2),s([r("sd-4-1-0-popup")],t.prototype,"popup",2),s([o()],t.prototype,"size",2),s([o()],t.prototype,"content",2),s([o({reflect:!0})],t.prototype,"placement",2),s([o({type:Boolean,reflect:!0})],t.prototype,"disabled",2),s([o({type:Boolean,reflect:!0})],t.prototype,"open",2),s([o()],t.prototype,"trigger",2),s([o({type:Boolean})],t.prototype,"hoist",2),s([h("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),s([h(["content","hoist","placement"])],t.prototype,"handleOptionsChange",1),s([h("disabled")],t.prototype,"handleDisabledChange",1),t=s([y("sd-4-1-0-tooltip")],t);c("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});c("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});export{t as a};