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

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 (332) hide show
  1. package/dist/components/accordion/anatomy/content.d.ts +5 -4
  2. package/dist/components/accordion/anatomy/content.d.ts.map +1 -0
  3. package/dist/components/accordion/anatomy/content.js +8 -7
  4. package/dist/components/accordion/anatomy/content.js.map +1 -0
  5. package/dist/components/accordion/anatomy/heading.d.ts +5 -4
  6. package/dist/components/accordion/anatomy/heading.d.ts.map +1 -0
  7. package/dist/components/accordion/anatomy/heading.js +4 -3
  8. package/dist/components/accordion/anatomy/heading.js.map +1 -0
  9. package/dist/components/accordion/anatomy/indicator.d.ts +5 -4
  10. package/dist/components/accordion/anatomy/indicator.d.ts.map +1 -0
  11. package/dist/components/accordion/anatomy/indicator.js +8 -7
  12. package/dist/components/accordion/anatomy/indicator.js.map +1 -0
  13. package/dist/components/accordion/anatomy/item.d.ts +5 -4
  14. package/dist/components/accordion/anatomy/item.d.ts.map +1 -0
  15. package/dist/components/accordion/anatomy/item.js +8 -7
  16. package/dist/components/accordion/anatomy/item.js.map +1 -0
  17. package/dist/components/accordion/anatomy/root-context.d.ts +3 -2
  18. package/dist/components/accordion/anatomy/root-context.d.ts.map +1 -0
  19. package/dist/components/accordion/anatomy/root-context.js +5 -4
  20. package/dist/components/accordion/anatomy/root-context.js.map +1 -0
  21. package/dist/components/accordion/anatomy/root-provider.d.ts +2 -1
  22. package/dist/components/accordion/anatomy/root-provider.d.ts.map +1 -0
  23. package/dist/components/accordion/anatomy/root.d.ts +4 -3
  24. package/dist/components/accordion/anatomy/root.d.ts.map +1 -0
  25. package/dist/components/accordion/anatomy/root.js +5 -4
  26. package/dist/components/accordion/anatomy/root.js.map +1 -0
  27. package/dist/components/accordion/anatomy/trigger.d.ts +5 -4
  28. package/dist/components/accordion/anatomy/trigger.d.ts.map +1 -0
  29. package/dist/components/accordion/anatomy/trigger.js +8 -7
  30. package/dist/components/accordion/anatomy/trigger.js.map +1 -0
  31. package/dist/components/accordion/modules/anatomy.d.ts +16 -15
  32. package/dist/components/accordion/modules/anatomy.d.ts.map +1 -0
  33. package/dist/components/accordion/modules/anatomy.js +16 -15
  34. package/dist/components/accordion/modules/anatomy.js.map +1 -0
  35. package/dist/components/accordion/modules/item-context.js +2 -1
  36. package/dist/components/accordion/modules/item-context.js.map +1 -0
  37. package/dist/components/accordion/modules/root-context.js +2 -1
  38. package/dist/components/accordion/modules/root-context.js.map +1 -0
  39. package/dist/components/accordion/modules/use-accordion.d.ts +4 -5
  40. package/dist/components/accordion/modules/use-accordion.d.ts.map +1 -0
  41. package/dist/components/accordion/modules/use-accordion.js +3 -2
  42. package/dist/components/accordion/modules/use-accordion.js.map +1 -0
  43. package/dist/components/avatar/anatomy/fallback.d.ts +5 -4
  44. package/dist/components/avatar/anatomy/fallback.d.ts.map +1 -0
  45. package/dist/components/avatar/anatomy/fallback.js +6 -5
  46. package/dist/components/avatar/anatomy/fallback.js.map +1 -0
  47. package/dist/components/avatar/anatomy/image.d.ts +5 -4
  48. package/dist/components/avatar/anatomy/image.d.ts.map +1 -0
  49. package/dist/components/avatar/anatomy/image.js +6 -5
  50. package/dist/components/avatar/anatomy/image.js.map +1 -0
  51. package/dist/components/avatar/anatomy/root-context.d.ts +3 -2
  52. package/dist/components/avatar/anatomy/root-context.d.ts.map +1 -0
  53. package/dist/components/avatar/anatomy/root-context.js +5 -4
  54. package/dist/components/avatar/anatomy/root-context.js.map +1 -0
  55. package/dist/components/avatar/anatomy/root-provider.d.ts +2 -1
  56. package/dist/components/avatar/anatomy/root-provider.d.ts.map +1 -0
  57. package/dist/components/avatar/anatomy/root.d.ts +4 -3
  58. package/dist/components/avatar/anatomy/root.d.ts.map +1 -0
  59. package/dist/components/avatar/anatomy/root.js +4 -3
  60. package/dist/components/avatar/anatomy/root.js.map +1 -0
  61. package/dist/components/avatar/index.js +1 -0
  62. package/dist/components/avatar/modules/anatomy.d.ts +10 -9
  63. package/dist/components/avatar/modules/anatomy.d.ts.map +1 -0
  64. package/dist/components/avatar/modules/anatomy.js +10 -9
  65. package/dist/components/avatar/modules/anatomy.js.map +1 -0
  66. package/dist/components/avatar/modules/root-context.js +2 -1
  67. package/dist/components/avatar/modules/root-context.js.map +1 -0
  68. package/dist/components/avatar/modules/use-avatar.d.ts +4 -5
  69. package/dist/components/avatar/modules/use-avatar.d.ts.map +1 -0
  70. package/dist/components/avatar/modules/use-avatar.js +2 -1
  71. package/dist/components/avatar/modules/use-avatar.js.map +1 -0
  72. package/dist/components/file-upload/anatomy/dropzone.d.ts +11 -0
  73. package/dist/components/file-upload/anatomy/dropzone.d.ts.map +1 -0
  74. package/dist/components/file-upload/anatomy/dropzone.js +20 -0
  75. package/dist/components/file-upload/anatomy/dropzone.js.map +1 -0
  76. package/dist/components/file-upload/anatomy/hidden-input.d.ts +11 -0
  77. package/dist/components/file-upload/anatomy/hidden-input.d.ts.map +1 -0
  78. package/dist/components/file-upload/anatomy/hidden-input.js +17 -0
  79. package/dist/components/file-upload/anatomy/hidden-input.js.map +1 -0
  80. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts +11 -0
  81. package/dist/components/file-upload/anatomy/item-delete-trigger.d.ts.map +1 -0
  82. package/dist/components/file-upload/anatomy/item-delete-trigger.js +22 -0
  83. package/dist/components/file-upload/anatomy/item-delete-trigger.js.map +1 -0
  84. package/dist/components/file-upload/anatomy/item-group.d.ts +11 -0
  85. package/dist/components/file-upload/anatomy/item-group.d.ts.map +1 -0
  86. package/dist/components/file-upload/anatomy/item-group.js +20 -0
  87. package/dist/components/file-upload/anatomy/item-group.js.map +1 -0
  88. package/dist/components/file-upload/anatomy/item-name.d.ts +11 -0
  89. package/dist/components/file-upload/anatomy/item-name.d.ts.map +1 -0
  90. package/dist/components/file-upload/anatomy/item-name.js +22 -0
  91. package/dist/components/file-upload/anatomy/item-name.js.map +1 -0
  92. package/dist/components/file-upload/anatomy/item-size-text.d.ts +11 -0
  93. package/dist/components/file-upload/anatomy/item-size-text.d.ts.map +1 -0
  94. package/dist/components/file-upload/anatomy/item-size-text.js +22 -0
  95. package/dist/components/file-upload/anatomy/item-size-text.js.map +1 -0
  96. package/dist/components/file-upload/anatomy/item.d.ts +11 -0
  97. package/dist/components/file-upload/anatomy/item.d.ts.map +1 -0
  98. package/dist/components/file-upload/anatomy/item.js +26 -0
  99. package/dist/components/file-upload/anatomy/item.js.map +1 -0
  100. package/dist/components/file-upload/anatomy/root-context.d.ts +11 -0
  101. package/dist/components/file-upload/anatomy/root-context.d.ts.map +1 -0
  102. package/dist/components/file-upload/anatomy/root-context.js +13 -0
  103. package/dist/components/file-upload/anatomy/root-context.js.map +1 -0
  104. package/dist/components/file-upload/anatomy/root-provider.d.ts +13 -0
  105. package/dist/components/file-upload/anatomy/root-provider.d.ts.map +1 -0
  106. package/dist/components/file-upload/anatomy/root-provider.js +21 -0
  107. package/dist/components/file-upload/anatomy/root-provider.js.map +1 -0
  108. package/dist/components/file-upload/anatomy/root.d.ts +11 -0
  109. package/dist/components/file-upload/anatomy/root.d.ts.map +1 -0
  110. package/dist/components/file-upload/anatomy/root.js +25 -0
  111. package/dist/components/file-upload/anatomy/root.js.map +1 -0
  112. package/dist/components/file-upload/anatomy/trigger.d.ts +11 -0
  113. package/dist/components/file-upload/anatomy/trigger.d.ts.map +1 -0
  114. package/dist/components/file-upload/anatomy/trigger.js +20 -0
  115. package/dist/components/file-upload/anatomy/trigger.js.map +1 -0
  116. package/dist/components/file-upload/index.js +4 -0
  117. package/dist/components/file-upload/modules/anatomy.d.ts +28 -0
  118. package/dist/components/file-upload/modules/anatomy.d.ts.map +1 -0
  119. package/dist/components/file-upload/modules/anatomy.js +29 -0
  120. package/dist/components/file-upload/modules/anatomy.js.map +1 -0
  121. package/dist/components/file-upload/modules/item-context.js +8 -0
  122. package/dist/components/file-upload/modules/item-context.js.map +1 -0
  123. package/dist/components/file-upload/modules/root-context.js +8 -0
  124. package/dist/components/file-upload/modules/root-context.js.map +1 -0
  125. package/dist/components/file-upload/modules/use-file-upload.d.ts +7 -0
  126. package/dist/components/file-upload/modules/use-file-upload.d.ts.map +1 -0
  127. package/dist/components/file-upload/modules/use-file-upload.js +16 -0
  128. package/dist/components/file-upload/modules/use-file-upload.js.map +1 -0
  129. package/dist/components/progress-linear/anatomy/label.d.ts +5 -4
  130. package/dist/components/progress-linear/anatomy/label.d.ts.map +1 -0
  131. package/dist/components/progress-linear/anatomy/label.js +6 -5
  132. package/dist/components/progress-linear/anatomy/label.js.map +1 -0
  133. package/dist/components/progress-linear/anatomy/range.d.ts +5 -4
  134. package/dist/components/progress-linear/anatomy/range.d.ts.map +1 -0
  135. package/dist/components/progress-linear/anatomy/range.js +6 -5
  136. package/dist/components/progress-linear/anatomy/range.js.map +1 -0
  137. package/dist/components/progress-linear/anatomy/root-context.d.ts +3 -2
  138. package/dist/components/progress-linear/anatomy/root-context.d.ts.map +1 -0
  139. package/dist/components/progress-linear/anatomy/root-context.js +5 -4
  140. package/dist/components/progress-linear/anatomy/root-context.js.map +1 -0
  141. package/dist/components/progress-linear/anatomy/root-provider.d.ts +4 -3
  142. package/dist/components/progress-linear/anatomy/root-provider.d.ts.map +1 -0
  143. package/dist/components/progress-linear/anatomy/root-provider.js +4 -3
  144. package/dist/components/progress-linear/anatomy/root-provider.js.map +1 -0
  145. package/dist/components/progress-linear/anatomy/root.d.ts +4 -3
  146. package/dist/components/progress-linear/anatomy/root.d.ts.map +1 -0
  147. package/dist/components/progress-linear/anatomy/root.js +4 -3
  148. package/dist/components/progress-linear/anatomy/root.js.map +1 -0
  149. package/dist/components/progress-linear/anatomy/track.d.ts +5 -4
  150. package/dist/components/progress-linear/anatomy/track.d.ts.map +1 -0
  151. package/dist/components/progress-linear/anatomy/track.js +6 -5
  152. package/dist/components/progress-linear/anatomy/track.js.map +1 -0
  153. package/dist/components/progress-linear/modules/anatomy.d.ts +14 -13
  154. package/dist/components/progress-linear/modules/anatomy.d.ts.map +1 -0
  155. package/dist/components/progress-linear/modules/anatomy.js +14 -13
  156. package/dist/components/progress-linear/modules/anatomy.js.map +1 -0
  157. package/dist/components/progress-linear/modules/root-context.js +2 -1
  158. package/dist/components/progress-linear/modules/root-context.js.map +1 -0
  159. package/dist/components/progress-linear/modules/use-progress-linear.d.ts +4 -5
  160. package/dist/components/progress-linear/modules/use-progress-linear.d.ts.map +1 -0
  161. package/dist/components/progress-linear/modules/use-progress-linear.js +2 -1
  162. package/dist/components/progress-linear/modules/use-progress-linear.js.map +1 -0
  163. package/dist/components/rating-group/anatomy/control.d.ts +5 -4
  164. package/dist/components/rating-group/anatomy/control.d.ts.map +1 -0
  165. package/dist/components/rating-group/anatomy/control.js +6 -5
  166. package/dist/components/rating-group/anatomy/control.js.map +1 -0
  167. package/dist/components/rating-group/anatomy/hidden-input.d.ts +5 -4
  168. package/dist/components/rating-group/anatomy/hidden-input.d.ts.map +1 -0
  169. package/dist/components/rating-group/anatomy/hidden-input.js +6 -5
  170. package/dist/components/rating-group/anatomy/hidden-input.js.map +1 -0
  171. package/dist/components/rating-group/anatomy/item.d.ts +5 -4
  172. package/dist/components/rating-group/anatomy/item.d.ts.map +1 -0
  173. package/dist/components/rating-group/anatomy/item.js +10 -9
  174. package/dist/components/rating-group/anatomy/item.js.map +1 -0
  175. package/dist/components/rating-group/anatomy/label.d.ts +5 -4
  176. package/dist/components/rating-group/anatomy/label.d.ts.map +1 -0
  177. package/dist/components/rating-group/anatomy/label.js +6 -5
  178. package/dist/components/rating-group/anatomy/label.js.map +1 -0
  179. package/dist/components/rating-group/anatomy/root-context.d.ts +3 -2
  180. package/dist/components/rating-group/anatomy/root-context.d.ts.map +1 -0
  181. package/dist/components/rating-group/anatomy/root-context.js +5 -4
  182. package/dist/components/rating-group/anatomy/root-context.js.map +1 -0
  183. package/dist/components/rating-group/anatomy/root-provider.d.ts +4 -3
  184. package/dist/components/rating-group/anatomy/root-provider.d.ts.map +1 -0
  185. package/dist/components/rating-group/anatomy/root-provider.js +4 -3
  186. package/dist/components/rating-group/anatomy/root-provider.js.map +1 -0
  187. package/dist/components/rating-group/anatomy/root.d.ts +4 -3
  188. package/dist/components/rating-group/anatomy/root.d.ts.map +1 -0
  189. package/dist/components/rating-group/anatomy/root.js +4 -3
  190. package/dist/components/rating-group/anatomy/root.js.map +1 -0
  191. package/dist/components/rating-group/modules/anatomy.d.ts +16 -15
  192. package/dist/components/rating-group/modules/anatomy.d.ts.map +1 -0
  193. package/dist/components/rating-group/modules/anatomy.js +16 -15
  194. package/dist/components/rating-group/modules/anatomy.js.map +1 -0
  195. package/dist/components/rating-group/modules/root-context.js +2 -1
  196. package/dist/components/rating-group/modules/root-context.js.map +1 -0
  197. package/dist/components/rating-group/modules/use-rating-group.d.ts +4 -5
  198. package/dist/components/rating-group/modules/use-rating-group.d.ts.map +1 -0
  199. package/dist/components/rating-group/modules/use-rating-group.js +2 -1
  200. package/dist/components/rating-group/modules/use-rating-group.js.map +1 -0
  201. package/dist/components/switch/anatomy/control.d.ts +5 -4
  202. package/dist/components/switch/anatomy/control.d.ts.map +1 -0
  203. package/dist/components/switch/anatomy/control.js +6 -5
  204. package/dist/components/switch/anatomy/control.js.map +1 -0
  205. package/dist/components/switch/anatomy/hidden-input.d.ts +5 -4
  206. package/dist/components/switch/anatomy/hidden-input.d.ts.map +1 -0
  207. package/dist/components/switch/anatomy/hidden-input.js +6 -5
  208. package/dist/components/switch/anatomy/hidden-input.js.map +1 -0
  209. package/dist/components/switch/anatomy/label.d.ts +5 -4
  210. package/dist/components/switch/anatomy/label.d.ts.map +1 -0
  211. package/dist/components/switch/anatomy/label.js +6 -5
  212. package/dist/components/switch/anatomy/label.js.map +1 -0
  213. package/dist/components/switch/anatomy/root-context.d.ts +3 -2
  214. package/dist/components/switch/anatomy/root-context.d.ts.map +1 -0
  215. package/dist/components/switch/anatomy/root-context.js +5 -4
  216. package/dist/components/switch/anatomy/root-context.js.map +1 -0
  217. package/dist/components/switch/anatomy/root-provider.d.ts +2 -1
  218. package/dist/components/switch/anatomy/root-provider.d.ts.map +1 -0
  219. package/dist/components/switch/anatomy/root.d.ts +4 -3
  220. package/dist/components/switch/anatomy/root.d.ts.map +1 -0
  221. package/dist/components/switch/anatomy/root.js +4 -3
  222. package/dist/components/switch/anatomy/root.js.map +1 -0
  223. package/dist/components/switch/anatomy/thumb.d.ts +5 -4
  224. package/dist/components/switch/anatomy/thumb.d.ts.map +1 -0
  225. package/dist/components/switch/anatomy/thumb.js +6 -5
  226. package/dist/components/switch/anatomy/thumb.js.map +1 -0
  227. package/dist/components/switch/modules/anatomy.d.ts +14 -13
  228. package/dist/components/switch/modules/anatomy.d.ts.map +1 -0
  229. package/dist/components/switch/modules/anatomy.js +14 -13
  230. package/dist/components/switch/modules/anatomy.js.map +1 -0
  231. package/dist/components/switch/modules/root-context.js +2 -1
  232. package/dist/components/switch/modules/root-context.js.map +1 -0
  233. package/dist/components/switch/modules/use-switch.d.ts +4 -5
  234. package/dist/components/switch/modules/use-switch.d.ts.map +1 -0
  235. package/dist/components/switch/modules/use-switch.js +2 -1
  236. package/dist/components/switch/modules/use-switch.js.map +1 -0
  237. package/dist/components/tabs/anatomy/content.d.ts +5 -4
  238. package/dist/components/tabs/anatomy/content.d.ts.map +1 -0
  239. package/dist/components/tabs/anatomy/content.js +6 -5
  240. package/dist/components/tabs/anatomy/content.js.map +1 -0
  241. package/dist/components/tabs/anatomy/indicator.d.ts +5 -4
  242. package/dist/components/tabs/anatomy/indicator.d.ts.map +1 -0
  243. package/dist/components/tabs/anatomy/indicator.js +6 -5
  244. package/dist/components/tabs/anatomy/indicator.js.map +1 -0
  245. package/dist/components/tabs/anatomy/list.d.ts +5 -4
  246. package/dist/components/tabs/anatomy/list.d.ts.map +1 -0
  247. package/dist/components/tabs/anatomy/list.js +6 -5
  248. package/dist/components/tabs/anatomy/list.js.map +1 -0
  249. package/dist/components/tabs/anatomy/root-context.d.ts +3 -2
  250. package/dist/components/tabs/anatomy/root-context.d.ts.map +1 -0
  251. package/dist/components/tabs/anatomy/root-context.js +5 -4
  252. package/dist/components/tabs/anatomy/root-context.js.map +1 -0
  253. package/dist/components/tabs/anatomy/root-provider.d.ts +4 -3
  254. package/dist/components/tabs/anatomy/root-provider.d.ts.map +1 -0
  255. package/dist/components/tabs/anatomy/root-provider.js +4 -3
  256. package/dist/components/tabs/anatomy/root-provider.js.map +1 -0
  257. package/dist/components/tabs/anatomy/root.d.ts +4 -3
  258. package/dist/components/tabs/anatomy/root.d.ts.map +1 -0
  259. package/dist/components/tabs/anatomy/root.js +4 -3
  260. package/dist/components/tabs/anatomy/root.js.map +1 -0
  261. package/dist/components/tabs/anatomy/trigger.d.ts +5 -4
  262. package/dist/components/tabs/anatomy/trigger.d.ts.map +1 -0
  263. package/dist/components/tabs/anatomy/trigger.js +6 -5
  264. package/dist/components/tabs/anatomy/trigger.js.map +1 -0
  265. package/dist/components/tabs/modules/anatomy.d.ts +16 -15
  266. package/dist/components/tabs/modules/anatomy.d.ts.map +1 -0
  267. package/dist/components/tabs/modules/anatomy.js +16 -15
  268. package/dist/components/tabs/modules/anatomy.js.map +1 -0
  269. package/dist/components/tabs/modules/root-context.js +2 -1
  270. package/dist/components/tabs/modules/root-context.js.map +1 -0
  271. package/dist/components/tabs/modules/use-tabs.d.ts +4 -5
  272. package/dist/components/tabs/modules/use-tabs.d.ts.map +1 -0
  273. package/dist/components/tabs/modules/use-tabs.js +2 -1
  274. package/dist/components/tabs/modules/use-tabs.js.map +1 -0
  275. package/dist/components/toast/anatomy/action-trigger.d.ts +5 -4
  276. package/dist/components/toast/anatomy/action-trigger.d.ts.map +1 -0
  277. package/dist/components/toast/anatomy/action-trigger.js +6 -5
  278. package/dist/components/toast/anatomy/action-trigger.js.map +1 -0
  279. package/dist/components/toast/anatomy/close-trigger.d.ts +5 -4
  280. package/dist/components/toast/anatomy/close-trigger.d.ts.map +1 -0
  281. package/dist/components/toast/anatomy/close-trigger.js +8 -7
  282. package/dist/components/toast/anatomy/close-trigger.js.map +1 -0
  283. package/dist/components/toast/anatomy/description.d.ts +5 -4
  284. package/dist/components/toast/anatomy/description.d.ts.map +1 -0
  285. package/dist/components/toast/anatomy/description.js +6 -5
  286. package/dist/components/toast/anatomy/description.js.map +1 -0
  287. package/dist/components/toast/anatomy/group.d.ts +4 -3
  288. package/dist/components/toast/anatomy/group.d.ts.map +1 -0
  289. package/dist/components/toast/anatomy/group.js +4 -3
  290. package/dist/components/toast/anatomy/group.js.map +1 -0
  291. package/dist/components/toast/anatomy/message.d.ts +5 -4
  292. package/dist/components/toast/anatomy/message.d.ts.map +1 -0
  293. package/dist/components/toast/anatomy/message.js +4 -3
  294. package/dist/components/toast/anatomy/message.js.map +1 -0
  295. package/dist/components/toast/anatomy/root-context.d.ts +3 -2
  296. package/dist/components/toast/anatomy/root-context.d.ts.map +1 -0
  297. package/dist/components/toast/anatomy/root-context.js +5 -4
  298. package/dist/components/toast/anatomy/root-context.js.map +1 -0
  299. package/dist/components/toast/anatomy/root.d.ts +4 -3
  300. package/dist/components/toast/anatomy/root.d.ts.map +1 -0
  301. package/dist/components/toast/anatomy/root.js +6 -5
  302. package/dist/components/toast/anatomy/root.js.map +1 -0
  303. package/dist/components/toast/anatomy/title.d.ts +5 -4
  304. package/dist/components/toast/anatomy/title.d.ts.map +1 -0
  305. package/dist/components/toast/anatomy/title.js +6 -5
  306. package/dist/components/toast/anatomy/title.js.map +1 -0
  307. package/dist/components/toast/index.d.ts +4 -4
  308. package/dist/components/toast/modules/anatomy.d.ts +18 -17
  309. package/dist/components/toast/modules/anatomy.d.ts.map +1 -0
  310. package/dist/components/toast/modules/anatomy.js +18 -17
  311. package/dist/components/toast/modules/anatomy.js.map +1 -0
  312. package/dist/components/toast/modules/group-context.js +2 -1
  313. package/dist/components/toast/modules/group-context.js.map +1 -0
  314. package/dist/components/toast/modules/root-context.js +2 -1
  315. package/dist/components/toast/modules/root-context.js.map +1 -0
  316. package/dist/index.d.ts +43 -29
  317. package/dist/index.js +5 -1
  318. package/dist/internal/components/star-empty.js +3 -2
  319. package/dist/internal/components/star-empty.js.map +1 -0
  320. package/dist/internal/components/star-full.js +3 -2
  321. package/dist/internal/components/star-full.js.map +1 -0
  322. package/dist/internal/components/star-half.js +3 -2
  323. package/dist/internal/components/star-half.js.map +1 -0
  324. package/dist/internal/components/x.js +3 -2
  325. package/dist/internal/components/x.js.map +1 -0
  326. package/dist/internal/create-context.js +2 -1
  327. package/dist/internal/create-context.js.map +1 -0
  328. package/dist/internal/html-attributes.d.ts +2 -1
  329. package/dist/internal/html-attributes.d.ts.map +1 -0
  330. package/dist/internal/props-with-element.d.ts +2 -1
  331. package/dist/internal/props-with-element.d.ts.map +1 -0
  332. package/package.json +11 -15
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-rating-group.d.ts","names":[],"sources":["../../../../src/components/rating-group/modules/use-rating-group.ts"],"sourcesContent":[],"mappings":";;;iBAIgB,cAAA,QAAsB,KAAK,eAAe"}
@@ -12,4 +12,5 @@ function useRatingGroup(props) {
12
12
  }
13
13
 
14
14
  //#endregion
15
- export { useRatingGroup };
15
+ export { useRatingGroup };
16
+ //# sourceMappingURL=use-rating-group.js.map
@@ -0,0 +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,10 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react107 from "react";
4
- import * as react_jsx_runtime34 from "react/jsx-runtime";
3
+ import * as react49 from "react";
4
+ import * as react_jsx_runtime14 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 export_default(props: SwitchControlProps): string | number | bigint | boolean | Iterable<react107.ReactNode> | Promise<string | number | bigint | boolean | react107.ReactPortal | react107.ReactElement<unknown, string | react107.JSXElementConstructor<any>> | Iterable<react107.ReactNode> | null | undefined> | react_jsx_runtime34.JSX.Element | null | undefined;
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;
9
9
  //#endregion
10
- export { SwitchControlProps, export_default };
10
+ export { SwitchControl, SwitchControlProps };
11
+ //# sourceMappingURL=control.d.ts.map
@@ -0,0 +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,12 +1,12 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { mergeProps } from "@zag-js/react";
3
2
  import { classesSwitch } from "@skeletonlabs/skeleton-common";
4
- import { useContext } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { use } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/control.tsx
8
- function control_default(props) {
9
- const switch_ = useContext(SwitchRootContext);
8
+ function SwitchControl(props) {
9
+ const switch_ = use(SwitchRootContext);
10
10
  const { element, children,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getControlProps(), rest, { className: classesSwitch.control });
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -16,4 +16,5 @@ function control_default(props) {
16
16
  }
17
17
 
18
18
  //#endregion
19
- export { control_default as default };
19
+ export { SwitchControl as default };
20
+ //# sourceMappingURL=control.js.map
@@ -0,0 +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,10 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react102 from "react";
4
- import * as react_jsx_runtime33 from "react/jsx-runtime";
3
+ import * as react54 from "react";
4
+ import * as react_jsx_runtime15 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 export_default(props: SwitchHiddenInputProps): string | number | bigint | boolean | Iterable<react102.ReactNode> | Promise<string | number | bigint | boolean | react102.ReactPortal | react102.ReactElement<unknown, string | react102.JSXElementConstructor<any>> | Iterable<react102.ReactNode> | null | undefined> | react_jsx_runtime33.JSX.Element | null | undefined;
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;
9
9
  //#endregion
10
- export { SwitchHiddenInputProps, export_default };
10
+ export { SwitchHiddenInput, SwitchHiddenInputProps };
11
+ //# sourceMappingURL=hidden-input.d.ts.map
@@ -0,0 +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,16 +1,17 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { mergeProps } from "@zag-js/react";
3
2
  import { classesSwitch } from "@skeletonlabs/skeleton-common";
4
- import { useContext } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { use } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/hidden-input.tsx
8
- function hidden_input_default(props) {
9
- const switch_ = useContext(SwitchRootContext);
8
+ function SwitchHiddenInput(props) {
9
+ const switch_ = use(SwitchRootContext);
10
10
  const { element,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getHiddenInputProps(), rest, { className: classesSwitch.hiddenInput });
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
13
13
  }
14
14
 
15
15
  //#endregion
16
- export { hidden_input_default as default };
16
+ export { SwitchHiddenInput as default };
17
+ //# sourceMappingURL=hidden-input.js.map
@@ -0,0 +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,10 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react117 from "react";
4
- import * as react_jsx_runtime36 from "react/jsx-runtime";
3
+ import * as react59 from "react";
4
+ import * as react_jsx_runtime16 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 export_default(props: SwitchLabelProps): string | number | bigint | boolean | Iterable<react117.ReactNode> | Promise<string | number | bigint | boolean | react117.ReactPortal | react117.ReactElement<unknown, string | react117.JSXElementConstructor<any>> | Iterable<react117.ReactNode> | null | undefined> | react_jsx_runtime36.JSX.Element | null | undefined;
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;
9
9
  //#endregion
10
- export { SwitchLabelProps, export_default };
10
+ export { SwitchLabel, SwitchLabelProps };
11
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +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,12 +1,12 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { mergeProps } from "@zag-js/react";
3
2
  import { classesSwitch } from "@skeletonlabs/skeleton-common";
4
- import { useContext } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { use } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/label.tsx
8
- function label_default(props) {
9
- const switch_ = useContext(SwitchRootContext);
8
+ function SwitchLabel(props) {
9
+ const switch_ = use(SwitchRootContext);
10
10
  const { element, children,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getLabelProps(), rest, { className: classesSwitch.label });
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -16,4 +16,5 @@ function label_default(props) {
16
16
  }
17
17
 
18
18
  //#endregion
19
- export { label_default as default };
19
+ export { SwitchLabel as default };
20
+ //# sourceMappingURL=label.js.map
@@ -0,0 +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"}
@@ -5,6 +5,7 @@ import { ReactNode } from "react";
5
5
  interface SwitchRootContextProps {
6
6
  children: (switch_: ReturnType<typeof useSwitch>) => ReactNode;
7
7
  }
8
- declare function export_default(props: SwitchRootContextProps): ReactNode;
8
+ declare function SwitchRootContextComponent(props: SwitchRootContextProps): ReactNode;
9
9
  //#endregion
10
- export { SwitchRootContextProps, export_default };
10
+ export { SwitchRootContextComponent, SwitchRootContextProps };
11
+ //# sourceMappingURL=root-context.d.ts.map
@@ -0,0 +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,12 +1,13 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { useContext } from "react";
2
+ import { use } from "react";
3
3
 
4
4
  //#region src/components/switch/anatomy/root-context.tsx
5
- function root_context_default(props) {
6
- const switch_ = useContext(SwitchRootContext);
5
+ function SwitchRootContextComponent(props) {
6
+ const switch_ = use(SwitchRootContext);
7
7
  const { children } = props;
8
8
  return children(switch_);
9
9
  }
10
10
 
11
11
  //#endregion
12
- export { root_context_default as default };
12
+ export { SwitchRootContextComponent as default };
13
+ //# sourceMappingURL=root-context.js.map
@@ -0,0 +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"}
@@ -8,4 +8,5 @@ interface SwitchRootProviderProps extends PropsWithElement<'label'>, HTMLAttribu
8
8
  value: ReturnType<typeof useSwitch>;
9
9
  }
10
10
  //#endregion
11
- export { SwitchRootProviderProps };
11
+ export { SwitchRootProviderProps };
12
+ //# sourceMappingURL=root-provider.d.ts.map
@@ -0,0 +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,10 +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_runtime39 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime48 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 export_default(props: SwitchRootProps): react_jsx_runtime39.JSX.Element;
8
+ declare function SwitchRoot(props: SwitchRootProps): react_jsx_runtime48.JSX.Element;
9
9
  //#endregion
10
- export { export_default };
10
+ export { SwitchRoot };
11
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +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,12 +1,12 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
2
  import { useSwitch } from "../modules/use-switch.js";
3
- import { mergeProps } from "@zag-js/react";
4
3
  import { classesSwitch } from "@skeletonlabs/skeleton-common";
4
+ import { mergeProps } from "@zag-js/react";
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 root_default(props) {
9
+ function SwitchRoot(props) {
10
10
  const [switchProps, componentProps] = splitProps(props);
11
11
  const { element, children,...rest } = componentProps;
12
12
  const switch_ = useSwitch(switchProps);
@@ -21,4 +21,5 @@ function root_default(props) {
21
21
  }
22
22
 
23
23
  //#endregion
24
- export { root_default as default };
24
+ export { SwitchRoot as default };
25
+ //# sourceMappingURL=root.js.map
@@ -0,0 +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,10 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react112 from "react";
4
- import * as react_jsx_runtime35 from "react/jsx-runtime";
3
+ import * as react64 from "react";
4
+ import * as react_jsx_runtime18 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 export_default(props: SwitchThumbProps): string | number | bigint | boolean | Iterable<react112.ReactNode> | Promise<string | number | bigint | boolean | react112.ReactPortal | react112.ReactElement<unknown, string | react112.JSXElementConstructor<any>> | Iterable<react112.ReactNode> | null | undefined> | react_jsx_runtime35.JSX.Element | null | undefined;
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;
9
9
  //#endregion
10
- export { SwitchThumbProps, export_default };
10
+ export { SwitchThumb, SwitchThumbProps };
11
+ //# sourceMappingURL=thumb.d.ts.map
@@ -0,0 +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,12 +1,12 @@
1
1
  import { SwitchRootContext } from "../modules/root-context.js";
2
- import { mergeProps } from "@zag-js/react";
3
2
  import { classesSwitch } from "@skeletonlabs/skeleton-common";
4
- import { useContext } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { use } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/switch/anatomy/thumb.tsx
8
- function thumb_default(props) {
9
- const switch_ = useContext(SwitchRootContext);
8
+ function SwitchThumb(props) {
9
+ const switch_ = use(SwitchRootContext);
10
10
  const { element, children,...rest } = props;
11
11
  const attributes = mergeProps(switch_.getThumbProps(), rest, { className: classesSwitch.thumb });
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
@@ -16,4 +16,5 @@ function thumb_default(props) {
16
16
  }
17
17
 
18
18
  //#endregion
19
- export { thumb_default as default };
19
+ export { SwitchThumb as default };
20
+ //# sourceMappingURL=thumb.js.map
@@ -0,0 +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,17 +1,18 @@
1
- import { export_default } from "../anatomy/root.js";
2
- import { export_default as export_default$1 } from "../anatomy/root-context.js";
3
- import { export_default as export_default$2 } from "../anatomy/control.js";
4
- import { export_default as export_default$3 } from "../anatomy/thumb.js";
5
- import { export_default as export_default$4 } from "../anatomy/label.js";
6
- import { export_default as export_default$5 } from "../anatomy/hidden-input.js";
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";
7
7
 
8
8
  //#region src/components/switch/modules/anatomy.d.ts
9
- declare const Switch: typeof export_default & {
10
- Context: typeof export_default$1;
11
- Control: typeof export_default$2;
12
- Thumb: typeof export_default$3;
13
- Label: typeof export_default$4;
14
- HiddenInput: typeof export_default$5;
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;
15
15
  };
16
16
  //#endregion
17
- export { Switch };
17
+ export { Switch };
18
+ //# sourceMappingURL=anatomy.d.ts.map
@@ -0,0 +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,18 +1,19 @@
1
- import root_default from "../anatomy/root.js";
2
- import root_context_default from "../anatomy/root-context.js";
3
- import control_default from "../anatomy/control.js";
4
- import thumb_default from "../anatomy/thumb.js";
5
- import label_default from "../anatomy/label.js";
6
- import hidden_input_default from "../anatomy/hidden-input.js";
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";
7
7
 
8
8
  //#region src/components/switch/modules/anatomy.ts
9
- const Switch = Object.assign(root_default, {
10
- Context: root_context_default,
11
- Control: control_default,
12
- Thumb: thumb_default,
13
- Label: label_default,
14
- HiddenInput: hidden_input_default
9
+ const Switch = Object.assign(SwitchRoot, {
10
+ Context: SwitchRootContextComponent,
11
+ Control: SwitchControl,
12
+ Thumb: SwitchThumb,
13
+ Label: SwitchLabel,
14
+ HiddenInput: SwitchHiddenInput
15
15
  });
16
16
 
17
17
  //#endregion
18
- export { Switch };
18
+ export { Switch };
19
+ //# sourceMappingURL=anatomy.js.map
@@ -0,0 +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"}
@@ -4,4 +4,5 @@ import { createContext } from "../../../internal/create-context.js";
4
4
  const SwitchRootContext = createContext();
5
5
 
6
6
  //#endregion
7
- export { SwitchRootContext };
7
+ export { SwitchRootContext };
8
+ //# sourceMappingURL=root-context.js.map
@@ -0,0 +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,8 +1,7 @@
1
- import * as _zag_js_react3 from "@zag-js/react";
2
- import * as _zag_js_switch0 from "@zag-js/switch";
3
- import { Props } from "@zag-js/switch";
1
+ import { Api, Props } from "@zag-js/switch";
4
2
 
5
3
  //#region src/components/switch/modules/use-switch.d.ts
6
- declare function useSwitch(props: Omit<Props, 'id'>): _zag_js_switch0.Api<_zag_js_react3.PropTypes>;
4
+ declare function useSwitch(props: Omit<Props, 'id'>): Api;
7
5
  //#endregion
8
- export { useSwitch };
6
+ export { useSwitch };
7
+ //# sourceMappingURL=use-switch.d.ts.map
@@ -0,0 +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"}
@@ -12,4 +12,5 @@ function useSwitch(props) {
12
12
  }
13
13
 
14
14
  //#endregion
15
- export { useSwitch };
15
+ export { useSwitch };
16
+ //# sourceMappingURL=use-switch.js.map
@@ -0,0 +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,11 +1,12 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react62 from "react";
4
- import * as react_jsx_runtime20 from "react/jsx-runtime";
3
+ import * as react79 from "react";
4
+ import * as react_jsx_runtime23 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 export_default(props: TabsContentProps): string | number | bigint | boolean | Iterable<react62.ReactNode> | Promise<string | number | bigint | boolean | react62.ReactPortal | react62.ReactElement<unknown, string | react62.JSXElementConstructor<any>> | Iterable<react62.ReactNode> | null | undefined> | react_jsx_runtime20.JSX.Element | null | undefined;
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;
10
10
  //#endregion
11
- export { TabsContentProps, export_default };
11
+ export { TabsContent, TabsContentProps };
12
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +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,13 +1,13 @@
1
1
  import { TabsRootContext } from "../modules/root-context.js";
2
- import { mergeProps } from "@zag-js/react";
3
2
  import { classesTabs } from "@skeletonlabs/skeleton-common";
4
- import { useContext } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { use } from "react";
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 content_default(props) {
10
- const tabs = useContext(TabsRootContext);
9
+ function TabsContent(props) {
10
+ const tabs = use(TabsRootContext);
11
11
  const [contentProps, componentProps] = splitContentProps(props);
12
12
  const { element, children,...rest } = componentProps;
13
13
  const attributes = mergeProps(tabs.getContentProps(contentProps), rest, { className: classesTabs.content });
@@ -18,4 +18,5 @@ function content_default(props) {
18
18
  }
19
19
 
20
20
  //#endregion
21
- export { content_default as default };
21
+ export { TabsContent as default };
22
+ //# sourceMappingURL=content.js.map
@@ -0,0 +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,10 +1,11 @@
1
1
  import { HTMLAttributes } from "../../../internal/html-attributes.js";
2
2
  import { PropsWithElement } from "../../../internal/props-with-element.js";
3
- import * as react67 from "react";
4
- import * as react_jsx_runtime21 from "react/jsx-runtime";
3
+ import * as react84 from "react";
4
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/tabs/anatomy/indicator.d.ts
7
7
  interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}
8
- declare function export_default(props: TabsIndicatorProps): string | number | bigint | boolean | Iterable<react67.ReactNode> | Promise<string | number | bigint | boolean | react67.ReactPortal | react67.ReactElement<unknown, string | react67.JSXElementConstructor<any>> | Iterable<react67.ReactNode> | null | undefined> | react_jsx_runtime21.JSX.Element | null | undefined;
8
+ declare function TabsIndicator(props: TabsIndicatorProps): string | number | bigint | boolean | Iterable<react84.ReactNode> | Promise<string | number | bigint | boolean | react84.ReactPortal | react84.ReactElement<unknown, string | react84.JSXElementConstructor<any>> | Iterable<react84.ReactNode> | null | undefined> | react_jsx_runtime24.JSX.Element | null | undefined;
9
9
  //#endregion
10
- export { TabsIndicatorProps, export_default };
10
+ export { TabsIndicator, TabsIndicatorProps };
11
+ //# sourceMappingURL=indicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicator.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/indicator.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,kBAAA,SAA2B,yBAAyB;iBAE7C,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,16 +1,17 @@
1
1
  import { TabsRootContext } from "../modules/root-context.js";
2
- import { mergeProps } from "@zag-js/react";
3
2
  import { classesTabs } from "@skeletonlabs/skeleton-common";
4
- import { useContext } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { use } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/tabs/anatomy/indicator.tsx
8
- function indicator_default(props) {
9
- const tabs = useContext(TabsRootContext);
8
+ function TabsIndicator(props) {
9
+ const tabs = use(TabsRootContext);
10
10
  const { element,...rest } = props;
11
11
  const attributes = mergeProps(tabs.getIndicatorProps(), rest, { className: classesTabs.indicator });
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
13
13
  }
14
14
 
15
15
  //#endregion
16
- export { indicator_default as default };
16
+ export { TabsIndicator as default };
17
+ //# sourceMappingURL=indicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicator.js","names":[],"sources":["../../../../src/components/tabs/anatomy/indicator.tsx"],"sourcesContent":["import { classesTabs } 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 { TabsRootContext } from '../modules/root-context';\n\nexport interface TabsIndicatorProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'children'> {}\n\nexport default function TabsIndicator(props: TabsIndicatorProps) {\n\tconst tabs = use(TabsRootContext);\n\n\tconst { element, ...rest } = props;\n\n\tconst attributes = mergeProps(tabs.getIndicatorProps(), rest, {\n\t\tclassName: classesTabs.indicator,\n\t});\n\n\treturn element ? element(attributes) : <div {...attributes}></div>;\n}\n"],"mappings":";;;;;;;AAWA,SAAwB,cAAc,OAA2B;CAChE,MAAM,OAAO,IAAI,gBAAgB;CAEjC,MAAM,EAAE,QAAS,GAAG,SAAS;CAE7B,MAAM,aAAa,WAAW,KAAK,mBAAmB,EAAE,MAAM,EAC7D,WAAW,YAAY,WACvB,CAAC;AAEF,QAAO,UAAU,QAAQ,WAAW,GAAG,oBAAC,SAAI,GAAI,aAAkB"}
@@ -1,10 +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_runtime17 from "react/jsx-runtime";
3
+ import * as react89 from "react";
4
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/tabs/anatomy/list.d.ts
7
7
  interface TabsListProps extends PropsWithElement<'div'>, HTMLAttributes<'div', 'id' | 'dir'> {}
8
- declare function export_default(props: TabsListProps): 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_runtime17.JSX.Element | null | undefined;
8
+ declare function TabsList(props: TabsListProps): string | number | bigint | boolean | Iterable<react89.ReactNode> | Promise<string | number | bigint | boolean | react89.ReactPortal | react89.ReactElement<unknown, string | react89.JSXElementConstructor<any>> | Iterable<react89.ReactNode> | null | undefined> | react_jsx_runtime25.JSX.Element | null | undefined;
9
9
  //#endregion
10
- export { TabsListProps, export_default };
10
+ export { TabsList, TabsListProps };
11
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","names":[],"sources":["../../../../src/components/tabs/anatomy/list.tsx"],"sourcesContent":[],"mappings":";;;;;;UASiB,aAAA,SAAsB,yBAAyB;iBAExC,QAAA,QAAgB,qDAAa,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,12 +1,12 @@
1
1
  import { TabsRootContext } from "../modules/root-context.js";
2
- import { mergeProps } from "@zag-js/react";
3
2
  import { classesTabs } from "@skeletonlabs/skeleton-common";
4
- import { useContext } from "react";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { use } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/tabs/anatomy/list.tsx
8
- function list_default(props) {
9
- const tabs = useContext(TabsRootContext);
8
+ function TabsList(props) {
9
+ const tabs = use(TabsRootContext);
10
10
  const { element, children,...rest } = props;
11
11
  const attributes = mergeProps(tabs.getListProps(), rest, { className: classesTabs.list });
12
12
  return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
@@ -16,4 +16,5 @@ function list_default(props) {
16
16
  }
17
17
 
18
18
  //#endregion
19
- export { list_default as default };
19
+ export { TabsList as default };
20
+ //# sourceMappingURL=list.js.map