@youcan/celeste 0.6.102 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (715) hide show
  1. package/dist/celeste.css +1460 -1458
  2. package/dist/cjs/chunks/BubbleSelect.cjs +332 -0
  3. package/dist/cjs/chunks/CollapsibleRoot.cjs +90 -0
  4. package/dist/cjs/chunks/Collection.cjs +79 -0
  5. package/dist/cjs/chunks/ComboboxContent.cjs +442 -0
  6. package/dist/cjs/chunks/ComboboxGroup.cjs +90 -0
  7. package/dist/cjs/chunks/ComboboxInput.cjs +266 -0
  8. package/dist/cjs/chunks/ComboboxItem.cjs +195 -0
  9. package/dist/cjs/chunks/ComboboxLabel.cjs +47 -0
  10. package/dist/cjs/chunks/ComboboxRoot.cjs +695 -0
  11. package/dist/cjs/chunks/ComboboxSeparator.cjs +35 -0
  12. package/dist/cjs/chunks/ConfigProvider.cjs +11 -0
  13. package/dist/cjs/chunks/DialogClose.cjs +41 -0
  14. package/dist/cjs/chunks/DialogDescription.cjs +38 -0
  15. package/dist/cjs/chunks/DialogPortal.cjs +521 -0
  16. package/dist/cjs/chunks/DialogRoot.cjs +81 -0
  17. package/dist/cjs/chunks/DialogTitle.cjs +38 -0
  18. package/dist/cjs/chunks/DialogTrigger.cjs +57 -0
  19. package/dist/cjs/chunks/DismissableLayer.cjs +292 -0
  20. package/dist/cjs/chunks/DropdownMenuPortal.cjs +73 -0
  21. package/dist/cjs/chunks/DropdownMenuRoot.cjs +87 -0
  22. package/dist/cjs/chunks/FocusScope.cjs +368 -0
  23. package/dist/cjs/chunks/Label.cjs +42 -0
  24. package/dist/cjs/chunks/MenuAnchor.cjs +37 -0
  25. package/dist/cjs/chunks/MenuContentImpl.cjs +371 -0
  26. package/dist/cjs/chunks/MenuGroup.cjs +44 -0
  27. package/dist/cjs/chunks/MenuItemImpl.cjs +100 -0
  28. package/dist/cjs/chunks/MenuRoot.cjs +108 -0
  29. package/dist/cjs/chunks/MenuSub.cjs +68 -0
  30. package/dist/cjs/chunks/PaginationRoot.cjs +101 -0
  31. package/dist/cjs/chunks/PinInputRoot.cjs +153 -0
  32. package/dist/cjs/chunks/PopoverRoot.cjs +73 -0
  33. package/dist/cjs/chunks/PopperAnchor.cjs +48 -0
  34. package/dist/cjs/chunks/PopperArrow.cjs +152 -0
  35. package/dist/cjs/chunks/PopperContent.cjs +2134 -0
  36. package/dist/cjs/chunks/PopperRoot.cjs +32 -0
  37. package/dist/cjs/chunks/Presence.cjs +194 -0
  38. package/dist/cjs/chunks/Primitive.cjs +80 -0
  39. package/dist/cjs/chunks/ProgressIndicator.cjs +161 -0
  40. package/dist/cjs/chunks/RadioGroupRoot.cjs +143 -0
  41. package/dist/cjs/chunks/RovingFocusGroup.cjs +146 -0
  42. package/dist/cjs/chunks/RovingFocusItem.cjs +114 -0
  43. package/dist/cjs/chunks/SelectGroup.cjs +44 -0
  44. package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +593 -0
  45. package/dist/cjs/chunks/TabsRoot.cjs +114 -0
  46. package/dist/cjs/chunks/Teleport.cjs +51 -0
  47. package/dist/cjs/chunks/ToggleGroupRoot.cjs +188 -0
  48. package/dist/cjs/chunks/TooltipProvider.cjs +87 -0
  49. package/dist/cjs/chunks/TooltipRoot.cjs +145 -0
  50. package/dist/cjs/chunks/VisuallyHidden.cjs +65 -0
  51. package/dist/cjs/chunks/VisuallyHiddenInput.cjs +146 -0
  52. package/dist/cjs/chunks/alert.cjs +2 -2
  53. package/dist/cjs/chunks/alpha-slider.cjs +1 -1
  54. package/dist/cjs/chunks/badge.cjs +2 -2
  55. package/dist/cjs/chunks/button.cjs +4 -3
  56. package/dist/cjs/chunks/checkbox-card.cjs +10 -8
  57. package/dist/cjs/chunks/checkbox-label.cjs +11 -9
  58. package/dist/cjs/chunks/checkbox.cjs +234 -9
  59. package/dist/cjs/chunks/chunk.cjs +50 -0
  60. package/dist/cjs/chunks/clamp.cjs +75 -0
  61. package/dist/cjs/chunks/collapsible-content.cjs +105 -2
  62. package/dist/cjs/chunks/collapsible-trigger.cjs +51 -2
  63. package/dist/cjs/chunks/collapsible.cjs +6 -3
  64. package/dist/cjs/chunks/color-area.cjs +4 -4
  65. package/dist/cjs/chunks/color-picker.cjs +14 -13
  66. package/dist/cjs/chunks/color-swatch.cjs +3 -3
  67. package/dist/cjs/chunks/combobox-anchor.cjs +45 -3
  68. package/dist/cjs/chunks/combobox-empty.cjs +31 -3
  69. package/dist/cjs/chunks/combobox-group.cjs +6 -4
  70. package/dist/cjs/chunks/combobox-input.cjs +7 -5
  71. package/dist/cjs/chunks/combobox-item.cjs +8 -6
  72. package/dist/cjs/chunks/combobox-list.cjs +105 -7
  73. package/dist/cjs/chunks/combobox-root.cjs +22 -18
  74. package/dist/cjs/chunks/combobox-separator.cjs +4 -3
  75. package/dist/cjs/chunks/combobox-trigger.cjs +64 -4
  76. package/dist/cjs/chunks/combobox.cjs +38 -30
  77. package/dist/cjs/chunks/compact-button.cjs +4 -3
  78. package/dist/cjs/chunks/components.cjs +47 -47
  79. package/dist/cjs/chunks/content-divider.cjs +87 -2
  80. package/dist/cjs/chunks/core.cjs +3 -3
  81. package/dist/cjs/chunks/counter-input.cjs +884 -8
  82. package/dist/cjs/chunks/createContext.cjs +38 -0
  83. package/dist/cjs/chunks/digit-input-group.cjs +6 -4
  84. package/dist/cjs/chunks/digit-input-slot.cjs +243 -4
  85. package/dist/cjs/chunks/digit-input.cjs +8 -6
  86. package/dist/cjs/chunks/dist.cjs +524 -12084
  87. package/dist/cjs/chunks/dropdown-menu-content.cjs +542 -5
  88. package/dist/cjs/chunks/dropdown-menu-group.cjs +30 -3
  89. package/dist/cjs/chunks/dropdown-menu-item.cjs +125 -4
  90. package/dist/cjs/chunks/dropdown-menu-label.cjs +59 -4
  91. package/dist/cjs/chunks/dropdown-menu-separator.cjs +57 -3
  92. package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +295 -5
  93. package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +192 -4
  94. package/dist/cjs/chunks/dropdown-menu-sub.cjs +39 -2
  95. package/dist/cjs/chunks/dropdown-menu-trigger.cjs +91 -4
  96. package/dist/cjs/chunks/dropdown-menu.cjs +6 -4
  97. package/dist/cjs/chunks/extra-settings.cjs +5 -5
  98. package/dist/cjs/chunks/fancy-button.cjs +4 -3
  99. package/dist/cjs/chunks/file-upload-area.cjs +2 -2
  100. package/dist/cjs/chunks/getActiveElement.cjs +14 -0
  101. package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +18 -0
  102. package/dist/cjs/chunks/hint-text.cjs +2 -2
  103. package/dist/cjs/chunks/hue-slider.cjs +1 -1
  104. package/dist/cjs/chunks/isValueEqualOrExist.cjs +24 -0
  105. package/dist/cjs/chunks/{label.cjs → label2.cjs} +6 -4
  106. package/dist/cjs/chunks/link-bubble.cjs +7 -7
  107. package/dist/cjs/chunks/link-button.cjs +4 -3
  108. package/dist/cjs/chunks/menus.cjs +53 -52
  109. package/dist/cjs/chunks/modal-body.cjs +1 -1
  110. package/dist/cjs/chunks/modal-close.cjs +3 -2
  111. package/dist/cjs/chunks/modal-content.cjs +8 -7
  112. package/dist/cjs/chunks/modal-footer.cjs +1 -1
  113. package/dist/cjs/chunks/modal-header.cjs +8 -5
  114. package/dist/cjs/chunks/modal-trigger.cjs +3 -2
  115. package/dist/cjs/chunks/modal.cjs +7 -4
  116. package/dist/cjs/chunks/nullish.cjs +11 -0
  117. package/dist/cjs/chunks/ohash.D__AXeF1.cjs +114 -0
  118. package/dist/cjs/chunks/pagination-content.cjs +86 -3
  119. package/dist/cjs/chunks/pagination-ellipsis.cjs +30 -3
  120. package/dist/cjs/chunks/pagination-first.cjs +39 -3
  121. package/dist/cjs/chunks/pagination-item.cjs +51 -2
  122. package/dist/cjs/chunks/pagination-last.cjs +39 -3
  123. package/dist/cjs/chunks/pagination-next.cjs +39 -3
  124. package/dist/cjs/chunks/pagination-previous.cjs +39 -3
  125. package/dist/cjs/chunks/pagination.cjs +6 -4
  126. package/dist/cjs/chunks/popover-content.cjs +704 -7
  127. package/dist/cjs/chunks/popover-trigger.cjs +62 -3
  128. package/dist/cjs/chunks/popover.cjs +5 -3
  129. package/dist/cjs/chunks/progress-bar.cjs +7 -5
  130. package/dist/cjs/chunks/progress-circle.cjs +7 -5
  131. package/dist/cjs/chunks/radio-group-card.cjs +10 -8
  132. package/dist/cjs/chunks/radio-group-item.cjs +304 -6
  133. package/dist/cjs/chunks/radio-group-label.cjs +11 -9
  134. package/dist/cjs/chunks/radio-group.cjs +7 -5
  135. package/dist/cjs/chunks/rich-editor.cjs +162 -162
  136. package/dist/cjs/chunks/scroll-area.cjs +142 -6
  137. package/dist/cjs/chunks/scroll-bar.cjs +895 -4
  138. package/dist/cjs/chunks/segmented-control-item.cjs +163 -3
  139. package/dist/cjs/chunks/segmented-control.cjs +8 -4
  140. package/dist/cjs/chunks/select-content.cjs +320 -6
  141. package/dist/cjs/chunks/select-group.cjs +3 -2
  142. package/dist/cjs/chunks/select-icon.cjs +1 -1
  143. package/dist/cjs/chunks/select-item.cjs +227 -5
  144. package/dist/cjs/chunks/select-label.cjs +35 -3
  145. package/dist/cjs/chunks/select-separator.cjs +28 -3
  146. package/dist/cjs/chunks/select-trigger.cjs +165 -4
  147. package/dist/cjs/chunks/select-value.cjs +65 -3
  148. package/dist/cjs/chunks/select.cjs +9 -4
  149. package/dist/cjs/chunks/sheet-close.cjs +4 -3
  150. package/dist/cjs/chunks/sheet-content.cjs +9 -7
  151. package/dist/cjs/chunks/sheet-description.cjs +4 -3
  152. package/dist/cjs/chunks/sheet-footer.cjs +2 -2
  153. package/dist/cjs/chunks/sheet-header.cjs +2 -2
  154. package/dist/cjs/chunks/sheet-title.cjs +4 -3
  155. package/dist/cjs/chunks/sheet-trigger.cjs +3 -2
  156. package/dist/cjs/chunks/sheet.cjs +7 -4
  157. package/dist/cjs/chunks/sidebar-content.cjs +1 -1
  158. package/dist/cjs/chunks/sidebar-element.cjs +3 -2
  159. package/dist/cjs/chunks/sidebar-footer.cjs +1 -1
  160. package/dist/cjs/chunks/sidebar-group-content.cjs +1 -1
  161. package/dist/cjs/chunks/sidebar-group-label.cjs +3 -2
  162. package/dist/cjs/chunks/sidebar-group.cjs +1 -1
  163. package/dist/cjs/chunks/sidebar-header.cjs +1 -1
  164. package/dist/cjs/chunks/sidebar-menu-action.cjs +3 -2
  165. package/dist/cjs/chunks/sidebar-menu-badge.cjs +1 -1
  166. package/dist/cjs/chunks/sidebar-menu-button.cjs +3 -2
  167. package/dist/cjs/chunks/sidebar-menu-item.cjs +1 -1
  168. package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +3 -2
  169. package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +1 -1
  170. package/dist/cjs/chunks/sidebar-menu-sub.cjs +1 -1
  171. package/dist/cjs/chunks/sidebar-menu.cjs +1 -1
  172. package/dist/cjs/chunks/sidebar-provider.cjs +1 -1
  173. package/dist/cjs/chunks/sidebar-trigger.cjs +1 -1
  174. package/dist/cjs/chunks/sidebar.cjs +1 -1
  175. package/dist/cjs/chunks/slider.cjs +751 -7
  176. package/dist/cjs/chunks/social-button.cjs +4 -3
  177. package/dist/cjs/chunks/sonner-alert.cjs +2 -2
  178. package/dist/cjs/chunks/sonner.cjs +1 -1
  179. package/dist/cjs/chunks/status-badge.cjs +2 -2
  180. package/dist/cjs/chunks/switch.cjs +192 -9
  181. package/dist/cjs/chunks/tab-menu-content.cjs +82 -3
  182. package/dist/cjs/chunks/tab-menu-item.cjs +89 -4
  183. package/dist/cjs/chunks/tab-menu-list.cjs +61 -3
  184. package/dist/cjs/chunks/tab-menu.cjs +7 -4
  185. package/dist/cjs/chunks/table-body.cjs +2 -2
  186. package/dist/cjs/chunks/table-caption.cjs +2 -2
  187. package/dist/cjs/chunks/table-cell.cjs +2 -2
  188. package/dist/cjs/chunks/table-footer.cjs +2 -2
  189. package/dist/cjs/chunks/table-head.cjs +2 -2
  190. package/dist/cjs/chunks/table-header.cjs +1 -1
  191. package/dist/cjs/chunks/table-row.cjs +2 -2
  192. package/dist/cjs/chunks/table.cjs +2 -2
  193. package/dist/cjs/chunks/table2.cjs +2 -2
  194. package/dist/cjs/chunks/tag.cjs +4 -3
  195. package/dist/cjs/chunks/text-input-affix.cjs +1 -1
  196. package/dist/cjs/chunks/text-input-button.cjs +12 -6
  197. package/dist/cjs/chunks/text-input.cjs +9 -8
  198. package/dist/cjs/chunks/textarea.cjs +2 -2
  199. package/dist/cjs/chunks/tooltip-content.cjs +589 -7
  200. package/dist/cjs/chunks/tooltip-provider.cjs +5 -3
  201. package/dist/cjs/chunks/tooltip-root.cjs +5 -3
  202. package/dist/cjs/chunks/tooltip-trigger.cjs +109 -3
  203. package/dist/cjs/chunks/tooltip.cjs +8 -5
  204. package/dist/cjs/chunks/use-color-model.cjs +1 -1
  205. package/dist/cjs/chunks/useArrowNavigation.cjs +65 -0
  206. package/dist/cjs/chunks/useComposing.cjs +27 -0
  207. package/dist/cjs/chunks/useDirection.cjs +20 -0
  208. package/dist/cjs/chunks/useEmitAsProps.cjs +34 -0
  209. package/dist/cjs/chunks/useFocusGuards.cjs +40 -0
  210. package/dist/cjs/chunks/useFormControl.cjs +14 -0
  211. package/dist/cjs/chunks/useForwardExpose.cjs +64 -0
  212. package/dist/cjs/chunks/useForwardProps.cjs +40 -0
  213. package/dist/cjs/chunks/useForwardPropsEmits.cjs +20 -0
  214. package/dist/cjs/chunks/useForwardScopeId.cjs +31 -0
  215. package/dist/cjs/chunks/useHideOthers.cjs +138 -0
  216. package/dist/cjs/chunks/useId.cjs +30 -0
  217. package/dist/cjs/chunks/useKbd.cjs +46 -0
  218. package/dist/cjs/chunks/useNonce.cjs +15 -0
  219. package/dist/cjs/chunks/usePrimitiveElement.cjs +18 -0
  220. package/dist/cjs/chunks/useSize.cjs +55 -0
  221. package/dist/cjs/chunks/useTypeahead.cjs +69 -0
  222. package/dist/cjs/chunks/utils.cjs +117 -0
  223. package/dist/cjs/chunks/utils2.cjs +73 -0
  224. package/dist/cjs/chunks/utils3.cjs +20 -0
  225. package/dist/cjs/command-group.cjs +6 -4
  226. package/dist/cjs/command-input.cjs +9 -6
  227. package/dist/cjs/command-item.cjs +6 -3
  228. package/dist/cjs/command-list.cjs +14 -7
  229. package/dist/cjs/command-root.cjs +20 -16
  230. package/dist/cjs/command-separator.cjs +4 -3
  231. package/dist/cjs/config.cjs +2 -2
  232. package/dist/cjs/index.cjs +47 -47
  233. package/dist/cjs/label.cjs +1 -1
  234. package/dist/cjs/use-delegated-props.cjs +1 -1
  235. package/dist/cjs/use-sidebar.cjs +2 -2
  236. package/dist/cjs/use-user-select.cjs +1 -1
  237. package/dist/components/alert/alert.d.ts +17 -14
  238. package/dist/components/badge/badge.d.ts +2 -2
  239. package/dist/components/badge/status-badge.d.ts +2 -2
  240. package/dist/components/button/button.d.ts +11 -8
  241. package/dist/components/button/compact-button.d.ts +4 -4
  242. package/dist/components/button/fancy-button.d.ts +11 -8
  243. package/dist/components/button/link-button.d.ts +11 -8
  244. package/dist/components/button/social-button.d.ts +2 -2
  245. package/dist/components/checkbox/checkbox-card.d.ts +1 -1
  246. package/dist/components/checkbox/checkbox-label.d.ts +1 -1
  247. package/dist/components/checkbox/checkbox.d.ts +3 -3
  248. package/dist/components/collapsible/collapsible-content.d.ts +7 -4
  249. package/dist/components/collapsible/collapsible-trigger.d.ts +7 -4
  250. package/dist/components/collapsible/collapsible.d.ts +12 -9
  251. package/dist/components/color-picker/alpha-slider.d.ts +2 -2
  252. package/dist/components/color-picker/color-area.d.ts +1 -1
  253. package/dist/components/color-picker/color-picker.d.ts +11 -8
  254. package/dist/components/color-picker/color-swatch.d.ts +2 -2
  255. package/dist/components/color-picker/composable/use-color-model.d.ts +1 -1
  256. package/dist/components/combobox/combobox-anchor.d.ts +1 -1
  257. package/dist/components/combobox/combobox-empty.d.ts +1 -1
  258. package/dist/components/combobox/combobox-group.d.ts +1 -1
  259. package/dist/components/combobox/combobox-input.d.ts +1 -1
  260. package/dist/components/combobox/combobox-item.d.ts +13 -10
  261. package/dist/components/combobox/combobox-list.d.ts +8 -8
  262. package/dist/components/combobox/combobox-root.d.ts +11 -7
  263. package/dist/components/combobox/combobox-separator.d.ts +1 -1
  264. package/dist/components/combobox/combobox-trigger.d.ts +9 -6
  265. package/dist/components/combobox/combobox.d.ts +26 -19
  266. package/dist/components/content-divider/content-divider.d.ts +3 -3
  267. package/dist/components/counter-input/counter-input.d.ts +2 -2
  268. package/dist/components/digit-input/digit-input-group.d.ts +1 -1
  269. package/dist/components/digit-input/digit-input-slot.d.ts +1 -1
  270. package/dist/components/digit-input/digit-input.d.ts +25 -24
  271. package/dist/components/dropdown-menu/dropdown-menu-content.d.ts +7 -7
  272. package/dist/components/dropdown-menu/dropdown-menu-group.d.ts +1 -1
  273. package/dist/components/dropdown-menu/dropdown-menu-item.d.ts +1 -1
  274. package/dist/components/dropdown-menu/dropdown-menu-label.d.ts +1 -1
  275. package/dist/components/dropdown-menu/dropdown-menu-separator.d.ts +1 -1
  276. package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +7 -7
  277. package/dist/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +1 -1
  278. package/dist/components/dropdown-menu/dropdown-menu-sub.d.ts +1 -1
  279. package/dist/components/dropdown-menu/dropdown-menu-trigger.d.ts +1 -1
  280. package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -1
  281. package/dist/components/file-upload/file-upload-area.d.ts +8 -7
  282. package/dist/components/hint-text/hint-text.d.ts +2 -2
  283. package/dist/components/label/label.d.ts +1 -1
  284. package/dist/components/modal/modal-close.d.ts +1 -1
  285. package/dist/components/modal/modal-content.d.ts +7 -7
  286. package/dist/components/modal/modal-trigger.d.ts +1 -1
  287. package/dist/components/modal/modal.d.ts +1 -1
  288. package/dist/components/pagination/pagination-content.d.ts +14 -11
  289. package/dist/components/pagination/pagination-ellipsis.d.ts +7 -4
  290. package/dist/components/pagination/pagination-first.d.ts +7 -4
  291. package/dist/components/pagination/pagination-item.d.ts +7 -4
  292. package/dist/components/pagination/pagination-last.d.ts +7 -4
  293. package/dist/components/pagination/pagination-next.d.ts +7 -4
  294. package/dist/components/pagination/pagination-previous.d.ts +7 -4
  295. package/dist/components/pagination/pagination.d.ts +24 -21
  296. package/dist/components/popover/popover-content.d.ts +22 -19
  297. package/dist/components/popover/popover-trigger.d.ts +1 -1
  298. package/dist/components/popover/popover.d.ts +1 -1
  299. package/dist/components/progress/progress-bar.d.ts +1 -1
  300. package/dist/components/progress/progress-circle.d.ts +1 -1
  301. package/dist/components/radio-group/radio-group-card.d.ts +1 -1
  302. package/dist/components/radio-group/radio-group-item.d.ts +1 -1
  303. package/dist/components/radio-group/radio-group-label.d.ts +1 -1
  304. package/dist/components/radio-group/radio-group.d.ts +3 -3
  305. package/dist/components/scroll-area/scroll-area.d.ts +1 -1
  306. package/dist/components/scroll-area/scroll-bar.d.ts +1 -1
  307. package/dist/components/segmented-control/segmented-control-item.d.ts +1 -1
  308. package/dist/components/segmented-control/segmented-control.d.ts +3 -3
  309. package/dist/components/select/select-content.d.ts +3 -3
  310. package/dist/components/select/select-group.d.ts +1 -1
  311. package/dist/components/select/select-item.d.ts +1 -1
  312. package/dist/components/select/select-label.d.ts +1 -1
  313. package/dist/components/select/select-separator.d.ts +1 -1
  314. package/dist/components/select/select-trigger.d.ts +1 -1
  315. package/dist/components/select/select-value.d.ts +1 -1
  316. package/dist/components/select/select.d.ts +3 -3
  317. package/dist/components/sheet/sheet-close.d.ts +7 -4
  318. package/dist/components/sheet/sheet-content.d.ts +16 -13
  319. package/dist/components/sheet/sheet-description.d.ts +7 -4
  320. package/dist/components/sheet/sheet-footer.d.ts +6 -3
  321. package/dist/components/sheet/sheet-header.d.ts +6 -3
  322. package/dist/components/sheet/sheet-title.d.ts +7 -4
  323. package/dist/components/sheet/sheet-trigger.d.ts +7 -4
  324. package/dist/components/sheet/sheet.d.ts +1 -1
  325. package/dist/components/sidebar/sidebar-element.d.ts +9 -6
  326. package/dist/components/sidebar/sidebar-footer.d.ts +6 -3
  327. package/dist/components/sidebar/sidebar-group-label.d.ts +1 -1
  328. package/dist/components/sidebar/sidebar-header.d.ts +6 -3
  329. package/dist/components/sidebar/sidebar-menu-action.d.ts +9 -6
  330. package/dist/components/sidebar/sidebar-menu-badge.d.ts +2 -2
  331. package/dist/components/sidebar/sidebar-menu-button.d.ts +2 -2
  332. package/dist/components/sidebar/sidebar-menu-sub-button.d.ts +11 -8
  333. package/dist/components/sidebar/sidebar-separator.d.ts +1 -1
  334. package/dist/components/sidebar/sidebar.d.ts +11 -8
  335. package/dist/components/slider/slider.d.ts +1 -1
  336. package/dist/components/sonner/sonner.d.ts +1 -1
  337. package/dist/components/switch/switch.d.ts +3 -3
  338. package/dist/components/tab-menu/tab-menu-content.d.ts +1 -1
  339. package/dist/components/tab-menu/tab-menu-item.d.ts +1 -1
  340. package/dist/components/tab-menu/tab-menu-list.d.ts +1 -1
  341. package/dist/components/tab-menu/tab-menu.d.ts +3 -3
  342. package/dist/components/table/table-body.d.ts +6 -3
  343. package/dist/components/table/table-caption.d.ts +6 -3
  344. package/dist/components/table/table-cell.d.ts +8 -5
  345. package/dist/components/table/table-empty.d.ts +8 -5
  346. package/dist/components/table/table-footer.d.ts +6 -3
  347. package/dist/components/table/table-head.d.ts +8 -5
  348. package/dist/components/table/table-header.d.ts +6 -3
  349. package/dist/components/table/table-row.d.ts +8 -5
  350. package/dist/components/table/table.d.ts +6 -3
  351. package/dist/components/tag/tag.d.ts +11 -8
  352. package/dist/components/text-input/text-input-button.d.ts +1 -1
  353. package/dist/components/text-input/text-input.d.ts +24 -20
  354. package/dist/components/textarea/textarea.d.ts +9 -8
  355. package/dist/components/tooltip/tooltip-content.d.ts +10 -7
  356. package/dist/components/tooltip/tooltip-provider.d.ts +9 -6
  357. package/dist/components/tooltip/tooltip-root.d.ts +10 -7
  358. package/dist/components/tooltip/tooltip-trigger.d.ts +7 -4
  359. package/dist/components/tooltip/tooltip.d.ts +10 -7
  360. package/dist/es/chunks/BubbleSelect.js +290 -0
  361. package/dist/es/chunks/CollapsibleRoot.js +78 -0
  362. package/dist/es/chunks/Collection.js +73 -0
  363. package/dist/es/chunks/ComboboxContent.js +436 -0
  364. package/dist/es/chunks/ComboboxGroup.js +78 -0
  365. package/dist/es/chunks/ComboboxInput.js +260 -0
  366. package/dist/es/chunks/ComboboxItem.js +189 -0
  367. package/dist/es/chunks/ComboboxLabel.js +41 -0
  368. package/dist/es/chunks/ComboboxRoot.js +671 -0
  369. package/dist/es/chunks/ComboboxSeparator.js +29 -0
  370. package/dist/es/chunks/ConfigProvider.js +6 -0
  371. package/dist/es/chunks/DialogClose.js +35 -0
  372. package/dist/es/chunks/DialogDescription.js +32 -0
  373. package/dist/es/chunks/DialogPortal.js +503 -0
  374. package/dist/es/chunks/DialogRoot.js +69 -0
  375. package/dist/es/chunks/DialogTitle.js +32 -0
  376. package/dist/es/chunks/DialogTrigger.js +51 -0
  377. package/dist/es/chunks/DismissableLayer.js +280 -0
  378. package/dist/es/chunks/DropdownMenuPortal.js +67 -0
  379. package/dist/es/chunks/DropdownMenuRoot.js +75 -0
  380. package/dist/es/chunks/FocusScope.js +356 -0
  381. package/dist/es/chunks/Label.js +36 -0
  382. package/dist/es/chunks/MenuAnchor.js +31 -0
  383. package/dist/es/chunks/MenuContentImpl.js +359 -0
  384. package/dist/es/chunks/MenuGroup.js +32 -0
  385. package/dist/es/chunks/MenuItemImpl.js +94 -0
  386. package/dist/es/chunks/MenuRoot.js +84 -0
  387. package/dist/es/chunks/MenuSub.js +56 -0
  388. package/dist/es/chunks/PaginationRoot.js +89 -0
  389. package/dist/es/chunks/PinInputRoot.js +141 -0
  390. package/dist/es/chunks/PopoverRoot.js +61 -0
  391. package/dist/es/chunks/PopperAnchor.js +42 -0
  392. package/dist/es/chunks/PopperArrow.js +146 -0
  393. package/dist/es/chunks/PopperContent.js +2089 -0
  394. package/dist/es/chunks/PopperRoot.js +20 -0
  395. package/dist/es/chunks/Presence.js +182 -0
  396. package/dist/es/chunks/Primitive.js +62 -0
  397. package/dist/es/chunks/ProgressIndicator.js +149 -0
  398. package/dist/es/chunks/RadioGroupRoot.js +131 -0
  399. package/dist/es/chunks/RovingFocusGroup.js +134 -0
  400. package/dist/es/chunks/RovingFocusItem.js +108 -0
  401. package/dist/es/chunks/SelectGroup.js +32 -0
  402. package/dist/es/chunks/SelectItemAlignedPosition.js +563 -0
  403. package/dist/es/chunks/TabsRoot.js +102 -0
  404. package/dist/es/chunks/Teleport.js +45 -0
  405. package/dist/es/chunks/ToggleGroupRoot.js +176 -0
  406. package/dist/es/chunks/TooltipProvider.js +75 -0
  407. package/dist/es/chunks/TooltipRoot.js +127 -0
  408. package/dist/es/chunks/VisuallyHidden.js +59 -0
  409. package/dist/es/chunks/VisuallyHiddenInput.js +140 -0
  410. package/dist/es/chunks/alert.js +1 -1
  411. package/dist/es/chunks/badge.js +1 -1
  412. package/dist/es/chunks/button.js +3 -3
  413. package/dist/es/chunks/checkbox-card.js +9 -8
  414. package/dist/es/chunks/checkbox-label.js +10 -9
  415. package/dist/es/chunks/checkbox.js +234 -10
  416. package/dist/es/chunks/clamp.js +64 -0
  417. package/dist/es/chunks/collapsible-content.js +105 -3
  418. package/dist/es/chunks/collapsible-trigger.js +50 -2
  419. package/dist/es/chunks/collapsible.js +5 -3
  420. package/dist/es/chunks/color-area.js +3 -3
  421. package/dist/es/chunks/color-picker.js +13 -13
  422. package/dist/es/chunks/color-swatch.js +2 -2
  423. package/dist/es/chunks/combobox-anchor.js +45 -4
  424. package/dist/es/chunks/combobox-empty.js +30 -4
  425. package/dist/es/chunks/combobox-group.js +5 -4
  426. package/dist/es/chunks/combobox-input.js +6 -5
  427. package/dist/es/chunks/combobox-item.js +7 -6
  428. package/dist/es/chunks/combobox-list.js +104 -8
  429. package/dist/es/chunks/combobox-root.js +21 -18
  430. package/dist/es/chunks/combobox-separator.js +3 -3
  431. package/dist/es/chunks/combobox-trigger.js +63 -5
  432. package/dist/es/chunks/combobox.js +38 -31
  433. package/dist/es/chunks/compact-button.js +3 -3
  434. package/dist/es/chunks/components.js +46 -46
  435. package/dist/es/chunks/content-divider.js +87 -3
  436. package/dist/es/chunks/core.js +2 -2
  437. package/dist/es/chunks/counter-input.js +884 -9
  438. package/dist/es/chunks/createContext.js +32 -0
  439. package/dist/es/chunks/digit-input-group.js +5 -4
  440. package/dist/es/chunks/digit-input-slot.js +242 -5
  441. package/dist/es/chunks/digit-input.js +7 -6
  442. package/dist/es/chunks/dist.js +486 -11478
  443. package/dist/es/chunks/dropdown-menu-content.js +541 -6
  444. package/dist/es/chunks/dropdown-menu-group.js +29 -4
  445. package/dist/es/chunks/dropdown-menu-item.js +125 -5
  446. package/dist/es/chunks/dropdown-menu-label.js +58 -5
  447. package/dist/es/chunks/dropdown-menu-separator.js +56 -4
  448. package/dist/es/chunks/dropdown-menu-sub-content.js +294 -6
  449. package/dist/es/chunks/dropdown-menu-sub-trigger.js +192 -5
  450. package/dist/es/chunks/dropdown-menu-sub.js +40 -4
  451. package/dist/es/chunks/dropdown-menu-trigger.js +90 -5
  452. package/dist/es/chunks/dropdown-menu.js +5 -4
  453. package/dist/es/chunks/extra-settings.js +4 -4
  454. package/dist/es/chunks/fancy-button.js +3 -3
  455. package/dist/es/chunks/file-upload-area.js +1 -1
  456. package/dist/es/chunks/getActiveElement.js +9 -0
  457. package/dist/es/chunks/handleAndDispatchCustomEvent.js +13 -0
  458. package/dist/es/chunks/hint-text.js +1 -1
  459. package/dist/es/chunks/isValueEqualOrExist.js +19 -0
  460. package/dist/es/chunks/{label.js → label2.js} +5 -4
  461. package/dist/es/chunks/link-bubble.js +6 -6
  462. package/dist/es/chunks/link-button.js +3 -3
  463. package/dist/es/chunks/menus.js +2 -2
  464. package/dist/es/chunks/modal-close.js +2 -2
  465. package/dist/es/chunks/modal-content.js +7 -7
  466. package/dist/es/chunks/modal-header.js +7 -5
  467. package/dist/es/chunks/modal-trigger.js +2 -2
  468. package/dist/es/chunks/modal.js +6 -4
  469. package/dist/es/chunks/nullish.js +6 -0
  470. package/dist/es/chunks/ohash.D__AXeF1.js +109 -0
  471. package/dist/es/chunks/pagination-content.js +85 -4
  472. package/dist/es/chunks/pagination-ellipsis.js +29 -4
  473. package/dist/es/chunks/pagination-first.js +39 -4
  474. package/dist/es/chunks/pagination-item.js +51 -3
  475. package/dist/es/chunks/pagination-last.js +39 -4
  476. package/dist/es/chunks/pagination-next.js +39 -4
  477. package/dist/es/chunks/pagination-previous.js +39 -4
  478. package/dist/es/chunks/pagination.js +5 -4
  479. package/dist/es/chunks/popover-content.js +704 -8
  480. package/dist/es/chunks/popover-trigger.js +61 -4
  481. package/dist/es/chunks/popover.js +4 -3
  482. package/dist/es/chunks/progress-bar.js +6 -5
  483. package/dist/es/chunks/progress-circle.js +6 -5
  484. package/dist/es/chunks/radio-group-card.js +9 -8
  485. package/dist/es/chunks/radio-group-item.js +304 -7
  486. package/dist/es/chunks/radio-group-label.js +10 -9
  487. package/dist/es/chunks/radio-group.js +6 -5
  488. package/dist/es/chunks/rich-editor.js +5 -5
  489. package/dist/es/chunks/scroll-area.js +141 -7
  490. package/dist/es/chunks/scroll-bar.js +883 -6
  491. package/dist/es/chunks/segmented-control-item.js +162 -4
  492. package/dist/es/chunks/segmented-control.js +7 -4
  493. package/dist/es/chunks/select-content.js +319 -7
  494. package/dist/es/chunks/select-group.js +2 -2
  495. package/dist/es/chunks/select-item.js +226 -6
  496. package/dist/es/chunks/select-label.js +33 -3
  497. package/dist/es/chunks/select-separator.js +27 -4
  498. package/dist/es/chunks/select-trigger.js +164 -5
  499. package/dist/es/chunks/select-value.js +64 -4
  500. package/dist/es/chunks/select.js +8 -4
  501. package/dist/es/chunks/sheet-close.js +3 -3
  502. package/dist/es/chunks/sheet-content.js +8 -7
  503. package/dist/es/chunks/sheet-description.js +3 -3
  504. package/dist/es/chunks/sheet-footer.js +1 -1
  505. package/dist/es/chunks/sheet-header.js +1 -1
  506. package/dist/es/chunks/sheet-title.js +3 -3
  507. package/dist/es/chunks/sheet-trigger.js +2 -2
  508. package/dist/es/chunks/sheet.js +6 -4
  509. package/dist/es/chunks/sidebar-element.js +2 -2
  510. package/dist/es/chunks/sidebar-group-label.js +2 -2
  511. package/dist/es/chunks/sidebar-menu-action.js +2 -2
  512. package/dist/es/chunks/sidebar-menu-button.js +2 -2
  513. package/dist/es/chunks/sidebar-menu-sub-button.js +2 -2
  514. package/dist/es/chunks/slider.js +751 -8
  515. package/dist/es/chunks/social-button.js +3 -3
  516. package/dist/es/chunks/sonner-alert.js +1 -1
  517. package/dist/es/chunks/status-badge.js +1 -1
  518. package/dist/es/chunks/switch.js +192 -10
  519. package/dist/es/chunks/tab-menu-content.js +81 -4
  520. package/dist/es/chunks/tab-menu-item.js +89 -5
  521. package/dist/es/chunks/tab-menu-list.js +60 -4
  522. package/dist/es/chunks/tab-menu.js +6 -4
  523. package/dist/es/chunks/table-body.js +1 -1
  524. package/dist/es/chunks/table-caption.js +1 -1
  525. package/dist/es/chunks/table-cell.js +1 -1
  526. package/dist/es/chunks/table-footer.js +1 -1
  527. package/dist/es/chunks/table-head.js +1 -1
  528. package/dist/es/chunks/table-row.js +1 -1
  529. package/dist/es/chunks/table.js +1 -1
  530. package/dist/es/chunks/table2.js +1 -1
  531. package/dist/es/chunks/tag.js +3 -3
  532. package/dist/es/chunks/text-input-button.js +11 -5
  533. package/dist/es/chunks/text-input.js +8 -8
  534. package/dist/es/chunks/textarea.js +1 -1
  535. package/dist/es/chunks/tooltip-content.js +589 -8
  536. package/dist/es/chunks/tooltip-provider.js +4 -3
  537. package/dist/es/chunks/tooltip-root.js +4 -3
  538. package/dist/es/chunks/tooltip-trigger.js +109 -4
  539. package/dist/es/chunks/tooltip.js +7 -5
  540. package/dist/es/chunks/useArrowNavigation.js +60 -0
  541. package/dist/es/chunks/useComposing.js +21 -0
  542. package/dist/es/chunks/useDirection.js +14 -0
  543. package/dist/es/chunks/useEmitAsProps.js +28 -0
  544. package/dist/es/chunks/useFocusGuards.js +34 -0
  545. package/dist/es/chunks/useFormControl.js +8 -0
  546. package/dist/es/chunks/useForwardExpose.js +58 -0
  547. package/dist/es/chunks/useForwardProps.js +34 -0
  548. package/dist/es/chunks/useForwardPropsEmits.js +14 -0
  549. package/dist/es/chunks/useForwardScopeId.js +25 -0
  550. package/dist/es/chunks/useHideOthers.js +132 -0
  551. package/dist/es/chunks/useId.js +23 -0
  552. package/dist/es/chunks/useKbd.js +41 -0
  553. package/dist/es/chunks/useNonce.js +9 -0
  554. package/dist/es/chunks/usePrimitiveElement.js +12 -0
  555. package/dist/es/chunks/useSize.js +49 -0
  556. package/dist/es/chunks/useTypeahead.js +64 -0
  557. package/dist/es/chunks/utils.js +58 -0
  558. package/dist/es/chunks/utils2.js +44 -0
  559. package/dist/es/chunks/utils3.js +9 -0
  560. package/dist/es/command-group.js +5 -4
  561. package/dist/es/command-input.js +8 -6
  562. package/dist/es/command-item.js +5 -3
  563. package/dist/es/command-list.js +13 -7
  564. package/dist/es/command-root.js +19 -16
  565. package/dist/es/command-separator.js +3 -3
  566. package/dist/es/config.js +1 -1
  567. package/dist/es/index.js +46 -46
  568. package/dist/es/label.js +1 -1
  569. package/dist/es/use-sidebar.js +2 -2
  570. package/dist/utils/sonner.d.ts +1 -1
  571. package/package.json +11 -11
  572. package/src/components/alert/alert.vue +8 -10
  573. package/src/components/badge/badge.vue +7 -9
  574. package/src/components/badge/status-badge.vue +10 -11
  575. package/src/components/button/button.vue +9 -10
  576. package/src/components/button/compact-button.vue +8 -9
  577. package/src/components/button/fancy-button.vue +10 -11
  578. package/src/components/button/link-button.vue +8 -9
  579. package/src/components/button/social-button.vue +5 -7
  580. package/src/components/checkbox/checkbox-card.vue +2 -2
  581. package/src/components/checkbox/checkbox-label.vue +2 -1
  582. package/src/components/checkbox/checkbox.vue +2 -2
  583. package/src/components/checkbox/stories/checkbox.stories.ts +4 -5
  584. package/src/components/collapsible/collapsible-content.vue +4 -6
  585. package/src/components/collapsible/collapsible-trigger.vue +4 -6
  586. package/src/components/collapsible/collapsible.vue +4 -6
  587. package/src/components/color-picker/alpha-slider.vue +8 -10
  588. package/src/components/color-picker/color-area.vue +8 -10
  589. package/src/components/color-picker/color-picker.vue +43 -43
  590. package/src/components/color-picker/color-swatch.vue +11 -13
  591. package/src/components/color-picker/composable/use-color-model.ts +2 -1
  592. package/src/components/color-picker/composable/use-user-select.ts +2 -1
  593. package/src/components/combobox/combobox-anchor.vue +4 -3
  594. package/src/components/combobox/combobox-empty.vue +4 -3
  595. package/src/components/combobox/combobox-group.vue +5 -4
  596. package/src/components/combobox/combobox-input.vue +6 -3
  597. package/src/components/combobox/combobox-item.vue +19 -20
  598. package/src/components/combobox/combobox-list.vue +7 -6
  599. package/src/components/combobox/combobox-root.vue +2 -1
  600. package/src/components/combobox/combobox-separator.vue +4 -3
  601. package/src/components/combobox/combobox-trigger.vue +25 -23
  602. package/src/components/combobox/combobox.vue +38 -32
  603. package/src/components/command/command-group.vue +4 -3
  604. package/src/components/command/command-input.vue +4 -2
  605. package/src/components/command/command-item.vue +4 -3
  606. package/src/components/command/command-list.vue +5 -6
  607. package/src/components/command/command-root.vue +4 -3
  608. package/src/components/command/command-separator.vue +4 -3
  609. package/src/components/content-divider/content-divider.vue +7 -9
  610. package/src/components/counter-input/counter-input.vue +2 -1
  611. package/src/components/digit-input/digit-input-group.vue +2 -1
  612. package/src/components/digit-input/digit-input-slot.vue +2 -1
  613. package/src/components/digit-input/digit-input.vue +8 -5
  614. package/src/components/digit-input/stories/digit-input.stories.ts +13 -3
  615. package/src/components/dropdown-menu/dropdown-menu-content.vue +4 -4
  616. package/src/components/dropdown-menu/dropdown-menu-group.vue +2 -1
  617. package/src/components/dropdown-menu/dropdown-menu-item.vue +2 -1
  618. package/src/components/dropdown-menu/dropdown-menu-label.vue +2 -1
  619. package/src/components/dropdown-menu/dropdown-menu-separator.vue +3 -2
  620. package/src/components/dropdown-menu/dropdown-menu-sub-content.vue +4 -4
  621. package/src/components/dropdown-menu/dropdown-menu-sub-trigger.vue +3 -2
  622. package/src/components/dropdown-menu/dropdown-menu-sub.vue +3 -3
  623. package/src/components/dropdown-menu/dropdown-menu-trigger.vue +2 -1
  624. package/src/components/dropdown-menu/dropdown-menu.vue +2 -2
  625. package/src/components/file-upload/file-upload-area.vue +26 -27
  626. package/src/components/file-upload/stories/file-upload-area.stories.ts +2 -1
  627. package/src/components/hint-text/hint-text.vue +4 -6
  628. package/src/components/label/label.vue +2 -1
  629. package/src/components/modal/modal-close.vue +2 -1
  630. package/src/components/modal/modal-content.vue +2 -2
  631. package/src/components/modal/modal-header.vue +1 -1
  632. package/src/components/modal/modal-trigger.vue +2 -2
  633. package/src/components/modal/modal.vue +2 -2
  634. package/src/components/pagination/pagination-content.vue +6 -7
  635. package/src/components/pagination/pagination-ellipsis.vue +6 -7
  636. package/src/components/pagination/pagination-first.vue +6 -7
  637. package/src/components/pagination/pagination-item.vue +6 -7
  638. package/src/components/pagination/pagination-last.vue +6 -7
  639. package/src/components/pagination/pagination-next.vue +6 -7
  640. package/src/components/pagination/pagination-previous.vue +7 -8
  641. package/src/components/pagination/pagination.vue +7 -8
  642. package/src/components/popover/popover-content.vue +19 -20
  643. package/src/components/popover/popover-trigger.vue +2 -1
  644. package/src/components/popover/popover.vue +2 -2
  645. package/src/components/popover/stories/popover.stories.ts +1 -1
  646. package/src/components/progress/progress-bar.vue +5 -3
  647. package/src/components/progress/progress-circle.vue +3 -2
  648. package/src/components/radio-group/radio-group-card.vue +2 -2
  649. package/src/components/radio-group/radio-group-item.vue +2 -1
  650. package/src/components/radio-group/radio-group-label.vue +2 -1
  651. package/src/components/radio-group/radio-group.vue +2 -1
  652. package/src/components/rich-editor/config.ts +1 -1
  653. package/src/components/rich-editor/extra-settings.vue +1 -1
  654. package/src/components/rich-editor/link-bubble.vue +1 -1
  655. package/src/components/rich-editor/rich-editor.vue +3 -2
  656. package/src/components/scroll-area/scroll-area.vue +3 -2
  657. package/src/components/scroll-area/scroll-bar.vue +2 -1
  658. package/src/components/segmented-control/segmented-control-item.vue +2 -1
  659. package/src/components/segmented-control/segmented-control.vue +2 -1
  660. package/src/components/select/select-content.vue +4 -3
  661. package/src/components/select/select-group.vue +2 -1
  662. package/src/components/select/select-item.vue +2 -1
  663. package/src/components/select/select-label.vue +2 -1
  664. package/src/components/select/select-separator.vue +2 -1
  665. package/src/components/select/select-trigger.vue +2 -1
  666. package/src/components/select/select-value.vue +2 -1
  667. package/src/components/select/select.vue +2 -1
  668. package/src/components/sheet/sheet-close.vue +4 -6
  669. package/src/components/sheet/sheet-content.vue +7 -9
  670. package/src/components/sheet/sheet-description.vue +6 -8
  671. package/src/components/sheet/sheet-footer.vue +2 -4
  672. package/src/components/sheet/sheet-header.vue +2 -4
  673. package/src/components/sheet/sheet-title.vue +6 -8
  674. package/src/components/sheet/sheet-trigger.vue +4 -6
  675. package/src/components/sheet/sheet.vue +2 -2
  676. package/src/components/sidebar/sidebar-element.vue +6 -8
  677. package/src/components/sidebar/sidebar-footer.vue +2 -4
  678. package/src/components/sidebar/sidebar-group-label.vue +2 -2
  679. package/src/components/sidebar/sidebar-header.vue +2 -4
  680. package/src/components/sidebar/sidebar-menu-action.vue +6 -8
  681. package/src/components/sidebar/sidebar-menu-badge.vue +6 -8
  682. package/src/components/sidebar/sidebar-menu-button.vue +2 -2
  683. package/src/components/sidebar/sidebar-menu-sub-button.vue +8 -10
  684. package/src/components/sidebar/sidebar-separator.vue +2 -4
  685. package/src/components/sidebar/sidebar.vue +6 -8
  686. package/src/components/slider/slider.vue +2 -1
  687. package/src/components/sonner/sonner-alert.vue +2 -1
  688. package/src/components/sonner/sonner.vue +4 -5
  689. package/src/components/switch/stories/switch.stories.ts +3 -3
  690. package/src/components/switch/switch.vue +2 -1
  691. package/src/components/tab-menu/tab-menu-content.vue +2 -1
  692. package/src/components/tab-menu/tab-menu-item.vue +2 -1
  693. package/src/components/tab-menu/tab-menu-list.vue +2 -1
  694. package/src/components/tab-menu/tab-menu.vue +2 -2
  695. package/src/components/table/table-body.vue +2 -4
  696. package/src/components/table/table-caption.vue +2 -4
  697. package/src/components/table/table-cell.vue +5 -7
  698. package/src/components/table/table-empty.vue +5 -7
  699. package/src/components/table/table-footer.vue +2 -4
  700. package/src/components/table/table-head.vue +5 -7
  701. package/src/components/table/table-header.vue +2 -4
  702. package/src/components/table/table-row.vue +5 -7
  703. package/src/components/table/table.vue +2 -4
  704. package/src/components/tag/tag.vue +10 -11
  705. package/src/components/text-input/text-input-button.vue +3 -2
  706. package/src/components/text-input/text-input.vue +9 -10
  707. package/src/components/textarea/textarea.vue +8 -10
  708. package/src/components/tooltip/tooltip-content.vue +14 -15
  709. package/src/components/tooltip/tooltip-provider.vue +4 -5
  710. package/src/components/tooltip/tooltip-root.vue +4 -5
  711. package/src/components/tooltip/tooltip-trigger.vue +4 -5
  712. package/src/components/tooltip/tooltip.vue +12 -14
  713. package/src/composables/use-delegated-props.ts +2 -1
  714. package/src/composables/use-sidebar.ts +1 -1
  715. package/src/utils/sonner.ts +2 -1
@@ -1,17 +1,122 @@
1
- import { O as Ot, bt as jg } from "./dist.js";
2
- import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
1
+ import { t as Primitive } from "./Primitive.js";
2
+ import { t as useForwardExpose } from "./useForwardExpose.js";
3
+ import { t as useForwardProps } from "./useForwardProps.js";
4
+ import { t as useId } from "./useId.js";
5
+ import { t as PopperAnchor_default } from "./PopperAnchor.js";
6
+ import { n as injectTooltipProviderContext } from "./TooltipProvider.js";
7
+ import { n as injectTooltipRootContext } from "./TooltipRoot.js";
8
+ import { computed, createBlock, createVNode, defineComponent, mergeProps, onMounted, openBlock, ref, renderSlot, toHandlers, unref, withCtx } from "vue";
9
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/Tooltip/TooltipTrigger.js
10
+ var TooltipTrigger_default = /* @__PURE__ */ defineComponent({
11
+ __name: "TooltipTrigger",
12
+ props: {
13
+ reference: {
14
+ type: null,
15
+ required: false
16
+ },
17
+ asChild: {
18
+ type: Boolean,
19
+ required: false
20
+ },
21
+ as: {
22
+ type: null,
23
+ required: false,
24
+ default: "button"
25
+ }
26
+ },
27
+ setup(__props) {
28
+ const props = __props;
29
+ const rootContext = injectTooltipRootContext();
30
+ const providerContext = injectTooltipProviderContext();
31
+ rootContext.contentId ||= useId(void 0, "reka-tooltip-content");
32
+ const { forwardRef, currentElement: triggerElement } = useForwardExpose();
33
+ const isPointerDown = ref(false);
34
+ const hasPointerMoveOpened = ref(false);
35
+ const tooltipListeners = computed(() => {
36
+ if (rootContext.disabled.value) return {};
37
+ return {
38
+ click: handleClick,
39
+ focus: handleFocus,
40
+ pointermove: handlePointerMove,
41
+ pointerleave: handlePointerLeave,
42
+ pointerdown: handlePointerDown,
43
+ blur: handleBlur
44
+ };
45
+ });
46
+ onMounted(() => {
47
+ rootContext.onTriggerChange(triggerElement.value);
48
+ });
49
+ function handlePointerUp() {
50
+ setTimeout(() => {
51
+ isPointerDown.value = false;
52
+ }, 1);
53
+ }
54
+ function handlePointerDown() {
55
+ if (rootContext.open && !rootContext.disableClosingTrigger.value) rootContext.onClose();
56
+ isPointerDown.value = true;
57
+ document.addEventListener("pointerup", handlePointerUp, { once: true });
58
+ }
59
+ function handlePointerMove(event) {
60
+ if (event.pointerType === "touch") return;
61
+ if (!hasPointerMoveOpened.value && !providerContext.isPointerInTransitRef.value) {
62
+ rootContext.onTriggerEnter();
63
+ hasPointerMoveOpened.value = true;
64
+ }
65
+ }
66
+ function handlePointerLeave() {
67
+ rootContext.onTriggerLeave();
68
+ hasPointerMoveOpened.value = false;
69
+ }
70
+ function handleFocus(event) {
71
+ if (isPointerDown.value) return;
72
+ if (rootContext.ignoreNonKeyboardFocus.value && !event.target.matches?.(":focus-visible")) return;
73
+ rootContext.onOpen();
74
+ }
75
+ function handleBlur() {
76
+ rootContext.onClose();
77
+ }
78
+ function handleClick() {
79
+ if (!rootContext.disableClosingTrigger.value) rootContext.onClose();
80
+ }
81
+ return (_ctx, _cache) => {
82
+ return openBlock(), createBlock(unref(PopperAnchor_default), {
83
+ "as-child": "",
84
+ reference: _ctx.reference
85
+ }, {
86
+ default: withCtx(() => [createVNode(unref(Primitive), mergeProps({
87
+ ref: unref(forwardRef),
88
+ "aria-describedby": unref(rootContext).open.value ? unref(rootContext).contentId : void 0,
89
+ "data-state": unref(rootContext).stateAttribute.value,
90
+ as: _ctx.as,
91
+ "as-child": props.asChild,
92
+ "data-grace-area-trigger": ""
93
+ }, toHandlers(tooltipListeners.value)), {
94
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
95
+ _: 3
96
+ }, 16, [
97
+ "aria-describedby",
98
+ "data-state",
99
+ "as",
100
+ "as-child"
101
+ ])]),
102
+ _: 3
103
+ }, 8, ["reference"]);
104
+ };
105
+ }
106
+ });
3
107
  //#endregion
4
108
  //#region src/components/tooltip/tooltip-trigger.vue
5
109
  var tooltip_trigger_default = /* @__PURE__ */ defineComponent({
6
110
  __name: "tooltip-trigger",
7
111
  props: {
112
+ reference: {},
8
113
  asChild: { type: Boolean },
9
114
  as: {}
10
115
  },
11
116
  setup(__props) {
12
- const forwardedProps = Ot(__props);
117
+ const forwardedProps = useForwardProps(__props);
13
118
  return (_ctx, _cache) => {
14
- return openBlock(), createBlock(unref(jg), mergeProps(unref(forwardedProps), { "as-child": "" }), {
119
+ return openBlock(), createBlock(unref(TooltipTrigger_default), mergeProps(unref(forwardedProps), { "as-child": "" }), {
15
120
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
16
121
  _: 3
17
122
  }, 16);
@@ -1,9 +1,9 @@
1
- import { I as Se } from "./dist.js";
2
- import { useDelegatedProps } from "../use-delegated-props.js";
1
+ import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
3
2
  import { t as tooltip_content_default } from "./tooltip-content.js";
3
+ import { t as tooltip_trigger_default } from "./tooltip-trigger.js";
4
+ import { useDelegatedProps } from "../use-delegated-props.js";
4
5
  import { t as tooltip_provider_default } from "./tooltip-provider.js";
5
6
  import { t as tooltip_root_default } from "./tooltip-root.js";
6
- import { t as tooltip_trigger_default } from "./tooltip-trigger.js";
7
7
  import { createBlock, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, unref, withCtx } from "vue";
8
8
  //#endregion
9
9
  //#region src/components/tooltip/tooltip.vue
@@ -37,13 +37,15 @@ var tooltip_default = /* @__PURE__ */ defineComponent({
37
37
  collisionPadding: {},
38
38
  arrowPadding: {},
39
39
  sticky: {},
40
- hideWhenDetached: { type: Boolean }
40
+ hideWhenDetached: { type: Boolean },
41
+ positionStrategy: {},
42
+ updatePositionStrategy: {}
41
43
  },
42
44
  emits: ["update:open"],
43
45
  setup(__props, { emit: __emit }) {
44
46
  const props = __props;
45
47
  const emits = __emit;
46
- const forwarded = Se(useDelegatedProps(props, [
48
+ const forwarded = useForwardPropsEmits(useDelegatedProps(props, [
47
49
  "class",
48
50
  "size",
49
51
  "variant",
@@ -0,0 +1,60 @@
1
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js
2
+ var ignoredElement = ["INPUT", "TEXTAREA"];
3
+ /**
4
+ * Allow arrow navigation for every html element with data-reka-collection-item tag
5
+ *
6
+ * @param e Keyboard event
7
+ * @param currentElement Event initiator element or any element that wants to handle the navigation
8
+ * @param parentElement Parent element where contains all the collection items, this will collect every item to be used when nav
9
+ * @param options further options
10
+ * @returns the navigated html element or null if none
11
+ */
12
+ function useArrowNavigation(e, currentElement, parentElement, options = {}) {
13
+ if (!currentElement || options.enableIgnoredElement && ignoredElement.includes(currentElement.nodeName)) return null;
14
+ const { arrowKeyOptions = "both", attributeName = "[data-reka-collection-item]", itemsArray = [], loop = true, dir = "ltr", preventScroll = true, focus = false } = options;
15
+ const [right, left, up, down, home, end] = [
16
+ e.key === "ArrowRight",
17
+ e.key === "ArrowLeft",
18
+ e.key === "ArrowUp",
19
+ e.key === "ArrowDown",
20
+ e.key === "Home",
21
+ e.key === "End"
22
+ ];
23
+ const goingVertical = up || down;
24
+ const goingHorizontal = right || left;
25
+ if (!home && !end && (!goingVertical && !goingHorizontal || arrowKeyOptions === "vertical" && goingHorizontal || arrowKeyOptions === "horizontal" && goingVertical)) return null;
26
+ const allCollectionItems = parentElement ? Array.from(parentElement.querySelectorAll(attributeName)) : itemsArray;
27
+ if (!allCollectionItems.length) return null;
28
+ if (preventScroll) e.preventDefault();
29
+ let item = null;
30
+ if (goingHorizontal || goingVertical) item = findNextFocusableElement(allCollectionItems, currentElement, {
31
+ goForward: goingVertical ? down : dir === "ltr" ? right : left,
32
+ loop
33
+ });
34
+ else if (home) item = allCollectionItems.at(0) || null;
35
+ else if (end) item = allCollectionItems.at(-1) || null;
36
+ if (focus) item?.focus();
37
+ return item;
38
+ }
39
+ /**
40
+ * Recursive function to find the next focusable element to avoid disabled elements
41
+ *
42
+ * @param elements Elements to navigate
43
+ * @param currentElement Current active element
44
+ * @param options
45
+ * @returns next focusable element
46
+ */
47
+ function findNextFocusableElement(elements, currentElement, options, iterations = !elements.includes(currentElement) ? elements.length + 1 : elements.length) {
48
+ if (--iterations === 0) return null;
49
+ const index = elements.indexOf(currentElement);
50
+ let newIndex;
51
+ if (index === -1) newIndex = options.goForward ? 0 : elements.length - 1;
52
+ else newIndex = options.goForward ? index + 1 : index - 1;
53
+ if (!options.loop && (newIndex < 0 || newIndex >= elements.length)) return null;
54
+ const candidate = elements[(newIndex + elements.length) % elements.length];
55
+ if (!candidate) return null;
56
+ if (candidate.hasAttribute("disabled") && candidate.getAttribute("disabled") !== "false") return findNextFocusableElement(elements, candidate, options, iterations);
57
+ return candidate;
58
+ }
59
+ //#endregion
60
+ export { useArrowNavigation as t };
@@ -0,0 +1,21 @@
1
+ import { nextTick, ref } from "vue";
2
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useComposing.js
3
+ function useComposing(onEnd) {
4
+ const isComposing = ref(false);
5
+ function handleCompositionStart() {
6
+ isComposing.value = true;
7
+ }
8
+ function handleCompositionEnd(event) {
9
+ nextTick(() => {
10
+ isComposing.value = false;
11
+ onEnd?.(event);
12
+ });
13
+ }
14
+ return {
15
+ isComposing,
16
+ handleCompositionStart,
17
+ handleCompositionEnd
18
+ };
19
+ }
20
+ //#endregion
21
+ export { useComposing as t };
@@ -0,0 +1,14 @@
1
+ import { t as injectConfigProviderContext } from "./ConfigProvider.js";
2
+ import { computed, ref } from "vue";
3
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useDirection.js
4
+ /**
5
+ * The `useDirection` function provides a way to access the current direction in your application.
6
+ * @param {Ref<Direction | undefined>} [dir] - An optional ref containing the direction (ltr or rtl).
7
+ * @returns computed value that combines with the resolved direction.
8
+ */
9
+ function useDirection(dir) {
10
+ const context = injectConfigProviderContext({ dir: ref("ltr") });
11
+ return computed(() => dir?.value || context.dir?.value || "ltr");
12
+ }
13
+ //#endregion
14
+ export { useDirection as t };
@@ -0,0 +1,28 @@
1
+ import { camelize, getCurrentInstance, toHandlerKey } from "vue";
2
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useEmitAsProps.js
3
+ /**
4
+ * The `useEmitAsProps` function is a TypeScript utility that converts emitted events into props for a
5
+ * Vue component.
6
+ *
7
+ * @template Name - The event name string union type.
8
+ * @template Fn - The emit function type.
9
+ *
10
+ * @param emit - The `emit` parameter is a function that is used to emit events from a component. It
11
+ *
12
+ * takes two parameters: `name` which is the name of the event to be emitted, and `...args` which are
13
+ * the arguments to be passed along with the event.
14
+ * @returns The function `useEmitAsProps` returns an object that maps event names to functions that
15
+ * call the `emit` function with the corresponding event name and arguments.
16
+ */
17
+ function useEmitAsProps(emit) {
18
+ const vm = getCurrentInstance();
19
+ const events = vm?.type.emits;
20
+ const result = {};
21
+ if (!events?.length) console.warn(`No emitted event found. Please check component: ${vm?.type.__name}`);
22
+ events?.forEach((ev) => {
23
+ result[toHandlerKey(camelize(ev))] = (...arg) => emit(ev, ...arg);
24
+ });
25
+ return result;
26
+ }
27
+ //#endregion
28
+ export { useEmitAsProps as t };
@@ -0,0 +1,34 @@
1
+ import { d as isClient } from "./dist.js";
2
+ import { watchEffect } from "vue";
3
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useFocusGuards.js
4
+ /** Number of components which have requested interest to have focus guards */
5
+ var count = 0;
6
+ /**
7
+ * Injects a pair of focus guards at the edges of the whole DOM tree
8
+ * to ensure `focusin` & `focusout` events can be caught consistently.
9
+ */
10
+ function useFocusGuards() {
11
+ watchEffect((cleanupFn) => {
12
+ if (!isClient) return;
13
+ const edgeGuards = document.querySelectorAll("[data-reka-focus-guard]");
14
+ document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
15
+ document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
16
+ count++;
17
+ cleanupFn(() => {
18
+ if (count === 1) document.querySelectorAll("[data-reka-focus-guard]").forEach((node) => node.remove());
19
+ count--;
20
+ });
21
+ });
22
+ }
23
+ function createFocusGuard() {
24
+ const element = document.createElement("span");
25
+ element.setAttribute("data-reka-focus-guard", "");
26
+ element.tabIndex = 0;
27
+ element.style.outline = "none";
28
+ element.style.opacity = "0";
29
+ element.style.position = "fixed";
30
+ element.style.pointerEvents = "none";
31
+ return element;
32
+ }
33
+ //#endregion
34
+ export { useFocusGuards as t };
@@ -0,0 +1,8 @@
1
+ import { r as unrefElement } from "./dist.js";
2
+ import { computed, toValue } from "vue";
3
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useFormControl.js
4
+ function useFormControl(el) {
5
+ return computed(() => toValue(el) ? Boolean(unrefElement(el)?.closest("form")) : true);
6
+ }
7
+ //#endregion
8
+ export { useFormControl as t };
@@ -0,0 +1,58 @@
1
+ import { r as unrefElement } from "./dist.js";
2
+ import { computed, getCurrentInstance, onUpdated, ref, triggerRef } from "vue";
3
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useForwardExpose.js
4
+ function useForwardExpose() {
5
+ const instance = getCurrentInstance();
6
+ const currentRef = ref();
7
+ const currentElement = computed(() => resolveCurrentElement());
8
+ onUpdated(() => {
9
+ if (currentElement.value !== resolveCurrentElement()) triggerRef(currentRef);
10
+ });
11
+ function resolveCurrentElement() {
12
+ return currentRef.value && "$el" in currentRef.value && ["#text", "#comment"].includes(currentRef.value.$el.nodeName) ? currentRef.value.$el.nextElementSibling : unrefElement(currentRef);
13
+ }
14
+ const localExpose = Object.assign({}, instance.exposed);
15
+ const ret = {};
16
+ for (const key in instance.props) Object.defineProperty(ret, key, {
17
+ enumerable: true,
18
+ configurable: true,
19
+ get: () => instance.props[key]
20
+ });
21
+ if (Object.keys(localExpose).length > 0) for (const key in localExpose) Object.defineProperty(ret, key, {
22
+ enumerable: true,
23
+ configurable: true,
24
+ get: () => localExpose[key]
25
+ });
26
+ Object.defineProperty(ret, "$el", {
27
+ enumerable: true,
28
+ configurable: true,
29
+ get: () => instance.vnode.el
30
+ });
31
+ instance.exposed = ret;
32
+ function forwardRef(ref$1) {
33
+ currentRef.value = ref$1;
34
+ if (!ref$1) return;
35
+ Object.defineProperty(ret, "$el", {
36
+ enumerable: true,
37
+ configurable: true,
38
+ get: () => ref$1 instanceof Element ? ref$1 : ref$1.$el
39
+ });
40
+ if (!(ref$1 instanceof Element) && !Object.hasOwn(ref$1, "$el")) {
41
+ const childExposed = ref$1.$.exposed;
42
+ const merged = Object.assign({}, ret);
43
+ for (const key in childExposed) Object.defineProperty(merged, key, {
44
+ enumerable: true,
45
+ configurable: true,
46
+ get: () => childExposed[key]
47
+ });
48
+ instance.exposed = merged;
49
+ }
50
+ }
51
+ return {
52
+ forwardRef,
53
+ currentRef,
54
+ currentElement
55
+ };
56
+ }
57
+ //#endregion
58
+ export { useForwardExpose as t };
@@ -0,0 +1,34 @@
1
+ import { camelize, computed, getCurrentInstance, toRef } from "vue";
2
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useForwardProps.js
3
+ /**
4
+ * The `useForwardProps` function in TypeScript takes in a set of props and returns a computed value
5
+ * that combines default props with assigned props from the current instance.
6
+ * @param {T} props - The `props` parameter is an object that represents the props passed to a
7
+ * component.
8
+ * @returns computed value that combines the default props, preserved props, and assigned props.
9
+ */
10
+ function useForwardProps(props) {
11
+ const vm = getCurrentInstance();
12
+ const defaultProps = Object.keys(vm?.type.props ?? {}).reduce((prev, curr) => {
13
+ const defaultValue = (vm?.type.props[curr]).default;
14
+ if (defaultValue !== void 0) prev[curr] = defaultValue;
15
+ return prev;
16
+ }, {});
17
+ const refProps = toRef(props);
18
+ return computed(() => {
19
+ const preservedProps = {};
20
+ const assignedProps = vm?.vnode.props ?? {};
21
+ Object.keys(assignedProps).forEach((key) => {
22
+ preservedProps[camelize(key)] = assignedProps[key];
23
+ });
24
+ return Object.keys({
25
+ ...defaultProps,
26
+ ...preservedProps
27
+ }).reduce((prev, curr) => {
28
+ if (refProps.value[curr] !== void 0) prev[curr] = refProps.value[curr];
29
+ return prev;
30
+ }, {});
31
+ });
32
+ }
33
+ //#endregion
34
+ export { useForwardProps as t };
@@ -0,0 +1,14 @@
1
+ import { t as useEmitAsProps } from "./useEmitAsProps.js";
2
+ import { t as useForwardProps } from "./useForwardProps.js";
3
+ import { computed } from "vue";
4
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js
5
+ function useForwardPropsEmits(props, emit) {
6
+ const parsedProps = useForwardProps(props);
7
+ const emitsAsProps = emit ? useEmitAsProps(emit) : {};
8
+ return computed(() => ({
9
+ ...parsedProps.value,
10
+ ...emitsAsProps
11
+ }));
12
+ }
13
+ //#endregion
14
+ export { useForwardPropsEmits as t };
@@ -0,0 +1,25 @@
1
+ import { getCurrentInstance } from "vue";
2
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useForwardScopeId.js
3
+ /**
4
+ * Returns the parent component's `<style scoped>` id (e.g. `data-v-xxxxxxx`) as a
5
+ * bindable attribute object, so it can be manually forwarded onto the chosen root
6
+ * element of a multi-root component.
7
+ *
8
+ * Vue only auto-applies the parent's scope id to a **single-root** component's root.
9
+ * When a component renders multiple root nodes (e.g. an interactive control plus a
10
+ * sibling hidden form input), that fallthrough is dropped and the parent's scoped
11
+ * styles can no longer reach the component. Spread the returned object onto the
12
+ * element that should stay styleable by the parent.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const scopeIdAttrs = useForwardScopeId()
17
+ * // <Primitive v-bind="{ ...$attrs, ...scopeIdAttrs }" />
18
+ * ```
19
+ */
20
+ function useForwardScopeId() {
21
+ const scopeId = (getCurrentInstance()?.vnode)?.scopeId;
22
+ return scopeId ? { [scopeId]: "" } : {};
23
+ }
24
+ //#endregion
25
+ export { useForwardScopeId as t };
@@ -0,0 +1,132 @@
1
+ import { r as unrefElement } from "./dist.js";
2
+ import { onUnmounted, watch } from "vue";
3
+ //#region ../../node_modules/.pnpm/aria-hidden@1.2.4/node_modules/aria-hidden/dist/es2015/index.js
4
+ var getDefaultParent = function(originalTarget) {
5
+ if (typeof document === "undefined") return null;
6
+ return (Array.isArray(originalTarget) ? originalTarget[0] : originalTarget).ownerDocument.body;
7
+ };
8
+ var counterMap = /* @__PURE__ */ new WeakMap();
9
+ var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
10
+ var markerMap = {};
11
+ var lockCount = 0;
12
+ var unwrapHost = function(node) {
13
+ return node && (node.host || unwrapHost(node.parentNode));
14
+ };
15
+ var correctTargets = function(parent, targets) {
16
+ return targets.map(function(target) {
17
+ if (parent.contains(target)) return target;
18
+ var correctedTarget = unwrapHost(target);
19
+ if (correctedTarget && parent.contains(correctedTarget)) return correctedTarget;
20
+ console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
21
+ return null;
22
+ }).filter(function(x) {
23
+ return Boolean(x);
24
+ });
25
+ };
26
+ /**
27
+ * Marks everything except given node(or nodes) as aria-hidden
28
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
29
+ * @param [parentNode] - top element, defaults to document.body
30
+ * @param {String} [markerName] - a special attribute to mark every node
31
+ * @param {String} [controlAttribute] - html Attribute to control
32
+ * @return {Undo} undo command
33
+ */
34
+ var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
35
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
36
+ if (!markerMap[markerName]) markerMap[markerName] = /* @__PURE__ */ new WeakMap();
37
+ var markerCounter = markerMap[markerName];
38
+ var hiddenNodes = [];
39
+ var elementsToKeep = /* @__PURE__ */ new Set();
40
+ var elementsToStop = new Set(targets);
41
+ var keep = function(el) {
42
+ if (!el || elementsToKeep.has(el)) return;
43
+ elementsToKeep.add(el);
44
+ keep(el.parentNode);
45
+ };
46
+ targets.forEach(keep);
47
+ var deep = function(parent) {
48
+ if (!parent || elementsToStop.has(parent)) return;
49
+ Array.prototype.forEach.call(parent.children, function(node) {
50
+ if (elementsToKeep.has(node)) deep(node);
51
+ else try {
52
+ var attr = node.getAttribute(controlAttribute);
53
+ var alreadyHidden = attr !== null && attr !== "false";
54
+ var counterValue = (counterMap.get(node) || 0) + 1;
55
+ var markerValue = (markerCounter.get(node) || 0) + 1;
56
+ counterMap.set(node, counterValue);
57
+ markerCounter.set(node, markerValue);
58
+ hiddenNodes.push(node);
59
+ if (counterValue === 1 && alreadyHidden) uncontrolledNodes.set(node, true);
60
+ if (markerValue === 1) node.setAttribute(markerName, "true");
61
+ if (!alreadyHidden) node.setAttribute(controlAttribute, "true");
62
+ } catch (e) {
63
+ console.error("aria-hidden: cannot operate on ", node, e);
64
+ }
65
+ });
66
+ };
67
+ deep(parentNode);
68
+ elementsToKeep.clear();
69
+ lockCount++;
70
+ return function() {
71
+ hiddenNodes.forEach(function(node) {
72
+ var counterValue = counterMap.get(node) - 1;
73
+ var markerValue = markerCounter.get(node) - 1;
74
+ counterMap.set(node, counterValue);
75
+ markerCounter.set(node, markerValue);
76
+ if (!counterValue) {
77
+ if (!uncontrolledNodes.has(node)) node.removeAttribute(controlAttribute);
78
+ uncontrolledNodes.delete(node);
79
+ }
80
+ if (!markerValue) node.removeAttribute(markerName);
81
+ });
82
+ lockCount--;
83
+ if (!lockCount) {
84
+ counterMap = /* @__PURE__ */ new WeakMap();
85
+ counterMap = /* @__PURE__ */ new WeakMap();
86
+ uncontrolledNodes = /* @__PURE__ */ new WeakMap();
87
+ markerMap = {};
88
+ }
89
+ };
90
+ };
91
+ /**
92
+ * Marks everything except given node(or nodes) as aria-hidden
93
+ * @param {Element | Element[]} originalTarget - elements to keep on the page
94
+ * @param [parentNode] - top element, defaults to document.body
95
+ * @param {String} [markerName] - a special attribute to mark every node
96
+ * @return {Undo} undo command
97
+ */
98
+ var hideOthers = function(originalTarget, parentNode, markerName) {
99
+ if (markerName === void 0) markerName = "data-aria-hidden";
100
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
101
+ var activeParentNode = parentNode || getDefaultParent(originalTarget);
102
+ if (!activeParentNode) return function() {
103
+ return null;
104
+ };
105
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live]")));
106
+ return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
107
+ };
108
+ //#endregion
109
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useHideOthers.js
110
+ /**
111
+ * The `useHideOthers` function is a TypeScript function that takes a target element reference and
112
+ * hides all other elements in ARIA when the target element is present, and restores the visibility of the
113
+ * hidden elements when the target element is removed.
114
+ * @param {MaybeElementRef} target - The `target` parameter is a reference to the element that you want
115
+ * to hide other elements when it is clicked or focused.
116
+ */
117
+ function useHideOthers(target) {
118
+ let undo;
119
+ watch(() => unrefElement(target), (el) => {
120
+ let isInsideClosedPopover = false;
121
+ try {
122
+ isInsideClosedPopover = !!el?.closest("[popover]:not(:popover-open)");
123
+ } catch {}
124
+ if (el && !isInsideClosedPopover) undo = hideOthers(el);
125
+ else if (undo) undo();
126
+ });
127
+ onUnmounted(() => {
128
+ if (undo) undo();
129
+ });
130
+ }
131
+ //#endregion
132
+ export { useHideOthers as t };
@@ -0,0 +1,23 @@
1
+ import { t as injectConfigProviderContext } from "./ConfigProvider.js";
2
+ import * as vue from "vue";
3
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useId.js
4
+ var count = 0;
5
+ /**
6
+ * The `useId` function generates a unique identifier using a provided deterministic ID,
7
+ * a configured `<ConfigProvider>` ID source, Vue's native `useId`, or a fallback counter.
8
+ * @param {string | null | undefined} [deterministicId] - The `useId` function you provided takes an
9
+ * optional parameter `deterministicId`, which can be a string, null, or undefined. If
10
+ * `deterministicId` is provided, the function will return it. Otherwise, it will generate an id using
11
+ * the configured ID source.
12
+ */
13
+ function useId(deterministicId, prefix = "reka") {
14
+ if (deterministicId) return deterministicId;
15
+ let id;
16
+ const configProviderContext = injectConfigProviderContext({ useId: void 0 });
17
+ if (configProviderContext.useId) id = configProviderContext.useId();
18
+ else if ("useId" in vue) id = vue.useId?.();
19
+ else id = `${++count}`;
20
+ return prefix ? `${prefix}-${id}` : id;
21
+ }
22
+ //#endregion
23
+ export { useId as t };
@@ -0,0 +1,41 @@
1
+ //#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/shared/useKbd.js
2
+ function useKbd() {
3
+ return {
4
+ ALT: "Alt",
5
+ ARROW_DOWN: "ArrowDown",
6
+ ARROW_LEFT: "ArrowLeft",
7
+ ARROW_RIGHT: "ArrowRight",
8
+ ARROW_UP: "ArrowUp",
9
+ BACKSPACE: "Backspace",
10
+ CAPS_LOCK: "CapsLock",
11
+ CONTROL: "Control",
12
+ DELETE: "Delete",
13
+ END: "End",
14
+ ENTER: "Enter",
15
+ ESCAPE: "Escape",
16
+ F1: "F1",
17
+ F10: "F10",
18
+ F11: "F11",
19
+ F12: "F12",
20
+ F2: "F2",
21
+ F3: "F3",
22
+ F4: "F4",
23
+ F5: "F5",
24
+ F6: "F6",
25
+ F7: "F7",
26
+ F8: "F8",
27
+ F9: "F9",
28
+ HOME: "Home",
29
+ META: "Meta",
30
+ PAGE_DOWN: "PageDown",
31
+ PAGE_UP: "PageUp",
32
+ SHIFT: "Shift",
33
+ SPACE: " ",
34
+ TAB: "Tab",
35
+ CTRL: "Control",
36
+ ASTERISK: "*",
37
+ SPACE_CODE: "Space"
38
+ };
39
+ }
40
+ //#endregion
41
+ export { useKbd as t };