@skeletonlabs/skeleton-react 4.3.3 → 4.3.4

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 (612) hide show
  1. package/dist/index.d.mts +1426 -292
  2. package/dist/index.mjs +3698 -50
  3. package/package.json +2 -2
  4. package/dist/components/accordion/anatomy/item-content.d.mts +0 -11
  5. package/dist/components/accordion/anatomy/item-content.mjs +0 -22
  6. package/dist/components/accordion/anatomy/item-indicator.d.mts +0 -11
  7. package/dist/components/accordion/anatomy/item-indicator.mjs +0 -22
  8. package/dist/components/accordion/anatomy/item-trigger.d.mts +0 -11
  9. package/dist/components/accordion/anatomy/item-trigger.mjs +0 -22
  10. package/dist/components/accordion/anatomy/item.d.mts +0 -12
  11. package/dist/components/accordion/anatomy/item.mjs +0 -26
  12. package/dist/components/accordion/anatomy/root-context.d.mts +0 -11
  13. package/dist/components/accordion/anatomy/root-context.mjs +0 -13
  14. package/dist/components/accordion/anatomy/root-provider.d.mts +0 -13
  15. package/dist/components/accordion/anatomy/root-provider.mjs +0 -21
  16. package/dist/components/accordion/anatomy/root.d.mts +0 -11
  17. package/dist/components/accordion/anatomy/root.mjs +0 -25
  18. package/dist/components/accordion/index.d.mts +0 -9
  19. package/dist/components/accordion/modules/anatomy.d.mts +0 -20
  20. package/dist/components/accordion/modules/anatomy.mjs +0 -21
  21. package/dist/components/accordion/modules/item-context.mjs +0 -8
  22. package/dist/components/accordion/modules/provider.d.mts +0 -8
  23. package/dist/components/accordion/modules/provider.mjs +0 -15
  24. package/dist/components/accordion/modules/root-context.mjs +0 -8
  25. package/dist/components/app-bar/anatomy/headline.d.mts +0 -10
  26. package/dist/components/app-bar/anatomy/headline.mjs +0 -17
  27. package/dist/components/app-bar/anatomy/lead.d.mts +0 -10
  28. package/dist/components/app-bar/anatomy/lead.mjs +0 -17
  29. package/dist/components/app-bar/anatomy/root.d.mts +0 -10
  30. package/dist/components/app-bar/anatomy/root.mjs +0 -17
  31. package/dist/components/app-bar/anatomy/toolbar.d.mts +0 -10
  32. package/dist/components/app-bar/anatomy/toolbar.mjs +0 -17
  33. package/dist/components/app-bar/anatomy/trail.d.mts +0 -10
  34. package/dist/components/app-bar/anatomy/trail.mjs +0 -17
  35. package/dist/components/app-bar/index.d.mts +0 -6
  36. package/dist/components/app-bar/modules/anatomy.d.mts +0 -16
  37. package/dist/components/app-bar/modules/anatomy.mjs +0 -17
  38. package/dist/components/avatar/anatomy/fallback.d.mts +0 -10
  39. package/dist/components/avatar/anatomy/fallback.mjs +0 -20
  40. package/dist/components/avatar/anatomy/image.d.mts +0 -10
  41. package/dist/components/avatar/anatomy/image.mjs +0 -17
  42. package/dist/components/avatar/anatomy/root-context.d.mts +0 -11
  43. package/dist/components/avatar/anatomy/root-context.mjs +0 -13
  44. package/dist/components/avatar/anatomy/root-provider.d.mts +0 -13
  45. package/dist/components/avatar/anatomy/root-provider.mjs +0 -21
  46. package/dist/components/avatar/anatomy/root.d.mts +0 -11
  47. package/dist/components/avatar/anatomy/root.mjs +0 -25
  48. package/dist/components/avatar/index.d.mts +0 -7
  49. package/dist/components/avatar/modules/anatomy.d.mts +0 -16
  50. package/dist/components/avatar/modules/anatomy.mjs +0 -17
  51. package/dist/components/avatar/modules/provider.d.mts +0 -8
  52. package/dist/components/avatar/modules/provider.mjs +0 -15
  53. package/dist/components/avatar/modules/root-context.mjs +0 -8
  54. package/dist/components/collapsible/anatomy/content.d.mts +0 -10
  55. package/dist/components/collapsible/anatomy/content.mjs +0 -20
  56. package/dist/components/collapsible/anatomy/indicator.d.mts +0 -10
  57. package/dist/components/collapsible/anatomy/indicator.mjs +0 -20
  58. package/dist/components/collapsible/anatomy/root-context.d.mts +0 -11
  59. package/dist/components/collapsible/anatomy/root-context.mjs +0 -13
  60. package/dist/components/collapsible/anatomy/root-provider.d.mts +0 -13
  61. package/dist/components/collapsible/anatomy/root-provider.mjs +0 -21
  62. package/dist/components/collapsible/anatomy/root.d.mts +0 -11
  63. package/dist/components/collapsible/anatomy/root.mjs +0 -25
  64. package/dist/components/collapsible/anatomy/trigger.d.mts +0 -10
  65. package/dist/components/collapsible/anatomy/trigger.mjs +0 -20
  66. package/dist/components/collapsible/index.d.mts +0 -8
  67. package/dist/components/collapsible/modules/anatomy.d.mts +0 -18
  68. package/dist/components/collapsible/modules/anatomy.mjs +0 -19
  69. package/dist/components/collapsible/modules/provider.d.mts +0 -8
  70. package/dist/components/collapsible/modules/provider.mjs +0 -15
  71. package/dist/components/collapsible/modules/root-context.mjs +0 -8
  72. package/dist/components/combobox/anatomy/content.d.mts +0 -10
  73. package/dist/components/combobox/anatomy/content.mjs +0 -20
  74. package/dist/components/combobox/anatomy/control.d.mts +0 -10
  75. package/dist/components/combobox/anatomy/control.mjs +0 -20
  76. package/dist/components/combobox/anatomy/input.d.mts +0 -10
  77. package/dist/components/combobox/anatomy/input.mjs +0 -17
  78. package/dist/components/combobox/anatomy/item-group-label.d.mts +0 -11
  79. package/dist/components/combobox/anatomy/item-group-label.mjs +0 -26
  80. package/dist/components/combobox/anatomy/item-group.d.mts +0 -11
  81. package/dist/components/combobox/anatomy/item-group.mjs +0 -29
  82. package/dist/components/combobox/anatomy/item-indicator.d.mts +0 -10
  83. package/dist/components/combobox/anatomy/item-indicator.mjs +0 -23
  84. package/dist/components/combobox/anatomy/item-text.d.mts +0 -10
  85. package/dist/components/combobox/anatomy/item-text.mjs +0 -22
  86. package/dist/components/combobox/anatomy/item.d.mts +0 -11
  87. package/dist/components/combobox/anatomy/item.mjs +0 -26
  88. package/dist/components/combobox/anatomy/label.d.mts +0 -10
  89. package/dist/components/combobox/anatomy/label.mjs +0 -20
  90. package/dist/components/combobox/anatomy/positioner.d.mts +0 -10
  91. package/dist/components/combobox/anatomy/positioner.mjs +0 -20
  92. package/dist/components/combobox/anatomy/root-context.d.mts +0 -11
  93. package/dist/components/combobox/anatomy/root-context.mjs +0 -13
  94. package/dist/components/combobox/anatomy/root-provider.d.mts +0 -13
  95. package/dist/components/combobox/anatomy/root-provider.mjs +0 -21
  96. package/dist/components/combobox/anatomy/root.d.mts +0 -11
  97. package/dist/components/combobox/anatomy/root.mjs +0 -25
  98. package/dist/components/combobox/anatomy/trigger.d.mts +0 -10
  99. package/dist/components/combobox/anatomy/trigger.mjs +0 -21
  100. package/dist/components/combobox/index.d.mts +0 -16
  101. package/dist/components/combobox/modules/anatomy.d.mts +0 -34
  102. package/dist/components/combobox/modules/anatomy.mjs +0 -35
  103. package/dist/components/combobox/modules/item-context.mjs +0 -8
  104. package/dist/components/combobox/modules/item-group-context.mjs +0 -8
  105. package/dist/components/combobox/modules/provider.d.mts +0 -8
  106. package/dist/components/combobox/modules/provider.mjs +0 -15
  107. package/dist/components/combobox/modules/root-context.mjs +0 -8
  108. package/dist/components/date-picker/anatomy/content.d.mts +0 -10
  109. package/dist/components/date-picker/anatomy/content.mjs +0 -20
  110. package/dist/components/date-picker/anatomy/control.d.mts +0 -10
  111. package/dist/components/date-picker/anatomy/control.mjs +0 -20
  112. package/dist/components/date-picker/anatomy/input.d.mts +0 -11
  113. package/dist/components/date-picker/anatomy/input.mjs +0 -19
  114. package/dist/components/date-picker/anatomy/label.d.mts +0 -10
  115. package/dist/components/date-picker/anatomy/label.mjs +0 -20
  116. package/dist/components/date-picker/anatomy/month-select.d.mts +0 -10
  117. package/dist/components/date-picker/anatomy/month-select.mjs +0 -23
  118. package/dist/components/date-picker/anatomy/next-trigger.d.mts +0 -10
  119. package/dist/components/date-picker/anatomy/next-trigger.mjs +0 -23
  120. package/dist/components/date-picker/anatomy/positioner.d.mts +0 -10
  121. package/dist/components/date-picker/anatomy/positioner.mjs +0 -20
  122. package/dist/components/date-picker/anatomy/preset-trigger.d.mts +0 -11
  123. package/dist/components/date-picker/anatomy/preset-trigger.mjs +0 -22
  124. package/dist/components/date-picker/anatomy/prev-trigger.d.mts +0 -10
  125. package/dist/components/date-picker/anatomy/prev-trigger.mjs +0 -23
  126. package/dist/components/date-picker/anatomy/range-text.d.mts +0 -10
  127. package/dist/components/date-picker/anatomy/range-text.mjs +0 -21
  128. package/dist/components/date-picker/anatomy/root-context.d.mts +0 -11
  129. package/dist/components/date-picker/anatomy/root-context.mjs +0 -13
  130. package/dist/components/date-picker/anatomy/root-provider.d.mts +0 -13
  131. package/dist/components/date-picker/anatomy/root-provider.mjs +0 -21
  132. package/dist/components/date-picker/anatomy/root.d.mts +0 -11
  133. package/dist/components/date-picker/anatomy/root.mjs +0 -25
  134. package/dist/components/date-picker/anatomy/table-body.d.mts +0 -10
  135. package/dist/components/date-picker/anatomy/table-body.mjs +0 -22
  136. package/dist/components/date-picker/anatomy/table-cell-trigger.d.mts +0 -10
  137. package/dist/components/date-picker/anatomy/table-cell-trigger.mjs +0 -31
  138. package/dist/components/date-picker/anatomy/table-cell.d.mts +0 -12
  139. package/dist/components/date-picker/anatomy/table-cell.mjs +0 -35
  140. package/dist/components/date-picker/anatomy/table-head.d.mts +0 -10
  141. package/dist/components/date-picker/anatomy/table-head.mjs +0 -22
  142. package/dist/components/date-picker/anatomy/table-header.d.mts +0 -10
  143. package/dist/components/date-picker/anatomy/table-header.mjs +0 -22
  144. package/dist/components/date-picker/anatomy/table-row.d.mts +0 -10
  145. package/dist/components/date-picker/anatomy/table-row.mjs +0 -22
  146. package/dist/components/date-picker/anatomy/table.d.mts +0 -10
  147. package/dist/components/date-picker/anatomy/table.mjs +0 -22
  148. package/dist/components/date-picker/anatomy/trigger.d.mts +0 -10
  149. package/dist/components/date-picker/anatomy/trigger.mjs +0 -21
  150. package/dist/components/date-picker/anatomy/view-control.d.mts +0 -10
  151. package/dist/components/date-picker/anatomy/view-control.mjs +0 -22
  152. package/dist/components/date-picker/anatomy/view-trigger.d.mts +0 -10
  153. package/dist/components/date-picker/anatomy/view-trigger.mjs +0 -22
  154. package/dist/components/date-picker/anatomy/view.d.mts +0 -11
  155. package/dist/components/date-picker/anatomy/view.mjs +0 -26
  156. package/dist/components/date-picker/anatomy/year-select.d.mts +0 -10
  157. package/dist/components/date-picker/anatomy/year-select.mjs +0 -23
  158. package/dist/components/date-picker/index.d.mts +0 -29
  159. package/dist/components/date-picker/index.mjs +0 -5
  160. package/dist/components/date-picker/modules/anatomy.d.mts +0 -56
  161. package/dist/components/date-picker/modules/anatomy.mjs +0 -57
  162. package/dist/components/date-picker/modules/provider.d.mts +0 -8
  163. package/dist/components/date-picker/modules/provider.mjs +0 -15
  164. package/dist/components/date-picker/modules/root-context.mjs +0 -8
  165. package/dist/components/date-picker/modules/table-cell-context.mjs +0 -8
  166. package/dist/components/date-picker/modules/view-context.mjs +0 -8
  167. package/dist/components/dialog/anatomy/backdrop.d.mts +0 -10
  168. package/dist/components/dialog/anatomy/backdrop.mjs +0 -17
  169. package/dist/components/dialog/anatomy/close-trigger.d.mts +0 -10
  170. package/dist/components/dialog/anatomy/close-trigger.mjs +0 -20
  171. package/dist/components/dialog/anatomy/content.d.mts +0 -10
  172. package/dist/components/dialog/anatomy/content.mjs +0 -20
  173. package/dist/components/dialog/anatomy/description.d.mts +0 -10
  174. package/dist/components/dialog/anatomy/description.mjs +0 -20
  175. package/dist/components/dialog/anatomy/positioner.d.mts +0 -10
  176. package/dist/components/dialog/anatomy/positioner.mjs +0 -20
  177. package/dist/components/dialog/anatomy/root-context.d.mts +0 -11
  178. package/dist/components/dialog/anatomy/root-context.mjs +0 -13
  179. package/dist/components/dialog/anatomy/root-provider.d.mts +0 -12
  180. package/dist/components/dialog/anatomy/root-provider.mjs +0 -15
  181. package/dist/components/dialog/anatomy/root.d.mts +0 -10
  182. package/dist/components/dialog/anatomy/root.mjs +0 -20
  183. package/dist/components/dialog/anatomy/title.d.mts +0 -10
  184. package/dist/components/dialog/anatomy/title.mjs +0 -20
  185. package/dist/components/dialog/anatomy/trigger.d.mts +0 -10
  186. package/dist/components/dialog/anatomy/trigger.mjs +0 -20
  187. package/dist/components/dialog/index.d.mts +0 -12
  188. package/dist/components/dialog/modules/anatomy.d.mts +0 -26
  189. package/dist/components/dialog/modules/anatomy.mjs +0 -27
  190. package/dist/components/dialog/modules/provider.d.mts +0 -8
  191. package/dist/components/dialog/modules/provider.mjs +0 -15
  192. package/dist/components/dialog/modules/root-context.mjs +0 -8
  193. package/dist/components/file-upload/anatomy/dropzone.d.mts +0 -10
  194. package/dist/components/file-upload/anatomy/dropzone.mjs +0 -20
  195. package/dist/components/file-upload/anatomy/hidden-input.d.mts +0 -10
  196. package/dist/components/file-upload/anatomy/hidden-input.mjs +0 -17
  197. package/dist/components/file-upload/anatomy/item-delete-trigger.d.mts +0 -10
  198. package/dist/components/file-upload/anatomy/item-delete-trigger.mjs +0 -22
  199. package/dist/components/file-upload/anatomy/item-group.d.mts +0 -10
  200. package/dist/components/file-upload/anatomy/item-group.mjs +0 -20
  201. package/dist/components/file-upload/anatomy/item-name.d.mts +0 -10
  202. package/dist/components/file-upload/anatomy/item-name.mjs +0 -22
  203. package/dist/components/file-upload/anatomy/item-size-text.d.mts +0 -10
  204. package/dist/components/file-upload/anatomy/item-size-text.mjs +0 -22
  205. package/dist/components/file-upload/anatomy/item.d.mts +0 -11
  206. package/dist/components/file-upload/anatomy/item.mjs +0 -26
  207. package/dist/components/file-upload/anatomy/label.d.mts +0 -10
  208. package/dist/components/file-upload/anatomy/label.mjs +0 -20
  209. package/dist/components/file-upload/anatomy/root-context.d.mts +0 -11
  210. package/dist/components/file-upload/anatomy/root-context.mjs +0 -13
  211. package/dist/components/file-upload/anatomy/root-provider.d.mts +0 -13
  212. package/dist/components/file-upload/anatomy/root-provider.mjs +0 -21
  213. package/dist/components/file-upload/anatomy/root.d.mts +0 -11
  214. package/dist/components/file-upload/anatomy/root.mjs +0 -25
  215. package/dist/components/file-upload/anatomy/trigger.d.mts +0 -10
  216. package/dist/components/file-upload/anatomy/trigger.mjs +0 -20
  217. package/dist/components/file-upload/index.d.mts +0 -14
  218. package/dist/components/file-upload/modules/anatomy.d.mts +0 -30
  219. package/dist/components/file-upload/modules/anatomy.mjs +0 -31
  220. package/dist/components/file-upload/modules/item-context.mjs +0 -8
  221. package/dist/components/file-upload/modules/provider.d.mts +0 -8
  222. package/dist/components/file-upload/modules/provider.mjs +0 -15
  223. package/dist/components/file-upload/modules/root-context.mjs +0 -8
  224. package/dist/components/listbox/anatomy/content.d.mts +0 -10
  225. package/dist/components/listbox/anatomy/content.mjs +0 -20
  226. package/dist/components/listbox/anatomy/input.d.mts +0 -10
  227. package/dist/components/listbox/anatomy/input.mjs +0 -17
  228. package/dist/components/listbox/anatomy/item-group-label.d.mts +0 -11
  229. package/dist/components/listbox/anatomy/item-group-label.mjs +0 -26
  230. package/dist/components/listbox/anatomy/item-group.d.mts +0 -11
  231. package/dist/components/listbox/anatomy/item-group.mjs +0 -29
  232. package/dist/components/listbox/anatomy/item-indicator.d.mts +0 -10
  233. package/dist/components/listbox/anatomy/item-indicator.mjs +0 -23
  234. package/dist/components/listbox/anatomy/item-text.d.mts +0 -10
  235. package/dist/components/listbox/anatomy/item-text.mjs +0 -22
  236. package/dist/components/listbox/anatomy/item.d.mts +0 -11
  237. package/dist/components/listbox/anatomy/item.mjs +0 -26
  238. package/dist/components/listbox/anatomy/label.d.mts +0 -10
  239. package/dist/components/listbox/anatomy/label.mjs +0 -20
  240. package/dist/components/listbox/anatomy/root-context.d.mts +0 -11
  241. package/dist/components/listbox/anatomy/root-context.mjs +0 -13
  242. package/dist/components/listbox/anatomy/root-provider.d.mts +0 -13
  243. package/dist/components/listbox/anatomy/root-provider.mjs +0 -21
  244. package/dist/components/listbox/anatomy/root.d.mts +0 -11
  245. package/dist/components/listbox/anatomy/root.mjs +0 -25
  246. package/dist/components/listbox/index.d.mts +0 -13
  247. package/dist/components/listbox/modules/anatomy.d.mts +0 -28
  248. package/dist/components/listbox/modules/anatomy.mjs +0 -29
  249. package/dist/components/listbox/modules/item-context.mjs +0 -8
  250. package/dist/components/listbox/modules/item-group-context.mjs +0 -8
  251. package/dist/components/listbox/modules/provider.d.mts +0 -8
  252. package/dist/components/listbox/modules/provider.mjs +0 -15
  253. package/dist/components/listbox/modules/root-context.mjs +0 -8
  254. package/dist/components/navigation/anatomy/content.d.mts +0 -10
  255. package/dist/components/navigation/anatomy/content.mjs +0 -23
  256. package/dist/components/navigation/anatomy/footer.d.mts +0 -10
  257. package/dist/components/navigation/anatomy/footer.mjs +0 -23
  258. package/dist/components/navigation/anatomy/group.d.mts +0 -10
  259. package/dist/components/navigation/anatomy/group.mjs +0 -23
  260. package/dist/components/navigation/anatomy/header.d.mts +0 -10
  261. package/dist/components/navigation/anatomy/header.mjs +0 -23
  262. package/dist/components/navigation/anatomy/label.d.mts +0 -10
  263. package/dist/components/navigation/anatomy/label.mjs +0 -23
  264. package/dist/components/navigation/anatomy/menu.d.mts +0 -10
  265. package/dist/components/navigation/anatomy/menu.mjs +0 -23
  266. package/dist/components/navigation/anatomy/root.d.mts +0 -17
  267. package/dist/components/navigation/anatomy/root.mjs +0 -24
  268. package/dist/components/navigation/index.d.mts +0 -8
  269. package/dist/components/navigation/modules/anatomy.d.mts +0 -20
  270. package/dist/components/navigation/modules/anatomy.mjs +0 -21
  271. package/dist/components/navigation/modules/root-context.mjs +0 -8
  272. package/dist/components/pagination/anatomy/ellipsis.d.mts +0 -11
  273. package/dist/components/pagination/anatomy/ellipsis.mjs +0 -22
  274. package/dist/components/pagination/anatomy/first-trigger.d.mts +0 -10
  275. package/dist/components/pagination/anatomy/first-trigger.mjs +0 -23
  276. package/dist/components/pagination/anatomy/item.d.mts +0 -11
  277. package/dist/components/pagination/anatomy/item.mjs +0 -22
  278. package/dist/components/pagination/anatomy/last-trigger.d.mts +0 -10
  279. package/dist/components/pagination/anatomy/last-trigger.mjs +0 -23
  280. package/dist/components/pagination/anatomy/next-trigger.d.mts +0 -10
  281. package/dist/components/pagination/anatomy/next-trigger.mjs +0 -20
  282. package/dist/components/pagination/anatomy/prev-trigger.d.mts +0 -10
  283. package/dist/components/pagination/anatomy/prev-trigger.mjs +0 -20
  284. package/dist/components/pagination/anatomy/root-context.d.mts +0 -11
  285. package/dist/components/pagination/anatomy/root-context.mjs +0 -13
  286. package/dist/components/pagination/anatomy/root-provider.d.mts +0 -13
  287. package/dist/components/pagination/anatomy/root-provider.mjs +0 -21
  288. package/dist/components/pagination/anatomy/root.d.mts +0 -11
  289. package/dist/components/pagination/anatomy/root.mjs +0 -25
  290. package/dist/components/pagination/index.d.mts +0 -11
  291. package/dist/components/pagination/modules/anatomy.d.mts +0 -24
  292. package/dist/components/pagination/modules/anatomy.mjs +0 -25
  293. package/dist/components/pagination/modules/provider.d.mts +0 -8
  294. package/dist/components/pagination/modules/provider.mjs +0 -15
  295. package/dist/components/pagination/modules/root-context.mjs +0 -8
  296. package/dist/components/popover/anatomy/arrow-tip.d.mts +0 -10
  297. package/dist/components/popover/anatomy/arrow-tip.mjs +0 -20
  298. package/dist/components/popover/anatomy/arrow.d.mts +0 -10
  299. package/dist/components/popover/anatomy/arrow.mjs +0 -20
  300. package/dist/components/popover/anatomy/close-trigger.d.mts +0 -10
  301. package/dist/components/popover/anatomy/close-trigger.mjs +0 -20
  302. package/dist/components/popover/anatomy/content.d.mts +0 -10
  303. package/dist/components/popover/anatomy/content.mjs +0 -20
  304. package/dist/components/popover/anatomy/description.d.mts +0 -10
  305. package/dist/components/popover/anatomy/description.mjs +0 -20
  306. package/dist/components/popover/anatomy/positioner.d.mts +0 -10
  307. package/dist/components/popover/anatomy/positioner.mjs +0 -20
  308. package/dist/components/popover/anatomy/root-context.d.mts +0 -11
  309. package/dist/components/popover/anatomy/root-context.mjs +0 -13
  310. package/dist/components/popover/anatomy/root-provider.d.mts +0 -12
  311. package/dist/components/popover/anatomy/root-provider.mjs +0 -15
  312. package/dist/components/popover/anatomy/root.d.mts +0 -10
  313. package/dist/components/popover/anatomy/root.mjs +0 -20
  314. package/dist/components/popover/anatomy/title.d.mts +0 -10
  315. package/dist/components/popover/anatomy/title.mjs +0 -20
  316. package/dist/components/popover/anatomy/trigger.d.mts +0 -11
  317. package/dist/components/popover/anatomy/trigger.mjs +0 -20
  318. package/dist/components/popover/index.d.mts +0 -13
  319. package/dist/components/popover/modules/anatomy.d.mts +0 -28
  320. package/dist/components/popover/modules/anatomy.mjs +0 -29
  321. package/dist/components/popover/modules/provider.d.mts +0 -8
  322. package/dist/components/popover/modules/provider.mjs +0 -15
  323. package/dist/components/popover/modules/root-context.mjs +0 -8
  324. package/dist/components/portal/anatomy/root.d.mts +0 -22
  325. package/dist/components/portal/anatomy/root.mjs +0 -14
  326. package/dist/components/portal/index.d.mts +0 -2
  327. package/dist/components/portal/modules/anatomy.d.mts +0 -7
  328. package/dist/components/portal/modules/anatomy.mjs +0 -8
  329. package/dist/components/progress/anatomy/circle-range.d.mts +0 -10
  330. package/dist/components/progress/anatomy/circle-range.mjs +0 -20
  331. package/dist/components/progress/anatomy/circle-track.d.mts +0 -10
  332. package/dist/components/progress/anatomy/circle-track.mjs +0 -17
  333. package/dist/components/progress/anatomy/circle.d.mts +0 -10
  334. package/dist/components/progress/anatomy/circle.mjs +0 -26
  335. package/dist/components/progress/anatomy/label.d.mts +0 -10
  336. package/dist/components/progress/anatomy/label.mjs +0 -20
  337. package/dist/components/progress/anatomy/range.d.mts +0 -10
  338. package/dist/components/progress/anatomy/range.mjs +0 -17
  339. package/dist/components/progress/anatomy/root-context.d.mts +0 -11
  340. package/dist/components/progress/anatomy/root-context.mjs +0 -13
  341. package/dist/components/progress/anatomy/root-provider.d.mts +0 -13
  342. package/dist/components/progress/anatomy/root-provider.mjs +0 -21
  343. package/dist/components/progress/anatomy/root.d.mts +0 -11
  344. package/dist/components/progress/anatomy/root.mjs +0 -25
  345. package/dist/components/progress/anatomy/track.d.mts +0 -10
  346. package/dist/components/progress/anatomy/track.mjs +0 -20
  347. package/dist/components/progress/anatomy/value-text.d.mts +0 -10
  348. package/dist/components/progress/anatomy/value-text.mjs +0 -20
  349. package/dist/components/progress/index.d.mts +0 -12
  350. package/dist/components/progress/modules/anatomy.d.mts +0 -26
  351. package/dist/components/progress/modules/anatomy.mjs +0 -27
  352. package/dist/components/progress/modules/provider.d.mts +0 -8
  353. package/dist/components/progress/modules/provider.mjs +0 -15
  354. package/dist/components/progress/modules/root-context.mjs +0 -8
  355. package/dist/components/rating-group/anatomy/control.d.mts +0 -10
  356. package/dist/components/rating-group/anatomy/control.mjs +0 -20
  357. package/dist/components/rating-group/anatomy/hidden-input.d.mts +0 -10
  358. package/dist/components/rating-group/anatomy/hidden-input.mjs +0 -17
  359. package/dist/components/rating-group/anatomy/item.d.mts +0 -31
  360. package/dist/components/rating-group/anatomy/item.mjs +0 -26
  361. package/dist/components/rating-group/anatomy/label.d.mts +0 -10
  362. package/dist/components/rating-group/anatomy/label.mjs +0 -20
  363. package/dist/components/rating-group/anatomy/root-context.d.mts +0 -11
  364. package/dist/components/rating-group/anatomy/root-context.mjs +0 -13
  365. package/dist/components/rating-group/anatomy/root-provider.d.mts +0 -13
  366. package/dist/components/rating-group/anatomy/root-provider.mjs +0 -21
  367. package/dist/components/rating-group/anatomy/root.d.mts +0 -11
  368. package/dist/components/rating-group/anatomy/root.mjs +0 -25
  369. package/dist/components/rating-group/index.d.mts +0 -9
  370. package/dist/components/rating-group/modules/anatomy.d.mts +0 -20
  371. package/dist/components/rating-group/modules/anatomy.mjs +0 -21
  372. package/dist/components/rating-group/modules/provider.d.mts +0 -8
  373. package/dist/components/rating-group/modules/provider.mjs +0 -15
  374. package/dist/components/rating-group/modules/root-context.mjs +0 -8
  375. package/dist/components/segmented-control/anatomy/control.d.mts +0 -10
  376. package/dist/components/segmented-control/anatomy/control.mjs +0 -17
  377. package/dist/components/segmented-control/anatomy/indicator.d.mts +0 -10
  378. package/dist/components/segmented-control/anatomy/indicator.mjs +0 -17
  379. package/dist/components/segmented-control/anatomy/item-hidden-input.d.mts +0 -10
  380. package/dist/components/segmented-control/anatomy/item-hidden-input.mjs +0 -19
  381. package/dist/components/segmented-control/anatomy/item-text.d.mts +0 -10
  382. package/dist/components/segmented-control/anatomy/item-text.mjs +0 -22
  383. package/dist/components/segmented-control/anatomy/item.d.mts +0 -11
  384. package/dist/components/segmented-control/anatomy/item.mjs +0 -26
  385. package/dist/components/segmented-control/anatomy/label.d.mts +0 -10
  386. package/dist/components/segmented-control/anatomy/label.mjs +0 -20
  387. package/dist/components/segmented-control/anatomy/root-context.d.mts +0 -11
  388. package/dist/components/segmented-control/anatomy/root-context.mjs +0 -13
  389. package/dist/components/segmented-control/anatomy/root-provider.d.mts +0 -13
  390. package/dist/components/segmented-control/anatomy/root-provider.mjs +0 -21
  391. package/dist/components/segmented-control/anatomy/root.d.mts +0 -11
  392. package/dist/components/segmented-control/anatomy/root.mjs +0 -25
  393. package/dist/components/segmented-control/index.d.mts +0 -11
  394. package/dist/components/segmented-control/modules/anatomy.d.mts +0 -24
  395. package/dist/components/segmented-control/modules/anatomy.mjs +0 -25
  396. package/dist/components/segmented-control/modules/item-context.mjs +0 -8
  397. package/dist/components/segmented-control/modules/provider.d.mts +0 -8
  398. package/dist/components/segmented-control/modules/provider.mjs +0 -16
  399. package/dist/components/segmented-control/modules/root-context.mjs +0 -8
  400. package/dist/components/slider/anatomy/control.d.mts +0 -10
  401. package/dist/components/slider/anatomy/control.mjs +0 -20
  402. package/dist/components/slider/anatomy/hidden-input.d.mts +0 -10
  403. package/dist/components/slider/anatomy/hidden-input.mjs +0 -19
  404. package/dist/components/slider/anatomy/label.d.mts +0 -10
  405. package/dist/components/slider/anatomy/label.mjs +0 -20
  406. package/dist/components/slider/anatomy/marker-group.d.mts +0 -10
  407. package/dist/components/slider/anatomy/marker-group.mjs +0 -20
  408. package/dist/components/slider/anatomy/marker.d.mts +0 -11
  409. package/dist/components/slider/anatomy/marker.mjs +0 -20
  410. package/dist/components/slider/anatomy/range.d.mts +0 -10
  411. package/dist/components/slider/anatomy/range.mjs +0 -20
  412. package/dist/components/slider/anatomy/root-context.d.mts +0 -11
  413. package/dist/components/slider/anatomy/root-context.mjs +0 -13
  414. package/dist/components/slider/anatomy/root-provider.d.mts +0 -13
  415. package/dist/components/slider/anatomy/root-provider.mjs +0 -21
  416. package/dist/components/slider/anatomy/root.d.mts +0 -11
  417. package/dist/components/slider/anatomy/root.mjs +0 -25
  418. package/dist/components/slider/anatomy/thumb.d.mts +0 -11
  419. package/dist/components/slider/anatomy/thumb.mjs +0 -26
  420. package/dist/components/slider/anatomy/track.d.mts +0 -10
  421. package/dist/components/slider/anatomy/track.mjs +0 -20
  422. package/dist/components/slider/anatomy/value-text.d.mts +0 -10
  423. package/dist/components/slider/anatomy/value-text.mjs +0 -20
  424. package/dist/components/slider/index.d.mts +0 -14
  425. package/dist/components/slider/modules/anatomy.d.mts +0 -30
  426. package/dist/components/slider/modules/anatomy.mjs +0 -31
  427. package/dist/components/slider/modules/provider.d.mts +0 -8
  428. package/dist/components/slider/modules/provider.mjs +0 -15
  429. package/dist/components/slider/modules/root-context.mjs +0 -8
  430. package/dist/components/slider/modules/thumb-context.mjs +0 -8
  431. package/dist/components/switch/anatomy/control.d.mts +0 -10
  432. package/dist/components/switch/anatomy/control.mjs +0 -20
  433. package/dist/components/switch/anatomy/hidden-input.d.mts +0 -10
  434. package/dist/components/switch/anatomy/hidden-input.mjs +0 -17
  435. package/dist/components/switch/anatomy/label.d.mts +0 -10
  436. package/dist/components/switch/anatomy/label.mjs +0 -20
  437. package/dist/components/switch/anatomy/root-context.d.mts +0 -11
  438. package/dist/components/switch/anatomy/root-context.mjs +0 -13
  439. package/dist/components/switch/anatomy/root-provider.d.mts +0 -13
  440. package/dist/components/switch/anatomy/root-provider.mjs +0 -21
  441. package/dist/components/switch/anatomy/root.d.mts +0 -11
  442. package/dist/components/switch/anatomy/root.mjs +0 -25
  443. package/dist/components/switch/anatomy/thumb.d.mts +0 -10
  444. package/dist/components/switch/anatomy/thumb.mjs +0 -20
  445. package/dist/components/switch/index.d.mts +0 -9
  446. package/dist/components/switch/modules/anatomy.d.mts +0 -20
  447. package/dist/components/switch/modules/anatomy.mjs +0 -21
  448. package/dist/components/switch/modules/provider.d.mts +0 -8
  449. package/dist/components/switch/modules/provider.mjs +0 -15
  450. package/dist/components/switch/modules/root-context.mjs +0 -8
  451. package/dist/components/tabs/anatomy/content.d.mts +0 -11
  452. package/dist/components/tabs/anatomy/content.mjs +0 -22
  453. package/dist/components/tabs/anatomy/indicator.d.mts +0 -10
  454. package/dist/components/tabs/anatomy/indicator.mjs +0 -17
  455. package/dist/components/tabs/anatomy/list.d.mts +0 -10
  456. package/dist/components/tabs/anatomy/list.mjs +0 -20
  457. package/dist/components/tabs/anatomy/root-context.d.mts +0 -11
  458. package/dist/components/tabs/anatomy/root-context.mjs +0 -13
  459. package/dist/components/tabs/anatomy/root-provider.d.mts +0 -13
  460. package/dist/components/tabs/anatomy/root-provider.mjs +0 -21
  461. package/dist/components/tabs/anatomy/root.d.mts +0 -11
  462. package/dist/components/tabs/anatomy/root.mjs +0 -25
  463. package/dist/components/tabs/anatomy/trigger.d.mts +0 -11
  464. package/dist/components/tabs/anatomy/trigger.mjs +0 -22
  465. package/dist/components/tabs/index.d.mts +0 -9
  466. package/dist/components/tabs/modules/anatomy.d.mts +0 -20
  467. package/dist/components/tabs/modules/anatomy.mjs +0 -21
  468. package/dist/components/tabs/modules/provider.d.mts +0 -8
  469. package/dist/components/tabs/modules/provider.mjs +0 -15
  470. package/dist/components/tabs/modules/root-context.mjs +0 -8
  471. package/dist/components/tags-input/anatomy/clear-trigger.d.mts +0 -10
  472. package/dist/components/tags-input/anatomy/clear-trigger.mjs +0 -20
  473. package/dist/components/tags-input/anatomy/control.d.mts +0 -10
  474. package/dist/components/tags-input/anatomy/control.mjs +0 -20
  475. package/dist/components/tags-input/anatomy/hidden-input.d.mts +0 -10
  476. package/dist/components/tags-input/anatomy/hidden-input.mjs +0 -17
  477. package/dist/components/tags-input/anatomy/input.d.mts +0 -10
  478. package/dist/components/tags-input/anatomy/input.mjs +0 -17
  479. package/dist/components/tags-input/anatomy/item-delete-trigger.d.mts +0 -10
  480. package/dist/components/tags-input/anatomy/item-delete-trigger.mjs +0 -22
  481. package/dist/components/tags-input/anatomy/item-input.d.mts +0 -10
  482. package/dist/components/tags-input/anatomy/item-input.mjs +0 -19
  483. package/dist/components/tags-input/anatomy/item-preview.d.mts +0 -10
  484. package/dist/components/tags-input/anatomy/item-preview.mjs +0 -22
  485. package/dist/components/tags-input/anatomy/item-text.d.mts +0 -10
  486. package/dist/components/tags-input/anatomy/item-text.mjs +0 -22
  487. package/dist/components/tags-input/anatomy/item.d.mts +0 -11
  488. package/dist/components/tags-input/anatomy/item.mjs +0 -26
  489. package/dist/components/tags-input/anatomy/label.d.mts +0 -10
  490. package/dist/components/tags-input/anatomy/label.mjs +0 -20
  491. package/dist/components/tags-input/anatomy/root-context.d.mts +0 -11
  492. package/dist/components/tags-input/anatomy/root-context.mjs +0 -13
  493. package/dist/components/tags-input/anatomy/root-provider.d.mts +0 -13
  494. package/dist/components/tags-input/anatomy/root-provider.mjs +0 -21
  495. package/dist/components/tags-input/anatomy/root.d.mts +0 -11
  496. package/dist/components/tags-input/anatomy/root.mjs +0 -25
  497. package/dist/components/tags-input/index.d.mts +0 -15
  498. package/dist/components/tags-input/modules/anatomy.d.mts +0 -32
  499. package/dist/components/tags-input/modules/anatomy.mjs +0 -33
  500. package/dist/components/tags-input/modules/item-context.mjs +0 -8
  501. package/dist/components/tags-input/modules/provider.d.mts +0 -8
  502. package/dist/components/tags-input/modules/provider.mjs +0 -15
  503. package/dist/components/tags-input/modules/root-context.mjs +0 -8
  504. package/dist/components/toast/anatomy/action-trigger.d.mts +0 -10
  505. package/dist/components/toast/anatomy/action-trigger.mjs +0 -20
  506. package/dist/components/toast/anatomy/close-trigger.d.mts +0 -10
  507. package/dist/components/toast/anatomy/close-trigger.mjs +0 -21
  508. package/dist/components/toast/anatomy/description.d.mts +0 -10
  509. package/dist/components/toast/anatomy/description.mjs +0 -20
  510. package/dist/components/toast/anatomy/group.d.mts +0 -15
  511. package/dist/components/toast/anatomy/group.mjs +0 -28
  512. package/dist/components/toast/anatomy/message.d.mts +0 -10
  513. package/dist/components/toast/anatomy/message.mjs +0 -17
  514. package/dist/components/toast/anatomy/root-context.d.mts +0 -12
  515. package/dist/components/toast/anatomy/root-context.mjs +0 -13
  516. package/dist/components/toast/anatomy/root.d.mts +0 -13
  517. package/dist/components/toast/anatomy/root.mjs +0 -56
  518. package/dist/components/toast/anatomy/title.d.mts +0 -10
  519. package/dist/components/toast/anatomy/title.mjs +0 -20
  520. package/dist/components/toast/index.d.mts +0 -11
  521. package/dist/components/toast/index.mjs +0 -4
  522. package/dist/components/toast/modules/anatomy.d.mts +0 -22
  523. package/dist/components/toast/modules/anatomy.mjs +0 -23
  524. package/dist/components/toast/modules/group-context.mjs +0 -8
  525. package/dist/components/toast/modules/root-context.mjs +0 -8
  526. package/dist/components/toggle-group/anatomy/item.d.mts +0 -11
  527. package/dist/components/toggle-group/anatomy/item.mjs +0 -22
  528. package/dist/components/toggle-group/anatomy/root-context.d.mts +0 -11
  529. package/dist/components/toggle-group/anatomy/root-context.mjs +0 -13
  530. package/dist/components/toggle-group/anatomy/root-provider.d.mts +0 -13
  531. package/dist/components/toggle-group/anatomy/root-provider.mjs +0 -21
  532. package/dist/components/toggle-group/anatomy/root.d.mts +0 -11
  533. package/dist/components/toggle-group/anatomy/root.mjs +0 -25
  534. package/dist/components/toggle-group/index.d.mts +0 -6
  535. package/dist/components/toggle-group/modules/anatomy.d.mts +0 -14
  536. package/dist/components/toggle-group/modules/anatomy.mjs +0 -15
  537. package/dist/components/toggle-group/modules/provider.d.mts +0 -8
  538. package/dist/components/toggle-group/modules/provider.mjs +0 -15
  539. package/dist/components/toggle-group/modules/root-context.mjs +0 -8
  540. package/dist/components/tooltip/anatomy/arrow-tip.d.mts +0 -10
  541. package/dist/components/tooltip/anatomy/arrow-tip.mjs +0 -20
  542. package/dist/components/tooltip/anatomy/arrow.d.mts +0 -10
  543. package/dist/components/tooltip/anatomy/arrow.mjs +0 -20
  544. package/dist/components/tooltip/anatomy/content.d.mts +0 -10
  545. package/dist/components/tooltip/anatomy/content.mjs +0 -20
  546. package/dist/components/tooltip/anatomy/positioner.d.mts +0 -10
  547. package/dist/components/tooltip/anatomy/positioner.mjs +0 -20
  548. package/dist/components/tooltip/anatomy/root-context.d.mts +0 -11
  549. package/dist/components/tooltip/anatomy/root-context.mjs +0 -13
  550. package/dist/components/tooltip/anatomy/root-provider.d.mts +0 -12
  551. package/dist/components/tooltip/anatomy/root-provider.mjs +0 -15
  552. package/dist/components/tooltip/anatomy/root.d.mts +0 -10
  553. package/dist/components/tooltip/anatomy/root.mjs +0 -19
  554. package/dist/components/tooltip/anatomy/trigger.d.mts +0 -10
  555. package/dist/components/tooltip/anatomy/trigger.mjs +0 -20
  556. package/dist/components/tooltip/index.d.mts +0 -10
  557. package/dist/components/tooltip/modules/anatomy.d.mts +0 -22
  558. package/dist/components/tooltip/modules/anatomy.mjs +0 -23
  559. package/dist/components/tooltip/modules/provider.d.mts +0 -8
  560. package/dist/components/tooltip/modules/provider.mjs +0 -15
  561. package/dist/components/tooltip/modules/root-context.mjs +0 -8
  562. package/dist/components/tree-view/anatomy/branch-content.d.mts +0 -10
  563. package/dist/components/tree-view/anatomy/branch-content.mjs +0 -22
  564. package/dist/components/tree-view/anatomy/branch-control.d.mts +0 -10
  565. package/dist/components/tree-view/anatomy/branch-control.mjs +0 -22
  566. package/dist/components/tree-view/anatomy/branch-indent-guide.d.mts +0 -10
  567. package/dist/components/tree-view/anatomy/branch-indent-guide.mjs +0 -22
  568. package/dist/components/tree-view/anatomy/branch-indicator.d.mts +0 -10
  569. package/dist/components/tree-view/anatomy/branch-indicator.mjs +0 -23
  570. package/dist/components/tree-view/anatomy/branch-text.d.mts +0 -10
  571. package/dist/components/tree-view/anatomy/branch-text.mjs +0 -22
  572. package/dist/components/tree-view/anatomy/branch.d.mts +0 -10
  573. package/dist/components/tree-view/anatomy/branch.mjs +0 -22
  574. package/dist/components/tree-view/anatomy/item.d.mts +0 -10
  575. package/dist/components/tree-view/anatomy/item.mjs +0 -22
  576. package/dist/components/tree-view/anatomy/label.d.mts +0 -17
  577. package/dist/components/tree-view/anatomy/label.mjs +0 -21
  578. package/dist/components/tree-view/anatomy/node-context.d.mts +0 -11
  579. package/dist/components/tree-view/anatomy/node-context.mjs +0 -13
  580. package/dist/components/tree-view/anatomy/node-provider.d.mts +0 -12
  581. package/dist/components/tree-view/anatomy/node-provider.mjs +0 -15
  582. package/dist/components/tree-view/anatomy/root-context.d.mts +0 -11
  583. package/dist/components/tree-view/anatomy/root-context.mjs +0 -13
  584. package/dist/components/tree-view/anatomy/root-provider.d.mts +0 -13
  585. package/dist/components/tree-view/anatomy/root-provider.mjs +0 -21
  586. package/dist/components/tree-view/anatomy/root.d.mts +0 -11
  587. package/dist/components/tree-view/anatomy/root.mjs +0 -25
  588. package/dist/components/tree-view/anatomy/tree.d.mts +0 -10
  589. package/dist/components/tree-view/anatomy/tree.mjs +0 -20
  590. package/dist/components/tree-view/index.d.mts +0 -18
  591. package/dist/components/tree-view/index.mjs +0 -5
  592. package/dist/components/tree-view/modules/anatomy.d.mts +0 -34
  593. package/dist/components/tree-view/modules/anatomy.mjs +0 -35
  594. package/dist/components/tree-view/modules/node-context.mjs +0 -8
  595. package/dist/components/tree-view/modules/provider.d.mts +0 -8
  596. package/dist/components/tree-view/modules/provider.mjs +0 -15
  597. package/dist/components/tree-view/modules/root-context.mjs +0 -8
  598. package/dist/hooks/use-list-collection.d.mts +0 -7
  599. package/dist/hooks/use-list-collection.mjs +0 -10
  600. package/dist/internal/components/calendar.mjs +0 -36
  601. package/dist/internal/components/check.mjs +0 -25
  602. package/dist/internal/components/chevron-down.mjs +0 -25
  603. package/dist/internal/components/chevron-left.mjs +0 -25
  604. package/dist/internal/components/chevron-right.mjs +0 -25
  605. package/dist/internal/components/star-empty.mjs +0 -27
  606. package/dist/internal/components/star-full.mjs +0 -25
  607. package/dist/internal/components/star-half.mjs +0 -41
  608. package/dist/internal/components/x.mjs +0 -25
  609. package/dist/internal/create-context.mjs +0 -10
  610. package/dist/internal/html-attributes.d.mts +0 -9
  611. package/dist/internal/props-with-element.d.mts +0 -13
  612. package/dist/internal/union.d.mts +0 -5
package/dist/index.mjs CHANGED
@@ -1,50 +1,3698 @@
1
- import { useAccordion } from "./components/accordion/modules/provider.mjs";
2
- import { Accordion } from "./components/accordion/modules/anatomy.mjs";
3
- import { AppBar } from "./components/app-bar/modules/anatomy.mjs";
4
- import { useAvatar } from "./components/avatar/modules/provider.mjs";
5
- import { Avatar } from "./components/avatar/modules/anatomy.mjs";
6
- import { useCollapsible } from "./components/collapsible/modules/provider.mjs";
7
- import { Collapsible } from "./components/collapsible/modules/anatomy.mjs";
8
- import { useCombobox } from "./components/combobox/modules/provider.mjs";
9
- import { Combobox } from "./components/combobox/modules/anatomy.mjs";
10
- import { useDatePicker } from "./components/date-picker/modules/provider.mjs";
11
- import { DatePicker } from "./components/date-picker/modules/anatomy.mjs";
12
- import { parseDate } from "./components/date-picker/index.mjs";
13
- import { useDialog } from "./components/dialog/modules/provider.mjs";
14
- import { Dialog } from "./components/dialog/modules/anatomy.mjs";
15
- import { useFileUpload } from "./components/file-upload/modules/provider.mjs";
16
- import { FileUpload } from "./components/file-upload/modules/anatomy.mjs";
17
- import { useListbox } from "./components/listbox/modules/provider.mjs";
18
- import { Listbox } from "./components/listbox/modules/anatomy.mjs";
19
- import { Navigation } from "./components/navigation/modules/anatomy.mjs";
20
- import { usePagination } from "./components/pagination/modules/provider.mjs";
21
- import { Pagination } from "./components/pagination/modules/anatomy.mjs";
22
- import { usePopover } from "./components/popover/modules/provider.mjs";
23
- import { Popover } from "./components/popover/modules/anatomy.mjs";
24
- import { Portal } from "./components/portal/modules/anatomy.mjs";
25
- import { useProgress } from "./components/progress/modules/provider.mjs";
26
- import { Progress } from "./components/progress/modules/anatomy.mjs";
27
- import { useRatingGroup } from "./components/rating-group/modules/provider.mjs";
28
- import { RatingGroup } from "./components/rating-group/modules/anatomy.mjs";
29
- import { useSegmentedControl } from "./components/segmented-control/modules/provider.mjs";
30
- import { SegmentedControl } from "./components/segmented-control/modules/anatomy.mjs";
31
- import { useSlider } from "./components/slider/modules/provider.mjs";
32
- import { Slider } from "./components/slider/modules/anatomy.mjs";
33
- import { useSwitch } from "./components/switch/modules/provider.mjs";
34
- import { Switch } from "./components/switch/modules/anatomy.mjs";
35
- import { useTabs } from "./components/tabs/modules/provider.mjs";
36
- import { Tabs } from "./components/tabs/modules/anatomy.mjs";
37
- import { useTagsInput } from "./components/tags-input/modules/provider.mjs";
38
- import { TagsInput } from "./components/tags-input/modules/anatomy.mjs";
39
- import { Toast } from "./components/toast/modules/anatomy.mjs";
40
- import { createToaster } from "./components/toast/index.mjs";
41
- import { useToggleGroup } from "./components/toggle-group/modules/provider.mjs";
42
- import { ToggleGroup } from "./components/toggle-group/modules/anatomy.mjs";
43
- import { useTooltip } from "./components/tooltip/modules/provider.mjs";
44
- import { Tooltip } from "./components/tooltip/modules/anatomy.mjs";
45
- import { useTreeView } from "./components/tree-view/modules/provider.mjs";
46
- import { TreeView } from "./components/tree-view/modules/anatomy.mjs";
47
- import { createTreeViewCollection } from "./components/tree-view/index.mjs";
48
- import { useListCollection } from "./hooks/use-list-collection.mjs";
49
-
50
- export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, Listbox, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Switch, Tabs, TagsInput, Toast, ToggleGroup, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
1
+ import { Children, createContext, use, useId } from "react";
2
+ import { connect, machine, splitItemProps, splitProps } from "@zag-js/accordion";
3
+ import { Portal as Portal$1, mergeProps, normalizeProps, useMachine } from "@zag-js/react";
4
+ import { classesAccordion, classesAppBar, classesAvatar, classesCollapsible, classesCombobox, classesDatePicker, classesDialog, classesFileUpload, classesListbox, classesNavigation, classesPagination, classesPopover, classesProgress, classesRatingGroup, classesSegmentedControl, classesSlider, classesSwitch, classesTabs, classesTagsInput, classesToast, classesToggleGroup, classesTooltip, classesTreeView } from "@skeletonlabs/skeleton-common";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { connect as connect$1, machine as machine$1, splitProps as splitProps$1 } from "@zag-js/avatar";
7
+ import { connect as connect$2, machine as machine$2, splitProps as splitProps$2 } from "@zag-js/collapsible";
8
+ import { connect as connect$3, machine as machine$3, splitItemGroupLabelProps, splitItemGroupProps, splitItemProps as splitItemProps$1, splitProps as splitProps$3 } from "@zag-js/combobox";
9
+ import { connect as connect$4, machine as machine$4, parse as parseDate, splitInputProps, splitPresetTriggerProps, splitProps as splitProps$4, splitTableCellProps, splitViewProps } from "@zag-js/date-picker";
10
+ import { connect as connect$5, machine as machine$5, splitProps as splitProps$5 } from "@zag-js/dialog";
11
+ import { connect as connect$6, machine as machine$6, splitItemProps as splitItemProps$2, splitProps as splitProps$6 } from "@zag-js/file-upload";
12
+ import { connect as connect$7, machine as machine$7, splitItemGroupLabelProps as splitItemGroupLabelProps$1, splitItemGroupProps as splitItemGroupProps$1, splitItemProps as splitItemProps$3, splitProps as splitProps$7 } from "@zag-js/listbox";
13
+ import { connect as connect$8, machine as machine$8, splitEllipsisProps, splitItemProps as splitItemProps$4, splitProps as splitProps$8 } from "@zag-js/pagination";
14
+ import { connect as connect$9, machine as machine$9, splitProps as splitProps$9 } from "@zag-js/popover";
15
+ import { createPortal } from "react-dom";
16
+ import { connect as connect$10, machine as machine$10, splitProps as splitProps$10 } from "@zag-js/progress";
17
+ import { connect as connect$11, machine as machine$11, splitItemProps as splitItemProps$5, splitProps as splitProps$11 } from "@zag-js/rating-group";
18
+ import { connect as connect$12, machine as machine$12, splitItemProps as splitItemProps$6, splitProps as splitProps$12 } from "@zag-js/radio-group";
19
+ import { connect as connect$13, machine as machine$13, splitProps as splitProps$13, splitThumbProps } from "@zag-js/slider";
20
+ import { connect as connect$14, machine as machine$14, splitProps as splitProps$14 } from "@zag-js/switch";
21
+ import { connect as connect$15, machine as machine$15, splitContentProps, splitProps as splitProps$15, splitTriggerProps } from "@zag-js/tabs";
22
+ import { connect as connect$16, machine as machine$16, splitItemProps as splitItemProps$7, splitProps as splitProps$16 } from "@zag-js/tags-input";
23
+ import { connect as connect$17, createStore as createToaster, group, machine as machine$17 } from "@zag-js/toast";
24
+ import { connect as connect$18, machine as machine$18, splitItemProps as splitItemProps$8, splitProps as splitProps$17 } from "@zag-js/toggle-group";
25
+ import { connect as connect$19, machine as machine$19, splitProps as splitProps$18 } from "@zag-js/tooltip";
26
+ import { collection as createTreeViewCollection, connect as connect$20, machine as machine$20, splitProps as splitProps$19 } from "@zag-js/tree-view";
27
+ import { ListCollection } from "@zag-js/collection";
28
+
29
+ //#region src/internal/create-context.ts
30
+ function createContext$1(defaultValue) {
31
+ return createContext(defaultValue);
32
+ }
33
+
34
+ //#endregion
35
+ //#region src/components/accordion/modules/item-context.ts
36
+ const ItemContext$5 = createContext$1();
37
+
38
+ //#endregion
39
+ //#region src/components/accordion/modules/provider.ts
40
+ function useAccordion(props = {}) {
41
+ return connect(useMachine(machine, {
42
+ id: useId(),
43
+ ...props
44
+ }), normalizeProps);
45
+ }
46
+
47
+ //#endregion
48
+ //#region src/components/accordion/modules/root-context.ts
49
+ const RootContext$42 = createContext$1();
50
+
51
+ //#endregion
52
+ //#region src/components/accordion/anatomy/item-content.tsx
53
+ function ItemContent(props) {
54
+ const accordion = use(RootContext$42);
55
+ const itemProps = use(ItemContext$5);
56
+ const { element, children,...rest } = props;
57
+ const attributes = mergeProps(accordion.getItemContentProps(itemProps), { className: classesAccordion.itemContent }, rest);
58
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
59
+ ...attributes,
60
+ children
61
+ });
62
+ }
63
+
64
+ //#endregion
65
+ //#region src/components/accordion/anatomy/item-indicator.tsx
66
+ function ItemIndicator$2(props) {
67
+ const accordion = use(RootContext$42);
68
+ const itemProps = use(ItemContext$5);
69
+ const { element, children,...rest } = props;
70
+ const attributes = mergeProps(accordion.getItemIndicatorProps(itemProps), { className: classesAccordion.itemIndicator }, rest);
71
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
72
+ ...attributes,
73
+ children
74
+ });
75
+ }
76
+
77
+ //#endregion
78
+ //#region src/components/accordion/anatomy/item-trigger.tsx
79
+ function ItemTrigger(props) {
80
+ const accordion = use(RootContext$42);
81
+ const itemProps = use(ItemContext$5);
82
+ const { element, children,...rest } = props;
83
+ const attributes = mergeProps(accordion.getItemTriggerProps(itemProps), { className: classesAccordion.itemTrigger }, rest);
84
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
85
+ ...attributes,
86
+ children
87
+ });
88
+ }
89
+
90
+ //#endregion
91
+ //#region src/components/accordion/anatomy/item.tsx
92
+ function Item$9(props) {
93
+ const accordion = use(RootContext$42);
94
+ const [itemProps, componentProps] = splitItemProps(props);
95
+ const { element, children,...rest } = componentProps;
96
+ const attributes = mergeProps(accordion.getItemProps(itemProps), { className: classesAccordion.item }, rest);
97
+ return /* @__PURE__ */ jsx(ItemContext$5.Provider, {
98
+ value: itemProps,
99
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
100
+ ...attributes,
101
+ children
102
+ })
103
+ });
104
+ }
105
+
106
+ //#endregion
107
+ //#region src/components/accordion/anatomy/root-context.tsx
108
+ function RootContext$41(props) {
109
+ const accordion = use(RootContext$42);
110
+ const { children } = props;
111
+ return children(accordion);
112
+ }
113
+
114
+ //#endregion
115
+ //#region src/components/accordion/anatomy/root-provider.tsx
116
+ function RootProvider$14(props) {
117
+ const { element, children, value: accordion,...rest } = props;
118
+ const attributes = mergeProps(accordion.getRootProps(), { className: classesAccordion.root }, rest);
119
+ return /* @__PURE__ */ jsx(RootContext$42.Provider, {
120
+ value: accordion,
121
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
122
+ ...attributes,
123
+ children
124
+ })
125
+ });
126
+ }
127
+
128
+ //#endregion
129
+ //#region src/components/accordion/anatomy/root.tsx
130
+ function Root$16(props) {
131
+ const [accordionProps, componentProps] = splitProps(props);
132
+ const { element, children,...rest } = componentProps;
133
+ const accordion = useAccordion(accordionProps);
134
+ const attributes = mergeProps(accordion.getRootProps(), { className: classesAccordion.root }, rest);
135
+ return /* @__PURE__ */ jsx(RootContext$42.Provider, {
136
+ value: accordion,
137
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
138
+ ...attributes,
139
+ children
140
+ })
141
+ });
142
+ }
143
+
144
+ //#endregion
145
+ //#region src/components/accordion/modules/anatomy.ts
146
+ const Accordion = Object.assign(Root$16, {
147
+ Provider: RootProvider$14,
148
+ Context: RootContext$41,
149
+ Item: Item$9,
150
+ ItemTrigger,
151
+ ItemIndicator: ItemIndicator$2,
152
+ ItemContent
153
+ });
154
+
155
+ //#endregion
156
+ //#region src/components/app-bar/anatomy/headline.tsx
157
+ function AppBarHeadline(props) {
158
+ const { element, children,...rest } = props;
159
+ const attributes = mergeProps({ className: classesAppBar.headline }, rest);
160
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
161
+ ...attributes,
162
+ children
163
+ });
164
+ }
165
+
166
+ //#endregion
167
+ //#region src/components/app-bar/anatomy/lead.tsx
168
+ function AppBarLead(props) {
169
+ const { element, children,...rest } = props;
170
+ const attributes = mergeProps({ className: classesAppBar.lead }, rest);
171
+ return element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
172
+ ...attributes,
173
+ children
174
+ });
175
+ }
176
+
177
+ //#endregion
178
+ //#region src/components/app-bar/anatomy/root.tsx
179
+ function AppBarRoot(props) {
180
+ const { element, children,...rest } = props;
181
+ const attributes = mergeProps({ className: classesAppBar.root }, rest);
182
+ return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
183
+ ...attributes,
184
+ children
185
+ });
186
+ }
187
+
188
+ //#endregion
189
+ //#region src/components/app-bar/anatomy/toolbar.tsx
190
+ function AppBarToolbar(props) {
191
+ const { element, children,...rest } = props;
192
+ const attributes = mergeProps({ className: classesAppBar.toolbar }, rest);
193
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
194
+ ...attributes,
195
+ children
196
+ });
197
+ }
198
+
199
+ //#endregion
200
+ //#region src/components/app-bar/anatomy/trail.tsx
201
+ function AppBarTrail(props) {
202
+ const { element, children,...rest } = props;
203
+ const attributes = mergeProps({ className: classesAppBar.trail }, rest);
204
+ return element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
205
+ ...attributes,
206
+ children
207
+ });
208
+ }
209
+
210
+ //#endregion
211
+ //#region src/components/app-bar/modules/anatomy.ts
212
+ const AppBar = Object.assign(AppBarRoot, {
213
+ Toolbar: AppBarToolbar,
214
+ Lead: AppBarLead,
215
+ Headline: AppBarHeadline,
216
+ Trail: AppBarTrail
217
+ });
218
+
219
+ //#endregion
220
+ //#region src/components/avatar/modules/root-context.ts
221
+ const RootContext$40 = createContext$1();
222
+
223
+ //#endregion
224
+ //#region src/components/avatar/anatomy/fallback.tsx
225
+ function Fallback(props) {
226
+ const avatar = use(RootContext$40);
227
+ const { element, children,...rest } = props;
228
+ const attributes = mergeProps(avatar.getFallbackProps(), { className: classesAvatar.fallback }, rest);
229
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
230
+ ...attributes,
231
+ children
232
+ });
233
+ }
234
+
235
+ //#endregion
236
+ //#region src/components/avatar/anatomy/image.tsx
237
+ function Image(props) {
238
+ const avatar = use(RootContext$40);
239
+ const { element,...rest } = props;
240
+ const attributes = mergeProps(avatar.getImageProps(), { className: classesAvatar.image }, rest);
241
+ return element ? element(attributes) : /* @__PURE__ */ jsx("img", { ...attributes });
242
+ }
243
+
244
+ //#endregion
245
+ //#region src/components/avatar/anatomy/root-context.tsx
246
+ function RootContext$39(props) {
247
+ const avatar = use(RootContext$40);
248
+ const { children } = props;
249
+ return children(avatar);
250
+ }
251
+
252
+ //#endregion
253
+ //#region src/components/avatar/anatomy/root-provider.tsx
254
+ function AvatarRootProvider(props) {
255
+ const { element, children, value: avatar,...rest } = props;
256
+ const attributes = mergeProps(avatar.getRootProps(), { className: classesAvatar.root }, rest);
257
+ return /* @__PURE__ */ jsx(RootContext$40.Provider, {
258
+ value: avatar,
259
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
260
+ ...attributes,
261
+ children
262
+ })
263
+ });
264
+ }
265
+
266
+ //#endregion
267
+ //#region src/components/avatar/modules/provider.ts
268
+ function useAvatar(props = {}) {
269
+ return connect$1(useMachine(machine$1, {
270
+ id: useId(),
271
+ ...props
272
+ }), normalizeProps);
273
+ }
274
+
275
+ //#endregion
276
+ //#region src/components/avatar/anatomy/root.tsx
277
+ function AvatarRoot(props) {
278
+ const [avatarProps, componentProps] = splitProps$1(props);
279
+ const { element, children,...rest } = componentProps;
280
+ const avatar = useAvatar(avatarProps);
281
+ const attributes = mergeProps(avatar.getRootProps(), { className: classesAvatar.root }, rest);
282
+ return /* @__PURE__ */ jsx(RootContext$40.Provider, {
283
+ value: avatar,
284
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
285
+ ...attributes,
286
+ children
287
+ })
288
+ });
289
+ }
290
+
291
+ //#endregion
292
+ //#region src/components/avatar/modules/anatomy.ts
293
+ const Avatar = Object.assign(AvatarRoot, {
294
+ Provider: AvatarRootProvider,
295
+ Context: RootContext$39,
296
+ Image,
297
+ Fallback
298
+ });
299
+
300
+ //#endregion
301
+ //#region src/components/collapsible/modules/root-context.ts
302
+ const RootContext$38 = createContext$1();
303
+
304
+ //#endregion
305
+ //#region src/components/collapsible/anatomy/content.tsx
306
+ function Content$7(props) {
307
+ const collapsible = use(RootContext$38);
308
+ const { element, children,...rest } = props;
309
+ const attributes = mergeProps(collapsible.getContentProps(), { className: classesCollapsible.content }, rest);
310
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
311
+ ...attributes,
312
+ children
313
+ });
314
+ }
315
+
316
+ //#endregion
317
+ //#region src/components/collapsible/anatomy/indicator.tsx
318
+ function Indicator$2(props) {
319
+ const collapsible = use(RootContext$38);
320
+ const { element, children,...rest } = props;
321
+ const attributes = mergeProps(collapsible.getIndicatorProps(), { className: classesCollapsible.indicator }, rest);
322
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
323
+ ...attributes,
324
+ children
325
+ });
326
+ }
327
+
328
+ //#endregion
329
+ //#region src/components/collapsible/anatomy/root-context.tsx
330
+ function RootContext$37(props) {
331
+ const collapsible = use(RootContext$38);
332
+ const { children } = props;
333
+ return children(collapsible);
334
+ }
335
+
336
+ //#endregion
337
+ //#region src/components/collapsible/anatomy/root-provider.tsx
338
+ function CollapsibleRootProvider(props) {
339
+ const { element, children, value: collapsible,...rest } = props;
340
+ const attributes = mergeProps(collapsible.getRootProps(), { className: classesCollapsible.root }, rest);
341
+ return /* @__PURE__ */ jsx(RootContext$38.Provider, {
342
+ value: collapsible,
343
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
344
+ ...attributes,
345
+ children
346
+ })
347
+ });
348
+ }
349
+
350
+ //#endregion
351
+ //#region src/components/collapsible/modules/provider.ts
352
+ function useCollapsible(props = {}) {
353
+ return connect$2(useMachine(machine$2, {
354
+ id: useId(),
355
+ ...props
356
+ }), normalizeProps);
357
+ }
358
+
359
+ //#endregion
360
+ //#region src/components/collapsible/anatomy/root.tsx
361
+ function CollapsibleRoot(props) {
362
+ const [collapsibleProps, componentProps] = splitProps$2(props);
363
+ const { element, children,...rest } = componentProps;
364
+ const collapsible = useCollapsible(collapsibleProps);
365
+ const attributes = mergeProps(collapsible.getRootProps(), { className: classesCollapsible.root }, rest);
366
+ return /* @__PURE__ */ jsx(RootContext$38.Provider, {
367
+ value: collapsible,
368
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
369
+ ...attributes,
370
+ children
371
+ })
372
+ });
373
+ }
374
+
375
+ //#endregion
376
+ //#region src/components/collapsible/anatomy/trigger.tsx
377
+ function Trigger$7(props) {
378
+ const collapsible = use(RootContext$38);
379
+ const { element, children,...rest } = props;
380
+ const attributes = mergeProps(collapsible.getTriggerProps(), { className: classesCollapsible.trigger }, rest);
381
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
382
+ ...attributes,
383
+ children
384
+ });
385
+ }
386
+
387
+ //#endregion
388
+ //#region src/components/collapsible/modules/anatomy.ts
389
+ const Collapsible = Object.assign(CollapsibleRoot, {
390
+ Provider: CollapsibleRootProvider,
391
+ Context: RootContext$37,
392
+ Trigger: Trigger$7,
393
+ Indicator: Indicator$2,
394
+ Content: Content$7
395
+ });
396
+
397
+ //#endregion
398
+ //#region src/components/combobox/modules/root-context.ts
399
+ const RootContext$36 = createContext$1();
400
+
401
+ //#endregion
402
+ //#region src/components/combobox/anatomy/content.tsx
403
+ function Content$6(props) {
404
+ const combobox = use(RootContext$36);
405
+ const { element, children,...rest } = props;
406
+ const attributes = mergeProps(combobox.getContentProps(), { className: classesCombobox.content }, rest);
407
+ return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
408
+ ...attributes,
409
+ children
410
+ });
411
+ }
412
+
413
+ //#endregion
414
+ //#region src/components/combobox/anatomy/control.tsx
415
+ function Control$6(props) {
416
+ const combobox = use(RootContext$36);
417
+ const { element, children,...rest } = props;
418
+ const attributes = mergeProps(combobox.getControlProps(), { className: classesCombobox.control }, rest);
419
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
420
+ ...attributes,
421
+ children
422
+ });
423
+ }
424
+
425
+ //#endregion
426
+ //#region src/components/combobox/anatomy/input.tsx
427
+ function Input$3(props) {
428
+ const combobox = use(RootContext$36);
429
+ const { element,...rest } = props;
430
+ const attributes = mergeProps(combobox.getInputProps(), { className: classesCombobox.input }, rest);
431
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
432
+ }
433
+
434
+ //#endregion
435
+ //#region src/components/combobox/modules/item-group-context.ts
436
+ const ItemGroupContext$1 = createContext$1();
437
+
438
+ //#endregion
439
+ //#region src/components/combobox/anatomy/item-group-label.tsx
440
+ function ItemGroupLabel$1(props) {
441
+ const combobox = use(RootContext$36);
442
+ const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps({
443
+ htmlFor: use(ItemGroupContext$1).id,
444
+ ...props
445
+ });
446
+ const { element, children,...rest } = componentProps;
447
+ const attributes = mergeProps(combobox.getItemGroupLabelProps(itemGroupLabelProps), { className: classesCombobox.itemGroupLabel }, rest);
448
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
449
+ ...attributes,
450
+ children
451
+ });
452
+ }
453
+
454
+ //#endregion
455
+ //#region src/components/combobox/anatomy/item-group.tsx
456
+ function ItemGroup$2(props) {
457
+ const combobox = use(RootContext$36);
458
+ const [itemGroupProps, componentProps] = splitItemGroupProps({
459
+ id: useId(),
460
+ ...props
461
+ });
462
+ const { element, children,...rest } = componentProps;
463
+ const attributes = mergeProps(combobox.getItemGroupProps(itemGroupProps), { className: classesCombobox.itemGroup }, rest);
464
+ return /* @__PURE__ */ jsx(ItemGroupContext$1.Provider, {
465
+ value: itemGroupProps,
466
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
467
+ ...attributes,
468
+ children
469
+ })
470
+ });
471
+ }
472
+
473
+ //#endregion
474
+ //#region src/components/combobox/modules/item-context.ts
475
+ const ItemContext$4 = createContext$1();
476
+
477
+ //#endregion
478
+ //#region src/internal/components/check.tsx
479
+ function Check(props) {
480
+ const { ...rest } = props;
481
+ return /* @__PURE__ */ jsx("svg", {
482
+ ...mergeProps({
483
+ xmlns: "http://www.w3.org/2000/svg",
484
+ width: "24",
485
+ height: "24",
486
+ viewBox: "0 0 24 24",
487
+ fill: "none",
488
+ stroke: "currentColor",
489
+ strokeWidth: "2",
490
+ strokeLinecap: "round",
491
+ strokeLinejoin: "round"
492
+ }, rest),
493
+ children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
494
+ });
495
+ }
496
+
497
+ //#endregion
498
+ //#region src/components/combobox/anatomy/item-indicator.tsx
499
+ function ItemIndicator$1(props) {
500
+ const combobox = use(RootContext$36);
501
+ const itemProps = use(ItemContext$4);
502
+ const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }),...rest } = props;
503
+ const attributes = mergeProps(combobox.getItemIndicatorProps(itemProps), { className: classesCombobox.itemIndicator }, rest);
504
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
505
+ ...attributes,
506
+ children
507
+ });
508
+ }
509
+
510
+ //#endregion
511
+ //#region src/components/combobox/anatomy/item-text.tsx
512
+ function ItemText$3(props) {
513
+ const combobox = use(RootContext$36);
514
+ const itemProps = use(ItemContext$4);
515
+ const { element, children,...rest } = props;
516
+ const attributes = mergeProps(combobox.getItemTextProps(itemProps), { className: classesCombobox.itemText }, rest);
517
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
518
+ ...attributes,
519
+ children
520
+ });
521
+ }
522
+
523
+ //#endregion
524
+ //#region src/components/combobox/anatomy/item.tsx
525
+ function Item$8(props) {
526
+ const combobox = use(RootContext$36);
527
+ const [itemProps, componentProps] = splitItemProps$1(props);
528
+ const { element, children,...rest } = componentProps;
529
+ const attributes = mergeProps(combobox.getItemProps(itemProps), { className: classesCombobox.item }, rest);
530
+ return /* @__PURE__ */ jsx(ItemContext$4.Provider, {
531
+ value: itemProps,
532
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
533
+ ...attributes,
534
+ children
535
+ })
536
+ });
537
+ }
538
+
539
+ //#endregion
540
+ //#region src/components/combobox/anatomy/label.tsx
541
+ function Label$10(props) {
542
+ const combobox = use(RootContext$36);
543
+ const { element, children,...rest } = props;
544
+ const attributes = mergeProps(combobox.getLabelProps(), { className: classesCombobox.label }, rest);
545
+ return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
546
+ ...attributes,
547
+ children
548
+ });
549
+ }
550
+
551
+ //#endregion
552
+ //#region src/components/combobox/anatomy/positioner.tsx
553
+ function Positioner$4(props) {
554
+ const combobox = use(RootContext$36);
555
+ const { element, children,...rest } = props;
556
+ const attributes = mergeProps(combobox.getPositionerProps(), { className: classesCombobox.positioner }, rest);
557
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
558
+ ...attributes,
559
+ children
560
+ });
561
+ }
562
+
563
+ //#endregion
564
+ //#region src/components/combobox/anatomy/root-context.tsx
565
+ function RootContext$35(props) {
566
+ const combobox = use(RootContext$36);
567
+ const { children } = props;
568
+ return children(combobox);
569
+ }
570
+
571
+ //#endregion
572
+ //#region src/components/combobox/modules/provider.ts
573
+ function useCombobox(props = {}) {
574
+ return connect$3(useMachine(machine$3, {
575
+ id: useId(),
576
+ ...props
577
+ }), normalizeProps);
578
+ }
579
+
580
+ //#endregion
581
+ //#region src/components/combobox/anatomy/root-provider.tsx
582
+ function RootProvider$13(props) {
583
+ const { element, children, value: combobox,...rest } = props;
584
+ const attributes = mergeProps(combobox.getRootProps(), { className: classesCombobox.root }, rest);
585
+ return /* @__PURE__ */ jsx(RootContext$36.Provider, {
586
+ value: combobox,
587
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
588
+ ...attributes,
589
+ children
590
+ })
591
+ });
592
+ }
593
+
594
+ //#endregion
595
+ //#region src/components/combobox/anatomy/root.tsx
596
+ function Root$15(props) {
597
+ const [comboboxProps, componentProps] = splitProps$3(props);
598
+ const { element, children,...rest } = componentProps;
599
+ const combobox = useCombobox(comboboxProps);
600
+ const attributes = mergeProps(combobox.getRootProps(), { className: classesCombobox.root }, rest);
601
+ return /* @__PURE__ */ jsx(RootContext$36.Provider, {
602
+ value: combobox,
603
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
604
+ ...attributes,
605
+ children
606
+ })
607
+ });
608
+ }
609
+
610
+ //#endregion
611
+ //#region src/internal/components/chevron-down.tsx
612
+ function ChevronDown(props) {
613
+ const { ...rest } = props;
614
+ return /* @__PURE__ */ jsx("svg", {
615
+ ...mergeProps({
616
+ xmlns: "http://www.w3.org/2000/svg",
617
+ width: "24",
618
+ height: "24",
619
+ viewBox: "0 0 24 24",
620
+ fill: "none",
621
+ stroke: "currentColor",
622
+ strokeWidth: "2",
623
+ strokeLinecap: "round",
624
+ strokeLinejoin: "round"
625
+ }, rest),
626
+ children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" })
627
+ });
628
+ }
629
+
630
+ //#endregion
631
+ //#region src/components/combobox/anatomy/trigger.tsx
632
+ function Trigger$6(props) {
633
+ const combobox = use(RootContext$36);
634
+ const { element, children = /* @__PURE__ */ jsx(ChevronDown, {}),...rest } = props;
635
+ const attributes = mergeProps(combobox.getTriggerProps(), { className: classesCombobox.trigger }, rest);
636
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
637
+ ...attributes,
638
+ children
639
+ });
640
+ }
641
+
642
+ //#endregion
643
+ //#region src/components/combobox/modules/anatomy.ts
644
+ const Combobox = Object.assign(Root$15, {
645
+ Provider: RootProvider$13,
646
+ Context: RootContext$35,
647
+ Label: Label$10,
648
+ Control: Control$6,
649
+ Input: Input$3,
650
+ Trigger: Trigger$6,
651
+ Positioner: Positioner$4,
652
+ Content: Content$6,
653
+ ItemGroup: ItemGroup$2,
654
+ ItemGroupLabel: ItemGroupLabel$1,
655
+ Item: Item$8,
656
+ ItemText: ItemText$3,
657
+ ItemIndicator: ItemIndicator$1
658
+ });
659
+
660
+ //#endregion
661
+ //#region src/components/date-picker/modules/root-context.ts
662
+ const RootContext$34 = createContext$1();
663
+
664
+ //#endregion
665
+ //#region src/components/date-picker/anatomy/content.tsx
666
+ function Content$5(props) {
667
+ const datePicker = use(RootContext$34);
668
+ const { element, children,...rest } = props;
669
+ const attributes = mergeProps(datePicker.getContentProps(), { className: classesDatePicker.content }, rest);
670
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
671
+ ...attributes,
672
+ children
673
+ });
674
+ }
675
+
676
+ //#endregion
677
+ //#region src/components/date-picker/anatomy/control.tsx
678
+ function Control$5(props) {
679
+ const datePicker = use(RootContext$34);
680
+ const { element, children,...rest } = props;
681
+ const attributes = mergeProps(datePicker.getControlProps(), { className: classesDatePicker.control }, rest);
682
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
683
+ ...attributes,
684
+ children
685
+ });
686
+ }
687
+
688
+ //#endregion
689
+ //#region src/components/date-picker/anatomy/input.tsx
690
+ function Input$2(props) {
691
+ const datePicker = use(RootContext$34);
692
+ const [inputProps, componentProps] = splitInputProps(props);
693
+ const { element,...rest } = componentProps;
694
+ const attributes = mergeProps(datePicker.getInputProps(inputProps), { className: classesDatePicker.input }, rest);
695
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
696
+ }
697
+
698
+ //#endregion
699
+ //#region src/components/date-picker/anatomy/label.tsx
700
+ function Label$9(props) {
701
+ const datePicker = use(RootContext$34);
702
+ const { element, children,...rest } = props;
703
+ const attributes = mergeProps(datePicker.getLabelProps(), { className: classesDatePicker.label }, rest);
704
+ return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
705
+ ...attributes,
706
+ children
707
+ });
708
+ }
709
+
710
+ //#endregion
711
+ //#region src/components/date-picker/anatomy/month-select.tsx
712
+ function MonthSelect(props) {
713
+ const datePicker = use(RootContext$34);
714
+ const { element,...rest } = props;
715
+ const attributes = mergeProps(datePicker.getMonthSelectProps(), { className: classesDatePicker.monthSelect }, rest);
716
+ return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
717
+ ...attributes,
718
+ children: datePicker.getMonths().map((month, i) => /* @__PURE__ */ jsx("option", {
719
+ value: month.value,
720
+ children: month.label
721
+ }, i))
722
+ });
723
+ }
724
+
725
+ //#endregion
726
+ //#region src/components/date-picker/modules/view-context.ts
727
+ const ViewContext = createContext$1({ view: "day" });
728
+
729
+ //#endregion
730
+ //#region src/internal/components/chevron-right.tsx
731
+ function ChevronRight(props) {
732
+ const { ...rest } = props;
733
+ return /* @__PURE__ */ jsx("svg", {
734
+ ...mergeProps({
735
+ xmlns: "http://www.w3.org/2000/svg",
736
+ width: "24",
737
+ height: "24",
738
+ viewBox: "0 0 24 24",
739
+ fill: "none",
740
+ stroke: "currentColor",
741
+ strokeWidth: "2",
742
+ strokeLinecap: "round",
743
+ strokeLinejoin: "round"
744
+ }, rest),
745
+ children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
746
+ });
747
+ }
748
+
749
+ //#endregion
750
+ //#region src/components/date-picker/anatomy/next-trigger.tsx
751
+ function NextTrigger$1(props) {
752
+ const datePicker = use(RootContext$34);
753
+ const viewProps = use(ViewContext);
754
+ const { element, children = /* @__PURE__ */ jsx(ChevronRight, {}),...rest } = props;
755
+ const attributes = mergeProps(datePicker.getNextTriggerProps(viewProps), { className: classesDatePicker.nextTrigger }, rest);
756
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
757
+ ...attributes,
758
+ children
759
+ });
760
+ }
761
+
762
+ //#endregion
763
+ //#region src/components/date-picker/anatomy/positioner.tsx
764
+ function Positioner$3(props) {
765
+ const datePicker = use(RootContext$34);
766
+ const { element, children,...rest } = props;
767
+ const attributes = mergeProps(datePicker.getPositionerProps(), { className: classesDatePicker.positioner }, rest);
768
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
769
+ ...attributes,
770
+ children
771
+ });
772
+ }
773
+
774
+ //#endregion
775
+ //#region src/components/date-picker/anatomy/preset-trigger.tsx
776
+ function PresetTrigger(props) {
777
+ const datePicker = use(RootContext$34);
778
+ const [presetTriggerProps, componentProps] = splitPresetTriggerProps(props);
779
+ const { element, children,...rest } = componentProps;
780
+ const attributes = mergeProps(datePicker.getPresetTriggerProps(presetTriggerProps), { className: classesDatePicker.presetTrigger }, rest);
781
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
782
+ ...attributes,
783
+ children
784
+ });
785
+ }
786
+
787
+ //#endregion
788
+ //#region src/internal/components/chevron-left.tsx
789
+ function ChevronLeft(props) {
790
+ const { ...rest } = props;
791
+ return /* @__PURE__ */ jsx("svg", {
792
+ ...mergeProps({
793
+ xmlns: "http://www.w3.org/2000/svg",
794
+ width: "24",
795
+ height: "24",
796
+ viewBox: "0 0 24 24",
797
+ fill: "none",
798
+ stroke: "currentColor",
799
+ strokeWidth: "2",
800
+ strokeLinecap: "round",
801
+ strokeLinejoin: "round"
802
+ }, rest),
803
+ children: /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" })
804
+ });
805
+ }
806
+
807
+ //#endregion
808
+ //#region src/components/date-picker/anatomy/prev-trigger.tsx
809
+ function PrevTrigger$1(props) {
810
+ const datePicker = use(RootContext$34);
811
+ const viewProps = use(ViewContext);
812
+ const { element, children = /* @__PURE__ */ jsx(ChevronLeft, {}),...rest } = props;
813
+ const attributes = mergeProps(datePicker.getPrevTriggerProps(viewProps), { className: classesDatePicker.prevTrigger }, rest);
814
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
815
+ ...attributes,
816
+ children
817
+ });
818
+ }
819
+
820
+ //#endregion
821
+ //#region src/components/date-picker/anatomy/range-text.tsx
822
+ function RangeText(props) {
823
+ const datePicker = use(RootContext$34);
824
+ const rangeText = Array.from(new Set([datePicker.visibleRangeText.start, datePicker.visibleRangeText.end])).join(" - ");
825
+ const { element, children = rangeText,...rest } = props;
826
+ const attributes = mergeProps(datePicker.getRangeTextProps(), { className: classesDatePicker.rangeText }, rest);
827
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
828
+ ...attributes,
829
+ children
830
+ });
831
+ }
832
+
833
+ //#endregion
834
+ //#region src/components/date-picker/anatomy/root-context.tsx
835
+ function RootContext$33(props) {
836
+ const datePicker = use(RootContext$34);
837
+ const { children } = props;
838
+ return children(datePicker);
839
+ }
840
+
841
+ //#endregion
842
+ //#region src/components/date-picker/modules/provider.ts
843
+ function useDatePicker(props = {}) {
844
+ return connect$4(useMachine(machine$4, {
845
+ id: useId(),
846
+ ...props
847
+ }), normalizeProps);
848
+ }
849
+
850
+ //#endregion
851
+ //#region src/components/date-picker/anatomy/root-provider.tsx
852
+ function RootProvider$12(props) {
853
+ const { element, children, value: datePicker,...rest } = props;
854
+ const attributes = mergeProps(datePicker.getRootProps(), { className: classesDatePicker.root }, rest);
855
+ return /* @__PURE__ */ jsx(RootContext$34.Provider, {
856
+ value: datePicker,
857
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
858
+ ...attributes,
859
+ children
860
+ })
861
+ });
862
+ }
863
+
864
+ //#endregion
865
+ //#region src/components/date-picker/anatomy/root.tsx
866
+ function Root$14(props) {
867
+ const [datePickerProps, componentProps] = splitProps$4(props);
868
+ const { element, children,...rest } = componentProps;
869
+ const datePicker = useDatePicker(datePickerProps);
870
+ const attributes = mergeProps(datePicker.getRootProps(), { className: classesDatePicker.root }, rest);
871
+ return /* @__PURE__ */ jsx(RootContext$34.Provider, {
872
+ value: datePicker,
873
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
874
+ ...attributes,
875
+ children
876
+ })
877
+ });
878
+ }
879
+
880
+ //#endregion
881
+ //#region src/components/date-picker/anatomy/table-body.tsx
882
+ function TableBody(props) {
883
+ const datePicker = use(RootContext$34);
884
+ const viewProps = use(ViewContext);
885
+ const { element, children,...rest } = props;
886
+ const attributes = mergeProps(datePicker.getTableBodyProps(viewProps), { className: classesDatePicker.tableBody }, rest);
887
+ return element ? element(attributes) : /* @__PURE__ */ jsx("tbody", {
888
+ ...attributes,
889
+ children
890
+ });
891
+ }
892
+
893
+ //#endregion
894
+ //#region src/components/date-picker/modules/table-cell-context.ts
895
+ const TableCellContext = createContext$1();
896
+
897
+ //#endregion
898
+ //#region src/components/date-picker/anatomy/table-cell-trigger.tsx
899
+ function TableCellTrigger(props) {
900
+ const datePicker = use(RootContext$34);
901
+ const viewProps = use(ViewContext);
902
+ const tableCellProps = use(TableCellContext);
903
+ const { element, children,...rest } = props;
904
+ function getTableCellTriggerProps(tableCellProps$1) {
905
+ switch (viewProps.view) {
906
+ case "day": return datePicker.getDayTableCellTriggerProps(tableCellProps$1);
907
+ case "month": return datePicker.getMonthTableCellTriggerProps(tableCellProps$1);
908
+ case "year": return datePicker.getYearTableCellTriggerProps(tableCellProps$1);
909
+ }
910
+ }
911
+ const attributes = mergeProps(getTableCellTriggerProps(tableCellProps), { className: classesDatePicker.tableCellTrigger }, rest);
912
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
913
+ ...attributes,
914
+ children
915
+ });
916
+ }
917
+
918
+ //#endregion
919
+ //#region src/components/date-picker/anatomy/table-cell.tsx
920
+ function TableCell(props) {
921
+ const datePicker = use(RootContext$34);
922
+ const viewProps = use(ViewContext);
923
+ const [tableCellProps, componentProps] = splitTableCellProps(props);
924
+ const { element, children,...rest } = componentProps;
925
+ function getTableCellProps(tableCellProps$1) {
926
+ switch (viewProps.view) {
927
+ case "day": return datePicker.getDayTableCellProps(tableCellProps$1);
928
+ case "month": return datePicker.getMonthTableCellProps(tableCellProps$1);
929
+ case "year": return datePicker.getYearTableCellProps(tableCellProps$1);
930
+ }
931
+ }
932
+ const attributes = mergeProps(getTableCellProps(tableCellProps), { className: classesDatePicker.tableCell }, rest);
933
+ return /* @__PURE__ */ jsx(TableCellContext.Provider, {
934
+ value: tableCellProps,
935
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("td", {
936
+ ...attributes,
937
+ children
938
+ })
939
+ });
940
+ }
941
+
942
+ //#endregion
943
+ //#region src/components/date-picker/anatomy/table-head.tsx
944
+ function TableHead(props) {
945
+ const datePicker = use(RootContext$34);
946
+ const viewProps = use(ViewContext);
947
+ const { element, children,...rest } = props;
948
+ const attributes = mergeProps(datePicker.getTableHeadProps(viewProps), { className: classesDatePicker.tableHead }, rest);
949
+ return element ? element(attributes) : /* @__PURE__ */ jsx("thead", {
950
+ ...attributes,
951
+ children
952
+ });
953
+ }
954
+
955
+ //#endregion
956
+ //#region src/components/date-picker/anatomy/table-header.tsx
957
+ function TableHeader(props) {
958
+ const datePicker = use(RootContext$34);
959
+ const viewProps = use(ViewContext);
960
+ const { element, children,...rest } = props;
961
+ const attributes = mergeProps(datePicker.getTableHeaderProps(viewProps), { className: classesDatePicker.tableHeader }, rest);
962
+ return element ? element(attributes) : /* @__PURE__ */ jsx("th", {
963
+ ...attributes,
964
+ children
965
+ });
966
+ }
967
+
968
+ //#endregion
969
+ //#region src/components/date-picker/anatomy/table-row.tsx
970
+ function TableRow(props) {
971
+ const datePicker = use(RootContext$34);
972
+ const viewProps = use(ViewContext);
973
+ const { element, children,...rest } = props;
974
+ const attributes = mergeProps(datePicker.getTableRowProps(viewProps), { className: classesDatePicker.tableRow }, rest);
975
+ return element ? element(attributes) : /* @__PURE__ */ jsx("tr", {
976
+ ...attributes,
977
+ children
978
+ });
979
+ }
980
+
981
+ //#endregion
982
+ //#region src/components/date-picker/anatomy/table.tsx
983
+ function Table(props) {
984
+ const datePicker = use(RootContext$34);
985
+ const viewProps = use(ViewContext);
986
+ const { element, children,...rest } = props;
987
+ const attributes = mergeProps(datePicker.getTableProps(viewProps), { className: classesDatePicker.table }, rest);
988
+ return element ? element(attributes) : /* @__PURE__ */ jsx("table", {
989
+ ...attributes,
990
+ children
991
+ });
992
+ }
993
+
994
+ //#endregion
995
+ //#region src/internal/components/calendar.tsx
996
+ function Calendar(props) {
997
+ const { ...rest } = props;
998
+ return /* @__PURE__ */ jsxs("svg", {
999
+ ...mergeProps({
1000
+ xmlns: "http://www.w3.org/2000/svg",
1001
+ width: "24",
1002
+ height: "24",
1003
+ viewBox: "0 0 24 24",
1004
+ fill: "none",
1005
+ stroke: "currentColor",
1006
+ strokeWidth: "2",
1007
+ strokeLinecap: "round",
1008
+ strokeLinejoin: "round"
1009
+ }, rest),
1010
+ children: [
1011
+ /* @__PURE__ */ jsx("path", { d: "M8 2v4" }),
1012
+ /* @__PURE__ */ jsx("path", { d: "M16 2v4" }),
1013
+ /* @__PURE__ */ jsx("rect", {
1014
+ width: "18",
1015
+ height: "18",
1016
+ x: "3",
1017
+ y: "4",
1018
+ rx: "2"
1019
+ }),
1020
+ /* @__PURE__ */ jsx("path", { d: "M3 10h18" })
1021
+ ]
1022
+ });
1023
+ }
1024
+
1025
+ //#endregion
1026
+ //#region src/components/date-picker/anatomy/trigger.tsx
1027
+ function Trigger$5(props) {
1028
+ const datePicker = use(RootContext$34);
1029
+ const { element, children = /* @__PURE__ */ jsx(Calendar, {}),...rest } = props;
1030
+ const attributes = mergeProps(datePicker.getTriggerProps(), { className: classesDatePicker.trigger }, rest);
1031
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1032
+ ...attributes,
1033
+ children
1034
+ });
1035
+ }
1036
+
1037
+ //#endregion
1038
+ //#region src/components/date-picker/anatomy/view-control.tsx
1039
+ function ViewControl(props) {
1040
+ const datePicker = use(RootContext$34);
1041
+ const viewProps = use(ViewContext);
1042
+ const { element, children,...rest } = props;
1043
+ const attributes = mergeProps(datePicker.getViewControlProps(viewProps), { className: classesDatePicker.viewControl }, rest);
1044
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1045
+ ...attributes,
1046
+ children
1047
+ });
1048
+ }
1049
+
1050
+ //#endregion
1051
+ //#region src/components/date-picker/anatomy/view-trigger.tsx
1052
+ function ViewTrigger(props) {
1053
+ const datePicker = use(RootContext$34);
1054
+ const viewProps = use(ViewContext);
1055
+ const { element, children,...rest } = props;
1056
+ const attributes = mergeProps(datePicker.getViewTriggerProps(viewProps), { className: classesDatePicker.viewTrigger }, rest);
1057
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1058
+ ...attributes,
1059
+ children
1060
+ });
1061
+ }
1062
+
1063
+ //#endregion
1064
+ //#region src/components/date-picker/anatomy/view.tsx
1065
+ function View(props) {
1066
+ const datePicker = use(RootContext$34);
1067
+ const [viewProps, componentProps] = splitViewProps(props);
1068
+ const { element, children,...rest } = componentProps;
1069
+ const attributes = mergeProps(datePicker.getViewProps(viewProps), { className: classesDatePicker.view }, rest);
1070
+ return /* @__PURE__ */ jsx(ViewContext.Provider, {
1071
+ value: viewProps,
1072
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1073
+ ...attributes,
1074
+ children
1075
+ })
1076
+ });
1077
+ }
1078
+
1079
+ //#endregion
1080
+ //#region src/components/date-picker/anatomy/year-select.tsx
1081
+ function YearSelect(props) {
1082
+ const datePicker = use(RootContext$34);
1083
+ const { element,...rest } = props;
1084
+ const attributes = mergeProps(datePicker.getYearSelectProps(), { className: classesDatePicker.yearSelect }, rest);
1085
+ return element ? element(attributes) : /* @__PURE__ */ jsx("select", {
1086
+ ...attributes,
1087
+ children: datePicker.getYears().map((year, i) => /* @__PURE__ */ jsx("option", {
1088
+ value: year.value,
1089
+ children: year.label
1090
+ }, i))
1091
+ });
1092
+ }
1093
+
1094
+ //#endregion
1095
+ //#region src/components/date-picker/modules/anatomy.ts
1096
+ const DatePicker = Object.assign(Root$14, {
1097
+ Provider: RootProvider$12,
1098
+ Context: RootContext$33,
1099
+ Label: Label$9,
1100
+ Control: Control$5,
1101
+ PresetTrigger,
1102
+ Input: Input$2,
1103
+ Trigger: Trigger$5,
1104
+ Positioner: Positioner$3,
1105
+ Content: Content$5,
1106
+ YearSelect,
1107
+ MonthSelect,
1108
+ View,
1109
+ ViewControl,
1110
+ PrevTrigger: PrevTrigger$1,
1111
+ ViewTrigger,
1112
+ RangeText,
1113
+ NextTrigger: NextTrigger$1,
1114
+ Table,
1115
+ TableHead,
1116
+ TableRow,
1117
+ TableHeader,
1118
+ TableBody,
1119
+ TableCell,
1120
+ TableCellTrigger
1121
+ });
1122
+
1123
+ //#endregion
1124
+ //#region src/components/dialog/modules/root-context.ts
1125
+ const RootContext$32 = createContext$1();
1126
+
1127
+ //#endregion
1128
+ //#region src/components/dialog/anatomy/backdrop.tsx
1129
+ function Backdrop(props) {
1130
+ const dialog = use(RootContext$32);
1131
+ const { element,...rest } = props;
1132
+ const attributes = mergeProps(dialog.getBackdropProps(), { className: classesDialog.backdrop }, rest);
1133
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
1134
+ }
1135
+
1136
+ //#endregion
1137
+ //#region src/components/dialog/anatomy/close-trigger.tsx
1138
+ function CloseTrigger$2(props) {
1139
+ const dialog = use(RootContext$32);
1140
+ const { element, children,...rest } = props;
1141
+ const attributes = mergeProps(dialog.getCloseTriggerProps(), { className: classesDialog.closeTrigger }, rest);
1142
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1143
+ ...attributes,
1144
+ children
1145
+ });
1146
+ }
1147
+
1148
+ //#endregion
1149
+ //#region src/components/dialog/anatomy/content.tsx
1150
+ function Content$4(props) {
1151
+ const dialog = use(RootContext$32);
1152
+ const { element, children,...rest } = props;
1153
+ const attributes = mergeProps(dialog.getContentProps(), { className: classesDialog.content }, rest);
1154
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1155
+ ...attributes,
1156
+ children
1157
+ });
1158
+ }
1159
+
1160
+ //#endregion
1161
+ //#region src/components/dialog/anatomy/description.tsx
1162
+ function Description$2(props) {
1163
+ const dialog = use(RootContext$32);
1164
+ const { element, children,...rest } = props;
1165
+ const attributes = mergeProps(dialog.getDescriptionProps(), { className: classesDialog.description }, rest);
1166
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1167
+ ...attributes,
1168
+ children
1169
+ });
1170
+ }
1171
+
1172
+ //#endregion
1173
+ //#region src/components/dialog/anatomy/positioner.tsx
1174
+ function Positioner$2(props) {
1175
+ const dialog = use(RootContext$32);
1176
+ const { element, children,...rest } = props;
1177
+ const attributes = mergeProps(dialog.getPositionerProps(), { className: classesDialog.positioner }, rest);
1178
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1179
+ ...attributes,
1180
+ children
1181
+ });
1182
+ }
1183
+
1184
+ //#endregion
1185
+ //#region src/components/dialog/anatomy/root-context.tsx
1186
+ function RootContext$31(props) {
1187
+ const dialog = use(RootContext$32);
1188
+ const { children } = props;
1189
+ return children(dialog);
1190
+ }
1191
+
1192
+ //#endregion
1193
+ //#region src/components/dialog/anatomy/root-provider.tsx
1194
+ function RootProvider$11(props) {
1195
+ const { children, value: dialog } = props;
1196
+ return /* @__PURE__ */ jsx(RootContext$32.Provider, {
1197
+ value: dialog,
1198
+ children
1199
+ });
1200
+ }
1201
+
1202
+ //#endregion
1203
+ //#region src/components/dialog/modules/provider.ts
1204
+ function useDialog(props = {}) {
1205
+ return connect$5(useMachine(machine$5, {
1206
+ id: useId(),
1207
+ ...props
1208
+ }), normalizeProps);
1209
+ }
1210
+
1211
+ //#endregion
1212
+ //#region src/components/dialog/anatomy/root.tsx
1213
+ function Root$13(props) {
1214
+ const [dialogProps, componentProps] = splitProps$5(props);
1215
+ const { children } = componentProps;
1216
+ const dialog = useDialog(dialogProps);
1217
+ return /* @__PURE__ */ jsx(RootContext$32.Provider, {
1218
+ value: dialog,
1219
+ children
1220
+ });
1221
+ }
1222
+
1223
+ //#endregion
1224
+ //#region src/components/dialog/anatomy/title.tsx
1225
+ function Title$2(props) {
1226
+ const dialog = use(RootContext$32);
1227
+ const { element, children,...rest } = props;
1228
+ const attributes = mergeProps(dialog.getTitleProps(), { className: classesDialog.title }, rest);
1229
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1230
+ ...attributes,
1231
+ children
1232
+ });
1233
+ }
1234
+
1235
+ //#endregion
1236
+ //#region src/components/dialog/anatomy/trigger.tsx
1237
+ function Trigger$4(props) {
1238
+ const dialog = use(RootContext$32);
1239
+ const { element, children,...rest } = props;
1240
+ const attributes = mergeProps(dialog.getTriggerProps(), { className: classesDialog.trigger }, rest);
1241
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1242
+ ...attributes,
1243
+ children
1244
+ });
1245
+ }
1246
+
1247
+ //#endregion
1248
+ //#region src/components/dialog/modules/anatomy.ts
1249
+ const Dialog = Object.assign(Root$13, {
1250
+ Provider: RootProvider$11,
1251
+ Context: RootContext$31,
1252
+ Trigger: Trigger$4,
1253
+ Backdrop,
1254
+ Positioner: Positioner$2,
1255
+ Content: Content$4,
1256
+ Title: Title$2,
1257
+ Description: Description$2,
1258
+ CloseTrigger: CloseTrigger$2
1259
+ });
1260
+
1261
+ //#endregion
1262
+ //#region src/components/file-upload/modules/root-context.ts
1263
+ const RootContext$30 = createContext$1();
1264
+
1265
+ //#endregion
1266
+ //#region src/components/file-upload/anatomy/dropzone.tsx
1267
+ function Dropzone(props) {
1268
+ const fileUpload = use(RootContext$30);
1269
+ const { element, children,...rest } = props;
1270
+ const attributes = mergeProps(fileUpload.getDropzoneProps(), { className: classesFileUpload.dropzone }, rest);
1271
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1272
+ ...attributes,
1273
+ children
1274
+ });
1275
+ }
1276
+
1277
+ //#endregion
1278
+ //#region src/components/file-upload/anatomy/hidden-input.tsx
1279
+ function HiddenInput$4(props) {
1280
+ const fileUpload = use(RootContext$30);
1281
+ const { element,...rest } = props;
1282
+ const attributes = mergeProps(fileUpload.getHiddenInputProps(), { className: classesFileUpload.hiddenInput }, rest);
1283
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
1284
+ }
1285
+
1286
+ //#endregion
1287
+ //#region src/components/file-upload/modules/item-context.ts
1288
+ const ItemContext$3 = createContext$1();
1289
+
1290
+ //#endregion
1291
+ //#region src/components/file-upload/anatomy/item-delete-trigger.tsx
1292
+ function ItemDeleteTrigger$1(props) {
1293
+ const fileUpload = use(RootContext$30);
1294
+ const itemProps = use(ItemContext$3);
1295
+ const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }),...rest } = props;
1296
+ const attributes = mergeProps(fileUpload.getItemDeleteTriggerProps(itemProps), { className: classesFileUpload.itemDeleteTrigger }, rest);
1297
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1298
+ ...attributes,
1299
+ children
1300
+ });
1301
+ }
1302
+
1303
+ //#endregion
1304
+ //#region src/components/file-upload/anatomy/item-group.tsx
1305
+ function ItemGroup$1(props) {
1306
+ const fileUpload = use(RootContext$30);
1307
+ const { element, children,...rest } = props;
1308
+ const attributes = mergeProps(fileUpload.getItemGroupProps(), { className: classesFileUpload.itemGroup }, rest);
1309
+ return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
1310
+ ...attributes,
1311
+ children
1312
+ });
1313
+ }
1314
+
1315
+ //#endregion
1316
+ //#region src/components/file-upload/anatomy/item-name.tsx
1317
+ function ItemName(props) {
1318
+ const fileUpload = use(RootContext$30);
1319
+ const itemProps = use(ItemContext$3);
1320
+ const { element, children,...rest } = props;
1321
+ const attributes = mergeProps(fileUpload.getItemNameProps(itemProps), { className: classesFileUpload.itemName }, rest);
1322
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1323
+ ...attributes,
1324
+ children
1325
+ });
1326
+ }
1327
+
1328
+ //#endregion
1329
+ //#region src/components/file-upload/anatomy/item-size-text.tsx
1330
+ function ItemSizeText(props) {
1331
+ const fileUpload = use(RootContext$30);
1332
+ const itemProps = use(ItemContext$3);
1333
+ const { element, children,...rest } = props;
1334
+ const attributes = mergeProps(fileUpload.getItemSizeTextProps(itemProps), { className: classesFileUpload.itemSizeText }, rest);
1335
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1336
+ ...attributes,
1337
+ children
1338
+ });
1339
+ }
1340
+
1341
+ //#endregion
1342
+ //#region src/components/file-upload/anatomy/item.tsx
1343
+ function Item$7(props) {
1344
+ const fileUpload = use(RootContext$30);
1345
+ const [itemProps, componentProps] = splitItemProps$2(props);
1346
+ const { element, children,...rest } = componentProps;
1347
+ const attributes = mergeProps(fileUpload.getItemProps(itemProps), { className: classesFileUpload.item }, rest);
1348
+ return /* @__PURE__ */ jsx(ItemContext$3.Provider, {
1349
+ value: itemProps,
1350
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
1351
+ ...attributes,
1352
+ children
1353
+ })
1354
+ });
1355
+ }
1356
+
1357
+ //#endregion
1358
+ //#region src/components/file-upload/anatomy/label.tsx
1359
+ function Label$8(props) {
1360
+ const fileUpload = use(RootContext$30);
1361
+ const { element, children,...rest } = props;
1362
+ const attributes = mergeProps(fileUpload.getLabelProps(), { className: classesFileUpload.label }, rest);
1363
+ return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
1364
+ ...attributes,
1365
+ children
1366
+ });
1367
+ }
1368
+
1369
+ //#endregion
1370
+ //#region src/components/file-upload/anatomy/root-context.tsx
1371
+ function RootContext$29(props) {
1372
+ const fileUpload = use(RootContext$30);
1373
+ const { children } = props;
1374
+ return children(fileUpload);
1375
+ }
1376
+
1377
+ //#endregion
1378
+ //#region src/components/file-upload/anatomy/root-provider.tsx
1379
+ function RootProvider$10(props) {
1380
+ const { element, children, value: fileUpload,...rest } = props;
1381
+ const attributes = mergeProps(fileUpload.getRootProps(), { className: classesFileUpload.root }, rest);
1382
+ return /* @__PURE__ */ jsx(RootContext$30.Provider, {
1383
+ value: fileUpload,
1384
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1385
+ ...attributes,
1386
+ children
1387
+ })
1388
+ });
1389
+ }
1390
+
1391
+ //#endregion
1392
+ //#region src/components/file-upload/modules/provider.ts
1393
+ function useFileUpload(props = {}) {
1394
+ return connect$6(useMachine(machine$6, {
1395
+ id: useId(),
1396
+ ...props
1397
+ }), normalizeProps);
1398
+ }
1399
+
1400
+ //#endregion
1401
+ //#region src/components/file-upload/anatomy/root.tsx
1402
+ function Root$12(props) {
1403
+ const [fileUploadProps, componentProps] = splitProps$6(props);
1404
+ const { element, children,...rest } = componentProps;
1405
+ const fileUpload = useFileUpload(fileUploadProps);
1406
+ const attributes = mergeProps(fileUpload.getRootProps(), { className: classesFileUpload.root }, rest);
1407
+ return /* @__PURE__ */ jsx(RootContext$30.Provider, {
1408
+ value: fileUpload,
1409
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1410
+ ...attributes,
1411
+ children
1412
+ })
1413
+ });
1414
+ }
1415
+
1416
+ //#endregion
1417
+ //#region src/components/file-upload/anatomy/trigger.tsx
1418
+ function Trigger$3(props) {
1419
+ const fileUpload = use(RootContext$30);
1420
+ const { element, children,...rest } = props;
1421
+ const attributes = mergeProps(fileUpload.getTriggerProps(), { className: classesFileUpload.trigger }, rest);
1422
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1423
+ ...attributes,
1424
+ children
1425
+ });
1426
+ }
1427
+
1428
+ //#endregion
1429
+ //#region src/components/file-upload/modules/anatomy.ts
1430
+ const FileUpload = Object.assign(Root$12, {
1431
+ Provider: RootProvider$10,
1432
+ Context: RootContext$29,
1433
+ Label: Label$8,
1434
+ Dropzone,
1435
+ Trigger: Trigger$3,
1436
+ HiddenInput: HiddenInput$4,
1437
+ ItemGroup: ItemGroup$1,
1438
+ Item: Item$7,
1439
+ ItemName,
1440
+ ItemSizeText,
1441
+ ItemDeleteTrigger: ItemDeleteTrigger$1
1442
+ });
1443
+
1444
+ //#endregion
1445
+ //#region src/components/listbox/modules/root-context.ts
1446
+ const RootContext$28 = createContext$1();
1447
+
1448
+ //#endregion
1449
+ //#region src/components/listbox/anatomy/content.tsx
1450
+ function Content$3(props) {
1451
+ const listbox = use(RootContext$28);
1452
+ const { element, children,...rest } = props;
1453
+ const attributes = mergeProps(listbox.getContentProps(), { className: classesListbox.content }, rest);
1454
+ return element ? element(attributes) : /* @__PURE__ */ jsx("ul", {
1455
+ ...attributes,
1456
+ children
1457
+ });
1458
+ }
1459
+
1460
+ //#endregion
1461
+ //#region src/components/listbox/anatomy/input.tsx
1462
+ function Input$1(props) {
1463
+ const listbox = use(RootContext$28);
1464
+ const { element,...rest } = props;
1465
+ const attributes = mergeProps(listbox.getInputProps(), { className: classesListbox.input }, rest);
1466
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
1467
+ }
1468
+
1469
+ //#endregion
1470
+ //#region src/components/listbox/modules/item-group-context.ts
1471
+ const ItemGroupContext = createContext$1();
1472
+
1473
+ //#endregion
1474
+ //#region src/components/listbox/anatomy/item-group-label.tsx
1475
+ function ItemGroupLabel(props) {
1476
+ const listbox = use(RootContext$28);
1477
+ const [itemGroupLabelProps, componentProps] = splitItemGroupLabelProps$1({
1478
+ htmlFor: use(ItemGroupContext).id,
1479
+ ...props
1480
+ });
1481
+ const { element, children,...rest } = componentProps;
1482
+ const attributes = mergeProps(listbox.getItemGroupLabelProps(itemGroupLabelProps), { className: classesListbox.itemGroupLabel }, rest);
1483
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1484
+ ...attributes,
1485
+ children
1486
+ });
1487
+ }
1488
+
1489
+ //#endregion
1490
+ //#region src/components/listbox/anatomy/item-group.tsx
1491
+ function ItemGroup(props) {
1492
+ const listbox = use(RootContext$28);
1493
+ const [itemGroupProps, componentProps] = splitItemGroupProps$1({
1494
+ id: useId(),
1495
+ ...props
1496
+ });
1497
+ const { element, children,...rest } = componentProps;
1498
+ const attributes = mergeProps(listbox.getItemGroupProps(itemGroupProps), { className: classesListbox.itemGroup }, rest);
1499
+ return /* @__PURE__ */ jsx(ItemGroupContext.Provider, {
1500
+ value: itemGroupProps,
1501
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1502
+ ...attributes,
1503
+ children
1504
+ })
1505
+ });
1506
+ }
1507
+
1508
+ //#endregion
1509
+ //#region src/components/listbox/modules/item-context.ts
1510
+ const ItemContext$2 = createContext$1();
1511
+
1512
+ //#endregion
1513
+ //#region src/components/listbox/anatomy/item-indicator.tsx
1514
+ function ItemIndicator(props) {
1515
+ const listbox = use(RootContext$28);
1516
+ const itemProps = use(ItemContext$2);
1517
+ const { element, children = /* @__PURE__ */ jsx(Check, { className: "size-4" }),...rest } = props;
1518
+ const attributes = mergeProps(listbox.getItemIndicatorProps(itemProps), { className: classesListbox.itemIndicator }, rest);
1519
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
1520
+ ...attributes,
1521
+ children
1522
+ });
1523
+ }
1524
+
1525
+ //#endregion
1526
+ //#region src/components/listbox/anatomy/item-text.tsx
1527
+ function ItemText$2(props) {
1528
+ const listbox = use(RootContext$28);
1529
+ const itemProps = use(ItemContext$2);
1530
+ const { element, children,...rest } = props;
1531
+ const attributes = mergeProps(listbox.getItemTextProps(itemProps), { className: classesListbox.itemText }, rest);
1532
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
1533
+ ...attributes,
1534
+ children
1535
+ });
1536
+ }
1537
+
1538
+ //#endregion
1539
+ //#region src/components/listbox/anatomy/item.tsx
1540
+ function Item$6(props) {
1541
+ const listbox = use(RootContext$28);
1542
+ const [itemProps, componentProps] = splitItemProps$3(props);
1543
+ const { element, children,...rest } = componentProps;
1544
+ const attributes = mergeProps(listbox.getItemProps(itemProps), { className: classesListbox.item }, rest);
1545
+ return /* @__PURE__ */ jsx(ItemContext$2.Provider, {
1546
+ value: itemProps,
1547
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("li", {
1548
+ ...attributes,
1549
+ children
1550
+ })
1551
+ });
1552
+ }
1553
+
1554
+ //#endregion
1555
+ //#region src/components/listbox/anatomy/label.tsx
1556
+ function Label$7(props) {
1557
+ const listbox = use(RootContext$28);
1558
+ const { element, children,...rest } = props;
1559
+ const attributes = mergeProps(listbox.getLabelProps(), { className: classesListbox.label }, rest);
1560
+ return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
1561
+ ...attributes,
1562
+ children
1563
+ });
1564
+ }
1565
+
1566
+ //#endregion
1567
+ //#region src/components/listbox/anatomy/root-context.tsx
1568
+ function RootContext$27(props) {
1569
+ const listbox = use(RootContext$28);
1570
+ const { children } = props;
1571
+ return children(listbox);
1572
+ }
1573
+
1574
+ //#endregion
1575
+ //#region src/components/listbox/modules/provider.ts
1576
+ function useListbox(props) {
1577
+ return connect$7(useMachine(machine$7, {
1578
+ id: useId(),
1579
+ ...props
1580
+ }), normalizeProps);
1581
+ }
1582
+
1583
+ //#endregion
1584
+ //#region src/components/listbox/anatomy/root-provider.tsx
1585
+ function RootProvider$9(props) {
1586
+ const { element, children, value: listbox,...rest } = props;
1587
+ const attributes = mergeProps(listbox.getRootProps(), { className: classesListbox.root }, rest);
1588
+ return /* @__PURE__ */ jsx(RootContext$28.Provider, {
1589
+ value: listbox,
1590
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1591
+ ...attributes,
1592
+ children
1593
+ })
1594
+ });
1595
+ }
1596
+
1597
+ //#endregion
1598
+ //#region src/components/listbox/anatomy/root.tsx
1599
+ function Root$11(props) {
1600
+ const [listboxProps, componentProps] = splitProps$7(props);
1601
+ const { element, children,...rest } = componentProps;
1602
+ const listbox = useListbox(listboxProps);
1603
+ const attributes = mergeProps(listbox.getRootProps(), { className: classesListbox.root }, rest);
1604
+ return /* @__PURE__ */ jsx(RootContext$28.Provider, {
1605
+ value: listbox,
1606
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1607
+ ...attributes,
1608
+ children
1609
+ })
1610
+ });
1611
+ }
1612
+
1613
+ //#endregion
1614
+ //#region src/components/listbox/modules/anatomy.ts
1615
+ const Listbox = Object.assign(Root$11, {
1616
+ Provider: RootProvider$9,
1617
+ Context: RootContext$27,
1618
+ Label: Label$7,
1619
+ Input: Input$1,
1620
+ Content: Content$3,
1621
+ ItemGroup,
1622
+ ItemGroupLabel,
1623
+ Item: Item$6,
1624
+ ItemText: ItemText$2,
1625
+ ItemIndicator
1626
+ });
1627
+
1628
+ //#endregion
1629
+ //#region src/components/navigation/modules/root-context.ts
1630
+ const RootContext$26 = createContext$1();
1631
+
1632
+ //#endregion
1633
+ //#region src/components/navigation/anatomy/content.tsx
1634
+ function NavigationContent(props) {
1635
+ const { element, children,...rest } = props;
1636
+ const navigation = use(RootContext$26);
1637
+ const attributes = mergeProps({
1638
+ "data-layout": navigation.layout,
1639
+ className: classesNavigation.content
1640
+ }, rest);
1641
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1642
+ ...attributes,
1643
+ children
1644
+ });
1645
+ }
1646
+
1647
+ //#endregion
1648
+ //#region src/components/navigation/anatomy/footer.tsx
1649
+ function NavigationFooter(props) {
1650
+ const { element, children,...rest } = props;
1651
+ const navigation = use(RootContext$26);
1652
+ const attributes = mergeProps({
1653
+ "data-layout": navigation.layout,
1654
+ className: classesNavigation.footer
1655
+ }, rest);
1656
+ return element ? element(attributes) : /* @__PURE__ */ jsx("footer", {
1657
+ ...attributes,
1658
+ children
1659
+ });
1660
+ }
1661
+
1662
+ //#endregion
1663
+ //#region src/components/navigation/anatomy/group.tsx
1664
+ function NavigationGroup(props) {
1665
+ const { element, children,...rest } = props;
1666
+ const navigation = use(RootContext$26);
1667
+ const attributes = mergeProps({
1668
+ "data-layout": navigation.layout,
1669
+ className: classesNavigation.group
1670
+ }, rest);
1671
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1672
+ ...attributes,
1673
+ children
1674
+ });
1675
+ }
1676
+
1677
+ //#endregion
1678
+ //#region src/components/navigation/anatomy/header.tsx
1679
+ function NavigationHeader(props) {
1680
+ const { element, children,...rest } = props;
1681
+ const navigation = use(RootContext$26);
1682
+ const attributes = mergeProps({
1683
+ "data-layout": navigation.layout,
1684
+ className: classesNavigation.header
1685
+ }, rest);
1686
+ return element ? element(attributes) : /* @__PURE__ */ jsx("header", {
1687
+ ...attributes,
1688
+ children
1689
+ });
1690
+ }
1691
+
1692
+ //#endregion
1693
+ //#region src/components/navigation/anatomy/label.tsx
1694
+ function NavigationLabel(props) {
1695
+ const { element, children,...rest } = props;
1696
+ const navigation = use(RootContext$26);
1697
+ const attributes = mergeProps({
1698
+ "data-layout": navigation.layout,
1699
+ className: classesNavigation.label
1700
+ }, rest);
1701
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1702
+ ...attributes,
1703
+ children
1704
+ });
1705
+ }
1706
+
1707
+ //#endregion
1708
+ //#region src/components/navigation/anatomy/menu.tsx
1709
+ function NavigationMenu(props) {
1710
+ const { element, children,...rest } = props;
1711
+ const navigation = use(RootContext$26);
1712
+ const attributes = mergeProps({
1713
+ "data-layout": navigation.layout,
1714
+ className: classesNavigation.menu
1715
+ }, rest);
1716
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1717
+ ...attributes,
1718
+ children
1719
+ });
1720
+ }
1721
+
1722
+ //#endregion
1723
+ //#region src/components/navigation/anatomy/root.tsx
1724
+ function NavigationRoot(props) {
1725
+ const { layout = "bar", element, children,...rest } = props;
1726
+ const attributes = mergeProps({
1727
+ "data-layout": layout,
1728
+ className: classesNavigation.root
1729
+ }, rest);
1730
+ return /* @__PURE__ */ jsx(RootContext$26.Provider, {
1731
+ value: { layout },
1732
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1733
+ ...attributes,
1734
+ children
1735
+ })
1736
+ });
1737
+ }
1738
+
1739
+ //#endregion
1740
+ //#region src/components/navigation/modules/anatomy.ts
1741
+ const Navigation = Object.assign(NavigationRoot, {
1742
+ Header: NavigationHeader,
1743
+ Content: NavigationContent,
1744
+ Group: NavigationGroup,
1745
+ Label: NavigationLabel,
1746
+ Menu: NavigationMenu,
1747
+ Footer: NavigationFooter
1748
+ });
1749
+
1750
+ //#endregion
1751
+ //#region src/components/pagination/modules/root-context.ts
1752
+ const RootContext$25 = createContext$1();
1753
+
1754
+ //#endregion
1755
+ //#region src/components/pagination/anatomy/ellipsis.tsx
1756
+ function Ellipsis(props) {
1757
+ const pagination = use(RootContext$25);
1758
+ const [ellipsisProps, componentProps] = splitEllipsisProps(props);
1759
+ const { element, children,...rest } = componentProps;
1760
+ const attributes = mergeProps(pagination.getEllipsisProps(ellipsisProps), { className: classesPagination.ellipsis }, rest);
1761
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
1762
+ ...attributes,
1763
+ children
1764
+ });
1765
+ }
1766
+
1767
+ //#endregion
1768
+ //#region src/components/pagination/anatomy/first-trigger.tsx
1769
+ function FirstTrigger(props) {
1770
+ const pagination = use(RootContext$25);
1771
+ const { element, children,...rest } = props;
1772
+ const attributes = mergeProps({
1773
+ className: classesPagination.nextTrigger,
1774
+ onClick: pagination.goToFirstPage
1775
+ }, rest);
1776
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1777
+ ...attributes,
1778
+ children
1779
+ });
1780
+ }
1781
+
1782
+ //#endregion
1783
+ //#region src/components/pagination/anatomy/item.tsx
1784
+ function Item$5(props) {
1785
+ const pagination = use(RootContext$25);
1786
+ const [itemProps, componentProps] = splitItemProps$4(props);
1787
+ const { element, children,...rest } = componentProps;
1788
+ const attributes = mergeProps(pagination.getItemProps(itemProps), { className: classesPagination.item }, rest);
1789
+ return element ? element(attributes) : /* @__PURE__ */ jsx("a", {
1790
+ ...attributes,
1791
+ children
1792
+ });
1793
+ }
1794
+
1795
+ //#endregion
1796
+ //#region src/components/pagination/anatomy/last-trigger.tsx
1797
+ function LastTrigger(props) {
1798
+ const pagination = use(RootContext$25);
1799
+ const { element, children,...rest } = props;
1800
+ const attributes = mergeProps({
1801
+ className: classesPagination.nextTrigger,
1802
+ onClick: pagination.goToLastPage
1803
+ }, rest);
1804
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1805
+ ...attributes,
1806
+ children
1807
+ });
1808
+ }
1809
+
1810
+ //#endregion
1811
+ //#region src/components/pagination/anatomy/next-trigger.tsx
1812
+ function NextTrigger(props) {
1813
+ const pagination = use(RootContext$25);
1814
+ const { element, children,...rest } = props;
1815
+ const attributes = mergeProps(pagination.getNextTriggerProps(), { className: classesPagination.nextTrigger }, rest);
1816
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1817
+ ...attributes,
1818
+ children
1819
+ });
1820
+ }
1821
+
1822
+ //#endregion
1823
+ //#region src/components/pagination/anatomy/prev-trigger.tsx
1824
+ function PrevTrigger(props) {
1825
+ const pagination = use(RootContext$25);
1826
+ const { element, children,...rest } = props;
1827
+ const attributes = mergeProps(pagination.getPrevTriggerProps(), { className: classesPagination.prevTrigger }, rest);
1828
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1829
+ ...attributes,
1830
+ children
1831
+ });
1832
+ }
1833
+
1834
+ //#endregion
1835
+ //#region src/components/pagination/anatomy/root-context.tsx
1836
+ function RootContext$24(props) {
1837
+ const pagination = use(RootContext$25);
1838
+ const { children } = props;
1839
+ return children(pagination);
1840
+ }
1841
+
1842
+ //#endregion
1843
+ //#region src/components/pagination/anatomy/root-provider.tsx
1844
+ function PaginationRootProvider(props) {
1845
+ const { element, children, value: pagination,...rest } = props;
1846
+ const attributes = mergeProps(pagination.getRootProps(), { className: classesPagination.root }, rest);
1847
+ return /* @__PURE__ */ jsx(RootContext$25.Provider, {
1848
+ value: pagination,
1849
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
1850
+ ...attributes,
1851
+ children
1852
+ })
1853
+ });
1854
+ }
1855
+
1856
+ //#endregion
1857
+ //#region src/components/pagination/modules/provider.ts
1858
+ function usePagination(props = {}) {
1859
+ return connect$8(useMachine(machine$8, {
1860
+ id: useId(),
1861
+ ...props
1862
+ }), normalizeProps);
1863
+ }
1864
+
1865
+ //#endregion
1866
+ //#region src/components/pagination/anatomy/root.tsx
1867
+ function PaginationRoot(props) {
1868
+ const [paginationProps, componentProps] = splitProps$8(props);
1869
+ const { element, children,...rest } = componentProps;
1870
+ const pagination = usePagination(paginationProps);
1871
+ const attributes = mergeProps(pagination.getRootProps(), { className: classesPagination.root }, rest);
1872
+ return /* @__PURE__ */ jsx(RootContext$25.Provider, {
1873
+ value: pagination,
1874
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("nav", {
1875
+ ...attributes,
1876
+ children
1877
+ })
1878
+ });
1879
+ }
1880
+
1881
+ //#endregion
1882
+ //#region src/components/pagination/modules/anatomy.ts
1883
+ const Pagination = Object.assign(PaginationRoot, {
1884
+ Provider: PaginationRootProvider,
1885
+ Context: RootContext$24,
1886
+ FirstTrigger,
1887
+ PrevTrigger,
1888
+ Item: Item$5,
1889
+ Ellipsis,
1890
+ NextTrigger,
1891
+ LastTrigger
1892
+ });
1893
+
1894
+ //#endregion
1895
+ //#region src/components/popover/modules/root-context.ts
1896
+ const RootContext$23 = createContext$1();
1897
+
1898
+ //#endregion
1899
+ //#region src/components/popover/anatomy/arrow-tip.tsx
1900
+ function ArrowTip$1(props) {
1901
+ const popover = use(RootContext$23);
1902
+ const { element, children,...rest } = props;
1903
+ const attributes = mergeProps(popover.getArrowTipProps(), { className: classesPopover.arrowTip }, rest);
1904
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1905
+ ...attributes,
1906
+ children
1907
+ });
1908
+ }
1909
+
1910
+ //#endregion
1911
+ //#region src/components/popover/anatomy/arrow.tsx
1912
+ function Arrow$1(props) {
1913
+ const popover = use(RootContext$23);
1914
+ const { element, children,...rest } = props;
1915
+ const attributes = mergeProps(popover.getArrowProps(), { className: classesPopover.arrow }, rest);
1916
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1917
+ ...attributes,
1918
+ children
1919
+ });
1920
+ }
1921
+
1922
+ //#endregion
1923
+ //#region src/components/popover/anatomy/close-trigger.tsx
1924
+ function CloseTrigger$1(props) {
1925
+ const popover = use(RootContext$23);
1926
+ const { element, children,...rest } = props;
1927
+ const attributes = mergeProps(popover.getCloseTriggerProps(), { className: classesPopover.closeTrigger }, rest);
1928
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
1929
+ ...attributes,
1930
+ children
1931
+ });
1932
+ }
1933
+
1934
+ //#endregion
1935
+ //#region src/components/popover/anatomy/content.tsx
1936
+ function Content$2(props) {
1937
+ const popover = use(RootContext$23);
1938
+ const { element, children,...rest } = props;
1939
+ const attributes = mergeProps(popover.getContentProps(), { className: classesPopover.content }, rest);
1940
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1941
+ ...attributes,
1942
+ children
1943
+ });
1944
+ }
1945
+
1946
+ //#endregion
1947
+ //#region src/components/popover/anatomy/description.tsx
1948
+ function Description$1(props) {
1949
+ const popover = use(RootContext$23);
1950
+ const { element, children,...rest } = props;
1951
+ const attributes = mergeProps(popover.getDescriptionProps(), { className: classesPopover.description }, rest);
1952
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1953
+ ...attributes,
1954
+ children
1955
+ });
1956
+ }
1957
+
1958
+ //#endregion
1959
+ //#region src/components/popover/anatomy/positioner.tsx
1960
+ function Positioner$1(props) {
1961
+ const popover = use(RootContext$23);
1962
+ const { element, children,...rest } = props;
1963
+ const attributes = mergeProps(popover.getPositionerProps(), { className: classesPopover.positioner }, rest);
1964
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
1965
+ ...attributes,
1966
+ children
1967
+ });
1968
+ }
1969
+
1970
+ //#endregion
1971
+ //#region src/components/popover/anatomy/root-context.tsx
1972
+ function RootContext$22(props) {
1973
+ const popover = use(RootContext$23);
1974
+ const { children } = props;
1975
+ return children(popover);
1976
+ }
1977
+
1978
+ //#endregion
1979
+ //#region src/components/popover/anatomy/root-provider.tsx
1980
+ function RootProvider$8(props) {
1981
+ const { children, value: popover } = props;
1982
+ return /* @__PURE__ */ jsx(RootContext$23.Provider, {
1983
+ value: popover,
1984
+ children
1985
+ });
1986
+ }
1987
+
1988
+ //#endregion
1989
+ //#region src/components/popover/modules/provider.ts
1990
+ function usePopover(props = {}) {
1991
+ return connect$9(useMachine(machine$9, {
1992
+ id: useId(),
1993
+ ...props
1994
+ }), normalizeProps);
1995
+ }
1996
+
1997
+ //#endregion
1998
+ //#region src/components/popover/anatomy/root.tsx
1999
+ function Root$10(props) {
2000
+ const [popoverProps, componentProps] = splitProps$9(props);
2001
+ const { children } = componentProps;
2002
+ const popover = usePopover(popoverProps);
2003
+ return /* @__PURE__ */ jsx(RootContext$23.Provider, {
2004
+ value: popover,
2005
+ children
2006
+ });
2007
+ }
2008
+
2009
+ //#endregion
2010
+ //#region src/components/popover/anatomy/title.tsx
2011
+ function Title$1(props) {
2012
+ const popover = use(RootContext$23);
2013
+ const { element, children,...rest } = props;
2014
+ const attributes = mergeProps(popover.getTitleProps(), { className: classesPopover.title }, rest);
2015
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2016
+ ...attributes,
2017
+ children
2018
+ });
2019
+ }
2020
+
2021
+ //#endregion
2022
+ //#region src/components/popover/anatomy/trigger.tsx
2023
+ function Trigger$2(props) {
2024
+ const popover = use(RootContext$23);
2025
+ const { element, children,...rest } = props;
2026
+ const attributes = mergeProps(popover.getTriggerProps(), { className: classesPopover.trigger }, rest);
2027
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
2028
+ ...attributes,
2029
+ children
2030
+ });
2031
+ }
2032
+
2033
+ //#endregion
2034
+ //#region src/components/popover/modules/anatomy.ts
2035
+ const Popover = Object.assign(Root$10, {
2036
+ Provider: RootProvider$8,
2037
+ Context: RootContext$22,
2038
+ Trigger: Trigger$2,
2039
+ Positioner: Positioner$1,
2040
+ Content: Content$2,
2041
+ Arrow: Arrow$1,
2042
+ ArrowTip: ArrowTip$1,
2043
+ Title: Title$1,
2044
+ Description: Description$1,
2045
+ CloseTrigger: CloseTrigger$1
2046
+ });
2047
+
2048
+ //#endregion
2049
+ //#region src/components/portal/anatomy/root.tsx
2050
+ function Root$9(props) {
2051
+ const { children, disabled = false, target = typeof window === "undefined" ? void 0 : document.body } = props;
2052
+ if (disabled || !target) return /* @__PURE__ */ jsx(Fragment, { children });
2053
+ return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (child) => createPortal(child, target)) });
2054
+ }
2055
+
2056
+ //#endregion
2057
+ //#region src/components/portal/modules/anatomy.ts
2058
+ const Portal = Root$9;
2059
+
2060
+ //#endregion
2061
+ //#region src/components/progress/modules/root-context.ts
2062
+ const RootContext$21 = createContext$1();
2063
+
2064
+ //#endregion
2065
+ //#region src/components/progress/anatomy/circle-range.tsx
2066
+ function CircleRange(props) {
2067
+ const progress = use(RootContext$21);
2068
+ const { element,...rest } = props;
2069
+ const attributes = mergeProps(progress.getCircleRangeProps(), {
2070
+ className: classesProgress.circleRange,
2071
+ strokeLinecap: "round"
2072
+ }, rest);
2073
+ return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
2074
+ }
2075
+
2076
+ //#endregion
2077
+ //#region src/components/progress/anatomy/circle-track.tsx
2078
+ function CircleTrack(props) {
2079
+ const progress = use(RootContext$21);
2080
+ const { element,...rest } = props;
2081
+ const attributes = mergeProps(progress.getCircleTrackProps(), { className: classesProgress.circleTrack }, rest);
2082
+ return element ? element(attributes) : /* @__PURE__ */ jsx("circle", { ...attributes });
2083
+ }
2084
+
2085
+ //#endregion
2086
+ //#region src/components/progress/anatomy/circle.tsx
2087
+ function Circle(props) {
2088
+ const progress = use(RootContext$21);
2089
+ const { element, children,...rest } = props;
2090
+ const attributes = mergeProps(progress.getCircleProps(), {
2091
+ className: classesProgress.circle,
2092
+ style: {
2093
+ ["--size"]: "100px",
2094
+ ["--thickness"]: "10px"
2095
+ }
2096
+ }, rest);
2097
+ return element ? element(attributes) : /* @__PURE__ */ jsx("svg", {
2098
+ ...attributes,
2099
+ children
2100
+ });
2101
+ }
2102
+
2103
+ //#endregion
2104
+ //#region src/components/progress/anatomy/label.tsx
2105
+ function Label$6(props) {
2106
+ const progress = use(RootContext$21);
2107
+ const { element, children,...rest } = props;
2108
+ const attributes = mergeProps(progress.getLabelProps(), { className: classesProgress.label }, rest);
2109
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2110
+ ...attributes,
2111
+ children
2112
+ });
2113
+ }
2114
+
2115
+ //#endregion
2116
+ //#region src/components/progress/anatomy/range.tsx
2117
+ function Range$1(props) {
2118
+ const progress = use(RootContext$21);
2119
+ const { element,...rest } = props;
2120
+ const attributes = mergeProps(progress.getRangeProps(), { className: classesProgress.range }, rest);
2121
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
2122
+ }
2123
+
2124
+ //#endregion
2125
+ //#region src/components/progress/anatomy/root-context.tsx
2126
+ function RootContext$20(props) {
2127
+ const progress = use(RootContext$21);
2128
+ const { children } = props;
2129
+ return children(progress);
2130
+ }
2131
+
2132
+ //#endregion
2133
+ //#region src/components/progress/anatomy/root-provider.tsx
2134
+ function RootProvider$7(props) {
2135
+ const { element, children, value: progress,...rest } = props;
2136
+ const attributes = mergeProps(progress.getRootProps(), { className: classesProgress.root }, rest);
2137
+ return /* @__PURE__ */ jsx(RootContext$21.Provider, {
2138
+ value: progress,
2139
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2140
+ ...attributes,
2141
+ children
2142
+ })
2143
+ });
2144
+ }
2145
+
2146
+ //#endregion
2147
+ //#region src/components/progress/modules/provider.ts
2148
+ function useProgress(props = {}) {
2149
+ return connect$10(useMachine(machine$10, {
2150
+ id: useId(),
2151
+ ...props
2152
+ }), normalizeProps);
2153
+ }
2154
+
2155
+ //#endregion
2156
+ //#region src/components/progress/anatomy/root.tsx
2157
+ function Root$8(props) {
2158
+ const [progressProps, componentProps] = splitProps$10(props);
2159
+ const { element, children,...rest } = componentProps;
2160
+ const progress = useProgress(progressProps);
2161
+ const attributes = mergeProps(progress.getRootProps(), { className: classesProgress.root }, rest);
2162
+ return /* @__PURE__ */ jsx(RootContext$21.Provider, {
2163
+ value: progress,
2164
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2165
+ ...attributes,
2166
+ children
2167
+ })
2168
+ });
2169
+ }
2170
+
2171
+ //#endregion
2172
+ //#region src/components/progress/anatomy/track.tsx
2173
+ function Track$1(props) {
2174
+ const progress = use(RootContext$21);
2175
+ const { element, children,...rest } = props;
2176
+ const attributes = mergeProps(progress.getTrackProps(), { className: classesProgress.track }, rest);
2177
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2178
+ ...attributes,
2179
+ children
2180
+ });
2181
+ }
2182
+
2183
+ //#endregion
2184
+ //#region src/components/progress/anatomy/value-text.tsx
2185
+ function ValueText$1(props) {
2186
+ const progress = use(RootContext$21);
2187
+ const { element, children,...rest } = props;
2188
+ const attributes = mergeProps(progress.getValueTextProps(), { className: classesProgress.valueText }, rest);
2189
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2190
+ ...attributes,
2191
+ children: children ?? progress.percentAsString
2192
+ });
2193
+ }
2194
+
2195
+ //#endregion
2196
+ //#region src/components/progress/modules/anatomy.ts
2197
+ const Progress = Object.assign(Root$8, {
2198
+ Provider: RootProvider$7,
2199
+ Context: RootContext$20,
2200
+ Label: Label$6,
2201
+ ValueText: ValueText$1,
2202
+ Track: Track$1,
2203
+ Range: Range$1,
2204
+ Circle,
2205
+ CircleTrack,
2206
+ CircleRange
2207
+ });
2208
+
2209
+ //#endregion
2210
+ //#region src/components/rating-group/modules/root-context.ts
2211
+ const RootContext$19 = createContext$1();
2212
+
2213
+ //#endregion
2214
+ //#region src/components/rating-group/anatomy/control.tsx
2215
+ function Control$4(props) {
2216
+ const ratingGroup = use(RootContext$19);
2217
+ const { element, children,...rest } = props;
2218
+ const attributes = mergeProps(ratingGroup.getControlProps(), { className: classesRatingGroup.control }, rest);
2219
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2220
+ ...attributes,
2221
+ children
2222
+ });
2223
+ }
2224
+
2225
+ //#endregion
2226
+ //#region src/components/rating-group/anatomy/hidden-input.tsx
2227
+ function HiddenInput$3(props) {
2228
+ const ratingGroup = use(RootContext$19);
2229
+ const { element,...rest } = props;
2230
+ const attributes = mergeProps(ratingGroup.getHiddenInputProps(), { className: classesRatingGroup.hiddenInput }, rest);
2231
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
2232
+ }
2233
+
2234
+ //#endregion
2235
+ //#region src/internal/components/star-empty.tsx
2236
+ function StarEmpty(props) {
2237
+ const { ...rest } = props;
2238
+ return /* @__PURE__ */ jsx("svg", {
2239
+ ...mergeProps({
2240
+ xmlns: "http://www.w3.org/2000/svg",
2241
+ width: "24",
2242
+ height: "24",
2243
+ viewBox: "0 0 24 24",
2244
+ fill: "none",
2245
+ stroke: "currentColor",
2246
+ strokeWidth: "1.5"
2247
+ }, rest),
2248
+ children: /* @__PURE__ */ jsx("path", {
2249
+ strokeLinecap: "round",
2250
+ strokeLinejoin: "round",
2251
+ d: "M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345\n l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557\n l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0\n L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557\n l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345\n L11.48 3.5Z"
2252
+ })
2253
+ });
2254
+ }
2255
+
2256
+ //#endregion
2257
+ //#region src/internal/components/star-full.tsx
2258
+ function StarFull(props) {
2259
+ const { ...rest } = props;
2260
+ return /* @__PURE__ */ jsx("svg", {
2261
+ ...mergeProps({
2262
+ xmlns: "http://www.w3.org/2000/svg",
2263
+ width: "24",
2264
+ height: "24",
2265
+ viewBox: "0 0 24 24",
2266
+ fill: "currentColor"
2267
+ }, rest),
2268
+ children: /* @__PURE__ */ jsx("path", {
2269
+ fillRule: "evenodd",
2270
+ clipRule: "evenodd",
2271
+ d: "M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 \n 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 \n 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 \n 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273 \n -4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 \n 2.082-5.005Z"
2272
+ })
2273
+ });
2274
+ }
2275
+
2276
+ //#endregion
2277
+ //#region src/internal/components/star-half.tsx
2278
+ function StarHalf(props) {
2279
+ const { ...rest } = props;
2280
+ return /* @__PURE__ */ jsxs("svg", {
2281
+ ...mergeProps({
2282
+ xmlns: "http://www.w3.org/2000/svg",
2283
+ width: "24",
2284
+ height: "24",
2285
+ viewBox: "0 0 24 24",
2286
+ fill: "none",
2287
+ stroke: "currentColor",
2288
+ strokeWidth: "1.5"
2289
+ }, rest),
2290
+ children: [/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
2291
+ id: "half-fill",
2292
+ x1: "0%",
2293
+ y1: "0%",
2294
+ x2: "100%",
2295
+ y2: "0%",
2296
+ children: [/* @__PURE__ */ jsx("stop", {
2297
+ offset: "50%",
2298
+ stopColor: "currentColor"
2299
+ }), /* @__PURE__ */ jsx("stop", {
2300
+ offset: "50%",
2301
+ stopColor: "transparent"
2302
+ })]
2303
+ }) }), /* @__PURE__ */ jsx("path", {
2304
+ fill: "url(#half-fill)",
2305
+ strokeLinecap: "round",
2306
+ strokeLinejoin: "round",
2307
+ d: "M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345\n l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557\n l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0\n L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557\n l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345\n L11.48 3.5Z"
2308
+ })]
2309
+ });
2310
+ }
2311
+
2312
+ //#endregion
2313
+ //#region src/components/rating-group/anatomy/item.tsx
2314
+ function Item$4(props) {
2315
+ const ratingGroup = use(RootContext$19);
2316
+ const [itemProps, componentProps] = splitItemProps$5(props);
2317
+ const { element, children, empty = /* @__PURE__ */ jsx(StarEmpty, {}), half = /* @__PURE__ */ jsx(StarHalf, {}), full = /* @__PURE__ */ jsx(StarFull, {}),...rest } = componentProps;
2318
+ const itemState = ratingGroup.getItemState(itemProps);
2319
+ const attributes = mergeProps(ratingGroup.getItemProps(itemProps), { className: classesRatingGroup.item }, rest);
2320
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2321
+ ...attributes,
2322
+ children: children ? children : !itemState.highlighted ? empty : itemState.half ? half : full
2323
+ });
2324
+ }
2325
+
2326
+ //#endregion
2327
+ //#region src/components/rating-group/anatomy/label.tsx
2328
+ function Label$5(props) {
2329
+ const ratingGroup = use(RootContext$19);
2330
+ const { element, children,...rest } = props;
2331
+ const attributes = mergeProps(ratingGroup.getLabelProps(), { className: classesRatingGroup.label }, rest);
2332
+ return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
2333
+ ...attributes,
2334
+ children
2335
+ });
2336
+ }
2337
+
2338
+ //#endregion
2339
+ //#region src/components/rating-group/anatomy/root-context.tsx
2340
+ function RootContext$18(props) {
2341
+ const ratingGroup = use(RootContext$19);
2342
+ const { children } = props;
2343
+ return children(ratingGroup);
2344
+ }
2345
+
2346
+ //#endregion
2347
+ //#region src/components/rating-group/anatomy/root-provider.tsx
2348
+ function RootProvider$6(props) {
2349
+ const { element, children, value: ratingGroup,...rest } = props;
2350
+ const attributes = mergeProps(ratingGroup.getRootProps(), { className: classesRatingGroup.root }, rest);
2351
+ return /* @__PURE__ */ jsx(RootContext$19.Provider, {
2352
+ value: ratingGroup,
2353
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2354
+ ...attributes,
2355
+ children
2356
+ })
2357
+ });
2358
+ }
2359
+
2360
+ //#endregion
2361
+ //#region src/components/rating-group/modules/provider.ts
2362
+ function useRatingGroup(props = {}) {
2363
+ return connect$11(useMachine(machine$11, {
2364
+ id: useId(),
2365
+ ...props
2366
+ }), normalizeProps);
2367
+ }
2368
+
2369
+ //#endregion
2370
+ //#region src/components/rating-group/anatomy/root.tsx
2371
+ function Root$7(props) {
2372
+ const [ratingGroupProps, componentProps] = splitProps$11(props);
2373
+ const { element, children,...rest } = componentProps;
2374
+ const ratingGroup = useRatingGroup(ratingGroupProps);
2375
+ const attributes = mergeProps(ratingGroup.getRootProps(), { className: classesRatingGroup.root }, rest);
2376
+ return /* @__PURE__ */ jsx(RootContext$19.Provider, {
2377
+ value: ratingGroup,
2378
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2379
+ ...attributes,
2380
+ children
2381
+ })
2382
+ });
2383
+ }
2384
+
2385
+ //#endregion
2386
+ //#region src/components/rating-group/modules/anatomy.ts
2387
+ const RatingGroup = Object.assign(Root$7, {
2388
+ Provider: RootProvider$6,
2389
+ Context: RootContext$18,
2390
+ Label: Label$5,
2391
+ Control: Control$4,
2392
+ Item: Item$4,
2393
+ HiddenInput: HiddenInput$3
2394
+ });
2395
+
2396
+ //#endregion
2397
+ //#region src/components/segmented-control/anatomy/control.tsx
2398
+ function Control$3(props) {
2399
+ const { element, children,...rest } = props;
2400
+ const attributes = mergeProps({ className: classesSegmentedControl.control }, rest);
2401
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2402
+ ...attributes,
2403
+ children
2404
+ });
2405
+ }
2406
+
2407
+ //#endregion
2408
+ //#region src/components/segmented-control/modules/root-context.ts
2409
+ const RootContext$17 = createContext$1();
2410
+
2411
+ //#endregion
2412
+ //#region src/components/segmented-control/anatomy/indicator.tsx
2413
+ function Indicator$1(props) {
2414
+ const segmentedControl = use(RootContext$17);
2415
+ const { element,...rest } = props;
2416
+ const attributes = mergeProps(segmentedControl.getIndicatorProps(), { className: classesSegmentedControl.indicator }, rest);
2417
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
2418
+ }
2419
+
2420
+ //#endregion
2421
+ //#region src/components/segmented-control/modules/item-context.ts
2422
+ const ItemContext$1 = createContext$1();
2423
+
2424
+ //#endregion
2425
+ //#region src/components/segmented-control/anatomy/item-hidden-input.tsx
2426
+ function ItemHiddenInput(props) {
2427
+ const segmentedControl = use(RootContext$17);
2428
+ const itemProps = use(ItemContext$1);
2429
+ const { element,...rest } = props;
2430
+ const attributes = mergeProps(segmentedControl.getItemHiddenInputProps(itemProps), { className: classesSegmentedControl.itemHiddenInput }, rest);
2431
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
2432
+ }
2433
+
2434
+ //#endregion
2435
+ //#region src/components/segmented-control/anatomy/item-text.tsx
2436
+ function ItemText$1(props) {
2437
+ const segmentedControl = use(RootContext$17);
2438
+ const itemProps = use(ItemContext$1);
2439
+ const { element, children,...rest } = props;
2440
+ const attributes = mergeProps(segmentedControl.getItemTextProps(itemProps), { className: classesSegmentedControl.itemText }, rest);
2441
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2442
+ ...attributes,
2443
+ children
2444
+ });
2445
+ }
2446
+
2447
+ //#endregion
2448
+ //#region src/components/segmented-control/anatomy/item.tsx
2449
+ function Item$3(props) {
2450
+ const segmentedControl = use(RootContext$17);
2451
+ const [itemProps, componentProps] = splitItemProps$6(props);
2452
+ const { element, children,...rest } = componentProps;
2453
+ const attributes = mergeProps(segmentedControl.getItemProps(itemProps), { className: classesSegmentedControl.item }, rest);
2454
+ return /* @__PURE__ */ jsx(ItemContext$1.Provider, {
2455
+ value: itemProps,
2456
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
2457
+ ...attributes,
2458
+ children
2459
+ })
2460
+ });
2461
+ }
2462
+
2463
+ //#endregion
2464
+ //#region src/components/segmented-control/anatomy/label.tsx
2465
+ function Label$4(props) {
2466
+ const segmentedControl = use(RootContext$17);
2467
+ const { element, children,...rest } = props;
2468
+ const attributes = mergeProps(segmentedControl.getLabelProps(), { className: classesSegmentedControl.label }, rest);
2469
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2470
+ ...attributes,
2471
+ children
2472
+ });
2473
+ }
2474
+
2475
+ //#endregion
2476
+ //#region src/components/segmented-control/anatomy/root-context.tsx
2477
+ function RootContext$16(props) {
2478
+ const segmentedControl = use(RootContext$17);
2479
+ const { children } = props;
2480
+ return children(segmentedControl);
2481
+ }
2482
+
2483
+ //#endregion
2484
+ //#region src/components/segmented-control/anatomy/root-provider.tsx
2485
+ function RootProvider$5(props) {
2486
+ const { element, children, value: segmentedControl,...rest } = props;
2487
+ const attributes = mergeProps(segmentedControl.getRootProps(), { className: classesSegmentedControl.root }, rest);
2488
+ return /* @__PURE__ */ jsx(RootContext$17.Provider, {
2489
+ value: segmentedControl,
2490
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2491
+ ...attributes,
2492
+ children
2493
+ })
2494
+ });
2495
+ }
2496
+
2497
+ //#endregion
2498
+ //#region src/components/segmented-control/modules/provider.ts
2499
+ function useSegmentedControl(props = {}) {
2500
+ return connect$12(useMachine(machine$12, {
2501
+ id: useId(),
2502
+ orientation: "horizontal",
2503
+ ...props
2504
+ }), normalizeProps);
2505
+ }
2506
+
2507
+ //#endregion
2508
+ //#region src/components/segmented-control/anatomy/root.tsx
2509
+ function Root$6(props) {
2510
+ const [segmentedControlProps, componentProps] = splitProps$12(props);
2511
+ const { element, children,...rest } = componentProps;
2512
+ const segmentedControl = useSegmentedControl(segmentedControlProps);
2513
+ const attributes = mergeProps(segmentedControl.getRootProps(), { className: classesSegmentedControl.root }, rest);
2514
+ return /* @__PURE__ */ jsx(RootContext$17.Provider, {
2515
+ value: segmentedControl,
2516
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2517
+ ...attributes,
2518
+ children
2519
+ })
2520
+ });
2521
+ }
2522
+
2523
+ //#endregion
2524
+ //#region src/components/segmented-control/modules/anatomy.ts
2525
+ const SegmentedControl = Object.assign(Root$6, {
2526
+ Provider: RootProvider$5,
2527
+ Context: RootContext$16,
2528
+ Label: Label$4,
2529
+ Control: Control$3,
2530
+ Indicator: Indicator$1,
2531
+ Item: Item$3,
2532
+ ItemText: ItemText$1,
2533
+ ItemHiddenInput
2534
+ });
2535
+
2536
+ //#endregion
2537
+ //#region src/components/slider/modules/root-context.ts
2538
+ const RootContext$15 = createContext$1();
2539
+
2540
+ //#endregion
2541
+ //#region src/components/slider/anatomy/control.tsx
2542
+ function Control$2(props) {
2543
+ const slider = use(RootContext$15);
2544
+ const { element, children,...rest } = props;
2545
+ const attributes = mergeProps(slider.getControlProps(), { className: classesSlider.control }, rest);
2546
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2547
+ ...attributes,
2548
+ children
2549
+ });
2550
+ }
2551
+
2552
+ //#endregion
2553
+ //#region src/components/slider/modules/thumb-context.ts
2554
+ const ThumbContext = createContext$1();
2555
+
2556
+ //#endregion
2557
+ //#region src/components/slider/anatomy/hidden-input.tsx
2558
+ function HiddenInput$2(props) {
2559
+ const slider = use(RootContext$15);
2560
+ const thumbProps = use(ThumbContext);
2561
+ const { element,...rest } = props;
2562
+ const attributes = mergeProps(slider.getHiddenInputProps(thumbProps), { className: classesSlider.hiddenInput }, rest);
2563
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
2564
+ }
2565
+
2566
+ //#endregion
2567
+ //#region src/components/slider/anatomy/label.tsx
2568
+ function Label$3(props) {
2569
+ const slider = use(RootContext$15);
2570
+ const { element, children,...rest } = props;
2571
+ const attributes = mergeProps(slider.getLabelProps(), { className: classesSlider.label }, rest);
2572
+ return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
2573
+ ...attributes,
2574
+ children
2575
+ });
2576
+ }
2577
+
2578
+ //#endregion
2579
+ //#region src/components/slider/anatomy/marker-group.tsx
2580
+ function MarkerGroup(props) {
2581
+ const slider = use(RootContext$15);
2582
+ const { element, children,...rest } = props;
2583
+ const attributes = mergeProps(slider.getMarkerGroupProps(), { className: classesSlider.markerGroup }, rest);
2584
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2585
+ ...attributes,
2586
+ children
2587
+ });
2588
+ }
2589
+
2590
+ //#endregion
2591
+ //#region src/components/slider/anatomy/marker.tsx
2592
+ function Marker(props) {
2593
+ const slider = use(RootContext$15);
2594
+ const { element, children, value,...rest } = props;
2595
+ const attributes = mergeProps(slider.getMarkerProps({ value }), { className: classesSlider.marker }, rest);
2596
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2597
+ ...attributes,
2598
+ children: children ?? value
2599
+ });
2600
+ }
2601
+
2602
+ //#endregion
2603
+ //#region src/components/slider/anatomy/range.tsx
2604
+ function Range(props) {
2605
+ const slider = use(RootContext$15);
2606
+ const { element, children,...rest } = props;
2607
+ const attributes = mergeProps(slider.getRangeProps(), { className: classesSlider.range }, rest);
2608
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2609
+ ...attributes,
2610
+ children
2611
+ });
2612
+ }
2613
+
2614
+ //#endregion
2615
+ //#region src/components/slider/anatomy/root-context.tsx
2616
+ function RootContext$14(props) {
2617
+ const slider = use(RootContext$15);
2618
+ const { children } = props;
2619
+ return children(slider);
2620
+ }
2621
+
2622
+ //#endregion
2623
+ //#region src/components/slider/anatomy/root-provider.tsx
2624
+ function SliderRootProvider(props) {
2625
+ const { element, children, value: slider,...rest } = props;
2626
+ const attributes = mergeProps(slider.getRootProps(), { className: classesSlider.root }, rest);
2627
+ return /* @__PURE__ */ jsx(RootContext$15.Provider, {
2628
+ value: slider,
2629
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2630
+ ...attributes,
2631
+ children
2632
+ })
2633
+ });
2634
+ }
2635
+
2636
+ //#endregion
2637
+ //#region src/components/slider/modules/provider.ts
2638
+ function useSlider(props = {}) {
2639
+ return connect$13(useMachine(machine$13, {
2640
+ id: useId(),
2641
+ ...props
2642
+ }), normalizeProps);
2643
+ }
2644
+
2645
+ //#endregion
2646
+ //#region src/components/slider/anatomy/root.tsx
2647
+ function SliderRoot(props) {
2648
+ const [sliderProps, componentProps] = splitProps$13(props);
2649
+ const { element, children,...rest } = componentProps;
2650
+ const slider = useSlider(sliderProps);
2651
+ const attributes = mergeProps(slider.getRootProps(), { className: classesSlider.root }, rest);
2652
+ return /* @__PURE__ */ jsx(RootContext$15.Provider, {
2653
+ value: slider,
2654
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2655
+ ...attributes,
2656
+ children
2657
+ })
2658
+ });
2659
+ }
2660
+
2661
+ //#endregion
2662
+ //#region src/components/slider/anatomy/thumb.tsx
2663
+ function Thumb$1(props) {
2664
+ const slider = use(RootContext$15);
2665
+ const [thumbProps, componentProps] = splitThumbProps(props);
2666
+ const { element, children,...rest } = componentProps;
2667
+ const attributes = mergeProps(slider.getThumbProps(thumbProps), { className: classesSlider.thumb }, rest);
2668
+ return /* @__PURE__ */ jsx(ThumbContext.Provider, {
2669
+ value: thumbProps,
2670
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2671
+ ...attributes,
2672
+ children
2673
+ })
2674
+ });
2675
+ }
2676
+
2677
+ //#endregion
2678
+ //#region src/components/slider/anatomy/track.tsx
2679
+ function Track(props) {
2680
+ const slider = use(RootContext$15);
2681
+ const { element, children,...rest } = props;
2682
+ const attributes = mergeProps(slider.getTrackProps(), { className: classesSlider.track }, rest);
2683
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2684
+ ...attributes,
2685
+ children
2686
+ });
2687
+ }
2688
+
2689
+ //#endregion
2690
+ //#region src/components/slider/anatomy/value-text.tsx
2691
+ function ValueText(props) {
2692
+ const slider = use(RootContext$15);
2693
+ const { element, children,...rest } = props;
2694
+ const attributes = mergeProps(slider.getValueTextProps(), { className: classesSlider.valueText }, rest);
2695
+ return element ? element(attributes) : /* @__PURE__ */ jsx("output", {
2696
+ ...attributes,
2697
+ children
2698
+ });
2699
+ }
2700
+
2701
+ //#endregion
2702
+ //#region src/components/slider/modules/anatomy.ts
2703
+ const Slider = Object.assign(SliderRoot, {
2704
+ Provider: SliderRootProvider,
2705
+ Context: RootContext$14,
2706
+ Label: Label$3,
2707
+ ValueText,
2708
+ Control: Control$2,
2709
+ Track,
2710
+ Range,
2711
+ Thumb: Thumb$1,
2712
+ HiddenInput: HiddenInput$2,
2713
+ MarkerGroup,
2714
+ Marker
2715
+ });
2716
+
2717
+ //#endregion
2718
+ //#region src/components/switch/modules/root-context.ts
2719
+ const RootContext$13 = createContext$1();
2720
+
2721
+ //#endregion
2722
+ //#region src/components/switch/anatomy/control.tsx
2723
+ function Control$1(props) {
2724
+ const switch_ = use(RootContext$13);
2725
+ const { element, children,...rest } = props;
2726
+ const attributes = mergeProps(switch_.getControlProps(), { className: classesSwitch.control }, rest);
2727
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2728
+ ...attributes,
2729
+ children
2730
+ });
2731
+ }
2732
+
2733
+ //#endregion
2734
+ //#region src/components/switch/anatomy/hidden-input.tsx
2735
+ function HiddenInput$1(props) {
2736
+ const switch_ = use(RootContext$13);
2737
+ const { element,...rest } = props;
2738
+ const attributes = mergeProps(switch_.getHiddenInputProps(), { className: classesSwitch.hiddenInput }, rest);
2739
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
2740
+ }
2741
+
2742
+ //#endregion
2743
+ //#region src/components/switch/anatomy/label.tsx
2744
+ function Label$2(props) {
2745
+ const switch_ = use(RootContext$13);
2746
+ const { element, children,...rest } = props;
2747
+ const attributes = mergeProps(switch_.getLabelProps(), { className: classesSwitch.label }, rest);
2748
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2749
+ ...attributes,
2750
+ children
2751
+ });
2752
+ }
2753
+
2754
+ //#endregion
2755
+ //#region src/components/switch/anatomy/root-context.tsx
2756
+ function RootContext$12(props) {
2757
+ const switch_ = use(RootContext$13);
2758
+ const { children } = props;
2759
+ return children(switch_);
2760
+ }
2761
+
2762
+ //#endregion
2763
+ //#region src/components/switch/anatomy/root-provider.tsx
2764
+ function RootProvider$4(props) {
2765
+ const { element, children, value: switch_,...rest } = props;
2766
+ const attributes = mergeProps(switch_.getRootProps(), { className: classesSwitch.root }, rest);
2767
+ return /* @__PURE__ */ jsx(RootContext$13.Provider, {
2768
+ value: switch_,
2769
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
2770
+ ...attributes,
2771
+ children
2772
+ })
2773
+ });
2774
+ }
2775
+
2776
+ //#endregion
2777
+ //#region src/components/switch/modules/provider.ts
2778
+ function useSwitch(props = {}) {
2779
+ return connect$14(useMachine(machine$14, {
2780
+ id: useId(),
2781
+ ...props
2782
+ }), normalizeProps);
2783
+ }
2784
+
2785
+ //#endregion
2786
+ //#region src/components/switch/anatomy/root.tsx
2787
+ function Root$5(props) {
2788
+ const [switchProps, componentProps] = splitProps$14(props);
2789
+ const { element, children,...rest } = componentProps;
2790
+ const switch_ = useSwitch(switchProps);
2791
+ const attributes = mergeProps(switch_.getRootProps(), { className: classesSwitch.root }, rest);
2792
+ return /* @__PURE__ */ jsx(RootContext$13.Provider, {
2793
+ value: switch_,
2794
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("label", {
2795
+ ...attributes,
2796
+ children
2797
+ })
2798
+ });
2799
+ }
2800
+
2801
+ //#endregion
2802
+ //#region src/components/switch/anatomy/thumb.tsx
2803
+ function Thumb(props) {
2804
+ const switch_ = use(RootContext$13);
2805
+ const { element, children,...rest } = props;
2806
+ const attributes = mergeProps(switch_.getThumbProps(), { className: classesSwitch.thumb }, rest);
2807
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
2808
+ ...attributes,
2809
+ children
2810
+ });
2811
+ }
2812
+
2813
+ //#endregion
2814
+ //#region src/components/switch/modules/anatomy.ts
2815
+ const Switch = Object.assign(Root$5, {
2816
+ Provider: RootProvider$4,
2817
+ Context: RootContext$12,
2818
+ Control: Control$1,
2819
+ Thumb,
2820
+ Label: Label$2,
2821
+ HiddenInput: HiddenInput$1
2822
+ });
2823
+
2824
+ //#endregion
2825
+ //#region src/components/tabs/modules/root-context.ts
2826
+ const RootContext$11 = createContext$1();
2827
+
2828
+ //#endregion
2829
+ //#region src/components/tabs/anatomy/content.tsx
2830
+ function Content$1(props) {
2831
+ const tabs = use(RootContext$11);
2832
+ const [contentProps, componentProps] = splitContentProps(props);
2833
+ const { element, children,...rest } = componentProps;
2834
+ const attributes = mergeProps(tabs.getContentProps(contentProps), { className: classesTabs.content }, rest);
2835
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2836
+ ...attributes,
2837
+ children
2838
+ });
2839
+ }
2840
+
2841
+ //#endregion
2842
+ //#region src/components/tabs/anatomy/indicator.tsx
2843
+ function Indicator(props) {
2844
+ const tabs = use(RootContext$11);
2845
+ const { element,...rest } = props;
2846
+ const attributes = mergeProps(tabs.getIndicatorProps(), { className: classesTabs.indicator }, rest);
2847
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", { ...attributes });
2848
+ }
2849
+
2850
+ //#endregion
2851
+ //#region src/components/tabs/anatomy/list.tsx
2852
+ function List(props) {
2853
+ const tabs = use(RootContext$11);
2854
+ const { element, children,...rest } = props;
2855
+ const attributes = mergeProps(tabs.getListProps(), { className: classesTabs.list }, rest);
2856
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2857
+ ...attributes,
2858
+ children
2859
+ });
2860
+ }
2861
+
2862
+ //#endregion
2863
+ //#region src/components/tabs/anatomy/root-context.tsx
2864
+ function RootContext$10(props) {
2865
+ const tabs = use(RootContext$11);
2866
+ const { children } = props;
2867
+ return children(tabs);
2868
+ }
2869
+
2870
+ //#endregion
2871
+ //#region src/components/tabs/anatomy/root-provider.tsx
2872
+ function RootProvider$3(props) {
2873
+ const { element, children, value: tabs,...rest } = props;
2874
+ const attributes = mergeProps(tabs.getRootProps(), { className: classesTabs.root }, rest);
2875
+ return /* @__PURE__ */ jsx(RootContext$11.Provider, {
2876
+ value: tabs,
2877
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2878
+ ...attributes,
2879
+ children
2880
+ })
2881
+ });
2882
+ }
2883
+
2884
+ //#endregion
2885
+ //#region src/components/tabs/modules/provider.ts
2886
+ function useTabs(props = {}) {
2887
+ return connect$15(useMachine(machine$15, {
2888
+ id: useId(),
2889
+ ...props
2890
+ }), normalizeProps);
2891
+ }
2892
+
2893
+ //#endregion
2894
+ //#region src/components/tabs/anatomy/root.tsx
2895
+ function Root$4(props) {
2896
+ const [tabsProps, componentProps] = splitProps$15(props);
2897
+ const { element, children,...rest } = componentProps;
2898
+ const tabs = useTabs(tabsProps);
2899
+ const attributes = mergeProps(tabs.getRootProps(), { className: classesTabs.root }, rest);
2900
+ return /* @__PURE__ */ jsx(RootContext$11.Provider, {
2901
+ value: tabs,
2902
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2903
+ ...attributes,
2904
+ children
2905
+ })
2906
+ });
2907
+ }
2908
+
2909
+ //#endregion
2910
+ //#region src/components/tabs/anatomy/trigger.tsx
2911
+ function Trigger$1(props) {
2912
+ const tabs = use(RootContext$11);
2913
+ const [triggerProps, componentProps] = splitTriggerProps(props);
2914
+ const { element, children,...rest } = componentProps;
2915
+ const attributes = mergeProps(tabs.getTriggerProps(triggerProps), { className: classesTabs.trigger }, rest);
2916
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
2917
+ ...attributes,
2918
+ children
2919
+ });
2920
+ }
2921
+
2922
+ //#endregion
2923
+ //#region src/components/tabs/modules/anatomy.ts
2924
+ const Tabs = Object.assign(Root$4, {
2925
+ Provider: RootProvider$3,
2926
+ Context: RootContext$10,
2927
+ List,
2928
+ Trigger: Trigger$1,
2929
+ Indicator,
2930
+ Content: Content$1
2931
+ });
2932
+
2933
+ //#endregion
2934
+ //#region src/components/tags-input/modules/root-context.ts
2935
+ const RootContext$9 = createContext$1();
2936
+
2937
+ //#endregion
2938
+ //#region src/components/tags-input/anatomy/clear-trigger.tsx
2939
+ function ClearTrigger(props) {
2940
+ const tagsInput = use(RootContext$9);
2941
+ const { element, children,...rest } = props;
2942
+ const attributes = mergeProps(tagsInput.getClearTriggerProps(), { className: classesTagsInput.clearTrigger }, rest);
2943
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
2944
+ ...attributes,
2945
+ children
2946
+ });
2947
+ }
2948
+
2949
+ //#endregion
2950
+ //#region src/components/tags-input/anatomy/control.tsx
2951
+ function Control(props) {
2952
+ const tagsInput = use(RootContext$9);
2953
+ const { element, children,...rest } = props;
2954
+ const attributes = mergeProps(tagsInput.getControlProps(), { className: classesTagsInput.control }, rest);
2955
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
2956
+ ...attributes,
2957
+ children
2958
+ });
2959
+ }
2960
+
2961
+ //#endregion
2962
+ //#region src/components/tags-input/anatomy/hidden-input.tsx
2963
+ function HiddenInput(props) {
2964
+ const tagsInput = use(RootContext$9);
2965
+ const { element,...rest } = props;
2966
+ const attributes = mergeProps(tagsInput.getHiddenInputProps(), { className: classesTagsInput.hiddenInput }, rest);
2967
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
2968
+ }
2969
+
2970
+ //#endregion
2971
+ //#region src/components/tags-input/anatomy/input.tsx
2972
+ function Input(props) {
2973
+ const tagsInput = use(RootContext$9);
2974
+ const { element,...rest } = props;
2975
+ const attributes = mergeProps(tagsInput.getInputProps(), { className: classesTagsInput.input }, rest);
2976
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
2977
+ }
2978
+
2979
+ //#endregion
2980
+ //#region src/components/tags-input/modules/item-context.ts
2981
+ const ItemContext = createContext$1();
2982
+
2983
+ //#endregion
2984
+ //#region src/components/tags-input/anatomy/item-delete-trigger.tsx
2985
+ function ItemDeleteTrigger(props) {
2986
+ const tagsInput = use(RootContext$9);
2987
+ const itemProps = use(ItemContext);
2988
+ const { element, children = /* @__PURE__ */ jsx(Fragment, { children: "×" }),...rest } = props;
2989
+ const attributes = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), { className: classesTagsInput.itemDeleteTrigger }, rest);
2990
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
2991
+ ...attributes,
2992
+ children
2993
+ });
2994
+ }
2995
+
2996
+ //#endregion
2997
+ //#region src/components/tags-input/anatomy/item-input.tsx
2998
+ function ItemInput(props) {
2999
+ const tagsInput = use(RootContext$9);
3000
+ const itemProps = use(ItemContext);
3001
+ const { element,...rest } = props;
3002
+ const attributes = mergeProps(tagsInput.getItemInputProps(itemProps), { className: classesTagsInput.itemInput }, rest);
3003
+ return element ? element(attributes) : /* @__PURE__ */ jsx("input", { ...attributes });
3004
+ }
3005
+
3006
+ //#endregion
3007
+ //#region src/components/tags-input/anatomy/item-preview.tsx
3008
+ function ItemPreview(props) {
3009
+ const tagsInput = use(RootContext$9);
3010
+ const itemProps = use(ItemContext);
3011
+ const { element, children,...rest } = props;
3012
+ const attributes = mergeProps(tagsInput.getItemPreviewProps(itemProps), { className: classesTagsInput.itemPreview }, rest);
3013
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3014
+ ...attributes,
3015
+ children
3016
+ });
3017
+ }
3018
+
3019
+ //#endregion
3020
+ //#region src/components/tags-input/anatomy/item-text.tsx
3021
+ function ItemText(props) {
3022
+ const tagsInput = use(RootContext$9);
3023
+ const itemProps = use(ItemContext);
3024
+ const { element, children,...rest } = props;
3025
+ const attributes = mergeProps(tagsInput.getItemTextProps(itemProps), { className: classesTagsInput.itemText }, rest);
3026
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
3027
+ ...attributes,
3028
+ children
3029
+ });
3030
+ }
3031
+
3032
+ //#endregion
3033
+ //#region src/components/tags-input/anatomy/item.tsx
3034
+ function Item$2(props) {
3035
+ const tagsInput = use(RootContext$9);
3036
+ const [itemProps, componentProps] = splitItemProps$7(props);
3037
+ const { element, children,...rest } = componentProps;
3038
+ const attributes = mergeProps(tagsInput.getItemProps(itemProps), { className: classesTagsInput.item }, rest);
3039
+ return /* @__PURE__ */ jsx(ItemContext.Provider, {
3040
+ value: itemProps,
3041
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("span", {
3042
+ ...attributes,
3043
+ children
3044
+ })
3045
+ });
3046
+ }
3047
+
3048
+ //#endregion
3049
+ //#region src/components/tags-input/anatomy/label.tsx
3050
+ function Label$1(props) {
3051
+ const tagsInput = use(RootContext$9);
3052
+ const { element, children,...rest } = props;
3053
+ const attributes = mergeProps(tagsInput.getLabelProps(), { className: classesTagsInput.label }, rest);
3054
+ return element ? element(attributes) : /* @__PURE__ */ jsx("label", {
3055
+ ...attributes,
3056
+ children
3057
+ });
3058
+ }
3059
+
3060
+ //#endregion
3061
+ //#region src/components/tags-input/anatomy/root-context.tsx
3062
+ function RootContext$8(props) {
3063
+ const tagsInput = use(RootContext$9);
3064
+ const { children } = props;
3065
+ return children(tagsInput);
3066
+ }
3067
+
3068
+ //#endregion
3069
+ //#region src/components/tags-input/anatomy/root-provider.tsx
3070
+ function RootProvider$2(props) {
3071
+ const { element, children, value: tagsInput,...rest } = props;
3072
+ const attributes = mergeProps(tagsInput.getRootProps(), { className: classesTagsInput.root }, rest);
3073
+ return /* @__PURE__ */ jsx(RootContext$9.Provider, {
3074
+ value: tagsInput,
3075
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3076
+ ...attributes,
3077
+ children
3078
+ })
3079
+ });
3080
+ }
3081
+
3082
+ //#endregion
3083
+ //#region src/components/tags-input/modules/provider.ts
3084
+ function useTagsInput(props = {}) {
3085
+ return connect$16(useMachine(machine$16, {
3086
+ id: useId(),
3087
+ ...props
3088
+ }), normalizeProps);
3089
+ }
3090
+
3091
+ //#endregion
3092
+ //#region src/components/tags-input/anatomy/root.tsx
3093
+ function Root$3(props) {
3094
+ const [tagsInputProps, componentProps] = splitProps$16(props);
3095
+ const { element, children,...rest } = componentProps;
3096
+ const tagsInput = useTagsInput(tagsInputProps);
3097
+ const attributes = mergeProps(tagsInput.getRootProps(), { className: classesTagsInput.root }, rest);
3098
+ return /* @__PURE__ */ jsx(RootContext$9.Provider, {
3099
+ value: tagsInput,
3100
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3101
+ ...attributes,
3102
+ children
3103
+ })
3104
+ });
3105
+ }
3106
+
3107
+ //#endregion
3108
+ //#region src/components/tags-input/modules/anatomy.ts
3109
+ const TagsInput = Object.assign(Root$3, {
3110
+ Provider: RootProvider$2,
3111
+ Context: RootContext$8,
3112
+ Label: Label$1,
3113
+ Control,
3114
+ Item: Item$2,
3115
+ ItemPreview,
3116
+ ItemText,
3117
+ ItemDeleteTrigger,
3118
+ ItemInput,
3119
+ Input,
3120
+ ClearTrigger,
3121
+ HiddenInput
3122
+ });
3123
+
3124
+ //#endregion
3125
+ //#region src/components/toast/modules/root-context.ts
3126
+ const RootContext$7 = createContext$1();
3127
+
3128
+ //#endregion
3129
+ //#region src/components/toast/anatomy/action-trigger.tsx
3130
+ function ActionTrigger(props) {
3131
+ const toast = use(RootContext$7);
3132
+ const { element, children,...rest } = props;
3133
+ const attributes = mergeProps(toast.getActionTriggerProps(), { className: classesToast.actionTrigger }, rest);
3134
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
3135
+ ...attributes,
3136
+ children
3137
+ });
3138
+ }
3139
+
3140
+ //#endregion
3141
+ //#region src/internal/components/x.tsx
3142
+ function X(props) {
3143
+ const { ...rest } = props;
3144
+ return /* @__PURE__ */ jsxs("svg", {
3145
+ ...mergeProps({
3146
+ xmlns: "http://www.w3.org/2000/svg",
3147
+ width: "24",
3148
+ height: "24",
3149
+ viewBox: "0 0 24 24",
3150
+ fill: "none",
3151
+ stroke: "currentColor",
3152
+ strokeWidth: "2",
3153
+ strokeLinecap: "round",
3154
+ strokeLinejoin: "round"
3155
+ }, rest),
3156
+ children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })]
3157
+ });
3158
+ }
3159
+
3160
+ //#endregion
3161
+ //#region src/components/toast/anatomy/close-trigger.tsx
3162
+ function CloseTrigger(props) {
3163
+ const toast = use(RootContext$7);
3164
+ const { element, children = /* @__PURE__ */ jsx(X, {}),...rest } = props;
3165
+ const attributes = mergeProps(toast.getCloseTriggerProps(), { className: classesToast.closeTrigger }, rest);
3166
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
3167
+ ...attributes,
3168
+ children
3169
+ });
3170
+ }
3171
+
3172
+ //#endregion
3173
+ //#region src/components/toast/anatomy/description.tsx
3174
+ function Description(props) {
3175
+ const toast = use(RootContext$7);
3176
+ const { element, children,...rest } = props;
3177
+ const attributes = mergeProps(toast.getDescriptionProps(), { className: classesToast.description }, rest);
3178
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3179
+ ...attributes,
3180
+ children
3181
+ });
3182
+ }
3183
+
3184
+ //#endregion
3185
+ //#region src/components/toast/modules/group-context.ts
3186
+ const GroupContext = createContext$1();
3187
+
3188
+ //#endregion
3189
+ //#region src/components/toast/anatomy/group.tsx
3190
+ function Group(props) {
3191
+ const { element, children, toaster,...rest } = props;
3192
+ const service = useMachine(group.machine, {
3193
+ id: useId(),
3194
+ store: toaster
3195
+ });
3196
+ const api = group.connect(service, normalizeProps);
3197
+ const attributes = mergeProps(api.getGroupProps(), { className: classesToast.group }, rest);
3198
+ return /* @__PURE__ */ jsx(GroupContext.Provider, {
3199
+ value: service,
3200
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3201
+ ...attributes,
3202
+ children: api.getToasts().map((toast) => children?.(toast))
3203
+ })
3204
+ });
3205
+ }
3206
+
3207
+ //#endregion
3208
+ //#region src/components/toast/anatomy/message.tsx
3209
+ function Message(props) {
3210
+ const { element, children,...rest } = props;
3211
+ const attributes = mergeProps({ className: classesToast.message }, rest);
3212
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3213
+ ...attributes,
3214
+ children
3215
+ });
3216
+ }
3217
+
3218
+ //#endregion
3219
+ //#region src/components/toast/anatomy/root-context.tsx
3220
+ function RootContext$6(props) {
3221
+ const toast = use(RootContext$7);
3222
+ const { children } = props;
3223
+ return children(toast);
3224
+ }
3225
+
3226
+ //#endregion
3227
+ //#region src/components/toast/anatomy/root.tsx
3228
+ function Root$2(props) {
3229
+ const group$1 = use(GroupContext);
3230
+ const { element, children, toast: toastProps,...rest } = props;
3231
+ const toast = connect$17(useMachine(machine$17, {
3232
+ ...toastProps,
3233
+ parent: group$1
3234
+ }), normalizeProps);
3235
+ const attributes = mergeProps(toast.getRootProps(), { className: classesToast.root }, rest);
3236
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(RootContext$7.Provider, {
3237
+ value: toast,
3238
+ children: element ? element(attributes) : /* @__PURE__ */ jsxs("div", {
3239
+ ...attributes,
3240
+ children: [
3241
+ /* @__PURE__ */ jsx("div", { ...toast.getGhostBeforeProps() }),
3242
+ children,
3243
+ /* @__PURE__ */ jsx("div", { ...toast.getGhostAfterProps() })
3244
+ ]
3245
+ })
3246
+ }), /* @__PURE__ */ jsx("style", { children: `
3247
+ [data-part='root'] {
3248
+ translate: var(--x) var(--y);
3249
+ scale: var(--scale);
3250
+ z-index: var(--z-index);
3251
+ height: var(--height);
3252
+ opacity: var(--opacity);
3253
+ will-change: translate, opacity, scale;
3254
+ }
3255
+ [data-part='root'] {
3256
+ transition:
3257
+ translate 400ms,
3258
+ scale 400ms,
3259
+ opacity 400ms;
3260
+ transition-timing-function: cubic-bezier(0.21, 1.02, 0.73, 1);
3261
+ }
3262
+ [data-part='root'][data-state='closed'] {
3263
+ transition:
3264
+ translate 400ms,
3265
+ scale 400ms,
3266
+ opacity 200ms;
3267
+ transition-timing-function: cubic-bezier(0.06, 0.71, 0.55, 1);
3268
+ }
3269
+ ` })] });
3270
+ }
3271
+
3272
+ //#endregion
3273
+ //#region src/components/toast/anatomy/title.tsx
3274
+ function Title(props) {
3275
+ const toast = use(RootContext$7);
3276
+ const { element, children,...rest } = props;
3277
+ const attributes = mergeProps(toast.getTitleProps(), { className: classesToast.title }, rest);
3278
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3279
+ ...attributes,
3280
+ children
3281
+ });
3282
+ }
3283
+
3284
+ //#endregion
3285
+ //#region src/components/toast/modules/anatomy.ts
3286
+ const Toast = Object.assign(Root$2, {
3287
+ Context: RootContext$6,
3288
+ Group,
3289
+ Message,
3290
+ Title,
3291
+ Description,
3292
+ ActionTrigger,
3293
+ CloseTrigger
3294
+ });
3295
+
3296
+ //#endregion
3297
+ //#region src/components/toggle-group/modules/root-context.ts
3298
+ const RootContext$5 = createContext$1();
3299
+
3300
+ //#endregion
3301
+ //#region src/components/toggle-group/anatomy/item.tsx
3302
+ function Item$1(props) {
3303
+ const toggleGroup = use(RootContext$5);
3304
+ const [itemProps, componentProps] = splitItemProps$8(props);
3305
+ const { element, children,...rest } = componentProps;
3306
+ const attributes = mergeProps(toggleGroup.getItemProps(itemProps), { className: classesToggleGroup.item }, rest);
3307
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
3308
+ ...attributes,
3309
+ children
3310
+ });
3311
+ }
3312
+
3313
+ //#endregion
3314
+ //#region src/components/toggle-group/anatomy/root-context.tsx
3315
+ function RootContext$4(props) {
3316
+ const toggleGroup = use(RootContext$5);
3317
+ const { children } = props;
3318
+ return children(toggleGroup);
3319
+ }
3320
+
3321
+ //#endregion
3322
+ //#region src/components/toggle-group/anatomy/root-provider.tsx
3323
+ function ToggleGroupRootProvider(props) {
3324
+ const { element, children, value: toggleGroup,...rest } = props;
3325
+ const attributes = mergeProps(toggleGroup.getRootProps(), { className: classesToggleGroup.root }, rest);
3326
+ return /* @__PURE__ */ jsx(RootContext$5.Provider, {
3327
+ value: toggleGroup,
3328
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3329
+ ...attributes,
3330
+ children
3331
+ })
3332
+ });
3333
+ }
3334
+
3335
+ //#endregion
3336
+ //#region src/components/toggle-group/modules/provider.ts
3337
+ function useToggleGroup(props = {}) {
3338
+ return connect$18(useMachine(machine$18, {
3339
+ id: useId(),
3340
+ ...props
3341
+ }), normalizeProps);
3342
+ }
3343
+
3344
+ //#endregion
3345
+ //#region src/components/toggle-group/anatomy/root.tsx
3346
+ function ToggleGroupRoot(props) {
3347
+ const [toggleGroupProps, componentProps] = splitProps$17(props);
3348
+ const { element, children,...rest } = componentProps;
3349
+ const toggleGroup = useToggleGroup(toggleGroupProps);
3350
+ const attributes = mergeProps(toggleGroup.getRootProps(), { className: classesToggleGroup.root }, rest);
3351
+ return /* @__PURE__ */ jsx(RootContext$5.Provider, {
3352
+ value: toggleGroup,
3353
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3354
+ ...attributes,
3355
+ children
3356
+ })
3357
+ });
3358
+ }
3359
+
3360
+ //#endregion
3361
+ //#region src/components/toggle-group/modules/anatomy.ts
3362
+ const ToggleGroup = Object.assign(ToggleGroupRoot, {
3363
+ Provider: ToggleGroupRootProvider,
3364
+ Context: RootContext$4,
3365
+ Item: Item$1
3366
+ });
3367
+
3368
+ //#endregion
3369
+ //#region src/components/tooltip/modules/root-context.ts
3370
+ const RootContext$3 = createContext$1();
3371
+
3372
+ //#endregion
3373
+ //#region src/components/tooltip/anatomy/arrow-tip.tsx
3374
+ function ArrowTip(props) {
3375
+ const tooltip = use(RootContext$3);
3376
+ const { element, children,...rest } = props;
3377
+ const attributes = mergeProps(tooltip.getArrowTipProps(), { className: classesTooltip.arrowTip }, rest);
3378
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3379
+ ...attributes,
3380
+ children
3381
+ });
3382
+ }
3383
+
3384
+ //#endregion
3385
+ //#region src/components/tooltip/anatomy/arrow.tsx
3386
+ function Arrow(props) {
3387
+ const tooltip = use(RootContext$3);
3388
+ const { element, children,...rest } = props;
3389
+ const attributes = mergeProps(tooltip.getArrowProps(), { className: classesTooltip.arrow }, rest);
3390
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3391
+ ...attributes,
3392
+ children
3393
+ });
3394
+ }
3395
+
3396
+ //#endregion
3397
+ //#region src/components/tooltip/anatomy/content.tsx
3398
+ function Content(props) {
3399
+ const tooltip = use(RootContext$3);
3400
+ const { element, children,...rest } = props;
3401
+ const attributes = mergeProps(tooltip.getContentProps(), { className: classesTooltip.content }, rest);
3402
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3403
+ ...attributes,
3404
+ children
3405
+ });
3406
+ }
3407
+
3408
+ //#endregion
3409
+ //#region src/components/tooltip/anatomy/positioner.tsx
3410
+ function Positioner(props) {
3411
+ const tooltip = use(RootContext$3);
3412
+ const { element, children,...rest } = props;
3413
+ const attributes = mergeProps(tooltip.getPositionerProps(), { className: classesTooltip.positioner }, rest);
3414
+ return /* @__PURE__ */ jsx(Portal$1, { children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3415
+ ...attributes,
3416
+ children
3417
+ }) });
3418
+ }
3419
+
3420
+ //#endregion
3421
+ //#region src/components/tooltip/anatomy/root-context.tsx
3422
+ function RootContext$2(props) {
3423
+ const tooltip = use(RootContext$3);
3424
+ const { children } = props;
3425
+ return children(tooltip);
3426
+ }
3427
+
3428
+ //#endregion
3429
+ //#region src/components/tooltip/anatomy/root-provider.tsx
3430
+ function RootProvider$1(props) {
3431
+ const { children, value: tooltip } = props;
3432
+ return /* @__PURE__ */ jsx(RootContext$3.Provider, {
3433
+ value: tooltip,
3434
+ children
3435
+ });
3436
+ }
3437
+
3438
+ //#endregion
3439
+ //#region src/components/tooltip/modules/provider.ts
3440
+ function useTooltip(props = {}) {
3441
+ return connect$19(useMachine(machine$19, {
3442
+ id: useId(),
3443
+ ...props
3444
+ }), normalizeProps);
3445
+ }
3446
+
3447
+ //#endregion
3448
+ //#region src/components/tooltip/anatomy/root.tsx
3449
+ function Root$1(props) {
3450
+ const [tooltipProps, componentProps] = splitProps$18(props);
3451
+ const { children } = componentProps;
3452
+ const tooltip = useTooltip(tooltipProps);
3453
+ return /* @__PURE__ */ jsx(RootContext$3.Provider, {
3454
+ value: tooltip,
3455
+ children
3456
+ });
3457
+ }
3458
+
3459
+ //#endregion
3460
+ //#region src/components/tooltip/anatomy/trigger.tsx
3461
+ function Trigger(props) {
3462
+ const tooltip = use(RootContext$3);
3463
+ const { element, children,...rest } = props;
3464
+ const attributes = mergeProps(tooltip.getTriggerProps(), { className: classesTooltip.trigger }, rest);
3465
+ return element ? element(attributes) : /* @__PURE__ */ jsx("button", {
3466
+ ...attributes,
3467
+ children
3468
+ });
3469
+ }
3470
+
3471
+ //#endregion
3472
+ //#region src/components/tooltip/modules/anatomy.ts
3473
+ const Tooltip = Object.assign(Root$1, {
3474
+ Provider: RootProvider$1,
3475
+ Context: RootContext$2,
3476
+ Trigger,
3477
+ Positioner,
3478
+ Content,
3479
+ Arrow,
3480
+ ArrowTip
3481
+ });
3482
+
3483
+ //#endregion
3484
+ //#region src/components/tree-view/modules/node-context.ts
3485
+ const NodeContext$1 = createContext$1();
3486
+
3487
+ //#endregion
3488
+ //#region src/components/tree-view/modules/root-context.ts
3489
+ const RootContext$1 = createContext$1();
3490
+
3491
+ //#endregion
3492
+ //#region src/components/tree-view/anatomy/branch-content.tsx
3493
+ function BranchContent(props) {
3494
+ const treeView = use(RootContext$1);
3495
+ const nodeProps = use(NodeContext$1);
3496
+ const { element, children,...rest } = props;
3497
+ const attributes = mergeProps(treeView.getBranchContentProps(nodeProps), { className: classesTreeView.branchContent }, rest);
3498
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3499
+ ...attributes,
3500
+ children
3501
+ });
3502
+ }
3503
+
3504
+ //#endregion
3505
+ //#region src/components/tree-view/anatomy/branch-control.tsx
3506
+ function BranchControl(props) {
3507
+ const treeView = use(RootContext$1);
3508
+ const nodeProps = use(NodeContext$1);
3509
+ const { element, children,...rest } = props;
3510
+ const attributes = mergeProps(treeView.getBranchControlProps(nodeProps), { className: classesTreeView.branchControl }, rest);
3511
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3512
+ ...attributes,
3513
+ children
3514
+ });
3515
+ }
3516
+
3517
+ //#endregion
3518
+ //#region src/components/tree-view/anatomy/branch-indent-guide.tsx
3519
+ function BranchIndentGuide(props) {
3520
+ const treeView = use(RootContext$1);
3521
+ const nodeProps = use(NodeContext$1);
3522
+ const { element, children,...rest } = props;
3523
+ const attributes = mergeProps(treeView.getBranchIndentGuideProps(nodeProps), { className: classesTreeView.branchIndentGuide }, rest);
3524
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3525
+ ...attributes,
3526
+ children
3527
+ });
3528
+ }
3529
+
3530
+ //#endregion
3531
+ //#region src/components/tree-view/anatomy/branch-indicator.tsx
3532
+ function BranchIndicator(props) {
3533
+ const treeView = use(RootContext$1);
3534
+ const nodeProps = use(NodeContext$1);
3535
+ const { element, children = /* @__PURE__ */ jsx(ChevronRight, { className: "size-4" }),...rest } = props;
3536
+ const attributes = mergeProps(treeView.getBranchIndicatorProps(nodeProps), { className: classesTreeView.branchIndicator }, rest);
3537
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
3538
+ ...attributes,
3539
+ children
3540
+ });
3541
+ }
3542
+
3543
+ //#endregion
3544
+ //#region src/components/tree-view/anatomy/branch-text.tsx
3545
+ function BranchText(props) {
3546
+ const treeView = use(RootContext$1);
3547
+ const nodeProps = use(NodeContext$1);
3548
+ const { element, children,...rest } = props;
3549
+ const attributes = mergeProps(treeView.getBranchTextProps(nodeProps), { className: classesTreeView.branchText }, rest);
3550
+ return element ? element(attributes) : /* @__PURE__ */ jsx("span", {
3551
+ ...attributes,
3552
+ children
3553
+ });
3554
+ }
3555
+
3556
+ //#endregion
3557
+ //#region src/components/tree-view/anatomy/branch.tsx
3558
+ function Branch(props) {
3559
+ const treeView = use(RootContext$1);
3560
+ const nodeProps = use(NodeContext$1);
3561
+ const { element, children,...rest } = props;
3562
+ const attributes = mergeProps(treeView.getBranchProps(nodeProps), { className: classesTreeView.branch }, rest);
3563
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3564
+ ...attributes,
3565
+ children
3566
+ });
3567
+ }
3568
+
3569
+ //#endregion
3570
+ //#region src/components/tree-view/anatomy/item.tsx
3571
+ function Item(props) {
3572
+ const treeView = use(RootContext$1);
3573
+ const nodeProps = use(NodeContext$1);
3574
+ const { element, children,...rest } = props;
3575
+ const attributes = mergeProps(treeView.getItemProps(nodeProps), { className: classesTreeView.item }, rest);
3576
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3577
+ ...attributes,
3578
+ children
3579
+ });
3580
+ }
3581
+
3582
+ //#endregion
3583
+ //#region src/components/tree-view/anatomy/label.tsx
3584
+ function Label(props) {
3585
+ const treeView = use(RootContext$1);
3586
+ const { element, children, level = 3,...rest } = props;
3587
+ const attributes = mergeProps(treeView.getLabelProps(), { className: classesTreeView.label }, rest);
3588
+ const Tag = `h${level}`;
3589
+ return element ? element(attributes) : /* @__PURE__ */ jsx(Tag, {
3590
+ ...attributes,
3591
+ children
3592
+ });
3593
+ }
3594
+
3595
+ //#endregion
3596
+ //#region src/components/tree-view/anatomy/node-context.tsx
3597
+ function NodeContext(props) {
3598
+ const treeView = use(NodeContext$1);
3599
+ const { children } = props;
3600
+ return children(treeView);
3601
+ }
3602
+
3603
+ //#endregion
3604
+ //#region src/components/tree-view/anatomy/node-provider.tsx
3605
+ function NodeProvider(props) {
3606
+ const { children, value: nodeProps } = props;
3607
+ return /* @__PURE__ */ jsx(NodeContext$1.Provider, {
3608
+ value: nodeProps,
3609
+ children
3610
+ });
3611
+ }
3612
+
3613
+ //#endregion
3614
+ //#region src/components/tree-view/anatomy/root-context.tsx
3615
+ function RootContext(props) {
3616
+ const treeView = use(RootContext$1);
3617
+ const { children } = props;
3618
+ return children(treeView);
3619
+ }
3620
+
3621
+ //#endregion
3622
+ //#region src/components/tree-view/anatomy/root-provider.tsx
3623
+ function RootProvider(props) {
3624
+ const { element, children, value: treeView,...rest } = props;
3625
+ const attributes = mergeProps(treeView.getRootProps(), { className: classesTreeView.root }, rest);
3626
+ return /* @__PURE__ */ jsx(RootContext$1.Provider, {
3627
+ value: treeView,
3628
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3629
+ ...attributes,
3630
+ children
3631
+ })
3632
+ });
3633
+ }
3634
+
3635
+ //#endregion
3636
+ //#region src/components/tree-view/modules/provider.ts
3637
+ function useTreeView(props = {}) {
3638
+ return connect$20(useMachine(machine$20, {
3639
+ id: useId(),
3640
+ ...props
3641
+ }), normalizeProps);
3642
+ }
3643
+
3644
+ //#endregion
3645
+ //#region src/components/tree-view/anatomy/root.tsx
3646
+ function Root(props) {
3647
+ const [treeViewProps, componentProps] = splitProps$19(props);
3648
+ const { element, children,...rest } = componentProps;
3649
+ const treeView = useTreeView(treeViewProps);
3650
+ const attributes = mergeProps(treeView.getRootProps(), { className: classesTreeView.root }, rest);
3651
+ return /* @__PURE__ */ jsx(RootContext$1.Provider, {
3652
+ value: treeView,
3653
+ children: element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3654
+ ...attributes,
3655
+ children
3656
+ })
3657
+ });
3658
+ }
3659
+
3660
+ //#endregion
3661
+ //#region src/components/tree-view/anatomy/tree.tsx
3662
+ function Tree(props) {
3663
+ const treeView = use(RootContext$1);
3664
+ const { element, children,...rest } = props;
3665
+ const attributes = mergeProps(treeView.getTreeProps(), { className: classesTreeView.tree }, rest);
3666
+ return element ? element(attributes) : /* @__PURE__ */ jsx("div", {
3667
+ ...attributes,
3668
+ children
3669
+ });
3670
+ }
3671
+
3672
+ //#endregion
3673
+ //#region src/components/tree-view/modules/anatomy.ts
3674
+ const TreeView = Object.assign(Root, {
3675
+ Provider: RootProvider,
3676
+ Context: RootContext,
3677
+ Tree,
3678
+ Label,
3679
+ NodeProvider,
3680
+ NodeContext,
3681
+ Branch,
3682
+ BranchControl,
3683
+ BranchText,
3684
+ BranchIndicator,
3685
+ BranchContent,
3686
+ BranchIndentGuide,
3687
+ Item
3688
+ });
3689
+
3690
+ //#endregion
3691
+ //#region src/hooks/use-list-collection.ts
3692
+ function useListCollection(options) {
3693
+ return new ListCollection(options);
3694
+ }
3695
+
3696
+ //#endregion
3697
+ export { Accordion, AppBar, Avatar, Collapsible, Combobox, DatePicker, Dialog, FileUpload, Listbox, Navigation, Pagination, Popover, Portal, Progress, RatingGroup, SegmentedControl, Slider, Switch, Tabs, TagsInput, Toast, ToggleGroup, Tooltip, TreeView, createToaster, createTreeViewCollection, parseDate, useAccordion, useAvatar, useCollapsible, useCombobox, useDatePicker, useDialog, useFileUpload, useListCollection, useListbox, usePagination, usePopover, useProgress, useRatingGroup, useSegmentedControl, useSlider, useSwitch, useTabs, useTagsInput, useToggleGroup, useTooltip, useTreeView };
3698
+ //# sourceMappingURL=index.mjs.map