@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,8 +1,7 @@
1
- require("./chunk.cjs");
2
1
  const require_PopperContent = require("./PopperContent.cjs");
3
- const require_dist = require("./dist2.cjs");
2
+ const require_dist = require("./dist3.cjs");
4
3
  let vue = require("vue");
5
- //#region ../../node_modules/.pnpm/prosemirror-tables@1.7.1/node_modules/prosemirror-tables/dist/index.js
4
+ //#region ../../node_modules/.pnpm/prosemirror-tables@1.8.5/node_modules/prosemirror-tables/dist/index.js
6
5
  var readFromCache;
7
6
  var addToCache;
8
7
  if (typeof WeakMap != "undefined") {
@@ -25,6 +24,14 @@ if (typeof WeakMap != "undefined") {
25
24
  return cache[cachePos++] = value;
26
25
  };
27
26
  }
27
+ /**
28
+ * A table map describes the structure of a given table. To avoid
29
+ * recomputing them all the time, they are cached per table node. To
30
+ * be able to do that, positions saved in the map are relative to the
31
+ * start of the table, rather than the start of the document.
32
+ *
33
+ * @public
34
+ */
28
35
  var TableMap = class {
29
36
  constructor(width, height, map, problems) {
30
37
  this.width = width;
@@ -219,6 +226,9 @@ function freshColWidth(attrs) {
219
226
  for (let i = 0; i < attrs.colspan; i++) result.push(0);
220
227
  return result;
221
228
  }
229
+ /**
230
+ * @public
231
+ */
222
232
  function tableNodeTypes(schema) {
223
233
  let result = schema.cached.tableNodeTypes;
224
234
  if (!result) {
@@ -231,15 +241,24 @@ function tableNodeTypes(schema) {
231
241
  return result;
232
242
  }
233
243
  new require_dist.PluginKey("selectingCells");
244
+ /**
245
+ * @public
246
+ */
234
247
  function cellAround($pos) {
235
248
  for (let d = $pos.depth - 1; d > 0; d--) if ($pos.node(d).type.spec.tableRole == "row") return $pos.node(0).resolve($pos.before(d + 1));
236
249
  return null;
237
250
  }
251
+ /**
252
+ * @public
253
+ */
238
254
  function isInTable(state) {
239
255
  const $head = state.selection.$head;
240
256
  for (let d = $head.depth; d > 0; d--) if ($head.node(d).type.spec.tableRole == "row") return true;
241
257
  return false;
242
258
  }
259
+ /**
260
+ * @internal
261
+ */
243
262
  function selectionCell(state) {
244
263
  const sel = state.selection;
245
264
  if ("$anchorCell" in sel && sel.$anchorCell) return sel.$anchorCell.pos > sel.$headCell.pos ? sel.$anchorCell : sel.$headCell;
@@ -248,6 +267,9 @@ function selectionCell(state) {
248
267
  if ($cell) return $cell;
249
268
  throw new RangeError(`No cell found around position ${sel.head}`);
250
269
  }
270
+ /**
271
+ * @public
272
+ */
251
273
  function cellNear($pos) {
252
274
  for (let after = $pos.nodeAfter, pos = $pos.pos; after; after = after.firstChild, pos++) {
253
275
  const role = after.type.spec.tableRole;
@@ -258,12 +280,21 @@ function cellNear($pos) {
258
280
  if (role == "cell" || role == "header_cell") return $pos.doc.resolve(pos - before.nodeSize);
259
281
  }
260
282
  }
283
+ /**
284
+ * @public
285
+ */
261
286
  function pointsAtCell($pos) {
262
287
  return $pos.parent.type.spec.tableRole == "row" && !!$pos.nodeAfter;
263
288
  }
289
+ /**
290
+ * @internal
291
+ */
264
292
  function inSameTable($cellA, $cellB) {
265
293
  return $cellA.depth == $cellB.depth && $cellA.pos >= $cellB.start(-1) && $cellA.pos <= $cellB.end(-1);
266
294
  }
295
+ /**
296
+ * @public
297
+ */
267
298
  function nextCell($pos, axis, dir) {
268
299
  const table = $pos.node(-1);
269
300
  const map = TableMap.get(table);
@@ -271,6 +302,9 @@ function nextCell($pos, axis, dir) {
271
302
  const moved = map.nextCell($pos.pos - tableStart, axis, dir);
272
303
  return moved == null ? null : $pos.node(0).resolve(tableStart + moved);
273
304
  }
305
+ /**
306
+ * @public
307
+ */
274
308
  function removeColSpan(attrs, pos, n = 1) {
275
309
  const result = {
276
310
  ...attrs,
@@ -283,7 +317,16 @@ function removeColSpan(attrs, pos, n = 1) {
283
317
  }
284
318
  return result;
285
319
  }
286
- var CellSelection = class _CellSelection extends require_dist.Selection {
320
+ /**
321
+ * A [`Selection`](http://prosemirror.net/docs/ref/#state.Selection)
322
+ * subclass that represents a cell selection spanning part of a table.
323
+ * With the plugin enabled, these will be created when the user
324
+ * selects across cells, and will be drawn by giving selected cells a
325
+ * `selectedCell` CSS class.
326
+ *
327
+ * @public
328
+ */
329
+ var CellSelection = class CellSelection extends require_dist.Selection {
287
330
  constructor($anchorCell, $headCell = $anchorCell) {
288
331
  const table = $anchorCell.node(-1);
289
332
  const map = TableMap.get(table);
@@ -294,7 +337,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
294
337
  cells.unshift($headCell.pos - tableStart);
295
338
  const ranges = cells.map((pos) => {
296
339
  const cell = table.nodeAt(pos);
297
- if (!cell) throw RangeError(`No cell with offset ${pos} found`);
340
+ if (!cell) throw new RangeError(`No cell with offset ${pos} found`);
298
341
  const from = tableStart + pos + 1;
299
342
  return new require_dist.SelectionRange(doc.resolve(from), doc.resolve(from + cell.content.size));
300
343
  });
@@ -307,9 +350,9 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
307
350
  const $headCell = doc.resolve(mapping.map(this.$headCell.pos));
308
351
  if (pointsAtCell($anchorCell) && pointsAtCell($headCell) && inSameTable($anchorCell, $headCell)) {
309
352
  const tableChanged = this.$anchorCell.node(-1) != $anchorCell.node(-1);
310
- if (tableChanged && this.isRowSelection()) return _CellSelection.rowSelection($anchorCell, $headCell);
311
- else if (tableChanged && this.isColSelection()) return _CellSelection.colSelection($anchorCell, $headCell);
312
- else return new _CellSelection($anchorCell, $headCell);
353
+ if (tableChanged && this.isRowSelection()) return CellSelection.rowSelection($anchorCell, $headCell);
354
+ else if (tableChanged && this.isColSelection()) return CellSelection.colSelection($anchorCell, $headCell);
355
+ else return new CellSelection($anchorCell, $headCell);
313
356
  }
314
357
  return require_dist.TextSelection.between($anchorCell, $headCell);
315
358
  }
@@ -328,7 +371,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
328
371
  seen[pos] = true;
329
372
  const cellRect = map.findCell(pos);
330
373
  let cell = table.nodeAt(pos);
331
- if (!cell) throw RangeError(`No cell with offset ${pos} found`);
374
+ if (!cell) throw new RangeError(`No cell with offset ${pos} found`);
332
375
  const extraLeft = rect.left - cellRect.left;
333
376
  const extraRight = cellRect.right - rect.right;
334
377
  if (extraLeft > 0 || extraRight > 0) {
@@ -337,7 +380,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
337
380
  if (extraRight > 0) attrs = removeColSpan(attrs, attrs.colspan - extraRight, extraRight);
338
381
  if (cellRect.left < rect.left) {
339
382
  cell = cell.type.createAndFill(attrs);
340
- if (!cell) throw RangeError(`Could not create cell with attrs ${JSON.stringify(attrs)}`);
383
+ if (!cell) throw new RangeError(`Could not create cell with attrs ${JSON.stringify(attrs)}`);
341
384
  } else cell = cell.type.create(attrs, cell.content);
342
385
  }
343
386
  if (cellRect.top < rect.top || cellRect.bottom > rect.bottom) {
@@ -396,7 +439,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
396
439
  if (headRect.top > 0) $headCell = doc.resolve(tableStart + map.map[headRect.left]);
397
440
  if (anchorRect.bottom < map.height) $anchorCell = doc.resolve(tableStart + map.map[map.width * (map.height - 1) + anchorRect.right - 1]);
398
441
  }
399
- return new _CellSelection($anchorCell, $headCell);
442
+ return new CellSelection($anchorCell, $headCell);
400
443
  }
401
444
  isRowSelection() {
402
445
  const table = this.$anchorCell.node(-1);
@@ -410,7 +453,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
410
453
  return Math.max(anchorRight, headRight) == map.width;
411
454
  }
412
455
  eq(other) {
413
- return other instanceof _CellSelection && other.$anchorCell.pos == this.$anchorCell.pos && other.$headCell.pos == this.$headCell.pos;
456
+ return other instanceof CellSelection && other.$anchorCell.pos == this.$anchorCell.pos && other.$headCell.pos == this.$headCell.pos;
414
457
  }
415
458
  static rowSelection($anchorCell, $headCell = $anchorCell) {
416
459
  const table = $anchorCell.node(-1);
@@ -426,7 +469,7 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
426
469
  if (headRect.left > 0) $headCell = doc.resolve(tableStart + map.map[headRect.top * map.width]);
427
470
  if (anchorRect.right < map.width) $anchorCell = doc.resolve(tableStart + map.map[map.width * (anchorRect.top + 1) - 1]);
428
471
  }
429
- return new _CellSelection($anchorCell, $headCell);
472
+ return new CellSelection($anchorCell, $headCell);
430
473
  }
431
474
  toJSON() {
432
475
  return {
@@ -436,10 +479,10 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
436
479
  };
437
480
  }
438
481
  static fromJSON(doc, json) {
439
- return new _CellSelection(doc.resolve(json.anchor), doc.resolve(json.head));
482
+ return new CellSelection(doc.resolve(json.anchor), doc.resolve(json.head));
440
483
  }
441
484
  static create(doc, anchorCell, headCell = anchorCell) {
442
- return new _CellSelection(doc.resolve(anchorCell), doc.resolve(headCell));
485
+ return new CellSelection(doc.resolve(anchorCell), doc.resolve(headCell));
443
486
  }
444
487
  getBookmark() {
445
488
  return new CellBookmark(this.$anchorCell.pos, this.$headCell.pos);
@@ -447,13 +490,16 @@ var CellSelection = class _CellSelection extends require_dist.Selection {
447
490
  };
448
491
  CellSelection.prototype.visible = false;
449
492
  require_dist.Selection.jsonID("cell", CellSelection);
450
- var CellBookmark = class _CellBookmark {
493
+ /**
494
+ * @public
495
+ */
496
+ var CellBookmark = class CellBookmark {
451
497
  constructor(anchor, head) {
452
498
  this.anchor = anchor;
453
499
  this.head = head;
454
500
  }
455
501
  map(mapping) {
456
- return new _CellBookmark(mapping.map(this.anchor), mapping.map(this.head));
502
+ return new CellBookmark(mapping.map(this.anchor), mapping.map(this.head));
457
503
  }
458
504
  resolve(doc) {
459
505
  const $anchorCell = doc.resolve(this.anchor), $headCell = doc.resolve(this.head);
@@ -462,6 +508,13 @@ var CellBookmark = class _CellBookmark {
462
508
  }
463
509
  };
464
510
  new require_dist.PluginKey("fix-tables");
511
+ /**
512
+ * Helper to get the selected rectangle in a table, if any. Adds table
513
+ * map, table node, and table start offset to the object for
514
+ * convenience.
515
+ *
516
+ * @public
517
+ */
465
518
  function selectedRect(state) {
466
519
  const sel = state.selection;
467
520
  const $pos = selectionCell(state);
@@ -494,7 +547,7 @@ function deprecated_toggleHeader(type) {
494
547
  } : rect);
495
548
  const nodes = cells.map((pos) => rect.table.nodeAt(pos));
496
549
  for (let i = 0; i < cells.length; i++) if (nodes[i].type == types.header_cell) tr.setNodeMarkup(rect.tableStart + cells[i], types.cell, nodes[i].attrs);
497
- if (tr.steps.length == 0) for (let i = 0; i < cells.length; i++) tr.setNodeMarkup(rect.tableStart + cells[i], types.header_cell, nodes[i].attrs);
550
+ if (tr.steps.length === 0) for (let i = 0; i < cells.length; i++) tr.setNodeMarkup(rect.tableStart + cells[i], types.header_cell, nodes[i].attrs);
498
551
  dispatch(tr);
499
552
  }
500
553
  return true;
@@ -513,6 +566,12 @@ function isHeaderEnabledByType(type, rect, types) {
513
566
  }
514
567
  return true;
515
568
  }
569
+ /**
570
+ * Toggles between row/column header and normal cells (Only applies to first row/column).
571
+ * For deprecated behavior pass `useDeprecatedLogic` in options with true.
572
+ *
573
+ * @public
574
+ */
516
575
  function toggleHeader(type, options) {
517
576
  options = options || { useDeprecatedLogic: false };
518
577
  if (options.useDeprecatedLogic) return deprecated_toggleHeader(type);
@@ -549,6 +608,11 @@ function toggleHeader(type, options) {
549
608
  toggleHeader("row", { useDeprecatedLogic: true });
550
609
  toggleHeader("column", { useDeprecatedLogic: true });
551
610
  toggleHeader("cell", { useDeprecatedLogic: true });
611
+ /**
612
+ * Deletes the content of the selected cells, if they are not empty.
613
+ *
614
+ * @public
615
+ */
552
616
  function deleteCellSelection(state, dispatch) {
553
617
  const sel = state.selection;
554
618
  if (!(sel instanceof CellSelection)) return false;
@@ -581,6 +645,9 @@ function maybeSetSelection(state, dispatch, selection) {
581
645
  if (dispatch) dispatch(state.tr.setSelection(selection).scrollIntoView());
582
646
  return true;
583
647
  }
648
+ /**
649
+ * @internal
650
+ */
584
651
  function arrow(axis, dir) {
585
652
  return (state, dispatch, view) => {
586
653
  if (!view) return false;
@@ -633,7 +700,7 @@ function atEndOfCell(view, axis, dir) {
633
700
  }
634
701
  new require_dist.PluginKey("tableColumnResizing");
635
702
  //#endregion
636
- //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.11.0_@floating-ui+dom@1.6.13_@tiptap+core@3.11.0_@tiptap+pm@3.11.0__@ti_45b8c35b8241f1f45bcf18bc7e68b71b/node_modules/@tiptap/vue-3/dist/menus/index.js
703
+ //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.29.2_@floating-ui+dom@1.8.0_@tiptap+core@3.29.2_@tiptap+pm@3.29.2__@tip_82ae703f9716de2fe82106636b634245/node_modules/@tiptap/vue-3/dist/menus/index.js
637
704
  function combineDOMRects(rect1, rect2) {
638
705
  const top = Math.min(rect1.top, rect2.top);
639
706
  const bottom = Math.max(rect1.bottom, rect2.bottom);
@@ -643,7 +710,7 @@ function combineDOMRects(rect1, rect2) {
643
710
  return new DOMRect(left, top, width, height);
644
711
  }
645
712
  var BubbleMenuView = class {
646
- constructor({ editor, element, view, updateDelay = 250, resizeDelay = 60, shouldShow, appendTo, getReferencedVirtualElement, options }) {
713
+ constructor({ editor, element, view, pluginKey = "bubbleMenu", updateDelay = 250, resizeDelay = 60, shouldShow, appendTo, getReferencedVirtualElement, options }) {
647
714
  this.preventHide = false;
648
715
  this.isVisible = false;
649
716
  this.scrollTarget = window;
@@ -721,16 +788,30 @@ var BubbleMenuView = class {
721
788
  this.hide();
722
789
  return;
723
790
  }
724
- this.updatePosition();
725
791
  this.show();
792
+ this.updatePosition();
726
793
  };
794
+ /**
795
+ * Handles the transaction event to update the position of the bubble menu.
796
+ * This allows external code to trigger a position update via:
797
+ * `editor.view.dispatch(editor.state.tr.setMeta(pluginKey, 'updatePosition'))`
798
+ * The `pluginKey` defaults to `bubbleMenu`
799
+ */
727
800
  this.transactionHandler = ({ transaction: tr }) => {
728
- if (tr.getMeta("bubbleMenu") === "updatePosition") this.updatePosition();
801
+ const meta = tr.getMeta(this.pluginKey);
802
+ if (meta === "updatePosition") this.updatePosition();
803
+ else if (meta && typeof meta === "object" && meta.type === "updateOptions") this.updateOptions(meta.options);
804
+ else if (meta === "hide") this.hide();
805
+ else if (meta === "show") {
806
+ this.updatePosition();
807
+ this.show();
808
+ }
729
809
  };
730
810
  var _a;
731
811
  this.editor = editor;
732
812
  this.element = element;
733
813
  this.view = view;
814
+ this.pluginKey = pluginKey;
734
815
  this.updateDelay = updateDelay;
735
816
  this.resizeDelay = resizeDelay;
736
817
  this.appendTo = appendTo;
@@ -768,10 +849,11 @@ var BubbleMenuView = class {
768
849
  return middlewares;
769
850
  }
770
851
  get virtualElement() {
771
- var _a;
852
+ var _a, _b, _c;
772
853
  const { selection } = this.editor.state;
773
854
  const referencedVirtualElement = (_a = this.getReferencedVirtualElement) == null ? void 0 : _a.call(this);
774
855
  if (referencedVirtualElement) return referencedVirtualElement;
856
+ if (!((_c = (_b = this.view) == null ? void 0 : _b.dom) == null ? void 0 : _c.parentNode)) return;
775
857
  const domRect = require_dist.posToDOMRect(this.view, selection.from, selection.to);
776
858
  let virtualElement = {
777
859
  getBoundingClientRect: () => domRect,
@@ -802,13 +884,21 @@ var BubbleMenuView = class {
802
884
  return virtualElement;
803
885
  }
804
886
  updatePosition() {
887
+ if (!this.isVisible) return;
805
888
  const virtualElement = this.virtualElement;
806
889
  if (!virtualElement) return;
807
890
  require_PopperContent.computePosition(virtualElement, this.element, {
808
891
  placement: this.floatingUIOptions.placement,
809
892
  strategy: this.floatingUIOptions.strategy,
810
893
  middleware: this.middlewares
811
- }).then(({ x, y, strategy }) => {
894
+ }).then(({ x, y, strategy, middlewareData }) => {
895
+ var _a, _b;
896
+ if (!this.isVisible || this.editor.isDestroyed || !this.element.isConnected) return;
897
+ if (((_a = middlewareData.hide) == null ? void 0 : _a.referenceHidden) || ((_b = middlewareData.hide) == null ? void 0 : _b.escaped)) {
898
+ this.element.style.visibility = "hidden";
899
+ return;
900
+ }
901
+ this.element.style.visibility = "visible";
812
902
  this.element.style.width = "max-content";
813
903
  this.element.style.position = strategy;
814
904
  this.element.style.left = `${x}px`;
@@ -862,6 +952,28 @@ var BubbleMenuView = class {
862
952
  if (this.floatingUIOptions.onHide) this.floatingUIOptions.onHide();
863
953
  this.isVisible = false;
864
954
  }
955
+ updateOptions(newProps) {
956
+ var _a;
957
+ if (newProps.updateDelay !== void 0) this.updateDelay = newProps.updateDelay;
958
+ if (newProps.resizeDelay !== void 0) this.resizeDelay = newProps.resizeDelay;
959
+ if (newProps.appendTo !== void 0) this.appendTo = newProps.appendTo;
960
+ if (newProps.getReferencedVirtualElement !== void 0) this.getReferencedVirtualElement = newProps.getReferencedVirtualElement;
961
+ if (newProps.shouldShow !== void 0) {
962
+ if (newProps.shouldShow) this.shouldShow = newProps.shouldShow;
963
+ }
964
+ if (newProps.options !== void 0) {
965
+ const newScrollTarget = (_a = newProps.options.scrollTarget) != null ? _a : window;
966
+ if (newScrollTarget !== this.scrollTarget) {
967
+ this.scrollTarget.removeEventListener("scroll", this.resizeHandler);
968
+ this.scrollTarget = newScrollTarget;
969
+ this.scrollTarget.addEventListener("scroll", this.resizeHandler);
970
+ }
971
+ this.floatingUIOptions = {
972
+ ...this.floatingUIOptions,
973
+ ...newProps.options
974
+ };
975
+ }
976
+ }
865
977
  destroy() {
866
978
  this.hide();
867
979
  this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: true });
@@ -889,7 +1001,7 @@ var BubbleMenu = (0, vue.defineComponent)({
889
1001
  props: {
890
1002
  pluginKey: {
891
1003
  type: [String, Object],
892
- default: "bubbleMenu"
1004
+ default: void 0
893
1005
  },
894
1006
  editor: {
895
1007
  type: Object,
@@ -908,7 +1020,7 @@ var BubbleMenu = (0, vue.defineComponent)({
908
1020
  default: () => ({})
909
1021
  },
910
1022
  appendTo: {
911
- type: Object,
1023
+ type: [Object, Function],
912
1024
  default: void 0
913
1025
  },
914
1026
  shouldShow: {
@@ -921,9 +1033,11 @@ var BubbleMenu = (0, vue.defineComponent)({
921
1033
  }
922
1034
  },
923
1035
  setup(props, { slots, attrs }) {
1036
+ var _a;
924
1037
  const root = (0, vue.ref)(null);
1038
+ const resolvedPluginKey = (_a = props.pluginKey) != null ? _a : new require_dist.PluginKey("bubbleMenu");
925
1039
  (0, vue.onMounted)(() => {
926
- const { editor, options, pluginKey, resizeDelay, appendTo, shouldShow, getReferencedVirtualElement, updateDelay } = props;
1040
+ const { editor, options, resizeDelay, appendTo, shouldShow, getReferencedVirtualElement, updateDelay } = props;
927
1041
  const el = root.value;
928
1042
  if (!el) return;
929
1043
  el.style.visibility = "hidden";
@@ -934,7 +1048,7 @@ var BubbleMenu = (0, vue.defineComponent)({
934
1048
  editor,
935
1049
  element: el,
936
1050
  options,
937
- pluginKey,
1051
+ pluginKey: resolvedPluginKey,
938
1052
  resizeDelay,
939
1053
  appendTo,
940
1054
  shouldShow,
@@ -944,22 +1058,23 @@ var BubbleMenu = (0, vue.defineComponent)({
944
1058
  });
945
1059
  });
946
1060
  (0, vue.onBeforeUnmount)(() => {
947
- const { pluginKey, editor } = props;
948
- editor.unregisterPlugin(pluginKey);
1061
+ const { editor } = props;
1062
+ editor.unregisterPlugin(resolvedPluginKey);
949
1063
  });
950
1064
  return () => {
951
- var _a;
1065
+ var _a2;
952
1066
  return (0, vue.h)("div", {
953
1067
  ref: root,
954
1068
  ...attrs
955
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
1069
+ }, (_a2 = slots.default) == null ? void 0 : _a2.call(slots));
956
1070
  };
957
1071
  }
958
1072
  });
959
1073
  var FloatingMenuView = class {
960
- constructor({ editor, element, view, options, appendTo, shouldShow }) {
1074
+ constructor({ editor, element, view, pluginKey = "floatingMenu", updateDelay = 250, resizeDelay = 60, options, appendTo, shouldShow }) {
961
1075
  this.preventHide = false;
962
1076
  this.isVisible = false;
1077
+ this.scrollTarget = window;
963
1078
  this.shouldShow = ({ view, state }) => {
964
1079
  const { selection } = state;
965
1080
  const { $anchor, empty } = selection;
@@ -1006,10 +1121,42 @@ var FloatingMenuView = class {
1006
1121
  if ((event == null ? void 0 : event.relatedTarget) === this.editor.view.dom) return;
1007
1122
  this.hide();
1008
1123
  };
1124
+ /**
1125
+ * Handles the transaction event to update the position of the floating menu.
1126
+ * This allows external code to trigger a position update via:
1127
+ * `editor.view.dispatch(editor.state.tr.setMeta(pluginKey, 'updatePosition'))`
1128
+ * The `pluginKey` defaults to `floatingMenu`
1129
+ */
1130
+ this.transactionHandler = ({ transaction: tr }) => {
1131
+ const meta = tr.getMeta(this.pluginKey);
1132
+ if (meta === "updatePosition") this.updatePosition();
1133
+ else if (meta && typeof meta === "object" && meta.type === "updateOptions") this.updateOptions(meta.options);
1134
+ else if (meta === "hide") this.hide();
1135
+ else if (meta === "show") {
1136
+ this.updatePosition();
1137
+ this.show();
1138
+ }
1139
+ };
1140
+ /**
1141
+ * Handles the window resize event to update the position of the floating menu.
1142
+ * It uses a debounce mechanism to prevent excessive updates.
1143
+ * The delay is defined by the `resizeDelay` property.
1144
+ */
1145
+ this.resizeHandler = () => {
1146
+ if (this.resizeDebounceTimer) clearTimeout(this.resizeDebounceTimer);
1147
+ this.resizeDebounceTimer = window.setTimeout(() => {
1148
+ this.updatePosition();
1149
+ }, this.resizeDelay);
1150
+ };
1151
+ var _a;
1009
1152
  this.editor = editor;
1010
1153
  this.element = element;
1011
1154
  this.view = view;
1155
+ this.pluginKey = pluginKey;
1156
+ this.updateDelay = updateDelay;
1157
+ this.resizeDelay = resizeDelay;
1012
1158
  this.appendTo = appendTo;
1159
+ this.scrollTarget = (_a = options == null ? void 0 : options.scrollTarget) != null ? _a : window;
1013
1160
  this.floatingUIOptions = {
1014
1161
  ...this.floatingUIOptions,
1015
1162
  ...options
@@ -1019,6 +1166,9 @@ var FloatingMenuView = class {
1019
1166
  this.element.addEventListener("mousedown", this.mousedownHandler, { capture: true });
1020
1167
  this.editor.on("focus", this.focusHandler);
1021
1168
  this.editor.on("blur", this.blurHandler);
1169
+ this.editor.on("transaction", this.transactionHandler);
1170
+ window.addEventListener("resize", this.resizeHandler);
1171
+ this.scrollTarget.addEventListener("scroll", this.resizeHandler);
1022
1172
  this.update(view, view.state);
1023
1173
  if (this.getShouldShow()) {
1024
1174
  this.show();
@@ -1056,7 +1206,30 @@ var FloatingMenuView = class {
1056
1206
  to
1057
1207
  });
1058
1208
  }
1209
+ updateOptions(newProps) {
1210
+ var _a;
1211
+ if (newProps.updateDelay !== void 0) this.updateDelay = newProps.updateDelay;
1212
+ if (newProps.resizeDelay !== void 0) this.resizeDelay = newProps.resizeDelay;
1213
+ if (newProps.appendTo !== void 0) this.appendTo = newProps.appendTo;
1214
+ if (newProps.shouldShow !== void 0) {
1215
+ if (newProps.shouldShow) this.shouldShow = newProps.shouldShow;
1216
+ }
1217
+ if (newProps.options !== void 0) {
1218
+ const newScrollTarget = (_a = newProps.options.scrollTarget) != null ? _a : window;
1219
+ if (newScrollTarget !== this.scrollTarget) {
1220
+ this.scrollTarget.removeEventListener("scroll", this.resizeHandler);
1221
+ this.scrollTarget = newScrollTarget;
1222
+ this.scrollTarget.addEventListener("scroll", this.resizeHandler);
1223
+ }
1224
+ this.floatingUIOptions = {
1225
+ ...this.floatingUIOptions,
1226
+ ...newProps.options
1227
+ };
1228
+ }
1229
+ }
1059
1230
  updatePosition() {
1231
+ var _a, _b;
1232
+ if (!((_b = (_a = this.view) == null ? void 0 : _a.dom) == null ? void 0 : _b.parentNode)) return;
1060
1233
  const { selection } = this.editor.state;
1061
1234
  const domRect = require_dist.posToDOMRect(this.view, selection.from, selection.to);
1062
1235
  require_PopperContent.computePosition({
@@ -1066,7 +1239,13 @@ var FloatingMenuView = class {
1066
1239
  placement: this.floatingUIOptions.placement,
1067
1240
  strategy: this.floatingUIOptions.strategy,
1068
1241
  middleware: this.middlewares
1069
- }).then(({ x, y, strategy }) => {
1242
+ }).then(({ x, y, strategy, middlewareData }) => {
1243
+ var _a2, _b2;
1244
+ if (((_a2 = middlewareData.hide) == null ? void 0 : _a2.referenceHidden) || ((_b2 = middlewareData.hide) == null ? void 0 : _b2.escaped)) {
1245
+ this.element.style.visibility = "hidden";
1246
+ return;
1247
+ }
1248
+ this.element.style.visibility = "visible";
1070
1249
  this.element.style.width = "max-content";
1071
1250
  this.element.style.position = strategy;
1072
1251
  this.element.style.left = `${x}px`;
@@ -1100,8 +1279,11 @@ var FloatingMenuView = class {
1100
1279
  destroy() {
1101
1280
  this.hide();
1102
1281
  this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: true });
1282
+ window.removeEventListener("resize", this.resizeHandler);
1283
+ this.scrollTarget.removeEventListener("scroll", this.resizeHandler);
1103
1284
  this.editor.off("focus", this.focusHandler);
1104
1285
  this.editor.off("blur", this.blurHandler);
1286
+ this.editor.off("transaction", this.transactionHandler);
1105
1287
  if (this.floatingUIOptions.onDestroy) this.floatingUIOptions.onDestroy();
1106
1288
  }
1107
1289
  };
@@ -1120,18 +1302,26 @@ var FloatingMenuPlugin = (options) => {
1120
1302
  props: {
1121
1303
  pluginKey: {
1122
1304
  type: null,
1123
- default: "floatingMenu"
1305
+ default: void 0
1124
1306
  },
1125
1307
  editor: {
1126
1308
  type: Object,
1127
1309
  required: true
1128
1310
  },
1311
+ updateDelay: {
1312
+ type: Number,
1313
+ default: void 0
1314
+ },
1315
+ resizeDelay: {
1316
+ type: Number,
1317
+ default: void 0
1318
+ },
1129
1319
  options: {
1130
1320
  type: Object,
1131
1321
  default: () => ({})
1132
1322
  },
1133
1323
  appendTo: {
1134
- type: Object,
1324
+ type: [Object, Function],
1135
1325
  default: void 0
1136
1326
  },
1137
1327
  shouldShow: {
@@ -1140,33 +1330,37 @@ var FloatingMenuPlugin = (options) => {
1140
1330
  }
1141
1331
  },
1142
1332
  setup(props, { slots, attrs }) {
1333
+ var _a;
1143
1334
  const root = (0, vue.ref)(null);
1335
+ const resolvedPluginKey = (_a = props.pluginKey) != null ? _a : new require_dist.PluginKey("floatingMenu");
1144
1336
  (0, vue.onMounted)(() => {
1145
- const { pluginKey, editor, options, appendTo, shouldShow } = props;
1337
+ const { editor, updateDelay, resizeDelay, options, appendTo, shouldShow } = props;
1146
1338
  const el = root.value;
1147
1339
  if (!el) return;
1148
1340
  el.style.visibility = "hidden";
1149
1341
  el.style.position = "absolute";
1150
1342
  el.remove();
1151
1343
  editor.registerPlugin(FloatingMenuPlugin({
1152
- pluginKey,
1344
+ pluginKey: resolvedPluginKey,
1153
1345
  editor,
1154
1346
  element: el,
1347
+ updateDelay,
1348
+ resizeDelay,
1155
1349
  options,
1156
1350
  appendTo,
1157
1351
  shouldShow
1158
1352
  }));
1159
1353
  });
1160
1354
  (0, vue.onBeforeUnmount)(() => {
1161
- const { pluginKey, editor } = props;
1162
- editor.unregisterPlugin(pluginKey);
1355
+ const { editor } = props;
1356
+ editor.unregisterPlugin(resolvedPluginKey);
1163
1357
  });
1164
1358
  return () => {
1165
- var _a;
1359
+ var _a2;
1166
1360
  return (0, vue.h)("div", {
1167
1361
  ref: root,
1168
1362
  ...attrs
1169
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
1363
+ }, (_a2 = slots.default) == null ? void 0 : _a2.call(slots));
1170
1364
  };
1171
1365
  }
1172
1366
  });
@@ -1,11 +1,16 @@
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
  let vue = require("vue");
5
4
  //#region src/components/modal/modal-body.vue?vue&type=script&setup=true&lang.ts
6
- var modal_body_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
5
+ var modal_body_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
7
6
  __name: "modal-body",
8
- props: { class: {} },
7
+ props: { class: { type: [
8
+ Boolean,
9
+ null,
10
+ String,
11
+ Object,
12
+ Array
13
+ ] } },
9
14
  setup(__props) {
10
15
  const props = __props;
11
16
  return (_ctx, _cache) => {
@@ -15,7 +20,7 @@ var modal_body_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0,
15
20
  });
16
21
  //#endregion
17
22
  //#region src/components/modal/modal-body.vue
18
- var modal_body_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(modal_body_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8872ed90"]]);
23
+ var modal_body_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(modal_body_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8872ed90"]]);
19
24
  //#endregion
20
25
  Object.defineProperty(exports, "modal_body_default", {
21
26
  enumerable: true,
@@ -1,4 +1,3 @@
1
- require("./chunk.cjs");
2
1
  const require_DialogClose = require("./DialogClose.cjs");
3
2
  let vue = require("vue");
4
3
  //#endregion