@brumaombra/ui-vintage 0.1.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 (297) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +78 -0
  3. package/dist/AlertDialogTitle.vue_vue_type_script_setup_true_lang-CWCr2erD.js +360 -0
  4. package/dist/AlertDialogTrigger.vue_vue_type_script_setup_true_lang-vNwxOYhM.js +158 -0
  5. package/dist/BackgroundGrid-Cxvbtefm.js +13 -0
  6. package/dist/Busy-B65Nd9ec.js +62 -0
  7. package/dist/BusyIndicator-CnWzSMDb.js +4 -0
  8. package/dist/BusyIndicator.vue_vue_type_script_setup_true_lang-CYeXMI_V.js +66 -0
  9. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-C-WnFnvj.js +3805 -0
  10. package/dist/Card.vue_vue_type_script_setup_true_lang-6ol3rxy1.js +27 -0
  11. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-DVAd7AWF.js +112 -0
  12. package/dist/Collection-CmOoLBo7.js +76 -0
  13. package/dist/ConfigProvider-D2O0Jles.js +6 -0
  14. package/dist/ConfirmDialog-DEsvF0b_.js +4 -0
  15. package/dist/ConfirmDialog.vue_vue_type_script_setup_true_lang-BAd1l1zF.js +230 -0
  16. package/dist/DashboardShell.vue_vue_type_script_setup_true_lang-CT2SQBXv.js +171 -0
  17. package/dist/DatePicker.vue_vue_type_script_setup_true_lang-D8mev2ha.js +92 -0
  18. package/dist/DialogClose-BNlqG4G2.js +36 -0
  19. package/dist/DialogTitle-DXj0nkXn.js +522 -0
  20. package/dist/DialogTitle.vue_vue_type_script_setup_true_lang-Bw40D4AK.js +174 -0
  21. package/dist/DialogTrigger-CpyKnu11.js +52 -0
  22. package/dist/DialogTrigger.vue_vue_type_script_setup_true_lang-DLrFiCsw.js +141 -0
  23. package/dist/FocusScope-C3mcVwsf.js +454 -0
  24. package/dist/Input.vue_vue_type_script_setup_true_lang-U778IWa0.js +37 -0
  25. package/dist/Label.vue_vue_type_script_setup_true_lang-B_fwvfJ-.js +65 -0
  26. package/dist/MessageDialog-BrowppID.js +4 -0
  27. package/dist/MessageDialog.vue_vue_type_script_setup_true_lang-Ddih5Isd.js +242 -0
  28. package/dist/NativeSelectOption.vue_vue_type_script_setup_true_lang-DS87OTLT.js +73 -0
  29. package/dist/PopoverAnchor.vue_vue_type_script_setup_true_lang-CsfybvZp.js +61 -0
  30. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-KTcg6Jnl.js +798 -0
  31. package/dist/PopperContent-BiM0YLO3.js +2144 -0
  32. package/dist/Primitive-D3IcFg81.js +61 -0
  33. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-DGAI4hw5.js +2124 -0
  34. package/dist/Separator-CFm_M4pb.js +87 -0
  35. package/dist/Separator.vue_vue_type_script_setup_true_lang-COrZ60NR.js +29 -0
  36. package/dist/SheetTitle.vue_vue_type_script_setup_true_lang-DLoXGMbx.js +175 -0
  37. package/dist/SheetTrigger.vue_vue_type_script_setup_true_lang-CE2XJNHy.js +62 -0
  38. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-BSbVyZz7.js +20 -0
  39. package/dist/Slider.vue_vue_type_script_setup_true_lang-D-cAN-4Q.js +802 -0
  40. package/dist/SliderFormComponent.vue_vue_type_script_setup_true_lang-KPzC_Lmr.js +59 -0
  41. package/dist/Switch.vue_vue_type_script_setup_true_lang-BWKCycMm.js +226 -0
  42. package/dist/SwitchFormComponent.vue_vue_type_script_setup_true_lang-XOBEs3pa.js +39 -0
  43. package/dist/Teleport-CuUn4UkG.js +493 -0
  44. package/dist/TooltipProvider.vue_vue_type_script_setup_true_lang-DwIfCQjY.js +28 -0
  45. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-BRyHTWgw.js +1117 -0
  46. package/dist/VisuallyHidden-udQT2Fmo.js +60 -0
  47. package/dist/VisuallyHiddenInput-DLAsRwUw.js +142 -0
  48. package/dist/_plugin-vue_export-helper-1tPrXgE0.js +10 -0
  49. package/dist/alert-dialog.d.ts +2 -0
  50. package/dist/alert-dialog.js +13 -0
  51. package/dist/alert.d.ts +2 -0
  52. package/dist/alert.js +76 -0
  53. package/dist/background-grid.d.ts +6 -0
  54. package/dist/background-grid.js +5 -0
  55. package/dist/busy-indicator.d.ts +2 -0
  56. package/dist/busy-indicator.js +6 -0
  57. package/dist/busy.d.ts +2 -0
  58. package/dist/busy.js +4 -0
  59. package/dist/button.d.ts +2 -0
  60. package/dist/button.js +63 -0
  61. package/dist/calendar.d.ts +2 -0
  62. package/dist/calendar.js +15 -0
  63. package/dist/card.d.ts +2 -0
  64. package/dist/card.js +11 -0
  65. package/dist/check-iejznCzf.js +11 -0
  66. package/dist/chevron-down-DP-oz-sL.js +13 -0
  67. package/dist/clamp-D5Ye0kJT.js +6 -0
  68. package/dist/command.d.ts +2 -0
  69. package/dist/command.js +1122 -0
  70. package/dist/components/background-grid/BackgroundGrid.vue.d.ts +2 -0
  71. package/dist/components/background-grid/index.d.ts +2 -0
  72. package/dist/components/busy-indicator/BusyIndicator.vue.d.ts +2 -0
  73. package/dist/components/busy-indicator/busy-indicator-state.d.ts +15 -0
  74. package/dist/components/busy-indicator/index.d.ts +3 -0
  75. package/dist/components/confirm-dialog/ConfirmDialog.vue.d.ts +2 -0
  76. package/dist/components/confirm-dialog/confirm-dialog-state.d.ts +37 -0
  77. package/dist/components/confirm-dialog/index.d.ts +3 -0
  78. package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +54 -0
  79. package/dist/components/dashboard-shell/index.d.ts +2 -0
  80. package/dist/components/message-dialog/MessageDialog.vue.d.ts +2 -0
  81. package/dist/components/message-dialog/index.d.ts +3 -0
  82. package/dist/components/message-dialog/message-dialog-state.d.ts +28 -0
  83. package/dist/components/slider-form-component/SliderFormComponent.vue.d.ts +23 -0
  84. package/dist/components/slider-form-component/index.d.ts +2 -0
  85. package/dist/components/switch-form-component/SwitchFormComponent.vue.d.ts +12 -0
  86. package/dist/components/switch-form-component/index.d.ts +2 -0
  87. package/dist/components/ui/alert/Alert.vue.d.ts +23 -0
  88. package/dist/components/ui/alert/AlertDescription.vue.d.ts +21 -0
  89. package/dist/components/ui/alert/AlertTitle.vue.d.ts +21 -0
  90. package/dist/components/ui/alert/index.d.ts +8 -0
  91. package/dist/components/ui/alert-dialog/AlertDialog.vue.d.ts +25 -0
  92. package/dist/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +22 -0
  93. package/dist/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +22 -0
  94. package/dist/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +36 -0
  95. package/dist/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +22 -0
  96. package/dist/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +21 -0
  97. package/dist/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +21 -0
  98. package/dist/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +22 -0
  99. package/dist/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
  100. package/dist/components/ui/alert-dialog/index.d.ts +9 -0
  101. package/dist/components/ui/busy/Busy.vue.d.ts +27 -0
  102. package/dist/components/ui/busy/index.d.ts +1 -0
  103. package/dist/components/ui/button/Button.vue.d.ts +27 -0
  104. package/dist/components/ui/button/index.d.ts +7 -0
  105. package/dist/components/ui/calendar/Calendar.vue.d.ts +44 -0
  106. package/dist/components/ui/calendar/CalendarCell.vue.d.ts +22 -0
  107. package/dist/components/ui/calendar/CalendarCellTrigger.vue.d.ts +24 -0
  108. package/dist/components/ui/calendar/CalendarGrid.vue.d.ts +22 -0
  109. package/dist/components/ui/calendar/CalendarGridBody.vue.d.ts +18 -0
  110. package/dist/components/ui/calendar/CalendarGridHead.vue.d.ts +22 -0
  111. package/dist/components/ui/calendar/CalendarGridRow.vue.d.ts +22 -0
  112. package/dist/components/ui/calendar/CalendarHeadCell.vue.d.ts +22 -0
  113. package/dist/components/ui/calendar/CalendarHeader.vue.d.ts +22 -0
  114. package/dist/components/ui/calendar/CalendarHeading.vue.d.ts +28 -0
  115. package/dist/components/ui/calendar/CalendarNextButton.vue.d.ts +22 -0
  116. package/dist/components/ui/calendar/CalendarPrevButton.vue.d.ts +22 -0
  117. package/dist/components/ui/calendar/index.d.ts +13 -0
  118. package/dist/components/ui/card/Card.vue.d.ts +21 -0
  119. package/dist/components/ui/card/CardAction.vue.d.ts +21 -0
  120. package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
  121. package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
  122. package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
  123. package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
  124. package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
  125. package/dist/components/ui/card/index.d.ts +7 -0
  126. package/dist/components/ui/command/Command.vue.d.ts +40 -0
  127. package/dist/components/ui/command/CommandDialog.vue.d.ts +32 -0
  128. package/dist/components/ui/command/CommandEmpty.vue.d.ts +22 -0
  129. package/dist/components/ui/command/CommandGroup.vue.d.ts +23 -0
  130. package/dist/components/ui/command/CommandInput.vue.d.ts +7 -0
  131. package/dist/components/ui/command/CommandItem.vue.d.ts +30 -0
  132. package/dist/components/ui/command/CommandList.vue.d.ts +22 -0
  133. package/dist/components/ui/command/CommandSeparator.vue.d.ts +22 -0
  134. package/dist/components/ui/command/CommandShortcut.vue.d.ts +21 -0
  135. package/dist/components/ui/command/index.d.ts +90 -0
  136. package/dist/components/ui/date-picker/DatePicker.vue.d.ts +19 -0
  137. package/dist/components/ui/date-picker/index.d.ts +2 -0
  138. package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
  139. package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
  140. package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
  141. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
  142. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +24 -0
  143. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
  144. package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
  145. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
  146. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
  147. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
  148. package/dist/components/ui/dialog/index.d.ts +10 -0
  149. package/dist/components/ui/field/Field.vue.d.ts +23 -0
  150. package/dist/components/ui/field/FieldContent.vue.d.ts +21 -0
  151. package/dist/components/ui/field/FieldDescription.vue.d.ts +21 -0
  152. package/dist/components/ui/field/FieldError.vue.d.ts +24 -0
  153. package/dist/components/ui/field/FieldGroup.vue.d.ts +21 -0
  154. package/dist/components/ui/field/FieldLabel.vue.d.ts +21 -0
  155. package/dist/components/ui/field/FieldLegend.vue.d.ts +22 -0
  156. package/dist/components/ui/field/FieldSeparator.vue.d.ts +21 -0
  157. package/dist/components/ui/field/FieldSet.vue.d.ts +21 -0
  158. package/dist/components/ui/field/FieldTitle.vue.d.ts +21 -0
  159. package/dist/components/ui/field/index.d.ts +15 -0
  160. package/dist/components/ui/input/Input.vue.d.ts +12 -0
  161. package/dist/components/ui/input/index.d.ts +1 -0
  162. package/dist/components/ui/label/Label.vue.d.ts +22 -0
  163. package/dist/components/ui/label/index.d.ts +1 -0
  164. package/dist/components/ui/native-select/NativeSelect.vue.d.ts +27 -0
  165. package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +21 -0
  166. package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +21 -0
  167. package/dist/components/ui/native-select/index.d.ts +3 -0
  168. package/dist/components/ui/popover/Popover.vue.d.ts +25 -0
  169. package/dist/components/ui/popover/PopoverAnchor.vue.d.ts +18 -0
  170. package/dist/components/ui/popover/PopoverContent.vue.d.ts +39 -0
  171. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +18 -0
  172. package/dist/components/ui/popover/index.d.ts +4 -0
  173. package/dist/components/ui/select/Select.vue.d.ts +28 -0
  174. package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
  175. package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
  176. package/dist/components/ui/select/SelectItem.vue.d.ts +24 -0
  177. package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
  178. package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
  179. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
  180. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
  181. package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
  182. package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
  183. package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
  184. package/dist/components/ui/select/index.d.ts +11 -0
  185. package/dist/components/ui/separator/Separator.vue.d.ts +10 -0
  186. package/dist/components/ui/separator/index.d.ts +1 -0
  187. package/dist/components/ui/sheet/Sheet.vue.d.ts +25 -0
  188. package/dist/components/ui/sheet/SheetClose.vue.d.ts +18 -0
  189. package/dist/components/ui/sheet/SheetContent.vue.d.ts +39 -0
  190. package/dist/components/ui/sheet/SheetDescription.vue.d.ts +22 -0
  191. package/dist/components/ui/sheet/SheetFooter.vue.d.ts +21 -0
  192. package/dist/components/ui/sheet/SheetHeader.vue.d.ts +21 -0
  193. package/dist/components/ui/sheet/SheetOverlay.vue.d.ts +22 -0
  194. package/dist/components/ui/sheet/SheetTitle.vue.d.ts +22 -0
  195. package/dist/components/ui/sheet/SheetTrigger.vue.d.ts +18 -0
  196. package/dist/components/ui/sheet/index.d.ts +8 -0
  197. package/dist/components/ui/sidebar/Sidebar.vue.d.ts +24 -0
  198. package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +21 -0
  199. package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +21 -0
  200. package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +21 -0
  201. package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +22 -0
  202. package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +21 -0
  203. package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +22 -0
  204. package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +21 -0
  205. package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +21 -0
  206. package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +21 -0
  207. package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +21 -0
  208. package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +25 -0
  209. package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +21 -0
  210. package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +27 -0
  211. package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +30 -0
  212. package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +21 -0
  213. package/dist/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +7 -0
  214. package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +21 -0
  215. package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +27 -0
  216. package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +21 -0
  217. package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +30 -0
  218. package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +21 -0
  219. package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +21 -0
  220. package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +6 -0
  221. package/dist/components/ui/sidebar/index.d.ts +37 -0
  222. package/dist/components/ui/sidebar/utils.d.ts +56 -0
  223. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +6 -0
  224. package/dist/components/ui/skeleton/index.d.ts +1 -0
  225. package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
  226. package/dist/components/ui/slider/index.d.ts +1 -0
  227. package/dist/components/ui/switch/Switch.vue.d.ts +29 -0
  228. package/dist/components/ui/switch/index.d.ts +1 -0
  229. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
  230. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
  231. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
  232. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
  233. package/dist/components/ui/tooltip/index.d.ts +4 -0
  234. package/dist/confirm-dialog.d.ts +2 -0
  235. package/dist/confirm-dialog.js +9 -0
  236. package/dist/createLucideIcon-CCMB2vDW.js +130 -0
  237. package/dist/dashboard-shell.d.ts +6 -0
  238. package/dist/dashboard-shell.js +5 -0
  239. package/dist/date-picker.d.ts +6 -0
  240. package/dist/date-picker.js +5 -0
  241. package/dist/dialog.d.ts +2 -0
  242. package/dist/dialog.js +14 -0
  243. package/dist/field.d.ts +2 -0
  244. package/dist/field.js +294 -0
  245. package/dist/index-C1_fxYhb.js +251 -0
  246. package/dist/index-Dfi5ESP2.js +299 -0
  247. package/dist/index-FpH8cK6B.js +44 -0
  248. package/dist/index.d.ts +28 -0
  249. package/dist/index.js +171 -0
  250. package/dist/info-DZrSmi42.js +15 -0
  251. package/dist/input.d.ts +2 -0
  252. package/dist/input.js +4 -0
  253. package/dist/label.d.ts +2 -0
  254. package/dist/label.js +4 -0
  255. package/dist/lib/utils.d.ts +2 -0
  256. package/dist/message-dialog.d.ts +2 -0
  257. package/dist/message-dialog.js +8 -0
  258. package/dist/native-select.d.ts +2 -0
  259. package/dist/native-select.js +25 -0
  260. package/dist/popover.d.ts +2 -0
  261. package/dist/popover.js +8 -0
  262. package/dist/select.d.ts +2 -0
  263. package/dist/select.js +14 -0
  264. package/dist/separator.d.ts +2 -0
  265. package/dist/separator.js +4 -0
  266. package/dist/sheet.d.ts +2 -0
  267. package/dist/sheet.js +12 -0
  268. package/dist/sidebar.d.ts +2 -0
  269. package/dist/sidebar.js +813 -0
  270. package/dist/skeleton.d.ts +2 -0
  271. package/dist/skeleton.js +4 -0
  272. package/dist/slider-form-component.d.ts +6 -0
  273. package/dist/slider-form-component.js +5 -0
  274. package/dist/slider.d.ts +2 -0
  275. package/dist/slider.js +4 -0
  276. package/dist/style.css +4021 -0
  277. package/dist/switch-form-component.d.ts +6 -0
  278. package/dist/switch-form-component.js +5 -0
  279. package/dist/switch.d.ts +2 -0
  280. package/dist/switch.js +4 -0
  281. package/dist/tooltip.d.ts +2 -0
  282. package/dist/tooltip.js +8 -0
  283. package/dist/useDirection-SIyEYNxv.js +12 -0
  284. package/dist/useFocusGuards-tgErlvMF.js +29 -0
  285. package/dist/useFormControl-7ytzz-r7.js +11 -0
  286. package/dist/useForwardExpose-CNVHwdF2.js +58 -0
  287. package/dist/useForwardPropsEmits-DmumnZO5.js +63 -0
  288. package/dist/useKbd-JjFOu4f7.js +41 -0
  289. package/dist/usePrimitiveElement-CijaRBgF.js +16 -0
  290. package/dist/useSize-DO9Z3wC4.js +51 -0
  291. package/dist/useTypeahead-Dqe1QXq1.js +159 -0
  292. package/dist/utils-Bz4m9VPB.js +3192 -0
  293. package/dist/utils-RRmyeqLm.js +16 -0
  294. package/dist/utils.d.ts +2 -0
  295. package/dist/utils.js +4 -0
  296. package/dist/x-2_VzbDS9.js +48 -0
  297. package/package.json +186 -0
@@ -0,0 +1,242 @@
1
+ import { reactive, render, h, markRaw, defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, normalizeClass, resolveDynamicComponent, createVNode, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
+ import { _ as _sfc_main$1, a as _sfc_main$2, d as _sfc_main$3, e as _sfc_main$4, b as _sfc_main$5, c as _sfc_main$6 } from "./AlertDialogTitle.vue_vue_type_script_setup_true_lang-CWCr2erD.js";
3
+ import { Button as _sfc_main$7 } from "./button.js";
4
+ import { I as Info } from "./info-DZrSmi42.js";
5
+ import { c as createLucideIcon } from "./createLucideIcon-CCMB2vDW.js";
6
+ import { C as Check } from "./check-iejznCzf.js";
7
+ /**
8
+ * @license lucide-vue-next v1.0.0 - ISC
9
+ *
10
+ * This source code is licensed under the ISC license.
11
+ * See the LICENSE file in the root directory of this source tree.
12
+ */
13
+ const CircleAlert = createLucideIcon("circle-alert", [
14
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
15
+ ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
16
+ ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
17
+ ]);
18
+ const messageDialogQueue = [];
19
+ let nextMessageDialogId = 0;
20
+ const DIALOG_CLOSE_DURATION_MS = 300;
21
+ let closeTimer = null;
22
+ let messageDialogMountPromise = null;
23
+ const MESSAGE_DIALOG_ROOT_ID = "ui-vintage-message-dialog-root";
24
+ const messageDialogState = reactive({
25
+ current: null,
26
+ busy: false,
27
+ isOpen: false
28
+ });
29
+ const markIcon = (icon) => icon ? markRaw(icon) : null;
30
+ const ensureMessageDialogMounted = () => {
31
+ if (typeof document === "undefined") {
32
+ return Promise.resolve();
33
+ }
34
+ const existingRoot = document.getElementById(MESSAGE_DIALOG_ROOT_ID);
35
+ if (existingRoot) {
36
+ return Promise.resolve();
37
+ }
38
+ if (messageDialogMountPromise) {
39
+ return messageDialogMountPromise;
40
+ }
41
+ messageDialogMountPromise = (async () => {
42
+ const { default: MessageDialog } = await import("./MessageDialog-BrowppID.js");
43
+ if (document.getElementById(MESSAGE_DIALOG_ROOT_ID)) {
44
+ return;
45
+ }
46
+ const container = document.createElement("div");
47
+ container.id = MESSAGE_DIALOG_ROOT_ID;
48
+ document.body.appendChild(container);
49
+ render(h(MessageDialog), container);
50
+ })().finally(() => {
51
+ messageDialogMountPromise = null;
52
+ });
53
+ return messageDialogMountPromise;
54
+ };
55
+ const openNextMessageDialog = () => {
56
+ const nextDialog = messageDialogQueue.shift() ?? null;
57
+ messageDialogState.current = nextDialog;
58
+ messageDialogState.isOpen = Boolean(nextDialog);
59
+ };
60
+ const enqueueMessageDialog = (request) => {
61
+ messageDialogQueue.push(request);
62
+ if (!messageDialogState.current) {
63
+ openNextMessageDialog();
64
+ }
65
+ };
66
+ const clearCurrentMessageDialog = () => {
67
+ messageDialogState.busy = false;
68
+ messageDialogState.isOpen = false;
69
+ messageDialogState.current = null;
70
+ openNextMessageDialog();
71
+ };
72
+ const scheduleCloseCurrentMessageDialog = () => {
73
+ if (!messageDialogState.current || !messageDialogState.isOpen) {
74
+ return;
75
+ }
76
+ messageDialogState.isOpen = false;
77
+ if (closeTimer) {
78
+ clearTimeout(closeTimer);
79
+ }
80
+ closeTimer = setTimeout(() => {
81
+ closeTimer = null;
82
+ clearCurrentMessageDialog();
83
+ }, DIALOG_CLOSE_DURATION_MS);
84
+ };
85
+ const closeMessageDialog = () => {
86
+ const current = messageDialogState.current;
87
+ if (!current || !messageDialogState.isOpen) {
88
+ return;
89
+ }
90
+ current.resolve();
91
+ scheduleCloseCurrentMessageDialog();
92
+ };
93
+ const resolveActiveMessageDialog = () => {
94
+ const current = messageDialogState.current;
95
+ if (!current || messageDialogState.busy) {
96
+ return;
97
+ }
98
+ current.resolve();
99
+ scheduleCloseCurrentMessageDialog();
100
+ };
101
+ const showMessageDialog = (options) => {
102
+ void ensureMessageDialogMounted();
103
+ return new Promise((resolve) => {
104
+ enqueueMessageDialog({
105
+ id: nextMessageDialogId += 1,
106
+ options: {
107
+ type: options.type ?? "Info",
108
+ title: options.title ?? "",
109
+ message: options.message,
110
+ closeText: options.closeText ?? "Close",
111
+ icon: markIcon(options.icon),
112
+ closeButtonIcon: markIcon(options.closeButtonIcon)
113
+ },
114
+ resolve
115
+ });
116
+ });
117
+ };
118
+ const _hoisted_1 = { class: "px-5 pb-5 pt-5 sm:px-6 sm:pb-4 sm:pt-6" };
119
+ const _hoisted_2 = { class: "flex flex-col gap-4 sm:flex-row sm:items-start" };
120
+ const _sfc_main = /* @__PURE__ */ defineComponent({
121
+ __name: "MessageDialog",
122
+ setup(__props) {
123
+ const currentDialog = computed(() => messageDialogState.current);
124
+ const messageIcon = computed(() => {
125
+ const current = currentDialog.value;
126
+ if (!current) {
127
+ return Info;
128
+ }
129
+ if (current.options.icon) {
130
+ return current.options.icon;
131
+ }
132
+ if (current.options.type === "Error") {
133
+ return CircleAlert;
134
+ }
135
+ if (current.options.type === "Success") {
136
+ return Check;
137
+ }
138
+ return Info;
139
+ });
140
+ const messageIconClasses = computed(() => {
141
+ const current = currentDialog.value;
142
+ if (!current) {
143
+ return "border-[var(--border)] bg-[var(--bg-surface-light)] dark:bg-[var(--bg-surface-dark)]";
144
+ }
145
+ if (current.options.type === "Error") {
146
+ return "border-red-200 bg-red-50 dark:border-red-900/50 dark:bg-red-950/30";
147
+ }
148
+ if (current.options.type === "Success") {
149
+ return "border-green-200 bg-green-50 dark:border-green-900/50 dark:bg-green-950/30";
150
+ }
151
+ return "border-[var(--border)] bg-[var(--bg-surface-light)] dark:bg-[var(--bg-surface-dark)]";
152
+ });
153
+ const messageGlyphClasses = computed(() => {
154
+ const current = currentDialog.value;
155
+ if (!current) {
156
+ return "text-blue-600";
157
+ }
158
+ if (current.options.type === "Error") {
159
+ return "text-red-600";
160
+ }
161
+ if (current.options.type === "Success") {
162
+ return "text-green-600";
163
+ }
164
+ return "text-blue-600";
165
+ });
166
+ const handleOpenChange = (open) => {
167
+ if (!open) {
168
+ closeMessageDialog();
169
+ }
170
+ };
171
+ return (_ctx, _cache) => {
172
+ return openBlock(), createBlock(unref(_sfc_main$1), {
173
+ open: unref(messageDialogState).isOpen,
174
+ "onUpdate:open": handleOpenChange
175
+ }, {
176
+ default: withCtx(() => [
177
+ currentDialog.value ? (openBlock(), createBlock(unref(_sfc_main$2), { key: 0 }, {
178
+ default: withCtx(() => [
179
+ createElementVNode("div", _hoisted_1, [
180
+ createElementVNode("div", _hoisted_2, [
181
+ createElementVNode("div", {
182
+ class: normalizeClass(["flex size-12 shrink-0 self-center items-center justify-center rounded border sm:size-10 sm:self-start", messageIconClasses.value])
183
+ }, [
184
+ (openBlock(), createBlock(resolveDynamicComponent(messageIcon.value), {
185
+ "stroke-width": 1.8,
186
+ class: normalizeClass(["size-6", messageGlyphClasses.value])
187
+ }, null, 8, ["class"]))
188
+ ], 2),
189
+ createVNode(unref(_sfc_main$3), { class: "sm:pt-0" }, {
190
+ default: withCtx(() => [
191
+ createVNode(unref(_sfc_main$4), null, {
192
+ default: withCtx(() => [
193
+ createTextVNode(toDisplayString(currentDialog.value.options.title), 1)
194
+ ]),
195
+ _: 1
196
+ }),
197
+ createVNode(unref(_sfc_main$5), null, {
198
+ default: withCtx(() => [
199
+ createTextVNode(toDisplayString(currentDialog.value.options.message), 1)
200
+ ]),
201
+ _: 1
202
+ })
203
+ ]),
204
+ _: 1
205
+ })
206
+ ])
207
+ ]),
208
+ createVNode(unref(_sfc_main$6), { class: "items-end" }, {
209
+ default: withCtx(() => [
210
+ createVNode(unref(_sfc_main$7), {
211
+ variant: "outline",
212
+ disabled: unref(messageDialogState).busy,
213
+ onClick: unref(resolveActiveMessageDialog)
214
+ }, {
215
+ default: withCtx(() => [
216
+ currentDialog.value.options.closeButtonIcon ? (openBlock(), createBlock(resolveDynamicComponent(currentDialog.value.options.closeButtonIcon), {
217
+ key: 0,
218
+ class: "size-4"
219
+ })) : createCommentVNode("", true),
220
+ createTextVNode(" " + toDisplayString(currentDialog.value.options.closeText), 1)
221
+ ]),
222
+ _: 1
223
+ }, 8, ["disabled", "onClick"])
224
+ ]),
225
+ _: 1
226
+ })
227
+ ]),
228
+ _: 1
229
+ })) : createCommentVNode("", true)
230
+ ]),
231
+ _: 1
232
+ }, 8, ["open"]);
233
+ };
234
+ }
235
+ });
236
+ export {
237
+ _sfc_main as _,
238
+ closeMessageDialog as c,
239
+ messageDialogState as m,
240
+ resolveActiveMessageDialog as r,
241
+ showMessageDialog as s
242
+ };
@@ -0,0 +1,73 @@
1
+ import { defineComponent, openBlock, createElementBlock, withDirectives, createElementVNode, mergeProps, unref, isRef, renderSlot, vModelSelect, createVNode, normalizeClass } from "vue";
2
+ import { u as useVModel } from "./index-C1_fxYhb.js";
3
+ import { c as cn } from "./utils-Bz4m9VPB.js";
4
+ import { r as reactiveOmit } from "./index-Dfi5ESP2.js";
5
+ import { C as ChevronDown } from "./chevron-down-DP-oz-sL.js";
6
+ const _hoisted_1 = {
7
+ class: "group/native-select relative w-fit has-[select:disabled]:opacity-50",
8
+ "data-slot": "native-select-wrapper"
9
+ };
10
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
11
+ ...{
12
+ inheritAttrs: false
13
+ },
14
+ __name: "NativeSelect",
15
+ props: {
16
+ modelValue: {},
17
+ class: {}
18
+ },
19
+ emits: ["update:modelValue"],
20
+ setup(__props, { emit: __emit }) {
21
+ const props = __props;
22
+ const emit = __emit;
23
+ const modelValue = useVModel(props, "modelValue", emit, {
24
+ passive: true,
25
+ defaultValue: ""
26
+ });
27
+ const delegatedProps = reactiveOmit(props, "class");
28
+ return (_ctx, _cache) => {
29
+ return openBlock(), createElementBlock("div", _hoisted_1, [
30
+ withDirectives(createElementVNode("select", mergeProps({ ..._ctx.$attrs, ...unref(delegatedProps) }, {
31
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
32
+ "data-slot": "native-select",
33
+ class: unref(cn)(
34
+ "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent px-3 py-2 pr-9 text-sm shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed",
35
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
36
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
37
+ props.class
38
+ )
39
+ }), [
40
+ renderSlot(_ctx.$slots, "default")
41
+ ], 16), [
42
+ [vModelSelect, unref(modelValue)]
43
+ ]),
44
+ createVNode(unref(ChevronDown), {
45
+ class: "text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none",
46
+ "aria-hidden": "true",
47
+ "data-slot": "native-select-icon"
48
+ })
49
+ ]);
50
+ };
51
+ }
52
+ });
53
+ const _sfc_main = /* @__PURE__ */ defineComponent({
54
+ __name: "NativeSelectOption",
55
+ props: {
56
+ class: {}
57
+ },
58
+ setup(__props) {
59
+ const props = __props;
60
+ return (_ctx, _cache) => {
61
+ return openBlock(), createElementBlock("option", {
62
+ "data-slot": "native-select-option",
63
+ class: normalizeClass(unref(cn)("bg-popover text-popover-foreground", props.class))
64
+ }, [
65
+ renderSlot(_ctx.$slots, "default")
66
+ ], 2);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ _sfc_main$1 as _,
72
+ _sfc_main as a
73
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent, onBeforeMount, onUnmounted, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot, mergeProps } from "vue";
2
+ import { u as useForwardExpose } from "./useForwardExpose-CNVHwdF2.js";
3
+ import { P as PopperAnchor_default } from "./PopperContent-BiM0YLO3.js";
4
+ import { i as injectPopoverRootContext } from "./PopoverTrigger.vue_vue_type_script_setup_true_lang-KTcg6Jnl.js";
5
+ var PopoverAnchor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "PopoverAnchor",
7
+ props: {
8
+ reference: {
9
+ type: null,
10
+ required: false
11
+ },
12
+ asChild: {
13
+ type: Boolean,
14
+ required: false
15
+ },
16
+ as: {
17
+ type: null,
18
+ required: false
19
+ }
20
+ },
21
+ setup(__props) {
22
+ const props = __props;
23
+ useForwardExpose();
24
+ const rootContext = injectPopoverRootContext();
25
+ onBeforeMount(() => {
26
+ rootContext.hasCustomAnchor.value = true;
27
+ });
28
+ onUnmounted(() => {
29
+ rootContext.hasCustomAnchor.value = false;
30
+ });
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createBlock(unref(PopperAnchor_default), normalizeProps(guardReactiveProps(props)), {
33
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
34
+ _: 3
35
+ }, 16);
36
+ };
37
+ }
38
+ });
39
+ var PopoverAnchor_default = PopoverAnchor_vue_vue_type_script_setup_true_lang_default;
40
+ const _sfc_main = /* @__PURE__ */ defineComponent({
41
+ __name: "PopoverAnchor",
42
+ props: {
43
+ reference: {},
44
+ asChild: { type: Boolean },
45
+ as: {}
46
+ },
47
+ setup(__props) {
48
+ const props = __props;
49
+ return (_ctx, _cache) => {
50
+ return openBlock(), createBlock(unref(PopoverAnchor_default), mergeProps({ "data-slot": "popover-anchor" }, props), {
51
+ default: withCtx(() => [
52
+ renderSlot(_ctx.$slots, "default")
53
+ ]),
54
+ _: 3
55
+ }, 16);
56
+ };
57
+ }
58
+ });
59
+ export {
60
+ _sfc_main as _
61
+ };