@youcan/celeste 0.21.2 → 0.22.0

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 (538) hide show
  1. package/ai/README.md +1 -1
  2. package/ai/component-registry.json +2 -2
  3. package/ai/icons.json +2 -2
  4. package/ai/tokens.json +2 -2
  5. package/dist/celeste.css +3057 -3057
  6. package/dist/cjs/chunks/alert.cjs +4 -2
  7. package/dist/cjs/chunks/badge.cjs +4 -2
  8. package/dist/cjs/chunks/bar-chart.cjs +17 -10016
  9. package/dist/cjs/chunks/button.cjs +6 -4
  10. package/dist/cjs/chunks/calendar.cjs +20 -796
  11. package/dist/cjs/chunks/chart-card.cjs +4 -2
  12. package/dist/cjs/chunks/chart-legend.cjs +4 -2
  13. package/dist/cjs/chunks/chart-plot.cjs +4 -2
  14. package/dist/cjs/chunks/checkbox-card.cjs +11 -10
  15. package/dist/cjs/chunks/checkbox-label.cjs +12 -11
  16. package/dist/cjs/chunks/checkbox.cjs +7 -227
  17. package/dist/cjs/chunks/collapsible-content.cjs +5 -105
  18. package/dist/cjs/chunks/collapsible-trigger.cjs +2 -50
  19. package/dist/cjs/chunks/collapsible.cjs +3 -4
  20. package/dist/cjs/chunks/color-picker.cjs +21 -19
  21. package/dist/cjs/chunks/color-swatch.cjs +5 -3
  22. package/dist/cjs/chunks/combobox-anchor.cjs +6 -44
  23. package/dist/cjs/chunks/combobox-empty.cjs +5 -30
  24. package/dist/cjs/chunks/combobox-group.cjs +6 -5
  25. package/dist/cjs/chunks/combobox-input.cjs +6 -4
  26. package/dist/cjs/chunks/combobox-item.cjs +10 -66
  27. package/dist/cjs/chunks/combobox-list.cjs +8 -95
  28. package/dist/cjs/chunks/combobox-root.cjs +4 -6
  29. package/dist/cjs/chunks/combobox-separator.cjs +5 -3
  30. package/dist/cjs/chunks/combobox-trigger.cjs +7 -64
  31. package/dist/cjs/chunks/combobox.cjs +5 -5
  32. package/dist/cjs/chunks/compact-button.cjs +6 -4
  33. package/dist/cjs/chunks/components.cjs +55 -54
  34. package/dist/cjs/chunks/content-divider.cjs +6 -88
  35. package/dist/cjs/chunks/counter-input.cjs +10 -939
  36. package/dist/cjs/chunks/date-picker.cjs +5 -3
  37. package/dist/cjs/chunks/dialog-body.cjs +4 -2
  38. package/dist/cjs/chunks/dialog-content.cjs +1 -1
  39. package/dist/cjs/chunks/dialog-description.cjs +5 -4
  40. package/dist/cjs/chunks/dialog-footer.cjs +4 -2
  41. package/dist/cjs/chunks/dialog-title.cjs +5 -4
  42. package/dist/cjs/chunks/dialog-trigger.cjs +1 -1
  43. package/dist/cjs/chunks/dialog.cjs +3 -3
  44. package/dist/cjs/chunks/digit-input-group.cjs +8 -7
  45. package/dist/cjs/chunks/digit-input-slot.cjs +8 -265
  46. package/dist/cjs/chunks/digit-input.cjs +9 -8
  47. package/dist/cjs/chunks/drawer-body.cjs +7 -38
  48. package/dist/cjs/chunks/drawer-close.cjs +2 -2
  49. package/dist/cjs/chunks/drawer-content.cjs +9 -1148
  50. package/dist/cjs/chunks/drawer-description.cjs +7 -5
  51. package/dist/cjs/chunks/drawer-footer.cjs +4 -2
  52. package/dist/cjs/chunks/drawer-header.cjs +6 -4
  53. package/dist/cjs/chunks/drawer-title.cjs +7 -5
  54. package/dist/cjs/chunks/drawer-trigger.cjs +2 -50
  55. package/dist/cjs/chunks/drawer.cjs +4 -5
  56. package/dist/cjs/chunks/dropdown-menu-content.cjs +8 -535
  57. package/dist/cjs/chunks/dropdown-menu-group.cjs +2 -28
  58. package/dist/cjs/chunks/dropdown-menu-item.cjs +6 -124
  59. package/dist/cjs/chunks/dropdown-menu-label.cjs +6 -58
  60. package/dist/cjs/chunks/dropdown-menu-separator.cjs +5 -56
  61. package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +7 -287
  62. package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +6 -191
  63. package/dist/cjs/chunks/dropdown-menu-sub.cjs +3 -39
  64. package/dist/cjs/chunks/dropdown-menu-trigger.cjs +3 -89
  65. package/dist/cjs/chunks/dropdown-menu.cjs +8 -8
  66. package/dist/cjs/chunks/extra-settings.cjs +3 -3
  67. package/dist/cjs/chunks/fancy-button.cjs +6 -4
  68. package/dist/cjs/chunks/file-upload-area.cjs +6 -4
  69. package/dist/cjs/chunks/gradient-picker.cjs +8 -6
  70. package/dist/cjs/chunks/hint-text.cjs +4 -2
  71. package/dist/cjs/chunks/{label2.cjs → label.cjs} +7 -6
  72. package/dist/cjs/chunks/link-bubble.cjs +3 -3
  73. package/dist/cjs/chunks/link-button.cjs +6 -4
  74. package/dist/cjs/chunks/mochi.cjs +4 -2
  75. package/dist/cjs/chunks/modal-body.cjs +4 -2
  76. package/dist/cjs/chunks/modal-close.cjs +2 -2
  77. package/dist/cjs/chunks/modal-content.cjs +9 -9
  78. package/dist/cjs/chunks/modal-footer.cjs +4 -2
  79. package/dist/cjs/chunks/modal-header.cjs +8 -8
  80. package/dist/cjs/chunks/modal-trigger.cjs +2 -2
  81. package/dist/cjs/chunks/modal.cjs +3 -4
  82. package/dist/cjs/chunks/pagination-content.cjs +5 -87
  83. package/dist/cjs/chunks/pagination-ellipsis.cjs +6 -32
  84. package/dist/cjs/chunks/pagination-first.cjs +7 -42
  85. package/dist/cjs/chunks/pagination-item.cjs +6 -54
  86. package/dist/cjs/chunks/pagination-last.cjs +7 -42
  87. package/dist/cjs/chunks/pagination-next.cjs +7 -42
  88. package/dist/cjs/chunks/pagination-previous.cjs +7 -42
  89. package/dist/cjs/chunks/pagination.cjs +7 -8
  90. package/dist/cjs/chunks/popover-content.cjs +10 -705
  91. package/dist/cjs/chunks/popover-trigger.cjs +2 -61
  92. package/dist/cjs/chunks/popover.cjs +3 -4
  93. package/dist/cjs/chunks/progress-bar.cjs +6 -4
  94. package/dist/cjs/chunks/progress-circle.cjs +7 -5
  95. package/dist/cjs/chunks/radio-group-card.cjs +11 -10
  96. package/dist/cjs/chunks/radio-group-item.cjs +7 -302
  97. package/dist/cjs/chunks/radio-group-label.cjs +12 -11
  98. package/dist/cjs/chunks/radio-group.cjs +6 -5
  99. package/dist/cjs/chunks/range-calendar.cjs +21 -1031
  100. package/dist/cjs/chunks/range-picker.cjs +9 -7
  101. package/dist/cjs/chunks/rich-editor.cjs +21 -5863
  102. package/dist/cjs/chunks/rolldown-runtime.cjs +0 -14
  103. package/dist/cjs/chunks/scroll-area.cjs +9 -142
  104. package/dist/cjs/chunks/scroll-bar.cjs +6 -901
  105. package/dist/cjs/chunks/segmented-control-item.cjs +6 -163
  106. package/dist/cjs/chunks/segmented-control.cjs +7 -6
  107. package/dist/cjs/chunks/select-content.cjs +9 -311
  108. package/dist/cjs/chunks/select-group.cjs +2 -2
  109. package/dist/cjs/chunks/select-icon.cjs +4 -2
  110. package/dist/cjs/chunks/select-item.cjs +7 -227
  111. package/dist/cjs/chunks/select-label.cjs +5 -34
  112. package/dist/cjs/chunks/select-separator.cjs +5 -27
  113. package/dist/cjs/chunks/select-trigger.cjs +6 -163
  114. package/dist/cjs/chunks/select-value.cjs +5 -64
  115. package/dist/cjs/chunks/select.cjs +8 -8
  116. package/dist/cjs/chunks/sheet-close.cjs +5 -3
  117. package/dist/cjs/chunks/sheet-content.cjs +10 -10
  118. package/dist/cjs/chunks/sheet-description.cjs +7 -5
  119. package/dist/cjs/chunks/sheet-footer.cjs +4 -2
  120. package/dist/cjs/chunks/sheet-header.cjs +4 -2
  121. package/dist/cjs/chunks/sheet-title.cjs +7 -5
  122. package/dist/cjs/chunks/sheet-trigger.cjs +2 -2
  123. package/dist/cjs/chunks/sheet.cjs +3 -4
  124. package/dist/cjs/chunks/sidebar-content.cjs +4 -2
  125. package/dist/cjs/chunks/sidebar-element.cjs +6 -4
  126. package/dist/cjs/chunks/sidebar-footer.cjs +4 -2
  127. package/dist/cjs/chunks/sidebar-group-content.cjs +4 -2
  128. package/dist/cjs/chunks/sidebar-group-label.cjs +6 -4
  129. package/dist/cjs/chunks/sidebar-group.cjs +4 -2
  130. package/dist/cjs/chunks/sidebar-header.cjs +4 -2
  131. package/dist/cjs/chunks/sidebar-menu-action.cjs +6 -4
  132. package/dist/cjs/chunks/sidebar-menu-badge.cjs +4 -2
  133. package/dist/cjs/chunks/sidebar-menu-button.cjs +8 -6
  134. package/dist/cjs/chunks/sidebar-menu-item.cjs +4 -2
  135. package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +6 -4
  136. package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +4 -2
  137. package/dist/cjs/chunks/sidebar-menu-sub.cjs +4 -2
  138. package/dist/cjs/chunks/sidebar-menu.cjs +4 -2
  139. package/dist/cjs/chunks/sidebar-provider.cjs +9 -7
  140. package/dist/cjs/chunks/sidebar-trigger.cjs +4 -2
  141. package/dist/cjs/chunks/sidebar.cjs +4 -2
  142. package/dist/cjs/chunks/slider.cjs +10 -757
  143. package/dist/cjs/chunks/social-button.cjs +6 -4
  144. package/dist/cjs/chunks/status-badge.cjs +4 -2
  145. package/dist/cjs/chunks/switch.cjs +7 -185
  146. package/dist/cjs/chunks/tab-menu-content.cjs +5 -81
  147. package/dist/cjs/chunks/tab-menu-item.cjs +6 -88
  148. package/dist/cjs/chunks/tab-menu-list.cjs +6 -61
  149. package/dist/cjs/chunks/tab-menu.cjs +3 -4
  150. package/dist/cjs/chunks/table-body.cjs +4 -2
  151. package/dist/cjs/chunks/table-caption.cjs +4 -2
  152. package/dist/cjs/chunks/table-cell.cjs +4 -2
  153. package/dist/cjs/chunks/table-footer.cjs +4 -2
  154. package/dist/cjs/chunks/table-head.cjs +4 -2
  155. package/dist/cjs/chunks/table-header.cjs +4 -2
  156. package/dist/cjs/chunks/table-row.cjs +4 -2
  157. package/dist/cjs/chunks/table.cjs +4 -2
  158. package/dist/cjs/chunks/table2.cjs +4 -2
  159. package/dist/cjs/chunks/tag.cjs +6 -4
  160. package/dist/cjs/chunks/text-input-affix.cjs +4 -2
  161. package/dist/cjs/chunks/text-input-button.cjs +4 -2
  162. package/dist/cjs/chunks/text-input.cjs +11 -9
  163. package/dist/cjs/chunks/textarea.cjs +4 -2
  164. package/dist/cjs/chunks/tooltip-content.cjs +9 -599
  165. package/dist/cjs/chunks/tooltip-provider.cjs +2 -2
  166. package/dist/cjs/chunks/tooltip-root.cjs +3 -4
  167. package/dist/cjs/chunks/tooltip-trigger.cjs +3 -107
  168. package/dist/cjs/chunks/tooltip.cjs +4 -4
  169. package/dist/cjs/command-group.cjs +3 -4
  170. package/dist/cjs/command-input.cjs +7 -6
  171. package/dist/cjs/command-item.cjs +3 -4
  172. package/dist/cjs/command-list.cjs +3 -4
  173. package/dist/cjs/command-root.cjs +4 -6
  174. package/dist/cjs/command-separator.cjs +5 -3
  175. package/dist/cjs/context.cjs +1 -1
  176. package/dist/cjs/index.cjs +53 -53
  177. package/dist/cjs/label.cjs +1 -1
  178. package/dist/cjs/use-chart-motion.cjs +2 -2
  179. package/dist/cjs/use-color-model.cjs +6 -4
  180. package/dist/cjs/use-sidebar.cjs +2 -2
  181. package/dist/cjs/use-tab-observer.cjs +4 -4
  182. package/dist/es/chunks/alert.js +2 -2
  183. package/dist/es/chunks/badge.js +2 -2
  184. package/dist/es/chunks/bar-chart.js +11 -10007
  185. package/dist/es/chunks/button.js +3 -3
  186. package/dist/es/chunks/calendar.js +20 -798
  187. package/dist/es/chunks/chart-card.js +2 -2
  188. package/dist/es/chunks/chart-legend.js +2 -2
  189. package/dist/es/chunks/chart-plot.js +2 -2
  190. package/dist/es/chunks/checkbox-card.js +4 -5
  191. package/dist/es/chunks/checkbox-label.js +4 -5
  192. package/dist/es/chunks/checkbox.js +5 -227
  193. package/dist/es/chunks/collapsible-content.js +4 -106
  194. package/dist/es/chunks/collapsible-trigger.js +2 -50
  195. package/dist/es/chunks/collapsible.js +2 -3
  196. package/dist/es/chunks/color-picker.js +10 -10
  197. package/dist/es/chunks/color-swatch.js +1 -1
  198. package/dist/es/chunks/combobox-anchor.js +4 -44
  199. package/dist/es/chunks/combobox-empty.js +4 -30
  200. package/dist/es/chunks/combobox-group.js +4 -5
  201. package/dist/es/chunks/combobox-input.js +4 -4
  202. package/dist/es/chunks/combobox-item.js +8 -66
  203. package/dist/es/chunks/combobox-list.js +6 -94
  204. package/dist/es/chunks/combobox-root.js +3 -5
  205. package/dist/es/chunks/combobox-separator.js +3 -3
  206. package/dist/es/chunks/combobox-trigger.js +5 -63
  207. package/dist/es/chunks/combobox.js +4 -4
  208. package/dist/es/chunks/compact-button.js +3 -3
  209. package/dist/es/chunks/components.js +65 -55
  210. package/dist/es/chunks/content-divider.js +5 -89
  211. package/dist/es/chunks/counter-input.js +8 -939
  212. package/dist/es/chunks/date-picker.js +3 -3
  213. package/dist/es/chunks/dialog-body.js +2 -2
  214. package/dist/es/chunks/dialog-content.js +1 -1
  215. package/dist/es/chunks/dialog-description.js +3 -4
  216. package/dist/es/chunks/dialog-footer.js +2 -2
  217. package/dist/es/chunks/dialog-title.js +3 -4
  218. package/dist/es/chunks/dialog-trigger.js +1 -1
  219. package/dist/es/chunks/dialog.js +1 -1
  220. package/dist/es/chunks/digit-input-group.js +4 -5
  221. package/dist/es/chunks/digit-input-slot.js +5 -263
  222. package/dist/es/chunks/digit-input.js +5 -6
  223. package/dist/es/chunks/drawer-body.js +4 -36
  224. package/dist/es/chunks/drawer-close.js +2 -2
  225. package/dist/es/chunks/drawer-content.js +7 -1147
  226. package/dist/es/chunks/drawer-description.js +4 -4
  227. package/dist/es/chunks/drawer-footer.js +2 -2
  228. package/dist/es/chunks/drawer-header.js +4 -4
  229. package/dist/es/chunks/drawer-title.js +4 -4
  230. package/dist/es/chunks/drawer-trigger.js +3 -51
  231. package/dist/es/chunks/drawer.js +3 -4
  232. package/dist/es/chunks/dropdown-menu-content.js +6 -534
  233. package/dist/es/chunks/dropdown-menu-group.js +3 -28
  234. package/dist/es/chunks/dropdown-menu-item.js +4 -124
  235. package/dist/es/chunks/dropdown-menu-label.js +4 -57
  236. package/dist/es/chunks/dropdown-menu-separator.js +4 -56
  237. package/dist/es/chunks/dropdown-menu-sub-content.js +5 -286
  238. package/dist/es/chunks/dropdown-menu-sub-trigger.js +4 -191
  239. package/dist/es/chunks/dropdown-menu-sub.js +3 -39
  240. package/dist/es/chunks/dropdown-menu-trigger.js +3 -88
  241. package/dist/es/chunks/dropdown-menu.js +5 -7
  242. package/dist/es/chunks/extra-settings.js +3 -3
  243. package/dist/es/chunks/fancy-button.js +3 -3
  244. package/dist/es/chunks/file-upload-area.js +3 -3
  245. package/dist/es/chunks/gradient-picker.js +3 -3
  246. package/dist/es/chunks/hint-text.js +2 -2
  247. package/dist/es/chunks/{label2.js → label.js} +4 -5
  248. package/dist/es/chunks/link-bubble.js +3 -3
  249. package/dist/es/chunks/link-button.js +3 -3
  250. package/dist/es/chunks/mochi.js +2 -2
  251. package/dist/es/chunks/modal-body.js +2 -2
  252. package/dist/es/chunks/modal-close.js +2 -2
  253. package/dist/es/chunks/modal-content.js +5 -7
  254. package/dist/es/chunks/modal-footer.js +2 -2
  255. package/dist/es/chunks/modal-header.js +6 -8
  256. package/dist/es/chunks/modal-trigger.js +2 -2
  257. package/dist/es/chunks/modal.js +2 -3
  258. package/dist/es/chunks/pagination-content.js +5 -86
  259. package/dist/es/chunks/pagination-ellipsis.js +5 -30
  260. package/dist/es/chunks/pagination-first.js +5 -40
  261. package/dist/es/chunks/pagination-item.js +5 -53
  262. package/dist/es/chunks/pagination-last.js +5 -40
  263. package/dist/es/chunks/pagination-next.js +5 -40
  264. package/dist/es/chunks/pagination-previous.js +5 -40
  265. package/dist/es/chunks/pagination.js +4 -5
  266. package/dist/es/chunks/popover-content.js +8 -705
  267. package/dist/es/chunks/popover-trigger.js +3 -61
  268. package/dist/es/chunks/popover.js +2 -3
  269. package/dist/es/chunks/progress-bar.js +4 -4
  270. package/dist/es/chunks/progress-circle.js +5 -5
  271. package/dist/es/chunks/radio-group-card.js +4 -5
  272. package/dist/es/chunks/radio-group-item.js +5 -302
  273. package/dist/es/chunks/radio-group-label.js +4 -5
  274. package/dist/es/chunks/radio-group.js +3 -4
  275. package/dist/es/chunks/range-calendar.js +21 -1033
  276. package/dist/es/chunks/range-picker.js +7 -7
  277. package/dist/es/chunks/rich-editor.js +13 -5859
  278. package/dist/es/chunks/scroll-area.js +8 -142
  279. package/dist/es/chunks/scroll-bar.js +6 -890
  280. package/dist/es/chunks/segmented-control-item.js +5 -163
  281. package/dist/es/chunks/segmented-control.js +4 -5
  282. package/dist/es/chunks/select-content.js +7 -310
  283. package/dist/es/chunks/select-group.js +2 -2
  284. package/dist/es/chunks/select-icon.js +2 -2
  285. package/dist/es/chunks/select-item.js +6 -227
  286. package/dist/es/chunks/select-label.js +3 -33
  287. package/dist/es/chunks/select-separator.js +4 -27
  288. package/dist/es/chunks/select-trigger.js +5 -163
  289. package/dist/es/chunks/select-value.js +4 -64
  290. package/dist/es/chunks/select.js +5 -7
  291. package/dist/es/chunks/sheet-close.js +3 -3
  292. package/dist/es/chunks/sheet-content.js +6 -8
  293. package/dist/es/chunks/sheet-description.js +4 -4
  294. package/dist/es/chunks/sheet-footer.js +2 -2
  295. package/dist/es/chunks/sheet-header.js +2 -2
  296. package/dist/es/chunks/sheet-title.js +4 -4
  297. package/dist/es/chunks/sheet-trigger.js +2 -2
  298. package/dist/es/chunks/sheet.js +2 -3
  299. package/dist/es/chunks/sidebar-content.js +2 -2
  300. package/dist/es/chunks/sidebar-element.js +3 -3
  301. package/dist/es/chunks/sidebar-footer.js +2 -2
  302. package/dist/es/chunks/sidebar-group-content.js +2 -2
  303. package/dist/es/chunks/sidebar-group-label.js +3 -3
  304. package/dist/es/chunks/sidebar-group.js +2 -2
  305. package/dist/es/chunks/sidebar-header.js +2 -2
  306. package/dist/es/chunks/sidebar-menu-action.js +3 -3
  307. package/dist/es/chunks/sidebar-menu-badge.js +2 -2
  308. package/dist/es/chunks/sidebar-menu-button.js +4 -4
  309. package/dist/es/chunks/sidebar-menu-item.js +2 -2
  310. package/dist/es/chunks/sidebar-menu-sub-button.js +3 -3
  311. package/dist/es/chunks/sidebar-menu-sub-item.js +2 -2
  312. package/dist/es/chunks/sidebar-menu-sub.js +2 -2
  313. package/dist/es/chunks/sidebar-menu.js +2 -2
  314. package/dist/es/chunks/sidebar-provider.js +3 -3
  315. package/dist/es/chunks/sidebar-trigger.js +2 -2
  316. package/dist/es/chunks/sidebar.js +2 -2
  317. package/dist/es/chunks/slider.js +10 -759
  318. package/dist/es/chunks/social-button.js +3 -3
  319. package/dist/es/chunks/status-badge.js +2 -2
  320. package/dist/es/chunks/switch.js +5 -185
  321. package/dist/es/chunks/tab-menu-content.js +4 -81
  322. package/dist/es/chunks/tab-menu-item.js +4 -88
  323. package/dist/es/chunks/tab-menu-list.js +5 -62
  324. package/dist/es/chunks/tab-menu.js +2 -3
  325. package/dist/es/chunks/table-body.js +2 -2
  326. package/dist/es/chunks/table-caption.js +2 -2
  327. package/dist/es/chunks/table-cell.js +2 -2
  328. package/dist/es/chunks/table-footer.js +2 -2
  329. package/dist/es/chunks/table-head.js +2 -2
  330. package/dist/es/chunks/table-header.js +2 -2
  331. package/dist/es/chunks/table-row.js +2 -2
  332. package/dist/es/chunks/table.js +2 -2
  333. package/dist/es/chunks/table2.js +2 -2
  334. package/dist/es/chunks/tag.js +3 -3
  335. package/dist/es/chunks/text-input-affix.js +2 -2
  336. package/dist/es/chunks/text-input-button.js +2 -2
  337. package/dist/es/chunks/text-input.js +3 -3
  338. package/dist/es/chunks/textarea.js +2 -2
  339. package/dist/es/chunks/tooltip-content.js +7 -599
  340. package/dist/es/chunks/tooltip-provider.js +2 -2
  341. package/dist/es/chunks/tooltip-root.js +2 -3
  342. package/dist/es/chunks/tooltip-trigger.js +3 -107
  343. package/dist/es/chunks/tooltip.js +3 -3
  344. package/dist/es/command-group.js +3 -4
  345. package/dist/es/command-input.js +4 -5
  346. package/dist/es/command-item.js +2 -3
  347. package/dist/es/command-list.js +2 -3
  348. package/dist/es/command-root.js +3 -5
  349. package/dist/es/command-separator.js +3 -3
  350. package/dist/es/context.js +1 -1
  351. package/dist/es/index.js +54 -54
  352. package/dist/es/label.js +1 -1
  353. package/dist/es/use-chart-motion.js +1 -1
  354. package/dist/es/use-color-model.js +1 -1
  355. package/dist/es/use-sidebar.js +1 -1
  356. package/dist/es/use-tab-observer.js +1 -1
  357. package/package.json +3 -3
  358. package/dist/cjs/chunks/BubbleSelect.cjs +0 -331
  359. package/dist/cjs/chunks/CollapsibleRoot.cjs +0 -89
  360. package/dist/cjs/chunks/Collection.cjs +0 -84
  361. package/dist/cjs/chunks/ComboboxContent.cjs +0 -446
  362. package/dist/cjs/chunks/ComboboxGroup.cjs +0 -89
  363. package/dist/cjs/chunks/ComboboxInput.cjs +0 -269
  364. package/dist/cjs/chunks/ComboboxItem.cjs +0 -202
  365. package/dist/cjs/chunks/ComboboxLabel.cjs +0 -46
  366. package/dist/cjs/chunks/ComboboxRoot.cjs +0 -753
  367. package/dist/cjs/chunks/ComboboxSeparator.cjs +0 -34
  368. package/dist/cjs/chunks/ConfigProvider.cjs +0 -68
  369. package/dist/cjs/chunks/DialogClose.cjs +0 -40
  370. package/dist/cjs/chunks/DialogDescription.cjs +0 -37
  371. package/dist/cjs/chunks/DialogPortal.cjs +0 -524
  372. package/dist/cjs/chunks/DialogRoot.cjs +0 -80
  373. package/dist/cjs/chunks/DialogTitle.cjs +0 -37
  374. package/dist/cjs/chunks/DialogTrigger.cjs +0 -56
  375. package/dist/cjs/chunks/DismissableLayer.cjs +0 -268
  376. package/dist/cjs/chunks/DrawerClose.cjs +0 -40
  377. package/dist/cjs/chunks/DrawerDescription.cjs +0 -37
  378. package/dist/cjs/chunks/DrawerRoot.cjs +0 -366
  379. package/dist/cjs/chunks/DrawerTitle.cjs +0 -37
  380. package/dist/cjs/chunks/DropdownMenuPortal.cjs +0 -72
  381. package/dist/cjs/chunks/DropdownMenuRoot.cjs +0 -86
  382. package/dist/cjs/chunks/FocusScope.cjs +0 -377
  383. package/dist/cjs/chunks/Label.cjs +0 -41
  384. package/dist/cjs/chunks/MenuAnchor.cjs +0 -36
  385. package/dist/cjs/chunks/MenuContentImpl.cjs +0 -371
  386. package/dist/cjs/chunks/MenuGroup.cjs +0 -43
  387. package/dist/cjs/chunks/MenuItemImpl.cjs +0 -100
  388. package/dist/cjs/chunks/MenuRoot.cjs +0 -108
  389. package/dist/cjs/chunks/MenuSub.cjs +0 -67
  390. package/dist/cjs/chunks/PaginationRoot.cjs +0 -100
  391. package/dist/cjs/chunks/PinInputRoot.cjs +0 -152
  392. package/dist/cjs/chunks/PopoverRoot.cjs +0 -72
  393. package/dist/cjs/chunks/PopperAnchor.cjs +0 -47
  394. package/dist/cjs/chunks/PopperArrow.cjs +0 -151
  395. package/dist/cjs/chunks/PopperContent.cjs +0 -2099
  396. package/dist/cjs/chunks/PopperRoot.cjs +0 -31
  397. package/dist/cjs/chunks/Presence.cjs +0 -195
  398. package/dist/cjs/chunks/Primitive.cjs +0 -79
  399. package/dist/cjs/chunks/ProgressIndicator.cjs +0 -160
  400. package/dist/cjs/chunks/RadioGroupRoot.cjs +0 -142
  401. package/dist/cjs/chunks/RovingFocusGroup.cjs +0 -146
  402. package/dist/cjs/chunks/RovingFocusItem.cjs +0 -113
  403. package/dist/cjs/chunks/SelectGroup.cjs +0 -43
  404. package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +0 -597
  405. package/dist/cjs/chunks/TabsRoot.cjs +0 -113
  406. package/dist/cjs/chunks/Teleport.cjs +0 -50
  407. package/dist/cjs/chunks/ToggleGroupRoot.cjs +0 -187
  408. package/dist/cjs/chunks/TooltipProvider.cjs +0 -86
  409. package/dist/cjs/chunks/TooltipRoot.cjs +0 -145
  410. package/dist/cjs/chunks/VisuallyHidden.cjs +0 -64
  411. package/dist/cjs/chunks/VisuallyHiddenInput.cjs +0 -146
  412. package/dist/cjs/chunks/clamp.cjs +0 -75
  413. package/dist/cjs/chunks/clsx.cjs +0 -21
  414. package/dist/cjs/chunks/createContext.cjs +0 -37
  415. package/dist/cjs/chunks/defu.cjs +0 -34
  416. package/dist/cjs/chunks/dist.cjs +0 -543
  417. package/dist/cjs/chunks/dist2.cjs +0 -538
  418. package/dist/cjs/chunks/dist3.cjs +0 -16177
  419. package/dist/cjs/chunks/getActiveElement.cjs +0 -14
  420. package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +0 -18
  421. package/dist/cjs/chunks/isValueEqualOrExist.cjs +0 -24
  422. package/dist/cjs/chunks/menus.cjs +0 -1368
  423. package/dist/cjs/chunks/nullish.cjs +0 -11
  424. package/dist/cjs/chunks/ohash.D__AXeF1.cjs +0 -114
  425. package/dist/cjs/chunks/tinycolor.cjs +0 -904
  426. package/dist/cjs/chunks/useArrowNavigation.cjs +0 -65
  427. package/dist/cjs/chunks/useCalendar.cjs +0 -2533
  428. package/dist/cjs/chunks/useComposing.cjs +0 -45
  429. package/dist/cjs/chunks/useDirection.cjs +0 -19
  430. package/dist/cjs/chunks/useEmitAsProps.cjs +0 -33
  431. package/dist/cjs/chunks/useFocusGuards.cjs +0 -39
  432. package/dist/cjs/chunks/useFormControl.cjs +0 -13
  433. package/dist/cjs/chunks/useForwardExpose.cjs +0 -63
  434. package/dist/cjs/chunks/useForwardProps.cjs +0 -39
  435. package/dist/cjs/chunks/useForwardPropsEmits.cjs +0 -19
  436. package/dist/cjs/chunks/useForwardScopeId.cjs +0 -30
  437. package/dist/cjs/chunks/useHideOthers.cjs +0 -137
  438. package/dist/cjs/chunks/useId.cjs +0 -30
  439. package/dist/cjs/chunks/useKbd.cjs +0 -46
  440. package/dist/cjs/chunks/useLocale.cjs +0 -19
  441. package/dist/cjs/chunks/useNonce.cjs +0 -14
  442. package/dist/cjs/chunks/usePrimitiveElement.cjs +0 -17
  443. package/dist/cjs/chunks/useSize.cjs +0 -54
  444. package/dist/cjs/chunks/useTypeahead.cjs +0 -69
  445. package/dist/cjs/chunks/utils.cjs +0 -117
  446. package/dist/cjs/chunks/utils2.cjs +0 -73
  447. package/dist/cjs/chunks/utils3.cjs +0 -20
  448. package/dist/es/chunks/BubbleSelect.js +0 -290
  449. package/dist/es/chunks/CollapsibleRoot.js +0 -78
  450. package/dist/es/chunks/Collection.js +0 -79
  451. package/dist/es/chunks/ComboboxContent.js +0 -441
  452. package/dist/es/chunks/ComboboxGroup.js +0 -78
  453. package/dist/es/chunks/ComboboxInput.js +0 -264
  454. package/dist/es/chunks/ComboboxItem.js +0 -191
  455. package/dist/es/chunks/ComboboxLabel.js +0 -41
  456. package/dist/es/chunks/ComboboxRoot.js +0 -730
  457. package/dist/es/chunks/ComboboxSeparator.js +0 -29
  458. package/dist/es/chunks/ConfigProvider.js +0 -57
  459. package/dist/es/chunks/DialogClose.js +0 -35
  460. package/dist/es/chunks/DialogDescription.js +0 -32
  461. package/dist/es/chunks/DialogPortal.js +0 -507
  462. package/dist/es/chunks/DialogRoot.js +0 -69
  463. package/dist/es/chunks/DialogTitle.js +0 -32
  464. package/dist/es/chunks/DialogTrigger.js +0 -51
  465. package/dist/es/chunks/DismissableLayer.js +0 -257
  466. package/dist/es/chunks/DrawerClose.js +0 -35
  467. package/dist/es/chunks/DrawerDescription.js +0 -32
  468. package/dist/es/chunks/DrawerRoot.js +0 -325
  469. package/dist/es/chunks/DrawerTitle.js +0 -32
  470. package/dist/es/chunks/DropdownMenuPortal.js +0 -67
  471. package/dist/es/chunks/DropdownMenuRoot.js +0 -75
  472. package/dist/es/chunks/FocusScope.js +0 -360
  473. package/dist/es/chunks/Label.js +0 -36
  474. package/dist/es/chunks/MenuAnchor.js +0 -31
  475. package/dist/es/chunks/MenuContentImpl.js +0 -360
  476. package/dist/es/chunks/MenuGroup.js +0 -32
  477. package/dist/es/chunks/MenuItemImpl.js +0 -95
  478. package/dist/es/chunks/MenuRoot.js +0 -85
  479. package/dist/es/chunks/MenuSub.js +0 -56
  480. package/dist/es/chunks/PaginationRoot.js +0 -89
  481. package/dist/es/chunks/PinInputRoot.js +0 -141
  482. package/dist/es/chunks/PopoverRoot.js +0 -61
  483. package/dist/es/chunks/PopperAnchor.js +0 -42
  484. package/dist/es/chunks/PopperArrow.js +0 -146
  485. package/dist/es/chunks/PopperContent.js +0 -2029
  486. package/dist/es/chunks/PopperRoot.js +0 -20
  487. package/dist/es/chunks/Presence.js +0 -184
  488. package/dist/es/chunks/Primitive.js +0 -62
  489. package/dist/es/chunks/ProgressIndicator.js +0 -149
  490. package/dist/es/chunks/RadioGroupRoot.js +0 -131
  491. package/dist/es/chunks/RovingFocusGroup.js +0 -135
  492. package/dist/es/chunks/RovingFocusItem.js +0 -108
  493. package/dist/es/chunks/SelectGroup.js +0 -32
  494. package/dist/es/chunks/SelectItemAlignedPosition.js +0 -568
  495. package/dist/es/chunks/TabsRoot.js +0 -102
  496. package/dist/es/chunks/Teleport.js +0 -45
  497. package/dist/es/chunks/ToggleGroupRoot.js +0 -176
  498. package/dist/es/chunks/TooltipProvider.js +0 -75
  499. package/dist/es/chunks/TooltipRoot.js +0 -128
  500. package/dist/es/chunks/VisuallyHidden.js +0 -59
  501. package/dist/es/chunks/VisuallyHiddenInput.js +0 -141
  502. package/dist/es/chunks/clamp.js +0 -64
  503. package/dist/es/chunks/clsx.js +0 -16
  504. package/dist/es/chunks/createContext.js +0 -32
  505. package/dist/es/chunks/defu.js +0 -29
  506. package/dist/es/chunks/dist.js +0 -418
  507. package/dist/es/chunks/dist2.js +0 -461
  508. package/dist/es/chunks/dist3.js +0 -15890
  509. package/dist/es/chunks/getActiveElement.js +0 -9
  510. package/dist/es/chunks/handleAndDispatchCustomEvent.js +0 -13
  511. package/dist/es/chunks/isValueEqualOrExist.js +0 -19
  512. package/dist/es/chunks/menus.js +0 -1368
  513. package/dist/es/chunks/nullish.js +0 -6
  514. package/dist/es/chunks/ohash.D__AXeF1.js +0 -109
  515. package/dist/es/chunks/rolldown-runtime.js +0 -34
  516. package/dist/es/chunks/tinycolor.js +0 -899
  517. package/dist/es/chunks/useArrowNavigation.js +0 -60
  518. package/dist/es/chunks/useCalendar.js +0 -2426
  519. package/dist/es/chunks/useComposing.js +0 -40
  520. package/dist/es/chunks/useDirection.js +0 -14
  521. package/dist/es/chunks/useEmitAsProps.js +0 -28
  522. package/dist/es/chunks/useFocusGuards.js +0 -34
  523. package/dist/es/chunks/useFormControl.js +0 -8
  524. package/dist/es/chunks/useForwardExpose.js +0 -58
  525. package/dist/es/chunks/useForwardProps.js +0 -34
  526. package/dist/es/chunks/useForwardPropsEmits.js +0 -14
  527. package/dist/es/chunks/useForwardScopeId.js +0 -25
  528. package/dist/es/chunks/useHideOthers.js +0 -132
  529. package/dist/es/chunks/useId.js +0 -23
  530. package/dist/es/chunks/useKbd.js +0 -41
  531. package/dist/es/chunks/useLocale.js +0 -14
  532. package/dist/es/chunks/useNonce.js +0 -9
  533. package/dist/es/chunks/usePrimitiveElement.js +0 -12
  534. package/dist/es/chunks/useSize.js +0 -49
  535. package/dist/es/chunks/useTypeahead.js +0 -64
  536. package/dist/es/chunks/utils.js +0 -58
  537. package/dist/es/chunks/utils2.js +0 -44
  538. package/dist/es/chunks/utils3.js +0 -9
@@ -1,538 +0,0 @@
1
- const require_dist = require("./dist.cjs");
2
- let vue = require("vue");
3
- //#region ../../node_modules/.pnpm/@vueuse+core@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
4
- var defaultWindow = require_dist.isClient ? window : void 0;
5
- var defaultDocument = require_dist.isClient ? window.document : void 0;
6
- require_dist.isClient && window.navigator;
7
- require_dist.isClient && window.location;
8
- /**
9
- * Get the dom element of a ref of element or Vue component instance
10
- *
11
- * @param elRef
12
- */
13
- function unrefElement(elRef) {
14
- var _$el;
15
- const plain = (0, vue.toValue)(elRef);
16
- return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
17
- }
18
- function useEventListener(...args) {
19
- const register = (el, event, listener, options) => {
20
- el.addEventListener(event, listener, options);
21
- return () => el.removeEventListener(event, listener, options);
22
- };
23
- const firstParamTargets = (0, vue.computed)(() => {
24
- const test = require_dist.toArray((0, vue.toValue)(args[0])).filter((e) => e != null);
25
- return test.every((e) => typeof e !== "string") ? test : void 0;
26
- });
27
- return require_dist.watchImmediate(() => {
28
- var _firstParamTargets$va, _firstParamTargets$va2;
29
- return [
30
- (_firstParamTargets$va = (_firstParamTargets$va2 = firstParamTargets.value) === null || _firstParamTargets$va2 === void 0 ? void 0 : _firstParamTargets$va2.map((e) => unrefElement(e))) !== null && _firstParamTargets$va !== void 0 ? _firstParamTargets$va : [defaultWindow].filter((e) => e != null),
31
- require_dist.toArray((0, vue.toValue)(firstParamTargets.value ? args[1] : args[0])),
32
- require_dist.toArray((0, vue.unref)(firstParamTargets.value ? args[2] : args[1])),
33
- (0, vue.toValue)(firstParamTargets.value ? args[3] : args[2])
34
- ];
35
- }, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => {
36
- if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) return;
37
- const optionsClone = require_dist.isObject(raw_options) ? { ...raw_options } : raw_options;
38
- const cleanups = raw_targets.flatMap((el) => raw_events.flatMap((event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))));
39
- onCleanup(() => {
40
- cleanups.forEach((fn) => fn());
41
- });
42
- }, { flush: "post" });
43
- }
44
- /**
45
- * Mounted state in ref.
46
- *
47
- * @see https://vueuse.org/useMounted
48
- *
49
- * @__NO_SIDE_EFFECTS__
50
- */
51
- function useMounted() {
52
- const isMounted = (0, vue.shallowRef)(false);
53
- const instance = (0, vue.getCurrentInstance)();
54
- if (instance) (0, vue.onMounted)(() => {
55
- isMounted.value = true;
56
- }, instance);
57
- return isMounted;
58
- }
59
- /* @__NO_SIDE_EFFECTS__ */
60
- function useSupported(callback) {
61
- const isMounted = useMounted();
62
- return (0, vue.computed)(() => {
63
- isMounted.value;
64
- return Boolean(callback());
65
- });
66
- }
67
- /**
68
- * Watch for changes being made to the DOM tree.
69
- *
70
- * @see https://vueuse.org/useMutationObserver
71
- * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver MutationObserver MDN
72
- * @param target
73
- * @param callback
74
- * @param options
75
- */
76
- function useMutationObserver(target, callback, options = {}) {
77
- const { window = defaultWindow, ...mutationOptions } = options;
78
- let observer;
79
- const isSupported = /* @__PURE__ */ useSupported(() => window && "MutationObserver" in window);
80
- const cleanup = () => {
81
- if (observer) {
82
- observer.disconnect();
83
- observer = void 0;
84
- }
85
- };
86
- const stopWatch = (0, vue.watch)((0, vue.computed)(() => {
87
- const items = require_dist.toArray((0, vue.toValue)(target)).map(unrefElement).filter(require_dist.notNullish);
88
- return new Set(items);
89
- }), (newTargets) => {
90
- cleanup();
91
- if (isSupported.value && newTargets.size) {
92
- observer = new MutationObserver(callback);
93
- newTargets.forEach((el) => observer.observe(el, mutationOptions));
94
- }
95
- }, {
96
- immediate: true,
97
- flush: "post"
98
- });
99
- const takeRecords = () => {
100
- return observer === null || observer === void 0 ? void 0 : observer.takeRecords();
101
- };
102
- const stop = () => {
103
- stopWatch();
104
- cleanup();
105
- };
106
- require_dist.tryOnScopeDispose(stop);
107
- return {
108
- isSupported,
109
- stop,
110
- takeRecords
111
- };
112
- }
113
- function createKeyPredicate(keyFilter) {
114
- if (typeof keyFilter === "function") return keyFilter;
115
- else if (typeof keyFilter === "string") return (event) => event.key === keyFilter;
116
- else if (Array.isArray(keyFilter)) return (event) => keyFilter.includes(event.key);
117
- return () => true;
118
- }
119
- function onKeyStroke(...args) {
120
- let key;
121
- let handler;
122
- let options = {};
123
- if (args.length === 3) {
124
- key = args[0];
125
- handler = args[1];
126
- options = args[2];
127
- } else if (args.length === 2) if (typeof args[1] === "object") {
128
- key = true;
129
- handler = args[0];
130
- options = args[1];
131
- } else {
132
- key = args[0];
133
- handler = args[1];
134
- }
135
- else {
136
- key = true;
137
- handler = args[0];
138
- }
139
- const { target = defaultWindow, eventName = "keydown", passive = false, dedupe = false } = options;
140
- const predicate = createKeyPredicate(key);
141
- const listener = (e) => {
142
- if (e.repeat && (0, vue.toValue)(dedupe)) return;
143
- if (predicate(e)) handler(e);
144
- };
145
- return useEventListener(target, eventName, listener, passive);
146
- }
147
- var ssrWidthSymbol = Symbol("vueuse-ssr-width");
148
- /* @__NO_SIDE_EFFECTS__ */
149
- function useSSRWidth() {
150
- const ssrWidth = (0, vue.hasInjectionContext)() ? require_dist.injectLocal(ssrWidthSymbol, null) : null;
151
- return typeof ssrWidth === "number" ? ssrWidth : void 0;
152
- }
153
- /**
154
- * Reactive Media Query.
155
- *
156
- * @see https://vueuse.org/useMediaQuery
157
- * @param query
158
- * @param options
159
- */
160
- function useMediaQuery(query, options = {}) {
161
- const { window = defaultWindow, ssrWidth = /* @__PURE__ */ useSSRWidth() } = options;
162
- const isSupported = /* @__PURE__ */ useSupported(() => window && "matchMedia" in window && typeof window.matchMedia === "function");
163
- const ssrSupport = (0, vue.shallowRef)(typeof ssrWidth === "number");
164
- const mediaQuery = (0, vue.shallowRef)();
165
- const matches = (0, vue.shallowRef)(false);
166
- const handler = (event) => {
167
- matches.value = event.matches;
168
- };
169
- (0, vue.watchEffect)(() => {
170
- if (ssrSupport.value) {
171
- ssrSupport.value = !isSupported.value;
172
- const queryStrings = (0, vue.toValue)(query).split(",");
173
- matches.value = queryStrings.some((queryString) => {
174
- const not = queryString.includes("not all");
175
- const minWidth = queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
176
- const maxWidth = queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
177
- let res = Boolean(minWidth || maxWidth);
178
- if (minWidth && res) res = ssrWidth >= require_dist.pxValue(minWidth[1]);
179
- if (maxWidth && res) res = ssrWidth <= require_dist.pxValue(maxWidth[1]);
180
- return not ? !res : res;
181
- });
182
- return;
183
- }
184
- if (!isSupported.value) return;
185
- mediaQuery.value = window.matchMedia((0, vue.toValue)(query));
186
- matches.value = mediaQuery.value.matches;
187
- });
188
- useEventListener(mediaQuery, "change", handler, { passive: true });
189
- return (0, vue.computed)(() => matches.value);
190
- }
191
- function cloneFnJSON(source) {
192
- return JSON.parse(JSON.stringify(source));
193
- }
194
- function useDropZone(target, options = {}) {
195
- const isOverDropZone = (0, vue.shallowRef)(false);
196
- const files = (0, vue.shallowRef)(null);
197
- let counter = 0;
198
- let isValid = true;
199
- if (require_dist.isClient) {
200
- var _options$multiple, _options$preventDefau;
201
- const _options = typeof options === "function" ? { onDrop: options } : options;
202
- const multiple = (_options$multiple = _options.multiple) !== null && _options$multiple !== void 0 ? _options$multiple : true;
203
- const preventDefaultForUnhandled = (_options$preventDefau = _options.preventDefaultForUnhandled) !== null && _options$preventDefau !== void 0 ? _options$preventDefau : false;
204
- const getFiles = (event) => {
205
- var _event$dataTransfer$f, _event$dataTransfer;
206
- const list = Array.from((_event$dataTransfer$f = (_event$dataTransfer = event.dataTransfer) === null || _event$dataTransfer === void 0 ? void 0 : _event$dataTransfer.files) !== null && _event$dataTransfer$f !== void 0 ? _event$dataTransfer$f : []);
207
- return list.length === 0 ? null : multiple ? list : [list[0]];
208
- };
209
- const checkDataTypes = (types) => {
210
- const dataTypes = (0, vue.unref)(_options.dataTypes);
211
- if (typeof dataTypes === "function") return dataTypes(types);
212
- if (!(dataTypes === null || dataTypes === void 0 ? void 0 : dataTypes.length)) return true;
213
- if (types.length === 0) return false;
214
- return types.every((type) => dataTypes.some((allowedType) => type.includes(allowedType)));
215
- };
216
- const checkValidity = (items) => {
217
- if (_options.checkValidity) return _options.checkValidity(items);
218
- const types = Array.from(items !== null && items !== void 0 ? items : []).map((item) => item.type);
219
- const dataTypesValid = checkDataTypes(types);
220
- const multipleFilesValid = multiple || items.length <= 1;
221
- return dataTypesValid && multipleFilesValid;
222
- };
223
- const isSafari = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window);
224
- const handleDragEvent = (event, eventType) => {
225
- var _event$dataTransfer2, _ref;
226
- const dataTransferItemList = (_event$dataTransfer2 = event.dataTransfer) === null || _event$dataTransfer2 === void 0 ? void 0 : _event$dataTransfer2.items;
227
- isValid = (_ref = dataTransferItemList && checkValidity(dataTransferItemList)) !== null && _ref !== void 0 ? _ref : false;
228
- if (preventDefaultForUnhandled) event.preventDefault();
229
- if (!isSafari() && !isValid) {
230
- if (event.dataTransfer) event.dataTransfer.dropEffect = "none";
231
- return;
232
- }
233
- event.preventDefault();
234
- if (event.dataTransfer) event.dataTransfer.dropEffect = "copy";
235
- const currentFiles = getFiles(event);
236
- switch (eventType) {
237
- case "enter":
238
- var _options$onEnter;
239
- counter += 1;
240
- isOverDropZone.value = true;
241
- (_options$onEnter = _options.onEnter) === null || _options$onEnter === void 0 || _options$onEnter.call(_options, null, event);
242
- break;
243
- case "over":
244
- var _options$onOver;
245
- (_options$onOver = _options.onOver) === null || _options$onOver === void 0 || _options$onOver.call(_options, null, event);
246
- break;
247
- case "leave":
248
- var _options$onLeave;
249
- counter -= 1;
250
- if (counter === 0) isOverDropZone.value = false;
251
- (_options$onLeave = _options.onLeave) === null || _options$onLeave === void 0 || _options$onLeave.call(_options, null, event);
252
- break;
253
- case "drop":
254
- counter = 0;
255
- isOverDropZone.value = false;
256
- if (isValid) {
257
- var _options$onDrop;
258
- files.value = currentFiles;
259
- (_options$onDrop = _options.onDrop) === null || _options$onDrop === void 0 || _options$onDrop.call(_options, currentFiles, event);
260
- }
261
- }
262
- };
263
- useEventListener(target, "dragenter", (event) => handleDragEvent(event, "enter"));
264
- useEventListener(target, "dragover", (event) => handleDragEvent(event, "over"));
265
- useEventListener(target, "dragleave", (event) => handleDragEvent(event, "leave"));
266
- useEventListener(target, "drop", (event) => handleDragEvent(event, "drop"));
267
- }
268
- return {
269
- files,
270
- isOverDropZone
271
- };
272
- }
273
- /**
274
- * Reports changes to the dimensions of an Element's content or the border-box
275
- *
276
- * @see https://vueuse.org/useResizeObserver
277
- * @param target
278
- * @param callback
279
- * @param options
280
- */
281
- function useResizeObserver(target, callback, options = {}) {
282
- const { window = defaultWindow, ...observerOptions } = options;
283
- let observer;
284
- const isSupported = /* @__PURE__ */ useSupported(() => window && "ResizeObserver" in window);
285
- const cleanup = () => {
286
- if (observer) {
287
- observer.disconnect();
288
- observer = void 0;
289
- }
290
- };
291
- const stopWatch = (0, vue.watch)((0, vue.computed)(() => {
292
- const _targets = (0, vue.toValue)(target);
293
- return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)];
294
- }), (els) => {
295
- cleanup();
296
- if (isSupported.value && window) {
297
- observer = new ResizeObserver(callback);
298
- for (const _el of els) if (_el) observer.observe(_el, observerOptions);
299
- }
300
- }, {
301
- immediate: true,
302
- flush: "post"
303
- });
304
- const stop = () => {
305
- cleanup();
306
- stopWatch();
307
- };
308
- require_dist.tryOnScopeDispose(stop);
309
- return {
310
- isSupported,
311
- stop
312
- };
313
- }
314
- /**
315
- * Reactive size of an HTML element.
316
- *
317
- * @see https://vueuse.org/useElementSize
318
- */
319
- function useElementSize(target, initialSize = {
320
- width: 0,
321
- height: 0
322
- }, options = {}) {
323
- const { window = defaultWindow, box = "content-box" } = options;
324
- const isSVG = (0, vue.computed)(() => {
325
- var _unrefElement;
326
- return (_unrefElement = unrefElement(target)) === null || _unrefElement === void 0 || (_unrefElement = _unrefElement.namespaceURI) === null || _unrefElement === void 0 ? void 0 : _unrefElement.includes("svg");
327
- });
328
- const width = (0, vue.shallowRef)(initialSize.width);
329
- const height = (0, vue.shallowRef)(initialSize.height);
330
- const { stop: stop1 } = useResizeObserver(target, ([entry]) => {
331
- const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
332
- if (window && isSVG.value) {
333
- const $elem = unrefElement(target);
334
- if ($elem) {
335
- const rect = $elem.getBoundingClientRect();
336
- width.value = rect.width;
337
- height.value = rect.height;
338
- }
339
- } else if (boxSize) {
340
- const formatBoxSize = require_dist.toArray(boxSize);
341
- width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);
342
- height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);
343
- } else {
344
- width.value = entry.contentRect.width;
345
- height.value = entry.contentRect.height;
346
- }
347
- }, options);
348
- require_dist.tryOnMounted(() => {
349
- const ele = unrefElement(target);
350
- if (ele && "offsetWidth" in ele) if (box === "content-box" && window) {
351
- const cs = window.getComputedStyle(ele);
352
- const padX = Number.parseFloat(cs.paddingLeft) + Number.parseFloat(cs.paddingRight);
353
- const padY = Number.parseFloat(cs.paddingTop) + Number.parseFloat(cs.paddingBottom);
354
- const bdX = Number.parseFloat(cs.borderLeftWidth) + Number.parseFloat(cs.borderRightWidth);
355
- const bdY = Number.parseFloat(cs.borderTopWidth) + Number.parseFloat(cs.borderBottomWidth);
356
- width.value = ele.offsetWidth - padX - bdX;
357
- height.value = ele.offsetHeight - padY - bdY;
358
- } else {
359
- width.value = ele.offsetWidth;
360
- height.value = ele.offsetHeight;
361
- }
362
- else if (ele) {
363
- width.value = initialSize.width;
364
- height.value = initialSize.height;
365
- }
366
- });
367
- const stop2 = (0, vue.watch)(() => unrefElement(target), (ele) => {
368
- width.value = ele ? initialSize.width : 0;
369
- height.value = ele ? initialSize.height : 0;
370
- });
371
- function stop() {
372
- stop1();
373
- stop2();
374
- }
375
- return {
376
- width,
377
- height,
378
- stop
379
- };
380
- }
381
- /**
382
- * Reactive dir of the element's text.
383
- *
384
- * @see https://vueuse.org/useTextDirection
385
- *
386
- * @__NO_SIDE_EFFECTS__
387
- */
388
- function useTextDirection(options = {}) {
389
- const { document = defaultDocument, selector = "html", observe = false, initialValue = "ltr" } = options;
390
- function getValue() {
391
- var _ref, _document$querySelect;
392
- return (_ref = document === null || document === void 0 || (_document$querySelect = document.querySelector(selector)) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.getAttribute("dir")) !== null && _ref !== void 0 ? _ref : initialValue;
393
- }
394
- const dir = (0, vue.shallowRef)(getValue());
395
- require_dist.tryOnMounted(() => dir.value = getValue());
396
- if (observe && document) useMutationObserver(document.querySelector(selector), () => dir.value = getValue(), { attributes: true });
397
- return (0, vue.computed)({
398
- get() {
399
- return dir.value;
400
- },
401
- set(v) {
402
- var _document$querySelect2, _document$querySelect3;
403
- dir.value = v;
404
- if (!document) return;
405
- if (dir.value) (_document$querySelect2 = document.querySelector(selector)) === null || _document$querySelect2 === void 0 || _document$querySelect2.setAttribute("dir", dir.value);
406
- else (_document$querySelect3 = document.querySelector(selector)) === null || _document$querySelect3 === void 0 || _document$querySelect3.removeAttribute("dir");
407
- }
408
- });
409
- }
410
- Number.POSITIVE_INFINITY;
411
- /**
412
- * Shorthand for v-model binding, props + emit -> ref
413
- *
414
- * @see https://vueuse.org/useVModel
415
- * @param props
416
- * @param key (default 'modelValue')
417
- * @param emit
418
- * @param options
419
- *
420
- * @__NO_SIDE_EFFECTS__
421
- */
422
- function useVModel(props, key, emit, options = {}) {
423
- var _vm$$emit, _vm$proxy;
424
- const { clone = false, passive = false, eventName, deep = false, defaultValue, shouldEmit } = options;
425
- const vm = (0, vue.getCurrentInstance)();
426
- const _emit = emit || (vm === null || vm === void 0 ? void 0 : vm.emit) || (vm === null || vm === void 0 || (_vm$$emit = vm.$emit) === null || _vm$$emit === void 0 ? void 0 : _vm$$emit.bind(vm)) || (vm === null || vm === void 0 || (_vm$proxy = vm.proxy) === null || _vm$proxy === void 0 || (_vm$proxy = _vm$proxy.$emit) === null || _vm$proxy === void 0 ? void 0 : _vm$proxy.bind(vm === null || vm === void 0 ? void 0 : vm.proxy));
427
- let event = eventName;
428
- if (!key) key = "modelValue";
429
- event = event || `update:${key.toString()}`;
430
- const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val);
431
- const getValue = () => require_dist.isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
432
- const triggerEmit = (value) => {
433
- if (shouldEmit) {
434
- if (shouldEmit(value)) _emit(event, value);
435
- } else _emit(event, value);
436
- };
437
- if (passive) {
438
- const proxy = (0, vue.ref)(getValue());
439
- let isUpdating = false;
440
- (0, vue.watch)(() => props[key], (v) => {
441
- if (!isUpdating) {
442
- isUpdating = true;
443
- proxy.value = cloneFn(v);
444
- (0, vue.nextTick)(() => isUpdating = false);
445
- }
446
- });
447
- (0, vue.watch)(proxy, (v) => {
448
- if (!isUpdating && (v !== props[key] || deep)) triggerEmit(v);
449
- }, { deep });
450
- return proxy;
451
- } else return (0, vue.computed)({
452
- get() {
453
- return getValue();
454
- },
455
- set(value) {
456
- triggerEmit(value);
457
- }
458
- });
459
- }
460
- //#endregion
461
- Object.defineProperty(exports, "defaultDocument", {
462
- enumerable: true,
463
- get: function() {
464
- return defaultDocument;
465
- }
466
- });
467
- Object.defineProperty(exports, "defaultWindow", {
468
- enumerable: true,
469
- get: function() {
470
- return defaultWindow;
471
- }
472
- });
473
- Object.defineProperty(exports, "onKeyStroke", {
474
- enumerable: true,
475
- get: function() {
476
- return onKeyStroke;
477
- }
478
- });
479
- Object.defineProperty(exports, "unrefElement", {
480
- enumerable: true,
481
- get: function() {
482
- return unrefElement;
483
- }
484
- });
485
- Object.defineProperty(exports, "useDropZone", {
486
- enumerable: true,
487
- get: function() {
488
- return useDropZone;
489
- }
490
- });
491
- Object.defineProperty(exports, "useElementSize", {
492
- enumerable: true,
493
- get: function() {
494
- return useElementSize;
495
- }
496
- });
497
- Object.defineProperty(exports, "useEventListener", {
498
- enumerable: true,
499
- get: function() {
500
- return useEventListener;
501
- }
502
- });
503
- Object.defineProperty(exports, "useMediaQuery", {
504
- enumerable: true,
505
- get: function() {
506
- return useMediaQuery;
507
- }
508
- });
509
- Object.defineProperty(exports, "useMounted", {
510
- enumerable: true,
511
- get: function() {
512
- return useMounted;
513
- }
514
- });
515
- Object.defineProperty(exports, "useMutationObserver", {
516
- enumerable: true,
517
- get: function() {
518
- return useMutationObserver;
519
- }
520
- });
521
- Object.defineProperty(exports, "useResizeObserver", {
522
- enumerable: true,
523
- get: function() {
524
- return useResizeObserver;
525
- }
526
- });
527
- Object.defineProperty(exports, "useTextDirection", {
528
- enumerable: true,
529
- get: function() {
530
- return useTextDirection;
531
- }
532
- });
533
- Object.defineProperty(exports, "useVModel", {
534
- enumerable: true,
535
- get: function() {
536
- return useVModel;
537
- }
538
- });