ui-ingredients 0.0.49 → 0.0.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (711) hide show
  1. package/dist/accordion/item-content.svelte +1 -1
  2. package/dist/accordion/item-content.svelte.d.ts +1 -1
  3. package/dist/accordion/item-indicator.svelte +1 -1
  4. package/dist/accordion/item-indicator.svelte.d.ts +1 -1
  5. package/dist/accordion/item-trigger.svelte +1 -1
  6. package/dist/accordion/item-trigger.svelte.d.ts +1 -1
  7. package/dist/accordion/item.svelte +4 -1
  8. package/dist/accordion/item.svelte.d.ts +1 -1
  9. package/dist/accordion/root.svelte +1 -1
  10. package/dist/accordion/root.svelte.d.ts +1 -1
  11. package/dist/avatar/fallback.svelte +2 -1
  12. package/dist/avatar/fallback.svelte.d.ts +1 -1
  13. package/dist/avatar/image.svelte +2 -1
  14. package/dist/avatar/image.svelte.d.ts +1 -1
  15. package/dist/avatar/root.svelte +1 -1
  16. package/dist/avatar/root.svelte.d.ts +1 -1
  17. package/dist/carousel/indicator-group.svelte +1 -1
  18. package/dist/carousel/indicator-group.svelte.d.ts +1 -1
  19. package/dist/carousel/indicator.svelte +4 -1
  20. package/dist/carousel/indicator.svelte.d.ts +1 -1
  21. package/dist/carousel/item-group.svelte +2 -1
  22. package/dist/carousel/item-group.svelte.d.ts +1 -1
  23. package/dist/carousel/item.svelte +4 -1
  24. package/dist/carousel/item.svelte.d.ts +1 -1
  25. package/dist/carousel/next-trigger.svelte +1 -1
  26. package/dist/carousel/next-trigger.svelte.d.ts +1 -1
  27. package/dist/carousel/prev-trigger.svelte +1 -1
  28. package/dist/carousel/prev-trigger.svelte.d.ts +1 -1
  29. package/dist/carousel/root.svelte +1 -1
  30. package/dist/carousel/root.svelte.d.ts +1 -1
  31. package/dist/carousel/viewport.svelte +2 -1
  32. package/dist/carousel/viewport.svelte.d.ts +1 -1
  33. package/dist/checkbox/control.svelte +2 -1
  34. package/dist/checkbox/control.svelte.d.ts +1 -1
  35. package/dist/checkbox/hidden-input.svelte +1 -1
  36. package/dist/checkbox/hidden-input.svelte.d.ts +1 -1
  37. package/dist/checkbox/indicator.svelte +2 -1
  38. package/dist/checkbox/indicator.svelte.d.ts +1 -1
  39. package/dist/checkbox/label.svelte +2 -1
  40. package/dist/checkbox/label.svelte.d.ts +1 -1
  41. package/dist/checkbox/root.svelte +1 -1
  42. package/dist/checkbox/root.svelte.d.ts +1 -1
  43. package/dist/clipboard/control.svelte +2 -1
  44. package/dist/clipboard/control.svelte.d.ts +1 -1
  45. package/dist/clipboard/indicator.svelte +4 -1
  46. package/dist/clipboard/indicator.svelte.d.ts +1 -1
  47. package/dist/clipboard/input.svelte +2 -1
  48. package/dist/clipboard/input.svelte.d.ts +1 -1
  49. package/dist/clipboard/label.svelte +2 -1
  50. package/dist/clipboard/label.svelte.d.ts +1 -1
  51. package/dist/clipboard/root.svelte +1 -1
  52. package/dist/clipboard/root.svelte.d.ts +1 -1
  53. package/dist/clipboard/trigger.svelte +1 -1
  54. package/dist/clipboard/trigger.svelte.d.ts +1 -1
  55. package/dist/collapsible/content.svelte +2 -1
  56. package/dist/collapsible/content.svelte.d.ts +1 -1
  57. package/dist/collapsible/root.svelte +1 -1
  58. package/dist/collapsible/root.svelte.d.ts +1 -1
  59. package/dist/collapsible/trigger.svelte +1 -1
  60. package/dist/collapsible/trigger.svelte.d.ts +1 -1
  61. package/dist/color-picker/area-background.svelte +14 -5
  62. package/dist/color-picker/area-background.svelte.d.ts +1 -1
  63. package/dist/color-picker/area-thumb.svelte +14 -5
  64. package/dist/color-picker/area-thumb.svelte.d.ts +1 -1
  65. package/dist/color-picker/area.svelte +16 -5
  66. package/dist/color-picker/area.svelte.d.ts +1 -1
  67. package/dist/color-picker/channel-input.svelte +16 -3
  68. package/dist/color-picker/channel-input.svelte.d.ts +1 -1
  69. package/dist/color-picker/channel-slider-label.svelte +10 -4
  70. package/dist/color-picker/channel-slider-label.svelte.d.ts +1 -1
  71. package/dist/color-picker/channel-slider-thumb.svelte +14 -5
  72. package/dist/color-picker/channel-slider-thumb.svelte.d.ts +1 -1
  73. package/dist/color-picker/channel-slider-track.svelte +14 -5
  74. package/dist/color-picker/channel-slider-track.svelte.d.ts +1 -1
  75. package/dist/color-picker/channel-slider-value-text.svelte +21 -9
  76. package/dist/color-picker/channel-slider-value-text.svelte.d.ts +1 -1
  77. package/dist/color-picker/channel-slider.svelte +13 -4
  78. package/dist/color-picker/channel-slider.svelte.d.ts +1 -1
  79. package/dist/color-picker/content.svelte +14 -5
  80. package/dist/color-picker/content.svelte.d.ts +1 -1
  81. package/dist/color-picker/control.svelte +15 -5
  82. package/dist/color-picker/control.svelte.d.ts +1 -1
  83. package/dist/color-picker/eye-dropper-trigger.svelte +14 -5
  84. package/dist/color-picker/eye-dropper-trigger.svelte.d.ts +1 -1
  85. package/dist/color-picker/format-select.svelte +20 -11
  86. package/dist/color-picker/format-select.svelte.d.ts +1 -1
  87. package/dist/color-picker/format-trigger.svelte +14 -5
  88. package/dist/color-picker/format-trigger.svelte.d.ts +1 -1
  89. package/dist/color-picker/hidden-input.svelte +7 -3
  90. package/dist/color-picker/hidden-input.svelte.d.ts +1 -1
  91. package/dist/color-picker/label.svelte +10 -5
  92. package/dist/color-picker/label.svelte.d.ts +1 -1
  93. package/dist/color-picker/positioner.svelte +14 -5
  94. package/dist/color-picker/positioner.svelte.d.ts +1 -1
  95. package/dist/color-picker/root.svelte +9 -5
  96. package/dist/color-picker/root.svelte.d.ts +1 -1
  97. package/dist/color-picker/swatch-group.svelte +14 -5
  98. package/dist/color-picker/swatch-group.svelte.d.ts +1 -1
  99. package/dist/color-picker/swatch-indicator.svelte +14 -5
  100. package/dist/color-picker/swatch-indicator.svelte.d.ts +1 -1
  101. package/dist/color-picker/swatch-trigger.svelte +15 -5
  102. package/dist/color-picker/swatch-trigger.svelte.d.ts +1 -1
  103. package/dist/color-picker/swatch.svelte +16 -6
  104. package/dist/color-picker/swatch.svelte.d.ts +1 -1
  105. package/dist/color-picker/transparency-grid.svelte +18 -5
  106. package/dist/color-picker/transparency-grid.svelte.d.ts +1 -1
  107. package/dist/color-picker/trigger.svelte +14 -5
  108. package/dist/color-picker/trigger.svelte.d.ts +1 -1
  109. package/dist/color-picker/value-text.svelte +18 -9
  110. package/dist/color-picker/value-text.svelte.d.ts +1 -1
  111. package/dist/combobox/clear-trigger.svelte +1 -1
  112. package/dist/combobox/clear-trigger.svelte.d.ts +1 -1
  113. package/dist/combobox/content.svelte +1 -1
  114. package/dist/combobox/content.svelte.d.ts +1 -1
  115. package/dist/combobox/control.svelte +2 -1
  116. package/dist/combobox/control.svelte.d.ts +1 -1
  117. package/dist/combobox/input.svelte +2 -1
  118. package/dist/combobox/input.svelte.d.ts +1 -1
  119. package/dist/combobox/item-group-label.svelte +1 -1
  120. package/dist/combobox/item-group-label.svelte.d.ts +1 -1
  121. package/dist/combobox/item-group.svelte +2 -1
  122. package/dist/combobox/item-group.svelte.d.ts +1 -1
  123. package/dist/combobox/item-indicator.svelte +1 -1
  124. package/dist/combobox/item-indicator.svelte.d.ts +1 -1
  125. package/dist/combobox/item-text.svelte +2 -1
  126. package/dist/combobox/item-text.svelte.d.ts +1 -1
  127. package/dist/combobox/item.svelte +4 -1
  128. package/dist/combobox/item.svelte.d.ts +1 -1
  129. package/dist/combobox/label.svelte +2 -1
  130. package/dist/combobox/label.svelte.d.ts +1 -1
  131. package/dist/combobox/list.svelte +2 -1
  132. package/dist/combobox/list.svelte.d.ts +1 -1
  133. package/dist/combobox/positioner.svelte +2 -1
  134. package/dist/combobox/positioner.svelte.d.ts +1 -1
  135. package/dist/combobox/root.svelte +1 -1
  136. package/dist/combobox/root.svelte.d.ts +1 -1
  137. package/dist/combobox/trigger.svelte +2 -1
  138. package/dist/combobox/trigger.svelte.d.ts +1 -1
  139. package/dist/date-picker/clear-trigger.svelte +1 -1
  140. package/dist/date-picker/clear-trigger.svelte.d.ts +1 -1
  141. package/dist/date-picker/content.svelte +1 -1
  142. package/dist/date-picker/content.svelte.d.ts +1 -1
  143. package/dist/date-picker/control.svelte +2 -1
  144. package/dist/date-picker/control.svelte.d.ts +1 -1
  145. package/dist/date-picker/create-date-picker.svelte.js +2 -2
  146. package/dist/date-picker/day-table-cell-trigger.svelte +1 -1
  147. package/dist/date-picker/day-table-cell-trigger.svelte.d.ts +1 -1
  148. package/dist/date-picker/day-table-cell.svelte +1 -1
  149. package/dist/date-picker/day-table-cell.svelte.d.ts +1 -1
  150. package/dist/date-picker/input.svelte +4 -1
  151. package/dist/date-picker/input.svelte.d.ts +1 -1
  152. package/dist/date-picker/label.svelte +4 -1
  153. package/dist/date-picker/label.svelte.d.ts +1 -1
  154. package/dist/date-picker/month-select.svelte +1 -1
  155. package/dist/date-picker/month-select.svelte.d.ts +1 -1
  156. package/dist/date-picker/month-table-cell-trigger.svelte +1 -1
  157. package/dist/date-picker/month-table-cell-trigger.svelte.d.ts +1 -1
  158. package/dist/date-picker/month-table-cell.svelte +4 -1
  159. package/dist/date-picker/month-table-cell.svelte.d.ts +1 -1
  160. package/dist/date-picker/next-trigger.svelte +1 -1
  161. package/dist/date-picker/next-trigger.svelte.d.ts +1 -1
  162. package/dist/date-picker/positioner.svelte +1 -1
  163. package/dist/date-picker/positioner.svelte.d.ts +1 -1
  164. package/dist/date-picker/preset-trigger.svelte +4 -1
  165. package/dist/date-picker/preset-trigger.svelte.d.ts +1 -1
  166. package/dist/date-picker/prev-trigger.svelte +1 -1
  167. package/dist/date-picker/prev-trigger.svelte.d.ts +1 -1
  168. package/dist/date-picker/range-text.svelte +1 -1
  169. package/dist/date-picker/range-text.svelte.d.ts +1 -1
  170. package/dist/date-picker/root.svelte +1 -1
  171. package/dist/date-picker/root.svelte.d.ts +1 -1
  172. package/dist/date-picker/table-body.svelte +1 -1
  173. package/dist/date-picker/table-body.svelte.d.ts +1 -1
  174. package/dist/date-picker/table-head.svelte +1 -1
  175. package/dist/date-picker/table-head.svelte.d.ts +1 -1
  176. package/dist/date-picker/table-header.svelte +1 -1
  177. package/dist/date-picker/table-header.svelte.d.ts +1 -1
  178. package/dist/date-picker/table-row.svelte +2 -1
  179. package/dist/date-picker/table-row.svelte.d.ts +1 -1
  180. package/dist/date-picker/table.svelte +4 -1
  181. package/dist/date-picker/table.svelte.d.ts +1 -1
  182. package/dist/date-picker/trigger.svelte +1 -1
  183. package/dist/date-picker/trigger.svelte.d.ts +1 -1
  184. package/dist/date-picker/view-control.svelte +1 -1
  185. package/dist/date-picker/view-control.svelte.d.ts +1 -1
  186. package/dist/date-picker/view-trigger.svelte +1 -1
  187. package/dist/date-picker/view-trigger.svelte.d.ts +1 -1
  188. package/dist/date-picker/view.svelte +1 -1
  189. package/dist/date-picker/view.svelte.d.ts +1 -1
  190. package/dist/date-picker/year-select.svelte +1 -1
  191. package/dist/date-picker/year-select.svelte.d.ts +1 -1
  192. package/dist/date-picker/year-table-cell-trigger.svelte +1 -1
  193. package/dist/date-picker/year-table-cell-trigger.svelte.d.ts +1 -1
  194. package/dist/date-picker/year-table-cell.svelte +4 -1
  195. package/dist/date-picker/year-table-cell.svelte.d.ts +1 -1
  196. package/dist/dialog/backdrop.svelte +1 -1
  197. package/dist/dialog/backdrop.svelte.d.ts +1 -1
  198. package/dist/dialog/close-trigger.svelte +1 -1
  199. package/dist/dialog/close-trigger.svelte.d.ts +1 -1
  200. package/dist/dialog/content.svelte +1 -1
  201. package/dist/dialog/content.svelte.d.ts +1 -1
  202. package/dist/dialog/description.svelte +2 -1
  203. package/dist/dialog/description.svelte.d.ts +1 -1
  204. package/dist/dialog/positioner.svelte +2 -1
  205. package/dist/dialog/positioner.svelte.d.ts +1 -1
  206. package/dist/dialog/title.svelte +2 -1
  207. package/dist/dialog/title.svelte.d.ts +1 -1
  208. package/dist/dialog/trigger.svelte +2 -1
  209. package/dist/dialog/trigger.svelte.d.ts +1 -1
  210. package/dist/editable/area.svelte +2 -1
  211. package/dist/editable/area.svelte.d.ts +1 -1
  212. package/dist/editable/cancel-trigger.svelte +1 -1
  213. package/dist/editable/cancel-trigger.svelte.d.ts +1 -1
  214. package/dist/editable/control.svelte +2 -1
  215. package/dist/editable/control.svelte.d.ts +1 -1
  216. package/dist/editable/edit-trigger.svelte +1 -1
  217. package/dist/editable/edit-trigger.svelte.d.ts +1 -1
  218. package/dist/editable/input.svelte +2 -1
  219. package/dist/editable/input.svelte.d.ts +1 -1
  220. package/dist/editable/label.svelte +2 -1
  221. package/dist/editable/label.svelte.d.ts +1 -1
  222. package/dist/editable/preview.svelte +2 -1
  223. package/dist/editable/preview.svelte.d.ts +1 -1
  224. package/dist/editable/root.svelte +1 -1
  225. package/dist/editable/root.svelte.d.ts +1 -1
  226. package/dist/editable/submit-trigger.svelte +1 -1
  227. package/dist/editable/submit-trigger.svelte.d.ts +1 -1
  228. package/dist/field/error-text.svelte +2 -1
  229. package/dist/field/error-text.svelte.d.ts +1 -1
  230. package/dist/field/helper-text.svelte +2 -1
  231. package/dist/field/helper-text.svelte.d.ts +1 -1
  232. package/dist/field/input.svelte +2 -1
  233. package/dist/field/input.svelte.d.ts +1 -1
  234. package/dist/field/label.svelte +2 -1
  235. package/dist/field/label.svelte.d.ts +1 -1
  236. package/dist/field/root.svelte +1 -1
  237. package/dist/field/root.svelte.d.ts +1 -1
  238. package/dist/field/select.svelte +2 -1
  239. package/dist/field/select.svelte.d.ts +1 -1
  240. package/dist/field/textarea.svelte +2 -1
  241. package/dist/field/textarea.svelte.d.ts +1 -1
  242. package/dist/file-upload/dropzone.svelte +2 -1
  243. package/dist/file-upload/dropzone.svelte.d.ts +1 -1
  244. package/dist/file-upload/hidden-input.svelte +1 -1
  245. package/dist/file-upload/hidden-input.svelte.d.ts +1 -1
  246. package/dist/file-upload/item-delete-trigger.svelte +1 -1
  247. package/dist/file-upload/item-delete-trigger.svelte.d.ts +1 -1
  248. package/dist/file-upload/item-group.svelte +1 -1
  249. package/dist/file-upload/item-group.svelte.d.ts +1 -1
  250. package/dist/file-upload/item-name.svelte +1 -1
  251. package/dist/file-upload/item-name.svelte.d.ts +1 -1
  252. package/dist/file-upload/item-preview-image.svelte +1 -1
  253. package/dist/file-upload/item-preview-image.svelte.d.ts +1 -1
  254. package/dist/file-upload/item-preview.svelte +1 -1
  255. package/dist/file-upload/item-preview.svelte.d.ts +1 -1
  256. package/dist/file-upload/item-size-text.svelte +1 -1
  257. package/dist/file-upload/item-size-text.svelte.d.ts +1 -1
  258. package/dist/file-upload/item.svelte +1 -1
  259. package/dist/file-upload/item.svelte.d.ts +1 -1
  260. package/dist/file-upload/label.svelte +2 -1
  261. package/dist/file-upload/label.svelte.d.ts +1 -1
  262. package/dist/file-upload/root.svelte +1 -1
  263. package/dist/file-upload/root.svelte.d.ts +1 -1
  264. package/dist/file-upload/trigger.svelte +1 -1
  265. package/dist/file-upload/trigger.svelte.d.ts +1 -1
  266. package/dist/floating-panel/body.svelte +2 -1
  267. package/dist/floating-panel/body.svelte.d.ts +1 -1
  268. package/dist/floating-panel/close-trigger.svelte +1 -1
  269. package/dist/floating-panel/close-trigger.svelte.d.ts +1 -1
  270. package/dist/floating-panel/content.svelte +1 -1
  271. package/dist/floating-panel/content.svelte.d.ts +1 -1
  272. package/dist/floating-panel/drag-trigger.svelte +1 -1
  273. package/dist/floating-panel/drag-trigger.svelte.d.ts +1 -1
  274. package/dist/floating-panel/header.svelte +1 -1
  275. package/dist/floating-panel/header.svelte.d.ts +1 -1
  276. package/dist/floating-panel/maximize-trigger.svelte +1 -1
  277. package/dist/floating-panel/maximize-trigger.svelte.d.ts +1 -1
  278. package/dist/floating-panel/minimize-trigger.svelte +1 -1
  279. package/dist/floating-panel/minimize-trigger.svelte.d.ts +1 -1
  280. package/dist/floating-panel/positioner.svelte +1 -1
  281. package/dist/floating-panel/positioner.svelte.d.ts +1 -1
  282. package/dist/floating-panel/resize-trigger.svelte +4 -1
  283. package/dist/floating-panel/resize-trigger.svelte.d.ts +1 -1
  284. package/dist/floating-panel/restore-trigger.svelte +1 -1
  285. package/dist/floating-panel/restore-trigger.svelte.d.ts +1 -1
  286. package/dist/floating-panel/title.svelte +1 -1
  287. package/dist/floating-panel/title.svelte.d.ts +1 -1
  288. package/dist/floating-panel/trigger.svelte +1 -1
  289. package/dist/floating-panel/trigger.svelte.d.ts +1 -1
  290. package/dist/highlight/highlight.svelte +1 -1
  291. package/dist/highlight/highlight.svelte.d.ts +1 -1
  292. package/dist/hover-card/arrow-tip.svelte +2 -1
  293. package/dist/hover-card/arrow-tip.svelte.d.ts +1 -1
  294. package/dist/hover-card/arrow.svelte +2 -1
  295. package/dist/hover-card/arrow.svelte.d.ts +1 -1
  296. package/dist/hover-card/content.svelte +1 -1
  297. package/dist/hover-card/content.svelte.d.ts +1 -1
  298. package/dist/hover-card/positioner.svelte +1 -1
  299. package/dist/hover-card/positioner.svelte.d.ts +1 -1
  300. package/dist/hover-card/trigger.svelte +2 -1
  301. package/dist/hover-card/trigger.svelte.d.ts +1 -1
  302. package/dist/menu/arrow-tip.svelte +2 -1
  303. package/dist/menu/arrow-tip.svelte.d.ts +1 -1
  304. package/dist/menu/arrow.svelte +2 -1
  305. package/dist/menu/arrow.svelte.d.ts +1 -1
  306. package/dist/menu/content.svelte +1 -1
  307. package/dist/menu/content.svelte.d.ts +1 -1
  308. package/dist/menu/context-trigger.svelte +1 -1
  309. package/dist/menu/context-trigger.svelte.d.ts +1 -1
  310. package/dist/menu/indicator.svelte +2 -1
  311. package/dist/menu/indicator.svelte.d.ts +1 -1
  312. package/dist/menu/item-group-label.svelte +1 -1
  313. package/dist/menu/item-group-label.svelte.d.ts +1 -1
  314. package/dist/menu/item-group.svelte +2 -1
  315. package/dist/menu/item-group.svelte.d.ts +1 -1
  316. package/dist/menu/item.svelte +4 -1
  317. package/dist/menu/item.svelte.d.ts +1 -1
  318. package/dist/menu/option-item-indicator.svelte +1 -1
  319. package/dist/menu/option-item-indicator.svelte.d.ts +1 -1
  320. package/dist/menu/option-item-text.svelte +1 -1
  321. package/dist/menu/option-item-text.svelte.d.ts +1 -1
  322. package/dist/menu/option-item.svelte +1 -1
  323. package/dist/menu/option-item.svelte.d.ts +1 -1
  324. package/dist/menu/positioner.svelte +2 -1
  325. package/dist/menu/positioner.svelte.d.ts +1 -1
  326. package/dist/menu/separator.svelte +2 -1
  327. package/dist/menu/separator.svelte.d.ts +1 -1
  328. package/dist/menu/trigger-item.svelte +1 -1
  329. package/dist/menu/trigger-item.svelte.d.ts +1 -1
  330. package/dist/menu/trigger.svelte +2 -1
  331. package/dist/menu/trigger.svelte.d.ts +1 -1
  332. package/dist/number-input/control.svelte +1 -1
  333. package/dist/number-input/control.svelte.d.ts +1 -1
  334. package/dist/number-input/decrement-trigger.svelte +1 -1
  335. package/dist/number-input/decrement-trigger.svelte.d.ts +1 -1
  336. package/dist/number-input/increment-trigger.svelte +1 -1
  337. package/dist/number-input/increment-trigger.svelte.d.ts +1 -1
  338. package/dist/number-input/input.svelte +2 -1
  339. package/dist/number-input/input.svelte.d.ts +1 -1
  340. package/dist/number-input/label.svelte +2 -1
  341. package/dist/number-input/label.svelte.d.ts +1 -1
  342. package/dist/number-input/root.svelte +1 -1
  343. package/dist/number-input/root.svelte.d.ts +1 -1
  344. package/dist/number-input/scrubber.svelte +1 -1
  345. package/dist/number-input/scrubber.svelte.d.ts +1 -1
  346. package/dist/pagination/ellipsis.svelte +4 -1
  347. package/dist/pagination/ellipsis.svelte.d.ts +1 -1
  348. package/dist/pagination/item.svelte +4 -1
  349. package/dist/pagination/item.svelte.d.ts +1 -1
  350. package/dist/pagination/next-trigger.svelte +1 -1
  351. package/dist/pagination/next-trigger.svelte.d.ts +1 -1
  352. package/dist/pagination/prev-trigger.svelte +1 -1
  353. package/dist/pagination/prev-trigger.svelte.d.ts +1 -1
  354. package/dist/pagination/root.svelte +1 -1
  355. package/dist/pagination/root.svelte.d.ts +1 -1
  356. package/dist/pin-input/clear-trigger.svelte +1 -1
  357. package/dist/pin-input/clear-trigger.svelte.d.ts +1 -1
  358. package/dist/pin-input/hidden-input.svelte +1 -1
  359. package/dist/pin-input/hidden-input.svelte.d.ts +1 -1
  360. package/dist/pin-input/input.svelte +4 -1
  361. package/dist/pin-input/input.svelte.d.ts +1 -1
  362. package/dist/pin-input/label.svelte +2 -1
  363. package/dist/pin-input/label.svelte.d.ts +1 -1
  364. package/dist/pin-input/root.svelte +1 -1
  365. package/dist/pin-input/root.svelte.d.ts +1 -1
  366. package/dist/popover/arrow-tip.svelte +2 -1
  367. package/dist/popover/arrow-tip.svelte.d.ts +1 -1
  368. package/dist/popover/arrow.svelte +2 -1
  369. package/dist/popover/arrow.svelte.d.ts +1 -1
  370. package/dist/popover/close-trigger.svelte +1 -1
  371. package/dist/popover/close-trigger.svelte.d.ts +1 -1
  372. package/dist/popover/content.svelte +1 -1
  373. package/dist/popover/content.svelte.d.ts +1 -1
  374. package/dist/popover/description.svelte +2 -1
  375. package/dist/popover/description.svelte.d.ts +1 -1
  376. package/dist/popover/positioner.svelte +2 -1
  377. package/dist/popover/positioner.svelte.d.ts +1 -1
  378. package/dist/popover/title.svelte +2 -1
  379. package/dist/popover/title.svelte.d.ts +1 -1
  380. package/dist/popover/trigger.svelte +2 -1
  381. package/dist/popover/trigger.svelte.d.ts +1 -1
  382. package/dist/presence/root.svelte +1 -1
  383. package/dist/presence/root.svelte.d.ts +1 -1
  384. package/dist/progress/circle-range.svelte +1 -1
  385. package/dist/progress/circle-range.svelte.d.ts +1 -1
  386. package/dist/progress/circle-track.svelte +1 -1
  387. package/dist/progress/circle-track.svelte.d.ts +1 -1
  388. package/dist/progress/circle.svelte +2 -1
  389. package/dist/progress/circle.svelte.d.ts +1 -1
  390. package/dist/progress/label.svelte +2 -1
  391. package/dist/progress/label.svelte.d.ts +1 -1
  392. package/dist/progress/range.svelte +2 -1
  393. package/dist/progress/range.svelte.d.ts +1 -1
  394. package/dist/progress/root.svelte +1 -1
  395. package/dist/progress/root.svelte.d.ts +1 -1
  396. package/dist/progress/track.svelte +2 -1
  397. package/dist/progress/track.svelte.d.ts +1 -1
  398. package/dist/progress/value-text.svelte +2 -1
  399. package/dist/progress/value-text.svelte.d.ts +1 -1
  400. package/dist/progress/view.svelte +1 -1
  401. package/dist/progress/view.svelte.d.ts +1 -1
  402. package/dist/qr-code/frame.svelte +2 -1
  403. package/dist/qr-code/frame.svelte.d.ts +1 -1
  404. package/dist/qr-code/overlay.svelte +2 -1
  405. package/dist/qr-code/overlay.svelte.d.ts +1 -1
  406. package/dist/qr-code/pattern.svelte +2 -1
  407. package/dist/qr-code/pattern.svelte.d.ts +1 -1
  408. package/dist/qr-code/root.svelte +1 -1
  409. package/dist/qr-code/root.svelte.d.ts +1 -1
  410. package/dist/radio-group/indicator.svelte +1 -1
  411. package/dist/radio-group/indicator.svelte.d.ts +1 -1
  412. package/dist/radio-group/item-control.svelte +1 -1
  413. package/dist/radio-group/item-control.svelte.d.ts +1 -1
  414. package/dist/radio-group/item-hidden-input.svelte +1 -1
  415. package/dist/radio-group/item-hidden-input.svelte.d.ts +1 -1
  416. package/dist/radio-group/item-text.svelte +1 -1
  417. package/dist/radio-group/item-text.svelte.d.ts +1 -1
  418. package/dist/radio-group/item.svelte +4 -1
  419. package/dist/radio-group/item.svelte.d.ts +1 -1
  420. package/dist/radio-group/label.svelte +2 -1
  421. package/dist/radio-group/label.svelte.d.ts +1 -1
  422. package/dist/radio-group/root.svelte +1 -1
  423. package/dist/radio-group/root.svelte.d.ts +1 -1
  424. package/dist/rating-group/control.svelte +2 -1
  425. package/dist/rating-group/control.svelte.d.ts +1 -1
  426. package/dist/rating-group/hidden-input.svelte +1 -1
  427. package/dist/rating-group/hidden-input.svelte.d.ts +1 -1
  428. package/dist/rating-group/item.svelte +4 -1
  429. package/dist/rating-group/item.svelte.d.ts +1 -1
  430. package/dist/rating-group/label.svelte +2 -1
  431. package/dist/rating-group/label.svelte.d.ts +1 -1
  432. package/dist/rating-group/root.svelte +1 -1
  433. package/dist/rating-group/root.svelte.d.ts +1 -1
  434. package/dist/segment-group/indicator.svelte +1 -1
  435. package/dist/segment-group/indicator.svelte.d.ts +1 -1
  436. package/dist/segment-group/item-control.svelte +1 -1
  437. package/dist/segment-group/item-control.svelte.d.ts +1 -1
  438. package/dist/segment-group/item-hidden-input.svelte +1 -1
  439. package/dist/segment-group/item-hidden-input.svelte.d.ts +1 -1
  440. package/dist/segment-group/item-text.svelte +1 -1
  441. package/dist/segment-group/item-text.svelte.d.ts +1 -1
  442. package/dist/segment-group/item.svelte +4 -1
  443. package/dist/segment-group/item.svelte.d.ts +1 -1
  444. package/dist/segment-group/label.svelte +2 -1
  445. package/dist/segment-group/label.svelte.d.ts +1 -1
  446. package/dist/segment-group/root.svelte +1 -1
  447. package/dist/segment-group/root.svelte.d.ts +1 -1
  448. package/dist/select/clear-trigger.svelte +1 -1
  449. package/dist/select/clear-trigger.svelte.d.ts +1 -1
  450. package/dist/select/content.svelte +1 -1
  451. package/dist/select/content.svelte.d.ts +1 -1
  452. package/dist/select/control.svelte +2 -1
  453. package/dist/select/control.svelte.d.ts +1 -1
  454. package/dist/select/hidden-select.svelte +1 -1
  455. package/dist/select/hidden-select.svelte.d.ts +1 -1
  456. package/dist/select/indicator.svelte +2 -1
  457. package/dist/select/indicator.svelte.d.ts +1 -1
  458. package/dist/select/item-group-label.svelte +1 -1
  459. package/dist/select/item-group-label.svelte.d.ts +1 -1
  460. package/dist/select/item-group.svelte +2 -1
  461. package/dist/select/item-group.svelte.d.ts +1 -1
  462. package/dist/select/item-indicator.svelte +1 -1
  463. package/dist/select/item-indicator.svelte.d.ts +1 -1
  464. package/dist/select/item-text.svelte +2 -1
  465. package/dist/select/item-text.svelte.d.ts +1 -1
  466. package/dist/select/item.svelte +4 -1
  467. package/dist/select/item.svelte.d.ts +1 -1
  468. package/dist/select/label.svelte +2 -1
  469. package/dist/select/label.svelte.d.ts +1 -1
  470. package/dist/select/list.svelte +2 -1
  471. package/dist/select/list.svelte.d.ts +1 -1
  472. package/dist/select/positioner.svelte +2 -1
  473. package/dist/select/positioner.svelte.d.ts +1 -1
  474. package/dist/select/root.svelte +1 -1
  475. package/dist/select/root.svelte.d.ts +1 -1
  476. package/dist/select/trigger.svelte +2 -1
  477. package/dist/select/trigger.svelte.d.ts +1 -1
  478. package/dist/select/value-text.svelte +2 -1
  479. package/dist/select/value-text.svelte.d.ts +1 -1
  480. package/dist/signature-pad/clear-trigger.svelte +1 -1
  481. package/dist/signature-pad/clear-trigger.svelte.d.ts +1 -1
  482. package/dist/signature-pad/control.svelte +1 -1
  483. package/dist/signature-pad/control.svelte.d.ts +1 -1
  484. package/dist/signature-pad/current-segment-path.svelte +1 -1
  485. package/dist/signature-pad/current-segment-path.svelte.d.ts +1 -1
  486. package/dist/signature-pad/guide.svelte +2 -1
  487. package/dist/signature-pad/guide.svelte.d.ts +1 -1
  488. package/dist/signature-pad/hidden-input.svelte +4 -1
  489. package/dist/signature-pad/hidden-input.svelte.d.ts +1 -1
  490. package/dist/signature-pad/label.svelte +1 -1
  491. package/dist/signature-pad/label.svelte.d.ts +1 -1
  492. package/dist/signature-pad/root.svelte +1 -1
  493. package/dist/signature-pad/root.svelte.d.ts +1 -1
  494. package/dist/signature-pad/segment-path.svelte +4 -1
  495. package/dist/signature-pad/segment-path.svelte.d.ts +1 -1
  496. package/dist/signature-pad/segment.svelte +1 -1
  497. package/dist/signature-pad/segment.svelte.d.ts +1 -1
  498. package/dist/slider/control.svelte +2 -1
  499. package/dist/slider/control.svelte.d.ts +1 -1
  500. package/dist/slider/hidden-input.svelte +1 -1
  501. package/dist/slider/hidden-input.svelte.d.ts +1 -1
  502. package/dist/slider/label.svelte +2 -1
  503. package/dist/slider/label.svelte.d.ts +1 -1
  504. package/dist/slider/marker-group.svelte +2 -1
  505. package/dist/slider/marker-group.svelte.d.ts +1 -1
  506. package/dist/slider/marker.svelte +1 -1
  507. package/dist/slider/marker.svelte.d.ts +1 -1
  508. package/dist/slider/range.svelte +2 -1
  509. package/dist/slider/range.svelte.d.ts +1 -1
  510. package/dist/slider/root.svelte +1 -1
  511. package/dist/slider/root.svelte.d.ts +1 -1
  512. package/dist/slider/thumb.svelte +1 -1
  513. package/dist/slider/thumb.svelte.d.ts +1 -1
  514. package/dist/slider/track.svelte +2 -1
  515. package/dist/slider/track.svelte.d.ts +1 -1
  516. package/dist/slider/value-text.svelte +2 -1
  517. package/dist/slider/value-text.svelte.d.ts +1 -1
  518. package/dist/splitter/panel.svelte +1 -1
  519. package/dist/splitter/panel.svelte.d.ts +1 -1
  520. package/dist/splitter/resize-trigger.svelte +1 -1
  521. package/dist/splitter/resize-trigger.svelte.d.ts +1 -1
  522. package/dist/splitter/root.svelte +1 -1
  523. package/dist/splitter/root.svelte.d.ts +1 -1
  524. package/dist/steps/completed-content.svelte +1 -1
  525. package/dist/steps/completed-content.svelte.d.ts +1 -1
  526. package/dist/steps/content.svelte +1 -1
  527. package/dist/steps/content.svelte.d.ts +1 -1
  528. package/dist/steps/indicator.svelte +2 -1
  529. package/dist/steps/indicator.svelte.d.ts +1 -1
  530. package/dist/steps/item.svelte +4 -1
  531. package/dist/steps/item.svelte.d.ts +1 -1
  532. package/dist/steps/list.svelte +2 -1
  533. package/dist/steps/list.svelte.d.ts +1 -1
  534. package/dist/steps/next-trigger.svelte +1 -1
  535. package/dist/steps/next-trigger.svelte.d.ts +1 -1
  536. package/dist/steps/prev-trigger.svelte +1 -1
  537. package/dist/steps/prev-trigger.svelte.d.ts +1 -1
  538. package/dist/steps/progress.svelte +2 -1
  539. package/dist/steps/progress.svelte.d.ts +1 -1
  540. package/dist/steps/root.svelte +1 -1
  541. package/dist/steps/root.svelte.d.ts +1 -1
  542. package/dist/steps/separator.svelte +2 -1
  543. package/dist/steps/separator.svelte.d.ts +1 -1
  544. package/dist/steps/trigger.svelte +2 -1
  545. package/dist/steps/trigger.svelte.d.ts +1 -1
  546. package/dist/switch/control.svelte +2 -1
  547. package/dist/switch/control.svelte.d.ts +1 -1
  548. package/dist/switch/hidden-input.svelte +1 -1
  549. package/dist/switch/hidden-input.svelte.d.ts +1 -1
  550. package/dist/switch/label.svelte +2 -1
  551. package/dist/switch/label.svelte.d.ts +1 -1
  552. package/dist/switch/root.svelte +1 -1
  553. package/dist/switch/root.svelte.d.ts +1 -1
  554. package/dist/switch/thumb.svelte +2 -1
  555. package/dist/switch/thumb.svelte.d.ts +1 -1
  556. package/dist/tabs/content.svelte +1 -1
  557. package/dist/tabs/content.svelte.d.ts +1 -1
  558. package/dist/tabs/list.svelte +2 -1
  559. package/dist/tabs/list.svelte.d.ts +1 -1
  560. package/dist/tabs/root.svelte +1 -1
  561. package/dist/tabs/root.svelte.d.ts +1 -1
  562. package/dist/tabs/trigger.svelte +4 -1
  563. package/dist/tabs/trigger.svelte.d.ts +1 -1
  564. package/dist/tags-input/clear-trigger.svelte +1 -1
  565. package/dist/tags-input/clear-trigger.svelte.d.ts +1 -1
  566. package/dist/tags-input/control.svelte +2 -1
  567. package/dist/tags-input/control.svelte.d.ts +1 -1
  568. package/dist/tags-input/hidden-input.svelte +1 -1
  569. package/dist/tags-input/hidden-input.svelte.d.ts +1 -1
  570. package/dist/tags-input/input.svelte +2 -1
  571. package/dist/tags-input/input.svelte.d.ts +1 -1
  572. package/dist/tags-input/item-delete-trigger.svelte +1 -1
  573. package/dist/tags-input/item-delete-trigger.svelte.d.ts +1 -1
  574. package/dist/tags-input/item-input.svelte +1 -1
  575. package/dist/tags-input/item-input.svelte.d.ts +1 -1
  576. package/dist/tags-input/item-preview.svelte +1 -1
  577. package/dist/tags-input/item-preview.svelte.d.ts +1 -1
  578. package/dist/tags-input/item-text.svelte +2 -1
  579. package/dist/tags-input/item-text.svelte.d.ts +1 -1
  580. package/dist/tags-input/item.svelte +4 -1
  581. package/dist/tags-input/item.svelte.d.ts +1 -1
  582. package/dist/tags-input/label.svelte +2 -1
  583. package/dist/tags-input/label.svelte.d.ts +1 -1
  584. package/dist/tags-input/root.svelte +1 -1
  585. package/dist/tags-input/root.svelte.d.ts +1 -1
  586. package/dist/time-picker/clear-trigger.svelte +1 -1
  587. package/dist/time-picker/clear-trigger.svelte.d.ts +1 -1
  588. package/dist/time-picker/column.svelte +1 -1
  589. package/dist/time-picker/column.svelte.d.ts +1 -1
  590. package/dist/time-picker/content.svelte +1 -1
  591. package/dist/time-picker/content.svelte.d.ts +1 -1
  592. package/dist/time-picker/control.svelte +2 -1
  593. package/dist/time-picker/control.svelte.d.ts +1 -1
  594. package/dist/time-picker/hour-cell.svelte +1 -1
  595. package/dist/time-picker/hour-cell.svelte.d.ts +1 -1
  596. package/dist/time-picker/input.svelte +2 -1
  597. package/dist/time-picker/input.svelte.d.ts +1 -1
  598. package/dist/time-picker/label.svelte +2 -1
  599. package/dist/time-picker/label.svelte.d.ts +1 -1
  600. package/dist/time-picker/minute-cell.svelte +1 -1
  601. package/dist/time-picker/minute-cell.svelte.d.ts +1 -1
  602. package/dist/time-picker/period-cell.svelte +4 -1
  603. package/dist/time-picker/period-cell.svelte.d.ts +1 -1
  604. package/dist/time-picker/positioner.svelte +1 -1
  605. package/dist/time-picker/positioner.svelte.d.ts +1 -1
  606. package/dist/time-picker/root.svelte +1 -1
  607. package/dist/time-picker/root.svelte.d.ts +1 -1
  608. package/dist/time-picker/second-cell.svelte +1 -1
  609. package/dist/time-picker/second-cell.svelte.d.ts +1 -1
  610. package/dist/time-picker/spacer.svelte +2 -1
  611. package/dist/time-picker/spacer.svelte.d.ts +1 -1
  612. package/dist/time-picker/trigger.svelte +1 -1
  613. package/dist/time-picker/trigger.svelte.d.ts +1 -1
  614. package/dist/timer/action-trigger.svelte +4 -1
  615. package/dist/timer/action-trigger.svelte.d.ts +1 -1
  616. package/dist/timer/area.svelte +2 -1
  617. package/dist/timer/area.svelte.d.ts +1 -1
  618. package/dist/timer/control.svelte +2 -1
  619. package/dist/timer/control.svelte.d.ts +1 -1
  620. package/dist/timer/item-label.svelte +2 -1
  621. package/dist/timer/item-label.svelte.d.ts +1 -1
  622. package/dist/timer/item-value.svelte +2 -1
  623. package/dist/timer/item-value.svelte.d.ts +1 -1
  624. package/dist/timer/item.svelte +1 -1
  625. package/dist/timer/item.svelte.d.ts +1 -1
  626. package/dist/timer/root.svelte +1 -1
  627. package/dist/timer/root.svelte.d.ts +1 -1
  628. package/dist/timer/separator.svelte +2 -1
  629. package/dist/timer/separator.svelte.d.ts +1 -1
  630. package/dist/toast/action-trigger.svelte +1 -1
  631. package/dist/toast/action-trigger.svelte.d.ts +1 -1
  632. package/dist/toast/close-trigger.svelte +1 -1
  633. package/dist/toast/close-trigger.svelte.d.ts +1 -1
  634. package/dist/toast/description.svelte +2 -1
  635. package/dist/toast/description.svelte.d.ts +1 -1
  636. package/dist/toast/ghost-after.svelte +2 -1
  637. package/dist/toast/ghost-after.svelte.d.ts +1 -1
  638. package/dist/toast/ghost-before.svelte +2 -1
  639. package/dist/toast/ghost-before.svelte.d.ts +1 -1
  640. package/dist/toast/root.svelte +1 -1
  641. package/dist/toast/root.svelte.d.ts +1 -1
  642. package/dist/toast/title.svelte +2 -1
  643. package/dist/toast/title.svelte.d.ts +1 -1
  644. package/dist/toast/toaster.svelte +1 -1
  645. package/dist/toast/toaster.svelte.d.ts +1 -1
  646. package/dist/toggle-group/item.svelte +4 -1
  647. package/dist/toggle-group/item.svelte.d.ts +1 -1
  648. package/dist/toggle-group/root.svelte +1 -1
  649. package/dist/toggle-group/root.svelte.d.ts +1 -1
  650. package/dist/tooltip/arrow-tip.svelte +2 -1
  651. package/dist/tooltip/arrow-tip.svelte.d.ts +1 -1
  652. package/dist/tooltip/arrow.svelte +2 -1
  653. package/dist/tooltip/arrow.svelte.d.ts +1 -1
  654. package/dist/tooltip/content.svelte +1 -1
  655. package/dist/tooltip/content.svelte.d.ts +1 -1
  656. package/dist/tooltip/positioner.svelte +2 -1
  657. package/dist/tooltip/positioner.svelte.d.ts +1 -1
  658. package/dist/tooltip/trigger.svelte +2 -1
  659. package/dist/tooltip/trigger.svelte.d.ts +1 -1
  660. package/dist/tour/arrow-tip.svelte +2 -1
  661. package/dist/tour/arrow-tip.svelte.d.ts +1 -1
  662. package/dist/tour/arrow.svelte +2 -1
  663. package/dist/tour/arrow.svelte.d.ts +1 -1
  664. package/dist/tour/close-trigger.svelte +1 -1
  665. package/dist/tour/close-trigger.svelte.d.ts +1 -1
  666. package/dist/tour/content.svelte +2 -1
  667. package/dist/tour/content.svelte.d.ts +1 -1
  668. package/dist/tour/description.svelte +2 -1
  669. package/dist/tour/description.svelte.d.ts +1 -1
  670. package/dist/tour/next-trigger.svelte +2 -1
  671. package/dist/tour/next-trigger.svelte.d.ts +1 -1
  672. package/dist/tour/overlay.svelte +2 -1
  673. package/dist/tour/overlay.svelte.d.ts +1 -1
  674. package/dist/tour/positioner.svelte +2 -1
  675. package/dist/tour/positioner.svelte.d.ts +1 -1
  676. package/dist/tour/prev-trigger.svelte +2 -1
  677. package/dist/tour/prev-trigger.svelte.d.ts +1 -1
  678. package/dist/tour/progress-text.svelte +2 -1
  679. package/dist/tour/progress-text.svelte.d.ts +1 -1
  680. package/dist/tour/skip-trigger.svelte +2 -1
  681. package/dist/tour/skip-trigger.svelte.d.ts +1 -1
  682. package/dist/tour/spotlight.svelte +2 -1
  683. package/dist/tour/spotlight.svelte.d.ts +1 -1
  684. package/dist/tour/title.svelte +2 -1
  685. package/dist/tour/title.svelte.d.ts +1 -1
  686. package/dist/tree-view/branch-content.svelte +1 -1
  687. package/dist/tree-view/branch-content.svelte.d.ts +1 -1
  688. package/dist/tree-view/branch-control.svelte +1 -1
  689. package/dist/tree-view/branch-control.svelte.d.ts +1 -1
  690. package/dist/tree-view/branch-indicator.svelte +1 -1
  691. package/dist/tree-view/branch-indicator.svelte.d.ts +1 -1
  692. package/dist/tree-view/branch-text.svelte +1 -1
  693. package/dist/tree-view/branch-text.svelte.d.ts +1 -1
  694. package/dist/tree-view/branch-trigger.svelte +1 -1
  695. package/dist/tree-view/branch-trigger.svelte.d.ts +1 -1
  696. package/dist/tree-view/branch.svelte +4 -1
  697. package/dist/tree-view/branch.svelte.d.ts +1 -1
  698. package/dist/tree-view/item-indicator.svelte +1 -1
  699. package/dist/tree-view/item-indicator.svelte.d.ts +1 -1
  700. package/dist/tree-view/item-text.svelte +2 -1
  701. package/dist/tree-view/item-text.svelte.d.ts +1 -1
  702. package/dist/tree-view/item.svelte +4 -1
  703. package/dist/tree-view/item.svelte.d.ts +1 -1
  704. package/dist/tree-view/label.svelte +2 -1
  705. package/dist/tree-view/label.svelte.d.ts +1 -1
  706. package/dist/tree-view/root.svelte +1 -1
  707. package/dist/tree-view/root.svelte.d.ts +1 -1
  708. package/dist/tree-view/tree.svelte +2 -1
  709. package/dist/tree-view/tree.svelte.d.ts +1 -1
  710. package/dist/types.d.ts +7 -9
  711. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerAreaBackgroundProps
5
- extends HtmlIngredientProps<'div'> {}
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
@@ -12,7 +12,12 @@
12
12
  getColorPickerContext,
13
13
  } from './context.svelte.js';
14
14
 
15
- let {asChild, children, ...props}: ColorPickerAreaBackgroundProps = $props();
15
+ let {
16
+ this: e,
17
+ asChild,
18
+ children,
19
+ ...props
20
+ }: ColorPickerAreaBackgroundProps = $props();
16
21
 
17
22
  let colorPicker = getColorPickerContext();
18
23
  let areaProps = getColorPickerAreaPropsContext();
@@ -22,6 +27,10 @@
22
27
  );
23
28
  </script>
24
29
 
25
- <div {...mergedProps}>
26
- {@render children?.()}
27
- </div>
30
+ {#if asChild}
31
+ {@render asChild(mergedProps)}
32
+ {:else}
33
+ <div bind:this={e} {...mergedProps}>
34
+ {@render children?.()}
35
+ </div>
36
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerAreaBackgroundProps extends HtmlIngredientProps<'div'> {
2
+ export interface ColorPickerAreaBackgroundProps extends HtmlIngredientProps<'div', HTMLDivElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -2,7 +2,7 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerAreaThumbProps
5
- extends HtmlIngredientProps<'div'> {}
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
@@ -12,7 +12,12 @@
12
12
  getColorPickerContext,
13
13
  } from './context.svelte.js';
14
14
 
15
- let {children, ...props}: ColorPickerAreaThumbProps = $props();
15
+ let {
16
+ this: e,
17
+ asChild,
18
+ children,
19
+ ...props
20
+ }: ColorPickerAreaThumbProps = $props();
16
21
 
17
22
  let colorPicker = getColorPickerContext();
18
23
  let areaProps = getColorPickerAreaPropsContext();
@@ -22,6 +27,10 @@
22
27
  );
23
28
  </script>
24
29
 
25
- <div {...mergedProps}>
26
- {@render children?.()}
27
- </div>
30
+ {#if asChild}
31
+ {@render asChild(mergedProps)}
32
+ {:else}
33
+ <div bind:this={e} {...mergedProps}>
34
+ {@render children?.()}
35
+ </div>
36
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerAreaThumbProps extends HtmlIngredientProps<'div'> {
2
+ export interface ColorPickerAreaThumbProps extends HtmlIngredientProps<'div', HTMLDivElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -3,7 +3,7 @@
3
3
  import type {AreaProps} from '@zag-js/color-picker';
4
4
 
5
5
  export interface ColorPickerAreaProps
6
- extends Assign<HtmlIngredientProps<'div'>, AreaProps> {}
6
+ extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, AreaProps> {}
7
7
  </script>
8
8
 
9
9
  <script lang="ts">
@@ -13,7 +13,14 @@
13
13
  setColorPickerAreaPropsContext,
14
14
  } from './context.svelte.js';
15
15
 
16
- let {xChannel, yChannel, children, ...props}: ColorPickerAreaProps = $props();
16
+ let {
17
+ this: e,
18
+ xChannel,
19
+ yChannel,
20
+ asChild,
21
+ children,
22
+ ...props
23
+ }: ColorPickerAreaProps = $props();
17
24
 
18
25
  let colorPicker = getColorPickerContext();
19
26
  let areaProps: AreaProps = $derived({
@@ -28,6 +35,10 @@
28
35
  setColorPickerAreaPropsContext(() => areaProps);
29
36
  </script>
30
37
 
31
- <div {...mergedProps}>
32
- {@render children?.()}
33
- </div>
38
+ {#if asChild}
39
+ {@render asChild(mergedProps)}
40
+ {:else}
41
+ <div bind:this={e} {...mergedProps}>
42
+ {@render children?.()}
43
+ </div>
44
+ {/if}
@@ -1,6 +1,6 @@
1
1
  import type { Assign, HtmlIngredientProps } from '../types.js';
2
2
  import type { AreaProps } from '@zag-js/color-picker';
3
- export interface ColorPickerAreaProps extends Assign<HtmlIngredientProps<'div'>, AreaProps> {
3
+ export interface ColorPickerAreaProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, AreaProps> {
4
4
  }
5
5
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -3,14 +3,23 @@
3
3
  import type {ChannelInputProps} from '@zag-js/color-picker';
4
4
 
5
5
  export interface ColorPickerChannelInputProps
6
- extends Assign<HtmlIngredientProps<'input'>, ChannelInputProps> {}
6
+ extends Assign<
7
+ HtmlIngredientProps<'input', HTMLInputElement>,
8
+ ChannelInputProps
9
+ > {}
7
10
  </script>
8
11
 
9
12
  <script lang="ts">
10
13
  import {mergeProps} from '../merge-props.js';
11
14
  import {getColorPickerContext} from './context.svelte.js';
12
15
 
13
- let {channel, orientation, ...props}: ColorPickerChannelInputProps = $props();
16
+ let {
17
+ this: e,
18
+ channel,
19
+ orientation,
20
+ asChild,
21
+ ...props
22
+ }: ColorPickerChannelInputProps = $props();
14
23
 
15
24
  let colorPicker = getColorPickerContext();
16
25
 
@@ -25,4 +34,8 @@
25
34
  );
26
35
  </script>
27
36
 
28
- <input {...mergedProps} />
37
+ {#if asChild}
38
+ {@render asChild(mergedProps)}
39
+ {:else}
40
+ <input bind:this={e} {...mergedProps} />
41
+ {/if}
@@ -1,6 +1,6 @@
1
1
  import type { Assign, HtmlIngredientProps } from '../types.js';
2
2
  import type { ChannelInputProps } from '@zag-js/color-picker';
3
- export interface ColorPickerChannelInputProps extends Assign<HtmlIngredientProps<'input'>, ChannelInputProps> {
3
+ export interface ColorPickerChannelInputProps extends Assign<HtmlIngredientProps<'input', HTMLInputElement>, ChannelInputProps> {
4
4
  }
5
5
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -3,7 +3,7 @@
3
3
  import type {ChannelProps} from '@zag-js/color-picker';
4
4
 
5
5
  export interface ColorPickerChannelSliderLabelProps
6
- extends Assign<HtmlIngredientProps<'div'>, ChannelProps> {}
6
+ extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, ChannelProps> {}
7
7
  </script>
8
8
 
9
9
  <script lang="ts">
@@ -14,8 +14,10 @@
14
14
  } from './context.svelte.js';
15
15
 
16
16
  let {
17
+ this: e,
17
18
  channel,
18
19
  orientation,
20
+ asChild,
19
21
  children,
20
22
  ...props
21
23
  }: ColorPickerChannelSliderLabelProps = $props();
@@ -31,6 +33,10 @@
31
33
  );
32
34
  </script>
33
35
 
34
- <div {...mergedProps}>
35
- {@render children?.()}
36
- </div>
36
+ {#if asChild}
37
+ {@render asChild(mergedProps)}
38
+ {:else}
39
+ <div bind:this={e} {...mergedProps}>
40
+ {@render children?.()}
41
+ </div>
42
+ {/if}
@@ -1,6 +1,6 @@
1
1
  import type { Assign, HtmlIngredientProps } from '../types.js';
2
2
  import type { ChannelProps } from '@zag-js/color-picker';
3
- export interface ColorPickerChannelSliderLabelProps extends Assign<HtmlIngredientProps<'div'>, ChannelProps> {
3
+ export interface ColorPickerChannelSliderLabelProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, ChannelProps> {
4
4
  }
5
5
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -2,7 +2,7 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerChannelSliderThumbProps
5
- extends HtmlIngredientProps<'div'> {}
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
@@ -12,7 +12,12 @@
12
12
  getColorPickerContext,
13
13
  } from './context.svelte.js';
14
14
 
15
- let {children, ...props}: ColorPickerChannelSliderThumbProps = $props();
15
+ let {
16
+ this: e,
17
+ asChild,
18
+ children,
19
+ ...props
20
+ }: ColorPickerChannelSliderThumbProps = $props();
16
21
 
17
22
  let colorPicker = getColorPickerContext();
18
23
  let channelSliderProps = getColorPickerChannelSliderPropsContext();
@@ -25,6 +30,10 @@
25
30
  );
26
31
  </script>
27
32
 
28
- <div {...mergedProps}>
29
- {@render children?.()}
30
- </div>
33
+ {#if asChild}
34
+ {@render asChild(mergedProps)}
35
+ {:else}
36
+ <div bind:this={e} {...mergedProps}>
37
+ {@render children?.()}
38
+ </div>
39
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerChannelSliderThumbProps extends HtmlIngredientProps<'div'> {
2
+ export interface ColorPickerChannelSliderThumbProps extends HtmlIngredientProps<'div', HTMLDivElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -2,7 +2,7 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerChannelSliderTrackProps
5
- extends HtmlIngredientProps<'div'> {}
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
@@ -12,7 +12,12 @@
12
12
  getColorPickerContext,
13
13
  } from './context.svelte.js';
14
14
 
15
- let {children, ...props}: ColorPickerChannelSliderTrackProps = $props();
15
+ let {
16
+ this: e,
17
+ asChild,
18
+ children,
19
+ ...props
20
+ }: ColorPickerChannelSliderTrackProps = $props();
16
21
 
17
22
  let colorPicker = getColorPickerContext();
18
23
  let channelSliderProps = getColorPickerChannelSliderPropsContext();
@@ -25,6 +30,10 @@
25
30
  );
26
31
  </script>
27
32
 
28
- <div {...mergedProps}>
29
- {@render children?.()}
30
- </div>
33
+ {#if asChild}
34
+ {@render asChild(mergedProps)}
35
+ {:else}
36
+ <div bind:this={e} {...mergedProps}>
37
+ {@render children?.()}
38
+ </div>
39
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerChannelSliderTrackProps extends HtmlIngredientProps<'div'> {
2
+ export interface ColorPickerChannelSliderTrackProps extends HtmlIngredientProps<'div', HTMLDivElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -2,7 +2,7 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerChannelSliderValueTextProps
5
- extends HtmlIngredientProps<'div'> {}
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
@@ -13,7 +13,12 @@
13
13
  getColorPickerContext,
14
14
  } from './context.svelte.js';
15
15
 
16
- let {children, ...props}: ColorPickerChannelSliderValueTextProps = $props();
16
+ let {
17
+ this: e,
18
+ asChild,
19
+ children,
20
+ ...props
21
+ }: ColorPickerChannelSliderValueTextProps = $props();
17
22
 
18
23
  let locale = getLocaleContext();
19
24
  let colorPicker = getColorPickerContext();
@@ -27,10 +32,17 @@
27
32
  );
28
33
  </script>
29
34
 
30
- <div {...mergedProps}>
31
- {#if children}
32
- {@render children()}
33
- {:else}
34
- {colorPicker.getChannelValueText(channelSliderProps.channel, locale.locale)}
35
- {/if}
36
- </div>
35
+ {#if asChild}
36
+ {@render asChild(mergedProps)}
37
+ {:else}
38
+ <div bind:this={e} {...mergedProps}>
39
+ {#if children}
40
+ {@render children()}
41
+ {:else}
42
+ {colorPicker.getChannelValueText(
43
+ channelSliderProps.channel,
44
+ locale.locale,
45
+ )}
46
+ {/if}
47
+ </div>
48
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerChannelSliderValueTextProps extends HtmlIngredientProps<'div'> {
2
+ export interface ColorPickerChannelSliderValueTextProps extends HtmlIngredientProps<'div', HTMLDivElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -3,7 +3,10 @@
3
3
  import type {ChannelSliderProps} from '@zag-js/color-picker';
4
4
 
5
5
  export interface ColorPickerChannelSliderProps
6
- extends Assign<HtmlIngredientProps<'div'>, ChannelSliderProps> {}
6
+ extends Assign<
7
+ HtmlIngredientProps<'div', HTMLDivElement>,
8
+ ChannelSliderProps
9
+ > {}
7
10
  </script>
8
11
 
9
12
  <script lang="ts">
@@ -14,9 +17,11 @@
14
17
  } from './context.svelte.js';
15
18
 
16
19
  let {
20
+ this: e,
17
21
  format,
18
22
  channel,
19
23
  orientation,
24
+ asChild,
20
25
  children,
21
26
  ...props
22
27
  }: ColorPickerChannelSliderProps = $props();
@@ -35,6 +40,10 @@
35
40
  setColorPickerChannelSliderPropsContext(() => channelSliderProps);
36
41
  </script>
37
42
 
38
- <div {...mergedProps}>
39
- {@render children?.()}
40
- </div>
43
+ {#if asChild}
44
+ {@render asChild(mergedProps)}
45
+ {:else}
46
+ <div bind:this={e} {...mergedProps}>
47
+ {@render children?.()}
48
+ </div>
49
+ {/if}
@@ -1,6 +1,6 @@
1
1
  import type { Assign, HtmlIngredientProps } from '../types.js';
2
2
  import type { ChannelSliderProps } from '@zag-js/color-picker';
3
- export interface ColorPickerChannelSliderProps extends Assign<HtmlIngredientProps<'div'>, ChannelSliderProps> {
3
+ export interface ColorPickerChannelSliderProps extends Assign<HtmlIngredientProps<'div', HTMLDivElement>, ChannelSliderProps> {
4
4
  }
5
5
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -3,7 +3,7 @@
3
3
  import type {Action} from 'svelte/action';
4
4
 
5
5
  export interface ColorPickerContentProps
6
- extends HtmlIngredientProps<'div', never, Action> {}
6
+ extends HtmlIngredientProps<'div', HTMLDivElement, never, Action> {}
7
7
  </script>
8
8
 
9
9
  <script lang="ts">
@@ -11,7 +11,12 @@
11
11
  import {getPresenceContext} from '../presence/context.svelte.js';
12
12
  import {getColorPickerContext} from './context.svelte.js';
13
13
 
14
- let {children, ...props}: ColorPickerContentProps = $props();
14
+ let {
15
+ this: e,
16
+ asChild,
17
+ children,
18
+ ...props
19
+ }: ColorPickerContentProps = $props();
15
20
 
16
21
  let colorPicker = getColorPickerContext();
17
22
  let presence = getPresenceContext();
@@ -25,6 +30,10 @@
25
30
  );
26
31
  </script>
27
32
 
28
- <div use:presence.ref {...mergedProps}>
29
- {@render children?.()}
30
- </div>
33
+ {#if asChild}
34
+ {@render asChild(presence.ref, mergedProps)}
35
+ {:else}
36
+ <div bind:this={e} {...mergedProps}>
37
+ {@render children?.()}
38
+ </div>
39
+ {/if}
@@ -1,6 +1,6 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
2
  import type { Action } from 'svelte/action';
3
- export interface ColorPickerContentProps extends HtmlIngredientProps<'div', never, Action> {
3
+ export interface ColorPickerContentProps extends HtmlIngredientProps<'div', HTMLDivElement, never, Action> {
4
4
  }
5
5
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
6
6
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -1,20 +1,30 @@
1
1
  <script lang="ts" module>
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
- export interface ColorPickerControlProps extends HtmlIngredientProps<'div'> {}
4
+ export interface ColorPickerControlProps
5
+ extends HtmlIngredientProps<'div', HTMLDivElement> {}
5
6
  </script>
6
7
 
7
8
  <script lang="ts">
8
9
  import {mergeProps} from '../merge-props.js';
9
10
  import {getColorPickerContext} from './context.svelte.js';
10
11
 
11
- let {children, ...props}: ColorPickerControlProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ColorPickerControlProps = $props();
12
18
 
13
19
  let colorPicker = getColorPickerContext();
14
20
 
15
21
  let mergedProps = $derived(mergeProps(props, colorPicker.getControlProps()));
16
22
  </script>
17
23
 
18
- <div {...mergedProps}>
19
- {@render children?.()}
20
- </div>
24
+ {#if asChild}
25
+ {@render asChild(mergedProps)}
26
+ {:else}
27
+ <div bind:this={e} {...mergedProps}>
28
+ {@render children?.()}
29
+ </div>
30
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerControlProps extends HtmlIngredientProps<'div'> {
2
+ export interface ColorPickerControlProps extends HtmlIngredientProps<'div', HTMLDivElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -2,14 +2,19 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerEyeDropperTriggerProps
5
- extends HtmlIngredientProps<'button'> {}
5
+ extends HtmlIngredientProps<'button', HTMLButtonElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getColorPickerContext} from './context.svelte.js';
11
11
 
12
- let {children, ...props}: ColorPickerEyeDropperTriggerProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ColorPickerEyeDropperTriggerProps = $props();
13
18
 
14
19
  let colorPicker = getColorPickerContext();
15
20
 
@@ -18,6 +23,10 @@
18
23
  );
19
24
  </script>
20
25
 
21
- <button type="button" {...mergedProps}>
22
- {@render children?.()}
23
- </button>
26
+ {#if asChild}
27
+ {@render asChild(mergedProps)}
28
+ {:else}
29
+ <button bind:this={e} {...mergedProps}>
30
+ {@render children?.()}
31
+ </button>
32
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerEyeDropperTriggerProps extends HtmlIngredientProps<'button'> {
2
+ export interface ColorPickerEyeDropperTriggerProps extends HtmlIngredientProps<'button', HTMLButtonElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -2,14 +2,19 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerFormatSelectProps
5
- extends HtmlIngredientProps<'select'> {}
5
+ extends HtmlIngredientProps<'select', HTMLSelectElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getColorPickerContext} from './context.svelte.js';
11
11
 
12
- let {children, ...props}: ColorPickerFormatSelectProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ColorPickerFormatSelectProps = $props();
13
18
 
14
19
  let colorPicker = getColorPickerContext();
15
20
 
@@ -20,12 +25,16 @@
20
25
  let formats = ['rgba', 'hsla', 'hsba'];
21
26
  </script>
22
27
 
23
- <select {...mergedProps}>
24
- {#if children}
25
- {@render children()}
26
- {:else}
27
- {#each formats as format}
28
- <option value={format}>{format}</option>
29
- {/each}
30
- {/if}
31
- </select>
28
+ {#if asChild}
29
+ {@render asChild(mergedProps)}
30
+ {:else}
31
+ <select bind:this={e} {...mergedProps}>
32
+ {#if children}
33
+ {@render children()}
34
+ {:else}
35
+ {#each formats as format}
36
+ <option value={format}>{format}</option>
37
+ {/each}
38
+ {/if}
39
+ </select>
40
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerFormatSelectProps extends HtmlIngredientProps<'select'> {
2
+ export interface ColorPickerFormatSelectProps extends HtmlIngredientProps<'select', HTMLSelectElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
@@ -2,14 +2,19 @@
2
2
  import type {HtmlIngredientProps} from '../types.js';
3
3
 
4
4
  export interface ColorPickerFormatTriggerProps
5
- extends HtmlIngredientProps<'button'> {}
5
+ extends HtmlIngredientProps<'button', HTMLButtonElement> {}
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getColorPickerContext} from './context.svelte.js';
11
11
 
12
- let {children, ...props}: ColorPickerFormatTriggerProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ColorPickerFormatTriggerProps = $props();
13
18
 
14
19
  let colorPicker = getColorPickerContext();
15
20
 
@@ -18,6 +23,10 @@
18
23
  );
19
24
  </script>
20
25
 
21
- <button type="button" {...mergedProps}>
22
- {@render children?.()}
23
- </button>
26
+ {#if asChild}
27
+ {@render asChild(mergedProps)}
28
+ {:else}
29
+ <button bind:this={e} {...mergedProps}>
30
+ {@render children?.()}
31
+ </button>
32
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { HtmlIngredientProps } from '../types.js';
2
- export interface ColorPickerFormatTriggerProps extends HtmlIngredientProps<'button'> {
2
+ export interface ColorPickerFormatTriggerProps extends HtmlIngredientProps<'button', HTMLButtonElement> {
3
3
  }
4
4
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
5
5
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {