@solid-design-system/components 4.0.0-next.4 → 4.0.0-next.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/cdn/chunks/chunk.2IZXJHH7.js +1 -0
  2. package/cdn/chunks/chunk.5FM4F3Y4.js +1 -0
  3. package/cdn/components/flipcard/flipcard.d.ts +1 -0
  4. package/cdn/components/flipcard/flipcard.js +1 -1
  5. package/cdn/components/tab-group/tab-group.js +1 -1
  6. package/cdn/custom-elements.json +9 -1
  7. package/cdn/solid-components.bundle.js +10 -10
  8. package/cdn/solid-components.iife.js +11 -11
  9. package/cdn/solid-components.js +1 -1
  10. package/cdn/vscode.html-custom-data.json +47 -47
  11. package/cdn/web-types.json +144 -143
  12. package/cdn-versioned/_components/menu/menu.js +1 -1
  13. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  14. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  15. package/cdn-versioned/chunks/chunk.24SF73MY.js +1 -1
  16. package/cdn-versioned/chunks/chunk.2IZXJHH7.js +1 -0
  17. package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
  18. package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -1
  19. package/cdn-versioned/chunks/chunk.4HIKTDIM.js +3 -3
  20. package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
  21. package/cdn-versioned/chunks/chunk.5FM4F3Y4.js +1 -0
  22. package/cdn-versioned/chunks/chunk.5ZDWEJDB.js +1 -1
  23. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  24. package/cdn-versioned/chunks/chunk.6JBTCFHE.js +2 -2
  25. package/cdn-versioned/chunks/chunk.7M7VCE7R.js +1 -1
  26. package/cdn-versioned/chunks/chunk.7RJ3O2FV.js +1 -1
  27. package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
  28. package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -1
  29. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  30. package/cdn-versioned/chunks/chunk.DEX5VJGX.js +4 -4
  31. package/cdn-versioned/chunks/chunk.DMLGBWCL.js +1 -1
  32. package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
  33. package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
  34. package/cdn-versioned/chunks/chunk.F7J6HN76.js +1 -1
  35. package/cdn-versioned/chunks/chunk.FD54463O.js +1 -1
  36. package/cdn-versioned/chunks/chunk.FFNTXFC3.js +1 -1
  37. package/cdn-versioned/chunks/chunk.FX3ED655.js +1 -1
  38. package/cdn-versioned/chunks/chunk.GOVNZSCO.js +1 -1
  39. package/cdn-versioned/chunks/chunk.GQSLHWQC.js +1 -1
  40. package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
  41. package/cdn-versioned/chunks/chunk.ITRQVXFY.js +1 -1
  42. package/cdn-versioned/chunks/chunk.IZKUI5WK.js +1 -1
  43. package/cdn-versioned/chunks/chunk.KMLMMBY4.js +1 -1
  44. package/cdn-versioned/chunks/chunk.LLXTYJXF.js +1 -1
  45. package/cdn-versioned/chunks/chunk.LZEFLOSA.js +1 -1
  46. package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
  47. package/cdn-versioned/chunks/chunk.MX22EZXK.js +1 -1
  48. package/cdn-versioned/chunks/chunk.ND7BT52X.js +1 -1
  49. package/cdn-versioned/chunks/chunk.NUB5WHGD.js +1 -1
  50. package/cdn-versioned/chunks/chunk.O4UXOQEI.js +1 -1
  51. package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
  52. package/cdn-versioned/chunks/chunk.PBPFKJKV.js +1 -1
  53. package/cdn-versioned/chunks/chunk.QFNCQQ6S.js +1 -1
  54. package/cdn-versioned/chunks/chunk.QNZWJACC.js +2 -2
  55. package/cdn-versioned/chunks/chunk.R354E6ZD.js +1 -1
  56. package/cdn-versioned/chunks/chunk.ROBLMI7Q.js +4 -4
  57. package/cdn-versioned/chunks/chunk.TA7CZCP3.js +1 -1
  58. package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -1
  59. package/cdn-versioned/chunks/chunk.UBFU6D5B.js +1 -1
  60. package/cdn-versioned/chunks/chunk.URB2K7JQ.js +1 -1
  61. package/cdn-versioned/chunks/chunk.VNKUGTKM.js +1 -1
  62. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  63. package/cdn-versioned/chunks/chunk.WENTMXB2.js +1 -1
  64. package/cdn-versioned/chunks/chunk.WQAPHFVM.js +1 -1
  65. package/cdn-versioned/chunks/chunk.YF5WEC4R.js +2 -2
  66. package/cdn-versioned/chunks/chunk.ZFA2VPUT.js +1 -1
  67. package/cdn-versioned/chunks/chunk.ZRIABVVM.js +1 -1
  68. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  69. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  70. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  71. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  72. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  73. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  74. package/cdn-versioned/components/button/button.d.ts +1 -1
  75. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  76. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  77. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  78. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  79. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  80. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  81. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  82. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  83. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  84. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  85. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  86. package/cdn-versioned/components/flipcard/flipcard.d.ts +2 -1
  87. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  88. package/cdn-versioned/components/header/header.d.ts +1 -1
  89. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  90. package/cdn-versioned/components/include/include.d.ts +1 -1
  91. package/cdn-versioned/components/input/input.d.ts +1 -1
  92. package/cdn-versioned/components/link/link.d.ts +1 -1
  93. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  94. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  95. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  96. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  97. package/cdn-versioned/components/option/option.d.ts +1 -1
  98. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  99. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  100. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  101. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  102. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  103. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  104. package/cdn-versioned/components/select/select.d.ts +4 -4
  105. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  106. package/cdn-versioned/components/step/step.d.ts +1 -1
  107. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  108. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  109. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  110. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  111. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  112. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  113. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  114. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  115. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  116. package/cdn-versioned/components/video/video.d.ts +1 -1
  117. package/cdn-versioned/custom-elements.json +210 -202
  118. package/cdn-versioned/internal/form.js +3 -3
  119. package/cdn-versioned/solid-components.bundle.js +18 -18
  120. package/cdn-versioned/solid-components.css +2 -2
  121. package/cdn-versioned/solid-components.iife.js +18 -18
  122. package/cdn-versioned/solid-components.js +1 -1
  123. package/cdn-versioned/vscode.html-custom-data.json +125 -125
  124. package/cdn-versioned/web-types.json +275 -274
  125. package/dist/chunks/{chunk.56SNEGI4.js → chunk.BG3M5FUP.js} +4 -1
  126. package/dist/chunks/{chunk.WWS3CQ2Z.js → chunk.KTJRTRDJ.js} +16 -5
  127. package/dist/components/flipcard/flipcard.d.ts +1 -0
  128. package/dist/components/flipcard/flipcard.js +1 -1
  129. package/dist/components/tab-group/tab-group.js +1 -1
  130. package/dist/custom-elements.json +9 -1
  131. package/dist/solid-components.js +2 -2
  132. package/dist/vscode.html-custom-data.json +47 -47
  133. package/dist/web-types.json +144 -143
  134. package/dist-versioned/_components/menu/menu.js +1 -1
  135. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  136. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  137. package/dist-versioned/chunks/chunk.2IBVAXOX.js +1 -1
  138. package/dist-versioned/chunks/chunk.3IT4HBTI.js +1 -1
  139. package/dist-versioned/chunks/chunk.3LGDUVS4.js +2 -2
  140. package/dist-versioned/chunks/chunk.4JZQQD4L.js +3 -3
  141. package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
  142. package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
  143. package/dist-versioned/chunks/chunk.65BWRJEA.js +5 -5
  144. package/dist-versioned/chunks/chunk.6CUAQSFA.js +2 -2
  145. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  146. package/dist-versioned/chunks/chunk.727ERQ4F.js +2 -2
  147. package/dist-versioned/chunks/chunk.743FPQRN.js +2 -2
  148. package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
  149. package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
  150. package/dist-versioned/chunks/{chunk.56SNEGI4.js → chunk.BG3M5FUP.js} +17 -14
  151. package/dist-versioned/chunks/chunk.BVC5FY4L.js +13 -13
  152. package/dist-versioned/chunks/chunk.BXB5WF23.js +5 -5
  153. package/dist-versioned/chunks/chunk.D6JZ4IKM.js +1 -1
  154. package/dist-versioned/chunks/chunk.DQPVSTUQ.js +3 -3
  155. package/dist-versioned/chunks/chunk.EFEBQQHC.js +26 -26
  156. package/dist-versioned/chunks/chunk.EKFRFDTB.js +5 -5
  157. package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
  158. package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
  159. package/dist-versioned/chunks/chunk.I3PY3VYP.js +29 -29
  160. package/dist-versioned/chunks/chunk.IN3GJ5QL.js +3 -3
  161. package/dist-versioned/chunks/chunk.J2XBUIBC.js +2 -2
  162. package/dist-versioned/chunks/chunk.J7MMF6WJ.js +2 -2
  163. package/dist-versioned/chunks/{chunk.WWS3CQ2Z.js → chunk.KTJRTRDJ.js} +20 -9
  164. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  165. package/dist-versioned/chunks/chunk.MTSAWJLV.js +2 -2
  166. package/dist-versioned/chunks/chunk.NM6QP6RJ.js +2 -2
  167. package/dist-versioned/chunks/chunk.PDRECIYA.js +1 -1
  168. package/dist-versioned/chunks/chunk.PGZ5AWZ2.js +9 -9
  169. package/dist-versioned/chunks/chunk.PIR4YJUS.js +2 -2
  170. package/dist-versioned/chunks/chunk.QAZYUCBK.js +6 -6
  171. package/dist-versioned/chunks/chunk.QCICV36Z.js +6 -6
  172. package/dist-versioned/chunks/chunk.QP3SM2LZ.js +3 -3
  173. package/dist-versioned/chunks/chunk.R4BETATX.js +1 -1
  174. package/dist-versioned/chunks/chunk.RNSJAVQE.js +1 -1
  175. package/dist-versioned/chunks/chunk.RZRTIYXA.js +1 -1
  176. package/dist-versioned/chunks/chunk.SPBPHTSS.js +2 -2
  177. package/dist-versioned/chunks/chunk.SSH6ATRK.js +2 -2
  178. package/dist-versioned/chunks/chunk.TWXYFPBS.js +2 -2
  179. package/dist-versioned/chunks/chunk.U5NFPAOX.js +2 -2
  180. package/dist-versioned/chunks/chunk.U6RY25TF.js +2 -2
  181. package/dist-versioned/chunks/chunk.UC5E3AEF.js +1 -1
  182. package/dist-versioned/chunks/chunk.UDZYWRPT.js +1 -1
  183. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  184. package/dist-versioned/chunks/chunk.V7TQ6VJU.js +1 -1
  185. package/dist-versioned/chunks/chunk.VHGHICFG.js +2 -2
  186. package/dist-versioned/chunks/chunk.XVFJS7VS.js +5 -5
  187. package/dist-versioned/chunks/chunk.Z2UY62T2.js +1 -1
  188. package/dist-versioned/chunks/chunk.ZGPGFEVP.js +5 -5
  189. package/dist-versioned/chunks/chunk.ZWJI7SLE.js +11 -11
  190. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  191. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  192. package/dist-versioned/components/animation/animation.d.ts +1 -1
  193. package/dist-versioned/components/audio/audio.d.ts +1 -1
  194. package/dist-versioned/components/badge/badge.d.ts +1 -1
  195. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  196. package/dist-versioned/components/button/button.d.ts +1 -1
  197. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  198. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  199. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  200. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  201. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  202. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  203. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  204. package/dist-versioned/components/divider/divider.d.ts +1 -1
  205. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  206. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  207. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  208. package/dist-versioned/components/flipcard/flipcard.d.ts +2 -1
  209. package/dist-versioned/components/flipcard/flipcard.js +1 -1
  210. package/dist-versioned/components/header/header.d.ts +1 -1
  211. package/dist-versioned/components/icon/icon.d.ts +1 -1
  212. package/dist-versioned/components/include/include.d.ts +1 -1
  213. package/dist-versioned/components/input/input.d.ts +1 -1
  214. package/dist-versioned/components/link/link.d.ts +1 -1
  215. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  216. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  217. package/dist-versioned/components/notification/notification.d.ts +1 -1
  218. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  219. package/dist-versioned/components/option/option.d.ts +1 -1
  220. package/dist-versioned/components/popup/popup.d.ts +1 -1
  221. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  222. package/dist-versioned/components/radio/radio.d.ts +1 -1
  223. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  224. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  225. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  226. package/dist-versioned/components/select/select.d.ts +4 -4
  227. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  228. package/dist-versioned/components/step/step.d.ts +1 -1
  229. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  230. package/dist-versioned/components/switch/switch.d.ts +1 -1
  231. package/dist-versioned/components/tab/tab.d.ts +1 -1
  232. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  233. package/dist-versioned/components/tab-group/tab-group.js +1 -1
  234. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  235. package/dist-versioned/components/tag/tag.d.ts +1 -1
  236. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  237. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  238. package/dist-versioned/components/video/video.d.ts +1 -1
  239. package/dist-versioned/custom-elements.json +210 -202
  240. package/dist-versioned/internal/form.js +3 -3
  241. package/dist-versioned/solid-components.css +2 -2
  242. package/dist-versioned/solid-components.js +2 -2
  243. package/dist-versioned/vscode.html-custom-data.json +125 -125
  244. package/dist-versioned/web-types.json +275 -274
  245. package/package.json +1 -1
  246. package/cdn/chunks/chunk.SNUMAAEG.js +0 -1
  247. package/cdn/chunks/chunk.WGNXYONB.js +0 -1
  248. package/cdn-versioned/chunks/chunk.SNUMAAEG.js +0 -1
  249. package/cdn-versioned/chunks/chunk.WGNXYONB.js +0 -1
@@ -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.0.0-next.4",
4
+ "version": "4.0.0-next.6",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1911,33 +1911,61 @@
1911
1911
  }
1912
1912
  },
1913
1913
  {
1914
- "name": "sd-drawer",
1915
- "description": "Drawers slide in from a container to expose additional options and information.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the drawer opens.\n- **sd-after-show** - Emitted after the drawer opens and all animations are complete.\n- **sd-hide** - Emitted when the drawer closes.\n- **sd-after-hide** - Emitted after the drawer closes and all animations are complete.\n- **sd-initial-focus** - Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n- **sd-request-close** - Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the drawer.\n- **hide()** - Hides the drawer\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The drawer's main content.\n- **header** - The drawer's header, usually a title.\n- **footer** - The drawer's footer, usually one or more buttons representing various options.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the drawer. depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **overlay** - The overlay that covers the screen behind the drawer.\n- **panel** - The drawer's panel (where the drawer and its content are rendered).\n- **header** - The drawer's header. This element wraps the title and the close-button.\n- **title** - The drawer's title.\n- **close-button** - The close button, an `<sd-button>`.\n- **body** - The drawer's body.\n- **footer** - The drawer's footer.",
1914
+ "name": "sd-dropdown",
1915
+ "description": "Dropdowns expose additional content that \"drops down\" in a panel.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the dropdown opens.\n- **sd-after-show** - Emitted after the dropdown opens and all animations are complete.\n- **sd-hide** - Emitted when the dropdown closes.\n- **sd-after-hide** - Emitted after the dropdown closes and all animations are complete.\n\n### **Methods:**\n - **getAccessibleTrigger(): _HTMLElement | null_** - Slotted triggers can be arbitrary content. The accessible trigger is the tabbable element\nwithin the slotted trigger. This could be the slotted element itself, a child of the slotted element,\nor an element within the slotted elements shadow root.\n\ne.g. the accessible trigger of an <sd-button> is a <button> located inside its shadow root.\n\nTo determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n- **show()** - Shows the dropdown panel.\n- **hide()** - Hides the dropdown panel\n- **reposition()** - Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\nis activated.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The dropdown's main content.\n- **trigger** - The dropdown's trigger, usually a `<sd-button>` element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **trigger** - The container that wraps the trigger.\n- **panel** - The panel that gets shown when the dropdown is open.",
1916
1916
  "doc-url": "",
1917
1917
  "attributes": [
1918
1918
  {
1919
1919
  "name": "open",
1920
- "description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
1920
+ "description": "Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.",
1921
1921
  "value": { "type": "boolean", "default": "false" }
1922
1922
  },
1923
1923
  {
1924
- "name": "label",
1925
- "description": "You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility.",
1926
- "value": { "type": "string", "default": "''" }
1924
+ "name": "rounded",
1925
+ "description": "Indicates whether or not the dropdown should be styled with rounded corners.",
1926
+ "value": { "type": "boolean", "default": "false" }
1927
1927
  },
1928
1928
  {
1929
1929
  "name": "placement",
1930
- "description": "The direction from which the drawer will open.",
1931
- "value": { "type": "'end' | 'start'", "default": "'end'" }
1930
+ "description": "The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.",
1931
+ "value": {
1932
+ "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end'",
1933
+ "default": "'bottom-start'"
1934
+ }
1932
1935
  },
1933
1936
  {
1934
- "name": "contained",
1935
- "description": "By default, the drawer slides out of its containing block (the viewport). Contained is a hidden feature used only for testing purposes. Please do not use it in production as it will likely change.",
1937
+ "name": "disabled",
1938
+ "description": "Disables the dropdown so the panel will not open.",
1936
1939
  "value": { "type": "boolean", "default": "false" }
1937
1940
  },
1938
1941
  {
1939
- "name": "no-header",
1940
- "description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.",
1942
+ "name": "stay-open-on-select",
1943
+ "description": "By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.",
1944
+ "value": { "type": "boolean", "default": "false" }
1945
+ },
1946
+ {
1947
+ "name": "distance",
1948
+ "description": "The distance in pixels from which to offset the panel away from its trigger. This defaults to `0` for `rounded=false` and to a minimum of `1` for `rounded=true`.",
1949
+ "value": { "type": "number", "default": "0" }
1950
+ },
1951
+ {
1952
+ "name": "skidding",
1953
+ "description": "The distance in pixels from which to offset the panel along its trigger.",
1954
+ "value": { "type": "number", "default": "0" }
1955
+ },
1956
+ {
1957
+ "name": "no-auto-size",
1958
+ "description": "Indicates whether or not the dropdown should automatically resize its content's width/height regarding the available space on screen.",
1959
+ "value": { "type": "boolean", "default": "false" }
1960
+ },
1961
+ {
1962
+ "name": "no-flip",
1963
+ "description": "When set to true, the placement of the dropdown will not flip to the opposite site to keep it in view.",
1964
+ "value": { "type": "boolean", "default": "false" }
1965
+ },
1966
+ {
1967
+ "name": "hoist",
1968
+ "description": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
1941
1969
  "value": { "type": "boolean", "default": "false" }
1942
1970
  },
1943
1971
  {
@@ -1952,69 +1980,82 @@
1952
1980
  }
1953
1981
  ],
1954
1982
  "slots": [
1955
- { "name": "", "description": "The drawer's main content." },
1956
- {
1957
- "name": "header",
1958
- "description": "The drawer's header, usually a title."
1959
- },
1983
+ { "name": "", "description": "The dropdown's main content." },
1960
1984
  {
1961
- "name": "footer",
1962
- "description": "The drawer's footer, usually one or more buttons representing various options."
1985
+ "name": "trigger",
1986
+ "description": "The dropdown's trigger, usually a `<sd-button>` element."
1963
1987
  }
1964
1988
  ],
1965
1989
  "events": [
1966
1990
  {
1967
1991
  "name": "sd-show",
1968
- "description": "Emitted when the drawer opens."
1992
+ "description": "Emitted when the dropdown opens."
1969
1993
  },
1970
1994
  {
1971
1995
  "name": "sd-after-show",
1972
- "description": "Emitted after the drawer opens and all animations are complete."
1996
+ "description": "Emitted after the dropdown opens and all animations are complete."
1973
1997
  },
1974
1998
  {
1975
1999
  "name": "sd-hide",
1976
- "description": "Emitted when the drawer closes."
2000
+ "description": "Emitted when the dropdown closes."
1977
2001
  },
1978
2002
  {
1979
2003
  "name": "sd-after-hide",
1980
- "description": "Emitted after the drawer closes and all animations are complete."
1981
- },
1982
- {
1983
- "name": "sd-initial-focus",
1984
- "description": "Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input."
1985
- },
1986
- {
1987
- "name": "sd-request-close",
1988
- "type": "{ source: 'close-button' | 'keyboard' | 'overlay' }",
1989
- "description": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss."
2004
+ "description": "Emitted after the dropdown closes and all animations are complete."
1990
2005
  }
1991
2006
  ],
1992
2007
  "js": {
1993
2008
  "properties": [
2009
+ { "name": "popup", "type": "SdPopup" },
1994
2010
  { "name": "localize" },
1995
2011
  {
1996
2012
  "name": "open",
1997
- "description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
2013
+ "description": "Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.",
1998
2014
  "type": "boolean"
1999
2015
  },
2000
2016
  {
2001
- "name": "label",
2002
- "description": "You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility.",
2003
- "type": "string"
2017
+ "name": "rounded",
2018
+ "description": "Indicates whether or not the dropdown should be styled with rounded corners.",
2019
+ "type": "boolean"
2004
2020
  },
2005
2021
  {
2006
2022
  "name": "placement",
2007
- "description": "The direction from which the drawer will open.",
2008
- "type": "'end' | 'start'"
2023
+ "description": "The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.",
2024
+ "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end'"
2009
2025
  },
2010
2026
  {
2011
- "name": "contained",
2012
- "description": "By default, the drawer slides out of its containing block (the viewport). Contained is a hidden feature used only for testing purposes. Please do not use it in production as it will likely change.",
2027
+ "name": "disabled",
2028
+ "description": "Disables the dropdown so the panel will not open.",
2013
2029
  "type": "boolean"
2014
2030
  },
2015
2031
  {
2016
- "name": "noHeader",
2017
- "description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.",
2032
+ "name": "stayOpenOnSelect",
2033
+ "description": "By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.",
2034
+ "type": "boolean"
2035
+ },
2036
+ {
2037
+ "name": "distance",
2038
+ "description": "The distance in pixels from which to offset the panel away from its trigger. This defaults to `0` for `rounded=false` and to a minimum of `1` for `rounded=true`.",
2039
+ "type": "number"
2040
+ },
2041
+ {
2042
+ "name": "skidding",
2043
+ "description": "The distance in pixels from which to offset the panel along its trigger.",
2044
+ "type": "number"
2045
+ },
2046
+ {
2047
+ "name": "noAutoSize",
2048
+ "description": "Indicates whether or not the dropdown should automatically resize its content's width/height regarding the available space on screen.",
2049
+ "type": "boolean"
2050
+ },
2051
+ {
2052
+ "name": "noFlip",
2053
+ "description": "When set to true, the placement of the dropdown will not flip to the opposite site to keep it in view.",
2054
+ "type": "boolean"
2055
+ },
2056
+ {
2057
+ "name": "hoist",
2058
+ "description": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
2018
2059
  "type": "boolean"
2019
2060
  },
2020
2061
  {
@@ -2031,88 +2072,51 @@
2031
2072
  "events": [
2032
2073
  {
2033
2074
  "name": "sd-show",
2034
- "description": "Emitted when the drawer opens."
2075
+ "description": "Emitted when the dropdown opens."
2035
2076
  },
2036
2077
  {
2037
2078
  "name": "sd-after-show",
2038
- "description": "Emitted after the drawer opens and all animations are complete."
2079
+ "description": "Emitted after the dropdown opens and all animations are complete."
2039
2080
  },
2040
2081
  {
2041
2082
  "name": "sd-hide",
2042
- "description": "Emitted when the drawer closes."
2083
+ "description": "Emitted when the dropdown closes."
2043
2084
  },
2044
2085
  {
2045
2086
  "name": "sd-after-hide",
2046
- "description": "Emitted after the drawer closes and all animations are complete."
2047
- },
2048
- {
2049
- "name": "sd-initial-focus",
2050
- "description": "Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input."
2051
- },
2052
- {
2053
- "name": "sd-request-close",
2054
- "type": "{ source: 'close-button' | 'keyboard' | 'overlay' }",
2055
- "description": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss."
2087
+ "description": "Emitted after the dropdown closes and all animations are complete."
2056
2088
  }
2057
2089
  ]
2058
2090
  }
2059
2091
  },
2060
2092
  {
2061
- "name": "sd-dropdown",
2062
- "description": "Dropdowns expose additional content that \"drops down\" in a panel.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the dropdown opens.\n- **sd-after-show** - Emitted after the dropdown opens and all animations are complete.\n- **sd-hide** - Emitted when the dropdown closes.\n- **sd-after-hide** - Emitted after the dropdown closes and all animations are complete.\n\n### **Methods:**\n - **getAccessibleTrigger(): _HTMLElement | null_** - Slotted triggers can be arbitrary content. The accessible trigger is the tabbable element\nwithin the slotted trigger. This could be the slotted element itself, a child of the slotted element,\nor an element within the slotted elements shadow root.\n\ne.g. the accessible trigger of an <sd-button> is a <button> located inside its shadow root.\n\nTo determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n- **show()** - Shows the dropdown panel.\n- **hide()** - Hides the dropdown panel\n- **reposition()** - Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\nis activated.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The dropdown's main content.\n- **trigger** - The dropdown's trigger, usually a `<sd-button>` element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **trigger** - The container that wraps the trigger.\n- **panel** - The panel that gets shown when the dropdown is open.",
2093
+ "name": "sd-drawer",
2094
+ "description": "Drawers slide in from a container to expose additional options and information.\n---\n\n\n### **Events:**\n - **sd-show** - Emitted when the drawer opens.\n- **sd-after-show** - Emitted after the drawer opens and all animations are complete.\n- **sd-hide** - Emitted when the drawer closes.\n- **sd-after-hide** - Emitted after the drawer closes and all animations are complete.\n- **sd-initial-focus** - Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n- **sd-request-close** - Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the drawer.\n- **hide()** - Hides the drawer\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The drawer's main content.\n- **header** - The drawer's header, usually a title.\n- **footer** - The drawer's footer, usually one or more buttons representing various options.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the drawer. depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **overlay** - The overlay that covers the screen behind the drawer.\n- **panel** - The drawer's panel (where the drawer and its content are rendered).\n- **header** - The drawer's header. This element wraps the title and the close-button.\n- **title** - The drawer's title.\n- **close-button** - The close button, an `<sd-button>`.\n- **body** - The drawer's body.\n- **footer** - The drawer's footer.",
2063
2095
  "doc-url": "",
2064
2096
  "attributes": [
2065
2097
  {
2066
2098
  "name": "open",
2067
- "description": "Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.",
2099
+ "description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
2068
2100
  "value": { "type": "boolean", "default": "false" }
2069
2101
  },
2070
2102
  {
2071
- "name": "rounded",
2072
- "description": "Indicates whether or not the dropdown should be styled with rounded corners.",
2073
- "value": { "type": "boolean", "default": "false" }
2103
+ "name": "label",
2104
+ "description": "You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility.",
2105
+ "value": { "type": "string", "default": "''" }
2074
2106
  },
2075
2107
  {
2076
2108
  "name": "placement",
2077
- "description": "The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.",
2078
- "value": {
2079
- "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end'",
2080
- "default": "'bottom-start'"
2081
- }
2082
- },
2083
- {
2084
- "name": "disabled",
2085
- "description": "Disables the dropdown so the panel will not open.",
2086
- "value": { "type": "boolean", "default": "false" }
2087
- },
2088
- {
2089
- "name": "stay-open-on-select",
2090
- "description": "By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.",
2091
- "value": { "type": "boolean", "default": "false" }
2092
- },
2093
- {
2094
- "name": "distance",
2095
- "description": "The distance in pixels from which to offset the panel away from its trigger. This defaults to `0` for `rounded=false` and to a minimum of `1` for `rounded=true`.",
2096
- "value": { "type": "number", "default": "0" }
2097
- },
2098
- {
2099
- "name": "skidding",
2100
- "description": "The distance in pixels from which to offset the panel along its trigger.",
2101
- "value": { "type": "number", "default": "0" }
2102
- },
2103
- {
2104
- "name": "no-auto-size",
2105
- "description": "Indicates whether or not the dropdown should automatically resize its content's width/height regarding the available space on screen.",
2106
- "value": { "type": "boolean", "default": "false" }
2109
+ "description": "The direction from which the drawer will open.",
2110
+ "value": { "type": "'end' | 'start'", "default": "'end'" }
2107
2111
  },
2108
2112
  {
2109
- "name": "no-flip",
2110
- "description": "When set to true, the placement of the dropdown will not flip to the opposite site to keep it in view.",
2113
+ "name": "contained",
2114
+ "description": "By default, the drawer slides out of its containing block (the viewport). Contained is a hidden feature used only for testing purposes. Please do not use it in production as it will likely change.",
2111
2115
  "value": { "type": "boolean", "default": "false" }
2112
2116
  },
2113
2117
  {
2114
- "name": "hoist",
2115
- "description": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
2118
+ "name": "no-header",
2119
+ "description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.",
2116
2120
  "value": { "type": "boolean", "default": "false" }
2117
2121
  },
2118
2122
  {
@@ -2127,82 +2131,69 @@
2127
2131
  }
2128
2132
  ],
2129
2133
  "slots": [
2130
- { "name": "", "description": "The dropdown's main content." },
2134
+ { "name": "", "description": "The drawer's main content." },
2131
2135
  {
2132
- "name": "trigger",
2133
- "description": "The dropdown's trigger, usually a `<sd-button>` element."
2136
+ "name": "header",
2137
+ "description": "The drawer's header, usually a title."
2138
+ },
2139
+ {
2140
+ "name": "footer",
2141
+ "description": "The drawer's footer, usually one or more buttons representing various options."
2134
2142
  }
2135
2143
  ],
2136
2144
  "events": [
2137
2145
  {
2138
2146
  "name": "sd-show",
2139
- "description": "Emitted when the dropdown opens."
2147
+ "description": "Emitted when the drawer opens."
2140
2148
  },
2141
2149
  {
2142
2150
  "name": "sd-after-show",
2143
- "description": "Emitted after the dropdown opens and all animations are complete."
2151
+ "description": "Emitted after the drawer opens and all animations are complete."
2144
2152
  },
2145
2153
  {
2146
2154
  "name": "sd-hide",
2147
- "description": "Emitted when the dropdown closes."
2155
+ "description": "Emitted when the drawer closes."
2148
2156
  },
2149
2157
  {
2150
2158
  "name": "sd-after-hide",
2151
- "description": "Emitted after the dropdown closes and all animations are complete."
2159
+ "description": "Emitted after the drawer closes and all animations are complete."
2160
+ },
2161
+ {
2162
+ "name": "sd-initial-focus",
2163
+ "description": "Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input."
2164
+ },
2165
+ {
2166
+ "name": "sd-request-close",
2167
+ "type": "{ source: 'close-button' | 'keyboard' | 'overlay' }",
2168
+ "description": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss."
2152
2169
  }
2153
2170
  ],
2154
2171
  "js": {
2155
2172
  "properties": [
2156
- { "name": "popup", "type": "SdPopup" },
2157
2173
  { "name": "localize" },
2158
2174
  {
2159
2175
  "name": "open",
2160
- "description": "Indicates whether or not the dropdown is open. You can toggle this attribute to show and hide the dropdown, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the dropdown's open state.",
2176
+ "description": "Indicates whether or not the drawer is open. You can toggle this attribute to show and hide the drawer, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the drawer's open state.",
2161
2177
  "type": "boolean"
2162
2178
  },
2163
2179
  {
2164
- "name": "rounded",
2165
- "description": "Indicates whether or not the dropdown should be styled with rounded corners.",
2166
- "type": "boolean"
2180
+ "name": "label",
2181
+ "description": "You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility.",
2182
+ "type": "string"
2167
2183
  },
2168
2184
  {
2169
2185
  "name": "placement",
2170
- "description": "The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\ninside of the viewport.",
2171
- "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end'"
2172
- },
2173
- {
2174
- "name": "disabled",
2175
- "description": "Disables the dropdown so the panel will not open.",
2176
- "type": "boolean"
2177
- },
2178
- {
2179
- "name": "stayOpenOnSelect",
2180
- "description": "By default, the dropdown is closed when an item is selected. This attribute will keep it open instead. Useful for\ndropdowns that allow for multiple interactions.",
2181
- "type": "boolean"
2182
- },
2183
- {
2184
- "name": "distance",
2185
- "description": "The distance in pixels from which to offset the panel away from its trigger. This defaults to `0` for `rounded=false` and to a minimum of `1` for `rounded=true`.",
2186
- "type": "number"
2187
- },
2188
- {
2189
- "name": "skidding",
2190
- "description": "The distance in pixels from which to offset the panel along its trigger.",
2191
- "type": "number"
2192
- },
2193
- {
2194
- "name": "noAutoSize",
2195
- "description": "Indicates whether or not the dropdown should automatically resize its content's width/height regarding the available space on screen.",
2196
- "type": "boolean"
2186
+ "description": "The direction from which the drawer will open.",
2187
+ "type": "'end' | 'start'"
2197
2188
  },
2198
2189
  {
2199
- "name": "noFlip",
2200
- "description": "When set to true, the placement of the dropdown will not flip to the opposite site to keep it in view.",
2190
+ "name": "contained",
2191
+ "description": "By default, the drawer slides out of its containing block (the viewport). Contained is a hidden feature used only for testing purposes. Please do not use it in production as it will likely change.",
2201
2192
  "type": "boolean"
2202
2193
  },
2203
2194
  {
2204
- "name": "hoist",
2205
- "description": "Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.",
2195
+ "name": "noHeader",
2196
+ "description": "Removes the header. This will also remove the default close button, so please ensure you provide an easy, accessible way for users to dismiss the drawer.",
2206
2197
  "type": "boolean"
2207
2198
  },
2208
2199
  {
@@ -2219,19 +2210,28 @@
2219
2210
  "events": [
2220
2211
  {
2221
2212
  "name": "sd-show",
2222
- "description": "Emitted when the dropdown opens."
2213
+ "description": "Emitted when the drawer opens."
2223
2214
  },
2224
2215
  {
2225
2216
  "name": "sd-after-show",
2226
- "description": "Emitted after the dropdown opens and all animations are complete."
2217
+ "description": "Emitted after the drawer opens and all animations are complete."
2227
2218
  },
2228
2219
  {
2229
2220
  "name": "sd-hide",
2230
- "description": "Emitted when the dropdown closes."
2221
+ "description": "Emitted when the drawer closes."
2231
2222
  },
2232
2223
  {
2233
2224
  "name": "sd-after-hide",
2234
- "description": "Emitted after the dropdown closes and all animations are complete."
2225
+ "description": "Emitted after the drawer closes and all animations are complete."
2226
+ },
2227
+ {
2228
+ "name": "sd-initial-focus",
2229
+ "description": "Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input."
2230
+ },
2231
+ {
2232
+ "name": "sd-request-close",
2233
+ "type": "{ source: 'close-button' | 'keyboard' | 'overlay' }",
2234
+ "description": "Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss."
2235
2235
  }
2236
2236
  ]
2237
2237
  }
@@ -2427,6 +2427,7 @@
2427
2427
  "description": "Determines the variant of the back face of the flipcard.",
2428
2428
  "type": "'primary' | 'primary-100' | 'gradient-light' | 'gradient-dark'"
2429
2429
  },
2430
+ { "name": "activeSide", "type": "'front' | 'back'" },
2430
2431
  {
2431
2432
  "name": "dir",
2432
2433
  "description": "The element's directionality.",
@@ -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-0-0-next-4-select', { detail: { item } });
35
+ this.emit('sd-4-0-0-next-6-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-0-0-next-4-divider) {
14
+ ::slotted(sd-4-0-0-next-6-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-0-0-next-4-icon name="check" library="system" aria-hidden="true"></sd-4-0-0-next-4-icon>
77
+ <sd-4-0-0-next-6-icon name="check" library="system" aria-hidden="true"></sd-4-0-0-next-6-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-0-0-next-4-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-0-0-next-4-icon>
87
+ <sd-4-0-0-next-6-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-0-0-next-6-icon>
88
88
  </span>
89
89
  </div>
90
90
  `;
@@ -1,4 +1,4 @@
1
- import{a as k,b as l,c as H}from"./chunk.SPDB3L7V.js";import{a as M}from"./chunk.TWZDCIM2.js";import{a as T,b as L,c as u}from"./chunk.5YRTJVAZ.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as x,b as o,c as C,h as f}from"./chunk.APMDRZQD.js";import{b,e as y,h as w,i as m}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var i=class extends H{constructor(e){if(super(e),this.it=m,e.type!==k.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===w)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};i.directiveName="unsafeHTML",i.resultType=1;var N=l(i);var a=class extends i{};a.directiveName="unsafeSVG",a.resultType=2;var A=l(a);var d,t=class extends f{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),T(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),L(this)}getUrl(){let r=u(this.library);return this.name&&r?r.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var v;let r=u(this.library),n=this.getUrl();if(d||(d=new DOMParser),n)try{let c=await M(n);if(n===this.getUrl())if(c.ok){let h=d.parseFromString(c.svg,"text/html").body.querySelector("svg");h!==null?((v=r==null?void 0:r.mutator)==null||v.call(r,h),this.svg=h.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(c){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return y`${A(this.svg)}`}};t.styles=[...f.styles,b`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],s([C()],t.prototype,"svg",2),s([o({reflect:!0})],t.prototype,"name",2),s([o()],t.prototype,"src",2),s([o()],t.prototype,"label",2),s([o({reflect:!0})],t.prototype,"library",2),s([o({reflect:!0})],t.prototype,"color",2),s([p("label")],t.prototype,"handleLabelChange",1),s([p(["name","src","library"])],t.prototype,"setIcon",1),t=s([x("sd-4-0-0-next-4-icon")],t);export{N as a,t as b};
1
+ import{a as k,b as l,c as H}from"./chunk.SPDB3L7V.js";import{a as M}from"./chunk.TWZDCIM2.js";import{a as T,b as L,c as u}from"./chunk.5YRTJVAZ.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as x,b as o,c as C,h as f}from"./chunk.APMDRZQD.js";import{b,e as y,h as w,i as m}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var i=class extends H{constructor(e){if(super(e),this.it=m,e.type!==k.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===w)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};i.directiveName="unsafeHTML",i.resultType=1;var N=l(i);var a=class extends i{};a.directiveName="unsafeSVG",a.resultType=2;var A=l(a);var d,t=class extends f{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),T(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),L(this)}getUrl(){let r=u(this.library);return this.name&&r?r.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var v;let r=u(this.library),n=this.getUrl();if(d||(d=new DOMParser),n)try{let c=await M(n);if(n===this.getUrl())if(c.ok){let h=d.parseFromString(c.svg,"text/html").body.querySelector("svg");h!==null?((v=r==null?void 0:r.mutator)==null||v.call(r,h),this.svg=h.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(c){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return y`${A(this.svg)}`}};t.styles=[...f.styles,b`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],s([C()],t.prototype,"svg",2),s([o({reflect:!0})],t.prototype,"name",2),s([o()],t.prototype,"src",2),s([o()],t.prototype,"label",2),s([o({reflect:!0})],t.prototype,"library",2),s([o({reflect:!0})],t.prototype,"color",2),s([p("label")],t.prototype,"handleLabelChange",1),s([p(["name","src","library"])],t.prototype,"setIcon",1),t=s([x("sd-4-0-0-next-6-icon")],t);export{N as a,t as b};
2
2
  /*! Bundled license information:
3
3
 
4
4
  lit-html/directives/unsafe-html.js:
@@ -0,0 +1 @@
1
+ import{c}from"./chunk.3L472FD4.js";import{a as w}from"./chunk.26YUWEYR.js";import{a as o}from"./chunk.DCOFYPWX.js";import{a as m,b as g,c as d,d as b,h as v}from"./chunk.APMDRZQD.js";import{b as f,e as h}from"./chunk.IRWHG2Q4.js";import{a as p,e as n}from"./chunk.TJOCV4DC.js";var r=class extends v{constructor(){super(...arguments);this.localize=new w(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-4-0-0-next-6-tab"),customElements.whenDefined("sd-4-0-0-next-6-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls()}),this.mutationObserver=new MutationObserver(s=>{s.some(e=>!["aria-labelledby","aria-controls"].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),s.some(e=>e.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((e,l)=>{var a;e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((a=this.activeTab)!=null?a:this.tabs[0],{emitEvents:!1}),l.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(e=>t.includeDisabled?e.tagName.toLowerCase()==="sd-4-0-0-next-6-tab":e.tagName.toLowerCase()==="sd-4-0-0-next-6-tab"&&!e.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-4-0-0-next-6-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let e=t.target.closest("sd-4-0-0-next-6-tab");(e==null?void 0:e.closest("sd-4-0-0-next-6-tab-group"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("sd-4-0-0-next-6-tab");if((e==null?void 0:e.closest("sd-4-0-0-next-6-tab-group"))===this){if(["Enter"," "].includes(t.key)&&e!==null&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let a=this.tabs.indexOf(this.getActiveTab());e!==null&&c(this.tabs[a+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let a=this.tabs.indexOf(this.getActiveTab());e!==null&&c(this.tabs[a-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let a=this.tabs.find(i=>i.matches(":focus")),u=this.localize.dir()==="rtl";if((a==null?void 0:a.tagName.toLowerCase())==="sd-4-0-0-next-6-tab"){let i=this.tabs.indexOf(a);t.key==="Home"?i=0:t.key==="End"?i=this.tabs.length-1:t.key===(u?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?i--:(t.key===(u?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&i++,i<0&&(i=this.tabs.length-1),i>this.tabs.length-1&&(i=0),this.tabs[i].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[i],{scrollBehavior:"smooth"}),c(this.tabs[i],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,s){if(s=p({emitEvents:!0,scrollBehavior:"auto"},s),t!==this.activeTab&&!t.disabled){let e=this.activeTab;this.activeTab=t,this.tabs.map(l=>l.active=l===this.activeTab),this.panels.map(l=>{var a;return l.active=l.name===((a=this.activeTab)==null?void 0:a.panel)}),c(this.activeTab,this.nav,"horizontal",s.scrollBehavior),s.emitEvents&&(e&&this.emit("sd-tab-hide",{detail:{name:e.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let s=this.panels.find(e=>e.name===t.panel);s&&t.setAttribute("aria-controls",s.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){let s=this.tabs.find(e=>e.panel===t);s&&this.setActiveTab(s,{scrollBehavior:"smooth"})}render(){let t=this.localize.dir()==="rtl";return h`<div part="base" class="${o("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${o(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?h`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${o("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-4-0-0-next-6-icon library="system" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${o("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-0-0-next-6-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${o("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?h`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${o("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-4-0-0-next-6-icon library="system" name="${t?"chevron-down":"chevron-up"}" label="next" class="${o("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-0-0-next-6-icon></button>`:""}</div><slot part="body" class="${o("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};r.styles=[...v.styles,f`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}:focus-within::slotted(sd-4-0-0-next-6-tab-panel){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}::slotted(sd-4-0-0-next-6-tab-panel){--padding:1rem 0}`],n([b("[part=base]")],r.prototype,"tabGroup",2),n([b("[part=body]")],r.prototype,"body",2),n([b("[part=scroll-container]")],r.prototype,"nav",2),n([d()],r.prototype,"hasScrollControls",2),n([d()],r.prototype,"variant",2),n([g()],r.prototype,"activation",2),r=n([m("sd-4-0-0-next-6-tab-group")],r);export{r as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk.HE2LNCWW.js";import{a as f}from"./chunk.6HO6CE4A.js";import{a as l}from"./chunk.DCOFYPWX.js";import{a as h,b as s,d as m,h as o}from"./chunk.APMDRZQD.js";import{b as n,e as a}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.hasSlotController=new f(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(r){this.button.focus(r)}blur(){this.button.blur()}render(){let r={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return a`<a part="base" class="${l("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${i(this.href||void 0)}" target="${i(this.target||void 0)}" download="${i(this.download)}" rel="${i(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${l("inline",r["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${l("inline",r["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};t.styles=[...o.styles,n`::slotted(sd-4-0-0-next-4-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-0-0-next-4-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-0-0-next-4-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],e([m("a")],t.prototype,"button",2),e([s({type:Boolean,reflect:!0})],t.prototype,"standalone",2),e([s({reflect:!0})],t.prototype,"size",2),e([s({type:Boolean,reflect:!0})],t.prototype,"inverted",2),e([s()],t.prototype,"href",2),e([s()],t.prototype,"target",2),e([s()],t.prototype,"download",2),t=e([h("sd-4-0-0-next-4-link")],t);export{t as a};
1
+ import{a as i}from"./chunk.HE2LNCWW.js";import{a as f}from"./chunk.6HO6CE4A.js";import{a as l}from"./chunk.DCOFYPWX.js";import{a as h,b as s,d as m,h as o}from"./chunk.APMDRZQD.js";import{b as n,e as a}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.hasSlotController=new f(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(r){this.button.focus(r)}blur(){this.button.blur()}render(){let r={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return a`<a part="base" class="${l("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${i(this.href||void 0)}" target="${i(this.target||void 0)}" download="${i(this.download)}" rel="${i(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${l("inline",r["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${l("inline",r["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};t.styles=[...o.styles,n`::slotted(sd-4-0-0-next-6-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-0-0-next-6-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-0-0-next-6-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],e([m("a")],t.prototype,"button",2),e([s({type:Boolean,reflect:!0})],t.prototype,"standalone",2),e([s({reflect:!0})],t.prototype,"size",2),e([s({type:Boolean,reflect:!0})],t.prototype,"inverted",2),e([s()],t.prototype,"href",2),e([s()],t.prototype,"target",2),e([s()],t.prototype,"download",2),t=e([h("sd-4-0-0-next-6-link")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as s}from"./chunk.HE2LNCWW.js";import{a as o,b as a}from"./chunk.5ZILM4TA.js";import{a as n}from"./chunk.DCOFYPWX.js";import{a as m,b as i,d as b,h as l}from"./chunk.APMDRZQD.js";import{b as p}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(r){this.tag.focus(r)}blur(){this.tag.blur()}render(){let r=this.isLink(),d=r?o`a`:o`button`;return a`<${d} part="base" type="${s(r?void 0:"button")}" href="${s(r?this.href:void 0)}" rel="${s(r&&this.target?"noreferrer noopener":void 0)}" target="${s(r?this.target:void 0)}" download="${s(r?this.download:void 0)}" ?disabled="${s(r?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${s(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${n("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!r&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?a`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${n({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-4-0-0-next-4-icon library="system" name="close" label="remove"></sd-4-0-0-next-4-icon></slot>`:""}</${d}>`}};e.styles=[...l.styles,p`:host{display:inline-block}`],t([b("a, button")],e.prototype,"tag",2),t([i({reflect:!0})],e.prototype,"size",2),t([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),t([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i()],e.prototype,"href",2),t([i()],e.prototype,"target",2),t([i()],e.prototype,"download",2),e=t([m("sd-4-0-0-next-4-tag")],e);export{e as a};
1
+ import{a as s}from"./chunk.HE2LNCWW.js";import{a as o,b as a}from"./chunk.5ZILM4TA.js";import{a as n}from"./chunk.DCOFYPWX.js";import{a as m,b as i,d as b,h as l}from"./chunk.APMDRZQD.js";import{b as p}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(r){this.tag.focus(r)}blur(){this.tag.blur()}render(){let r=this.isLink(),d=r?o`a`:o`button`;return a`<${d} part="base" type="${s(r?void 0:"button")}" href="${s(r?this.href:void 0)}" rel="${s(r&&this.target?"noreferrer noopener":void 0)}" target="${s(r?this.target:void 0)}" download="${s(r?this.download:void 0)}" ?disabled="${s(r?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${s(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${n("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!r&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?a`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${n({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-4-0-0-next-6-icon library="system" name="close" label="remove"></sd-4-0-0-next-6-icon></slot>`:""}</${d}>`}};e.styles=[...l.styles,p`:host{display:inline-block}`],t([b("a, button")],e.prototype,"tag",2),t([i({reflect:!0})],e.prototype,"size",2),t([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),t([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i()],e.prototype,"href",2),t([i()],e.prototype,"target",2),t([i()],e.prototype,"download",2),e=t([m("sd-4-0-0-next-6-tag")],e);export{e as a};