@brumaombra/ui-vintage 0.6.8 → 0.7.3

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 (697) hide show
  1. package/README.md +61 -51
  2. package/module.mjs +75 -0
  3. package/package.json +82 -272
  4. package/src/components/background-grid/BackgroundGrid.vue +5 -0
  5. package/src/components/background-grid/index.ts +2 -0
  6. package/src/components/blog/AllPostsSection.vue +46 -0
  7. package/src/components/blog/BlogFAQSection.vue +71 -0
  8. package/src/components/blog/BlogHeaderSection.vue +35 -0
  9. package/src/components/blog/BlogInfoSection.vue +70 -0
  10. package/src/components/blog/BlogSectionTitle.vue +12 -0
  11. package/src/components/blog/CategoriesList.vue +17 -0
  12. package/src/components/blog/CategoriesSection.vue +14 -0
  13. package/src/components/blog/CategoryCard.vue +34 -0
  14. package/src/components/blog/HeaderCarousel.vue +194 -0
  15. package/src/components/blog/PostCard.vue +56 -0
  16. package/src/components/blog/PostsList.vue +16 -0
  17. package/src/components/blog/SocialShareSidebar.vue +94 -0
  18. package/src/components/blog/TableOfContents.vue +114 -0
  19. package/{dist/components/blog/index.d.ts → src/components/blog/index.ts} +1 -1
  20. package/src/components/busy-indicator/BusyIndicator.vue +14 -0
  21. package/src/components/busy-indicator/busy-indicator-state.ts +88 -0
  22. package/src/components/busy-indicator/index.ts +3 -0
  23. package/src/components/card-grid/CardGrid.vue +47 -0
  24. package/src/components/card-grid/index.ts +2 -0
  25. package/src/components/chip/Chip.vue +40 -0
  26. package/src/components/chip/index.ts +2 -0
  27. package/src/components/confirm-dialog/ConfirmDialog.vue +60 -0
  28. package/src/components/confirm-dialog/confirm-dialog-state.ts +200 -0
  29. package/src/components/confirm-dialog/index.ts +12 -0
  30. package/src/components/content/BlogList.vue +60 -0
  31. package/src/components/content/BlogTable.vue +56 -0
  32. package/src/components/content/ProseHr.vue +26 -0
  33. package/{dist/components/content/index.d.ts → src/components/content/index.ts} +1 -1
  34. package/src/components/dashboard-shell/DashboardShell.vue +205 -0
  35. package/src/components/dashboard-shell/index.ts +2 -0
  36. package/src/components/data-list/DataList.vue +19 -0
  37. package/src/components/data-list/DataListItem.vue +17 -0
  38. package/src/components/data-list/DataListLabel.vue +17 -0
  39. package/src/components/data-list/DataListText.vue +17 -0
  40. package/src/components/data-list/DataListValue.vue +17 -0
  41. package/src/components/data-list/index.ts +5 -0
  42. package/src/components/empty-state-card/EmptyStateCard.vue +54 -0
  43. package/{dist/components/empty-state-card/index.d.ts → src/components/empty-state-card/index.ts} +1 -1
  44. package/src/components/error-page/ErrorPage.vue +118 -0
  45. package/src/components/error-page/index.ts +2 -0
  46. package/src/components/info-card/InfoCard.vue +42 -0
  47. package/src/components/info-card/index.ts +2 -0
  48. package/src/components/landing/index.ts +6 -0
  49. package/src/components/landing/landing-content/LandingContent.vue +17 -0
  50. package/src/components/landing/landing-content/index.ts +2 -0
  51. package/src/components/landing/landing-footer/LandingFooter.vue +151 -0
  52. package/src/components/landing/landing-footer/index.ts +3 -0
  53. package/src/components/landing/landing-navbar/LandingNavbar.vue +48 -0
  54. package/src/components/landing/landing-navbar/index.ts +2 -0
  55. package/src/components/landing/landing-shell/LandingShell.vue +58 -0
  56. package/src/components/landing/landing-shell/index.ts +2 -0
  57. package/src/components/language-flag/LanguageFlag.vue +54 -0
  58. package/src/components/language-flag/flags/ChineseFlag.vue +10 -0
  59. package/src/components/language-flag/flags/EnglishFlag.vue +9 -0
  60. package/src/components/language-flag/flags/FrenchFlag.vue +7 -0
  61. package/src/components/language-flag/flags/GermanFlag.vue +7 -0
  62. package/src/components/language-flag/flags/ItalianFlag.vue +9 -0
  63. package/src/components/language-flag/flags/JapaneseFlag.vue +6 -0
  64. package/src/components/language-flag/flags/PortugueseFlag.vue +59 -0
  65. package/src/components/language-flag/flags/RussianFlag.vue +7 -0
  66. package/src/components/language-flag/flags/SpanishFlag.vue +6 -0
  67. package/{dist/components/language-flag/index.d.ts → src/components/language-flag/index.ts} +1 -1
  68. package/src/components/language-selector/LanguageSelector.vue +154 -0
  69. package/{dist/components/language-selector/index.d.ts → src/components/language-selector/index.ts} +1 -1
  70. package/src/components/load-more-button/LoadMoreButton.vue +44 -0
  71. package/{dist/components/load-more-button/index.d.ts → src/components/load-more-button/index.ts} +1 -1
  72. package/src/components/loading-state-card/LoadingStateCard.vue +43 -0
  73. package/{dist/components/loading-state-card/index.d.ts → src/components/loading-state-card/index.ts} +1 -1
  74. package/src/components/message-dialog/MessageDialog.vue +101 -0
  75. package/src/components/message-dialog/index.ts +11 -0
  76. package/src/components/message-dialog/message-dialog-state.ts +168 -0
  77. package/src/components/message-toast/MessageToast.vue +75 -0
  78. package/src/components/message-toast/index.ts +9 -0
  79. package/src/components/message-toast/message-toast-state.ts +167 -0
  80. package/src/components/page-header/PageHeader.vue +52 -0
  81. package/src/components/page-header/index.ts +2 -0
  82. package/src/components/progress-component/ProgressComponent.vue +45 -0
  83. package/{dist/components/progress-component/index.d.ts → src/components/progress-component/index.ts} +1 -1
  84. package/src/components/single-value-card/SingleValueCard.vue +51 -0
  85. package/{dist/components/single-value-card/index.d.ts → src/components/single-value-card/index.ts} +1 -1
  86. package/src/components/slider-form-component/SliderFormComponent.vue +71 -0
  87. package/src/components/slider-form-component/index.ts +2 -0
  88. package/src/components/switch-form-component/SwitchFormComponent.vue +39 -0
  89. package/src/components/switch-form-component/index.ts +2 -0
  90. package/src/components/text-link/TextLink.vue +33 -0
  91. package/src/components/text-link/index.ts +2 -0
  92. package/src/components/theme-selector/ThemeSelector.vue +129 -0
  93. package/src/components/theme-selector/index.ts +2 -0
  94. package/src/components/ui/alert/Alert.vue +17 -0
  95. package/src/components/ui/alert/AlertDescription.vue +14 -0
  96. package/src/components/ui/alert/AlertTitle.vue +14 -0
  97. package/src/components/ui/alert/index.ts +15 -0
  98. package/src/components/ui/alert-dialog/AlertDialog.vue +15 -0
  99. package/src/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
  100. package/src/components/ui/alert-dialog/AlertDialogCancel.vue +22 -0
  101. package/src/components/ui/alert-dialog/AlertDialogContent.vue +36 -0
  102. package/src/components/ui/alert-dialog/AlertDialogDescription.vue +19 -0
  103. package/src/components/ui/alert-dialog/AlertDialogFooter.vue +18 -0
  104. package/src/components/ui/alert-dialog/AlertDialogHeader.vue +14 -0
  105. package/src/components/ui/alert-dialog/AlertDialogTitle.vue +17 -0
  106. package/src/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
  107. package/src/components/ui/alert-dialog/index.ts +9 -0
  108. package/src/components/ui/badge/Badge.vue +26 -0
  109. package/src/components/ui/badge/index.ts +1 -0
  110. package/src/components/ui/breadcrumb/Breadcrumb.vue +17 -0
  111. package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +24 -0
  112. package/src/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
  113. package/src/components/ui/breadcrumb/BreadcrumbLink.vue +21 -0
  114. package/src/components/ui/breadcrumb/BreadcrumbList.vue +17 -0
  115. package/src/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
  116. package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +23 -0
  117. package/src/components/ui/breadcrumb/index.ts +7 -0
  118. package/src/components/ui/busy/Busy.vue +45 -0
  119. package/src/components/ui/busy/index.ts +1 -0
  120. package/src/components/ui/button/Button.vue +24 -0
  121. package/src/components/ui/button/index.ts +41 -0
  122. package/src/components/ui/calendar/Calendar.vue +139 -0
  123. package/src/components/ui/calendar/CalendarCell.vue +23 -0
  124. package/src/components/ui/calendar/CalendarCellTrigger.vue +39 -0
  125. package/src/components/ui/calendar/CalendarGrid.vue +23 -0
  126. package/src/components/ui/calendar/CalendarGridBody.vue +15 -0
  127. package/src/components/ui/calendar/CalendarGridHead.vue +16 -0
  128. package/src/components/ui/calendar/CalendarGridRow.vue +22 -0
  129. package/src/components/ui/calendar/CalendarHeadCell.vue +23 -0
  130. package/src/components/ui/calendar/CalendarHeader.vue +23 -0
  131. package/src/components/ui/calendar/CalendarHeading.vue +30 -0
  132. package/src/components/ui/calendar/CalendarNextButton.vue +32 -0
  133. package/src/components/ui/calendar/CalendarPrevButton.vue +32 -0
  134. package/src/components/ui/calendar/index.ts +14 -0
  135. package/src/components/ui/card/Card.vue +31 -0
  136. package/src/components/ui/card/CardAction.vue +14 -0
  137. package/src/components/ui/card/CardContent.vue +14 -0
  138. package/src/components/ui/card/CardDescription.vue +14 -0
  139. package/src/components/ui/card/CardFooter.vue +14 -0
  140. package/src/components/ui/card/CardHeader.vue +14 -0
  141. package/src/components/ui/card/CardText.vue +14 -0
  142. package/src/components/ui/card/CardTitle.vue +14 -0
  143. package/src/components/ui/card/index.ts +8 -0
  144. package/src/components/ui/command/Command.vue +83 -0
  145. package/src/components/ui/command/CommandDialog.vue +31 -0
  146. package/src/components/ui/command/CommandEmpty.vue +27 -0
  147. package/src/components/ui/command/CommandGroup.vue +47 -0
  148. package/src/components/ui/command/CommandInput.vue +31 -0
  149. package/src/components/ui/command/CommandItem.vue +76 -0
  150. package/src/components/ui/command/CommandList.vue +25 -0
  151. package/src/components/ui/command/CommandSeparator.vue +17 -0
  152. package/src/components/ui/command/CommandShortcut.vue +14 -0
  153. package/src/components/ui/command/index.ts +25 -0
  154. package/src/components/ui/date-picker/DatePicker.vue +67 -0
  155. package/src/components/ui/date-picker/index.ts +2 -0
  156. package/src/components/ui/date-time-picker/DateTimePicker.vue +170 -0
  157. package/{dist/components/ui/date-time-picker/index.d.ts → src/components/ui/date-time-picker/index.ts} +2 -2
  158. package/src/components/ui/dialog/Dialog.vue +15 -0
  159. package/src/components/ui/dialog/DialogClose.vue +15 -0
  160. package/src/components/ui/dialog/DialogContent.vue +54 -0
  161. package/src/components/ui/dialog/DialogDescription.vue +19 -0
  162. package/src/components/ui/dialog/DialogFooter.vue +18 -0
  163. package/src/components/ui/dialog/DialogHeader.vue +14 -0
  164. package/src/components/ui/dialog/DialogOverlay.vue +17 -0
  165. package/src/components/ui/dialog/DialogScrollContent.vue +57 -0
  166. package/src/components/ui/dialog/DialogTitle.vue +19 -0
  167. package/src/components/ui/dialog/DialogTrigger.vue +12 -0
  168. package/src/components/ui/dialog/index.ts +10 -0
  169. package/src/components/ui/field/Field.vue +20 -0
  170. package/src/components/ui/field/FieldContent.vue +17 -0
  171. package/src/components/ui/field/FieldDescription.vue +19 -0
  172. package/src/components/ui/field/FieldError.vue +48 -0
  173. package/src/components/ui/field/FieldGroup.vue +17 -0
  174. package/src/components/ui/field/FieldLabel.vue +20 -0
  175. package/src/components/ui/field/FieldLegend.vue +20 -0
  176. package/src/components/ui/field/FieldSeparator.vue +21 -0
  177. package/src/components/ui/field/FieldSet.vue +18 -0
  178. package/src/components/ui/field/FieldTitle.vue +17 -0
  179. package/src/components/ui/field/index.ts +41 -0
  180. package/src/components/ui/input/Input.vue +29 -0
  181. package/src/components/ui/input/index.ts +1 -0
  182. package/src/components/ui/label/Label.vue +21 -0
  183. package/src/components/ui/label/index.ts +1 -0
  184. package/src/components/ui/native-select/NativeSelect.vue +52 -0
  185. package/src/components/ui/native-select/NativeSelectOptGroup.vue +12 -0
  186. package/src/components/ui/native-select/NativeSelectOption.vue +12 -0
  187. package/src/components/ui/native-select/index.ts +3 -0
  188. package/src/components/ui/popover/Popover.vue +15 -0
  189. package/src/components/ui/popover/PopoverAnchor.vue +12 -0
  190. package/src/components/ui/popover/PopoverContent.vue +40 -0
  191. package/src/components/ui/popover/PopoverTrigger.vue +12 -0
  192. package/src/components/ui/popover/index.ts +4 -0
  193. package/src/components/ui/progress/Progress.vue +38 -0
  194. package/src/components/ui/progress/index.ts +1 -0
  195. package/src/components/ui/scroll-area/ScrollArea.vue +33 -0
  196. package/src/components/ui/scroll-area/ScrollBar.vue +32 -0
  197. package/src/components/ui/scroll-area/index.ts +2 -0
  198. package/src/components/ui/select/Select.vue +15 -0
  199. package/src/components/ui/select/SelectContent.vue +50 -0
  200. package/src/components/ui/select/SelectGroup.vue +12 -0
  201. package/src/components/ui/select/SelectItem.vue +50 -0
  202. package/src/components/ui/select/SelectItemContent.vue +40 -0
  203. package/src/components/ui/select/SelectItemText.vue +12 -0
  204. package/src/components/ui/select/SelectLabel.vue +14 -0
  205. package/src/components/ui/select/SelectScrollDownButton.vue +23 -0
  206. package/src/components/ui/select/SelectScrollUpButton.vue +23 -0
  207. package/src/components/ui/select/SelectSeparator.vue +15 -0
  208. package/src/components/ui/select/SelectTrigger.vue +31 -0
  209. package/src/components/ui/select/SelectValue.vue +12 -0
  210. package/src/components/ui/select/SelectValueContent.vue +44 -0
  211. package/src/components/ui/select/index.ts +13 -0
  212. package/src/components/ui/separator/Separator.vue +24 -0
  213. package/src/components/ui/separator/index.ts +1 -0
  214. package/src/components/ui/sheet/Sheet.vue +15 -0
  215. package/src/components/ui/sheet/SheetClose.vue +12 -0
  216. package/src/components/ui/sheet/SheetContent.vue +49 -0
  217. package/src/components/ui/sheet/SheetDescription.vue +17 -0
  218. package/src/components/ui/sheet/SheetFooter.vue +12 -0
  219. package/src/components/ui/sheet/SheetHeader.vue +12 -0
  220. package/src/components/ui/sheet/SheetOverlay.vue +17 -0
  221. package/src/components/ui/sheet/SheetTitle.vue +17 -0
  222. package/src/components/ui/sheet/SheetTrigger.vue +12 -0
  223. package/src/components/ui/sheet/index.ts +8 -0
  224. package/src/components/ui/sidebar/Sidebar.vue +77 -0
  225. package/src/components/ui/sidebar/SidebarContent.vue +14 -0
  226. package/src/components/ui/sidebar/SidebarFooter.vue +14 -0
  227. package/src/components/ui/sidebar/SidebarGroup.vue +14 -0
  228. package/src/components/ui/sidebar/SidebarGroupAction.vue +21 -0
  229. package/src/components/ui/sidebar/SidebarGroupContent.vue +14 -0
  230. package/src/components/ui/sidebar/SidebarGroupLabel.vue +19 -0
  231. package/src/components/ui/sidebar/SidebarHeader.vue +14 -0
  232. package/src/components/ui/sidebar/SidebarInput.vue +18 -0
  233. package/src/components/ui/sidebar/SidebarInset.vue +18 -0
  234. package/src/components/ui/sidebar/SidebarMenu.vue +14 -0
  235. package/src/components/ui/sidebar/SidebarMenuAction.vue +30 -0
  236. package/src/components/ui/sidebar/SidebarMenuBadge.vue +23 -0
  237. package/src/components/ui/sidebar/SidebarMenuButton.vue +44 -0
  238. package/src/components/ui/sidebar/SidebarMenuButtonChild.vue +27 -0
  239. package/src/components/ui/sidebar/SidebarMenuItem.vue +14 -0
  240. package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +20 -0
  241. package/src/components/ui/sidebar/SidebarMenuSub.vue +18 -0
  242. package/src/components/ui/sidebar/SidebarMenuSubButton.vue +28 -0
  243. package/src/components/ui/sidebar/SidebarMenuSubItem.vue +14 -0
  244. package/src/components/ui/sidebar/SidebarProvider.vue +79 -0
  245. package/src/components/ui/sidebar/SidebarRail.vue +25 -0
  246. package/src/components/ui/sidebar/SidebarSeparator.vue +15 -0
  247. package/src/components/ui/sidebar/SidebarTrigger.vue +21 -0
  248. package/src/components/ui/sidebar/index.ts +64 -0
  249. package/src/components/ui/sidebar/utils.ts +19 -0
  250. package/src/components/ui/skeleton/Skeleton.vue +14 -0
  251. package/src/components/ui/skeleton/index.ts +1 -0
  252. package/src/components/ui/slider/Slider.vue +27 -0
  253. package/src/components/ui/slider/index.ts +1 -0
  254. package/src/components/ui/switch/Switch.vue +30 -0
  255. package/src/components/ui/switch/index.ts +1 -0
  256. package/src/components/ui/table/Table.vue +16 -0
  257. package/src/components/ui/table/TableBody.vue +17 -0
  258. package/src/components/ui/table/TableCaption.vue +17 -0
  259. package/src/components/ui/table/TableCell.vue +22 -0
  260. package/src/components/ui/table/TableEmpty.vue +34 -0
  261. package/src/components/ui/table/TableFooter.vue +17 -0
  262. package/src/components/ui/table/TableHead.vue +17 -0
  263. package/src/components/ui/table/TableHeader.vue +17 -0
  264. package/src/components/ui/table/TableRow.vue +17 -0
  265. package/src/components/ui/table/index.ts +9 -0
  266. package/src/components/ui/tabs/Tabs.vue +24 -0
  267. package/src/components/ui/tabs/TabsContent.vue +21 -0
  268. package/src/components/ui/tabs/TabsList.vue +24 -0
  269. package/src/components/ui/tabs/TabsTrigger.vue +26 -0
  270. package/src/components/ui/tabs/index.ts +4 -0
  271. package/src/components/ui/textarea/Textarea.vue +29 -0
  272. package/src/components/ui/textarea/index.ts +1 -0
  273. package/src/components/ui/time-picker/TimePicker.vue +56 -0
  274. package/src/components/ui/time-picker/index.ts +2 -0
  275. package/src/components/ui/tooltip/Tooltip.vue +15 -0
  276. package/src/components/ui/tooltip/TooltipContent.vue +30 -0
  277. package/src/components/ui/tooltip/TooltipProvider.vue +14 -0
  278. package/src/components/ui/tooltip/TooltipTrigger.vue +12 -0
  279. package/src/components/ui/tooltip/index.ts +4 -0
  280. package/{dist/i18n/de.json.d.ts → src/i18n/de.json} +2 -4
  281. package/{dist/i18n/en.json.d.ts → src/i18n/en.json} +2 -4
  282. package/{dist/i18n/es.json.d.ts → src/i18n/es.json} +2 -4
  283. package/{dist/i18n/fr.json.d.ts → src/i18n/fr.json} +2 -4
  284. package/{dist/i18n/it.json.d.ts → src/i18n/it.json} +2 -4
  285. package/{dist/i18n/ja.json.d.ts → src/i18n/ja.json} +2 -4
  286. package/{dist/i18n/pt.json.d.ts → src/i18n/pt.json} +2 -4
  287. package/{dist/i18n/ru.json.d.ts → src/i18n/ru.json} +2 -4
  288. package/{dist/i18n/zh.json.d.ts → src/i18n/zh.json} +2 -4
  289. package/src/lib/color-tokens.ts +51 -0
  290. package/src/lib/i18n.ts +85 -0
  291. package/src/lib/utils.ts +29 -0
  292. package/src/nuxt-components.d.ts +5 -0
  293. package/src/runtime/ui-vintage-i18n-plugin.js +48 -0
  294. package/src/shims-vue.d.ts +5 -0
  295. package/src/styles.css +224 -0
  296. package/dist/AlertDialogTitle.vue_vue_type_script_setup_true_lang-DhRDOi2d.js +0 -361
  297. package/dist/BackgroundGrid-BJDDcLzF.js +0 -13
  298. package/dist/Badge.vue_vue_type_script_setup_true_lang-DH_klSVA.js +0 -33
  299. package/dist/Busy-BOXgYrox.js +0 -55
  300. package/dist/BusyIndicator-D-4YHN2L.js +0 -4
  301. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-C6OtvF0h.js +0 -3800
  302. package/dist/Card.vue_vue_type_script_setup_true_lang-CZhFtxSD.js +0 -30
  303. package/dist/CardContent.vue_vue_type_script_setup_true_lang-BxI0-dse.js +0 -22
  304. package/dist/CardFooter.vue_vue_type_script_setup_true_lang-LFjBZHcl.js +0 -22
  305. package/dist/CardText.vue_vue_type_script_setup_true_lang-zUPNe9HY.js +0 -22
  306. package/dist/ChineseFlag-CVrOCbRz.js +0 -18
  307. package/dist/Collection-4P3HQ4uU.js +0 -76
  308. package/dist/ConfigProvider-DYO65bNW.js +0 -6
  309. package/dist/ConfirmDialog-Zu4m9TY-.js +0 -4
  310. package/dist/DatePicker.vue_vue_type_script_setup_true_lang-CzMhKnrj.js +0 -88
  311. package/dist/DialogClose-DxCTEp0d.js +0 -36
  312. package/dist/DialogPortal-BiMJAKLg.js +0 -36
  313. package/dist/DialogTitle-jKgSCoXM.js +0 -526
  314. package/dist/DialogTitle.vue_vue_type_script_setup_true_lang-D0Ephm9c.js +0 -184
  315. package/dist/DialogTrigger-Cb3rLcid.js +0 -52
  316. package/dist/EmptyStateCard.vue_vue_type_script_setup_true_lang-CH3ODMDF.js +0 -59
  317. package/dist/EnglishFlag-BrpG8XMW.js +0 -18
  318. package/dist/FocusScope-mzbqk6Y_.js +0 -448
  319. package/dist/FrenchFlag-CUdQacS3.js +0 -35
  320. package/dist/GermanFlag-Bc1CeEHw.js +0 -35
  321. package/dist/HugeiconsIcon.vue-By2RXWWz.js +0 -111
  322. package/dist/Input.vue_vue_type_script_setup_true_lang-BGGOqKHs.js +0 -37
  323. package/dist/ItalianFlag-BAdg13z7.js +0 -34
  324. package/dist/JapaneseFlag-Dnd2ITzZ.js +0 -27
  325. package/dist/Label.vue_vue_type_script_setup_true_lang-BzD7wUHQ.js +0 -65
  326. package/dist/LandingContent.vue_vue_type_script_setup_true_lang-BySDoKff.js +0 -21
  327. package/dist/LandingFooter.vue_vue_type_script_setup_true_lang-D1_ZjIFj.js +0 -159
  328. package/dist/LandingNavbar.vue_vue_type_script_setup_true_lang-Cu_ksJtE.js +0 -63
  329. package/dist/LandingShell.vue_vue_type_script_setup_true_lang-D6n-hLum.js +0 -49
  330. package/dist/LoadMoreButton.vue_vue_type_script_setup_true_lang-Be0obsa3.js +0 -61
  331. package/dist/LoadingStateCard.vue_vue_type_script_setup_true_lang-CwCrRir_.js +0 -53
  332. package/dist/MessageDialog-ChS4d2qN.js +0 -4
  333. package/dist/MessageToast-CMvpwf2m.js +0 -79
  334. package/dist/NativeSelectOption.vue_vue_type_script_setup_true_lang-CcnlTqUN.js +0 -75
  335. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-Bu5YDhSO.js +0 -801
  336. package/dist/PopperContent-DUJ8a4i0.js +0 -2144
  337. package/dist/PortugueseFlag-DU2jEbaQ.js +0 -19
  338. package/dist/Presence-CTmUEdMR.js +0 -168
  339. package/dist/Primitive-D3IcFg81.js +0 -61
  340. package/dist/Progress.vue_vue_type_script_setup_true_lang-ZKUFAYop.js +0 -188
  341. package/dist/RussianFlag-Cnc4PHmq.js +0 -29
  342. package/dist/Separator-CFm_M4pb.js +0 -87
  343. package/dist/Separator.vue_vue_type_script_setup_true_lang-BDH2gelV.js +0 -29
  344. package/dist/SheetTitle.vue_vue_type_script_setup_true_lang-DZ-80X9J.js +0 -167
  345. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-CK-Q0Oxk.js +0 -20
  346. package/dist/Slider.vue_vue_type_script_setup_true_lang-Cz1oQX11.js +0 -803
  347. package/dist/SpanishFlag-Dy-C9kGk.js +0 -28
  348. package/dist/Switch.vue_vue_type_script_setup_true_lang-BzUQzI2p.js +0 -227
  349. package/dist/TableHeader.vue_vue_type_script_setup_true_lang-BMHYThM4.js +0 -123
  350. package/dist/Teleport-DTOwRCqx.js +0 -315
  351. package/dist/TimePicker.vue_vue_type_script_setup_true_lang-C3Ww9XT5.js +0 -51
  352. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CIBac9lA.js +0 -1120
  353. package/dist/VisuallyHidden-udQT2Fmo.js +0 -60
  354. package/dist/VisuallyHiddenInput-D5eipDQU.js +0 -142
  355. package/dist/_plugin-vue_export-helper-1tPrXgE0.js +0 -10
  356. package/dist/alert-dialog.js +0 -165
  357. package/dist/alert.js +0 -66
  358. package/dist/background-grid.js +0 -5
  359. package/dist/badge.js +0 -4
  360. package/dist/blog.js +0 -938
  361. package/dist/breadcrumb.js +0 -159
  362. package/dist/busy-indicator.js +0 -66
  363. package/dist/busy.js +0 -4
  364. package/dist/button.js +0 -67
  365. package/dist/calendar.js +0 -15
  366. package/dist/card-grid.js +0 -58
  367. package/dist/card.js +0 -84
  368. package/dist/chip.js +0 -47
  369. package/dist/clamp-D5Ye0kJT.js +0 -6
  370. package/dist/color-tokens-D9BviGPK.js +0 -40
  371. package/dist/command.js +0 -1099
  372. package/dist/components/background-grid/BackgroundGrid.vue.d.ts +0 -2
  373. package/dist/components/background-grid/index.d.ts +0 -2
  374. package/dist/components/busy-indicator/BusyIndicator.vue.d.ts +0 -2
  375. package/dist/components/busy-indicator/busy-indicator-state.d.ts +0 -15
  376. package/dist/components/busy-indicator/index.d.ts +0 -3
  377. package/dist/components/card-grid/CardGrid.vue.d.ts +0 -88
  378. package/dist/components/card-grid/index.d.ts +0 -2
  379. package/dist/components/chip/Chip.vue.d.ts +0 -17
  380. package/dist/components/chip/index.d.ts +0 -2
  381. package/dist/components/confirm-dialog/ConfirmDialog.vue.d.ts +0 -2
  382. package/dist/components/confirm-dialog/confirm-dialog-state.d.ts +0 -40
  383. package/dist/components/confirm-dialog/index.d.ts +0 -3
  384. package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +0 -67
  385. package/dist/components/dashboard-shell/index.d.ts +0 -2
  386. package/dist/components/data-list/DataList.vue.d.ts +0 -21
  387. package/dist/components/data-list/DataListItem.vue.d.ts +0 -21
  388. package/dist/components/data-list/DataListLabel.vue.d.ts +0 -21
  389. package/dist/components/data-list/DataListText.vue.d.ts +0 -21
  390. package/dist/components/data-list/DataListValue.vue.d.ts +0 -21
  391. package/dist/components/data-list/index.d.ts +0 -5
  392. package/dist/components/empty-state-card/EmptyStateCard.vue.d.ts +0 -73
  393. package/dist/components/error-page/ErrorPage.vue.d.ts +0 -51
  394. package/dist/components/error-page/index.d.ts +0 -2
  395. package/dist/components/info-card/InfoCard.vue.d.ts +0 -46
  396. package/dist/components/info-card/index.d.ts +0 -2
  397. package/dist/components/landing/index.d.ts +0 -6
  398. package/dist/components/landing/landing-content/LandingContent.vue.d.ts +0 -21
  399. package/dist/components/landing/landing-content/index.d.ts +0 -2
  400. package/dist/components/landing/landing-footer/LandingFooter.vue.d.ts +0 -39
  401. package/dist/components/landing/landing-footer/index.d.ts +0 -3
  402. package/dist/components/landing/landing-navbar/LandingNavbar.vue.d.ts +0 -32
  403. package/dist/components/landing/landing-navbar/index.d.ts +0 -2
  404. package/dist/components/landing/landing-shell/LandingShell.vue.d.ts +0 -31
  405. package/dist/components/landing/landing-shell/index.d.ts +0 -2
  406. package/dist/components/language-flag/LanguageFlag.vue.d.ts +0 -14
  407. package/dist/components/language-flag/flags/ChineseFlag.vue.d.ts +0 -2
  408. package/dist/components/language-flag/flags/EnglishFlag.vue.d.ts +0 -2
  409. package/dist/components/language-flag/flags/FrenchFlag.vue.d.ts +0 -2
  410. package/dist/components/language-flag/flags/GermanFlag.vue.d.ts +0 -2
  411. package/dist/components/language-flag/flags/ItalianFlag.vue.d.ts +0 -2
  412. package/dist/components/language-flag/flags/JapaneseFlag.vue.d.ts +0 -2
  413. package/dist/components/language-flag/flags/PortugueseFlag.vue.d.ts +0 -2
  414. package/dist/components/language-flag/flags/RussianFlag.vue.d.ts +0 -2
  415. package/dist/components/language-flag/flags/SpanishFlag.vue.d.ts +0 -2
  416. package/dist/components/language-selector/LanguageSelector.vue.d.ts +0 -31
  417. package/dist/components/load-more-button/LoadMoreButton.vue.d.ts +0 -36
  418. package/dist/components/loading-state-card/LoadingStateCard.vue.d.ts +0 -55
  419. package/dist/components/message-dialog/MessageDialog.vue.d.ts +0 -2
  420. package/dist/components/message-dialog/index.d.ts +0 -3
  421. package/dist/components/message-dialog/message-dialog-state.d.ts +0 -30
  422. package/dist/components/message-toast/MessageToast.vue.d.ts +0 -2
  423. package/dist/components/message-toast/index.d.ts +0 -2
  424. package/dist/components/message-toast/message-toast-state.d.ts +0 -18
  425. package/dist/components/page-header/PageHeader.vue.d.ts +0 -48
  426. package/dist/components/page-header/index.d.ts +0 -2
  427. package/dist/components/progress-component/ProgressComponent.vue.d.ts +0 -47
  428. package/dist/components/single-value-card/SingleValueCard.vue.d.ts +0 -40
  429. package/dist/components/slider-form-component/SliderFormComponent.vue.d.ts +0 -23
  430. package/dist/components/slider-form-component/index.d.ts +0 -2
  431. package/dist/components/switch-form-component/SwitchFormComponent.vue.d.ts +0 -12
  432. package/dist/components/switch-form-component/index.d.ts +0 -2
  433. package/dist/components/text-link/TextLink.vue.d.ts +0 -35
  434. package/dist/components/text-link/index.d.ts +0 -2
  435. package/dist/components/theme-selector/ThemeSelector.vue.d.ts +0 -2
  436. package/dist/components/theme-selector/index.d.ts +0 -2
  437. package/dist/components/ui/alert/Alert.vue.d.ts +0 -23
  438. package/dist/components/ui/alert/AlertDescription.vue.d.ts +0 -21
  439. package/dist/components/ui/alert/AlertTitle.vue.d.ts +0 -21
  440. package/dist/components/ui/alert/index.d.ts +0 -9
  441. package/dist/components/ui/alert-dialog/AlertDialog.vue.d.ts +0 -25
  442. package/dist/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +0 -22
  443. package/dist/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +0 -22
  444. package/dist/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +0 -36
  445. package/dist/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +0 -22
  446. package/dist/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +0 -21
  447. package/dist/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +0 -21
  448. package/dist/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +0 -22
  449. package/dist/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +0 -18
  450. package/dist/components/ui/alert-dialog/index.d.ts +0 -9
  451. package/dist/components/ui/badge/Badge.vue.d.ts +0 -16
  452. package/dist/components/ui/badge/index.d.ts +0 -1
  453. package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +0 -21
  454. package/dist/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +0 -21
  455. package/dist/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +0 -21
  456. package/dist/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +0 -24
  457. package/dist/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +0 -21
  458. package/dist/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +0 -21
  459. package/dist/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +0 -21
  460. package/dist/components/ui/breadcrumb/index.d.ts +0 -7
  461. package/dist/components/ui/busy/Busy.vue.d.ts +0 -27
  462. package/dist/components/ui/busy/index.d.ts +0 -1
  463. package/dist/components/ui/button/Button.vue.d.ts +0 -27
  464. package/dist/components/ui/button/index.d.ts +0 -7
  465. package/dist/components/ui/calendar/Calendar.vue.d.ts +0 -44
  466. package/dist/components/ui/calendar/CalendarCell.vue.d.ts +0 -22
  467. package/dist/components/ui/calendar/CalendarCellTrigger.vue.d.ts +0 -24
  468. package/dist/components/ui/calendar/CalendarGrid.vue.d.ts +0 -22
  469. package/dist/components/ui/calendar/CalendarGridBody.vue.d.ts +0 -18
  470. package/dist/components/ui/calendar/CalendarGridHead.vue.d.ts +0 -22
  471. package/dist/components/ui/calendar/CalendarGridRow.vue.d.ts +0 -22
  472. package/dist/components/ui/calendar/CalendarHeadCell.vue.d.ts +0 -22
  473. package/dist/components/ui/calendar/CalendarHeader.vue.d.ts +0 -22
  474. package/dist/components/ui/calendar/CalendarHeading.vue.d.ts +0 -28
  475. package/dist/components/ui/calendar/CalendarNextButton.vue.d.ts +0 -22
  476. package/dist/components/ui/calendar/CalendarPrevButton.vue.d.ts +0 -22
  477. package/dist/components/ui/calendar/index.d.ts +0 -13
  478. package/dist/components/ui/card/Card.vue.d.ts +0 -24
  479. package/dist/components/ui/card/CardAction.vue.d.ts +0 -21
  480. package/dist/components/ui/card/CardContent.vue.d.ts +0 -21
  481. package/dist/components/ui/card/CardDescription.vue.d.ts +0 -21
  482. package/dist/components/ui/card/CardFooter.vue.d.ts +0 -21
  483. package/dist/components/ui/card/CardHeader.vue.d.ts +0 -21
  484. package/dist/components/ui/card/CardText.vue.d.ts +0 -21
  485. package/dist/components/ui/card/CardTitle.vue.d.ts +0 -21
  486. package/dist/components/ui/card/index.d.ts +0 -8
  487. package/dist/components/ui/command/Command.vue.d.ts +0 -40
  488. package/dist/components/ui/command/CommandDialog.vue.d.ts +0 -32
  489. package/dist/components/ui/command/CommandEmpty.vue.d.ts +0 -22
  490. package/dist/components/ui/command/CommandGroup.vue.d.ts +0 -23
  491. package/dist/components/ui/command/CommandInput.vue.d.ts +0 -7
  492. package/dist/components/ui/command/CommandItem.vue.d.ts +0 -30
  493. package/dist/components/ui/command/CommandList.vue.d.ts +0 -22
  494. package/dist/components/ui/command/CommandSeparator.vue.d.ts +0 -22
  495. package/dist/components/ui/command/CommandShortcut.vue.d.ts +0 -21
  496. package/dist/components/ui/command/index.d.ts +0 -90
  497. package/dist/components/ui/date-picker/DatePicker.vue.d.ts +0 -21
  498. package/dist/components/ui/date-picker/index.d.ts +0 -2
  499. package/dist/components/ui/date-time-picker/DateTimePicker.vue.d.ts +0 -27
  500. package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -25
  501. package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -18
  502. package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -39
  503. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -22
  504. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -21
  505. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -21
  506. package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +0 -22
  507. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -39
  508. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -22
  509. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -18
  510. package/dist/components/ui/dialog/index.d.ts +0 -10
  511. package/dist/components/ui/field/Field.vue.d.ts +0 -23
  512. package/dist/components/ui/field/FieldContent.vue.d.ts +0 -21
  513. package/dist/components/ui/field/FieldDescription.vue.d.ts +0 -21
  514. package/dist/components/ui/field/FieldError.vue.d.ts +0 -24
  515. package/dist/components/ui/field/FieldGroup.vue.d.ts +0 -21
  516. package/dist/components/ui/field/FieldLabel.vue.d.ts +0 -21
  517. package/dist/components/ui/field/FieldLegend.vue.d.ts +0 -22
  518. package/dist/components/ui/field/FieldSeparator.vue.d.ts +0 -21
  519. package/dist/components/ui/field/FieldSet.vue.d.ts +0 -21
  520. package/dist/components/ui/field/FieldTitle.vue.d.ts +0 -21
  521. package/dist/components/ui/field/index.d.ts +0 -15
  522. package/dist/components/ui/input/Input.vue.d.ts +0 -12
  523. package/dist/components/ui/input/index.d.ts +0 -1
  524. package/dist/components/ui/label/Label.vue.d.ts +0 -22
  525. package/dist/components/ui/label/index.d.ts +0 -1
  526. package/dist/components/ui/native-select/NativeSelect.vue.d.ts +0 -27
  527. package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +0 -21
  528. package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +0 -21
  529. package/dist/components/ui/native-select/index.d.ts +0 -3
  530. package/dist/components/ui/popover/Popover.vue.d.ts +0 -25
  531. package/dist/components/ui/popover/PopoverAnchor.vue.d.ts +0 -18
  532. package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -39
  533. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -18
  534. package/dist/components/ui/popover/index.d.ts +0 -4
  535. package/dist/components/ui/progress/Progress.vue.d.ts +0 -9
  536. package/dist/components/ui/progress/index.d.ts +0 -1
  537. package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +0 -22
  538. package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +0 -9
  539. package/dist/components/ui/scroll-area/index.d.ts +0 -2
  540. package/dist/components/ui/select/Select.vue.d.ts +0 -28
  541. package/dist/components/ui/select/SelectContent.vue.d.ts +0 -35
  542. package/dist/components/ui/select/SelectGroup.vue.d.ts +0 -18
  543. package/dist/components/ui/select/SelectItem.vue.d.ts +0 -24
  544. package/dist/components/ui/select/SelectItemContent.vue.d.ts +0 -15
  545. package/dist/components/ui/select/SelectItemText.vue.d.ts +0 -18
  546. package/dist/components/ui/select/SelectLabel.vue.d.ts +0 -22
  547. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -22
  548. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -22
  549. package/dist/components/ui/select/SelectSeparator.vue.d.ts +0 -7
  550. package/dist/components/ui/select/SelectTrigger.vue.d.ts +0 -25
  551. package/dist/components/ui/select/SelectValue.vue.d.ts +0 -18
  552. package/dist/components/ui/select/SelectValueContent.vue.d.ts +0 -16
  553. package/dist/components/ui/select/index.d.ts +0 -13
  554. package/dist/components/ui/separator/Separator.vue.d.ts +0 -10
  555. package/dist/components/ui/separator/index.d.ts +0 -1
  556. package/dist/components/ui/sheet/Sheet.vue.d.ts +0 -25
  557. package/dist/components/ui/sheet/SheetClose.vue.d.ts +0 -18
  558. package/dist/components/ui/sheet/SheetContent.vue.d.ts +0 -39
  559. package/dist/components/ui/sheet/SheetDescription.vue.d.ts +0 -22
  560. package/dist/components/ui/sheet/SheetFooter.vue.d.ts +0 -21
  561. package/dist/components/ui/sheet/SheetHeader.vue.d.ts +0 -21
  562. package/dist/components/ui/sheet/SheetOverlay.vue.d.ts +0 -22
  563. package/dist/components/ui/sheet/SheetTitle.vue.d.ts +0 -22
  564. package/dist/components/ui/sheet/SheetTrigger.vue.d.ts +0 -18
  565. package/dist/components/ui/sheet/index.d.ts +0 -8
  566. package/dist/components/ui/sidebar/Sidebar.vue.d.ts +0 -25
  567. package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +0 -21
  568. package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +0 -21
  569. package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +0 -21
  570. package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +0 -22
  571. package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +0 -21
  572. package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +0 -22
  573. package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +0 -21
  574. package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +0 -21
  575. package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +0 -21
  576. package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +0 -21
  577. package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +0 -25
  578. package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +0 -21
  579. package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +0 -27
  580. package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -30
  581. package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +0 -21
  582. package/dist/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -7
  583. package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +0 -21
  584. package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +0 -27
  585. package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +0 -21
  586. package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +0 -32
  587. package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +0 -21
  588. package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +0 -21
  589. package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +0 -6
  590. package/dist/components/ui/sidebar/index.d.ts +0 -38
  591. package/dist/components/ui/sidebar/utils.d.ts +0 -56
  592. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +0 -6
  593. package/dist/components/ui/skeleton/index.d.ts +0 -1
  594. package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
  595. package/dist/components/ui/slider/index.d.ts +0 -1
  596. package/dist/components/ui/switch/Switch.vue.d.ts +0 -29
  597. package/dist/components/ui/switch/index.d.ts +0 -1
  598. package/dist/components/ui/table/Table.vue.d.ts +0 -21
  599. package/dist/components/ui/table/TableBody.vue.d.ts +0 -21
  600. package/dist/components/ui/table/TableCaption.vue.d.ts +0 -21
  601. package/dist/components/ui/table/TableCell.vue.d.ts +0 -21
  602. package/dist/components/ui/table/TableEmpty.vue.d.ts +0 -24
  603. package/dist/components/ui/table/TableFooter.vue.d.ts +0 -21
  604. package/dist/components/ui/table/TableHead.vue.d.ts +0 -21
  605. package/dist/components/ui/table/TableHeader.vue.d.ts +0 -21
  606. package/dist/components/ui/table/TableRow.vue.d.ts +0 -21
  607. package/dist/components/ui/table/index.d.ts +0 -9
  608. package/dist/components/ui/tabs/Tabs.vue.d.ts +0 -28
  609. package/dist/components/ui/tabs/TabsContent.vue.d.ts +0 -22
  610. package/dist/components/ui/tabs/TabsList.vue.d.ts +0 -22
  611. package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +0 -22
  612. package/dist/components/ui/tabs/index.d.ts +0 -4
  613. package/dist/components/ui/textarea/Textarea.vue.d.ts +0 -12
  614. package/dist/components/ui/textarea/index.d.ts +0 -1
  615. package/dist/components/ui/time-picker/TimePicker.vue.d.ts +0 -21
  616. package/dist/components/ui/time-picker/index.d.ts +0 -2
  617. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +0 -24
  618. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +0 -30
  619. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +0 -20
  620. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -18
  621. package/dist/components/ui/tooltip/index.d.ts +0 -4
  622. package/dist/confirm-dialog.js +0 -228
  623. package/dist/content.js +0 -210
  624. package/dist/createContext-BabAT1K8.js +0 -19
  625. package/dist/dashboard-shell.js +0 -231
  626. package/dist/data-list.js +0 -97
  627. package/dist/date-picker.js +0 -5
  628. package/dist/date-time-picker.js +0 -140
  629. package/dist/dialog.js +0 -147
  630. package/dist/empty-state-card.js +0 -5
  631. package/dist/error-page.js +0 -115
  632. package/dist/field.js +0 -294
  633. package/dist/getActiveElement-Bmy6QsUb.js +0 -9
  634. package/dist/i18n.js +0 -778
  635. package/dist/index-DDJjWaIl.js +0 -363
  636. package/dist/index-DDurQzrB.js +0 -44
  637. package/dist/index-Dw56kNV0.js +0 -251
  638. package/dist/index.min-CUZWqaEQ.js +0 -32
  639. package/dist/info-card.js +0 -65
  640. package/dist/input.js +0 -4
  641. package/dist/label.js +0 -4
  642. package/dist/landing-content.js +0 -5
  643. package/dist/landing-footer.js +0 -5
  644. package/dist/landing-navbar.js +0 -5
  645. package/dist/landing-shell.js +0 -5
  646. package/dist/landing.js +0 -11
  647. package/dist/language-flag.js +0 -61
  648. package/dist/language-selector.js +0 -169
  649. package/dist/lib/color-tokens.d.ts +0 -6
  650. package/dist/lib/i18n.d.ts +0 -1417
  651. package/dist/lib/utils.d.ts +0 -3
  652. package/dist/load-more-button.js +0 -5
  653. package/dist/loading-state-card.js +0 -5
  654. package/dist/message-dialog.js +0 -226
  655. package/dist/message-toast.js +0 -103
  656. package/dist/native-select.js +0 -25
  657. package/dist/nullish-D3tMkl6i.js +0 -6
  658. package/dist/page-header.js +0 -57
  659. package/dist/popover.js +0 -65
  660. package/dist/progress-component.js +0 -51
  661. package/dist/progress.js +0 -4
  662. package/dist/scroll-area.js +0 -1080
  663. package/dist/select.js +0 -2222
  664. package/dist/separator.js +0 -4
  665. package/dist/sheet.js +0 -68
  666. package/dist/sidebar.js +0 -807
  667. package/dist/single-value-card.js +0 -64
  668. package/dist/skeleton.js +0 -4
  669. package/dist/slider-form-component.js +0 -60
  670. package/dist/slider.js +0 -4
  671. package/dist/style.css +0 -5705
  672. package/dist/style.d.ts +0 -0
  673. package/dist/style.js +0 -1
  674. package/dist/switch-form-component.js +0 -40
  675. package/dist/switch.js +0 -4
  676. package/dist/table.js +0 -82
  677. package/dist/tabs.js +0 -658
  678. package/dist/text-link.js +0 -39
  679. package/dist/textarea.js +0 -37
  680. package/dist/theme-selector.js +0 -159
  681. package/dist/time-picker.js +0 -5
  682. package/dist/tooltip.js +0 -32
  683. package/dist/useDirection-B2bMgzzV.js +0 -12
  684. package/dist/useFocusGuards-2C1jyYW5.js +0 -29
  685. package/dist/useFormControl-DZ4LnB9F.js +0 -11
  686. package/dist/useForwardExpose-BcX3VRdS.js +0 -58
  687. package/dist/useForwardPropsEmits-GlUGKcIz.js +0 -47
  688. package/dist/useId-CF6wz41D.js +0 -16
  689. package/dist/useKbd-JjFOu4f7.js +0 -41
  690. package/dist/useNonce-CWj1JlPB.js +0 -12
  691. package/dist/usePrimitiveElement-BCpwlakH.js +0 -16
  692. package/dist/useSize-DUgGY9t1.js +0 -51
  693. package/dist/useTypeahead-4RK0Emcv.js +0 -159
  694. package/dist/utils-DbR1EZn-.js +0 -16
  695. package/dist/utils-DbYZ4xaD.js +0 -3204
  696. package/dist/utils-hdwtyAF3.js +0 -44
  697. package/dist/utils.js +0 -5
@@ -1,1080 +0,0 @@
1
- import { defineComponent, ref, toRefs, openBlock, createBlock, unref, normalizeStyle, withCtx, renderSlot, computed, watch, mergeProps, createCommentVNode, onMounted, createVNode, watchEffect, onUnmounted, createElementBlock, Fragment, createElementVNode, createTextVNode } from "vue";
2
- import { c as createContext } from "./createContext-BabAT1K8.js";
3
- import { u as useDirection } from "./useDirection-B2bMgzzV.js";
4
- import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
5
- import { P as Primitive } from "./Primitive-D3IcFg81.js";
6
- import { e as useResizeObserver } from "./index-Dw56kNV0.js";
7
- import { u as useNonce } from "./useNonce-CWj1JlPB.js";
8
- import { c as cn } from "./utils-DbYZ4xaD.js";
9
- import { c as clamp } from "./clamp-D5Ye0kJT.js";
10
- import { P as Presence_default, u as useStateMachine } from "./Presence-CTmUEdMR.js";
11
- import { q as useDebounceFn, s as watchOnce, r as reactiveOmit } from "./index-DDJjWaIl.js";
12
- const [injectScrollAreaRootContext, provideScrollAreaRootContext] = createContext("ScrollAreaRoot");
13
- var ScrollAreaRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
14
- __name: "ScrollAreaRoot",
15
- props: {
16
- type: {
17
- type: String,
18
- required: false,
19
- default: "hover"
20
- },
21
- dir: {
22
- type: String,
23
- required: false
24
- },
25
- scrollHideDelay: {
26
- type: Number,
27
- required: false,
28
- default: 600
29
- },
30
- asChild: {
31
- type: Boolean,
32
- required: false
33
- },
34
- as: {
35
- type: null,
36
- required: false
37
- }
38
- },
39
- setup(__props, { expose: __expose }) {
40
- const props = __props;
41
- const cornerWidth = ref(0);
42
- const cornerHeight = ref(0);
43
- const viewport = ref();
44
- const content = ref();
45
- const scrollbarX = ref();
46
- const scrollbarY = ref();
47
- const scrollbarXEnabled = ref(false);
48
- const scrollbarYEnabled = ref(false);
49
- const { type, dir: propDir, scrollHideDelay } = toRefs(props);
50
- const dir = useDirection(propDir);
51
- function scrollTop() {
52
- var _a;
53
- (_a = viewport.value) == null ? void 0 : _a.scrollTo({ top: 0 });
54
- }
55
- function scrollTopLeft() {
56
- var _a;
57
- (_a = viewport.value) == null ? void 0 : _a.scrollTo({
58
- top: 0,
59
- left: 0
60
- });
61
- }
62
- __expose({
63
- viewport,
64
- scrollTop,
65
- scrollTopLeft
66
- });
67
- const { forwardRef, currentElement: scrollArea } = useForwardExpose();
68
- provideScrollAreaRootContext({
69
- type,
70
- dir,
71
- scrollHideDelay,
72
- scrollArea,
73
- viewport,
74
- onViewportChange: (el) => {
75
- viewport.value = el || void 0;
76
- },
77
- content,
78
- onContentChange: (el) => {
79
- content.value = el;
80
- },
81
- scrollbarX,
82
- scrollbarXEnabled,
83
- scrollbarY,
84
- scrollbarYEnabled,
85
- onScrollbarXChange: (scrollbar) => {
86
- scrollbarX.value = scrollbar || void 0;
87
- },
88
- onScrollbarYChange: (scrollbar) => {
89
- scrollbarY.value = scrollbar || void 0;
90
- },
91
- onScrollbarXEnabledChange: (rendered) => {
92
- scrollbarXEnabled.value = rendered;
93
- },
94
- onScrollbarYEnabledChange: (rendered) => {
95
- scrollbarYEnabled.value = rendered;
96
- },
97
- onCornerWidthChange: (width) => {
98
- cornerWidth.value = width;
99
- },
100
- onCornerHeightChange: (height) => {
101
- cornerHeight.value = height;
102
- }
103
- });
104
- return (_ctx, _cache) => {
105
- return openBlock(), createBlock(unref(Primitive), {
106
- ref: unref(forwardRef),
107
- "as-child": props.asChild,
108
- as: _ctx.as,
109
- dir: unref(dir),
110
- style: normalizeStyle({
111
- position: "relative",
112
- ["--reka-scroll-area-corner-width"]: `${cornerWidth.value}px`,
113
- ["--reka-scroll-area-corner-height"]: `${cornerHeight.value}px`
114
- })
115
- }, {
116
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
117
- _: 3
118
- }, 8, [
119
- "as-child",
120
- "as",
121
- "dir",
122
- "style"
123
- ]);
124
- };
125
- }
126
- });
127
- var ScrollAreaRoot_default = ScrollAreaRoot_vue_vue_type_script_setup_true_lang_default;
128
- var ScrollAreaCornerImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
129
- __name: "ScrollAreaCornerImpl",
130
- setup(__props) {
131
- const rootContext = injectScrollAreaRootContext();
132
- const width = ref(0);
133
- const height = ref(0);
134
- const hasSize = computed(() => !!width.value && !!height.value);
135
- function setCornerHeight() {
136
- var _a;
137
- const offsetHeight = ((_a = rootContext.scrollbarX.value) == null ? void 0 : _a.offsetHeight) || 0;
138
- rootContext.onCornerHeightChange(offsetHeight);
139
- height.value = offsetHeight;
140
- }
141
- function setCornerWidth() {
142
- var _a;
143
- const offsetWidth = ((_a = rootContext.scrollbarY.value) == null ? void 0 : _a.offsetWidth) || 0;
144
- rootContext.onCornerWidthChange(offsetWidth);
145
- width.value = offsetWidth;
146
- }
147
- useResizeObserver(rootContext.scrollbarX.value, setCornerHeight);
148
- useResizeObserver(rootContext.scrollbarY.value, setCornerWidth);
149
- watch(() => rootContext.scrollbarX.value, setCornerHeight);
150
- watch(() => rootContext.scrollbarY.value, setCornerWidth);
151
- return (_ctx, _cache) => {
152
- var _a;
153
- return hasSize.value ? (openBlock(), createBlock(unref(Primitive), mergeProps({
154
- key: 0,
155
- style: {
156
- width: `${width.value}px`,
157
- height: `${height.value}px`,
158
- position: "absolute",
159
- right: unref(rootContext).dir.value === "ltr" ? 0 : void 0,
160
- left: unref(rootContext).dir.value === "rtl" ? 0 : void 0,
161
- bottom: 0
162
- }
163
- }, (_a = _ctx.$parent) == null ? void 0 : _a.$props), {
164
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
165
- _: 3
166
- }, 16, ["style"])) : createCommentVNode("v-if", true);
167
- };
168
- }
169
- });
170
- var ScrollAreaCornerImpl_default = ScrollAreaCornerImpl_vue_vue_type_script_setup_true_lang_default;
171
- var ScrollAreaCorner_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
172
- __name: "ScrollAreaCorner",
173
- props: {
174
- asChild: {
175
- type: Boolean,
176
- required: false
177
- },
178
- as: {
179
- type: null,
180
- required: false
181
- }
182
- },
183
- setup(__props) {
184
- const props = __props;
185
- const { forwardRef } = useForwardExpose();
186
- const rootContext = injectScrollAreaRootContext();
187
- const hasBothScrollbarsVisible = computed(() => !!rootContext.scrollbarX.value && !!rootContext.scrollbarY.value);
188
- const hasCorner = computed(() => rootContext.type.value !== "scroll" && hasBothScrollbarsVisible.value);
189
- return (_ctx, _cache) => {
190
- return hasCorner.value ? (openBlock(), createBlock(ScrollAreaCornerImpl_default, mergeProps({ key: 0 }, props, { ref: unref(forwardRef) }), {
191
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
192
- _: 3
193
- }, 16)) : createCommentVNode("v-if", true);
194
- };
195
- }
196
- });
197
- var ScrollAreaCorner_default = ScrollAreaCorner_vue_vue_type_script_setup_true_lang_default;
198
- function linearScale(input, output) {
199
- return (value) => {
200
- if (input[0] === input[1] || output[0] === output[1]) return output[0];
201
- const ratio = (output[1] - output[0]) / (input[1] - input[0]);
202
- return output[0] + ratio * (value - input[0]);
203
- };
204
- }
205
- function getThumbSize(sizes) {
206
- const ratio = getThumbRatio(sizes.viewport, sizes.content);
207
- const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;
208
- const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;
209
- return Math.max(thumbSize, 18);
210
- }
211
- function getThumbRatio(viewportSize, contentSize) {
212
- const ratio = viewportSize / contentSize;
213
- return Number.isNaN(ratio) ? 0 : ratio;
214
- }
215
- function addUnlinkedScrollListener(node, handler = () => {
216
- }) {
217
- let prevPosition = {
218
- left: node.scrollLeft,
219
- top: node.scrollTop
220
- };
221
- let rAF = 0;
222
- (function loop() {
223
- const position = {
224
- left: node.scrollLeft,
225
- top: node.scrollTop
226
- };
227
- const isHorizontalScroll = prevPosition.left !== position.left;
228
- const isVerticalScroll = prevPosition.top !== position.top;
229
- if (isHorizontalScroll || isVerticalScroll) handler();
230
- prevPosition = position;
231
- rAF = window.requestAnimationFrame(loop);
232
- })();
233
- return () => window.cancelAnimationFrame(rAF);
234
- }
235
- function getThumbOffsetFromScroll(scrollPos, sizes, dir = "ltr") {
236
- const thumbSizePx = getThumbSize(sizes);
237
- const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;
238
- const scrollbar = sizes.scrollbar.size - scrollbarPadding;
239
- const maxScrollPos = sizes.content - sizes.viewport;
240
- const maxThumbPos = scrollbar - thumbSizePx;
241
- const scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
242
- const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange[0], scrollClampRange[1]);
243
- const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);
244
- return interpolate(scrollWithoutMomentum);
245
- }
246
- function toInt(value) {
247
- return value ? Number.parseInt(value, 10) : 0;
248
- }
249
- function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = "ltr") {
250
- const thumbSizePx = getThumbSize(sizes);
251
- const thumbCenter = thumbSizePx / 2;
252
- const offset = pointerOffset || thumbCenter;
253
- const thumbOffsetFromEnd = thumbSizePx - offset;
254
- const minPointerPos = sizes.scrollbar.paddingStart + offset;
255
- const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;
256
- const maxScrollPos = sizes.content - sizes.viewport;
257
- const scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
258
- const interpolate = linearScale([minPointerPos, maxPointerPos], scrollRange);
259
- return interpolate(pointerPos);
260
- }
261
- function isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {
262
- return scrollPos > 0 && scrollPos < maxScrollPos;
263
- }
264
- var ScrollAreaScrollbarX_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
265
- __name: "ScrollAreaScrollbarX",
266
- setup(__props) {
267
- const rootContext = injectScrollAreaRootContext();
268
- const scrollbarVisibleContext = injectScrollAreaScrollbarVisibleContext();
269
- const { forwardRef, currentElement: scrollbarElement } = useForwardExpose();
270
- onMounted(() => {
271
- if (scrollbarElement.value) rootContext.onScrollbarXChange(scrollbarElement.value);
272
- });
273
- const sizes = computed(() => scrollbarVisibleContext.sizes.value);
274
- return (_ctx, _cache) => {
275
- return openBlock(), createBlock(ScrollAreaScrollbarImpl_default, {
276
- ref: unref(forwardRef),
277
- "is-horizontal": true,
278
- "data-orientation": "horizontal",
279
- style: normalizeStyle({
280
- bottom: 0,
281
- left: unref(rootContext).dir.value === "rtl" ? "var(--reka-scroll-area-corner-width)" : 0,
282
- right: unref(rootContext).dir.value === "ltr" ? "var(--reka-scroll-area-corner-width)" : 0,
283
- ["--reka-scroll-area-thumb-width"]: sizes.value ? `${unref(getThumbSize)(sizes.value)}px` : void 0
284
- }),
285
- onOnDragScroll: _cache[0] || (_cache[0] = ($event) => unref(scrollbarVisibleContext).onDragScroll($event.x))
286
- }, {
287
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
288
- _: 3
289
- }, 8, ["style"]);
290
- };
291
- }
292
- });
293
- var ScrollAreaScrollbarX_default = ScrollAreaScrollbarX_vue_vue_type_script_setup_true_lang_default;
294
- var ScrollAreaScrollbarY_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
295
- __name: "ScrollAreaScrollbarY",
296
- setup(__props) {
297
- const rootContext = injectScrollAreaRootContext();
298
- const scrollbarVisibleContext = injectScrollAreaScrollbarVisibleContext();
299
- const { forwardRef, currentElement: scrollbarElement } = useForwardExpose();
300
- onMounted(() => {
301
- if (scrollbarElement.value) rootContext.onScrollbarYChange(scrollbarElement.value);
302
- });
303
- const sizes = computed(() => scrollbarVisibleContext.sizes.value);
304
- return (_ctx, _cache) => {
305
- return openBlock(), createBlock(ScrollAreaScrollbarImpl_default, {
306
- ref: unref(forwardRef),
307
- "is-horizontal": false,
308
- "data-orientation": "vertical",
309
- style: normalizeStyle({
310
- top: 0,
311
- right: unref(rootContext).dir.value === "ltr" ? 0 : void 0,
312
- left: unref(rootContext).dir.value === "rtl" ? 0 : void 0,
313
- bottom: "var(--reka-scroll-area-corner-height)",
314
- ["--reka-scroll-area-thumb-height"]: sizes.value ? `${unref(getThumbSize)(sizes.value)}px` : void 0
315
- }),
316
- onOnDragScroll: _cache[0] || (_cache[0] = ($event) => unref(scrollbarVisibleContext).onDragScroll($event.y))
317
- }, {
318
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
319
- _: 3
320
- }, 8, ["style"]);
321
- };
322
- }
323
- });
324
- var ScrollAreaScrollbarY_default = ScrollAreaScrollbarY_vue_vue_type_script_setup_true_lang_default;
325
- var ScrollAreaScrollbarAuto_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
326
- __name: "ScrollAreaScrollbarAuto",
327
- props: { forceMount: {
328
- type: Boolean,
329
- required: false
330
- } },
331
- setup(__props) {
332
- const rootContext = injectScrollAreaRootContext();
333
- const scrollbarContext = injectScrollAreaScrollbarContext();
334
- const { forwardRef } = useForwardExpose();
335
- const visible = ref(false);
336
- const handleResize = useDebounceFn(() => {
337
- if (rootContext.viewport.value) {
338
- const isOverflowX = rootContext.viewport.value.offsetWidth < rootContext.viewport.value.scrollWidth;
339
- const isOverflowY = rootContext.viewport.value.offsetHeight < rootContext.viewport.value.scrollHeight;
340
- visible.value = scrollbarContext.isHorizontal.value ? isOverflowX : isOverflowY;
341
- }
342
- }, 10);
343
- onMounted(() => handleResize());
344
- useResizeObserver(rootContext.viewport, handleResize);
345
- useResizeObserver(rootContext.content, handleResize);
346
- return (_ctx, _cache) => {
347
- return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || visible.value }, {
348
- default: withCtx(() => [createVNode(ScrollAreaScrollbarVisible_default, mergeProps(_ctx.$attrs, {
349
- ref: unref(forwardRef),
350
- "data-state": visible.value ? "visible" : "hidden"
351
- }), {
352
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
353
- _: 3
354
- }, 16, ["data-state"])]),
355
- _: 3
356
- }, 8, ["present"]);
357
- };
358
- }
359
- });
360
- var ScrollAreaScrollbarAuto_default = ScrollAreaScrollbarAuto_vue_vue_type_script_setup_true_lang_default;
361
- var ScrollAreaScrollbarGlimpse_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
362
- inheritAttrs: false,
363
- __name: "ScrollAreaScrollbarGlimpse",
364
- props: { forceMount: {
365
- type: Boolean,
366
- required: false
367
- } },
368
- setup(__props) {
369
- const rootContext = injectScrollAreaRootContext();
370
- const scrollbarContext = injectScrollAreaScrollbarContext();
371
- const { forwardRef } = useForwardExpose();
372
- const { state, dispatch } = useStateMachine("hidden", {
373
- hidden: {
374
- POINTER_ENTER: "glimpse",
375
- SCROLL: "scrolling"
376
- },
377
- glimpse: {
378
- HIDE: "hidden",
379
- POINTER_LEAVE: "hidden",
380
- SCROLL: "scrolling",
381
- POINTER_ENTER: "glimpse"
382
- },
383
- scrolling: {
384
- SCROLL_END: "idle",
385
- POINTER_ENTER: "interacting"
386
- },
387
- interacting: {
388
- SCROLL: "interacting",
389
- POINTER_LEAVE: "idle"
390
- },
391
- idle: {
392
- HIDE: "hidden",
393
- SCROLL: "scrolling",
394
- POINTER_ENTER: "interacting"
395
- }
396
- });
397
- const visible = computed(() => state.value !== "hidden");
398
- function handlePointerEnter() {
399
- dispatch("POINTER_ENTER");
400
- }
401
- function handlePointerLeave() {
402
- dispatch("POINTER_LEAVE");
403
- }
404
- const debounceScrollEnd = useDebounceFn(() => dispatch("SCROLL_END"), 100);
405
- watchEffect((onCleanup) => {
406
- if (state.value === "glimpse") {
407
- const timeId = window.setTimeout(() => dispatch("HIDE"), rootContext.scrollHideDelay.value);
408
- onCleanup(() => {
409
- window.clearTimeout(timeId);
410
- });
411
- }
412
- });
413
- watchEffect((onCleanup) => {
414
- if (state.value === "idle") {
415
- const timeId = window.setTimeout(() => dispatch("HIDE"), rootContext.scrollHideDelay.value);
416
- onCleanup(() => {
417
- window.clearTimeout(timeId);
418
- });
419
- }
420
- });
421
- watchEffect((onCleanup) => {
422
- const viewport = rootContext.viewport.value;
423
- const scrollDirection = scrollbarContext.isHorizontal.value ? "scrollLeft" : "scrollTop";
424
- if (viewport) {
425
- let prevScrollPos = viewport[scrollDirection];
426
- const handleScroll = () => {
427
- const scrollPos = viewport[scrollDirection];
428
- const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;
429
- if (hasScrollInDirectionChanged) {
430
- dispatch("SCROLL");
431
- debounceScrollEnd();
432
- }
433
- prevScrollPos = scrollPos;
434
- };
435
- viewport.addEventListener("scroll", handleScroll);
436
- onCleanup(() => {
437
- viewport.removeEventListener("scroll", handleScroll);
438
- });
439
- }
440
- });
441
- onMounted(() => {
442
- const scrollArea = rootContext.scrollArea.value;
443
- if (scrollArea) {
444
- scrollArea.addEventListener("pointerenter", handlePointerEnter);
445
- scrollArea.addEventListener("pointerleave", handlePointerLeave);
446
- }
447
- });
448
- onUnmounted(() => {
449
- const scrollArea = rootContext.scrollArea.value;
450
- if (scrollArea) {
451
- scrollArea.removeEventListener("pointerenter", handlePointerEnter);
452
- scrollArea.removeEventListener("pointerleave", handlePointerLeave);
453
- }
454
- });
455
- return (_ctx, _cache) => {
456
- return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || visible.value }, {
457
- default: withCtx(() => [createVNode(ScrollAreaScrollbarAuto_default, mergeProps(_ctx.$attrs, {
458
- ref: unref(forwardRef),
459
- "data-state": visible.value ? "visible" : "hidden"
460
- }), {
461
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
462
- _: 3
463
- }, 16, ["data-state"])]),
464
- _: 3
465
- }, 8, ["present"]);
466
- };
467
- }
468
- });
469
- var ScrollAreaScrollbarGlimpse_default = ScrollAreaScrollbarGlimpse_vue_vue_type_script_setup_true_lang_default;
470
- var ScrollAreaScrollbarHover_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
471
- inheritAttrs: false,
472
- __name: "ScrollAreaScrollbarHover",
473
- props: { forceMount: {
474
- type: Boolean,
475
- required: false
476
- } },
477
- setup(__props) {
478
- const rootContext = injectScrollAreaRootContext();
479
- const { forwardRef } = useForwardExpose();
480
- let timeout;
481
- const visible = ref(false);
482
- function handlePointerEnter() {
483
- window.clearTimeout(timeout);
484
- visible.value = true;
485
- }
486
- function handlePointerLeave() {
487
- timeout = window.setTimeout(() => {
488
- visible.value = false;
489
- }, rootContext.scrollHideDelay.value);
490
- }
491
- onMounted(() => {
492
- const scrollArea = rootContext.scrollArea.value;
493
- if (scrollArea) {
494
- scrollArea.addEventListener("pointerenter", handlePointerEnter);
495
- scrollArea.addEventListener("pointerleave", handlePointerLeave);
496
- }
497
- });
498
- onUnmounted(() => {
499
- const scrollArea = rootContext.scrollArea.value;
500
- if (scrollArea) {
501
- window.clearTimeout(timeout);
502
- scrollArea.removeEventListener("pointerenter", handlePointerEnter);
503
- scrollArea.removeEventListener("pointerleave", handlePointerLeave);
504
- }
505
- });
506
- return (_ctx, _cache) => {
507
- return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || visible.value }, {
508
- default: withCtx(() => [createVNode(ScrollAreaScrollbarAuto_default, mergeProps(_ctx.$attrs, {
509
- ref: unref(forwardRef),
510
- "data-state": visible.value ? "visible" : "hidden"
511
- }), {
512
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
513
- _: 3
514
- }, 16, ["data-state"])]),
515
- _: 3
516
- }, 8, ["present"]);
517
- };
518
- }
519
- });
520
- var ScrollAreaScrollbarHover_default = ScrollAreaScrollbarHover_vue_vue_type_script_setup_true_lang_default;
521
- var ScrollAreaScrollbarScroll_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
522
- __name: "ScrollAreaScrollbarScroll",
523
- props: { forceMount: {
524
- type: Boolean,
525
- required: false
526
- } },
527
- setup(__props) {
528
- const rootContext = injectScrollAreaRootContext();
529
- const scrollbarContext = injectScrollAreaScrollbarContext();
530
- const { forwardRef } = useForwardExpose();
531
- const { state, dispatch } = useStateMachine("hidden", {
532
- hidden: { SCROLL: "scrolling" },
533
- scrolling: {
534
- SCROLL_END: "idle",
535
- POINTER_ENTER: "interacting"
536
- },
537
- interacting: {
538
- SCROLL: "interacting",
539
- POINTER_LEAVE: "idle"
540
- },
541
- idle: {
542
- HIDE: "hidden",
543
- SCROLL: "scrolling",
544
- POINTER_ENTER: "interacting"
545
- }
546
- });
547
- const visible = computed(() => state.value !== "hidden");
548
- watchEffect((onCleanup) => {
549
- if (state.value === "idle") {
550
- const timeId = window.setTimeout(() => dispatch("HIDE"), rootContext.scrollHideDelay.value);
551
- onCleanup(() => {
552
- window.clearTimeout(timeId);
553
- });
554
- }
555
- });
556
- const debounceScrollEnd = useDebounceFn(() => dispatch("SCROLL_END"), 100);
557
- watchEffect((onCleanup) => {
558
- const viewport = rootContext.viewport.value;
559
- const scrollDirection = scrollbarContext.isHorizontal.value ? "scrollLeft" : "scrollTop";
560
- if (viewport) {
561
- let prevScrollPos = viewport[scrollDirection];
562
- const handleScroll = () => {
563
- const scrollPos = viewport[scrollDirection];
564
- const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;
565
- if (hasScrollInDirectionChanged) {
566
- dispatch("SCROLL");
567
- debounceScrollEnd();
568
- }
569
- prevScrollPos = scrollPos;
570
- };
571
- viewport.addEventListener("scroll", handleScroll);
572
- onCleanup(() => {
573
- viewport.removeEventListener("scroll", handleScroll);
574
- });
575
- }
576
- });
577
- return (_ctx, _cache) => {
578
- return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || visible.value }, {
579
- default: withCtx(() => [createVNode(ScrollAreaScrollbarVisible_default, mergeProps(_ctx.$attrs, {
580
- ref: unref(forwardRef),
581
- "data-state": visible.value ? "visible" : "hidden"
582
- }), {
583
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
584
- _: 3
585
- }, 16, ["data-state"])]),
586
- _: 3
587
- }, 8, ["present"]);
588
- };
589
- }
590
- });
591
- var ScrollAreaScrollbarScroll_default = ScrollAreaScrollbarScroll_vue_vue_type_script_setup_true_lang_default;
592
- const [injectScrollAreaScrollbarContext, provideScrollAreaScrollbarContext] = createContext("ScrollAreaScrollbar");
593
- var ScrollAreaScrollbar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
594
- inheritAttrs: false,
595
- __name: "ScrollAreaScrollbar",
596
- props: {
597
- orientation: {
598
- type: String,
599
- required: false,
600
- default: "vertical"
601
- },
602
- forceMount: {
603
- type: Boolean,
604
- required: false
605
- },
606
- asChild: {
607
- type: Boolean,
608
- required: false
609
- },
610
- as: {
611
- type: null,
612
- required: false,
613
- default: "div"
614
- }
615
- },
616
- setup(__props) {
617
- const props = __props;
618
- const { forwardRef } = useForwardExpose();
619
- const rootContext = injectScrollAreaRootContext();
620
- const isHorizontal = computed(() => props.orientation === "horizontal");
621
- watch(isHorizontal, () => {
622
- if (isHorizontal.value) rootContext.onScrollbarXEnabledChange(true);
623
- else rootContext.onScrollbarYEnabledChange(true);
624
- }, { immediate: true });
625
- onUnmounted(() => {
626
- rootContext.onScrollbarXEnabledChange(false);
627
- rootContext.onScrollbarYEnabledChange(false);
628
- });
629
- const { orientation, forceMount, asChild, as } = toRefs(props);
630
- provideScrollAreaScrollbarContext({
631
- orientation,
632
- forceMount,
633
- isHorizontal,
634
- as,
635
- asChild
636
- });
637
- return (_ctx, _cache) => {
638
- return unref(rootContext).type.value === "hover" ? (openBlock(), createBlock(ScrollAreaScrollbarHover_default, mergeProps({ key: 0 }, _ctx.$attrs, {
639
- ref: unref(forwardRef),
640
- "force-mount": unref(forceMount)
641
- }), {
642
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
643
- _: 3
644
- }, 16, ["force-mount"])) : unref(rootContext).type.value === "scroll" ? (openBlock(), createBlock(ScrollAreaScrollbarScroll_default, mergeProps({ key: 1 }, _ctx.$attrs, {
645
- ref: unref(forwardRef),
646
- "force-mount": unref(forceMount)
647
- }), {
648
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
649
- _: 3
650
- }, 16, ["force-mount"])) : unref(rootContext).type.value === "glimpse" ? (openBlock(), createBlock(ScrollAreaScrollbarGlimpse_default, mergeProps({ key: 2 }, _ctx.$attrs, {
651
- ref: unref(forwardRef),
652
- "force-mount": unref(forceMount)
653
- }), {
654
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
655
- _: 3
656
- }, 16, ["force-mount"])) : unref(rootContext).type.value === "auto" ? (openBlock(), createBlock(ScrollAreaScrollbarAuto_default, mergeProps({ key: 3 }, _ctx.$attrs, {
657
- ref: unref(forwardRef),
658
- "force-mount": unref(forceMount)
659
- }), {
660
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
661
- _: 3
662
- }, 16, ["force-mount"])) : unref(rootContext).type.value === "always" ? (openBlock(), createBlock(ScrollAreaScrollbarVisible_default, mergeProps({ key: 4 }, _ctx.$attrs, {
663
- ref: unref(forwardRef),
664
- "data-state": "visible"
665
- }), {
666
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
667
- _: 3
668
- }, 16)) : createCommentVNode("v-if", true);
669
- };
670
- }
671
- });
672
- var ScrollAreaScrollbar_default = ScrollAreaScrollbar_vue_vue_type_script_setup_true_lang_default;
673
- const [injectScrollAreaScrollbarVisibleContext, provideScrollAreaScrollbarVisibleContext] = createContext("ScrollAreaScrollbarVisible");
674
- var ScrollAreaScrollbarVisible_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
675
- __name: "ScrollAreaScrollbarVisible",
676
- setup(__props) {
677
- const rootContext = injectScrollAreaRootContext();
678
- const scrollbarContext = injectScrollAreaScrollbarContext();
679
- const { forwardRef } = useForwardExpose();
680
- const sizes = ref({
681
- content: 0,
682
- viewport: 0,
683
- scrollbar: {
684
- size: 0,
685
- paddingStart: 0,
686
- paddingEnd: 0
687
- }
688
- });
689
- const hasThumb = computed(() => {
690
- const thumbRatio = getThumbRatio(sizes.value.viewport, sizes.value.content);
691
- return Boolean(thumbRatio > 0 && thumbRatio < 1);
692
- });
693
- const thumbRef = ref();
694
- const pointerOffset = ref(0);
695
- function handleWheelScroll(event, payload) {
696
- if (isShowingScrollbarX.value) {
697
- const scrollPos = rootContext.viewport.value.scrollLeft + event.deltaY;
698
- rootContext.viewport.value.scrollLeft = scrollPos;
699
- if (isScrollingWithinScrollbarBounds(scrollPos, payload)) event.preventDefault();
700
- } else {
701
- const scrollPos = rootContext.viewport.value.scrollTop + event.deltaY;
702
- rootContext.viewport.value.scrollTop = scrollPos;
703
- if (isScrollingWithinScrollbarBounds(scrollPos, payload)) event.preventDefault();
704
- }
705
- }
706
- function handleThumbDown(event, payload) {
707
- if (isShowingScrollbarX.value) pointerOffset.value = payload.x;
708
- else pointerOffset.value = payload.y;
709
- }
710
- function handleThumbUp(event) {
711
- pointerOffset.value = 0;
712
- }
713
- function handleSizeChange(payload) {
714
- sizes.value = payload;
715
- }
716
- function getScrollPosition(pointerPos, dir) {
717
- return getScrollPositionFromPointer(pointerPos, pointerOffset.value, sizes.value, dir);
718
- }
719
- const isShowingScrollbarX = computed(() => scrollbarContext.isHorizontal.value);
720
- function onDragScroll(payload) {
721
- if (isShowingScrollbarX.value) rootContext.viewport.value.scrollLeft = getScrollPosition(payload, rootContext.dir.value);
722
- else rootContext.viewport.value.scrollTop = getScrollPosition(payload);
723
- }
724
- function onThumbPositionChange() {
725
- if (isShowingScrollbarX.value) {
726
- if (rootContext.viewport.value && thumbRef.value) {
727
- const scrollPos = rootContext.viewport.value.scrollLeft;
728
- const offset = getThumbOffsetFromScroll(scrollPos, sizes.value, rootContext.dir.value);
729
- thumbRef.value.style.transform = `translate3d(${offset}px, 0, 0)`;
730
- }
731
- } else if (rootContext.viewport.value && thumbRef.value) {
732
- const scrollPos = rootContext.viewport.value.scrollTop;
733
- const offset = getThumbOffsetFromScroll(scrollPos, sizes.value);
734
- thumbRef.value.style.transform = `translate3d(0, ${offset}px, 0)`;
735
- }
736
- }
737
- function onThumbChange(element) {
738
- thumbRef.value = element;
739
- }
740
- provideScrollAreaScrollbarVisibleContext({
741
- sizes,
742
- hasThumb,
743
- handleWheelScroll,
744
- handleThumbDown,
745
- handleThumbUp,
746
- handleSizeChange,
747
- onThumbPositionChange,
748
- onThumbChange,
749
- onDragScroll
750
- });
751
- return (_ctx, _cache) => {
752
- return isShowingScrollbarX.value ? (openBlock(), createBlock(ScrollAreaScrollbarX_default, mergeProps({ key: 0 }, _ctx.$attrs, { ref: unref(forwardRef) }), {
753
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
754
- _: 3
755
- }, 16)) : (openBlock(), createBlock(ScrollAreaScrollbarY_default, mergeProps({ key: 1 }, _ctx.$attrs, { ref: unref(forwardRef) }), {
756
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
757
- _: 3
758
- }, 16));
759
- };
760
- }
761
- });
762
- var ScrollAreaScrollbarVisible_default = ScrollAreaScrollbarVisible_vue_vue_type_script_setup_true_lang_default;
763
- var ScrollAreaScrollbarImpl_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
764
- __name: "ScrollAreaScrollbarImpl",
765
- props: { isHorizontal: {
766
- type: Boolean,
767
- required: true
768
- } },
769
- emits: [
770
- "onDragScroll",
771
- "onWheelScroll",
772
- "onThumbPointerDown"
773
- ],
774
- setup(__props, { emit: __emit }) {
775
- const props = __props;
776
- const emit = __emit;
777
- const rootContext = injectScrollAreaRootContext();
778
- const scrollbarVisibleContext = injectScrollAreaScrollbarVisibleContext();
779
- const scrollbarContext = injectScrollAreaScrollbarContext();
780
- const { forwardRef, currentElement: scrollbar } = useForwardExpose();
781
- const prevWebkitUserSelectRef = ref("");
782
- const rectRef = ref();
783
- function handleDragScroll(event) {
784
- var _a, _b;
785
- if (rectRef.value) {
786
- const x = event.clientX - ((_a = rectRef.value) == null ? void 0 : _a.left);
787
- const y = event.clientY - ((_b = rectRef.value) == null ? void 0 : _b.top);
788
- emit("onDragScroll", {
789
- x,
790
- y
791
- });
792
- }
793
- }
794
- function handlePointerDown(event) {
795
- const mainPointer = 0;
796
- if (event.button === mainPointer) {
797
- const element = event.target;
798
- element.setPointerCapture(event.pointerId);
799
- rectRef.value = scrollbar.value.getBoundingClientRect();
800
- prevWebkitUserSelectRef.value = document.body.style.webkitUserSelect;
801
- document.body.style.webkitUserSelect = "none";
802
- if (rootContext.viewport) rootContext.viewport.value.style.scrollBehavior = "auto";
803
- handleDragScroll(event);
804
- }
805
- }
806
- function handlePointerMove(event) {
807
- handleDragScroll(event);
808
- }
809
- function handlePointerUp(event) {
810
- const element = event.target;
811
- if (element.hasPointerCapture(event.pointerId)) element.releasePointerCapture(event.pointerId);
812
- document.body.style.webkitUserSelect = prevWebkitUserSelectRef.value;
813
- if (rootContext.viewport) rootContext.viewport.value.style.scrollBehavior = "";
814
- rectRef.value = void 0;
815
- }
816
- function handleWheel(event) {
817
- var _a;
818
- const element = event.target;
819
- const isScrollbarWheel = (_a = scrollbar.value) == null ? void 0 : _a.contains(element);
820
- const maxScrollPos = scrollbarVisibleContext.sizes.value.content - scrollbarVisibleContext.sizes.value.viewport;
821
- if (isScrollbarWheel) scrollbarVisibleContext.handleWheelScroll(event, maxScrollPos);
822
- }
823
- onMounted(() => {
824
- document.addEventListener("wheel", handleWheel, { passive: false });
825
- });
826
- onUnmounted(() => {
827
- document.removeEventListener("wheel", handleWheel);
828
- });
829
- function handleSizeChange() {
830
- var _a, _b, _c, _d, _e;
831
- if (!scrollbar.value) return;
832
- if (props.isHorizontal) scrollbarVisibleContext.handleSizeChange({
833
- content: ((_a = rootContext.viewport.value) == null ? void 0 : _a.scrollWidth) ?? 0,
834
- viewport: ((_b = rootContext.viewport.value) == null ? void 0 : _b.offsetWidth) ?? 0,
835
- scrollbar: {
836
- size: scrollbar.value.clientWidth ?? 0,
837
- paddingStart: toInt(getComputedStyle(scrollbar.value).paddingLeft),
838
- paddingEnd: toInt(getComputedStyle(scrollbar.value).paddingRight)
839
- }
840
- });
841
- else scrollbarVisibleContext.handleSizeChange({
842
- content: ((_c = rootContext.viewport.value) == null ? void 0 : _c.scrollHeight) ?? 0,
843
- viewport: ((_d = rootContext.viewport.value) == null ? void 0 : _d.offsetHeight) ?? 0,
844
- scrollbar: {
845
- size: ((_e = scrollbar.value) == null ? void 0 : _e.clientHeight) ?? 0,
846
- paddingStart: toInt(getComputedStyle(scrollbar.value).paddingTop),
847
- paddingEnd: toInt(getComputedStyle(scrollbar.value).paddingBottom)
848
- }
849
- });
850
- scrollbarVisibleContext.onThumbPositionChange();
851
- }
852
- useResizeObserver(scrollbar, handleSizeChange);
853
- useResizeObserver(rootContext.content, handleSizeChange);
854
- return (_ctx, _cache) => {
855
- return openBlock(), createBlock(unref(Primitive), {
856
- ref: unref(forwardRef),
857
- style: { "position": "absolute" },
858
- "data-scrollbarimpl": "",
859
- as: unref(scrollbarContext).as.value,
860
- "as-child": unref(scrollbarContext).asChild.value,
861
- onPointerdown: handlePointerDown,
862
- onPointermove: handlePointerMove,
863
- onPointerup: handlePointerUp
864
- }, {
865
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
866
- _: 3
867
- }, 8, ["as", "as-child"]);
868
- };
869
- }
870
- });
871
- var ScrollAreaScrollbarImpl_default = ScrollAreaScrollbarImpl_vue_vue_type_script_setup_true_lang_default;
872
- var ScrollAreaThumb_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
873
- __name: "ScrollAreaThumb",
874
- props: {
875
- asChild: {
876
- type: Boolean,
877
- required: false
878
- },
879
- as: {
880
- type: null,
881
- required: false
882
- }
883
- },
884
- setup(__props) {
885
- const props = __props;
886
- const rootContext = injectScrollAreaRootContext();
887
- const scrollbarContextVisible = injectScrollAreaScrollbarVisibleContext();
888
- function handlePointerDown(event) {
889
- const thumb = event.target;
890
- const thumbRect = thumb.getBoundingClientRect();
891
- const x = event.clientX - thumbRect.left;
892
- const y = event.clientY - thumbRect.top;
893
- scrollbarContextVisible.handleThumbDown(event, {
894
- x,
895
- y
896
- });
897
- }
898
- function handlePointerUp(event) {
899
- scrollbarContextVisible.handleThumbUp(event);
900
- }
901
- const { forwardRef, currentElement: thumbElement } = useForwardExpose();
902
- const removeUnlinkedScrollListenerRef = ref();
903
- const viewport = computed(() => rootContext.viewport.value);
904
- function handleScroll() {
905
- if (!removeUnlinkedScrollListenerRef.value) {
906
- const listener = addUnlinkedScrollListener(viewport.value, scrollbarContextVisible.onThumbPositionChange);
907
- removeUnlinkedScrollListenerRef.value = listener;
908
- scrollbarContextVisible.onThumbPositionChange();
909
- }
910
- }
911
- const sizes = computed(() => scrollbarContextVisible.sizes.value);
912
- watchOnce(sizes, () => {
913
- scrollbarContextVisible.onThumbChange(thumbElement.value);
914
- if (viewport.value) {
915
- scrollbarContextVisible.onThumbPositionChange();
916
- viewport.value.addEventListener("scroll", handleScroll);
917
- }
918
- });
919
- onUnmounted(() => {
920
- var _a;
921
- viewport.value.removeEventListener("scroll", handleScroll);
922
- (_a = rootContext.viewport.value) == null ? void 0 : _a.removeEventListener("scroll", handleScroll);
923
- });
924
- return (_ctx, _cache) => {
925
- return openBlock(), createBlock(unref(Primitive), {
926
- ref: unref(forwardRef),
927
- "data-state": unref(scrollbarContextVisible).hasThumb ? "visible" : "hidden",
928
- style: {
929
- width: "var(--reka-scroll-area-thumb-width)",
930
- height: "var(--reka-scroll-area-thumb-height)"
931
- },
932
- "as-child": props.asChild,
933
- as: _ctx.as,
934
- onPointerdown: handlePointerDown,
935
- onPointerup: handlePointerUp
936
- }, {
937
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
938
- _: 3
939
- }, 8, [
940
- "data-state",
941
- "as-child",
942
- "as"
943
- ]);
944
- };
945
- }
946
- });
947
- var ScrollAreaThumb_default = ScrollAreaThumb_vue_vue_type_script_setup_true_lang_default;
948
- var ScrollAreaViewport_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
949
- inheritAttrs: false,
950
- __name: "ScrollAreaViewport",
951
- props: {
952
- nonce: {
953
- type: String,
954
- required: false
955
- },
956
- asChild: {
957
- type: Boolean,
958
- required: false
959
- },
960
- as: {
961
- type: null,
962
- required: false
963
- }
964
- },
965
- setup(__props, { expose: __expose }) {
966
- const props = __props;
967
- const { nonce: propNonce } = toRefs(props);
968
- const nonce = useNonce(propNonce);
969
- const rootContext = injectScrollAreaRootContext();
970
- const viewportElement = ref();
971
- onMounted(() => {
972
- rootContext.onViewportChange(viewportElement.value);
973
- rootContext.onContentChange(contentElement.value);
974
- });
975
- __expose({ viewportElement });
976
- const { forwardRef, currentElement: contentElement } = useForwardExpose();
977
- return (_ctx, _cache) => {
978
- return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
979
- ref_key: "viewportElement",
980
- ref: viewportElement,
981
- "data-reka-scroll-area-viewport": "",
982
- style: {
983
- overflowX: unref(rootContext).scrollbarXEnabled.value ? "scroll" : "hidden",
984
- overflowY: unref(rootContext).scrollbarYEnabled.value ? "scroll" : "hidden"
985
- }
986
- }, _ctx.$attrs, { tabindex: 0 }), [createVNode(unref(Primitive), {
987
- ref: unref(forwardRef),
988
- style: normalizeStyle({ minWidth: unref(rootContext).scrollbarXEnabled.value ? "fit-content" : void 0 }),
989
- "as-child": props.asChild,
990
- as: _ctx.as
991
- }, {
992
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
993
- _: 3
994
- }, 8, [
995
- "style",
996
- "as-child",
997
- "as"
998
- ])], 16), createVNode(unref(Primitive), {
999
- as: "style",
1000
- nonce: unref(nonce)
1001
- }, {
1002
- default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-scroll-area-viewport] { scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; } [data-reka-scroll-area-viewport]::-webkit-scrollbar { display:none; } ")])),
1003
- _: 1,
1004
- __: [0]
1005
- }, 8, ["nonce"])], 64);
1006
- };
1007
- }
1008
- });
1009
- var ScrollAreaViewport_default = ScrollAreaViewport_vue_vue_type_script_setup_true_lang_default;
1010
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1011
- __name: "ScrollBar",
1012
- props: {
1013
- orientation: { default: "vertical" },
1014
- forceMount: { type: Boolean },
1015
- asChild: { type: Boolean },
1016
- as: {},
1017
- class: {}
1018
- },
1019
- setup(__props) {
1020
- const props = __props;
1021
- const delegatedProps = reactiveOmit(props, "class");
1022
- return (_ctx, _cache) => {
1023
- return openBlock(), createBlock(unref(ScrollAreaScrollbar_default), mergeProps({ "data-slot": "scroll-area-scrollbar" }, unref(delegatedProps), {
1024
- class: unref(cn)(
1025
- "flex touch-none p-px transition-colors select-none",
1026
- _ctx.orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent",
1027
- _ctx.orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
1028
- props.class
1029
- )
1030
- }), {
1031
- default: withCtx(() => [
1032
- createVNode(unref(ScrollAreaThumb_default), {
1033
- "data-slot": "scroll-area-thumb",
1034
- class: "bg-border relative flex-1 rounded-full"
1035
- })
1036
- ]),
1037
- _: 1
1038
- }, 16, ["class"]);
1039
- };
1040
- }
1041
- });
1042
- const _sfc_main = /* @__PURE__ */ defineComponent({
1043
- __name: "ScrollArea",
1044
- props: {
1045
- type: {},
1046
- dir: {},
1047
- scrollHideDelay: {},
1048
- asChild: { type: Boolean },
1049
- as: {},
1050
- class: {}
1051
- },
1052
- setup(__props) {
1053
- const props = __props;
1054
- const delegatedProps = reactiveOmit(props, "class");
1055
- return (_ctx, _cache) => {
1056
- return openBlock(), createBlock(unref(ScrollAreaRoot_default), mergeProps({ "data-slot": "scroll-area" }, unref(delegatedProps), {
1057
- class: unref(cn)("relative", props.class)
1058
- }), {
1059
- default: withCtx(() => [
1060
- createVNode(unref(ScrollAreaViewport_default), {
1061
- "data-slot": "scroll-area-viewport",
1062
- class: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
1063
- }, {
1064
- default: withCtx(() => [
1065
- renderSlot(_ctx.$slots, "default")
1066
- ]),
1067
- _: 3
1068
- }),
1069
- createVNode(_sfc_main$1),
1070
- createVNode(unref(ScrollAreaCorner_default))
1071
- ]),
1072
- _: 3
1073
- }, 16, ["class"]);
1074
- };
1075
- }
1076
- });
1077
- export {
1078
- _sfc_main as ScrollArea,
1079
- _sfc_main$1 as ScrollBar
1080
- };