@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,141 +0,0 @@
1
- import { t as usePrimitiveElement } from "./usePrimitiveElement.js";
2
- import { t as VisuallyHidden_default } from "./VisuallyHidden.js";
3
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderList, watch } from "vue";
4
- //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js
5
- var VisuallyHiddenInputBubble_default = /* @__PURE__ */ defineComponent({
6
- inheritAttrs: false,
7
- __name: "VisuallyHiddenInputBubble",
8
- props: {
9
- name: {
10
- type: String,
11
- required: true
12
- },
13
- value: {
14
- type: null,
15
- required: true
16
- },
17
- checked: {
18
- type: Boolean,
19
- required: false,
20
- default: void 0
21
- },
22
- required: {
23
- type: Boolean,
24
- required: false
25
- },
26
- disabled: {
27
- type: Boolean,
28
- required: false
29
- },
30
- feature: {
31
- type: String,
32
- required: false,
33
- default: "fully-hidden"
34
- }
35
- },
36
- setup(__props) {
37
- const props = __props;
38
- const { primitiveElement, currentElement } = usePrimitiveElement();
39
- const valueState = computed(() => props.checked ?? props.value);
40
- watch(valueState, (cur, prev) => {
41
- if (!currentElement.value) return;
42
- const input = currentElement.value;
43
- const inputProto = window.HTMLInputElement.prototype;
44
- const setValue = Object.getOwnPropertyDescriptor(inputProto, "value").set;
45
- if (setValue && cur !== prev) {
46
- const inputEvent = new Event("input", { bubbles: true });
47
- const changeEvent = new Event("change", { bubbles: true });
48
- setValue.call(input, cur);
49
- input.dispatchEvent(inputEvent);
50
- input.dispatchEvent(changeEvent);
51
- }
52
- });
53
- return (_ctx, _cache) => {
54
- return openBlock(), createBlock(VisuallyHidden_default, mergeProps({
55
- ref_key: "primitiveElement",
56
- ref: primitiveElement
57
- }, {
58
- ...props,
59
- ..._ctx.$attrs
60
- }, { as: "input" }), null, 16);
61
- };
62
- }
63
- });
64
- //#endregion
65
- //#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js
66
- var VisuallyHiddenInput_default = /* @__PURE__ */ defineComponent({
67
- inheritAttrs: false,
68
- __name: "VisuallyHiddenInput",
69
- props: {
70
- name: {
71
- type: String,
72
- required: true
73
- },
74
- value: {
75
- type: null,
76
- required: true
77
- },
78
- checked: {
79
- type: Boolean,
80
- required: false,
81
- default: void 0
82
- },
83
- required: {
84
- type: Boolean,
85
- required: false
86
- },
87
- disabled: {
88
- type: Boolean,
89
- required: false
90
- },
91
- feature: {
92
- type: String,
93
- required: false,
94
- default: "fully-hidden"
95
- }
96
- },
97
- setup(__props) {
98
- const props = __props;
99
- const isFormArrayEmptyAndRequired = computed(() => typeof props.value === "object" && Array.isArray(props.value) && props.value.length === 0 && props.required);
100
- const parsedValue = computed(() => {
101
- if (typeof props.value === "string" || typeof props.value === "number" || typeof props.value === "boolean" || props.value === null || props.value === void 0) return [{
102
- name: props.name,
103
- value: props.value
104
- }];
105
- else if (typeof props.value === "object" && Array.isArray(props.value)) return props.value.flatMap((obj, index) => {
106
- if (typeof obj === "object") return Object.entries(obj).map(([key, value]) => ({
107
- name: `${props.name}[${index}][${key}]`,
108
- value
109
- }));
110
- else return {
111
- name: `${props.name}[${index}]`,
112
- value: obj
113
- };
114
- });
115
- else if (props.value !== null && typeof props.value === "object" && !Array.isArray(props.value)) return Object.entries(props.value).map(([key, value]) => ({
116
- name: `${props.name}[${key}]`,
117
- value
118
- }));
119
- return [];
120
- });
121
- return (_ctx, _cache) => {
122
- return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" We render single input if it's required "), isFormArrayEmptyAndRequired.value ? (openBlock(), createBlock(VisuallyHiddenInputBubble_default, mergeProps({ key: _ctx.name }, {
123
- ...props,
124
- ..._ctx.$attrs
125
- }, {
126
- name: _ctx.name,
127
- value: _ctx.value
128
- }), null, 16, ["name", "value"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(parsedValue.value, (parsed) => {
129
- return openBlock(), createBlock(VisuallyHiddenInputBubble_default, mergeProps({ key: parsed.name }, { ref_for: true }, {
130
- ...props,
131
- ..._ctx.$attrs
132
- }, {
133
- name: parsed.name,
134
- value: parsed.value
135
- }), null, 16, ["name", "value"]);
136
- }), 128))], 2112);
137
- };
138
- }
139
- });
140
- //#endregion
141
- export { VisuallyHiddenInput_default as t };
@@ -1,64 +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
- export { snapValueToStep as n, clamp as t };
@@ -1,16 +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
- export { clsx as t };
@@ -1,32 +0,0 @@
1
- import { inject, provide } from "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 = 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
- provide(injectionKey, contextValue);
27
- return contextValue;
28
- };
29
- return [injectContext, provideContext];
30
- }
31
- //#endregion
32
- export { createContext as t };
@@ -1,29 +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
- export { defu as t };
@@ -1,418 +0,0 @@
1
- import { computed, customRef, effectScope, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, isRef, nextTick, onBeforeUnmount, onMounted, onScopeDispose, reactive, shallowReadonly, shallowRef, toRefs, toValue, unref, watch } from "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 (getCurrentScope()) {
10
- 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 = 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 = getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
82
- const owner = instance !== null && instance !== void 0 ? instance : getCurrentScope();
83
- if (owner == null && !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 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 = 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 = toValue(ms);
133
- const maxDuration = 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: 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 || 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 = 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 (!isRef(objectRef)) return reactive(objectRef);
245
- return reactive(new Proxy({}, {
246
- get(_, p, receiver) {
247
- return unref(Reflect.get(objectRef.value, p, receiver));
248
- },
249
- set(_, p, value) {
250
- if (isRef(objectRef.value[p]) && !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(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(toRefs(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(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 customRef((track, trigger) => {
296
- let value = toValue(defaultValue);
297
- let timer;
298
- const resetAfter = () => setTimeout(() => {
299
- value = toValue(defaultValue);
300
- trigger();
301
- }, 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)) 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)) onMounted(fn, target);
350
- else if (sync) fn();
351
- else 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 = 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
- }, toValue(interval));
383
- }
384
- if (immediate) {
385
- isPending.value = true;
386
- if (isClient) start();
387
- }
388
- tryOnScopeDispose(stop);
389
- return {
390
- isPending: 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 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 watch(source, cb, {
413
- ...options,
414
- once: true
415
- });
416
- }
417
- //#endregion
418
- export { tryOnScopeDispose as _, isClient as a, watchImmediate as b, isObject as c, reactiveComputed as d, reactiveOmit as f, tryOnMounted as g, tryOnBeforeUnmount as h, injectLocal as i, notNullish as l, toArray as m, createGlobalState as n, isDef as o, refAutoReset as p, createSharedComposable as r, isIOS as s, createEventHook as t, pxValue as u, useDebounceFn as v, watchOnce as x, useTimeoutFn as y };