@skeletonlabs/skeleton-react 2.0.0-next.5 → 2.0.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/dist/components/accordion/anatomy/item-content.d.ts +12 -0
  2. package/dist/components/accordion/anatomy/item-content.d.ts.map +1 -0
  3. package/dist/components/accordion/anatomy/{content.js → item-content.js} +6 -6
  4. package/dist/components/accordion/anatomy/item-content.js.map +1 -0
  5. package/dist/components/accordion/anatomy/item-heading.d.ts +19 -0
  6. package/dist/components/accordion/anatomy/item-heading.d.ts.map +1 -0
  7. package/dist/components/accordion/anatomy/{heading.js → item-heading.js} +5 -5
  8. package/dist/components/accordion/anatomy/item-heading.js.map +1 -0
  9. package/dist/components/accordion/anatomy/item-indicator.d.ts +12 -0
  10. package/dist/components/accordion/anatomy/item-indicator.d.ts.map +1 -0
  11. package/dist/components/accordion/anatomy/{indicator.js → item-indicator.js} +6 -6
  12. package/dist/components/accordion/anatomy/item-indicator.js.map +1 -0
  13. package/dist/components/accordion/anatomy/item-trigger.d.ts +12 -0
  14. package/dist/components/accordion/anatomy/item-trigger.d.ts.map +1 -0
  15. package/dist/components/accordion/anatomy/{trigger.js → item-trigger.js} +6 -6
  16. package/dist/components/accordion/anatomy/item-trigger.js.map +1 -0
  17. package/dist/components/accordion/anatomy/item.d.ts +3 -3
  18. package/dist/components/accordion/anatomy/item.d.ts.map +1 -1
  19. package/dist/components/accordion/anatomy/item.js +5 -5
  20. package/dist/components/accordion/anatomy/item.js.map +1 -1
  21. package/dist/components/accordion/anatomy/root-context.js.map +1 -1
  22. package/dist/components/accordion/anatomy/root-provider.d.ts +3 -2
  23. package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -1
  24. package/dist/components/accordion/anatomy/root-provider.js +21 -0
  25. package/dist/components/accordion/anatomy/root-provider.js.map +1 -0
  26. package/dist/components/accordion/anatomy/root.d.ts +3 -3
  27. package/dist/components/accordion/anatomy/root.d.ts.map +1 -1
  28. package/dist/components/accordion/anatomy/root.js +5 -5
  29. package/dist/components/accordion/anatomy/root.js.map +1 -1
  30. package/dist/components/accordion/modules/anatomy.d.ts +14 -12
  31. package/dist/components/accordion/modules/anatomy.d.ts.map +1 -1
  32. package/dist/components/accordion/modules/anatomy.js +14 -12
  33. package/dist/components/accordion/modules/anatomy.js.map +1 -1
  34. package/dist/components/accordion/modules/item-context.js +2 -2
  35. package/dist/components/accordion/modules/item-context.js.map +1 -1
  36. package/dist/components/accordion/modules/root-context.js +1 -0
  37. package/dist/components/accordion/modules/root-context.js.map +1 -1
  38. package/dist/components/accordion/modules/use-accordion.d.ts +2 -1
  39. package/dist/components/accordion/modules/use-accordion.d.ts.map +1 -1
  40. package/dist/components/accordion/modules/use-accordion.js +2 -2
  41. package/dist/components/accordion/modules/use-accordion.js.map +1 -1
  42. package/dist/components/avatar/anatomy/fallback.d.ts +4 -4
  43. package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -1
  44. package/dist/components/avatar/anatomy/fallback.js +4 -4
  45. package/dist/components/avatar/anatomy/fallback.js.map +1 -1
  46. package/dist/components/avatar/anatomy/image.d.ts +4 -4
  47. package/dist/components/avatar/anatomy/image.d.ts.map +1 -1
  48. package/dist/components/avatar/anatomy/image.js +4 -4
  49. package/dist/components/avatar/anatomy/image.js.map +1 -1
  50. package/dist/components/avatar/anatomy/root-context.js.map +1 -1
  51. package/dist/components/avatar/anatomy/root-provider.d.ts +3 -2
  52. package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -1
  53. package/dist/components/avatar/anatomy/root-provider.js +21 -0
  54. package/dist/components/avatar/anatomy/root-provider.js.map +1 -0
  55. package/dist/components/avatar/anatomy/root.d.ts +2 -2
  56. package/dist/components/avatar/anatomy/root.d.ts.map +1 -1
  57. package/dist/components/avatar/anatomy/root.js +1 -1
  58. package/dist/components/avatar/anatomy/root.js.map +1 -1
  59. package/dist/components/avatar/modules/anatomy.d.ts +6 -4
  60. package/dist/components/avatar/modules/anatomy.d.ts.map +1 -1
  61. package/dist/components/avatar/modules/anatomy.js +6 -4
  62. package/dist/components/avatar/modules/anatomy.js.map +1 -1
  63. package/dist/components/avatar/modules/root-context.js.map +1 -1
  64. package/dist/components/avatar/modules/use-avatar.d.ts +2 -1
  65. package/dist/components/avatar/modules/use-avatar.d.ts.map +1 -1
  66. package/dist/components/avatar/modules/use-avatar.js +2 -2
  67. package/dist/components/avatar/modules/use-avatar.js.map +1 -1
  68. package/dist/components/file-upload/anatomy/dropzone.d.ts +3 -3
  69. package/dist/components/file-upload/anatomy/dropzone.d.ts.map +1 -1
  70. package/dist/components/file-upload/anatomy/dropzone.js +2 -2
  71. package/dist/components/file-upload/anatomy/dropzone.js.map +1 -1
  72. package/dist/components/file-upload/anatomy/hidden-input.d.ts +3 -3
  73. package/dist/components/file-upload/anatomy/hidden-input.d.ts.map +1 -1
  74. package/dist/components/file-upload/anatomy/hidden-input.js +2 -2
  75. package/dist/components/file-upload/anatomy/hidden-input.js.map +1 -1
  76. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +3 -3
  77. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts.map +1 -1
  78. package/dist/components/file-upload/anatomy/item-delete-trigger.js +4 -4
  79. package/dist/components/file-upload/anatomy/item-delete-trigger.js.map +1 -1
  80. package/dist/components/file-upload/anatomy/item-group.d.ts +3 -3
  81. package/dist/components/file-upload/anatomy/item-group.d.ts.map +1 -1
  82. package/dist/components/file-upload/anatomy/item-group.js +2 -2
  83. package/dist/components/file-upload/anatomy/item-group.js.map +1 -1
  84. package/dist/components/file-upload/anatomy/item-name.d.ts +3 -3
  85. package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -1
  86. package/dist/components/file-upload/anatomy/item-name.js +2 -2
  87. package/dist/components/file-upload/anatomy/item-name.js.map +1 -1
  88. package/dist/components/file-upload/anatomy/item-size-text.d.ts +3 -3
  89. package/dist/components/file-upload/anatomy/item-size-text.d.ts.map +1 -1
  90. package/dist/components/file-upload/anatomy/item-size-text.js +2 -2
  91. package/dist/components/file-upload/anatomy/item-size-text.js.map +1 -1
  92. package/dist/components/file-upload/anatomy/item.d.ts +2 -2
  93. package/dist/components/file-upload/anatomy/item.d.ts.map +1 -1
  94. package/dist/components/file-upload/anatomy/item.js +2 -2
  95. package/dist/components/file-upload/anatomy/item.js.map +1 -1
  96. package/dist/components/file-upload/anatomy/root-context.js.map +1 -1
  97. package/dist/components/file-upload/anatomy/root-provider.d.ts +2 -2
  98. package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -1
  99. package/dist/components/file-upload/anatomy/root-provider.js +1 -1
  100. package/dist/components/file-upload/anatomy/root-provider.js.map +1 -1
  101. package/dist/components/file-upload/anatomy/root.d.ts +2 -2
  102. package/dist/components/file-upload/anatomy/root.d.ts.map +1 -1
  103. package/dist/components/file-upload/anatomy/root.js +1 -1
  104. package/dist/components/file-upload/anatomy/root.js.map +1 -1
  105. package/dist/components/file-upload/anatomy/trigger.d.ts +3 -3
  106. package/dist/components/file-upload/anatomy/trigger.d.ts.map +1 -1
  107. package/dist/components/file-upload/anatomy/trigger.js +2 -2
  108. package/dist/components/file-upload/anatomy/trigger.js.map +1 -1
  109. package/dist/components/file-upload/modules/item-context.js.map +1 -1
  110. package/dist/components/file-upload/modules/root-context.js.map +1 -1
  111. package/dist/components/file-upload/modules/use-file-upload.d.ts +2 -1
  112. package/dist/components/file-upload/modules/use-file-upload.d.ts.map +1 -1
  113. package/dist/components/file-upload/modules/use-file-upload.js +1 -1
  114. package/dist/components/file-upload/modules/use-file-upload.js.map +1 -1
  115. package/dist/components/popover/anatomy/arrow-tip.d.ts +11 -0
  116. package/dist/components/popover/anatomy/arrow-tip.d.ts.map +1 -0
  117. package/dist/components/popover/anatomy/arrow-tip.js +20 -0
  118. package/dist/components/popover/anatomy/arrow-tip.js.map +1 -0
  119. package/dist/components/popover/anatomy/arrow.d.ts +11 -0
  120. package/dist/components/popover/anatomy/arrow.d.ts.map +1 -0
  121. package/dist/components/popover/anatomy/arrow.js +20 -0
  122. package/dist/components/popover/anatomy/arrow.js.map +1 -0
  123. package/dist/components/popover/anatomy/close-trigger.d.ts +11 -0
  124. package/dist/components/popover/anatomy/close-trigger.d.ts.map +1 -0
  125. package/dist/components/popover/anatomy/close-trigger.js +20 -0
  126. package/dist/components/popover/anatomy/close-trigger.js.map +1 -0
  127. package/dist/components/popover/anatomy/content.d.ts +11 -0
  128. package/dist/components/popover/anatomy/content.d.ts.map +1 -0
  129. package/dist/components/popover/anatomy/content.js +20 -0
  130. package/dist/components/popover/anatomy/content.js.map +1 -0
  131. package/dist/components/popover/anatomy/description.d.ts +11 -0
  132. package/dist/components/popover/anatomy/description.d.ts.map +1 -0
  133. package/dist/components/popover/anatomy/description.js +20 -0
  134. package/dist/components/popover/anatomy/description.js.map +1 -0
  135. package/dist/components/popover/anatomy/positioner.d.ts +10 -0
  136. package/dist/components/popover/anatomy/positioner.d.ts.map +1 -0
  137. package/dist/components/popover/anatomy/positioner.js +21 -0
  138. package/dist/components/popover/anatomy/positioner.js.map +1 -0
  139. package/dist/components/popover/anatomy/root-context.d.ts +11 -0
  140. package/dist/components/popover/anatomy/root-context.d.ts.map +1 -0
  141. package/dist/components/popover/anatomy/root-context.js +13 -0
  142. package/dist/components/popover/anatomy/root-context.js.map +1 -0
  143. package/dist/components/popover/anatomy/root-provider.d.ts +12 -0
  144. package/dist/components/popover/anatomy/root-provider.d.ts.map +1 -0
  145. package/dist/components/popover/anatomy/root-provider.js +15 -0
  146. package/dist/components/popover/anatomy/root-provider.js.map +1 -0
  147. package/dist/components/popover/anatomy/root.d.ts +10 -0
  148. package/dist/components/popover/anatomy/root.d.ts.map +1 -0
  149. package/dist/components/popover/anatomy/root.js +20 -0
  150. package/dist/components/popover/anatomy/root.js.map +1 -0
  151. package/dist/components/popover/anatomy/title.d.ts +11 -0
  152. package/dist/components/popover/anatomy/title.d.ts.map +1 -0
  153. package/dist/components/popover/anatomy/title.js +20 -0
  154. package/dist/components/popover/anatomy/title.js.map +1 -0
  155. package/dist/components/popover/anatomy/trigger.d.ts +12 -0
  156. package/dist/components/popover/anatomy/trigger.d.ts.map +1 -0
  157. package/dist/components/popover/anatomy/trigger.js +20 -0
  158. package/dist/components/popover/anatomy/trigger.js.map +1 -0
  159. package/dist/components/popover/index.js +4 -0
  160. package/dist/components/popover/modules/anatomy.d.ts +28 -0
  161. package/dist/components/popover/modules/anatomy.d.ts.map +1 -0
  162. package/dist/components/popover/modules/anatomy.js +29 -0
  163. package/dist/components/popover/modules/anatomy.js.map +1 -0
  164. package/dist/components/popover/modules/root-context.js +8 -0
  165. package/dist/components/popover/modules/root-context.js.map +1 -0
  166. package/dist/components/popover/modules/use-popover.d.ts +8 -0
  167. package/dist/components/popover/modules/use-popover.d.ts.map +1 -0
  168. package/dist/components/popover/modules/use-popover.js +16 -0
  169. package/dist/components/popover/modules/use-popover.js.map +1 -0
  170. package/dist/components/progress-linear/anatomy/label.d.ts +4 -4
  171. package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -1
  172. package/dist/components/progress-linear/anatomy/label.js +4 -4
  173. package/dist/components/progress-linear/anatomy/label.js.map +1 -1
  174. package/dist/components/progress-linear/anatomy/range.d.ts +4 -4
  175. package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -1
  176. package/dist/components/progress-linear/anatomy/range.js +4 -4
  177. package/dist/components/progress-linear/anatomy/range.js.map +1 -1
  178. package/dist/components/progress-linear/anatomy/root-context.d.ts +2 -2
  179. package/dist/components/progress-linear/anatomy/root-context.d.ts.map +1 -1
  180. package/dist/components/progress-linear/anatomy/root-context.js +2 -2
  181. package/dist/components/progress-linear/anatomy/root-context.js.map +1 -1
  182. package/dist/components/progress-linear/anatomy/root-provider.d.ts +3 -3
  183. package/dist/components/progress-linear/anatomy/root-provider.d.ts.map +1 -1
  184. package/dist/components/progress-linear/anatomy/root-provider.js +3 -3
  185. package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -1
  186. package/dist/components/progress-linear/anatomy/root.d.ts +3 -3
  187. package/dist/components/progress-linear/anatomy/root.d.ts.map +1 -1
  188. package/dist/components/progress-linear/anatomy/root.js +3 -3
  189. package/dist/components/progress-linear/anatomy/root.js.map +1 -1
  190. package/dist/components/progress-linear/anatomy/track.d.ts +4 -4
  191. package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -1
  192. package/dist/components/progress-linear/anatomy/track.js +4 -4
  193. package/dist/components/progress-linear/anatomy/track.js.map +1 -1
  194. package/dist/components/progress-linear/modules/anatomy.d.ts +12 -12
  195. package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -1
  196. package/dist/components/progress-linear/modules/anatomy.js +12 -12
  197. package/dist/components/progress-linear/modules/anatomy.js.map +1 -1
  198. package/dist/components/progress-linear/modules/root-context.js.map +1 -1
  199. package/dist/components/progress-linear/modules/use-progress-linear.d.ts +2 -1
  200. package/dist/components/progress-linear/modules/use-progress-linear.d.ts.map +1 -1
  201. package/dist/components/progress-linear/modules/use-progress-linear.js +2 -2
  202. package/dist/components/progress-linear/modules/use-progress-linear.js.map +1 -1
  203. package/dist/components/rating-group/anatomy/control.d.ts +4 -4
  204. package/dist/components/rating-group/anatomy/control.d.ts.map +1 -1
  205. package/dist/components/rating-group/anatomy/control.js +4 -4
  206. package/dist/components/rating-group/anatomy/control.js.map +1 -1
  207. package/dist/components/rating-group/anatomy/hidden-input.d.ts +4 -4
  208. package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -1
  209. package/dist/components/rating-group/anatomy/hidden-input.js +4 -4
  210. package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -1
  211. package/dist/components/rating-group/anatomy/item.d.ts +4 -4
  212. package/dist/components/rating-group/anatomy/item.d.ts.map +1 -1
  213. package/dist/components/rating-group/anatomy/item.js +4 -4
  214. package/dist/components/rating-group/anatomy/item.js.map +1 -1
  215. package/dist/components/rating-group/anatomy/label.d.ts +4 -4
  216. package/dist/components/rating-group/anatomy/label.d.ts.map +1 -1
  217. package/dist/components/rating-group/anatomy/label.js +4 -4
  218. package/dist/components/rating-group/anatomy/label.js.map +1 -1
  219. package/dist/components/rating-group/anatomy/root-context.d.ts +2 -2
  220. package/dist/components/rating-group/anatomy/root-context.d.ts.map +1 -1
  221. package/dist/components/rating-group/anatomy/root-context.js +2 -2
  222. package/dist/components/rating-group/anatomy/root-context.js.map +1 -1
  223. package/dist/components/rating-group/anatomy/root-provider.d.ts +3 -3
  224. package/dist/components/rating-group/anatomy/root-provider.d.ts.map +1 -1
  225. package/dist/components/rating-group/anatomy/root-provider.js +3 -3
  226. package/dist/components/rating-group/anatomy/root-provider.js.map +1 -1
  227. package/dist/components/rating-group/anatomy/root.d.ts +3 -3
  228. package/dist/components/rating-group/anatomy/root.d.ts.map +1 -1
  229. package/dist/components/rating-group/anatomy/root.js +3 -3
  230. package/dist/components/rating-group/anatomy/root.js.map +1 -1
  231. package/dist/components/rating-group/modules/anatomy.d.ts +14 -14
  232. package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -1
  233. package/dist/components/rating-group/modules/anatomy.js +14 -14
  234. package/dist/components/rating-group/modules/anatomy.js.map +1 -1
  235. package/dist/components/rating-group/modules/root-context.js.map +1 -1
  236. package/dist/components/rating-group/modules/use-rating-group.d.ts +2 -1
  237. package/dist/components/rating-group/modules/use-rating-group.d.ts.map +1 -1
  238. package/dist/components/rating-group/modules/use-rating-group.js +2 -2
  239. package/dist/components/rating-group/modules/use-rating-group.js.map +1 -1
  240. package/dist/components/switch/anatomy/control.d.ts +4 -4
  241. package/dist/components/switch/anatomy/control.d.ts.map +1 -1
  242. package/dist/components/switch/anatomy/control.js +4 -4
  243. package/dist/components/switch/anatomy/control.js.map +1 -1
  244. package/dist/components/switch/anatomy/hidden-input.d.ts +4 -4
  245. package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -1
  246. package/dist/components/switch/anatomy/hidden-input.js +4 -4
  247. package/dist/components/switch/anatomy/hidden-input.js.map +1 -1
  248. package/dist/components/switch/anatomy/label.d.ts +4 -4
  249. package/dist/components/switch/anatomy/label.d.ts.map +1 -1
  250. package/dist/components/switch/anatomy/label.js +4 -4
  251. package/dist/components/switch/anatomy/label.js.map +1 -1
  252. package/dist/components/switch/anatomy/root-context.d.ts +2 -2
  253. package/dist/components/switch/anatomy/root-context.d.ts.map +1 -1
  254. package/dist/components/switch/anatomy/root-context.js +2 -2
  255. package/dist/components/switch/anatomy/root-context.js.map +1 -1
  256. package/dist/components/switch/anatomy/root-provider.d.ts +3 -2
  257. package/dist/components/switch/anatomy/root-provider.d.ts.map +1 -1
  258. package/dist/components/switch/anatomy/root-provider.js +21 -0
  259. package/dist/components/switch/anatomy/root-provider.js.map +1 -0
  260. package/dist/components/switch/anatomy/root.d.ts +3 -3
  261. package/dist/components/switch/anatomy/root.d.ts.map +1 -1
  262. package/dist/components/switch/anatomy/root.js +3 -3
  263. package/dist/components/switch/anatomy/root.js.map +1 -1
  264. package/dist/components/switch/anatomy/thumb.d.ts +4 -4
  265. package/dist/components/switch/anatomy/thumb.d.ts.map +1 -1
  266. package/dist/components/switch/anatomy/thumb.js +4 -4
  267. package/dist/components/switch/anatomy/thumb.js.map +1 -1
  268. package/dist/components/switch/modules/anatomy.d.ts +14 -12
  269. package/dist/components/switch/modules/anatomy.d.ts.map +1 -1
  270. package/dist/components/switch/modules/anatomy.js +14 -12
  271. package/dist/components/switch/modules/anatomy.js.map +1 -1
  272. package/dist/components/switch/modules/root-context.js.map +1 -1
  273. package/dist/components/switch/modules/use-switch.d.ts +2 -1
  274. package/dist/components/switch/modules/use-switch.d.ts.map +1 -1
  275. package/dist/components/switch/modules/use-switch.js +2 -2
  276. package/dist/components/switch/modules/use-switch.js.map +1 -1
  277. package/dist/components/tabs/anatomy/content.d.ts +4 -4
  278. package/dist/components/tabs/anatomy/content.d.ts.map +1 -1
  279. package/dist/components/tabs/anatomy/content.js +4 -4
  280. package/dist/components/tabs/anatomy/content.js.map +1 -1
  281. package/dist/components/tabs/anatomy/indicator.d.ts +4 -4
  282. package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -1
  283. package/dist/components/tabs/anatomy/indicator.js +4 -4
  284. package/dist/components/tabs/anatomy/indicator.js.map +1 -1
  285. package/dist/components/tabs/anatomy/list.d.ts +4 -4
  286. package/dist/components/tabs/anatomy/list.d.ts.map +1 -1
  287. package/dist/components/tabs/anatomy/list.js +4 -4
  288. package/dist/components/tabs/anatomy/list.js.map +1 -1
  289. package/dist/components/tabs/anatomy/root-context.js.map +1 -1
  290. package/dist/components/tabs/anatomy/root-provider.d.ts +3 -3
  291. package/dist/components/tabs/anatomy/root-provider.d.ts.map +1 -1
  292. package/dist/components/tabs/anatomy/root-provider.js +3 -3
  293. package/dist/components/tabs/anatomy/root-provider.js.map +1 -1
  294. package/dist/components/tabs/anatomy/root.d.ts +3 -3
  295. package/dist/components/tabs/anatomy/root.d.ts.map +1 -1
  296. package/dist/components/tabs/anatomy/root.js +3 -3
  297. package/dist/components/tabs/anatomy/root.js.map +1 -1
  298. package/dist/components/tabs/anatomy/trigger.d.ts +4 -4
  299. package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -1
  300. package/dist/components/tabs/anatomy/trigger.js +4 -4
  301. package/dist/components/tabs/anatomy/trigger.js.map +1 -1
  302. package/dist/components/tabs/modules/anatomy.d.ts +12 -12
  303. package/dist/components/tabs/modules/anatomy.d.ts.map +1 -1
  304. package/dist/components/tabs/modules/anatomy.js +12 -12
  305. package/dist/components/tabs/modules/anatomy.js.map +1 -1
  306. package/dist/components/tabs/modules/root-context.js.map +1 -1
  307. package/dist/components/tabs/modules/use-tabs.d.ts +2 -1
  308. package/dist/components/tabs/modules/use-tabs.d.ts.map +1 -1
  309. package/dist/components/tabs/modules/use-tabs.js +2 -2
  310. package/dist/components/tabs/modules/use-tabs.js.map +1 -1
  311. package/dist/components/tags-input/anatomy/clear-trigger.d.ts +11 -0
  312. package/dist/components/tags-input/anatomy/clear-trigger.d.ts.map +1 -0
  313. package/dist/components/tags-input/anatomy/clear-trigger.js +20 -0
  314. package/dist/components/tags-input/anatomy/clear-trigger.js.map +1 -0
  315. package/dist/components/tags-input/anatomy/control.d.ts +11 -0
  316. package/dist/components/tags-input/anatomy/control.d.ts.map +1 -0
  317. package/dist/components/tags-input/anatomy/control.js +20 -0
  318. package/dist/components/tags-input/anatomy/control.js.map +1 -0
  319. package/dist/components/tags-input/anatomy/hidden-input.d.ts +11 -0
  320. package/dist/components/tags-input/anatomy/hidden-input.d.ts.map +1 -0
  321. package/dist/components/tags-input/anatomy/hidden-input.js +17 -0
  322. package/dist/components/tags-input/anatomy/hidden-input.js.map +1 -0
  323. package/dist/components/tags-input/anatomy/input.d.ts +11 -0
  324. package/dist/components/tags-input/anatomy/input.d.ts.map +1 -0
  325. package/dist/components/tags-input/anatomy/input.js +17 -0
  326. package/dist/components/tags-input/anatomy/input.js.map +1 -0
  327. package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts +11 -0
  328. package/dist/components/tags-input/anatomy/item-delete-trigger.d.ts.map +1 -0
  329. package/dist/components/tags-input/anatomy/item-delete-trigger.js +22 -0
  330. package/dist/components/tags-input/anatomy/item-delete-trigger.js.map +1 -0
  331. package/dist/components/tags-input/anatomy/item-input.d.ts +11 -0
  332. package/dist/components/tags-input/anatomy/item-input.d.ts.map +1 -0
  333. package/dist/components/tags-input/anatomy/item-input.js +19 -0
  334. package/dist/components/tags-input/anatomy/item-input.js.map +1 -0
  335. package/dist/components/tags-input/anatomy/item-preview.d.ts +11 -0
  336. package/dist/components/tags-input/anatomy/item-preview.d.ts.map +1 -0
  337. package/dist/components/tags-input/anatomy/item-preview.js +22 -0
  338. package/dist/components/tags-input/anatomy/item-preview.js.map +1 -0
  339. package/dist/components/tags-input/anatomy/item-text.d.ts +11 -0
  340. package/dist/components/tags-input/anatomy/item-text.d.ts.map +1 -0
  341. package/dist/components/tags-input/anatomy/item-text.js +22 -0
  342. package/dist/components/tags-input/anatomy/item-text.js.map +1 -0
  343. package/dist/components/tags-input/anatomy/item.d.ts +11 -0
  344. package/dist/components/tags-input/anatomy/item.d.ts.map +1 -0
  345. package/dist/components/tags-input/anatomy/item.js +26 -0
  346. package/dist/components/tags-input/anatomy/item.js.map +1 -0
  347. package/dist/components/tags-input/anatomy/label.d.ts +11 -0
  348. package/dist/components/tags-input/anatomy/label.d.ts.map +1 -0
  349. package/dist/components/tags-input/anatomy/label.js +20 -0
  350. package/dist/components/tags-input/anatomy/label.js.map +1 -0
  351. package/dist/components/tags-input/anatomy/root-context.d.ts +11 -0
  352. package/dist/components/tags-input/anatomy/root-context.d.ts.map +1 -0
  353. package/dist/components/tags-input/anatomy/root-context.js +13 -0
  354. package/dist/components/tags-input/anatomy/root-context.js.map +1 -0
  355. package/dist/components/tags-input/anatomy/root-provider.d.ts +13 -0
  356. package/dist/components/tags-input/anatomy/root-provider.d.ts.map +1 -0
  357. package/dist/components/tags-input/anatomy/root-provider.js +21 -0
  358. package/dist/components/tags-input/anatomy/root-provider.js.map +1 -0
  359. package/dist/components/tags-input/anatomy/root.d.ts +11 -0
  360. package/dist/components/tags-input/anatomy/root.d.ts.map +1 -0
  361. package/dist/components/tags-input/anatomy/root.js +25 -0
  362. package/dist/components/tags-input/anatomy/root.js.map +1 -0
  363. package/dist/components/tags-input/index.js +4 -0
  364. package/dist/components/tags-input/modules/anatomy.d.ts +32 -0
  365. package/dist/components/tags-input/modules/anatomy.d.ts.map +1 -0
  366. package/dist/components/tags-input/modules/anatomy.js +33 -0
  367. package/dist/components/tags-input/modules/anatomy.js.map +1 -0
  368. package/dist/components/tags-input/modules/item-context.js +8 -0
  369. package/dist/components/tags-input/modules/item-context.js.map +1 -0
  370. package/dist/components/tags-input/modules/root-context.js +8 -0
  371. package/dist/components/tags-input/modules/root-context.js.map +1 -0
  372. package/dist/components/tags-input/modules/use-tags-input.d.ts +8 -0
  373. package/dist/components/tags-input/modules/use-tags-input.d.ts.map +1 -0
  374. package/dist/components/tags-input/modules/use-tags-input.js +16 -0
  375. package/dist/components/tags-input/modules/use-tags-input.js.map +1 -0
  376. package/dist/components/toast/anatomy/action-trigger.d.ts +4 -4
  377. package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -1
  378. package/dist/components/toast/anatomy/action-trigger.js +4 -4
  379. package/dist/components/toast/anatomy/action-trigger.js.map +1 -1
  380. package/dist/components/toast/anatomy/close-trigger.d.ts +4 -4
  381. package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -1
  382. package/dist/components/toast/anatomy/close-trigger.js +4 -4
  383. package/dist/components/toast/anatomy/close-trigger.js.map +1 -1
  384. package/dist/components/toast/anatomy/description.d.ts +4 -4
  385. package/dist/components/toast/anatomy/description.d.ts.map +1 -1
  386. package/dist/components/toast/anatomy/description.js +4 -4
  387. package/dist/components/toast/anatomy/description.js.map +1 -1
  388. package/dist/components/toast/anatomy/group.d.ts +3 -3
  389. package/dist/components/toast/anatomy/group.d.ts.map +1 -1
  390. package/dist/components/toast/anatomy/group.js +4 -4
  391. package/dist/components/toast/anatomy/group.js.map +1 -1
  392. package/dist/components/toast/anatomy/message.d.ts +4 -4
  393. package/dist/components/toast/anatomy/message.d.ts.map +1 -1
  394. package/dist/components/toast/anatomy/message.js +3 -3
  395. package/dist/components/toast/anatomy/message.js.map +1 -1
  396. package/dist/components/toast/anatomy/root-context.d.ts +4 -3
  397. package/dist/components/toast/anatomy/root-context.d.ts.map +1 -1
  398. package/dist/components/toast/anatomy/root-context.js +2 -2
  399. package/dist/components/toast/anatomy/root-context.js.map +1 -1
  400. package/dist/components/toast/anatomy/root.d.ts +2 -2
  401. package/dist/components/toast/anatomy/root.d.ts.map +1 -1
  402. package/dist/components/toast/anatomy/root.js +4 -4
  403. package/dist/components/toast/anatomy/root.js.map +1 -1
  404. package/dist/components/toast/anatomy/title.d.ts +4 -4
  405. package/dist/components/toast/anatomy/title.d.ts.map +1 -1
  406. package/dist/components/toast/anatomy/title.js +4 -4
  407. package/dist/components/toast/anatomy/title.js.map +1 -1
  408. package/dist/components/toast/modules/anatomy.d.ts +14 -14
  409. package/dist/components/toast/modules/anatomy.d.ts.map +1 -1
  410. package/dist/components/toast/modules/anatomy.js +14 -14
  411. package/dist/components/toast/modules/anatomy.js.map +1 -1
  412. package/dist/components/toast/modules/group-context.js.map +1 -1
  413. package/dist/components/toast/modules/root-context.js.map +1 -1
  414. package/dist/components/tooltip/anatomy/arrow-tip.d.ts +11 -0
  415. package/dist/components/tooltip/anatomy/arrow-tip.d.ts.map +1 -0
  416. package/dist/components/tooltip/anatomy/arrow-tip.js +20 -0
  417. package/dist/components/tooltip/anatomy/arrow-tip.js.map +1 -0
  418. package/dist/components/tooltip/anatomy/arrow.d.ts +11 -0
  419. package/dist/components/tooltip/anatomy/arrow.d.ts.map +1 -0
  420. package/dist/components/tooltip/anatomy/arrow.js +20 -0
  421. package/dist/components/tooltip/anatomy/arrow.js.map +1 -0
  422. package/dist/components/tooltip/anatomy/content.d.ts +11 -0
  423. package/dist/components/tooltip/anatomy/content.d.ts.map +1 -0
  424. package/dist/components/tooltip/anatomy/content.js +20 -0
  425. package/dist/components/tooltip/anatomy/content.js.map +1 -0
  426. package/dist/components/tooltip/anatomy/positioner.d.ts +10 -0
  427. package/dist/components/tooltip/anatomy/positioner.d.ts.map +1 -0
  428. package/dist/components/tooltip/anatomy/positioner.js +20 -0
  429. package/dist/components/tooltip/anatomy/positioner.js.map +1 -0
  430. package/dist/components/tooltip/anatomy/root-context.d.ts +11 -0
  431. package/dist/components/tooltip/anatomy/root-context.d.ts.map +1 -0
  432. package/dist/components/tooltip/anatomy/root-context.js +13 -0
  433. package/dist/components/tooltip/anatomy/root-context.js.map +1 -0
  434. package/dist/components/tooltip/anatomy/root-provider.d.ts +12 -0
  435. package/dist/components/tooltip/anatomy/root-provider.d.ts.map +1 -0
  436. package/dist/components/tooltip/anatomy/root-provider.js +15 -0
  437. package/dist/components/tooltip/anatomy/root-provider.js.map +1 -0
  438. package/dist/components/tooltip/anatomy/root.d.ts +10 -0
  439. package/dist/components/tooltip/anatomy/root.d.ts.map +1 -0
  440. package/dist/components/tooltip/anatomy/root.js +19 -0
  441. package/dist/components/tooltip/anatomy/root.js.map +1 -0
  442. package/dist/components/tooltip/anatomy/trigger.d.ts +11 -0
  443. package/dist/components/tooltip/anatomy/trigger.d.ts.map +1 -0
  444. package/dist/components/tooltip/anatomy/trigger.js +20 -0
  445. package/dist/components/tooltip/anatomy/trigger.js.map +1 -0
  446. package/dist/components/tooltip/index.js +4 -0
  447. package/dist/components/tooltip/modules/anatomy.d.ts +22 -0
  448. package/dist/components/tooltip/modules/anatomy.d.ts.map +1 -0
  449. package/dist/components/tooltip/modules/anatomy.js +23 -0
  450. package/dist/components/tooltip/modules/anatomy.js.map +1 -0
  451. package/dist/components/tooltip/modules/root-context.js +8 -0
  452. package/dist/components/tooltip/modules/root-context.js.map +1 -0
  453. package/dist/components/tooltip/modules/use-tooltip.d.ts +8 -0
  454. package/dist/components/tooltip/modules/use-tooltip.d.ts.map +1 -0
  455. package/dist/components/tooltip/modules/use-tooltip.js +16 -0
  456. package/dist/components/tooltip/modules/use-tooltip.js.map +1 -0
  457. package/dist/index.d.ts +41 -5
  458. package/dist/index.js +10 -1
  459. package/dist/internal/components/x.js +8 -3
  460. package/dist/internal/components/x.js.map +1 -1
  461. package/dist/internal/create-context.js +1 -1
  462. package/dist/internal/create-context.js.map +1 -1
  463. package/dist/internal/props-with-element.d.ts.map +1 -1
  464. package/package.json +29 -25
  465. package/dist/components/accordion/anatomy/content.d.ts +0 -12
  466. package/dist/components/accordion/anatomy/content.d.ts.map +0 -1
  467. package/dist/components/accordion/anatomy/content.js.map +0 -1
  468. package/dist/components/accordion/anatomy/heading.d.ts +0 -19
  469. package/dist/components/accordion/anatomy/heading.d.ts.map +0 -1
  470. package/dist/components/accordion/anatomy/heading.js.map +0 -1
  471. package/dist/components/accordion/anatomy/indicator.d.ts +0 -12
  472. package/dist/components/accordion/anatomy/indicator.d.ts.map +0 -1
  473. package/dist/components/accordion/anatomy/indicator.js.map +0 -1
  474. package/dist/components/accordion/anatomy/trigger.d.ts +0 -12
  475. package/dist/components/accordion/anatomy/trigger.d.ts.map +0 -1
  476. package/dist/components/accordion/anatomy/trigger.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { normalizeProps, useMachine } from "@zag-js/react";
2
1
  import { useId } from "react";
2
+ import { normalizeProps, useMachine } from "@zag-js/react";
3
3
  import { connect, machine } from "@zag-js/rating-group";
4
4
 
5
5
  //#region src/components/rating-group/modules/use-rating-group.ts
6
- function useRatingGroup(props) {
6
+ function useRatingGroup(props = {}) {
7
7
  const service = useMachine(machine, {
8
8
  id: useId(),
9
9
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"use-rating-group.js","names":[],"sources":["../../../../src/components/rating-group/modules/use-rating-group.ts"],"sourcesContent":["import { type Api, connect, machine, type Props } from '@zag-js/rating-group';\nimport { normalizeProps, useMachine } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useRatingGroup(props: Omit<Props, 'id'>): Api {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAIA,SAAgB,eAAe,OAA+B;CAC7D,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
1
+ {"version":3,"file":"use-rating-group.js","names":[],"sources":["../../../../src/components/rating-group/modules/use-rating-group.ts"],"sourcesContent":["import { connect, machine } from '@zag-js/rating-group';\nimport type { Api, Props } from '@zag-js/rating-group';\nimport { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { useId } from 'react';\n\nexport function useRatingGroup(props: Omit<Props, 'id'> = {}): Api<PropTypes> {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAKA,SAAgB,eAAe,QAA2B,EAAE,EAAkB;CAC7E,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react49 from "react";
4
- import * as react_jsx_runtime14 from "react/jsx-runtime";
3
+ import * as react144 from "react";
4
+ import * as react_jsx_runtime43 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/switch/anatomy/control.d.ts
7
7
  interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
8
- declare function SwitchControl(props: SwitchControlProps): string | number | bigint | boolean | Iterable<react49.ReactNode> | Promise<string | number | bigint | boolean | react49.ReactPortal | react49.ReactElement<unknown, string | react49.JSXElementConstructor<any>> | Iterable<react49.ReactNode> | null | undefined> | react_jsx_runtime14.JSX.Element | null | undefined;
8
+ declare function Control(props: SwitchControlProps): string | number | bigint | boolean | Iterable<react144.ReactNode> | Promise<string | number | bigint | boolean | react144.ReactPortal | react144.ReactElement<unknown, string | react144.JSXElementConstructor<any>> | Iterable<react144.ReactNode> | null | undefined> | react_jsx_runtime43.JSX.Element | null | undefined;
9
9
  //#endregion
10
- export { SwitchControl, SwitchControlProps };
10
+ export { Control, SwitchControlProps };
11
11
  //# sourceMappingURL=control.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/control.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,kBAAA,SAA2B,0BAA0B;iBAE9C,aAAA,QAAqB,0DAAkB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"control.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/control.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,kBAAA,SAA2B,0BAA0B;iBAE9C,OAAA,QAAe,0DAAkB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,11 +1,11 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { classesSwitch } from "@skeletonlabs/skeleton-common";
3
- import { mergeProps } from "@zag-js/react";
4
2
  import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesSwitch } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/control.tsx
8
- function SwitchControl(props) {
8
+ function Control(props) {
9
9
  const switch_ = use(SwitchRootContext);
10
10
  const { element, children,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getControlProps(), rest, { className: classesSwitch.control });
@@ -16,5 +16,5 @@ function SwitchControl(props) {
16
16
  }
17
17
 
18
18
  //#endregion
19
- export { SwitchControl as default };
19
+ export { Control as default };
20
20
  //# sourceMappingURL=control.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.js","names":[],"sources":["../../../../src/components/switch/anatomy/control.tsx"],"sourcesContent":["import { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function SwitchControl(props: SwitchControlProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getControlProps(), rest, {\n\t\tclassName: classesSwitch.control,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,cAAc,OAA2B;CAChE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,iBAAiB,EAAE,MAAM,EAC9D,WAAW,cAAc,SACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
1
+ {"version":3,"file":"control.js","names":[],"sources":["../../../../src/components/switch/anatomy/control.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SwitchControlProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Control(props: SwitchControlProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getControlProps(), rest, {\n\t\tclassName: classesSwitch.control,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,QAAQ,OAA2B;CAC1D,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,iBAAiB,EAAE,MAAM,EAC9D,WAAW,cAAc,SACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react54 from "react";
4
- import * as react_jsx_runtime15 from "react/jsx-runtime";
3
+ import * as react149 from "react";
4
+ import * as react_jsx_runtime44 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/switch/anatomy/hidden-input.d.ts
7
7
  interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}
8
- declare function SwitchHiddenInput(props: SwitchHiddenInputProps): string | number | bigint | boolean | Iterable<react54.ReactNode> | Promise<string | number | bigint | boolean | react54.ReactPortal | react54.ReactElement<unknown, string | react54.JSXElementConstructor<any>> | Iterable<react54.ReactNode> | null | undefined> | react_jsx_runtime15.JSX.Element | null | undefined;
8
+ declare function HiddenInput(props: SwitchHiddenInputProps): string | number | bigint | boolean | Iterable<react149.ReactNode> | Promise<string | number | bigint | boolean | react149.ReactPortal | react149.ReactElement<unknown, string | react149.JSXElementConstructor<any>> | Iterable<react149.ReactNode> | null | undefined> | react_jsx_runtime44.JSX.Element | null | undefined;
9
9
  //#endregion
10
- export { SwitchHiddenInput, SwitchHiddenInputProps };
10
+ export { HiddenInput, SwitchHiddenInputProps };
11
11
  //# sourceMappingURL=hidden-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hidden-input.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,sBAAA,SAA+B,2BAA2B;iBAEnD,iBAAA,QAAyB,8DAAsB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"hidden-input.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,sBAAA,SAA+B,2BAA2B;iBAEnD,WAAA,QAAmB,8DAAsB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,11 +1,11 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { classesSwitch } from "@skeletonlabs/skeleton-common";
3
- import { mergeProps } from "@zag-js/react";
4
2
  import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesSwitch } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/hidden-input.tsx
8
- function SwitchHiddenInput(props) {
8
+ function HiddenInput(props) {
9
9
  const switch_ = use(SwitchRootContext);
10
10
  const { element,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getHiddenInputProps(), rest, { className: classesSwitch.hiddenInput });
@@ -13,5 +13,5 @@ function SwitchHiddenInput(props) {
13
13
  }
14
14
 
15
15
  //#endregion
16
- export { SwitchHiddenInput as default };
16
+ export { HiddenInput as default };
17
17
  //# sourceMappingURL=hidden-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hidden-input.js","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.tsx"],"sourcesContent":["import { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}\n\nexport default function SwitchHiddenInput(props: SwitchHiddenInputProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getHiddenInputProps(), rest, {\n\t\tclassName: classesSwitch.hiddenInput,\n\t});\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,kBAAkB,OAA+B;CACxE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,QAAQ,qBAAqB,EAAE,MAAM,EAClE,WAAW,cAAc,aACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,GAAI,aAAc"}
1
+ {"version":3,"file":"hidden-input.js","names":[],"sources":["../../../../src/components/switch/anatomy/hidden-input.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SwitchHiddenInputProps extends PropsWithElement<'input'>, HTMLAttributes<'input', 'children'> {}\n\nexport default function HiddenInput(props: SwitchHiddenInputProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getHiddenInputProps(), rest, {\n\t\tclassName: classesSwitch.hiddenInput,\n\t});\n\n\treturn element ? element(attributes) : <input {...attributes} />;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,YAAY,OAA+B;CAClE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,QAAQ,qBAAqB,EAAE,MAAM,EAClE,WAAW,cAAc,aACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,WAAM,GAAI,aAAc"}
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react59 from "react";
4
- import * as react_jsx_runtime16 from "react/jsx-runtime";
3
+ import * as react154 from "react";
4
+ import * as react_jsx_runtime45 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/switch/anatomy/label.d.ts
7
7
  interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
8
- declare function SwitchLabel(props: SwitchLabelProps): string | number | bigint | boolean | Iterable<react59.ReactNode> | Promise<string | number | bigint | boolean | react59.ReactPortal | react59.ReactElement<unknown, string | react59.JSXElementConstructor<any>> | Iterable<react59.ReactNode> | null | undefined> | react_jsx_runtime16.JSX.Element | null | undefined;
8
+ declare function Label(props: SwitchLabelProps): string | number | bigint | boolean | Iterable<react154.ReactNode> | Promise<string | number | bigint | boolean | react154.ReactPortal | react154.ReactElement<unknown, string | react154.JSXElementConstructor<any>> | Iterable<react154.ReactNode> | null | undefined> | react_jsx_runtime45.JSX.Element | null | undefined;
9
9
  //#endregion
10
- export { SwitchLabel, SwitchLabelProps };
10
+ export { Label, SwitchLabelProps };
11
11
  //# sourceMappingURL=label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,gBAAA,SAAyB,0BAA0B;iBAE5C,WAAA,QAAmB,wDAAgB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/label.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,gBAAA,SAAyB,0BAA0B;iBAE5C,KAAA,QAAa,wDAAgB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,11 +1,11 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { classesSwitch } from "@skeletonlabs/skeleton-common";
3
- import { mergeProps } from "@zag-js/react";
4
2
  import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesSwitch } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/label.tsx
8
- function SwitchLabel(props) {
8
+ function Label(props) {
9
9
  const switch_ = use(SwitchRootContext);
10
10
  const { element, children,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getLabelProps(), rest, { className: classesSwitch.label });
@@ -16,5 +16,5 @@ function SwitchLabel(props) {
16
16
  }
17
17
 
18
18
  //#endregion
19
- export { SwitchLabel as default };
19
+ export { Label as default };
20
20
  //# sourceMappingURL=label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/switch/anatomy/label.tsx"],"sourcesContent":["import { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function SwitchLabel(props: SwitchLabelProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getLabelProps(), rest, {\n\t\tclassName: classesSwitch.label,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
1
+ {"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/switch/anatomy/label.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SwitchLabelProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Label(props: SwitchLabelProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getLabelProps(), rest, {\n\t\tclassName: classesSwitch.label,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAAyB;CACtD,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
@@ -5,7 +5,7 @@ import { ReactNode } from "react";
5
5
  interface SwitchRootContextProps {
6
6
  children: (switch_: ReturnType<typeof useSwitch>) => ReactNode;
7
7
  }
8
- declare function SwitchRootContextComponent(props: SwitchRootContextProps): ReactNode;
8
+ declare function RootContext(props: SwitchRootContextProps): ReactNode;
9
9
  //#endregion
10
- export { SwitchRootContextComponent, SwitchRootContextProps };
10
+ export { RootContext, SwitchRootContextProps };
11
11
  //# sourceMappingURL=root-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,sBAAA;sBACI,kBAAkB,eAAe;AADtD;AAAuC,iBAIf,0BAAA,CAJe,KAAA,EAImB,sBAJnB,CAAA,EAIyC,SAJzC"}
1
+ {"version":3,"file":"root-context.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,sBAAA;sBACI,kBAAkB,eAAe;AADtD;AAAuC,iBAIf,WAAA,CAJe,KAAA,EAII,sBAJJ,CAAA,EAI0B,SAJ1B"}
@@ -2,12 +2,12 @@ import { SwitchRootContext } from "../modules/root-context.js";
2
2
  import { use } from "react";
3
3
 
4
4
  //#region src/components/switch/anatomy/root-context.tsx
5
- function SwitchRootContextComponent(props) {
5
+ function RootContext(props) {
6
6
  const switch_ = use(SwitchRootContext);
7
7
  const { children } = props;
8
8
  return children(switch_);
9
9
  }
10
10
 
11
11
  //#endregion
12
- export { SwitchRootContextComponent as default };
12
+ export { RootContext as default };
13
13
  //# sourceMappingURL=root-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":["import { type ReactNode, use } from 'react';\n\nimport { SwitchRootContext } from '../modules/root-context';\nimport type { useSwitch } from '../modules/use-switch';\n\nexport interface SwitchRootContextProps {\n\tchildren: (switch_: ReturnType<typeof useSwitch>) => ReactNode;\n}\n\nexport default function SwitchRootContextComponent(props: SwitchRootContextProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { children } = props;\n\n\treturn children(switch_);\n}\n"],"mappings":";;;;AASA,SAAwB,2BAA2B,OAA+B;CACjF,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,QAAQ"}
1
+ {"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/anatomy/root-context.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { useSwitch } from '../modules/use-switch';\nimport { use } from 'react';\nimport type { ReactNode } from 'react';\n\nexport interface SwitchRootContextProps {\n\tchildren: (switch_: ReturnType<typeof useSwitch>) => ReactNode;\n}\n\nexport default function RootContext(props: SwitchRootContextProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { children } = props;\n\n\treturn children(switch_);\n}\n"],"mappings":";;;;AASA,SAAwB,YAAY,OAA+B;CAClE,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,aAAa;AAErB,QAAO,SAAS,QAAQ"}
@@ -1,12 +1,13 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
3
  import { useSwitch } from "../modules/use-switch.js";
4
- import "react/jsx-runtime";
4
+ import * as react_jsx_runtime46 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/switch/anatomy/root-provider.d.ts
7
7
  interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {
8
8
  value: ReturnType<typeof useSwitch>;
9
9
  }
10
+ declare function RootProvider(props: SwitchRootProviderProps): react_jsx_runtime46.JSX.Element;
10
11
  //#endregion
11
- export { SwitchRootProviderProps };
12
+ export { RootProvider, SwitchRootProviderProps };
12
13
  //# sourceMappingURL=root-provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,uBAAA,SAAgC,2BAA2B;SACpE,kBAAkB"}
1
+ {"version":3,"file":"root-provider.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root-provider.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,uBAAA,SAAgC,2BAA2B;SACpE,kBAAkB;;AADT,iBAIO,YAAA,CAJiB,KAAA,EAIG,uBAJH,CAAA,EAI0B,mBAAA,CAAA,GAAA,CAAA,OAJ1B"}
@@ -0,0 +1,21 @@
1
+ import { SwitchRootContext } from "../modules/root-context.js";
2
+ import { mergeProps } from "@zag-js/react";
3
+ import { classesSwitch } from "@skeletonlabs/skeleton-common";
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ //#region src/components/switch/anatomy/root-provider.tsx
7
+ function RootProvider(props) {
8
+ const { element, children, value: switch_,...rest } = props;
9
+ const attributes = mergeProps(switch_.getRootProps(), rest, { className: classesSwitch.root });
10
+ return /* @__PURE__ */ jsx(SwitchRootContext.Provider, {
11
+ value: switch_,
12
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
13
+ ...attributes,
14
+ children
15
+ })
16
+ });
17
+ }
18
+
19
+ //#endregion
20
+ export { RootProvider as default };
21
+ //# sourceMappingURL=root-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root-provider.js","names":[],"sources":["../../../../src/components/switch/anatomy/root-provider.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { useSwitch } from '../modules/use-switch';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\n\nexport interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {\n\tvalue: ReturnType<typeof useSwitch>;\n}\n\nexport default function RootProvider(props: SwitchRootProviderProps) {\n\tconst { element, children, value: switch_, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getRootProps(), rest, {\n\t\tclassName: classesSwitch.root,\n\t});\n\n\treturn (\n\t\t<SwitchRootContext.Provider value={switch_}>\n\t\t\t{element ? element(attributes) : <label {...attributes}>{children}</label>}\n\t\t</SwitchRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;AAWA,SAAwB,aAAa,OAAgC;CACpE,MAAM,EAAE,SAAS,UAAU,OAAO,QAAS,GAAG,SAAS;CAEvD,MAAM,aAAa,WAAW,QAAQ,cAAc,EAAE,MAAM,EAC3D,WAAW,cAAc,MACzB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GAC9C"}
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react_jsx_runtime48 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime76 from "react/jsx-runtime";
4
4
  import { Props } from "@zag-js/switch";
5
5
 
6
6
  //#region src/components/switch/anatomy/root.d.ts
7
7
  interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}
8
- declare function SwitchRoot(props: SwitchRootProps): react_jsx_runtime48.JSX.Element;
8
+ declare function Root(props: SwitchRootProps): react_jsx_runtime76.JSX.Element;
9
9
  //#endregion
10
- export { SwitchRoot };
10
+ export { Root };
11
11
  //# sourceMappingURL=root.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UAUiB,eAAA,SAAwB,KAAK,cAAc,2BAA2B;iBAE/D,UAAA,QAAkB,kBAAe,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"root.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,eAAA,SAAwB,KAAK,cAAc,2BAA2B;iBAE/D,IAAA,QAAY,kBAAe,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
2
  import { useSwitch } from "../modules/use-switch.js";
3
- import { classesSwitch } from "@skeletonlabs/skeleton-common";
4
3
  import { mergeProps } from "@zag-js/react";
4
+ import { classesSwitch } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { splitProps } from "@zag-js/switch";
7
7
 
8
8
  //#region src/components/switch/anatomy/root.tsx
9
- function SwitchRoot(props) {
9
+ function Root(props) {
10
10
  const [switchProps, componentProps] = splitProps(props);
11
11
  const { element, children,...rest } = componentProps;
12
12
  const switch_ = useSwitch(switchProps);
@@ -21,5 +21,5 @@ function SwitchRoot(props) {
21
21
  }
22
22
 
23
23
  //#endregion
24
- export { SwitchRoot as default };
24
+ export { Root as default };
25
25
  //# sourceMappingURL=root.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":["import { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { type Props, splitProps } from '@zag-js/switch';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { SwitchRootContext } from '../modules/root-context';\nimport { useSwitch } from '../modules/use-switch';\n\nexport interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}\n\nexport default function SwitchRoot(props: SwitchRootProps) {\n\tconst [switchProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst switch_ = useSwitch(switchProps);\n\n\tconst attributes = mergeProps(switch_.getRootProps(), rest, {\n\t\tclassName: classesSwitch.root,\n\t});\n\n\treturn (\n\t\t<SwitchRootContext.Provider value={switch_}>\n\t\t\t{element ? element(attributes) : <label {...attributes}>{children}</label>}\n\t\t</SwitchRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,WAAW,OAAwB;CAC1D,MAAM,CAAC,aAAa,kBAAkB,WAAW,MAAM;CACvD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,UAAU,UAAU,YAAY;CAEtC,MAAM,aAAa,WAAW,QAAQ,cAAc,EAAE,MAAM,EAC3D,WAAW,cAAc,MACzB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GAC9C"}
1
+ {"version":3,"file":"root.js","names":[],"sources":["../../../../src/components/switch/anatomy/root.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport { useSwitch } from '../modules/use-switch';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { splitProps } from '@zag-js/switch';\nimport type { Props } from '@zag-js/switch';\n\nexport interface SwitchRootProps extends Omit<Props, 'id'>, PropsWithElement<'label'>, HTMLAttributes<'label', 'id' | 'dir'> {}\n\nexport default function Root(props: SwitchRootProps) {\n\tconst [switchProps, componentProps] = splitProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst switch_ = useSwitch(switchProps);\n\n\tconst attributes = mergeProps(switch_.getRootProps(), rest, {\n\t\tclassName: classesSwitch.root,\n\t});\n\n\treturn (\n\t\t<SwitchRootContext.Provider value={switch_}>\n\t\t\t{element ? element(attributes) : <label {...attributes}>{children}</label>}\n\t\t</SwitchRootContext.Provider>\n\t);\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,KAAK,OAAwB;CACpD,MAAM,CAAC,aAAa,kBAAkB,WAAW,MAAM;CACvD,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,UAAU,UAAU,YAAY;CAEtC,MAAM,aAAa,WAAW,QAAQ,cAAc,EAAE,MAAM,EAC3D,WAAW,cAAc,MACzB,CAAC;AAEF,QACC,oBAAC,kBAAkB;EAAS,OAAO;YACjC,UAAU,QAAQ,WAAW,GAAG,oBAAC;GAAM,GAAI;GAAa;IAAiB;GAC9C"}
@@ -1,11 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react64 from "react";
4
- import * as react_jsx_runtime18 from "react/jsx-runtime";
3
+ import * as react159 from "react";
4
+ import * as react_jsx_runtime47 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/switch/anatomy/thumb.d.ts
7
7
  interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}
8
- declare function SwitchThumb(props: SwitchThumbProps): string | number | bigint | boolean | Iterable<react64.ReactNode> | Promise<string | number | bigint | boolean | react64.ReactPortal | react64.ReactElement<unknown, string | react64.JSXElementConstructor<any>> | Iterable<react64.ReactNode> | null | undefined> | react_jsx_runtime18.JSX.Element | null | undefined;
8
+ declare function Thumb(props: SwitchThumbProps): string | number | bigint | boolean | Iterable<react159.ReactNode> | Promise<string | number | bigint | boolean | react159.ReactPortal | react159.ReactElement<unknown, string | react159.JSXElementConstructor<any>> | Iterable<react159.ReactNode> | null | undefined> | react_jsx_runtime47.JSX.Element | null | undefined;
9
9
  //#endregion
10
- export { SwitchThumb, SwitchThumbProps };
10
+ export { SwitchThumbProps, Thumb };
11
11
  //# sourceMappingURL=thumb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thumb.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,gBAAA,SAAyB,0BAA0B;iBAE5C,WAAA,QAAmB,wDAAgB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"thumb.d.ts","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":[],"mappings":";;;;;;UAOiB,gBAAA,SAAyB,0BAA0B;iBAE5C,KAAA,QAAa,wDAAgB,SAAA,QAAA,CAAA,SAAA,IAAA,6CAAA,QAAA,CAAA,WAAA,GAAA,QAAA,CAAA,+BAAA,QAAA,CAAA,8BAAA,SAAA,QAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,11 +1,11 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { classesSwitch } from "@skeletonlabs/skeleton-common";
3
- import { mergeProps } from "@zag-js/react";
4
2
  import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesSwitch } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/thumb.tsx
8
- function SwitchThumb(props) {
8
+ function Thumb(props) {
9
9
  const switch_ = use(SwitchRootContext);
10
10
  const { element, children,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getThumbProps(), rest, { className: classesSwitch.thumb });
@@ -16,5 +16,5 @@ function SwitchThumb(props) {
16
16
  }
17
17
 
18
18
  //#endregion
19
- export { SwitchThumb as default };
19
+ export { Thumb as default };
20
20
  //# sourceMappingURL=thumb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"thumb.js","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":["import { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { SwitchRootContext } from '../modules/root-context';\n\nexport interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function SwitchThumb(props: SwitchThumbProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getThumbProps(), rest, {\n\t\tclassName: classesSwitch.thumb,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
1
+ {"version":3,"file":"thumb.js","names":[],"sources":["../../../../src/components/switch/anatomy/thumb.tsx"],"sourcesContent":["import { SwitchRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesSwitch } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { use } from 'react';\n\nexport interface SwitchThumbProps extends PropsWithElement<'span'>, HTMLAttributes<'span'> {}\n\nexport default function Thumb(props: SwitchThumbProps) {\n\tconst switch_ = use(SwitchRootContext);\n\n\tconst { element, children, ...rest } = props;\n\n\tconst attributes = mergeProps(switch_.getThumbProps(), rest, {\n\t\tclassName: classesSwitch.thumb,\n\t});\n\n\treturn element ? element(attributes) : <span {...attributes}>{children}</span>;\n}\n"],"mappings":";;;;;;;AASA,SAAwB,MAAM,OAAyB;CACtD,MAAM,UAAU,IAAI,kBAAkB;CAEtC,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,QAAQ,eAAe,EAAE,MAAM,EAC5D,WAAW,cAAc,OACzB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAK,GAAI;EAAa;GAAgB"}
@@ -1,17 +1,19 @@
1
- import { SwitchControl } from "../anatomy/control.js";
2
- import { SwitchHiddenInput } from "../anatomy/hidden-input.js";
3
- import { SwitchLabel } from "../anatomy/label.js";
4
- import { SwitchRootContextComponent } from "../anatomy/root-context.js";
5
- import { SwitchThumb } from "../anatomy/thumb.js";
6
- import { SwitchRoot } from "../anatomy/root.js";
1
+ import { Control } from "../anatomy/control.js";
2
+ import { HiddenInput } from "../anatomy/hidden-input.js";
3
+ import { Label } from "../anatomy/label.js";
4
+ import { RootContext } from "../anatomy/root-context.js";
5
+ import { RootProvider } from "../anatomy/root-provider.js";
6
+ import { Thumb } from "../anatomy/thumb.js";
7
+ import { Root } from "../anatomy/root.js";
7
8
 
8
9
  //#region src/components/switch/modules/anatomy.d.ts
9
- declare const Switch: typeof SwitchRoot & {
10
- Context: typeof SwitchRootContextComponent;
11
- Control: typeof SwitchControl;
12
- Thumb: typeof SwitchThumb;
13
- Label: typeof SwitchLabel;
14
- HiddenInput: typeof SwitchHiddenInput;
10
+ declare const Switch: typeof Root & {
11
+ Provider: typeof RootProvider;
12
+ Context: typeof RootContext;
13
+ Control: typeof Control;
14
+ Thumb: typeof Thumb;
15
+ Label: typeof Label;
16
+ HiddenInput: typeof HiddenInput;
15
17
  };
16
18
  //#endregion
17
19
  export { Switch };
@@ -1 +1 @@
1
- {"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAOa,eAAM;;EAAN,OAAA,EAMX,oBAAA;EAAA,KAAA,EAAA,kBAAA;OANiB,EAAA,kBAAA"}
1
+ {"version":3,"file":"anatomy.d.ts","names":[],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAQa,eAAM;;EAAN,OAAA,EAOX,kBAAA;EAAA,OAAA,EAAA,cAAA;OAPiB,EAAA,YAAA"}
@@ -1,17 +1,19 @@
1
- import SwitchControl from "../anatomy/control.js";
2
- import SwitchHiddenInput from "../anatomy/hidden-input.js";
3
- import SwitchLabel from "../anatomy/label.js";
4
- import SwitchRoot from "../anatomy/root.js";
5
- import SwitchRootContextComponent from "../anatomy/root-context.js";
6
- import SwitchThumb from "../anatomy/thumb.js";
1
+ import Control from "../anatomy/control.js";
2
+ import HiddenInput from "../anatomy/hidden-input.js";
3
+ import Label from "../anatomy/label.js";
4
+ import Root from "../anatomy/root.js";
5
+ import RootContext from "../anatomy/root-context.js";
6
+ import RootProvider from "../anatomy/root-provider.js";
7
+ import Thumb from "../anatomy/thumb.js";
7
8
 
8
9
  //#region src/components/switch/modules/anatomy.ts
9
- const Switch = Object.assign(SwitchRoot, {
10
- Context: SwitchRootContextComponent,
11
- Control: SwitchControl,
12
- Thumb: SwitchThumb,
13
- Label: SwitchLabel,
14
- HiddenInput: SwitchHiddenInput
10
+ const Switch = Object.assign(Root, {
11
+ Provider: RootProvider,
12
+ Context: RootContext,
13
+ Control,
14
+ Thumb,
15
+ Label,
16
+ HiddenInput
15
17
  });
16
18
 
17
19
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"anatomy.js","names":["Root","RootContext","Control","Thumb","Label","HiddenInput"],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":["import Control from '../anatomy/control';\nimport HiddenInput from '../anatomy/hidden-input';\nimport Label from '../anatomy/label';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport Thumb from '../anatomy/thumb';\n\nexport const Switch = Object.assign(Root, {\n\tContext: RootContext,\n\tControl: Control,\n\tThumb: Thumb,\n\tLabel: Label,\n\tHiddenInput: HiddenInput,\n});\n"],"mappings":";;;;;;;;AAOA,MAAa,SAAS,OAAO,OAAOA,YAAM;CACzC,SAASC;CACT,SAASC;CACT,OAAOC;CACP,OAAOC;CACP,aAAaC;CACb,CAAC"}
1
+ {"version":3,"file":"anatomy.js","names":[],"sources":["../../../../src/components/switch/modules/anatomy.ts"],"sourcesContent":["import Control from '../anatomy/control';\nimport HiddenInput from '../anatomy/hidden-input';\nimport Label from '../anatomy/label';\nimport Root from '../anatomy/root';\nimport RootContext from '../anatomy/root-context';\nimport RootProvider from '../anatomy/root-provider';\nimport Thumb from '../anatomy/thumb';\n\nexport const Switch = Object.assign(Root, {\n\tProvider: RootProvider,\n\tContext: RootContext,\n\tControl: Control,\n\tThumb: Thumb,\n\tLabel: Label,\n\tHiddenInput: HiddenInput,\n});\n"],"mappings":";;;;;;;;;AAQA,MAAa,SAAS,OAAO,OAAO,MAAM;CACzC,UAAU;CACV,SAAS;CACA;CACF;CACA;CACM;CACb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/modules/root-context.ts"],"sourcesContent":["import { createContext } from '@/internal/create-context';\n\nimport type { useSwitch } from './use-switch';\n\nexport const SwitchRootContext = createContext<ReturnType<typeof useSwitch>>();\n"],"mappings":";;;AAIA,MAAa,oBAAoB,eAA6C"}
1
+ {"version":3,"file":"root-context.js","names":[],"sources":["../../../../src/components/switch/modules/root-context.ts"],"sourcesContent":["import type { useSwitch } from './use-switch';\nimport { createContext } from '@/internal/create-context';\n\nexport const SwitchRootContext = createContext<ReturnType<typeof useSwitch>>();\n"],"mappings":";;;AAGA,MAAa,oBAAoB,eAA6C"}
@@ -1,7 +1,8 @@
1
+ import { PropTypes } from "@zag-js/react";
1
2
  import { Api, Props } from "@zag-js/switch";
2
3
 
3
4
  //#region src/components/switch/modules/use-switch.d.ts
4
- declare function useSwitch(props: Omit<Props, 'id'>): Api;
5
+ declare function useSwitch(props?: Omit<Props, 'id'>): Api<PropTypes>;
5
6
  //#endregion
6
7
  export { useSwitch };
7
8
  //# sourceMappingURL=use-switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-switch.d.ts","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,SAAA,QAAiB,KAAK,eAAe"}
1
+ {"version":3,"file":"use-switch.d.ts","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":[],"mappings":";;;;iBAKgB,SAAA,SAAiB,KAAK,eAAoB,IAAI"}
@@ -1,9 +1,9 @@
1
- import { normalizeProps, useMachine } from "@zag-js/react";
2
1
  import { useId } from "react";
2
+ import { normalizeProps, useMachine } from "@zag-js/react";
3
3
  import { connect, machine } from "@zag-js/switch";
4
4
 
5
5
  //#region src/components/switch/modules/use-switch.ts
6
- function useSwitch(props) {
6
+ function useSwitch(props = {}) {
7
7
  const service = useMachine(machine, {
8
8
  id: useId(),
9
9
  ...props
@@ -1 +1 @@
1
- {"version":3,"file":"use-switch.js","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":["import { normalizeProps, useMachine } from '@zag-js/react';\nimport { type Api, connect, machine, type Props } from '@zag-js/switch';\nimport { useId } from 'react';\n\nexport function useSwitch(props: Omit<Props, 'id'>): Api {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAIA,SAAgB,UAAU,OAA+B;CACxD,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
1
+ {"version":3,"file":"use-switch.js","names":[],"sources":["../../../../src/components/switch/modules/use-switch.ts"],"sourcesContent":["import { normalizeProps, useMachine, type PropTypes } from '@zag-js/react';\nimport { connect, machine } from '@zag-js/switch';\nimport type { Api, Props } from '@zag-js/switch';\nimport { useId } from 'react';\n\nexport function useSwitch(props: Omit<Props, 'id'> = {}): Api<PropTypes> {\n\tconst service = useMachine(machine, {\n\t\tid: useId(),\n\t\t...props,\n\t});\n\treturn connect(service, normalizeProps);\n}\n"],"mappings":";;;;;AAKA,SAAgB,UAAU,QAA2B,EAAE,EAAkB;CACxE,MAAM,UAAU,WAAW,SAAS;EACnC,IAAI,OAAO;EACX,GAAG;EACH,CAAC;AACF,QAAO,QAAQ,SAAS,eAAe"}
@@ -1,12 +1,12 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react79 from "react";
4
- import * as react_jsx_runtime23 from "react/jsx-runtime";
3
+ import * as react0 from "react";
4
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
5
  import { ContentProps } from "@zag-js/tabs";
6
6
 
7
7
  //#region src/components/tabs/anatomy/content.d.ts
8
8
  interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}
9
- declare function TabsContent(props: TabsContentProps): string | number | bigint | boolean | Iterable<react79.ReactNode> | Promise<string | number | bigint | boolean | react79.ReactPortal | react79.ReactElement<unknown, string | react79.JSXElementConstructor<any>> | Iterable<react79.ReactNode> | null | undefined> | react_jsx_runtime23.JSX.Element | null | undefined;
9
+ declare function Content(props: TabsContentProps): string | number | bigint | boolean | Iterable<react0.ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<react0.ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
10
10
  //#endregion
11
- export { TabsContent, TabsContentProps };
11
+ export { Content, TabsContentProps };
12
12
  //# sourceMappingURL=content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAUiB,gBAAA,SAAyB,cAAc,yBAAyB;iBAEzD,WAAA,QAAmB,wDAAgB,SAAA,OAAA,CAAA,SAAA,IAAA,6CAAA,OAAA,CAAA,WAAA,GAAA,OAAA,CAAA,+BAAA,OAAA,CAAA,8BAAA,SAAA,OAAA,CAAA,SAAA,wBAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":[],"mappings":";;;;;;;UASiB,gBAAA,SAAyB,cAAc,yBAAyB;iBAEzD,OAAA,QAAe,wDAAgB,SAAA,MAAA,CAAA,SAAA,IAAA,6CAAA,MAAA,CAAA,WAAA,GAAA,MAAA,CAAA,+BAAA,MAAA,CAAA,8BAAA,SAAA,MAAA,CAAA,SAAA,wBAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,12 +1,12 @@
1
1
  import { TabsRootContext } from "../modules/root-context.js";
2
- import { classesTabs } from "@skeletonlabs/skeleton-common";
3
- import { mergeProps } from "@zag-js/react";
4
2
  import { use } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { classesTabs } from "@skeletonlabs/skeleton-common";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { splitContentProps } from "@zag-js/tabs";
7
7
 
8
8
  //#region src/components/tabs/anatomy/content.tsx
9
- function TabsContent(props) {
9
+ function Content(props) {
10
10
  const tabs = use(TabsRootContext);
11
11
  const [contentProps, componentProps] = splitContentProps(props);
12
12
  const { element, children,...rest } = componentProps;
@@ -18,5 +18,5 @@ function TabsContent(props) {
18
18
  }
19
19
 
20
20
  //#endregion
21
- export { TabsContent as default };
21
+ export { Content as default };
22
22
  //# sourceMappingURL=content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":["import { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { type ContentProps, splitContentProps } from '@zag-js/tabs';\nimport { use } from 'react';\n\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\n\nimport { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function TabsContent(props: TabsContentProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst [contentProps, componentProps] = splitContentProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(tabs.getContentProps(contentProps), rest, {\n\t\tclassName: classesTabs.content,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAYA,SAAwB,YAAY,OAAyB;CAC5D,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,CAAC,cAAc,kBAAkB,kBAAkB,MAAM;CAC/D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,gBAAgB,aAAa,EAAE,MAAM,EACvE,WAAW,YAAY,SACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}
1
+ {"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/tabs/anatomy/content.tsx"],"sourcesContent":["import { TabsRootContext } from '../modules/root-context';\nimport type { HTMLAttributes } from '@/internal/html-attributes';\nimport type { PropsWithElement } from '@/internal/props-with-element';\nimport { classesTabs } from '@skeletonlabs/skeleton-common';\nimport { mergeProps } from '@zag-js/react';\nimport { splitContentProps } from '@zag-js/tabs';\nimport type { ContentProps } from '@zag-js/tabs';\nimport { use } from 'react';\n\nexport interface TabsContentProps extends ContentProps, PropsWithElement<'div'>, HTMLAttributes<'div'> {}\n\nexport default function Content(props: TabsContentProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst [contentProps, componentProps] = splitContentProps(props);\n\tconst { element, children, ...rest } = componentProps;\n\n\tconst attributes = mergeProps(tabs.getContentProps(contentProps), rest, {\n\t\tclassName: classesTabs.content,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}>{children}</div>;\n}\n"],"mappings":";;;;;;;;AAWA,SAAwB,QAAQ,OAAyB;CACxD,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,CAAC,cAAc,kBAAkB,kBAAkB,MAAM;CAC/D,MAAM,EAAE,SAAS,SAAU,GAAG,SAAS;CAEvC,MAAM,aAAa,WAAW,KAAK,gBAAgB,aAAa,EAAE,MAAM,EACvE,WAAW,YAAY,SACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC;EAAI,GAAI;EAAa;GAAe"}