@youcan/celeste 0.21.2 → 0.22.1

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 (542) 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 +3069 -3065
  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 +7 -5
  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 +7 -5
  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 +7 -5
  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 +7 -5
  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 +4 -4
  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 +4 -4
  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 +4 -4
  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 +4 -4
  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/src/components/button/button.vue +1 -0
  359. package/src/components/button/fancy-button.vue +1 -0
  360. package/src/components/button/link-button.vue +1 -0
  361. package/src/components/button/social-button.vue +1 -0
  362. package/dist/cjs/chunks/BubbleSelect.cjs +0 -331
  363. package/dist/cjs/chunks/CollapsibleRoot.cjs +0 -89
  364. package/dist/cjs/chunks/Collection.cjs +0 -84
  365. package/dist/cjs/chunks/ComboboxContent.cjs +0 -446
  366. package/dist/cjs/chunks/ComboboxGroup.cjs +0 -89
  367. package/dist/cjs/chunks/ComboboxInput.cjs +0 -269
  368. package/dist/cjs/chunks/ComboboxItem.cjs +0 -202
  369. package/dist/cjs/chunks/ComboboxLabel.cjs +0 -46
  370. package/dist/cjs/chunks/ComboboxRoot.cjs +0 -753
  371. package/dist/cjs/chunks/ComboboxSeparator.cjs +0 -34
  372. package/dist/cjs/chunks/ConfigProvider.cjs +0 -68
  373. package/dist/cjs/chunks/DialogClose.cjs +0 -40
  374. package/dist/cjs/chunks/DialogDescription.cjs +0 -37
  375. package/dist/cjs/chunks/DialogPortal.cjs +0 -524
  376. package/dist/cjs/chunks/DialogRoot.cjs +0 -80
  377. package/dist/cjs/chunks/DialogTitle.cjs +0 -37
  378. package/dist/cjs/chunks/DialogTrigger.cjs +0 -56
  379. package/dist/cjs/chunks/DismissableLayer.cjs +0 -268
  380. package/dist/cjs/chunks/DrawerClose.cjs +0 -40
  381. package/dist/cjs/chunks/DrawerDescription.cjs +0 -37
  382. package/dist/cjs/chunks/DrawerRoot.cjs +0 -366
  383. package/dist/cjs/chunks/DrawerTitle.cjs +0 -37
  384. package/dist/cjs/chunks/DropdownMenuPortal.cjs +0 -72
  385. package/dist/cjs/chunks/DropdownMenuRoot.cjs +0 -86
  386. package/dist/cjs/chunks/FocusScope.cjs +0 -377
  387. package/dist/cjs/chunks/Label.cjs +0 -41
  388. package/dist/cjs/chunks/MenuAnchor.cjs +0 -36
  389. package/dist/cjs/chunks/MenuContentImpl.cjs +0 -371
  390. package/dist/cjs/chunks/MenuGroup.cjs +0 -43
  391. package/dist/cjs/chunks/MenuItemImpl.cjs +0 -100
  392. package/dist/cjs/chunks/MenuRoot.cjs +0 -108
  393. package/dist/cjs/chunks/MenuSub.cjs +0 -67
  394. package/dist/cjs/chunks/PaginationRoot.cjs +0 -100
  395. package/dist/cjs/chunks/PinInputRoot.cjs +0 -152
  396. package/dist/cjs/chunks/PopoverRoot.cjs +0 -72
  397. package/dist/cjs/chunks/PopperAnchor.cjs +0 -47
  398. package/dist/cjs/chunks/PopperArrow.cjs +0 -151
  399. package/dist/cjs/chunks/PopperContent.cjs +0 -2099
  400. package/dist/cjs/chunks/PopperRoot.cjs +0 -31
  401. package/dist/cjs/chunks/Presence.cjs +0 -195
  402. package/dist/cjs/chunks/Primitive.cjs +0 -79
  403. package/dist/cjs/chunks/ProgressIndicator.cjs +0 -160
  404. package/dist/cjs/chunks/RadioGroupRoot.cjs +0 -142
  405. package/dist/cjs/chunks/RovingFocusGroup.cjs +0 -146
  406. package/dist/cjs/chunks/RovingFocusItem.cjs +0 -113
  407. package/dist/cjs/chunks/SelectGroup.cjs +0 -43
  408. package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +0 -597
  409. package/dist/cjs/chunks/TabsRoot.cjs +0 -113
  410. package/dist/cjs/chunks/Teleport.cjs +0 -50
  411. package/dist/cjs/chunks/ToggleGroupRoot.cjs +0 -187
  412. package/dist/cjs/chunks/TooltipProvider.cjs +0 -86
  413. package/dist/cjs/chunks/TooltipRoot.cjs +0 -145
  414. package/dist/cjs/chunks/VisuallyHidden.cjs +0 -64
  415. package/dist/cjs/chunks/VisuallyHiddenInput.cjs +0 -146
  416. package/dist/cjs/chunks/clamp.cjs +0 -75
  417. package/dist/cjs/chunks/clsx.cjs +0 -21
  418. package/dist/cjs/chunks/createContext.cjs +0 -37
  419. package/dist/cjs/chunks/defu.cjs +0 -34
  420. package/dist/cjs/chunks/dist.cjs +0 -543
  421. package/dist/cjs/chunks/dist2.cjs +0 -538
  422. package/dist/cjs/chunks/dist3.cjs +0 -16177
  423. package/dist/cjs/chunks/getActiveElement.cjs +0 -14
  424. package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +0 -18
  425. package/dist/cjs/chunks/isValueEqualOrExist.cjs +0 -24
  426. package/dist/cjs/chunks/menus.cjs +0 -1368
  427. package/dist/cjs/chunks/nullish.cjs +0 -11
  428. package/dist/cjs/chunks/ohash.D__AXeF1.cjs +0 -114
  429. package/dist/cjs/chunks/tinycolor.cjs +0 -904
  430. package/dist/cjs/chunks/useArrowNavigation.cjs +0 -65
  431. package/dist/cjs/chunks/useCalendar.cjs +0 -2533
  432. package/dist/cjs/chunks/useComposing.cjs +0 -45
  433. package/dist/cjs/chunks/useDirection.cjs +0 -19
  434. package/dist/cjs/chunks/useEmitAsProps.cjs +0 -33
  435. package/dist/cjs/chunks/useFocusGuards.cjs +0 -39
  436. package/dist/cjs/chunks/useFormControl.cjs +0 -13
  437. package/dist/cjs/chunks/useForwardExpose.cjs +0 -63
  438. package/dist/cjs/chunks/useForwardProps.cjs +0 -39
  439. package/dist/cjs/chunks/useForwardPropsEmits.cjs +0 -19
  440. package/dist/cjs/chunks/useForwardScopeId.cjs +0 -30
  441. package/dist/cjs/chunks/useHideOthers.cjs +0 -137
  442. package/dist/cjs/chunks/useId.cjs +0 -30
  443. package/dist/cjs/chunks/useKbd.cjs +0 -46
  444. package/dist/cjs/chunks/useLocale.cjs +0 -19
  445. package/dist/cjs/chunks/useNonce.cjs +0 -14
  446. package/dist/cjs/chunks/usePrimitiveElement.cjs +0 -17
  447. package/dist/cjs/chunks/useSize.cjs +0 -54
  448. package/dist/cjs/chunks/useTypeahead.cjs +0 -69
  449. package/dist/cjs/chunks/utils.cjs +0 -117
  450. package/dist/cjs/chunks/utils2.cjs +0 -73
  451. package/dist/cjs/chunks/utils3.cjs +0 -20
  452. package/dist/es/chunks/BubbleSelect.js +0 -290
  453. package/dist/es/chunks/CollapsibleRoot.js +0 -78
  454. package/dist/es/chunks/Collection.js +0 -79
  455. package/dist/es/chunks/ComboboxContent.js +0 -441
  456. package/dist/es/chunks/ComboboxGroup.js +0 -78
  457. package/dist/es/chunks/ComboboxInput.js +0 -264
  458. package/dist/es/chunks/ComboboxItem.js +0 -191
  459. package/dist/es/chunks/ComboboxLabel.js +0 -41
  460. package/dist/es/chunks/ComboboxRoot.js +0 -730
  461. package/dist/es/chunks/ComboboxSeparator.js +0 -29
  462. package/dist/es/chunks/ConfigProvider.js +0 -57
  463. package/dist/es/chunks/DialogClose.js +0 -35
  464. package/dist/es/chunks/DialogDescription.js +0 -32
  465. package/dist/es/chunks/DialogPortal.js +0 -507
  466. package/dist/es/chunks/DialogRoot.js +0 -69
  467. package/dist/es/chunks/DialogTitle.js +0 -32
  468. package/dist/es/chunks/DialogTrigger.js +0 -51
  469. package/dist/es/chunks/DismissableLayer.js +0 -257
  470. package/dist/es/chunks/DrawerClose.js +0 -35
  471. package/dist/es/chunks/DrawerDescription.js +0 -32
  472. package/dist/es/chunks/DrawerRoot.js +0 -325
  473. package/dist/es/chunks/DrawerTitle.js +0 -32
  474. package/dist/es/chunks/DropdownMenuPortal.js +0 -67
  475. package/dist/es/chunks/DropdownMenuRoot.js +0 -75
  476. package/dist/es/chunks/FocusScope.js +0 -360
  477. package/dist/es/chunks/Label.js +0 -36
  478. package/dist/es/chunks/MenuAnchor.js +0 -31
  479. package/dist/es/chunks/MenuContentImpl.js +0 -360
  480. package/dist/es/chunks/MenuGroup.js +0 -32
  481. package/dist/es/chunks/MenuItemImpl.js +0 -95
  482. package/dist/es/chunks/MenuRoot.js +0 -85
  483. package/dist/es/chunks/MenuSub.js +0 -56
  484. package/dist/es/chunks/PaginationRoot.js +0 -89
  485. package/dist/es/chunks/PinInputRoot.js +0 -141
  486. package/dist/es/chunks/PopoverRoot.js +0 -61
  487. package/dist/es/chunks/PopperAnchor.js +0 -42
  488. package/dist/es/chunks/PopperArrow.js +0 -146
  489. package/dist/es/chunks/PopperContent.js +0 -2029
  490. package/dist/es/chunks/PopperRoot.js +0 -20
  491. package/dist/es/chunks/Presence.js +0 -184
  492. package/dist/es/chunks/Primitive.js +0 -62
  493. package/dist/es/chunks/ProgressIndicator.js +0 -149
  494. package/dist/es/chunks/RadioGroupRoot.js +0 -131
  495. package/dist/es/chunks/RovingFocusGroup.js +0 -135
  496. package/dist/es/chunks/RovingFocusItem.js +0 -108
  497. package/dist/es/chunks/SelectGroup.js +0 -32
  498. package/dist/es/chunks/SelectItemAlignedPosition.js +0 -568
  499. package/dist/es/chunks/TabsRoot.js +0 -102
  500. package/dist/es/chunks/Teleport.js +0 -45
  501. package/dist/es/chunks/ToggleGroupRoot.js +0 -176
  502. package/dist/es/chunks/TooltipProvider.js +0 -75
  503. package/dist/es/chunks/TooltipRoot.js +0 -128
  504. package/dist/es/chunks/VisuallyHidden.js +0 -59
  505. package/dist/es/chunks/VisuallyHiddenInput.js +0 -141
  506. package/dist/es/chunks/clamp.js +0 -64
  507. package/dist/es/chunks/clsx.js +0 -16
  508. package/dist/es/chunks/createContext.js +0 -32
  509. package/dist/es/chunks/defu.js +0 -29
  510. package/dist/es/chunks/dist.js +0 -418
  511. package/dist/es/chunks/dist2.js +0 -461
  512. package/dist/es/chunks/dist3.js +0 -15890
  513. package/dist/es/chunks/getActiveElement.js +0 -9
  514. package/dist/es/chunks/handleAndDispatchCustomEvent.js +0 -13
  515. package/dist/es/chunks/isValueEqualOrExist.js +0 -19
  516. package/dist/es/chunks/menus.js +0 -1368
  517. package/dist/es/chunks/nullish.js +0 -6
  518. package/dist/es/chunks/ohash.D__AXeF1.js +0 -109
  519. package/dist/es/chunks/rolldown-runtime.js +0 -34
  520. package/dist/es/chunks/tinycolor.js +0 -899
  521. package/dist/es/chunks/useArrowNavigation.js +0 -60
  522. package/dist/es/chunks/useCalendar.js +0 -2426
  523. package/dist/es/chunks/useComposing.js +0 -40
  524. package/dist/es/chunks/useDirection.js +0 -14
  525. package/dist/es/chunks/useEmitAsProps.js +0 -28
  526. package/dist/es/chunks/useFocusGuards.js +0 -34
  527. package/dist/es/chunks/useFormControl.js +0 -8
  528. package/dist/es/chunks/useForwardExpose.js +0 -58
  529. package/dist/es/chunks/useForwardProps.js +0 -34
  530. package/dist/es/chunks/useForwardPropsEmits.js +0 -14
  531. package/dist/es/chunks/useForwardScopeId.js +0 -25
  532. package/dist/es/chunks/useHideOthers.js +0 -132
  533. package/dist/es/chunks/useId.js +0 -23
  534. package/dist/es/chunks/useKbd.js +0 -41
  535. package/dist/es/chunks/useLocale.js +0 -14
  536. package/dist/es/chunks/useNonce.js +0 -9
  537. package/dist/es/chunks/usePrimitiveElement.js +0 -12
  538. package/dist/es/chunks/useSize.js +0 -49
  539. package/dist/es/chunks/useTypeahead.js +0 -64
  540. package/dist/es/chunks/utils.js +0 -58
  541. package/dist/es/chunks/utils2.js +0 -44
  542. package/dist/es/chunks/utils3.js +0 -9
@@ -1,75 +0,0 @@
1
- //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/clamp.js
2
- /**
3
- * The `clamp` function restricts a number within a specified range by returning the value itself if it
4
- * falls within the range, or the closest boundary value if it exceeds the range.
5
- * @param {number} value - The `value` parameter represents the number that you want to clamp within
6
- * the specified range defined by `min` and `max` values.
7
- * @param {number} min - If the `value` parameter is less than the `min` value, the
8
- * function will return the `min` value.
9
- * @param {number} max - If the `value` parameter is greater than the `max` value,
10
- * the function will return `max`.
11
- * @returns The `clamp` function returns the value of `value` constrained within the range defined by
12
- * `min` and `max`.
13
- */
14
- function clamp(value, min = Number.NEGATIVE_INFINITY, max = Number.POSITIVE_INFINITY) {
15
- return Math.min(max, Math.max(min, value));
16
- }
17
- /**
18
- * The function `roundToStepPrecision` rounds a number to a specified precision step.
19
- * @param {number} value - The `value` parameter is the number that you want to round to a specific
20
- * precision based on the `step` parameter.
21
- * @param {number} step - The `step` parameter in the `roundToStepPrecision` function represents the
22
- * interval at which you want to round the `value`. For example, if `step` is 0.5, the `value` will be
23
- * rounded to the nearest half.
24
- * @returns the `roundedValue` after rounding it to the precision specified by the `step`.
25
- */
26
- function roundToStepPrecision(value, step) {
27
- let roundedValue = value;
28
- const stepString = step.toString();
29
- const pointIndex = stepString.indexOf(".");
30
- const precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
31
- if (precision > 0) {
32
- const pow = 10 ** precision;
33
- roundedValue = Math.round(roundedValue * pow) / pow;
34
- }
35
- return roundedValue;
36
- }
37
- /**
38
- * The function `snapValueToStep` snaps a given value to the nearest step within a specified range.
39
- * @param {number} value - The `value` parameter represents the number that you want to snap to the
40
- * nearest step value.
41
- * @param {number | undefined} min - The `min` parameter represents the minimum value that the `value`
42
- * should be snapped to. If `value` is less than `min`, it will be snapped to `min`. If `min` is not
43
- * provided (undefined), then the snapping will not consider a minimum value.
44
- * @param {number | undefined} max - The `max` parameter represents the maximum value that the `value`
45
- * should be snapped to. It ensures that the snapped value does not exceed this maximum value.
46
- * @param {number} step - The `step` parameter in the `snapValueToStep` function represents the
47
- * interval at which the `value` should be snapped to. It determines the granularity of the snapping
48
- * operation. For example, if `step` is 5, the `value` will be snapped to the nearest multiple of
49
- * @returns a number that has been snapped to the nearest step value within the specified range of minimum and maximum values.
50
- */
51
- function snapValueToStep(value, min, max, step) {
52
- min = Number(min);
53
- max = Number(max);
54
- const remainder = (value - (Number.isNaN(min) ? 0 : min)) % step;
55
- let snappedValue = roundToStepPrecision(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
56
- if (!Number.isNaN(min)) {
57
- if (snappedValue < min) snappedValue = min;
58
- else if (!Number.isNaN(max) && snappedValue > max) snappedValue = min + Math.floor(roundToStepPrecision((max - min) / step, step)) * step;
59
- } else if (!Number.isNaN(max) && snappedValue > max) snappedValue = Math.floor(roundToStepPrecision(max / step, step)) * step;
60
- snappedValue = roundToStepPrecision(snappedValue, step);
61
- return snappedValue;
62
- }
63
- //#endregion
64
- Object.defineProperty(exports, "clamp", {
65
- enumerable: true,
66
- get: function() {
67
- return clamp;
68
- }
69
- });
70
- Object.defineProperty(exports, "snapValueToStep", {
71
- enumerable: true,
72
- get: function() {
73
- return snapValueToStep;
74
- }
75
- });
@@ -1,21 +0,0 @@
1
- //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
2
- function r(e) {
3
- var t, f, n = "";
4
- if ("string" == typeof e || "number" == typeof e) n += e;
5
- else if ("object" == typeof e) if (Array.isArray(e)) {
6
- var o = e.length;
7
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
8
- } else for (f in e) e[f] && (n && (n += " "), n += f);
9
- return n;
10
- }
11
- function clsx() {
12
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
13
- return n;
14
- }
15
- //#endregion
16
- Object.defineProperty(exports, "clsx", {
17
- enumerable: true,
18
- get: function() {
19
- return clsx;
20
- }
21
- });
@@ -1,37 +0,0 @@
1
- let vue = require("vue");
2
- //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/createContext.js
3
- /**
4
- * @param providerComponentName - The name(s) of the component(s) providing the context.
5
- *
6
- * There are situations where context can come from multiple components. In such cases, you might need to give an array of component names to provide your context, instead of just a single string.
7
- *
8
- * @param contextName The description for injection key symbol.
9
- */
10
- function createContext(providerComponentName, contextName) {
11
- const symbolDescription = typeof providerComponentName === "string" && !contextName ? `${providerComponentName}Context` : contextName;
12
- const injectionKey = Symbol(symbolDescription);
13
- /**
14
- * @param fallback The context value to return if the injection fails.
15
- *
16
- * @throws When context injection failed and no fallback is specified.
17
- * This happens when the component injecting the context is not a child of the root component providing the context.
18
- */
19
- const injectContext = (fallback) => {
20
- const context = (0, vue.inject)(injectionKey, fallback);
21
- if (context) return context;
22
- if (context === null) return context;
23
- throw new Error(`Injection \`${injectionKey.toString()}\` not found. Component must be used within ${Array.isArray(providerComponentName) ? `one of the following components: ${providerComponentName.join(", ")}` : `\`${providerComponentName}\``}`);
24
- };
25
- const provideContext = (contextValue) => {
26
- (0, vue.provide)(injectionKey, contextValue);
27
- return contextValue;
28
- };
29
- return [injectContext, provideContext];
30
- }
31
- //#endregion
32
- Object.defineProperty(exports, "createContext", {
33
- enumerable: true,
34
- get: function() {
35
- return createContext;
36
- }
37
- });
@@ -1,34 +0,0 @@
1
- //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
2
- function isPlainObject(value) {
3
- if (value === null || typeof value !== "object") return false;
4
- const prototype = Object.getPrototypeOf(value);
5
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
6
- if (Symbol.iterator in value) return false;
7
- if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
8
- return true;
9
- }
10
- function _defu(baseObject, defaults, namespace = ".", merger) {
11
- if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
12
- const object = { ...defaults };
13
- for (const key of Object.keys(baseObject)) {
14
- if (key === "__proto__" || key === "constructor") continue;
15
- const value = baseObject[key];
16
- if (value === null || value === void 0) continue;
17
- if (merger && merger(object, key, value, namespace)) continue;
18
- if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
19
- else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
20
- else object[key] = value;
21
- }
22
- return object;
23
- }
24
- function createDefu(merger) {
25
- return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
26
- }
27
- var defu = createDefu();
28
- //#endregion
29
- Object.defineProperty(exports, "defu", {
30
- enumerable: true,
31
- get: function() {
32
- return defu;
33
- }
34
- });
@@ -1,543 +0,0 @@
1
- let vue = require("vue");
2
- //#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
- /**
4
- * Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
5
- *
6
- * @param fn
7
- */
8
- function tryOnScopeDispose(fn, failSilently) {
9
- if ((0, vue.getCurrentScope)()) {
10
- (0, vue.onScopeDispose)(fn, failSilently);
11
- return true;
12
- }
13
- return false;
14
- }
15
- /**
16
- * Utility for creating event hooks
17
- *
18
- * @see https://vueuse.org/createEventHook
19
- *
20
- * @__NO_SIDE_EFFECTS__
21
- */
22
- function createEventHook() {
23
- const fns = /* @__PURE__ */ new Set();
24
- const off = (fn) => {
25
- fns.delete(fn);
26
- };
27
- const clear = () => {
28
- fns.clear();
29
- };
30
- const on = (fn) => {
31
- fns.add(fn);
32
- const offFn = () => off(fn);
33
- tryOnScopeDispose(offFn);
34
- return { off: offFn };
35
- };
36
- const trigger = (...args) => {
37
- return Promise.all(Array.from(fns).map((fn) => fn(...args)));
38
- };
39
- return {
40
- on,
41
- off,
42
- trigger,
43
- clear
44
- };
45
- }
46
- /**
47
- * Keep states in the global scope to be reusable across Vue instances.
48
- *
49
- * @see https://vueuse.org/createGlobalState
50
- * @param stateFactory A factory function to create the state
51
- *
52
- * @__NO_SIDE_EFFECTS__
53
- */
54
- function createGlobalState(stateFactory) {
55
- let initialized = false;
56
- let state;
57
- const scope = (0, vue.effectScope)(true);
58
- return ((...args) => {
59
- if (!initialized) {
60
- state = scope.run(() => stateFactory(...args));
61
- initialized = true;
62
- }
63
- return state;
64
- });
65
- }
66
- var localProvidedStateMap = /* @__PURE__ */ new WeakMap();
67
- /**
68
- * On the basis of `inject`, it is allowed to directly call inject to obtain the value after call provide in the same component.
69
- *
70
- * @example
71
- * ```ts
72
- * injectLocal('MyInjectionKey', 1)
73
- * const injectedValue = injectLocal('MyInjectionKey') // injectedValue === 1
74
- * ```
75
- *
76
- * @__NO_SIDE_EFFECTS__
77
- */
78
- var injectLocal = (...args) => {
79
- var _getCurrentInstance;
80
- const key = args[0];
81
- const instance = (_getCurrentInstance = (0, vue.getCurrentInstance)()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
82
- const owner = instance !== null && instance !== void 0 ? instance : (0, vue.getCurrentScope)();
83
- if (owner == null && !(0, vue.hasInjectionContext)()) throw new Error("injectLocal must be called in setup");
84
- if (owner && localProvidedStateMap.has(owner) && key in localProvidedStateMap.get(owner)) return localProvidedStateMap.get(owner)[key];
85
- return (0, vue.inject)(...args);
86
- };
87
- var isClient = typeof window !== "undefined" && typeof document !== "undefined";
88
- typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
89
- var isDef = (val) => typeof val !== "undefined";
90
- var notNullish = (val) => val != null;
91
- var toString = Object.prototype.toString;
92
- var isObject = (val) => toString.call(val) === "[object Object]";
93
- var noop = () => {};
94
- var isIOS = /* #__PURE__ */ getIsIOS();
95
- function getIsIOS() {
96
- var _window, _window2, _window3;
97
- return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
98
- }
99
- function createFilterWrapper(filter, fn) {
100
- function wrapper(...args) {
101
- return new Promise((resolve, reject) => {
102
- Promise.resolve(filter(() => fn.apply(this, args), {
103
- fn,
104
- thisArg: this,
105
- args
106
- })).then(resolve).catch(reject);
107
- });
108
- }
109
- if ("cancel" in filter) Object.assign(wrapper, {
110
- cancel: filter.cancel,
111
- flush: filter.flush,
112
- isPending: filter.isPending
113
- });
114
- return wrapper;
115
- }
116
- /**
117
- * Create an EventFilter that debounce the events
118
- */
119
- function debounceFilter(ms, options = {}) {
120
- let timer;
121
- let maxTimer;
122
- let lastRejector = noop;
123
- let lastResolve = noop;
124
- const _pending = (0, vue.shallowRef)(false);
125
- const _clearTimeout = (timer) => {
126
- clearTimeout(timer);
127
- lastRejector();
128
- lastRejector = noop;
129
- };
130
- let lastInvoker;
131
- const handler = (invoke) => {
132
- const duration = (0, vue.toValue)(ms);
133
- const maxDuration = (0, vue.toValue)(options.maxWait);
134
- if (timer) _clearTimeout(timer);
135
- if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
136
- if (maxTimer) {
137
- _clearTimeout(maxTimer);
138
- maxTimer = void 0;
139
- }
140
- _pending.value = false;
141
- return Promise.resolve(invoke());
142
- }
143
- _pending.value = true;
144
- return new Promise((resolve, reject) => {
145
- lastRejector = options.rejectOnCancel ? reject : resolve;
146
- lastResolve = resolve;
147
- lastInvoker = invoke;
148
- if (maxDuration && !maxTimer) maxTimer = setTimeout(() => {
149
- if (timer) _clearTimeout(timer);
150
- maxTimer = void 0;
151
- _pending.value = false;
152
- resolve(lastInvoker());
153
- }, maxDuration);
154
- timer = setTimeout(() => {
155
- if (maxTimer) _clearTimeout(maxTimer);
156
- maxTimer = void 0;
157
- _pending.value = false;
158
- resolve(invoke());
159
- }, duration);
160
- });
161
- };
162
- return Object.assign(handler, {
163
- cancel: () => {
164
- if (timer) {
165
- _clearTimeout(timer);
166
- timer = void 0;
167
- }
168
- if (maxTimer) {
169
- _clearTimeout(maxTimer);
170
- maxTimer = void 0;
171
- }
172
- _pending.value = false;
173
- lastResolve = noop;
174
- },
175
- flush: () => {
176
- if (_pending.value) {
177
- if (timer) {
178
- clearTimeout(timer);
179
- timer = void 0;
180
- }
181
- if (maxTimer) {
182
- clearTimeout(maxTimer);
183
- maxTimer = void 0;
184
- }
185
- _pending.value = false;
186
- const resolve = lastResolve;
187
- lastRejector = noop;
188
- lastResolve = noop;
189
- resolve(lastInvoker());
190
- }
191
- },
192
- isPending: (0, vue.shallowReadonly)(_pending)
193
- });
194
- }
195
- /**
196
- * Get a px value for SSR use, do not rely on this method outside of SSR as REM unit is assumed at 16px, which might not be the case on the client
197
- */
198
- function pxValue(px) {
199
- return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
200
- }
201
- function toArray(value) {
202
- return Array.isArray(value) ? value : [value];
203
- }
204
- function getLifeCycleTarget(target) {
205
- return target || (0, vue.getCurrentInstance)();
206
- }
207
- /**
208
- * Make a composable function usable with multiple Vue instances.
209
- *
210
- * @see https://vueuse.org/createSharedComposable
211
- *
212
- * @__NO_SIDE_EFFECTS__
213
- */
214
- function createSharedComposable(composable) {
215
- if (!isClient) return composable;
216
- let subscribers = 0;
217
- let state;
218
- let scope;
219
- const dispose = () => {
220
- subscribers -= 1;
221
- if (scope && subscribers <= 0) {
222
- scope.stop();
223
- state = void 0;
224
- scope = void 0;
225
- }
226
- };
227
- return ((...args) => {
228
- subscribers += 1;
229
- if (!scope) {
230
- scope = (0, vue.effectScope)(true);
231
- state = scope.run(() => composable(...args));
232
- }
233
- tryOnScopeDispose(dispose);
234
- return state;
235
- });
236
- }
237
- /**
238
- * Converts ref to reactive.
239
- *
240
- * @see https://vueuse.org/toReactive
241
- * @param objectRef A ref of object
242
- */
243
- function toReactive(objectRef) {
244
- if (!(0, vue.isRef)(objectRef)) return (0, vue.reactive)(objectRef);
245
- return (0, vue.reactive)(new Proxy({}, {
246
- get(_, p, receiver) {
247
- return (0, vue.unref)(Reflect.get(objectRef.value, p, receiver));
248
- },
249
- set(_, p, value) {
250
- if ((0, vue.isRef)(objectRef.value[p]) && !(0, vue.isRef)(value)) objectRef.value[p].value = value;
251
- else objectRef.value[p] = value;
252
- return true;
253
- },
254
- deleteProperty(_, p) {
255
- return Reflect.deleteProperty(objectRef.value, p);
256
- },
257
- has(_, p) {
258
- return Reflect.has(objectRef.value, p);
259
- },
260
- ownKeys() {
261
- return Object.keys(objectRef.value);
262
- },
263
- getOwnPropertyDescriptor() {
264
- return {
265
- enumerable: true,
266
- configurable: true
267
- };
268
- }
269
- }));
270
- }
271
- /**
272
- * Computed reactive object.
273
- */
274
- function reactiveComputed(fn) {
275
- return toReactive((0, vue.computed)(fn));
276
- }
277
- /**
278
- * Reactively omit fields from a reactive object
279
- *
280
- * @see https://vueuse.org/reactiveOmit
281
- */
282
- function reactiveOmit(obj, ...keys) {
283
- const flatKeys = keys.flat();
284
- const predicate = flatKeys[0];
285
- return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries((0, vue.toRefs)(obj)).filter(([k, v]) => !predicate((0, vue.toValue)(v), k))) : Object.fromEntries(Object.entries((0, vue.toRefs)(obj)).filter((e) => !flatKeys.includes(e[0]))));
286
- }
287
- /**
288
- * Create a ref which will be reset to the default value after some time.
289
- *
290
- * @see https://vueuse.org/refAutoReset
291
- * @param defaultValue The value which will be set.
292
- * @param afterMs A zero-or-greater delay in milliseconds.
293
- */
294
- function refAutoReset(defaultValue, afterMs = 1e4) {
295
- return (0, vue.customRef)((track, trigger) => {
296
- let value = (0, vue.toValue)(defaultValue);
297
- let timer;
298
- const resetAfter = () => setTimeout(() => {
299
- value = (0, vue.toValue)(defaultValue);
300
- trigger();
301
- }, (0, vue.toValue)(afterMs));
302
- tryOnScopeDispose(() => {
303
- clearTimeout(timer);
304
- });
305
- return {
306
- get() {
307
- track();
308
- return value;
309
- },
310
- set(newValue) {
311
- value = newValue;
312
- trigger();
313
- clearTimeout(timer);
314
- timer = resetAfter();
315
- }
316
- };
317
- });
318
- }
319
- /**
320
- * Debounce execution of a function.
321
- *
322
- * @see https://vueuse.org/useDebounceFn
323
- * @param fn A function to be executed after delay milliseconds debounced.
324
- * @param ms A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
325
- * @param options Options
326
- *
327
- * @return A new, debounced, function with isPending, cancel, and flush properties.
328
- */
329
- function useDebounceFn(fn, ms = 200, options = {}) {
330
- return createFilterWrapper(debounceFilter(ms, options), fn);
331
- }
332
- /**
333
- * Call onBeforeUnmount() if it's inside a component lifecycle, if not, do nothing
334
- *
335
- * @param fn
336
- * @param target
337
- */
338
- function tryOnBeforeUnmount(fn, target) {
339
- if (getLifeCycleTarget(target)) (0, vue.onBeforeUnmount)(fn, target);
340
- }
341
- /**
342
- * Call onMounted() if it's inside a component lifecycle, if not, just call the function
343
- *
344
- * @param fn
345
- * @param sync if set to false, it will run in the nextTick() of Vue
346
- * @param target
347
- */
348
- function tryOnMounted(fn, sync = true, target) {
349
- if (getLifeCycleTarget(target)) (0, vue.onMounted)(fn, target);
350
- else if (sync) fn();
351
- else (0, vue.nextTick)(fn);
352
- }
353
- /**
354
- * Wrapper for `setTimeout` with controls.
355
- *
356
- * @param cb
357
- * @param interval
358
- * @param options
359
- */
360
- function useTimeoutFn(cb, interval, options = {}) {
361
- const { immediate = true, immediateCallback = false } = options;
362
- const isPending = (0, vue.shallowRef)(false);
363
- let timer;
364
- function clear() {
365
- if (timer) {
366
- clearTimeout(timer);
367
- timer = void 0;
368
- }
369
- }
370
- function stop() {
371
- isPending.value = false;
372
- clear();
373
- }
374
- function start(...args) {
375
- if (immediateCallback) cb();
376
- clear();
377
- isPending.value = true;
378
- timer = setTimeout(() => {
379
- isPending.value = false;
380
- timer = void 0;
381
- cb(...args);
382
- }, (0, vue.toValue)(interval));
383
- }
384
- if (immediate) {
385
- isPending.value = true;
386
- if (isClient) start();
387
- }
388
- tryOnScopeDispose(stop);
389
- return {
390
- isPending: (0, vue.shallowReadonly)(isPending),
391
- start,
392
- stop
393
- };
394
- }
395
- /**
396
- * Shorthand for watching value with {immediate: true}
397
- *
398
- * @see https://vueuse.org/watchImmediate
399
- */
400
- function watchImmediate(source, cb, options) {
401
- return (0, vue.watch)(source, cb, {
402
- ...options,
403
- immediate: true
404
- });
405
- }
406
- /**
407
- * Shorthand for watching value with { once: true }
408
- *
409
- * @see https://vueuse.org/watchOnce
410
- */
411
- function watchOnce(source, cb, options) {
412
- return (0, vue.watch)(source, cb, {
413
- ...options,
414
- once: true
415
- });
416
- }
417
- //#endregion
418
- Object.defineProperty(exports, "createEventHook", {
419
- enumerable: true,
420
- get: function() {
421
- return createEventHook;
422
- }
423
- });
424
- Object.defineProperty(exports, "createGlobalState", {
425
- enumerable: true,
426
- get: function() {
427
- return createGlobalState;
428
- }
429
- });
430
- Object.defineProperty(exports, "createSharedComposable", {
431
- enumerable: true,
432
- get: function() {
433
- return createSharedComposable;
434
- }
435
- });
436
- Object.defineProperty(exports, "injectLocal", {
437
- enumerable: true,
438
- get: function() {
439
- return injectLocal;
440
- }
441
- });
442
- Object.defineProperty(exports, "isClient", {
443
- enumerable: true,
444
- get: function() {
445
- return isClient;
446
- }
447
- });
448
- Object.defineProperty(exports, "isDef", {
449
- enumerable: true,
450
- get: function() {
451
- return isDef;
452
- }
453
- });
454
- Object.defineProperty(exports, "isIOS", {
455
- enumerable: true,
456
- get: function() {
457
- return isIOS;
458
- }
459
- });
460
- Object.defineProperty(exports, "isObject", {
461
- enumerable: true,
462
- get: function() {
463
- return isObject;
464
- }
465
- });
466
- Object.defineProperty(exports, "notNullish", {
467
- enumerable: true,
468
- get: function() {
469
- return notNullish;
470
- }
471
- });
472
- Object.defineProperty(exports, "pxValue", {
473
- enumerable: true,
474
- get: function() {
475
- return pxValue;
476
- }
477
- });
478
- Object.defineProperty(exports, "reactiveComputed", {
479
- enumerable: true,
480
- get: function() {
481
- return reactiveComputed;
482
- }
483
- });
484
- Object.defineProperty(exports, "reactiveOmit", {
485
- enumerable: true,
486
- get: function() {
487
- return reactiveOmit;
488
- }
489
- });
490
- Object.defineProperty(exports, "refAutoReset", {
491
- enumerable: true,
492
- get: function() {
493
- return refAutoReset;
494
- }
495
- });
496
- Object.defineProperty(exports, "toArray", {
497
- enumerable: true,
498
- get: function() {
499
- return toArray;
500
- }
501
- });
502
- Object.defineProperty(exports, "tryOnBeforeUnmount", {
503
- enumerable: true,
504
- get: function() {
505
- return tryOnBeforeUnmount;
506
- }
507
- });
508
- Object.defineProperty(exports, "tryOnMounted", {
509
- enumerable: true,
510
- get: function() {
511
- return tryOnMounted;
512
- }
513
- });
514
- Object.defineProperty(exports, "tryOnScopeDispose", {
515
- enumerable: true,
516
- get: function() {
517
- return tryOnScopeDispose;
518
- }
519
- });
520
- Object.defineProperty(exports, "useDebounceFn", {
521
- enumerable: true,
522
- get: function() {
523
- return useDebounceFn;
524
- }
525
- });
526
- Object.defineProperty(exports, "useTimeoutFn", {
527
- enumerable: true,
528
- get: function() {
529
- return useTimeoutFn;
530
- }
531
- });
532
- Object.defineProperty(exports, "watchImmediate", {
533
- enumerable: true,
534
- get: function() {
535
- return watchImmediate;
536
- }
537
- });
538
- Object.defineProperty(exports, "watchOnce", {
539
- enumerable: true,
540
- get: function() {
541
- return watchOnce;
542
- }
543
- });