ui-ingredients 0.0.45 → 0.0.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (376) hide show
  1. package/dist/accordion/context.svelte.d.ts +2 -2
  2. package/dist/accordion/item-content.svelte +7 -2
  3. package/dist/accordion/item-indicator.svelte +7 -2
  4. package/dist/accordion/item-trigger.svelte +7 -2
  5. package/dist/accordion/item.svelte +2 -2
  6. package/dist/accordion/root.svelte +61 -61
  7. package/dist/avatar/context.svelte.d.ts +1 -1
  8. package/dist/avatar/fallback.svelte +2 -2
  9. package/dist/avatar/image.svelte +2 -2
  10. package/dist/avatar/root.svelte +2 -2
  11. package/dist/carousel/context.svelte.d.ts +1 -1
  12. package/dist/carousel/indicator-group.svelte +7 -2
  13. package/dist/carousel/indicator.svelte +2 -2
  14. package/dist/carousel/item-group.svelte +2 -2
  15. package/dist/carousel/item.svelte +2 -2
  16. package/dist/carousel/next-trigger.svelte +7 -2
  17. package/dist/carousel/prev-trigger.svelte +7 -2
  18. package/dist/carousel/root.svelte +2 -2
  19. package/dist/carousel/viewport.svelte +2 -2
  20. package/dist/checkbox/context.svelte.d.ts +1 -1
  21. package/dist/checkbox/control.svelte +2 -2
  22. package/dist/checkbox/hidden-input.svelte +2 -2
  23. package/dist/checkbox/indicator.svelte +2 -2
  24. package/dist/checkbox/label.svelte +2 -2
  25. package/dist/checkbox/root.svelte +2 -2
  26. package/dist/clipboard/context.svelte.d.ts +1 -1
  27. package/dist/clipboard/control.svelte +2 -2
  28. package/dist/clipboard/indicator.svelte +2 -1
  29. package/dist/clipboard/input.svelte +2 -2
  30. package/dist/clipboard/label.svelte +2 -2
  31. package/dist/clipboard/root.svelte +2 -2
  32. package/dist/clipboard/trigger.svelte +2 -2
  33. package/dist/collapsible/content.svelte +7 -2
  34. package/dist/collapsible/context.svelte.d.ts +1 -1
  35. package/dist/collapsible/root.svelte +2 -2
  36. package/dist/collapsible/trigger.svelte +7 -2
  37. package/dist/color-picker/context.svelte.d.ts +5 -5
  38. package/dist/combobox/clear-trigger.svelte +7 -2
  39. package/dist/combobox/content.svelte +2 -2
  40. package/dist/combobox/context.svelte.d.ts +3 -3
  41. package/dist/combobox/control.svelte +2 -2
  42. package/dist/combobox/input.svelte +2 -2
  43. package/dist/combobox/item-group-label.svelte +7 -2
  44. package/dist/combobox/item-group.svelte +8 -2
  45. package/dist/combobox/item-indicator.svelte +7 -2
  46. package/dist/combobox/item-text.svelte +2 -2
  47. package/dist/combobox/item.svelte +2 -2
  48. package/dist/combobox/label.svelte +2 -2
  49. package/dist/combobox/list.svelte +2 -2
  50. package/dist/combobox/positioner.svelte +7 -2
  51. package/dist/combobox/root.svelte +2 -2
  52. package/dist/combobox/trigger.svelte +2 -2
  53. package/dist/create-context.svelte.d.ts +8 -3
  54. package/dist/create-context.svelte.js +15 -12
  55. package/dist/date-picker/clear-trigger.svelte +7 -2
  56. package/dist/date-picker/content.svelte +2 -2
  57. package/dist/date-picker/context.svelte.d.ts +5 -5
  58. package/dist/date-picker/control.svelte +2 -2
  59. package/dist/date-picker/day-table-cell-trigger.svelte +7 -3
  60. package/dist/date-picker/day-table-cell.svelte +7 -2
  61. package/dist/date-picker/input.svelte +2 -2
  62. package/dist/date-picker/label.svelte +8 -2
  63. package/dist/date-picker/month-select.svelte +7 -2
  64. package/dist/date-picker/month-table-cell-trigger.svelte +7 -3
  65. package/dist/date-picker/month-table-cell.svelte +7 -2
  66. package/dist/date-picker/next-trigger.svelte +7 -2
  67. package/dist/date-picker/positioner.svelte +7 -2
  68. package/dist/date-picker/preset-trigger.svelte +8 -3
  69. package/dist/date-picker/prev-trigger.svelte +7 -2
  70. package/dist/date-picker/range-text.svelte +7 -2
  71. package/dist/date-picker/root.svelte +2 -2
  72. package/dist/date-picker/table-body.svelte +7 -2
  73. package/dist/date-picker/table-head.svelte +7 -2
  74. package/dist/date-picker/table-header.svelte +7 -2
  75. package/dist/date-picker/table-row.svelte +7 -2
  76. package/dist/date-picker/table.svelte +9 -3
  77. package/dist/date-picker/trigger.svelte +2 -2
  78. package/dist/date-picker/view-control.svelte +7 -2
  79. package/dist/date-picker/view-trigger.svelte +7 -2
  80. package/dist/date-picker/view.svelte +2 -1
  81. package/dist/date-picker/year-select.svelte +7 -2
  82. package/dist/date-picker/year-table-cell-trigger.svelte +7 -3
  83. package/dist/date-picker/year-table-cell.svelte +7 -2
  84. package/dist/dialog/backdrop.svelte +2 -2
  85. package/dist/dialog/close-trigger.svelte +7 -2
  86. package/dist/dialog/content.svelte +2 -2
  87. package/dist/dialog/context.svelte.d.ts +1 -1
  88. package/dist/dialog/description.svelte +2 -2
  89. package/dist/dialog/positioner.svelte +2 -2
  90. package/dist/dialog/title.svelte +2 -2
  91. package/dist/dialog/trigger.svelte +2 -2
  92. package/dist/editable/area.svelte +2 -2
  93. package/dist/editable/cancel-trigger.svelte +7 -2
  94. package/dist/editable/context.svelte.d.ts +1 -1
  95. package/dist/editable/control.svelte +2 -2
  96. package/dist/editable/edit-trigger.svelte +7 -2
  97. package/dist/editable/input.svelte +2 -2
  98. package/dist/editable/label.svelte +2 -2
  99. package/dist/editable/preview.svelte +2 -2
  100. package/dist/editable/root.svelte +2 -2
  101. package/dist/editable/submit-trigger.svelte +7 -2
  102. package/dist/environment-provider/context.svelte.d.ts +1 -1
  103. package/dist/field/context.svelte.d.ts +1 -1
  104. package/dist/field/error-text.svelte +2 -2
  105. package/dist/field/helper-text.svelte +2 -2
  106. package/dist/field/input.svelte +2 -2
  107. package/dist/field/label.svelte +2 -2
  108. package/dist/field/root.svelte +2 -2
  109. package/dist/field/select.svelte +2 -2
  110. package/dist/field/textarea.svelte +2 -2
  111. package/dist/file-upload/context.svelte.d.ts +2 -2
  112. package/dist/file-upload/dropzone.svelte +7 -2
  113. package/dist/file-upload/hidden-input.svelte +2 -2
  114. package/dist/file-upload/item-delete-trigger.svelte +7 -3
  115. package/dist/file-upload/item-group.svelte +7 -2
  116. package/dist/file-upload/item-name.svelte +7 -2
  117. package/dist/file-upload/item-preview-image.svelte +2 -2
  118. package/dist/file-upload/item-preview.svelte +7 -2
  119. package/dist/file-upload/item-size-text.svelte +7 -2
  120. package/dist/file-upload/item.svelte +2 -2
  121. package/dist/file-upload/label.svelte +2 -2
  122. package/dist/file-upload/root.svelte +2 -2
  123. package/dist/file-upload/trigger.svelte +2 -2
  124. package/dist/floating-panel/body.svelte +2 -2
  125. package/dist/floating-panel/close-trigger.svelte +7 -2
  126. package/dist/floating-panel/content.svelte +7 -2
  127. package/dist/floating-panel/context.svelte.d.ts +1 -1
  128. package/dist/floating-panel/drag-trigger.svelte +7 -2
  129. package/dist/floating-panel/header.svelte +7 -2
  130. package/dist/floating-panel/maximize-trigger.svelte +7 -3
  131. package/dist/floating-panel/minimize-trigger.svelte +7 -3
  132. package/dist/floating-panel/positioner.svelte +7 -2
  133. package/dist/floating-panel/resize-trigger.svelte +7 -2
  134. package/dist/floating-panel/restore-trigger.svelte +7 -3
  135. package/dist/floating-panel/title.svelte +7 -2
  136. package/dist/floating-panel/trigger.svelte +7 -2
  137. package/dist/highlight/highlight.svelte +2 -2
  138. package/dist/hover-card/arrow-tip.svelte +2 -2
  139. package/dist/hover-card/arrow.svelte +2 -2
  140. package/dist/hover-card/content.svelte +2 -2
  141. package/dist/hover-card/context.svelte.d.ts +1 -1
  142. package/dist/hover-card/positioner.svelte +7 -2
  143. package/dist/hover-card/trigger.svelte +2 -2
  144. package/dist/locale-provider/context.svelte.d.ts +1 -1
  145. package/dist/menu/arrow-tip.svelte +2 -2
  146. package/dist/menu/arrow.svelte +2 -2
  147. package/dist/menu/content.svelte +2 -2
  148. package/dist/menu/context-trigger.svelte +7 -2
  149. package/dist/menu/context.svelte.d.ts +3 -3
  150. package/dist/menu/indicator.svelte +2 -2
  151. package/dist/menu/item-group-label.svelte +7 -2
  152. package/dist/menu/item-group.svelte +2 -2
  153. package/dist/menu/item.svelte +2 -2
  154. package/dist/menu/option-item-indicator.svelte +7 -2
  155. package/dist/menu/option-item-text.svelte +7 -2
  156. package/dist/menu/option-item.svelte +2 -2
  157. package/dist/menu/positioner.svelte +2 -2
  158. package/dist/menu/separator.svelte +2 -2
  159. package/dist/menu/trigger-item.svelte +7 -2
  160. package/dist/menu/trigger.svelte +2 -2
  161. package/dist/number-input/context.svelte.d.ts +1 -1
  162. package/dist/number-input/control.svelte +7 -2
  163. package/dist/number-input/decrement-trigger.svelte +7 -3
  164. package/dist/number-input/increment-trigger.svelte +7 -3
  165. package/dist/number-input/input.svelte +2 -2
  166. package/dist/number-input/label.svelte +2 -2
  167. package/dist/number-input/root.svelte +2 -2
  168. package/dist/number-input/scrubber.svelte +7 -2
  169. package/dist/pagination/context.svelte.d.ts +1 -1
  170. package/dist/pagination/ellipsis.svelte +8 -2
  171. package/dist/pagination/item.svelte +8 -2
  172. package/dist/pagination/next-trigger.svelte +7 -2
  173. package/dist/pagination/prev-trigger.svelte +7 -2
  174. package/dist/pagination/root.svelte +2 -2
  175. package/dist/pin-input/clear-trigger.svelte +7 -2
  176. package/dist/pin-input/context.svelte.d.ts +1 -1
  177. package/dist/pin-input/hidden-input.svelte +2 -2
  178. package/dist/pin-input/input.svelte +2 -2
  179. package/dist/pin-input/label.svelte +2 -2
  180. package/dist/pin-input/root.svelte +2 -2
  181. package/dist/popover/arrow-tip.svelte +2 -2
  182. package/dist/popover/arrow.svelte +2 -2
  183. package/dist/popover/close-trigger.svelte +7 -2
  184. package/dist/popover/content.svelte +2 -2
  185. package/dist/popover/context.svelte.d.ts +1 -1
  186. package/dist/popover/description.svelte +7 -2
  187. package/dist/popover/positioner.svelte +2 -2
  188. package/dist/popover/title.svelte +2 -2
  189. package/dist/popover/trigger.svelte +2 -2
  190. package/dist/presence/context.svelte.d.ts +2 -2
  191. package/dist/progress/circle-range.svelte +7 -2
  192. package/dist/progress/circle-track.svelte +7 -2
  193. package/dist/progress/circle.svelte +2 -2
  194. package/dist/progress/context.svelte.d.ts +1 -1
  195. package/dist/progress/label.svelte +2 -2
  196. package/dist/progress/range.svelte +2 -2
  197. package/dist/progress/root.svelte +2 -2
  198. package/dist/progress/track.svelte +2 -2
  199. package/dist/progress/value-text.svelte +2 -2
  200. package/dist/progress/view.svelte +8 -2
  201. package/dist/qr-code/context.svelte.d.ts +1 -1
  202. package/dist/qr-code/frame.svelte +2 -2
  203. package/dist/qr-code/overlay.svelte +2 -2
  204. package/dist/qr-code/pattern.svelte +2 -2
  205. package/dist/qr-code/root.svelte +2 -2
  206. package/dist/radio-group/context.svelte.d.ts +2 -2
  207. package/dist/radio-group/indicator.svelte +7 -2
  208. package/dist/radio-group/item-control.svelte +7 -2
  209. package/dist/radio-group/item-hidden-input.svelte +2 -2
  210. package/dist/radio-group/item-text.svelte +7 -2
  211. package/dist/radio-group/item.svelte +2 -2
  212. package/dist/radio-group/label.svelte +2 -2
  213. package/dist/radio-group/root.svelte +2 -2
  214. package/dist/rating-group/context.svelte.d.ts +1 -1
  215. package/dist/rating-group/control.svelte +7 -2
  216. package/dist/rating-group/hidden-input.svelte +2 -2
  217. package/dist/rating-group/item.svelte +8 -2
  218. package/dist/rating-group/label.svelte +2 -2
  219. package/dist/rating-group/root.svelte +2 -2
  220. package/dist/segment-group/context.svelte.d.ts +2 -2
  221. package/dist/segment-group/indicator.svelte +7 -2
  222. package/dist/segment-group/item-control.svelte +7 -2
  223. package/dist/segment-group/item-hidden-input.svelte +2 -2
  224. package/dist/segment-group/item-text.svelte +7 -2
  225. package/dist/segment-group/item.svelte +2 -2
  226. package/dist/segment-group/label.svelte +2 -2
  227. package/dist/segment-group/root.svelte +2 -2
  228. package/dist/select/clear-trigger.svelte +7 -2
  229. package/dist/select/content.svelte +2 -2
  230. package/dist/select/context.svelte.d.ts +3 -3
  231. package/dist/select/control.svelte +2 -2
  232. package/dist/select/create-select.svelte.js +2 -2
  233. package/dist/select/hidden-select.svelte +7 -2
  234. package/dist/select/indicator.svelte +2 -2
  235. package/dist/select/item-group-label.svelte +7 -2
  236. package/dist/select/item-group.svelte +8 -2
  237. package/dist/select/item-indicator.svelte +7 -2
  238. package/dist/select/item-text.svelte +2 -2
  239. package/dist/select/item.svelte +2 -2
  240. package/dist/select/label.svelte +2 -2
  241. package/dist/select/list.svelte +2 -2
  242. package/dist/select/positioner.svelte +2 -2
  243. package/dist/select/root.svelte +2 -2
  244. package/dist/select/trigger.svelte +2 -2
  245. package/dist/select/value-text.svelte +8 -3
  246. package/dist/signature-pad/clear-trigger.svelte +7 -2
  247. package/dist/signature-pad/context.svelte.d.ts +1 -1
  248. package/dist/signature-pad/control.svelte +7 -2
  249. package/dist/signature-pad/current-segment-path.svelte +7 -3
  250. package/dist/signature-pad/guide.svelte +2 -2
  251. package/dist/signature-pad/hidden-input.svelte +7 -2
  252. package/dist/signature-pad/label.svelte +2 -2
  253. package/dist/signature-pad/root.svelte +2 -2
  254. package/dist/signature-pad/segment-path.svelte +8 -3
  255. package/dist/signature-pad/segment.svelte +7 -2
  256. package/dist/slider/context.svelte.d.ts +2 -2
  257. package/dist/slider/control.svelte +2 -2
  258. package/dist/slider/hidden-input.svelte +2 -2
  259. package/dist/slider/label.svelte +2 -2
  260. package/dist/slider/marker-group.svelte +2 -2
  261. package/dist/slider/marker.svelte +8 -2
  262. package/dist/slider/range.svelte +2 -2
  263. package/dist/slider/root.svelte +2 -2
  264. package/dist/slider/thumb.svelte +2 -2
  265. package/dist/slider/track.svelte +2 -2
  266. package/dist/slider/value-text.svelte +2 -2
  267. package/dist/splitter/context.svelte.d.ts +1 -1
  268. package/dist/splitter/panel.svelte +2 -2
  269. package/dist/splitter/resize-trigger.svelte +7 -2
  270. package/dist/splitter/root.svelte +2 -2
  271. package/dist/steps/completed-content.svelte +7 -2
  272. package/dist/steps/content.svelte +8 -2
  273. package/dist/steps/context.svelte.d.ts +2 -2
  274. package/dist/steps/indicator.svelte +2 -2
  275. package/dist/steps/item.svelte +2 -2
  276. package/dist/steps/list.svelte +2 -2
  277. package/dist/steps/next-trigger.svelte +2 -2
  278. package/dist/steps/prev-trigger.svelte +2 -2
  279. package/dist/steps/progress.svelte +2 -2
  280. package/dist/steps/root.svelte +2 -2
  281. package/dist/steps/separator.svelte +2 -2
  282. package/dist/steps/trigger.svelte +2 -2
  283. package/dist/switch/context.svelte.d.ts +1 -1
  284. package/dist/switch/control.svelte +4 -4
  285. package/dist/switch/create-switch.svelte.d.ts +3 -3
  286. package/dist/switch/create-switch.svelte.js +3 -3
  287. package/dist/switch/hidden-input.svelte +4 -4
  288. package/dist/switch/label.svelte +4 -4
  289. package/dist/switch/root.svelte +7 -7
  290. package/dist/switch/thumb.svelte +4 -4
  291. package/dist/tabs/content.svelte +2 -2
  292. package/dist/tabs/context.svelte.d.ts +1 -1
  293. package/dist/tabs/list.svelte +2 -2
  294. package/dist/tabs/root.svelte +2 -2
  295. package/dist/tabs/trigger.svelte +2 -2
  296. package/dist/tags-input/clear-trigger.svelte +7 -2
  297. package/dist/tags-input/context.svelte.d.ts +2 -2
  298. package/dist/tags-input/control.svelte +2 -2
  299. package/dist/tags-input/hidden-input.svelte +2 -2
  300. package/dist/tags-input/input.svelte +2 -2
  301. package/dist/tags-input/item-delete-trigger.svelte +7 -2
  302. package/dist/tags-input/item-input.svelte +2 -2
  303. package/dist/tags-input/item-preview.svelte +7 -2
  304. package/dist/tags-input/item-text.svelte +2 -2
  305. package/dist/tags-input/item.svelte +2 -2
  306. package/dist/tags-input/label.svelte +2 -2
  307. package/dist/tags-input/root.svelte +2 -2
  308. package/dist/time-picker/clear-trigger.svelte +7 -2
  309. package/dist/time-picker/column.svelte +8 -2
  310. package/dist/time-picker/content.svelte +2 -2
  311. package/dist/time-picker/context.svelte.d.ts +1 -1
  312. package/dist/time-picker/control.svelte +2 -2
  313. package/dist/time-picker/hour-cell.svelte +8 -2
  314. package/dist/time-picker/input.svelte +2 -2
  315. package/dist/time-picker/label.svelte +2 -2
  316. package/dist/time-picker/minute-cell.svelte +8 -3
  317. package/dist/time-picker/period-cell.svelte +8 -3
  318. package/dist/time-picker/positioner.svelte +7 -2
  319. package/dist/time-picker/root.svelte +2 -2
  320. package/dist/time-picker/second-cell.svelte +8 -3
  321. package/dist/time-picker/spacer.svelte +2 -2
  322. package/dist/time-picker/trigger.svelte +2 -2
  323. package/dist/timer/action-trigger.svelte +8 -2
  324. package/dist/timer/context.svelte.d.ts +2 -2
  325. package/dist/timer/item-label.svelte +2 -2
  326. package/dist/timer/item-value.svelte +2 -2
  327. package/dist/timer/item.svelte +2 -2
  328. package/dist/timer/root.svelte +2 -2
  329. package/dist/timer/separator.svelte +2 -2
  330. package/dist/toast/action-trigger.svelte +7 -2
  331. package/dist/toast/close-trigger.svelte +2 -2
  332. package/dist/toast/context.svelte.d.ts +1 -1
  333. package/dist/toast/description.svelte +2 -2
  334. package/dist/toast/ghost-after.svelte +2 -2
  335. package/dist/toast/ghost-before.svelte +2 -2
  336. package/dist/toast/root.svelte +2 -2
  337. package/dist/toast/title.svelte +2 -2
  338. package/dist/toast/toaster.svelte +2 -2
  339. package/dist/toggle-group/context.svelte.d.ts +1 -1
  340. package/dist/toggle-group/item.svelte +2 -2
  341. package/dist/toggle-group/root.svelte +2 -2
  342. package/dist/tooltip/arrow-tip.svelte +2 -2
  343. package/dist/tooltip/arrow.svelte +2 -2
  344. package/dist/tooltip/content.svelte +2 -2
  345. package/dist/tooltip/context.svelte.d.ts +1 -1
  346. package/dist/tooltip/positioner.svelte +2 -2
  347. package/dist/tooltip/trigger.svelte +2 -2
  348. package/dist/tour/arrow-tip.svelte +2 -2
  349. package/dist/tour/arrow.svelte +2 -2
  350. package/dist/tour/close-trigger.svelte +2 -2
  351. package/dist/tour/content.svelte +2 -2
  352. package/dist/tour/context.svelte.d.ts +1 -1
  353. package/dist/tour/description.svelte +2 -2
  354. package/dist/tour/next-trigger.svelte +2 -2
  355. package/dist/tour/overlay.svelte +2 -2
  356. package/dist/tour/positioner.svelte +2 -2
  357. package/dist/tour/prev-trigger.svelte +2 -2
  358. package/dist/tour/progress-text.svelte +2 -2
  359. package/dist/tour/skip-trigger.svelte +2 -2
  360. package/dist/tour/spotlight.svelte +2 -2
  361. package/dist/tour/title.svelte +2 -2
  362. package/dist/tree-view/branch-content.svelte +7 -2
  363. package/dist/tree-view/branch-control.svelte +7 -2
  364. package/dist/tree-view/branch-indicator.svelte +7 -2
  365. package/dist/tree-view/branch-text.svelte +7 -2
  366. package/dist/tree-view/branch-trigger.svelte +7 -2
  367. package/dist/tree-view/branch.svelte +2 -2
  368. package/dist/tree-view/context.svelte.d.ts +3 -3
  369. package/dist/tree-view/item-indicator.svelte +7 -2
  370. package/dist/tree-view/item-text.svelte +2 -2
  371. package/dist/tree-view/item.svelte +2 -2
  372. package/dist/tree-view/label.svelte +2 -2
  373. package/dist/tree-view/root.svelte +2 -2
  374. package/dist/tree-view/tree.svelte +2 -2
  375. package/dist/types.d.ts +2 -1
  376. package/package.json +176 -176
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getNumberInputContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: NumberInputLabelProps = $props();
11
+ let {this: e, asChild, children, ...props}: NumberInputLabelProps = $props();
12
12
 
13
13
  let numberInput = getNumberInputContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <label {...mergedProps}>
21
+ <label bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </label>
24
24
  {/if}
@@ -19,7 +19,7 @@
19
19
  import {setNumberInputContext} from './context.svelte.js';
20
20
  import {createNumberInput} from './create-number-input.svelte.js';
21
21
 
22
- let {asChild, children, ...props}: NumberInputProps = $props();
22
+ let {this: e, asChild, children, ...props}: NumberInputProps = $props();
23
23
 
24
24
  let [numberInputProps, localProps] = $derived(
25
25
  createSplitProps<CreateNumberInputProps>([
@@ -63,7 +63,7 @@
63
63
  {#if asChild}
64
64
  {@render asChild(mergedProps, numberInput)}
65
65
  {:else}
66
- <div {...mergedProps}>
66
+ <div bind:this={e} {...mergedProps}>
67
67
  {@render children?.(numberInput)}
68
68
  </div>
69
69
  {/if}
@@ -9,7 +9,12 @@
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getNumberInputContext} from './context.svelte.js';
11
11
 
12
- let {asChild, children, ...props}: NumberInputScrubberProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: NumberInputScrubberProps = $props();
13
18
 
14
19
  let numberInput = getNumberInputContext();
15
20
 
@@ -19,7 +24,7 @@
19
24
  {#if asChild}
20
25
  {@render asChild(mergedProps)}
21
26
  {:else}
22
- <div {...mergedProps}>
27
+ <div bind:this={e} {...mergedProps}>
23
28
  {@render children?.()}
24
29
  </div>
25
30
  {/if}
@@ -1,2 +1,2 @@
1
1
  import type { CreatePaginationReturn } from './create-pagination.svelte.js';
2
- export declare const getPaginationContext: () => CreatePaginationReturn, setPaginationContext: (context: CreatePaginationReturn | (() => CreatePaginationReturn)) => void;
2
+ export declare const getPaginationContext: () => CreatePaginationReturn, setPaginationContext: (context: CreatePaginationReturn | (() => CreatePaginationReturn)) => CreatePaginationReturn;
@@ -10,7 +10,13 @@
10
10
  import {mergeProps} from '../merge-props.js';
11
11
  import {getPaginationContext} from './context.svelte.js';
12
12
 
13
- let {index, asChild, children, ...props}: PaginationEllipsisProps = $props();
13
+ let {
14
+ this: e,
15
+ index,
16
+ asChild,
17
+ children,
18
+ ...props
19
+ }: PaginationEllipsisProps = $props();
14
20
 
15
21
  let pagination = getPaginationContext();
16
22
 
@@ -22,7 +28,7 @@
22
28
  {#if asChild}
23
29
  {@render asChild(mergedProps)}
24
30
  {:else}
25
- <span {...mergedProps}>
31
+ <span bind:this={e} {...mergedProps}>
26
32
  {@render children?.()}
27
33
  </span>
28
34
  {/if}
@@ -10,7 +10,13 @@
10
10
  import {mergeProps} from '../merge-props.js';
11
11
  import {getPaginationContext} from './context.svelte.js';
12
12
 
13
- let {value, asChild, children, ...props}: PaginationItemProps = $props();
13
+ let {
14
+ this: e,
15
+ value,
16
+ asChild,
17
+ children,
18
+ ...props
19
+ }: PaginationItemProps = $props();
14
20
 
15
21
  let pagination = getPaginationContext();
16
22
 
@@ -28,7 +34,7 @@
28
34
  {#if asChild}
29
35
  {@render asChild(mergedProps)}
30
36
  {:else}
31
- <button type="button" {...mergedProps}>
37
+ <button bind:this={e} type="button" {...mergedProps}>
32
38
  {@render children?.()}
33
39
  </button>
34
40
  {/if}
@@ -9,7 +9,12 @@
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getPaginationContext} from './context.svelte.js';
11
11
 
12
- let {asChild, children, ...props}: PaginationNextTriggerProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: PaginationNextTriggerProps = $props();
13
18
 
14
19
  let pagination = getPaginationContext();
15
20
 
@@ -21,7 +26,7 @@
21
26
  {#if asChild}
22
27
  {@render asChild(mergedProps)}
23
28
  {:else}
24
- <button type="button" {...mergedProps}>
29
+ <button bind:this={e} type="button" {...mergedProps}>
25
30
  {@render children?.()}
26
31
  </button>
27
32
  {/if}
@@ -9,7 +9,12 @@
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getPaginationContext} from './context.svelte.js';
11
11
 
12
- let {asChild, children, ...props}: PaginationPrevTriggerProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: PaginationPrevTriggerProps = $props();
13
18
 
14
19
  let pagination = getPaginationContext();
15
20
 
@@ -21,7 +26,7 @@
21
26
  {#if asChild}
22
27
  {@render asChild(mergedProps)}
23
28
  {:else}
24
- <button type="button" {...mergedProps}>
29
+ <button bind:this={e} type="button" {...mergedProps}>
25
30
  {@render children?.()}
26
31
  </button>
27
32
  {/if}
@@ -19,7 +19,7 @@
19
19
  import {setPaginationContext} from './context.svelte.js';
20
20
  import {createPagination} from './create-pagination.svelte.js';
21
21
 
22
- let {asChild, children, ...props}: PaginationProps = $props();
22
+ let {this: e, asChild, children, ...props}: PaginationProps = $props();
23
23
 
24
24
  let [paginationProps, localProps] = $derived(
25
25
  createSplitProps<CreatePaginationProps>([
@@ -46,7 +46,7 @@
46
46
  {#if asChild}
47
47
  {@render asChild(mergedProps, pagination)}
48
48
  {:else}
49
- <div {...mergedProps}>
49
+ <div bind:this={e} {...mergedProps}>
50
50
  {@render children?.(pagination)}
51
51
  </div>
52
52
  {/if}
@@ -10,7 +10,12 @@
10
10
  import {parts} from './anatomy.js';
11
11
  import {getPinInputContext} from './context.svelte.js';
12
12
 
13
- let {asChild, children, ...props}: PinInputClearTriggerProps = $props();
13
+ let {
14
+ this: e,
15
+ asChild,
16
+ children,
17
+ ...props
18
+ }: PinInputClearTriggerProps = $props();
14
19
 
15
20
  let pinInput = getPinInputContext();
16
21
 
@@ -26,7 +31,7 @@
26
31
  {#if asChild}
27
32
  {@render asChild(mergedProps)}
28
33
  {:else}
29
- <button type="button" {...mergedProps}>
34
+ <button bind:this={e} type="button" {...mergedProps}>
30
35
  {@render children?.()}
31
36
  </button>
32
37
  {/if}
@@ -1,2 +1,2 @@
1
1
  import type { CreatePinInputReturn } from './create-pin-input.svelte.js';
2
- export declare const getPinInputContext: () => CreatePinInputReturn, setPinInputContext: (context: CreatePinInputReturn | (() => CreatePinInputReturn)) => void;
2
+ export declare const getPinInputContext: () => CreatePinInputReturn, setPinInputContext: (context: CreatePinInputReturn | (() => CreatePinInputReturn)) => CreatePinInputReturn;
@@ -9,7 +9,7 @@
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getPinInputContext} from './context.svelte.js';
11
11
 
12
- let {asChild, ...props}: PinInputHiddenInputProps = $props();
12
+ let {this: e, asChild, ...props}: PinInputHiddenInputProps = $props();
13
13
 
14
14
  let pinInput = getPinInputContext();
15
15
 
@@ -19,5 +19,5 @@
19
19
  {#if asChild}
20
20
  {@render asChild(mergedProps)}
21
21
  {:else}
22
- <input {...mergedProps} />
22
+ <input bind:this={e} {...mergedProps} />
23
23
  {/if}
@@ -10,7 +10,7 @@
10
10
  import {mergeProps} from '../merge-props.js';
11
11
  import {getPinInputContext} from './context.svelte.js';
12
12
 
13
- let {index, asChild, ...props}: PinInputInputProps = $props();
13
+ let {this: e, index, asChild, ...props}: PinInputInputProps = $props();
14
14
 
15
15
  let pinInput = getPinInputContext();
16
16
 
@@ -22,5 +22,5 @@
22
22
  {#if asChild}
23
23
  {@render asChild(mergedProps)}
24
24
  {:else}
25
- <input {...mergedProps} />
25
+ <input bind:this={e} {...mergedProps} />
26
26
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getPinInputContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: PinInputLabelProps = $props();
11
+ let {this: e, asChild, children, ...props}: PinInputLabelProps = $props();
12
12
 
13
13
  let pinInput = getPinInputContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <label {...mergedProps}>
21
+ <label bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </label>
24
24
  {/if}
@@ -19,7 +19,7 @@
19
19
  import {setPinInputContext} from './context.svelte.js';
20
20
  import {createPinInputContext} from './create-pin-input.svelte.js';
21
21
 
22
- let {asChild, children, ...props}: PinInputProps = $props();
22
+ let {this: e, asChild, children, ...props}: PinInputProps = $props();
23
23
 
24
24
  let [pinInputProps, localProps] = $derived(
25
25
  createSplitProps<CreatePinInputProps>([
@@ -57,7 +57,7 @@
57
57
  {#if asChild}
58
58
  {@render asChild(mergedProps, pinInput)}
59
59
  {:else}
60
- <div {...mergedProps}>
60
+ <div bind:this={e} {...mergedProps}>
61
61
  {@render children?.(pinInput)}
62
62
  </div>
63
63
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getPopoverContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: PopoverArrowTipProps = $props();
11
+ let {this: e, asChild, children, ...props}: PopoverArrowTipProps = $props();
12
12
 
13
13
  let popover = getPopoverContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <span {...mergedProps}>
21
+ <span bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </span>
24
24
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getPopoverContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: PopoverArrowProps = $props();
11
+ let {this: e, asChild, children, ...props}: PopoverArrowProps = $props();
12
12
 
13
13
  let popover = getPopoverContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <span {...mergedProps}>
21
+ <span bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </span>
24
24
  {/if}
@@ -9,7 +9,12 @@
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getPopoverContext} from './context.svelte.js';
11
11
 
12
- let {asChild, children, ...props}: PopoverCloseTriggerProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: PopoverCloseTriggerProps = $props();
13
18
 
14
19
  let popover = getPopoverContext();
15
20
 
@@ -19,7 +24,7 @@
19
24
  {#if asChild}
20
25
  {@render asChild(mergedProps)}
21
26
  {:else}
22
- <button type="button" {...mergedProps}>
27
+ <button bind:this={e} type="button" {...mergedProps}>
23
28
  {@render children?.()}
24
29
  </button>
25
30
  {/if}
@@ -11,7 +11,7 @@
11
11
  import {getPresenceContext} from '../presence/context.svelte.js';
12
12
  import {getPopoverContext} from './context.svelte.js';
13
13
 
14
- let {asChild, children, ...props}: PopoverContentProps = $props();
14
+ let {this: e, asChild, children, ...props}: PopoverContentProps = $props();
15
15
 
16
16
  let popover = getPopoverContext();
17
17
  let presence = getPresenceContext();
@@ -25,7 +25,7 @@
25
25
  {#if asChild}
26
26
  {@render asChild(presence.ref, mergedProps)}
27
27
  {:else}
28
- <div use:presence.ref {...mergedProps}>
28
+ <div bind:this={e} use:presence.ref {...mergedProps}>
29
29
  {@render children?.()}
30
30
  </div>
31
31
  {/if}
@@ -1,2 +1,2 @@
1
1
  import type { CreatePopoverReturn } from './create-popover.svelte.js';
2
- export declare const getPopoverContext: () => CreatePopoverReturn, setPopoverContext: (context: CreatePopoverReturn | (() => CreatePopoverReturn)) => void;
2
+ export declare const getPopoverContext: () => CreatePopoverReturn, setPopoverContext: (context: CreatePopoverReturn | (() => CreatePopoverReturn)) => CreatePopoverReturn;
@@ -8,7 +8,12 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getPopoverContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: PopoverDescriptionProps = $props();
11
+ let {
12
+ this: e,
13
+ asChild,
14
+ children,
15
+ ...props
16
+ }: PopoverDescriptionProps = $props();
12
17
 
13
18
  let popover = getPopoverContext();
14
19
 
@@ -18,7 +23,7 @@
18
23
  {#if asChild}
19
24
  {@render asChild(mergedProps)}
20
25
  {:else}
21
- <p {...mergedProps}>
26
+ <p bind:this={e} {...mergedProps}>
22
27
  {@render children?.()}
23
28
  </p>
24
29
  {/if}
@@ -9,7 +9,7 @@
9
9
  import {getPresenceContext} from '../presence/context.svelte.js';
10
10
  import {getPopoverContext} from './context.svelte.js';
11
11
 
12
- let {asChild, children, ...props}: PopoverPositionerProps = $props();
12
+ let {this: e, asChild, children, ...props}: PopoverPositionerProps = $props();
13
13
 
14
14
  let popover = getPopoverContext();
15
15
  let presence = getPresenceContext();
@@ -27,7 +27,7 @@
27
27
  {#if asChild}
28
28
  {@render asChild(mergedProps)}
29
29
  {:else}
30
- <div {...mergedProps}>
30
+ <div bind:this={e} {...mergedProps}>
31
31
  {@render children?.()}
32
32
  </div>
33
33
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getPopoverContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: PopoverTitleProps = $props();
11
+ let {this: e, asChild, children, ...props}: PopoverTitleProps = $props();
12
12
 
13
13
  let popover = getPopoverContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <h2 {...mergedProps}>
21
+ <h2 bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </h2>
24
24
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getPopoverContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: PopoverTriggerProps = $props();
11
+ let {this: e, asChild, children, ...props}: PopoverTriggerProps = $props();
12
12
 
13
13
  let popover = getPopoverContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <button type="button" {...mergedProps}>
21
+ <button bind:this={e} type="button" {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </button>
24
24
  {/if}
@@ -1,3 +1,3 @@
1
1
  import type { CreatePresenceReturn, PresenceStrategyProps } from './create-presence.svelte.js';
2
- export declare const getPresenceContext: () => CreatePresenceReturn, setPresenceContext: (context: CreatePresenceReturn | (() => CreatePresenceReturn)) => void;
3
- export declare const getPresenceStrategyPropsContext: () => PresenceStrategyProps, setPresenceStrategyPropsContext: (context: PresenceStrategyProps | (() => PresenceStrategyProps)) => void;
2
+ export declare const getPresenceContext: () => CreatePresenceReturn, setPresenceContext: (context: CreatePresenceReturn | (() => CreatePresenceReturn)) => CreatePresenceReturn;
3
+ export declare const getPresenceStrategyPropsContext: () => PresenceStrategyProps, setPresenceStrategyPropsContext: (context: PresenceStrategyProps | (() => PresenceStrategyProps)) => PresenceStrategyProps;
@@ -9,7 +9,12 @@
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getProgressContext} from './context.svelte.js';
11
11
 
12
- let {asChild, children, ...props}: ProgressCircleRangeProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ProgressCircleRangeProps = $props();
13
18
 
14
19
  let progress = getProgressContext();
15
20
 
@@ -19,7 +24,7 @@
19
24
  {#if asChild}
20
25
  {@render asChild(mergedProps)}
21
26
  {:else}
22
- <circle {...mergedProps}>
27
+ <circle bind:this={e} {...mergedProps}>
23
28
  {@render children?.()}
24
29
  </circle>
25
30
  {/if}
@@ -9,7 +9,12 @@
9
9
  import {mergeProps} from '../merge-props.js';
10
10
  import {getProgressContext} from './context.svelte.js';
11
11
 
12
- let {asChild, children, ...props}: ProgressCircleTrackProps = $props();
12
+ let {
13
+ this: e,
14
+ asChild,
15
+ children,
16
+ ...props
17
+ }: ProgressCircleTrackProps = $props();
13
18
 
14
19
  let progress = getProgressContext();
15
20
 
@@ -19,7 +24,7 @@
19
24
  {#if asChild}
20
25
  {@render asChild(mergedProps)}
21
26
  {:else}
22
- <circle {...mergedProps}>
27
+ <circle bind:this={e} {...mergedProps}>
23
28
  {@render children?.()}
24
29
  </circle>
25
30
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getProgressContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: ProgressCircleProps = $props();
11
+ let {this: e, asChild, children, ...props}: ProgressCircleProps = $props();
12
12
 
13
13
  let progress = getProgressContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <svg {...mergedProps}>
21
+ <svg bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </svg>
24
24
  {/if}
@@ -1,2 +1,2 @@
1
1
  import type { CreateProgressReturn } from './create-progress.svelte.js';
2
- export declare const getProgressContext: () => CreateProgressReturn, setProgressContext: (context: CreateProgressReturn | (() => CreateProgressReturn)) => void;
2
+ export declare const getProgressContext: () => CreateProgressReturn, setProgressContext: (context: CreateProgressReturn | (() => CreateProgressReturn)) => CreateProgressReturn;
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getProgressContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: ProgressLabelProps = $props();
11
+ let {this: e, asChild, children, ...props}: ProgressLabelProps = $props();
12
12
 
13
13
  let progress = getProgressContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <span {...mergedProps}>
21
+ <span bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </span>
24
24
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getProgressContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: ProgressRangeProps = $props();
11
+ let {this: e, asChild, children, ...props}: ProgressRangeProps = $props();
12
12
 
13
13
  let progress = getProgressContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <div {...mergedProps}>
21
+ <div bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </div>
24
24
  {/if}
@@ -19,7 +19,7 @@
19
19
  import {setProgressContext} from './context.svelte.js';
20
20
  import {createProgress} from './create-progress.svelte.js';
21
21
 
22
- let {asChild, children, ...props}: ProgressProps = $props();
22
+ let {this: e, asChild, children, ...props}: ProgressProps = $props();
23
23
 
24
24
  let [progressProps, localProps] = $derived(
25
25
  createSplitProps<CreateProgressProps>([
@@ -43,7 +43,7 @@
43
43
  {#if asChild}
44
44
  {@render asChild(mergedProps, progress)}
45
45
  {:else}
46
- <div {...mergedProps}>
46
+ <div bind:this={e} {...mergedProps}>
47
47
  {@render children?.(progress)}
48
48
  </div>
49
49
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getProgressContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: ProgressTrackProps = $props();
11
+ let {this: e, asChild, children, ...props}: ProgressTrackProps = $props();
12
12
 
13
13
  let progress = getProgressContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <div {...mergedProps}>
21
+ <div bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </div>
24
24
  {/if}
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getProgressContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: ProgressValueTextProps = $props();
11
+ let {this: e, asChild, children, ...props}: ProgressValueTextProps = $props();
12
12
 
13
13
  let progress = getProgressContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <span {...mergedProps}>
21
+ <span bind:this={e} {...mergedProps}>
22
22
  {#if children}
23
23
  {@render children()}
24
24
  {:else}
@@ -10,7 +10,13 @@
10
10
  import {mergeProps} from '../merge-props.js';
11
11
  import {getProgressContext} from './context.svelte.js';
12
12
 
13
- let {state, asChild, children, ...props}: ProgressViewProps = $props();
13
+ let {
14
+ this: e,
15
+ state,
16
+ asChild,
17
+ children,
18
+ ...props
19
+ }: ProgressViewProps = $props();
14
20
 
15
21
  let progress = getProgressContext();
16
22
 
@@ -20,7 +26,7 @@
20
26
  {#if asChild}
21
27
  {@render asChild(mergedProps)}
22
28
  {:else}
23
- <div {...mergedProps}>
29
+ <div bind:this={e} {...mergedProps}>
24
30
  {@render children?.()}
25
31
  </div>
26
32
  {/if}
@@ -1,2 +1,2 @@
1
1
  import type { CreateQrCodeReturn } from './create-qr-code.svelte.js';
2
- export declare const getQrCodeContext: () => CreateQrCodeReturn, setQrCodeContext: (context: CreateQrCodeReturn | (() => CreateQrCodeReturn)) => void;
2
+ export declare const getQrCodeContext: () => CreateQrCodeReturn, setQrCodeContext: (context: CreateQrCodeReturn | (() => CreateQrCodeReturn)) => CreateQrCodeReturn;
@@ -8,7 +8,7 @@
8
8
  import {mergeProps} from '../merge-props.js';
9
9
  import {getQrCodeContext} from './context.svelte.js';
10
10
 
11
- let {asChild, children, ...props}: QrCodeFrameProps = $props();
11
+ let {this: e, asChild, children, ...props}: QrCodeFrameProps = $props();
12
12
 
13
13
  let qrCode = getQrCodeContext();
14
14
 
@@ -18,7 +18,7 @@
18
18
  {#if asChild}
19
19
  {@render asChild(mergedProps)}
20
20
  {:else}
21
- <svg {...mergedProps}>
21
+ <svg bind:this={e} {...mergedProps}>
22
22
  {@render children?.()}
23
23
  </svg>
24
24
  {/if}