@youcan/celeste 0.9.3 → 0.10.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 (534) hide show
  1. package/dist/celeste.css +1030 -634
  2. package/dist/cjs/bar-chart.cjs +2 -0
  3. package/dist/cjs/chart-card.cjs +2 -0
  4. package/dist/cjs/chart-legend.cjs +2 -0
  5. package/dist/cjs/chart-plot.cjs +2 -0
  6. package/dist/cjs/chart-tooltip.cjs +25 -0
  7. package/dist/cjs/chart.cjs +38 -0
  8. package/dist/cjs/chunks/BubbleSelect.cjs +5 -6
  9. package/dist/cjs/chunks/CollapsibleRoot.cjs +3 -4
  10. package/dist/cjs/chunks/Collection.cjs +3 -4
  11. package/dist/cjs/chunks/ComboboxContent.cjs +7 -7
  12. package/dist/cjs/chunks/ComboboxGroup.cjs +4 -5
  13. package/dist/cjs/chunks/ComboboxInput.cjs +3 -4
  14. package/dist/cjs/chunks/ComboboxItem.cjs +7 -7
  15. package/dist/cjs/chunks/ComboboxLabel.cjs +1 -2
  16. package/dist/cjs/chunks/ComboboxRoot.cjs +17 -14
  17. package/dist/cjs/chunks/ComboboxSeparator.cjs +1 -2
  18. package/dist/cjs/chunks/ConfigProvider.cjs +2 -2
  19. package/dist/cjs/chunks/DialogClose.cjs +1 -2
  20. package/dist/cjs/chunks/DialogDescription.cjs +1 -2
  21. package/dist/cjs/chunks/DialogPortal.cjs +10 -10
  22. package/dist/cjs/chunks/DialogRoot.cjs +3 -4
  23. package/dist/cjs/chunks/DialogTitle.cjs +1 -2
  24. package/dist/cjs/chunks/DialogTrigger.cjs +1 -2
  25. package/dist/cjs/chunks/DismissableLayer.cjs +5 -5
  26. package/dist/cjs/chunks/DropdownMenuPortal.cjs +2 -3
  27. package/dist/cjs/chunks/DropdownMenuRoot.cjs +3 -4
  28. package/dist/cjs/chunks/FocusScope.cjs +7 -7
  29. package/dist/cjs/chunks/Label.cjs +1 -2
  30. package/dist/cjs/chunks/MenuAnchor.cjs +1 -2
  31. package/dist/cjs/chunks/MenuContentImpl.cjs +4 -4
  32. package/dist/cjs/chunks/MenuGroup.cjs +2 -3
  33. package/dist/cjs/chunks/MenuItemImpl.cjs +1 -2
  34. package/dist/cjs/chunks/MenuRoot.cjs +8 -8
  35. package/dist/cjs/chunks/MenuSub.cjs +3 -4
  36. package/dist/cjs/chunks/PaginationRoot.cjs +3 -4
  37. package/dist/cjs/chunks/PinInputRoot.cjs +3 -4
  38. package/dist/cjs/chunks/PopoverRoot.cjs +3 -4
  39. package/dist/cjs/chunks/PopperAnchor.cjs +1 -2
  40. package/dist/cjs/chunks/PopperArrow.cjs +2 -3
  41. package/dist/cjs/chunks/PopperContent.cjs +263 -298
  42. package/dist/cjs/chunks/PopperRoot.cjs +2 -3
  43. package/dist/cjs/chunks/Presence.cjs +7 -7
  44. package/dist/cjs/chunks/Primitive.cjs +5 -6
  45. package/dist/cjs/chunks/ProgressIndicator.cjs +4 -5
  46. package/dist/cjs/chunks/RadioGroupRoot.cjs +3 -4
  47. package/dist/cjs/chunks/RovingFocusGroup.cjs +6 -6
  48. package/dist/cjs/chunks/RovingFocusItem.cjs +1 -2
  49. package/dist/cjs/chunks/SelectGroup.cjs +2 -3
  50. package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +9 -9
  51. package/dist/cjs/chunks/TabsRoot.cjs +4 -5
  52. package/dist/cjs/chunks/Teleport.cjs +2 -3
  53. package/dist/cjs/chunks/ToggleGroupRoot.cjs +4 -5
  54. package/dist/cjs/chunks/TooltipProvider.cjs +2 -3
  55. package/dist/cjs/chunks/TooltipRoot.cjs +5 -5
  56. package/dist/cjs/chunks/VisuallyHidden.cjs +1 -2
  57. package/dist/cjs/chunks/VisuallyHiddenInput.cjs +4 -4
  58. package/dist/cjs/chunks/alert.cjs +17 -12
  59. package/dist/cjs/chunks/alpha-slider.cjs +1 -4
  60. package/dist/cjs/chunks/badge.cjs +18 -13
  61. package/dist/cjs/chunks/bar-chart.cjs +10322 -0
  62. package/dist/cjs/chunks/button.cjs +12 -7
  63. package/dist/cjs/chunks/calendar.cjs +39 -33
  64. package/dist/cjs/chunks/chart-card.cjs +69 -0
  65. package/dist/cjs/chunks/chart-legend.cjs +88 -0
  66. package/dist/cjs/chunks/chart-plot.cjs +92 -0
  67. package/dist/cjs/chunks/checkbox-card.cjs +15 -10
  68. package/dist/cjs/chunks/checkbox-label.cjs +11 -6
  69. package/dist/cjs/chunks/checkbox.cjs +18 -12
  70. package/dist/cjs/chunks/clamp.cjs +1 -1
  71. package/dist/cjs/chunks/collapsible-content.cjs +9 -4
  72. package/dist/cjs/chunks/collapsible-trigger.cjs +1 -2
  73. package/dist/cjs/chunks/collapsible.cjs +0 -1
  74. package/dist/cjs/chunks/color-area.cjs +3 -4
  75. package/dist/cjs/chunks/color-picker.cjs +69 -42
  76. package/dist/cjs/chunks/color-swatch.cjs +4 -5
  77. package/dist/cjs/chunks/combobox-anchor.cjs +11 -5
  78. package/dist/cjs/chunks/combobox-empty.cjs +10 -5
  79. package/dist/cjs/chunks/combobox-group.cjs +11 -6
  80. package/dist/cjs/chunks/combobox-input.cjs +11 -6
  81. package/dist/cjs/chunks/combobox-item.cjs +23 -17
  82. package/dist/cjs/chunks/combobox-list.cjs +14 -8
  83. package/dist/cjs/chunks/combobox-root.cjs +2 -3
  84. package/dist/cjs/chunks/combobox-separator.cjs +9 -4
  85. package/dist/cjs/chunks/combobox-trigger.cjs +14 -8
  86. package/dist/cjs/chunks/combobox.cjs +14 -14
  87. package/dist/cjs/chunks/compact-button.cjs +13 -8
  88. package/dist/cjs/chunks/components.cjs +20 -4
  89. package/dist/cjs/chunks/content-divider.cjs +14 -9
  90. package/dist/cjs/chunks/counter-input.cjs +145 -111
  91. package/dist/cjs/chunks/createContext.cjs +1 -2
  92. package/dist/cjs/chunks/date-picker.cjs +14 -9
  93. package/dist/cjs/chunks/digit-input-group.cjs +12 -6
  94. package/dist/cjs/chunks/digit-input-slot.cjs +13 -7
  95. package/dist/cjs/chunks/digit-input.cjs +13 -7
  96. package/dist/cjs/chunks/dist.cjs +120 -230
  97. package/dist/cjs/chunks/dist2.cjs +459 -15492
  98. package/dist/cjs/chunks/dist3.cjs +16177 -0
  99. package/dist/cjs/chunks/dropdown-menu-content.cjs +15 -9
  100. package/dist/cjs/chunks/dropdown-menu-group.cjs +3 -4
  101. package/dist/cjs/chunks/dropdown-menu-item.cjs +13 -7
  102. package/dist/cjs/chunks/dropdown-menu-label.cjs +13 -7
  103. package/dist/cjs/chunks/dropdown-menu-separator.cjs +11 -6
  104. package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +13 -7
  105. package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +13 -7
  106. package/dist/cjs/chunks/dropdown-menu-sub.cjs +2 -3
  107. package/dist/cjs/chunks/dropdown-menu-trigger.cjs +3 -4
  108. package/dist/cjs/chunks/dropdown-menu.cjs +11 -5
  109. package/dist/cjs/chunks/extra-settings.cjs +3 -7
  110. package/dist/cjs/chunks/fancy-button.cjs +12 -7
  111. package/dist/cjs/chunks/file-upload-area.cjs +24 -17
  112. package/dist/cjs/chunks/getActiveElement.cjs +1 -1
  113. package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +1 -1
  114. package/dist/cjs/chunks/hint-text.cjs +13 -8
  115. package/dist/cjs/chunks/hue-slider.cjs +3 -6
  116. package/dist/cjs/chunks/isValueEqualOrExist.cjs +1 -1
  117. package/dist/cjs/chunks/label2.cjs +15 -10
  118. package/dist/cjs/chunks/link-bubble.cjs +12 -15
  119. package/dist/cjs/chunks/link-button.cjs +14 -9
  120. package/dist/cjs/chunks/menus.cjs +236 -42
  121. package/dist/cjs/chunks/modal-body.cjs +9 -4
  122. package/dist/cjs/chunks/modal-close.cjs +0 -1
  123. package/dist/cjs/chunks/modal-content.cjs +18 -6
  124. package/dist/cjs/chunks/modal-footer.cjs +9 -4
  125. package/dist/cjs/chunks/modal-header.cjs +18 -13
  126. package/dist/cjs/chunks/modal-trigger.cjs +0 -1
  127. package/dist/cjs/chunks/modal.cjs +0 -1
  128. package/dist/cjs/chunks/nullish.cjs +1 -1
  129. package/dist/cjs/chunks/ohash.D__AXeF1.cjs +1 -1
  130. package/dist/cjs/chunks/pagination-content.cjs +14 -9
  131. package/dist/cjs/chunks/pagination-ellipsis.cjs +12 -7
  132. package/dist/cjs/chunks/pagination-first.cjs +11 -5
  133. package/dist/cjs/chunks/pagination-item.cjs +10 -5
  134. package/dist/cjs/chunks/pagination-last.cjs +11 -5
  135. package/dist/cjs/chunks/pagination-next.cjs +11 -5
  136. package/dist/cjs/chunks/pagination-previous.cjs +11 -5
  137. package/dist/cjs/chunks/pagination.cjs +12 -6
  138. package/dist/cjs/chunks/popover-content.cjs +27 -21
  139. package/dist/cjs/chunks/popover-trigger.cjs +3 -4
  140. package/dist/cjs/chunks/popover.cjs +0 -1
  141. package/dist/cjs/chunks/progress-bar.cjs +14 -9
  142. package/dist/cjs/chunks/progress-circle.cjs +10 -5
  143. package/dist/cjs/chunks/radio-group-card.cjs +15 -10
  144. package/dist/cjs/chunks/radio-group-item.cjs +15 -9
  145. package/dist/cjs/chunks/radio-group-label.cjs +11 -6
  146. package/dist/cjs/chunks/radio-group.cjs +9 -3
  147. package/dist/cjs/chunks/range-calendar.cjs +56 -47
  148. package/dist/cjs/chunks/range-picker.cjs +19 -14
  149. package/dist/cjs/chunks/rich-editor.cjs +1130 -262
  150. package/dist/cjs/chunks/{chunk.cjs → rolldown-runtime.cjs} +8 -1
  151. package/dist/cjs/chunks/scroll-area.cjs +13 -8
  152. package/dist/cjs/chunks/scroll-bar.cjs +43 -29
  153. package/dist/cjs/chunks/segmented-control-item.cjs +12 -7
  154. package/dist/cjs/chunks/segmented-control.cjs +11 -5
  155. package/dist/cjs/chunks/select-content.cjs +16 -10
  156. package/dist/cjs/chunks/select-group.cjs +0 -1
  157. package/dist/cjs/chunks/select-icon.cjs +9 -4
  158. package/dist/cjs/chunks/select-item.cjs +17 -11
  159. package/dist/cjs/chunks/select-label.cjs +10 -5
  160. package/dist/cjs/chunks/select-separator.cjs +10 -5
  161. package/dist/cjs/chunks/select-trigger.cjs +12 -7
  162. package/dist/cjs/chunks/select-value.cjs +10 -5
  163. package/dist/cjs/chunks/select.cjs +9 -3
  164. package/dist/cjs/chunks/sheet-close.cjs +9 -4
  165. package/dist/cjs/chunks/sheet-content.cjs +13 -7
  166. package/dist/cjs/chunks/sheet-description.cjs +11 -6
  167. package/dist/cjs/chunks/sheet-footer.cjs +9 -4
  168. package/dist/cjs/chunks/sheet-header.cjs +9 -4
  169. package/dist/cjs/chunks/sheet-title.cjs +11 -6
  170. package/dist/cjs/chunks/sheet-trigger.cjs +0 -1
  171. package/dist/cjs/chunks/sheet.cjs +0 -1
  172. package/dist/cjs/chunks/sidebar-content.cjs +7 -2
  173. package/dist/cjs/chunks/sidebar-element.cjs +8 -3
  174. package/dist/cjs/chunks/sidebar-footer.cjs +7 -2
  175. package/dist/cjs/chunks/sidebar-group-content.cjs +9 -4
  176. package/dist/cjs/chunks/sidebar-group-label.cjs +9 -4
  177. package/dist/cjs/chunks/sidebar-group.cjs +7 -2
  178. package/dist/cjs/chunks/sidebar-header.cjs +7 -2
  179. package/dist/cjs/chunks/sidebar-menu-action.cjs +10 -5
  180. package/dist/cjs/chunks/sidebar-menu-badge.cjs +11 -6
  181. package/dist/cjs/chunks/sidebar-menu-button.cjs +11 -6
  182. package/dist/cjs/chunks/sidebar-menu-item.cjs +7 -2
  183. package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +12 -7
  184. package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +7 -2
  185. package/dist/cjs/chunks/sidebar-menu-sub.cjs +7 -2
  186. package/dist/cjs/chunks/sidebar-menu.cjs +7 -2
  187. package/dist/cjs/chunks/sidebar-provider.cjs +14 -8
  188. package/dist/cjs/chunks/sidebar-trigger.cjs +10 -5
  189. package/dist/cjs/chunks/sidebar.cjs +11 -6
  190. package/dist/cjs/chunks/slider.cjs +38 -24
  191. package/dist/cjs/chunks/social-button.cjs +5 -6
  192. package/dist/cjs/chunks/sonner-alert.cjs +2 -3
  193. package/dist/cjs/chunks/sonner.cjs +4 -4
  194. package/dist/cjs/chunks/status-badge.cjs +13 -8
  195. package/dist/cjs/chunks/switch.cjs +13 -7
  196. package/dist/cjs/chunks/tab-menu-content.cjs +10 -5
  197. package/dist/cjs/chunks/tab-menu-item.cjs +12 -6
  198. package/dist/cjs/chunks/tab-menu-list.cjs +10 -5
  199. package/dist/cjs/chunks/tab-menu.cjs +2 -3
  200. package/dist/cjs/chunks/table-body.cjs +9 -4
  201. package/dist/cjs/chunks/table-caption.cjs +9 -4
  202. package/dist/cjs/chunks/table-cell.cjs +9 -4
  203. package/dist/cjs/chunks/table-footer.cjs +9 -4
  204. package/dist/cjs/chunks/table-head.cjs +9 -4
  205. package/dist/cjs/chunks/table-header.cjs +7 -2
  206. package/dist/cjs/chunks/table-row.cjs +9 -4
  207. package/dist/cjs/chunks/table.cjs +9 -4
  208. package/dist/cjs/chunks/table2.cjs +9 -4
  209. package/dist/cjs/chunks/tag.cjs +16 -11
  210. package/dist/cjs/chunks/text-input-affix.cjs +9 -4
  211. package/dist/cjs/chunks/text-input-button.cjs +9 -4
  212. package/dist/cjs/chunks/text-input.cjs +10 -10
  213. package/dist/cjs/chunks/textarea.cjs +15 -10
  214. package/dist/cjs/chunks/tooltip-content.cjs +38 -32
  215. package/dist/cjs/chunks/tooltip-provider.cjs +0 -1
  216. package/dist/cjs/chunks/tooltip-root.cjs +2 -2
  217. package/dist/cjs/chunks/tooltip-trigger.cjs +1 -2
  218. package/dist/cjs/chunks/tooltip.cjs +17 -11
  219. package/dist/cjs/chunks/use-color-model.cjs +7 -12
  220. package/dist/cjs/chunks/useArrowNavigation.cjs +1 -1
  221. package/dist/cjs/chunks/useCalendar.cjs +669 -598
  222. package/dist/cjs/chunks/useComposing.cjs +1 -2
  223. package/dist/cjs/chunks/useDirection.cjs +1 -2
  224. package/dist/cjs/chunks/useEmitAsProps.cjs +1 -2
  225. package/dist/cjs/chunks/useFocusGuards.cjs +1 -2
  226. package/dist/cjs/chunks/useFormControl.cjs +2 -3
  227. package/dist/cjs/chunks/useForwardExpose.cjs +2 -3
  228. package/dist/cjs/chunks/useForwardProps.cjs +1 -2
  229. package/dist/cjs/chunks/useForwardPropsEmits.cjs +1 -2
  230. package/dist/cjs/chunks/useForwardScopeId.cjs +1 -2
  231. package/dist/cjs/chunks/useHideOthers.cjs +4 -5
  232. package/dist/cjs/chunks/useId.cjs +3 -3
  233. package/dist/cjs/chunks/useKbd.cjs +1 -1
  234. package/dist/cjs/chunks/useLocale.cjs +1 -2
  235. package/dist/cjs/chunks/useNonce.cjs +1 -2
  236. package/dist/cjs/chunks/usePrimitiveElement.cjs +2 -3
  237. package/dist/cjs/chunks/useSize.cjs +2 -3
  238. package/dist/cjs/chunks/useTypeahead.cjs +1 -1
  239. package/dist/cjs/chunks/utils.cjs +1 -1
  240. package/dist/cjs/chunks/utils2.cjs +1 -1
  241. package/dist/cjs/chunks/utils3.cjs +1 -1
  242. package/dist/cjs/color.cjs +1 -3
  243. package/dist/cjs/command-group.cjs +11 -6
  244. package/dist/cjs/command-input.cjs +12 -6
  245. package/dist/cjs/command-item.cjs +10 -4
  246. package/dist/cjs/command-list.cjs +10 -4
  247. package/dist/cjs/command-root.cjs +10 -4
  248. package/dist/cjs/command-separator.cjs +9 -4
  249. package/dist/cjs/config.cjs +0 -1
  250. package/dist/cjs/index.cjs +21 -1
  251. package/dist/cjs/use-chart-motion.cjs +17 -0
  252. package/dist/cjs/use-delegated-props.cjs +0 -1
  253. package/dist/cjs/use-locale.cjs +8 -0
  254. package/dist/cjs/use-sidebar.cjs +1 -1
  255. package/dist/cjs/use-user-select.cjs +0 -1
  256. package/dist/components/chart/bar-chart.d.ts +39 -0
  257. package/dist/components/chart/chart-card.d.ts +26 -0
  258. package/dist/components/chart/chart-legend.d.ts +32 -0
  259. package/dist/components/chart/chart-plot.d.ts +35 -0
  260. package/dist/components/chart/chart-tooltip.d.ts +11 -0
  261. package/dist/components/chart/index.d.ts +9 -0
  262. package/dist/components/color-picker/hue-slider.d.ts +1 -4
  263. package/dist/components/digit-input/digit-input.d.ts +1 -1
  264. package/dist/components/index.d.ts +1 -0
  265. package/dist/components/popover/popover-content.d.ts +1 -1
  266. package/dist/components/progress/progress-bar.d.ts +1 -1
  267. package/dist/components/text-input/text-input.d.ts +1 -0
  268. package/dist/composables/index.d.ts +2 -0
  269. package/dist/composables/use-chart-motion.d.ts +7 -0
  270. package/dist/composables/use-locale.d.ts +2 -0
  271. package/dist/es/bar-chart.js +2 -0
  272. package/dist/es/chart-card.js +2 -0
  273. package/dist/es/chart-legend.js +2 -0
  274. package/dist/es/chart-plot.js +2 -0
  275. package/dist/es/chart-tooltip.js +24 -0
  276. package/dist/es/chart.js +33 -0
  277. package/dist/es/chunks/BubbleSelect.js +5 -5
  278. package/dist/es/chunks/CollapsibleRoot.js +3 -3
  279. package/dist/es/chunks/Collection.js +3 -3
  280. package/dist/es/chunks/ComboboxContent.js +9 -8
  281. package/dist/es/chunks/ComboboxGroup.js +4 -4
  282. package/dist/es/chunks/ComboboxInput.js +3 -3
  283. package/dist/es/chunks/ComboboxItem.js +7 -6
  284. package/dist/es/chunks/ComboboxLabel.js +1 -1
  285. package/dist/es/chunks/ComboboxRoot.js +15 -11
  286. package/dist/es/chunks/ComboboxSeparator.js +1 -1
  287. package/dist/es/chunks/ConfigProvider.js +2 -2
  288. package/dist/es/chunks/DialogClose.js +1 -1
  289. package/dist/es/chunks/DialogDescription.js +1 -1
  290. package/dist/es/chunks/DialogPortal.js +10 -9
  291. package/dist/es/chunks/DialogRoot.js +3 -3
  292. package/dist/es/chunks/DialogTitle.js +1 -1
  293. package/dist/es/chunks/DialogTrigger.js +1 -1
  294. package/dist/es/chunks/DismissableLayer.js +5 -4
  295. package/dist/es/chunks/DropdownMenuPortal.js +2 -2
  296. package/dist/es/chunks/DropdownMenuRoot.js +3 -3
  297. package/dist/es/chunks/FocusScope.js +7 -6
  298. package/dist/es/chunks/Label.js +1 -1
  299. package/dist/es/chunks/MenuAnchor.js +1 -1
  300. package/dist/es/chunks/MenuContentImpl.js +5 -4
  301. package/dist/es/chunks/MenuGroup.js +2 -2
  302. package/dist/es/chunks/MenuItemImpl.js +1 -1
  303. package/dist/es/chunks/MenuRoot.js +6 -5
  304. package/dist/es/chunks/MenuSub.js +3 -3
  305. package/dist/es/chunks/PaginationRoot.js +3 -3
  306. package/dist/es/chunks/PinInputRoot.js +3 -3
  307. package/dist/es/chunks/PopoverRoot.js +3 -3
  308. package/dist/es/chunks/PopperAnchor.js +1 -1
  309. package/dist/es/chunks/PopperArrow.js +3 -3
  310. package/dist/es/chunks/PopperContent.js +261 -321
  311. package/dist/es/chunks/PopperRoot.js +2 -2
  312. package/dist/es/chunks/Presence.js +6 -5
  313. package/dist/es/chunks/Primitive.js +5 -5
  314. package/dist/es/chunks/ProgressIndicator.js +4 -4
  315. package/dist/es/chunks/RadioGroupRoot.js +3 -3
  316. package/dist/es/chunks/RovingFocusGroup.js +6 -5
  317. package/dist/es/chunks/RovingFocusItem.js +1 -1
  318. package/dist/es/chunks/SelectGroup.js +2 -2
  319. package/dist/es/chunks/SelectItemAlignedPosition.js +10 -9
  320. package/dist/es/chunks/TabsRoot.js +4 -4
  321. package/dist/es/chunks/Teleport.js +2 -2
  322. package/dist/es/chunks/ToggleGroupRoot.js +4 -4
  323. package/dist/es/chunks/TooltipProvider.js +2 -2
  324. package/dist/es/chunks/TooltipRoot.js +5 -4
  325. package/dist/es/chunks/VisuallyHidden.js +1 -1
  326. package/dist/es/chunks/VisuallyHiddenInput.js +4 -3
  327. package/dist/es/chunks/alert.js +16 -10
  328. package/dist/es/chunks/alpha-slider.js +1 -3
  329. package/dist/es/chunks/badge.js +17 -11
  330. package/dist/es/chunks/bar-chart.js +10314 -0
  331. package/dist/es/chunks/button.js +11 -5
  332. package/dist/es/chunks/calendar.js +39 -32
  333. package/dist/es/chunks/chart-card.js +63 -0
  334. package/dist/es/chunks/chart-legend.js +82 -0
  335. package/dist/es/chunks/chart-plot.js +87 -0
  336. package/dist/es/chunks/checkbox-card.js +14 -8
  337. package/dist/es/chunks/checkbox-label.js +10 -4
  338. package/dist/es/chunks/checkbox.js +18 -11
  339. package/dist/es/chunks/clamp.js +1 -1
  340. package/dist/es/chunks/collapsible-content.js +9 -3
  341. package/dist/es/chunks/collapsible-trigger.js +1 -1
  342. package/dist/es/chunks/color-area.js +7 -5
  343. package/dist/es/chunks/color-picker.js +68 -40
  344. package/dist/es/chunks/color-swatch.js +3 -3
  345. package/dist/es/chunks/combobox-anchor.js +11 -4
  346. package/dist/es/chunks/combobox-empty.js +9 -3
  347. package/dist/es/chunks/combobox-group.js +10 -4
  348. package/dist/es/chunks/combobox-input.js +10 -4
  349. package/dist/es/chunks/combobox-item.js +22 -15
  350. package/dist/es/chunks/combobox-list.js +13 -6
  351. package/dist/es/chunks/combobox-root.js +1 -1
  352. package/dist/es/chunks/combobox-separator.js +8 -2
  353. package/dist/es/chunks/combobox-trigger.js +13 -6
  354. package/dist/es/chunks/combobox.js +13 -12
  355. package/dist/es/chunks/compact-button.js +12 -6
  356. package/dist/es/chunks/components.js +19 -3
  357. package/dist/es/chunks/content-divider.js +14 -8
  358. package/dist/es/chunks/counter-input.js +141 -106
  359. package/dist/es/chunks/createContext.js +1 -1
  360. package/dist/es/chunks/date-picker.js +13 -7
  361. package/dist/es/chunks/digit-input-group.js +11 -4
  362. package/dist/es/chunks/digit-input-slot.js +12 -5
  363. package/dist/es/chunks/digit-input.js +12 -5
  364. package/dist/es/chunks/dist.js +90 -205
  365. package/dist/es/chunks/dist2.js +434 -15275
  366. package/dist/es/chunks/dist3.js +15890 -0
  367. package/dist/es/chunks/dropdown-menu-content.js +14 -7
  368. package/dist/es/chunks/dropdown-menu-group.js +2 -2
  369. package/dist/es/chunks/dropdown-menu-item.js +12 -5
  370. package/dist/es/chunks/dropdown-menu-label.js +12 -5
  371. package/dist/es/chunks/dropdown-menu-separator.js +10 -4
  372. package/dist/es/chunks/dropdown-menu-sub-content.js +12 -5
  373. package/dist/es/chunks/dropdown-menu-sub-trigger.js +12 -5
  374. package/dist/es/chunks/dropdown-menu-sub.js +2 -2
  375. package/dist/es/chunks/dropdown-menu-trigger.js +2 -2
  376. package/dist/es/chunks/dropdown-menu.js +10 -3
  377. package/dist/es/chunks/extra-settings.js +2 -5
  378. package/dist/es/chunks/fancy-button.js +11 -5
  379. package/dist/es/chunks/file-upload-area.js +23 -15
  380. package/dist/es/chunks/getActiveElement.js +1 -1
  381. package/dist/es/chunks/handleAndDispatchCustomEvent.js +1 -1
  382. package/dist/es/chunks/hint-text.js +12 -6
  383. package/dist/es/chunks/hue-slider.js +3 -5
  384. package/dist/es/chunks/isValueEqualOrExist.js +1 -1
  385. package/dist/es/chunks/label2.js +14 -8
  386. package/dist/es/chunks/link-bubble.js +11 -13
  387. package/dist/es/chunks/link-button.js +13 -7
  388. package/dist/es/chunks/menus.js +236 -41
  389. package/dist/es/chunks/modal-body.js +8 -2
  390. package/dist/es/chunks/modal-content.js +17 -4
  391. package/dist/es/chunks/modal-footer.js +8 -2
  392. package/dist/es/chunks/modal-header.js +17 -11
  393. package/dist/es/chunks/nullish.js +1 -1
  394. package/dist/es/chunks/ohash.D__AXeF1.js +1 -1
  395. package/dist/es/chunks/pagination-content.js +12 -6
  396. package/dist/es/chunks/pagination-ellipsis.js +10 -4
  397. package/dist/es/chunks/pagination-first.js +11 -4
  398. package/dist/es/chunks/pagination-item.js +9 -3
  399. package/dist/es/chunks/pagination-last.js +11 -4
  400. package/dist/es/chunks/pagination-next.js +11 -4
  401. package/dist/es/chunks/pagination-previous.js +11 -4
  402. package/dist/es/chunks/pagination.js +11 -4
  403. package/dist/es/chunks/popover-content.js +28 -21
  404. package/dist/es/chunks/popover-trigger.js +2 -2
  405. package/dist/es/chunks/progress-bar.js +13 -7
  406. package/dist/es/chunks/progress-circle.js +9 -3
  407. package/dist/es/chunks/radio-group-card.js +14 -8
  408. package/dist/es/chunks/radio-group-item.js +15 -8
  409. package/dist/es/chunks/radio-group-label.js +10 -4
  410. package/dist/es/chunks/radio-group.js +9 -2
  411. package/dist/es/chunks/range-calendar.js +56 -46
  412. package/dist/es/chunks/range-picker.js +19 -13
  413. package/dist/es/chunks/rich-editor.js +1129 -260
  414. package/dist/es/chunks/rolldown-runtime.js +34 -0
  415. package/dist/es/chunks/scroll-area.js +12 -6
  416. package/dist/es/chunks/scroll-bar.js +39 -24
  417. package/dist/es/chunks/segmented-control-item.js +11 -5
  418. package/dist/es/chunks/segmented-control.js +10 -3
  419. package/dist/es/chunks/select-content.js +15 -8
  420. package/dist/es/chunks/select-icon.js +8 -2
  421. package/dist/es/chunks/select-item.js +16 -9
  422. package/dist/es/chunks/select-label.js +9 -3
  423. package/dist/es/chunks/select-separator.js +9 -3
  424. package/dist/es/chunks/select-trigger.js +11 -5
  425. package/dist/es/chunks/select-value.js +9 -3
  426. package/dist/es/chunks/select.js +9 -2
  427. package/dist/es/chunks/sheet-close.js +8 -2
  428. package/dist/es/chunks/sheet-content.js +12 -5
  429. package/dist/es/chunks/sheet-description.js +9 -3
  430. package/dist/es/chunks/sheet-footer.js +8 -2
  431. package/dist/es/chunks/sheet-header.js +8 -2
  432. package/dist/es/chunks/sheet-title.js +9 -3
  433. package/dist/es/chunks/sidebar-content.js +7 -1
  434. package/dist/es/chunks/sidebar-element.js +8 -2
  435. package/dist/es/chunks/sidebar-footer.js +7 -1
  436. package/dist/es/chunks/sidebar-group-content.js +8 -2
  437. package/dist/es/chunks/sidebar-group-label.js +9 -3
  438. package/dist/es/chunks/sidebar-group.js +7 -1
  439. package/dist/es/chunks/sidebar-header.js +7 -1
  440. package/dist/es/chunks/sidebar-menu-action.js +10 -4
  441. package/dist/es/chunks/sidebar-menu-badge.js +11 -5
  442. package/dist/es/chunks/sidebar-menu-button.js +10 -4
  443. package/dist/es/chunks/sidebar-menu-item.js +7 -1
  444. package/dist/es/chunks/sidebar-menu-sub-button.js +12 -6
  445. package/dist/es/chunks/sidebar-menu-sub-item.js +7 -1
  446. package/dist/es/chunks/sidebar-menu-sub.js +7 -1
  447. package/dist/es/chunks/sidebar-menu.js +7 -1
  448. package/dist/es/chunks/sidebar-provider.js +10 -3
  449. package/dist/es/chunks/sidebar-trigger.js +9 -3
  450. package/dist/es/chunks/sidebar.js +11 -5
  451. package/dist/es/chunks/slider.js +38 -23
  452. package/dist/es/chunks/social-button.js +4 -4
  453. package/dist/es/chunks/sonner-alert.js +1 -1
  454. package/dist/es/chunks/sonner.js +4 -3
  455. package/dist/es/chunks/status-badge.js +12 -6
  456. package/dist/es/chunks/switch.js +13 -6
  457. package/dist/es/chunks/tab-menu-content.js +9 -3
  458. package/dist/es/chunks/tab-menu-item.js +11 -4
  459. package/dist/es/chunks/tab-menu-list.js +9 -3
  460. package/dist/es/chunks/tab-menu.js +1 -1
  461. package/dist/es/chunks/table-body.js +8 -2
  462. package/dist/es/chunks/table-caption.js +8 -2
  463. package/dist/es/chunks/table-cell.js +8 -2
  464. package/dist/es/chunks/table-footer.js +8 -2
  465. package/dist/es/chunks/table-head.js +8 -2
  466. package/dist/es/chunks/table-header.js +7 -1
  467. package/dist/es/chunks/table-row.js +8 -2
  468. package/dist/es/chunks/table.js +8 -2
  469. package/dist/es/chunks/table2.js +8 -2
  470. package/dist/es/chunks/tag.js +15 -9
  471. package/dist/es/chunks/text-input-affix.js +8 -2
  472. package/dist/es/chunks/text-input-button.js +8 -2
  473. package/dist/es/chunks/text-input.js +10 -9
  474. package/dist/es/chunks/textarea.js +14 -8
  475. package/dist/es/chunks/tooltip-content.js +38 -31
  476. package/dist/es/chunks/tooltip-root.js +2 -1
  477. package/dist/es/chunks/tooltip-trigger.js +1 -1
  478. package/dist/es/chunks/tooltip.js +17 -10
  479. package/dist/es/chunks/use-color-model.js +7 -11
  480. package/dist/es/chunks/useArrowNavigation.js +1 -1
  481. package/dist/es/chunks/useCalendar.js +656 -584
  482. package/dist/es/chunks/useComposing.js +1 -1
  483. package/dist/es/chunks/useDirection.js +1 -1
  484. package/dist/es/chunks/useEmitAsProps.js +1 -1
  485. package/dist/es/chunks/useFocusGuards.js +2 -2
  486. package/dist/es/chunks/useFormControl.js +2 -2
  487. package/dist/es/chunks/useForwardExpose.js +2 -2
  488. package/dist/es/chunks/useForwardProps.js +1 -1
  489. package/dist/es/chunks/useForwardPropsEmits.js +1 -1
  490. package/dist/es/chunks/useForwardScopeId.js +1 -1
  491. package/dist/es/chunks/useHideOthers.js +4 -4
  492. package/dist/es/chunks/useId.js +1 -1
  493. package/dist/es/chunks/useKbd.js +1 -1
  494. package/dist/es/chunks/useLocale.js +1 -1
  495. package/dist/es/chunks/useNonce.js +1 -1
  496. package/dist/es/chunks/usePrimitiveElement.js +2 -2
  497. package/dist/es/chunks/useSize.js +2 -2
  498. package/dist/es/chunks/useTypeahead.js +2 -2
  499. package/dist/es/chunks/utils.js +1 -1
  500. package/dist/es/chunks/utils2.js +1 -1
  501. package/dist/es/chunks/utils3.js +1 -1
  502. package/dist/es/color.js +1 -3
  503. package/dist/es/command-group.js +10 -4
  504. package/dist/es/command-input.js +11 -4
  505. package/dist/es/command-item.js +10 -3
  506. package/dist/es/command-list.js +10 -3
  507. package/dist/es/command-root.js +10 -3
  508. package/dist/es/command-separator.js +8 -2
  509. package/dist/es/index.js +9 -1
  510. package/dist/es/use-chart-motion.js +15 -0
  511. package/dist/es/use-locale.js +8 -0
  512. package/dist/es/use-sidebar.js +1 -1
  513. package/dist/utils/chart.d.ts +6 -0
  514. package/dist/utils/index.d.ts +1 -0
  515. package/package.json +46 -44
  516. package/src/components/chart/bar-chart.vue +383 -0
  517. package/src/components/chart/chart-card.vue +99 -0
  518. package/src/components/chart/chart-legend.vue +164 -0
  519. package/src/components/chart/chart-plot.vue +350 -0
  520. package/src/components/chart/chart-tooltip.ts +35 -0
  521. package/src/components/chart/index.ts +13 -0
  522. package/src/components/chart/stories/bar-chart.stories.ts +319 -0
  523. package/src/components/color-picker/hue-slider.vue +1 -1
  524. package/src/components/file-upload/file-upload-area.vue +1 -1
  525. package/src/components/index.ts +1 -0
  526. package/src/components/text-input/text-input.vue +1 -0
  527. package/src/components/tooltip/tooltip-content.vue +5 -1
  528. package/src/composables/index.ts +2 -0
  529. package/src/composables/use-chart-motion.ts +18 -0
  530. package/src/composables/use-locale.ts +8 -0
  531. package/src/utils/chart.ts +42 -0
  532. package/src/utils/index.ts +1 -0
  533. package/dist/cjs/chunks/core.cjs +0 -325
  534. package/dist/es/chunks/core.js +0 -289
@@ -1,21 +1,27 @@
1
- require("./chunk.cjs");
2
1
  const require_clsx = require("./clsx.cjs");
3
2
  const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper.cjs");
3
+ const require_dist = require("./dist.cjs");
4
4
  const require_Primitive = require("./Primitive.cjs");
5
5
  const require_useForwardProps = require("./useForwardProps.cjs");
6
- const require_core = require("./core.cjs");
7
6
  let vue = require("vue");
8
7
  //#region src/components/digit-input/digit-input-group.vue?vue&type=script&setup=true&lang.ts
9
- var digit_input_group_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
8
+ var digit_input_group_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
10
9
  __name: "digit-input-group",
11
10
  props: {
12
11
  asChild: { type: Boolean },
13
12
  as: {},
14
- class: {}
13
+ class: { type: [
14
+ Boolean,
15
+ null,
16
+ String,
17
+ Object,
18
+ Array
19
+ ] }
15
20
  },
16
21
  setup(__props) {
17
22
  const props = __props;
18
- const forwardedProps = require_useForwardProps.useForwardProps(require_core.reactiveOmit(props, "class"));
23
+ const delegatedProps = require_dist.reactiveOmit(props, "class");
24
+ const forwardedProps = require_useForwardProps.useForwardProps(delegatedProps);
19
25
  return (_ctx, _cache) => {
20
26
  return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Primitive.Primitive), (0, vue.mergeProps)((0, vue.unref)(forwardedProps), { class: (0, vue.unref)(require_clsx.clsx)("celeste-digit-input-group", props.class) }), {
21
27
  default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, void 0, true)]),
@@ -26,7 +32,7 @@ var digit_input_group_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
26
32
  });
27
33
  //#endregion
28
34
  //#region src/components/digit-input/digit-input-group.vue
29
- var digit_input_group_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(digit_input_group_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-442c7563"]]);
35
+ var digit_input_group_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(digit_input_group_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-442c7563"]]);
30
36
  //#endregion
31
37
  Object.defineProperty(exports, "digit_input_group_default", {
32
38
  enumerable: true,
@@ -1,16 +1,15 @@
1
- require("./chunk.cjs");
2
1
  const require_clsx = require("./clsx.cjs");
3
2
  const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper.cjs");
4
3
  const require_getActiveElement = require("./getActiveElement.cjs");
4
+ const require_dist = require("./dist.cjs");
5
5
  const require_Primitive = require("./Primitive.cjs");
6
6
  const require_useArrowNavigation = require("./useArrowNavigation.cjs");
7
7
  const require_useComposing = require("./useComposing.cjs");
8
8
  const require_useForwardProps = require("./useForwardProps.cjs");
9
9
  const require_usePrimitiveElement = require("./usePrimitiveElement.cjs");
10
10
  const require_PinInputRoot = require("./PinInputRoot.cjs");
11
- const require_core = require("./core.cjs");
12
11
  let vue = require("vue");
13
- //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@6.0.3_/node_modules/reka-ui/dist/PinInput/PinInputInput.js
12
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/PinInput/PinInputInput.js
14
13
  var PinInputInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
15
14
  __name: "PinInputInput",
16
15
  props: {
@@ -243,18 +242,25 @@ var PinInputInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
243
242
  });
244
243
  //#endregion
245
244
  //#region src/components/digit-input/digit-input-slot.vue?vue&type=script&setup=true&lang.ts
246
- var digit_input_slot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
245
+ var digit_input_slot_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
247
246
  __name: "digit-input-slot",
248
247
  props: {
249
248
  index: {},
250
249
  disabled: { type: Boolean },
251
250
  asChild: { type: Boolean },
252
251
  as: {},
253
- class: {}
252
+ class: { type: [
253
+ Boolean,
254
+ null,
255
+ String,
256
+ Object,
257
+ Array
258
+ ] }
254
259
  },
255
260
  setup(__props) {
256
261
  const props = __props;
257
- const forwardedProps = require_useForwardProps.useForwardProps(require_core.reactiveOmit(props, "class"));
262
+ const delegatedProps = require_dist.reactiveOmit(props, "class");
263
+ const forwardedProps = require_useForwardProps.useForwardProps(delegatedProps);
258
264
  return (_ctx, _cache) => {
259
265
  return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(PinInputInput_default), (0, vue.mergeProps)((0, vue.unref)(forwardedProps), { class: (0, vue.unref)(require_clsx.clsx)("celeste-digit-input-slot", props.class) }), null, 16, ["class"]);
260
266
  };
@@ -262,7 +268,7 @@ var digit_input_slot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__
262
268
  });
263
269
  //#endregion
264
270
  //#region src/components/digit-input/digit-input-slot.vue
265
- var digit_input_slot_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(digit_input_slot_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-aa4bbe75"]]);
271
+ var digit_input_slot_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(digit_input_slot_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-aa4bbe75"]]);
266
272
  //#endregion
267
273
  Object.defineProperty(exports, "digit_input_slot_default", {
268
274
  enumerable: true,
@@ -1,12 +1,11 @@
1
- require("./chunk.cjs");
2
1
  const require_clsx = require("./clsx.cjs");
3
2
  const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper.cjs");
3
+ const require_dist = require("./dist.cjs");
4
4
  const require_useForwardPropsEmits = require("./useForwardPropsEmits.cjs");
5
5
  const require_PinInputRoot = require("./PinInputRoot.cjs");
6
- const require_core = require("./core.cjs");
7
6
  let vue = require("vue");
8
7
  //#region src/components/digit-input/digit-input.vue?vue&type=script&setup=true&lang.ts
9
- var digit_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
8
+ var digit_input_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
10
9
  __name: "digit-input",
11
10
  props: {
12
11
  modelValue: { default: () => [] },
@@ -22,7 +21,13 @@ var digit_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
22
21
  as: {},
23
22
  name: {},
24
23
  required: { type: Boolean },
25
- class: {},
24
+ class: { type: [
25
+ Boolean,
26
+ null,
27
+ String,
28
+ Object,
29
+ Array
30
+ ] },
26
31
  hasError: {
27
32
  type: Boolean,
28
33
  default: false
@@ -32,11 +37,12 @@ var digit_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
32
37
  setup(__props, { emit: __emit }) {
33
38
  const props = __props;
34
39
  const emits = __emit;
35
- const forwarded = require_useForwardPropsEmits.useForwardPropsEmits(require_core.reactiveOmit(props, "class", "hasError"), emits);
40
+ const delegatedProps = require_dist.reactiveOmit(props, "class", "hasError");
41
+ const forwarded = require_useForwardPropsEmits.useForwardPropsEmits(delegatedProps, emits);
36
42
  return (_ctx, _cache) => {
37
43
  return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_PinInputRoot.PinInputRoot_default), (0, vue.mergeProps)((0, vue.unref)(forwarded), {
38
44
  class: (0, vue.unref)(require_clsx.clsx)("celeste-digit-input", props.class),
39
- "data-error": _ctx.hasError
45
+ "data-error": __props.hasError
40
46
  }), {
41
47
  default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", {}, void 0, true)]),
42
48
  _: 3
@@ -46,7 +52,7 @@ var digit_input_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
46
52
  });
47
53
  //#endregion
48
54
  //#region src/components/digit-input/digit-input.vue
49
- var digit_input_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(digit_input_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f3b019f4"]]);
55
+ var digit_input_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(digit_input_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f3b019f4"]]);
50
56
  //#endregion
51
57
  Object.defineProperty(exports, "digit_input_default", {
52
58
  enumerable: true,
@@ -1,6 +1,5 @@
1
- require("./chunk.cjs");
2
1
  let vue = require("vue");
3
- //#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.13_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
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
4
3
  /**
5
4
  * Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
6
5
  *
@@ -64,20 +63,39 @@ function createGlobalState(stateFactory) {
64
63
  return state;
65
64
  });
66
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
+ };
67
87
  var isClient = typeof window !== "undefined" && typeof document !== "undefined";
68
88
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
69
89
  var isDef = (val) => typeof val !== "undefined";
90
+ var notNullish = (val) => val != null;
70
91
  var toString = Object.prototype.toString;
71
92
  var isObject = (val) => toString.call(val) === "[object Object]";
72
93
  var noop = () => {};
73
- var isIOS = /* @__PURE__ */ getIsIOS();
94
+ var isIOS = /* #__PURE__ */ getIsIOS();
74
95
  function getIsIOS() {
75
96
  var _window, _window2, _window3;
76
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));
77
98
  }
78
- /**
79
- * @internal
80
- */
81
99
  function createFilterWrapper(filter, fn) {
82
100
  function wrapper(...args) {
83
101
  return new Promise((resolve, reject) => {
@@ -88,6 +106,11 @@ function createFilterWrapper(filter, fn) {
88
106
  })).then(resolve).catch(reject);
89
107
  });
90
108
  }
109
+ if ("cancel" in filter) Object.assign(wrapper, {
110
+ cancel: filter.cancel,
111
+ flush: filter.flush,
112
+ isPending: filter.isPending
113
+ });
91
114
  return wrapper;
92
115
  }
93
116
  /**
@@ -97,13 +120,15 @@ function debounceFilter(ms, options = {}) {
97
120
  let timer;
98
121
  let maxTimer;
99
122
  let lastRejector = noop;
123
+ let lastResolve = noop;
124
+ const _pending = (0, vue.shallowRef)(false);
100
125
  const _clearTimeout = (timer) => {
101
126
  clearTimeout(timer);
102
127
  lastRejector();
103
128
  lastRejector = noop;
104
129
  };
105
130
  let lastInvoker;
106
- const filter = (invoke) => {
131
+ const handler = (invoke) => {
107
132
  const duration = (0, vue.toValue)(ms);
108
133
  const maxDuration = (0, vue.toValue)(options.maxWait);
109
134
  if (timer) _clearTimeout(timer);
@@ -112,24 +137,66 @@ function debounceFilter(ms, options = {}) {
112
137
  _clearTimeout(maxTimer);
113
138
  maxTimer = void 0;
114
139
  }
140
+ _pending.value = false;
115
141
  return Promise.resolve(invoke());
116
142
  }
143
+ _pending.value = true;
117
144
  return new Promise((resolve, reject) => {
118
145
  lastRejector = options.rejectOnCancel ? reject : resolve;
146
+ lastResolve = resolve;
119
147
  lastInvoker = invoke;
120
148
  if (maxDuration && !maxTimer) maxTimer = setTimeout(() => {
121
149
  if (timer) _clearTimeout(timer);
122
150
  maxTimer = void 0;
151
+ _pending.value = false;
123
152
  resolve(lastInvoker());
124
153
  }, maxDuration);
125
154
  timer = setTimeout(() => {
126
155
  if (maxTimer) _clearTimeout(maxTimer);
127
156
  maxTimer = void 0;
157
+ _pending.value = false;
128
158
  resolve(invoke());
129
159
  }, duration);
130
160
  });
131
161
  };
132
- return filter;
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);
133
200
  }
134
201
  function toArray(value) {
135
202
  return Array.isArray(value) ? value : [value];
@@ -257,9 +324,7 @@ function refAutoReset(defaultValue, afterMs = 1e4) {
257
324
  * @param ms A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
258
325
  * @param options Options
259
326
  *
260
- * @return A new, debounce, function.
261
- *
262
- * @__NO_SIDE_EFFECTS__
327
+ * @return A new, debounced, function with isPending, cancel, and flush properties.
263
328
  */
264
329
  function useDebounceFn(fn, ms = 200, options = {}) {
265
330
  return createFilterWrapper(debounceFilter(ms, options), fn);
@@ -274,6 +339,18 @@ function tryOnBeforeUnmount(fn, target) {
274
339
  if (getLifeCycleTarget(target)) (0, vue.onBeforeUnmount)(fn, target);
275
340
  }
276
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
+ /**
277
354
  * Wrapper for `setTimeout` with controls.
278
355
  *
279
356
  * @param cb
@@ -338,199 +415,6 @@ function watchOnce(source, cb, options) {
338
415
  });
339
416
  }
340
417
  //#endregion
341
- //#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.13_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
342
- var defaultWindow = isClient ? window : void 0;
343
- isClient && window.document;
344
- isClient && window.navigator;
345
- isClient && window.location;
346
- /**
347
- * Get the dom element of a ref of element or Vue component instance
348
- *
349
- * @param elRef
350
- */
351
- function unrefElement(elRef) {
352
- var _$el;
353
- const plain = (0, vue.toValue)(elRef);
354
- return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
355
- }
356
- function useEventListener(...args) {
357
- const register = (el, event, listener, options) => {
358
- el.addEventListener(event, listener, options);
359
- return () => el.removeEventListener(event, listener, options);
360
- };
361
- const firstParamTargets = (0, vue.computed)(() => {
362
- const test = toArray((0, vue.toValue)(args[0])).filter((e) => e != null);
363
- return test.every((e) => typeof e !== "string") ? test : void 0;
364
- });
365
- return watchImmediate(() => {
366
- var _firstParamTargets$va, _firstParamTargets$va2;
367
- return [
368
- (_firstParamTargets$va = (_firstParamTargets$va2 = firstParamTargets.value) === null || _firstParamTargets$va2 === void 0 ? void 0 : _firstParamTargets$va2.map((e) => unrefElement(e))) !== null && _firstParamTargets$va !== void 0 ? _firstParamTargets$va : [defaultWindow].filter((e) => e != null),
369
- toArray((0, vue.toValue)(firstParamTargets.value ? args[1] : args[0])),
370
- toArray((0, vue.unref)(firstParamTargets.value ? args[2] : args[1])),
371
- (0, vue.toValue)(firstParamTargets.value ? args[3] : args[2])
372
- ];
373
- }, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => {
374
- if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) return;
375
- const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;
376
- const cleanups = raw_targets.flatMap((el) => raw_events.flatMap((event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))));
377
- onCleanup(() => {
378
- cleanups.forEach((fn) => fn());
379
- });
380
- }, { flush: "post" });
381
- }
382
- /**
383
- * Mounted state in ref.
384
- *
385
- * @see https://vueuse.org/useMounted
386
- *
387
- * @__NO_SIDE_EFFECTS__
388
- */
389
- function useMounted() {
390
- const isMounted = (0, vue.shallowRef)(false);
391
- const instance = (0, vue.getCurrentInstance)();
392
- if (instance) (0, vue.onMounted)(() => {
393
- isMounted.value = true;
394
- }, instance);
395
- return isMounted;
396
- }
397
- /* @__NO_SIDE_EFFECTS__ */
398
- function useSupported(callback) {
399
- const isMounted = useMounted();
400
- return (0, vue.computed)(() => {
401
- isMounted.value;
402
- return Boolean(callback());
403
- });
404
- }
405
- function createKeyPredicate(keyFilter) {
406
- if (typeof keyFilter === "function") return keyFilter;
407
- else if (typeof keyFilter === "string") return (event) => event.key === keyFilter;
408
- else if (Array.isArray(keyFilter)) return (event) => keyFilter.includes(event.key);
409
- return () => true;
410
- }
411
- function onKeyStroke(...args) {
412
- let key;
413
- let handler;
414
- let options = {};
415
- if (args.length === 3) {
416
- key = args[0];
417
- handler = args[1];
418
- options = args[2];
419
- } else if (args.length === 2) if (typeof args[1] === "object") {
420
- key = true;
421
- handler = args[0];
422
- options = args[1];
423
- } else {
424
- key = args[0];
425
- handler = args[1];
426
- }
427
- else {
428
- key = true;
429
- handler = args[0];
430
- }
431
- const { target = defaultWindow, eventName = "keydown", passive = false, dedupe = false } = options;
432
- const predicate = createKeyPredicate(key);
433
- const listener = (e) => {
434
- if (e.repeat && (0, vue.toValue)(dedupe)) return;
435
- if (predicate(e)) handler(e);
436
- };
437
- return useEventListener(target, eventName, listener, passive);
438
- }
439
- function cloneFnJSON(source) {
440
- return JSON.parse(JSON.stringify(source));
441
- }
442
- /**
443
- * Reports changes to the dimensions of an Element's content or the border-box
444
- *
445
- * @see https://vueuse.org/useResizeObserver
446
- * @param target
447
- * @param callback
448
- * @param options
449
- */
450
- function useResizeObserver(target, callback, options = {}) {
451
- const { window = defaultWindow, ...observerOptions } = options;
452
- let observer;
453
- const isSupported = /* @__PURE__ */ useSupported(() => window && "ResizeObserver" in window);
454
- const cleanup = () => {
455
- if (observer) {
456
- observer.disconnect();
457
- observer = void 0;
458
- }
459
- };
460
- const stopWatch = (0, vue.watch)((0, vue.computed)(() => {
461
- const _targets = (0, vue.toValue)(target);
462
- return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)];
463
- }), (els) => {
464
- cleanup();
465
- if (isSupported.value && window) {
466
- observer = new ResizeObserver(callback);
467
- for (const _el of els) if (_el) observer.observe(_el, observerOptions);
468
- }
469
- }, {
470
- immediate: true,
471
- flush: "post"
472
- });
473
- const stop = () => {
474
- cleanup();
475
- stopWatch();
476
- };
477
- tryOnScopeDispose(stop);
478
- return {
479
- isSupported,
480
- stop
481
- };
482
- }
483
- Number.POSITIVE_INFINITY;
484
- /**
485
- * Shorthand for v-model binding, props + emit -> ref
486
- *
487
- * @see https://vueuse.org/useVModel
488
- * @param props
489
- * @param key (default 'modelValue')
490
- * @param emit
491
- * @param options
492
- *
493
- * @__NO_SIDE_EFFECTS__
494
- */
495
- function useVModel(props, key, emit, options = {}) {
496
- var _vm$$emit, _vm$proxy;
497
- const { clone = false, passive = false, eventName, deep = false, defaultValue, shouldEmit } = options;
498
- const vm = (0, vue.getCurrentInstance)();
499
- const _emit = emit || (vm === null || vm === void 0 ? void 0 : vm.emit) || (vm === null || vm === void 0 || (_vm$$emit = vm.$emit) === null || _vm$$emit === void 0 ? void 0 : _vm$$emit.bind(vm)) || (vm === null || vm === void 0 || (_vm$proxy = vm.proxy) === null || _vm$proxy === void 0 || (_vm$proxy = _vm$proxy.$emit) === null || _vm$proxy === void 0 ? void 0 : _vm$proxy.bind(vm === null || vm === void 0 ? void 0 : vm.proxy));
500
- let event = eventName;
501
- if (!key) key = "modelValue";
502
- event = event || `update:${key.toString()}`;
503
- const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val);
504
- const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
505
- const triggerEmit = (value) => {
506
- if (shouldEmit) {
507
- if (shouldEmit(value)) _emit(event, value);
508
- } else _emit(event, value);
509
- };
510
- if (passive) {
511
- const proxy = (0, vue.ref)(getValue());
512
- let isUpdating = false;
513
- (0, vue.watch)(() => props[key], (v) => {
514
- if (!isUpdating) {
515
- isUpdating = true;
516
- proxy.value = cloneFn(v);
517
- (0, vue.nextTick)(() => isUpdating = false);
518
- }
519
- });
520
- (0, vue.watch)(proxy, (v) => {
521
- if (!isUpdating && (v !== props[key] || deep)) triggerEmit(v);
522
- }, { deep });
523
- return proxy;
524
- } else return (0, vue.computed)({
525
- get() {
526
- return getValue();
527
- },
528
- set(value) {
529
- triggerEmit(value);
530
- }
531
- });
532
- }
533
- //#endregion
534
418
  Object.defineProperty(exports, "createEventHook", {
535
419
  enumerable: true,
536
420
  get: function() {
@@ -549,10 +433,10 @@ Object.defineProperty(exports, "createSharedComposable", {
549
433
  return createSharedComposable;
550
434
  }
551
435
  });
552
- Object.defineProperty(exports, "defaultWindow", {
436
+ Object.defineProperty(exports, "injectLocal", {
553
437
  enumerable: true,
554
438
  get: function() {
555
- return defaultWindow;
439
+ return injectLocal;
556
440
  }
557
441
  });
558
442
  Object.defineProperty(exports, "isClient", {
@@ -561,76 +445,82 @@ Object.defineProperty(exports, "isClient", {
561
445
  return isClient;
562
446
  }
563
447
  });
448
+ Object.defineProperty(exports, "isDef", {
449
+ enumerable: true,
450
+ get: function() {
451
+ return isDef;
452
+ }
453
+ });
564
454
  Object.defineProperty(exports, "isIOS", {
565
455
  enumerable: true,
566
456
  get: function() {
567
457
  return isIOS;
568
458
  }
569
459
  });
570
- Object.defineProperty(exports, "onKeyStroke", {
460
+ Object.defineProperty(exports, "isObject", {
571
461
  enumerable: true,
572
462
  get: function() {
573
- return onKeyStroke;
463
+ return isObject;
574
464
  }
575
465
  });
576
- Object.defineProperty(exports, "reactiveComputed", {
466
+ Object.defineProperty(exports, "notNullish", {
577
467
  enumerable: true,
578
468
  get: function() {
579
- return reactiveComputed;
469
+ return notNullish;
580
470
  }
581
471
  });
582
- Object.defineProperty(exports, "reactiveOmit", {
472
+ Object.defineProperty(exports, "pxValue", {
583
473
  enumerable: true,
584
474
  get: function() {
585
- return reactiveOmit;
475
+ return pxValue;
586
476
  }
587
477
  });
588
- Object.defineProperty(exports, "refAutoReset", {
478
+ Object.defineProperty(exports, "reactiveComputed", {
589
479
  enumerable: true,
590
480
  get: function() {
591
- return refAutoReset;
481
+ return reactiveComputed;
592
482
  }
593
483
  });
594
- Object.defineProperty(exports, "tryOnBeforeUnmount", {
484
+ Object.defineProperty(exports, "reactiveOmit", {
595
485
  enumerable: true,
596
486
  get: function() {
597
- return tryOnBeforeUnmount;
487
+ return reactiveOmit;
598
488
  }
599
489
  });
600
- Object.defineProperty(exports, "tryOnScopeDispose", {
490
+ Object.defineProperty(exports, "refAutoReset", {
601
491
  enumerable: true,
602
492
  get: function() {
603
- return tryOnScopeDispose;
493
+ return refAutoReset;
604
494
  }
605
495
  });
606
- Object.defineProperty(exports, "unrefElement", {
496
+ Object.defineProperty(exports, "toArray", {
607
497
  enumerable: true,
608
498
  get: function() {
609
- return unrefElement;
499
+ return toArray;
610
500
  }
611
501
  });
612
- Object.defineProperty(exports, "useDebounceFn", {
502
+ Object.defineProperty(exports, "tryOnBeforeUnmount", {
613
503
  enumerable: true,
614
504
  get: function() {
615
- return useDebounceFn;
505
+ return tryOnBeforeUnmount;
616
506
  }
617
507
  });
618
- Object.defineProperty(exports, "useEventListener", {
508
+ Object.defineProperty(exports, "tryOnMounted", {
619
509
  enumerable: true,
620
510
  get: function() {
621
- return useEventListener;
511
+ return tryOnMounted;
622
512
  }
623
513
  });
624
- Object.defineProperty(exports, "useMounted", {
514
+ Object.defineProperty(exports, "tryOnScopeDispose", {
625
515
  enumerable: true,
626
516
  get: function() {
627
- return useMounted;
517
+ return tryOnScopeDispose;
628
518
  }
629
519
  });
630
- Object.defineProperty(exports, "useResizeObserver", {
520
+ Object.defineProperty(exports, "useDebounceFn", {
631
521
  enumerable: true,
632
522
  get: function() {
633
- return useResizeObserver;
523
+ return useDebounceFn;
634
524
  }
635
525
  });
636
526
  Object.defineProperty(exports, "useTimeoutFn", {
@@ -639,10 +529,10 @@ Object.defineProperty(exports, "useTimeoutFn", {
639
529
  return useTimeoutFn;
640
530
  }
641
531
  });
642
- Object.defineProperty(exports, "useVModel", {
532
+ Object.defineProperty(exports, "watchImmediate", {
643
533
  enumerable: true,
644
534
  get: function() {
645
- return useVModel;
535
+ return watchImmediate;
646
536
  }
647
537
  });
648
538
  Object.defineProperty(exports, "watchOnce", {