@baybreezy/docd 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/app/app.config.ts +239 -0
  2. package/app/app.vue +19 -0
  3. package/app/assets/css/tailwind.css +335 -0
  4. package/app/assets/css/theme.css +1171 -0
  5. package/app/components/OgImage/Docs.takumi.vue +69 -0
  6. package/app/components/OgImage/Landing.takumi.vue +64 -0
  7. package/app/components/OgImage/Site.takumi.vue +32 -0
  8. package/app/components/Ui/Avatar/Avatar.vue +75 -0
  9. package/app/components/Ui/Avatar/Badge.vue +34 -0
  10. package/app/components/Ui/Avatar/Fallback.vue +30 -0
  11. package/app/components/Ui/Avatar/Group.vue +29 -0
  12. package/app/components/Ui/Avatar/GroupCount.vue +29 -0
  13. package/app/components/Ui/Avatar/Image.vue +29 -0
  14. package/app/components/Ui/Badge.vue +86 -0
  15. package/app/components/Ui/BadgeGroup.vue +314 -0
  16. package/app/components/Ui/BgPattern/Grid.vue +137 -0
  17. package/app/components/Ui/BorderBeam.vue +97 -0
  18. package/app/components/Ui/Breadcrumbs.vue +103 -0
  19. package/app/components/Ui/Button.vue +169 -0
  20. package/app/components/Ui/ButtonGroup/ButtonGroup.vue +54 -0
  21. package/app/components/Ui/ButtonGroup/Separator.vue +38 -0
  22. package/app/components/Ui/ButtonGroup/Text.vue +33 -0
  23. package/app/components/Ui/Card/Action.vue +31 -0
  24. package/app/components/Ui/Card/Card.vue +58 -0
  25. package/app/components/Ui/Card/Content.vue +34 -0
  26. package/app/components/Ui/Card/Description.vue +36 -0
  27. package/app/components/Ui/Card/Footer.vue +31 -0
  28. package/app/components/Ui/Card/Header.vue +31 -0
  29. package/app/components/Ui/Card/Title.vue +37 -0
  30. package/app/components/Ui/Collapsible/Collapsible.vue +16 -0
  31. package/app/components/Ui/Collapsible/Content.vue +27 -0
  32. package/app/components/Ui/Collapsible/Trigger.vue +13 -0
  33. package/app/components/Ui/Command/Command.vue +115 -0
  34. package/app/components/Ui/Command/Dialog.vue +65 -0
  35. package/app/components/Ui/Command/Empty.vue +32 -0
  36. package/app/components/Ui/Command/Footer.vue +40 -0
  37. package/app/components/Ui/Command/Group.vue +58 -0
  38. package/app/components/Ui/Command/Input.vue +57 -0
  39. package/app/components/Ui/Command/Item.vue +102 -0
  40. package/app/components/Ui/Command/List.vue +33 -0
  41. package/app/components/Ui/Command/Separator.vue +30 -0
  42. package/app/components/Ui/Command/Shortcut.vue +28 -0
  43. package/app/components/Ui/Container.vue +46 -0
  44. package/app/components/Ui/ContextMenu/Arrow.vue +43 -0
  45. package/app/components/Ui/ContextMenu/CheckboxItem.vue +42 -0
  46. package/app/components/Ui/ContextMenu/Content.vue +53 -0
  47. package/app/components/Ui/ContextMenu/ContextMenu.vue +14 -0
  48. package/app/components/Ui/ContextMenu/Group.vue +12 -0
  49. package/app/components/Ui/ContextMenu/Item.vue +65 -0
  50. package/app/components/Ui/ContextMenu/ItemIndicator.vue +30 -0
  51. package/app/components/Ui/ContextMenu/Label.vue +35 -0
  52. package/app/components/Ui/ContextMenu/Portal.vue +12 -0
  53. package/app/components/Ui/ContextMenu/RadioGroup.vue +16 -0
  54. package/app/components/Ui/ContextMenu/RadioItem.vue +40 -0
  55. package/app/components/Ui/ContextMenu/Separator.vue +25 -0
  56. package/app/components/Ui/ContextMenu/Shortcut.vue +30 -0
  57. package/app/components/Ui/ContextMenu/Sub.vue +15 -0
  58. package/app/components/Ui/ContextMenu/SubContent.vue +55 -0
  59. package/app/components/Ui/ContextMenu/SubTrigger.vue +42 -0
  60. package/app/components/Ui/ContextMenu/Trigger.vue +12 -0
  61. package/app/components/Ui/Dialog/Close.vue +12 -0
  62. package/app/components/Ui/Dialog/Content.vue +79 -0
  63. package/app/components/Ui/Dialog/Description.vue +29 -0
  64. package/app/components/Ui/Dialog/Dialog.vue +14 -0
  65. package/app/components/Ui/Dialog/Footer.vue +32 -0
  66. package/app/components/Ui/Dialog/Header.vue +32 -0
  67. package/app/components/Ui/Dialog/Overlay.vue +25 -0
  68. package/app/components/Ui/Dialog/Portal.vue +12 -0
  69. package/app/components/Ui/Dialog/Title.vue +29 -0
  70. package/app/components/Ui/Dialog/Trigger.vue +12 -0
  71. package/app/components/Ui/Divider.vue +102 -0
  72. package/app/components/Ui/Drawer/Close.vue +12 -0
  73. package/app/components/Ui/Drawer/Content.vue +67 -0
  74. package/app/components/Ui/Drawer/Description.vue +33 -0
  75. package/app/components/Ui/Drawer/Drawer.vue +17 -0
  76. package/app/components/Ui/Drawer/Footer.vue +35 -0
  77. package/app/components/Ui/Drawer/Header.vue +34 -0
  78. package/app/components/Ui/Drawer/Overlay.vue +20 -0
  79. package/app/components/Ui/Drawer/Portal.vue +12 -0
  80. package/app/components/Ui/Drawer/Title.vue +35 -0
  81. package/app/components/Ui/Drawer/Trigger.vue +12 -0
  82. package/app/components/Ui/DropdownMenu/Arrow.vue +43 -0
  83. package/app/components/Ui/DropdownMenu/CheckboxItem.vue +41 -0
  84. package/app/components/Ui/DropdownMenu/Content.vue +56 -0
  85. package/app/components/Ui/DropdownMenu/DropdownMenu.vue +15 -0
  86. package/app/components/Ui/DropdownMenu/Group.vue +12 -0
  87. package/app/components/Ui/DropdownMenu/Item.vue +64 -0
  88. package/app/components/Ui/DropdownMenu/ItemIndicator.vue +32 -0
  89. package/app/components/Ui/DropdownMenu/Label.vue +34 -0
  90. package/app/components/Ui/DropdownMenu/Portal.vue +12 -0
  91. package/app/components/Ui/DropdownMenu/RadioGroup.vue +16 -0
  92. package/app/components/Ui/DropdownMenu/RadioItem.vue +40 -0
  93. package/app/components/Ui/DropdownMenu/Separator.vue +25 -0
  94. package/app/components/Ui/DropdownMenu/Shortcut.vue +44 -0
  95. package/app/components/Ui/DropdownMenu/Sub.vue +14 -0
  96. package/app/components/Ui/DropdownMenu/SubContent.vue +56 -0
  97. package/app/components/Ui/DropdownMenu/SubTrigger.vue +47 -0
  98. package/app/components/Ui/DropdownMenu/Trigger.vue +12 -0
  99. package/app/components/Ui/FancyIcon.vue +243 -0
  100. package/app/components/Ui/GradientDivider.vue +26 -0
  101. package/app/components/Ui/IframeLazy.vue +97 -0
  102. package/app/components/Ui/Input.vue +97 -0
  103. package/app/components/Ui/InputGroup/Addon.vue +66 -0
  104. package/app/components/Ui/InputGroup/Button.vue +50 -0
  105. package/app/components/Ui/InputGroup/Input.vue +25 -0
  106. package/app/components/Ui/InputGroup/InputGroup.vue +44 -0
  107. package/app/components/Ui/InputGroup/Text.vue +33 -0
  108. package/app/components/Ui/InputGroup/Textarea.vue +25 -0
  109. package/app/components/Ui/Kbd/Group.vue +32 -0
  110. package/app/components/Ui/Kbd/Kbd.vue +62 -0
  111. package/app/components/Ui/Label.vue +40 -0
  112. package/app/components/Ui/Popover/Anchor.vue +13 -0
  113. package/app/components/Ui/Popover/Arrow.vue +42 -0
  114. package/app/components/Ui/Popover/Close.vue +13 -0
  115. package/app/components/Ui/Popover/Content.vue +55 -0
  116. package/app/components/Ui/Popover/Popover.vue +15 -0
  117. package/app/components/Ui/Popover/Portal.vue +13 -0
  118. package/app/components/Ui/Popover/Trigger.vue +12 -0
  119. package/app/components/Ui/Popover/X.vue +38 -0
  120. package/app/components/Ui/ScrollArea/Corner.vue +12 -0
  121. package/app/components/Ui/ScrollArea/ScrollArea.vue +38 -0
  122. package/app/components/Ui/ScrollArea/Scrollbar.vue +39 -0
  123. package/app/components/Ui/ScrollArea/Thumb.vue +39 -0
  124. package/app/components/Ui/ScrollArea/Viewport.vue +27 -0
  125. package/app/components/Ui/Scrollspy.vue +61 -0
  126. package/app/components/Ui/Separator.vue +40 -0
  127. package/app/components/Ui/Skeleton.vue +39 -0
  128. package/app/components/Ui/Sonner.vue +25 -0
  129. package/app/components/Ui/Tabs/Content.vue +27 -0
  130. package/app/components/Ui/Tabs/Indicator.vue +37 -0
  131. package/app/components/Ui/Tabs/List.vue +37 -0
  132. package/app/components/Ui/Tabs/Tabs.vue +25 -0
  133. package/app/components/Ui/Tabs/Trigger.vue +41 -0
  134. package/app/components/Ui/Textarea.vue +81 -0
  135. package/app/components/Ui/Tooltip/Arrow.vue +30 -0
  136. package/app/components/Ui/Tooltip/Content.vue +50 -0
  137. package/app/components/Ui/Tooltip/Portal.vue +12 -0
  138. package/app/components/Ui/Tooltip/Provider.vue +14 -0
  139. package/app/components/Ui/Tooltip/Tooltip.vue +25 -0
  140. package/app/components/Ui/Tooltip/Trigger.vue +12 -0
  141. package/app/components/Ui/Tree/Item.vue +15 -0
  142. package/app/components/Ui/Tree/Tree.vue +15 -0
  143. package/app/components/Ui/Tree/Virtualizer.vue +13 -0
  144. package/app/components/component-api/ComponentApiSection.vue +135 -0
  145. package/app/components/content/docs/Callout/DocsCallout.vue +99 -0
  146. package/app/components/content/prose/ProseA.global.vue +31 -0
  147. package/app/components/content/prose/ProseBlockquote.global.vue +28 -0
  148. package/app/components/content/prose/ProseCallout.global.vue +306 -0
  149. package/app/components/content/prose/ProseCard.global.vue +100 -0
  150. package/app/components/content/prose/ProseCodeCollapse.global.vue +125 -0
  151. package/app/components/content/prose/ProseCodeCopy.global.vue +67 -0
  152. package/app/components/content/prose/ProseCodeGroup.global.vue +104 -0
  153. package/app/components/content/prose/ProseCodeTree.global.vue +277 -0
  154. package/app/components/content/prose/ProseCollapsible.global.vue +64 -0
  155. package/app/components/content/prose/ProseColorModeImage.global.vue +58 -0
  156. package/app/components/content/prose/ProseComponentApi.global.vue +104 -0
  157. package/app/components/content/prose/ProseComponentEvents.global.vue +27 -0
  158. package/app/components/content/prose/ProseComponentExposed.global.vue +27 -0
  159. package/app/components/content/prose/ProseComponentProps.global.vue +27 -0
  160. package/app/components/content/prose/ProseComponentSlots.global.vue +27 -0
  161. package/app/components/content/prose/ProseEm.global.vue +5 -0
  162. package/app/components/content/prose/ProseField.global.vue +118 -0
  163. package/app/components/content/prose/ProseFieldGroup.global.vue +62 -0
  164. package/app/components/content/prose/ProseH1.global.vue +58 -0
  165. package/app/components/content/prose/ProseH2.global.vue +58 -0
  166. package/app/components/content/prose/ProseH3.global.vue +58 -0
  167. package/app/components/content/prose/ProseH4.global.vue +58 -0
  168. package/app/components/content/prose/ProseH5.global.vue +47 -0
  169. package/app/components/content/prose/ProseH6.global.vue +47 -0
  170. package/app/components/content/prose/ProseHr.global.vue +33 -0
  171. package/app/components/content/prose/ProseIconList.global.vue +113 -0
  172. package/app/components/content/prose/ProseImg.global.vue +119 -0
  173. package/app/components/content/prose/ProseLead.global.vue +28 -0
  174. package/app/components/content/prose/ProseLi.global.vue +25 -0
  175. package/app/components/content/prose/ProseMermaid.global.vue +127 -0
  176. package/app/components/content/prose/ProseOl.global.vue +25 -0
  177. package/app/components/content/prose/ProseP.global.vue +25 -0
  178. package/app/components/content/prose/ProsePmInstall.global.vue +60 -0
  179. package/app/components/content/prose/ProsePmRun.global.vue +51 -0
  180. package/app/components/content/prose/ProsePmX.global.vue +56 -0
  181. package/app/components/content/prose/ProsePre.global.vue +181 -0
  182. package/app/components/content/prose/ProseShowCase.global.vue +56 -0
  183. package/app/components/content/prose/ProseSmartIcon.global.vue +54 -0
  184. package/app/components/content/prose/ProseStep.global.vue +22 -0
  185. package/app/components/content/prose/ProseSteps.global.vue +22 -0
  186. package/app/components/content/prose/ProseStrong.global.vue +34 -0
  187. package/app/components/content/prose/ProseTable.global.vue +34 -0
  188. package/app/components/content/prose/ProseTabs.global.vue +104 -0
  189. package/app/components/content/prose/ProseTabsInner.global.vue +274 -0
  190. package/app/components/content/prose/ProseTbody.global.vue +5 -0
  191. package/app/components/content/prose/ProseTd.global.vue +25 -0
  192. package/app/components/content/prose/ProseTh.global.vue +25 -0
  193. package/app/components/content/prose/ProseThead.global.vue +9 -0
  194. package/app/components/content/prose/ProseTr.global.vue +35 -0
  195. package/app/components/content/prose/ProseUl.global.vue +25 -0
  196. package/app/components/docs/DocsExtraStuff.vue +39 -0
  197. package/app/components/docs/DocsGithubLink.vue +11 -0
  198. package/app/components/docs/DocsHeader.vue +3 -0
  199. package/app/components/docs/DocsLogo.vue +74 -0
  200. package/app/components/docs/DocsMobileBar.vue +26 -0
  201. package/app/components/docs/DocsMobileNav.vue +49 -0
  202. package/app/components/docs/DocsNav.vue +161 -0
  203. package/app/components/docs/DocsPageTransition.vue +32 -0
  204. package/app/components/docs/DocsSearch.vue +220 -0
  205. package/app/components/docs/DocsSearchButton.vue +20 -0
  206. package/app/components/docs/DocsThemeCustomizer.vue +229 -0
  207. package/app/components/docs/DocsThemeToggler.vue +98 -0
  208. package/app/components/docs/DocsTocRail.vue +162 -0
  209. package/app/components/docs/DocsToclink.vue +52 -0
  210. package/app/components/docs/DocsZigZagRail.vue +70 -0
  211. package/app/components/landing/Hero.vue +222 -0
  212. package/app/components/page/PageFooter.vue +49 -0
  213. package/app/components/page/PageHeader.vue +68 -0
  214. package/app/components/page/PageHeaderLinks.vue +138 -0
  215. package/app/components/page/PageMobileToc.vue +162 -0
  216. package/app/components/page/PageToc.vue +33 -0
  217. package/app/composables/useDefaultSlotItems.ts +90 -0
  218. package/app/composables/useDocPage.ts +66 -0
  219. package/app/composables/useDocSearch.ts +23 -0
  220. package/app/composables/useDocd.ts +107 -0
  221. package/app/composables/useLogoAssets.ts +319 -0
  222. package/app/composables/usePm.ts +73 -0
  223. package/app/composables/useProseComponentMeta.ts +30 -0
  224. package/app/composables/useScrollspy.ts +327 -0
  225. package/app/composables/useSeo.ts +240 -0
  226. package/app/composables/useUIConfig.ts +36 -0
  227. package/app/layouts/default.vue +5 -0
  228. package/app/layouts/docs.vue +64 -0
  229. package/app/middleware/colorMode.global.ts +8 -0
  230. package/app/middleware/doc-page-layout.ts +11 -0
  231. package/app/middleware/landing-page-layout.ts +11 -0
  232. package/app/pages/[...slug].vue +63 -0
  233. package/app/plugins/mermaid.client.ts +35 -0
  234. package/app/plugins/navigation-direction.client.ts +15 -0
  235. package/app/plugins/theme-restore.client.ts +7 -0
  236. package/app/templates/landing.vue +40 -0
  237. package/app/transitions/presets.ts +71 -0
  238. package/app/types/prose-component-meta.d.ts +4 -0
  239. package/app/utils/og.ts +26 -0
  240. package/app/utils/prerender.ts +9 -0
  241. package/app/utils/translucent.ts +56 -0
  242. package/app/utils/tw-helper.ts +4 -0
  243. package/content.config.ts +81 -0
  244. package/index.d.ts +25 -0
  245. package/modules/config.ts +89 -0
  246. package/modules/custom-icons.ts +17 -0
  247. package/modules/markdown-rewrite.ts +96 -0
  248. package/modules/prose-component-meta.ts +150 -0
  249. package/modules/routing.ts +22 -0
  250. package/modules/skills/index.ts +167 -0
  251. package/modules/skills/runtime/server/routes/skills-files.ts +49 -0
  252. package/modules/skills/runtime/server/routes/skills-index.ts +8 -0
  253. package/nuxt.config.ts +96 -0
  254. package/nuxt.schema.ts +288 -0
  255. package/package.json +95 -0
  256. package/server/mcp/tools/get-page.ts +66 -0
  257. package/server/mcp/tools/list-pages.ts +61 -0
  258. package/server/routes/sitemap.xml.ts +73 -0
  259. package/server/utils/content.ts +3 -0
  260. package/tailwind.config.cjs +55 -0
  261. package/utils/component-api-content.ts +467 -0
  262. package/utils/component-api-discovery.ts +165 -0
  263. package/utils/component-api-schema.ts +28 -0
  264. package/utils/component-api.ts +243 -0
  265. package/utils/generate-prose-component-meta.ts +303 -0
  266. package/utils/git.ts +123 -0
  267. package/utils/meta.ts +40 -0
  268. package/utils/pages.ts +21 -0
@@ -0,0 +1,25 @@
1
+ <template>
2
+ <UiTextarea
3
+ v-bind="forwarded"
4
+ data-slot="input-group-textarea"
5
+ :class="inputGroupTextareaStyles({ class: normalizeClass(props.class) || undefined })"
6
+ >
7
+ <slot />
8
+ </UiTextarea>
9
+ </template>
10
+
11
+ <script lang="ts">
12
+ import { normalizeClass } from "vue";
13
+
14
+ import type { TextareaProps } from "@/components/Ui/Textarea.vue";
15
+
16
+ const inputGroupTextareaStyles = tv({
17
+ base: "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",
18
+ });
19
+ </script>
20
+
21
+ <script lang="ts" setup>
22
+ const props = defineProps<TextareaProps>();
23
+
24
+ const forwarded = reactiveOmit(props, ["class"]);
25
+ </script>
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <Primitive
3
+ data-slot="kbd-group"
4
+ v-bind="forwarded"
5
+ :class="kbdGroupStyles({ class: normalizeClass(props.class) || undefined })"
6
+ >
7
+ <slot />
8
+ </Primitive>
9
+ </template>
10
+
11
+ <script lang="ts">
12
+ import { Primitive } from "reka-ui";
13
+ import type { PrimitiveProps } from "reka-ui";
14
+ import { normalizeClass } from "vue";
15
+ import type { HTMLAttributes } from "vue";
16
+
17
+ export const kbdGroupStyles = tv({
18
+ base: "inline-flex items-center gap-1",
19
+ });
20
+
21
+ export type KbdGroupProps = PrimitiveProps & {
22
+ /**
23
+ * Additional classes to apply to the parent element.
24
+ */
25
+ class?: HTMLAttributes["class"];
26
+ };
27
+ </script>
28
+
29
+ <script lang="ts" setup>
30
+ const props = withDefaults(defineProps<KbdGroupProps>(), {});
31
+ const forwarded = reactiveOmit(props, "class");
32
+ </script>
@@ -0,0 +1,62 @@
1
+ <template>
2
+ <Primitive
3
+ data-slot="kbd"
4
+ :class="styles({ size, variant, class: normalizeClass(props.class) || undefined })"
5
+ v-bind="forwarded"
6
+ >
7
+ <slot />
8
+ </Primitive>
9
+ </template>
10
+ <script setup lang="ts">
11
+ import { Primitive } from "reka-ui";
12
+ import type { PrimitiveProps } from "reka-ui";
13
+ import { normalizeClass } from "vue";
14
+ import type { HTMLAttributes } from "vue";
15
+
16
+ const props = withDefaults(
17
+ defineProps<
18
+ PrimitiveProps & {
19
+ /**
20
+ * The size of the component
21
+ * @default "sm"
22
+ * */
23
+ size?: VariantProps<typeof styles>["size"];
24
+ /** Custom class(es) to add to the parent */
25
+ class?: HTMLAttributes["class"];
26
+ /**
27
+ * The variant of the component
28
+ * @default "solid"
29
+ * */
30
+ variant?: VariantProps<typeof styles>["variant"];
31
+ }
32
+ >(),
33
+ {
34
+ as: "kbd",
35
+ size: "sm",
36
+ }
37
+ );
38
+
39
+ const forwarded = reactiveOmit(props, "class", "size");
40
+
41
+ const styles = tv({
42
+ base: [
43
+ "pointer-events-none inline-flex w-fit min-w-5 items-center justify-center gap-1 rounded-sm font-sans font-medium select-none",
44
+ "[&_svg:not([class*='size-'])]:size-3",
45
+ ],
46
+ variants: {
47
+ size: {
48
+ xs: "h-4 px-1 text-[11px]",
49
+ sm: "h-5 px-1 text-xs",
50
+ md: "h-[22px] px-1 text-sm",
51
+ },
52
+ variant: {
53
+ solid: "bg-muted text-foreground/80",
54
+ outline: "border bg-transparent",
55
+ },
56
+ },
57
+ defaultVariants: {
58
+ size: "sm",
59
+ variant: "solid",
60
+ },
61
+ });
62
+ </script>
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <Label
3
+ data-slot="label"
4
+ :class="styles({ class: normalizeClass(props.class) || undefined })"
5
+ v-bind="forwarded"
6
+ >
7
+ <slot />
8
+ <slot name="hint">
9
+ <span v-if="hint" data-slot="label-hint" class="text-xs font-normal text-muted-foreground">
10
+ {{ hint }}
11
+ </span>
12
+ </slot>
13
+ </Label>
14
+ </template>
15
+
16
+ <script lang="ts">
17
+ import { Label } from "reka-ui";
18
+ import type { LabelProps as LP } from "reka-ui";
19
+ import { normalizeClass } from "vue";
20
+ import type { HTMLAttributes } from "vue";
21
+
22
+ export type LabelProps = LP & {
23
+ /** Custom class(es) to add to the label */
24
+ class?: HTMLAttributes["class"];
25
+ /**
26
+ * Optional hint text to display alongside the label.
27
+ */
28
+ hint?: string;
29
+ };
30
+ </script>
31
+
32
+ <script lang="ts" setup>
33
+ const props = defineProps<LabelProps>();
34
+
35
+ const forwarded = reactiveOmit(props, "class", "hint");
36
+
37
+ const styles = tv({
38
+ base: "flex items-center justify-between gap-2 text-sm leading-none font-medium select-none not-peer-disabled:cursor-pointer group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
39
+ });
40
+ </script>
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <PopoverAnchor data-slot="popover-anchor" v-bind="forwarded">
3
+ <slot />
4
+ </PopoverAnchor>
5
+ </template>
6
+
7
+ <script lang="ts" setup>
8
+ import { PopoverAnchor, useForwardProps } from "reka-ui";
9
+ import type { PopoverAnchorProps } from "reka-ui";
10
+
11
+ const props = defineProps<PopoverAnchorProps>();
12
+ const forwarded = useForwardProps(props);
13
+ </script>
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <PopoverArrow
3
+ data-slot="popover-arrow"
4
+ v-bind="forwarded"
5
+ :class="
6
+ styles({
7
+ translucent: props.translucent,
8
+ class: normalizeClass(props.class) || undefined,
9
+ })
10
+ "
11
+ />
12
+ </template>
13
+
14
+ <script lang="ts" setup>
15
+ import { PopoverArrow, useForwardProps } from "reka-ui";
16
+ import type { PopoverArrowProps } from "reka-ui";
17
+ import { normalizeClass } from "vue";
18
+ import type { HTMLAttributes } from "vue";
19
+
20
+ const props = withDefaults(
21
+ defineProps<
22
+ PopoverArrowProps & {
23
+ class?: HTMLAttributes["class"];
24
+ translucent?: boolean;
25
+ }
26
+ >(),
27
+ {
28
+ width: 12,
29
+ height: 6,
30
+ }
31
+ );
32
+
33
+ const forwarded = useForwardProps(reactiveOmit(props, "class", "translucent"));
34
+ const styles = tv({
35
+ base: "fill-popover stroke-border",
36
+ variants: {
37
+ translucent: {
38
+ true: getTranslucentFloatingArrowClasses("popover"),
39
+ },
40
+ },
41
+ });
42
+ </script>
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <PopoverClose data-slot="popover-close" v-bind="forwarded">
3
+ <slot />
4
+ </PopoverClose>
5
+ </template>
6
+
7
+ <script lang="ts" setup>
8
+ import { PopoverClose, useForwardProps } from "reka-ui";
9
+ import type { PopoverCloseProps } from "reka-ui";
10
+
11
+ const props = defineProps<PopoverCloseProps>();
12
+ const forwarded = useForwardProps(props);
13
+ </script>
@@ -0,0 +1,55 @@
1
+ <template>
2
+ <UiPopoverPortal :to="to">
3
+ <PopoverContent
4
+ data-slot="popover-content"
5
+ v-bind="{ ...forwarded, ...$attrs }"
6
+ :class="
7
+ styles({
8
+ translucent: props.translucent,
9
+ class: normalizeClass(props.class) || undefined,
10
+ })
11
+ "
12
+ >
13
+ <slot />
14
+ </PopoverContent>
15
+ </UiPopoverPortal>
16
+ </template>
17
+
18
+ <script lang="ts" setup>
19
+ import { PopoverContent, useForwardPropsEmits } from "reka-ui";
20
+ import type { PopoverContentEmits, PopoverContentProps } from "reka-ui";
21
+ import { normalizeClass } from "vue";
22
+ import type { HTMLAttributes } from "vue";
23
+
24
+ defineOptions({ inheritAttrs: false });
25
+
26
+ const props = withDefaults(
27
+ defineProps<
28
+ PopoverContentProps & {
29
+ to?: string | HTMLElement;
30
+ class?: HTMLAttributes["class"];
31
+ translucent?: boolean;
32
+ }
33
+ >(),
34
+ {
35
+ side: "bottom",
36
+ sideOffset: 4,
37
+ align: "center",
38
+ avoidCollisions: true,
39
+ collisionPadding: 0,
40
+ sticky: "partial",
41
+ }
42
+ );
43
+
44
+ const emits = defineEmits<PopoverContentEmits>();
45
+ const forwarded = useForwardPropsEmits(reactiveOmit(props, "to", "class", "translucent"), emits);
46
+
47
+ const styles = tv({
48
+ base: "z-50 w-72 origin-(--reka-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
49
+ variants: {
50
+ translucent: {
51
+ true: getTranslucentFloatingPanelClasses("popover"),
52
+ },
53
+ },
54
+ });
55
+ </script>
@@ -0,0 +1,15 @@
1
+ <template>
2
+ <PopoverRoot data-slot="popover" v-bind="forwarded">
3
+ <slot />
4
+ </PopoverRoot>
5
+ </template>
6
+
7
+ <script lang="ts" setup>
8
+ import { PopoverRoot, useForwardPropsEmits } from "reka-ui";
9
+ import type { PopoverRootEmits, PopoverRootProps } from "reka-ui";
10
+
11
+ const props = defineProps<PopoverRootProps>();
12
+ const emits = defineEmits<PopoverRootEmits>();
13
+
14
+ const forwarded = useForwardPropsEmits(props, emits);
15
+ </script>
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <PopoverPortal data-slot="popover-portal" v-bind="forwarded">
3
+ <slot />
4
+ </PopoverPortal>
5
+ </template>
6
+
7
+ <script lang="ts" setup>
8
+ import { PopoverPortal, useForwardProps } from "reka-ui";
9
+ import type { PopoverPortalProps } from "reka-ui";
10
+
11
+ const props = defineProps<PopoverPortalProps>();
12
+ const forwarded = useForwardProps(props);
13
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <PopoverTrigger data-slot="popover-trigger" v-bind="props">
3
+ <slot />
4
+ </PopoverTrigger>
5
+ </template>
6
+
7
+ <script lang="ts" setup>
8
+ import { PopoverTrigger } from "reka-ui";
9
+ import type { PopoverTriggerProps } from "reka-ui";
10
+
11
+ const props = defineProps<PopoverTriggerProps>();
12
+ </script>
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <PopoverClose
3
+ data-slot="popover-x"
4
+ v-bind="forwarded"
5
+ :class="styles({ class: normalizeClass(props.class) || undefined })"
6
+ >
7
+ <slot>
8
+ <Icon :name="icon" class="size-4" />
9
+ <span class="sr-only">{{ srText }}</span>
10
+ </slot>
11
+ </PopoverClose>
12
+ </template>
13
+
14
+ <script lang="ts" setup>
15
+ import { PopoverClose, useForwardProps } from "reka-ui";
16
+ import type { PopoverCloseProps } from "reka-ui";
17
+ import { normalizeClass } from "vue";
18
+ import type { HTMLAttributes } from "vue";
19
+
20
+ const props = withDefaults(
21
+ defineProps<
22
+ PopoverCloseProps & {
23
+ class?: HTMLAttributes["class"];
24
+ icon?: string;
25
+ srText?: string;
26
+ }
27
+ >(),
28
+ {
29
+ icon: "heroicons:x-mark",
30
+ srText: "Close",
31
+ }
32
+ );
33
+ const forwarded = useForwardProps(reactiveOmit(props, "icon", "srText", "class"));
34
+
35
+ const styles = tv({
36
+ base: "absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
37
+ });
38
+ </script>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <ScrollAreaCorner data-slot="scroll-area-corner" v-bind="props">
3
+ <slot />
4
+ </ScrollAreaCorner>
5
+ </template>
6
+
7
+ <script lang="ts" setup>
8
+ import { ScrollAreaCorner } from "reka-ui";
9
+ import type { ScrollAreaCornerProps } from "reka-ui";
10
+
11
+ const props = defineProps<ScrollAreaCornerProps>();
12
+ </script>
@@ -0,0 +1,38 @@
1
+ <template>
2
+ <ScrollAreaRoot
3
+ data-slot="scroll-area"
4
+ v-bind="forwarded"
5
+ :class="styles({ class: normalizeClass(props.class) || undefined })"
6
+ >
7
+ <UiScrollAreaViewport>
8
+ <slot />
9
+ </UiScrollAreaViewport>
10
+ <UiScrollAreaScrollbar :orientation="orientation" />
11
+ <UiScrollAreaCorner />
12
+ </ScrollAreaRoot>
13
+ </template>
14
+
15
+ <script lang="ts" setup>
16
+ import { ScrollAreaRoot } from "reka-ui";
17
+ import type { ScrollAreaRootProps } from "reka-ui";
18
+ import { normalizeClass } from "vue";
19
+ import type { HTMLAttributes } from "vue";
20
+
21
+ const props = withDefaults(
22
+ defineProps<
23
+ ScrollAreaRootProps & {
24
+ /** Orientation for scrolling */
25
+ orientation?: "vertical" | "horizontal";
26
+ /** Custom class(es) to add to the parent */
27
+ class?: HTMLAttributes["class"];
28
+ }
29
+ >(),
30
+ {
31
+ orientation: "vertical",
32
+ }
33
+ );
34
+ const forwarded = reactiveOmit(props, "class");
35
+ const styles = tv({
36
+ base: "relative",
37
+ });
38
+ </script>
@@ -0,0 +1,39 @@
1
+ <template>
2
+ <ScrollAreaScrollbar
3
+ data-slot="scroll-area-scrollbar"
4
+ v-bind="forwarded"
5
+ :class="styles({ orientation, class: normalizeClass(props.class) || undefined })"
6
+ >
7
+ <slot />
8
+ <UiScrollAreaThumb />
9
+ </ScrollAreaScrollbar>
10
+ </template>
11
+
12
+ <script lang="ts" setup>
13
+ import { ScrollAreaScrollbar } from "reka-ui";
14
+ import type { ScrollAreaScrollbarProps } from "reka-ui";
15
+ import { normalizeClass } from "vue";
16
+ import type { HTMLAttributes } from "vue";
17
+
18
+ const props = withDefaults(
19
+ defineProps<
20
+ ScrollAreaScrollbarProps & {
21
+ /** Class to apply to the scrollbar */
22
+ class?: HTMLAttributes["class"];
23
+ }
24
+ >(),
25
+ {
26
+ orientation: "vertical",
27
+ }
28
+ );
29
+ const forwarded = reactiveOmit(props, "class");
30
+ const styles = tv({
31
+ base: "flex touch-none transition-colors select-none",
32
+ variants: {
33
+ orientation: {
34
+ vertical: "h-full w-2.5 border-l border-l-transparent px-px",
35
+ horizontal: "h-2.5 flex-col border-t border-t-transparent px-px",
36
+ },
37
+ },
38
+ });
39
+ </script>
@@ -0,0 +1,39 @@
1
+ <template>
2
+ <ScrollAreaThumb
3
+ data-slot="scroll-area-thumb"
4
+ v-bind="forwarded"
5
+ :class="styles({ orientation, class: normalizeClass(props.class) || undefined })"
6
+ >
7
+ <slot />
8
+ </ScrollAreaThumb>
9
+ </template>
10
+
11
+ <script lang="ts" setup>
12
+ import { ScrollAreaThumb } from "reka-ui";
13
+ import type { ScrollAreaThumbProps } from "reka-ui";
14
+ import { normalizeClass } from "vue";
15
+ import type { HTMLAttributes } from "vue";
16
+
17
+ const props = withDefaults(
18
+ defineProps<
19
+ ScrollAreaThumbProps & {
20
+ /** Custom class(es) to add to the parent */
21
+ class?: HTMLAttributes["class"];
22
+ orientation?: "vertical" | "horizontal";
23
+ }
24
+ >(),
25
+ {
26
+ orientation: "vertical",
27
+ }
28
+ );
29
+ const forwarded = reactiveOmit(props, "class");
30
+ const styles = tv({
31
+ base: "relative flex-1 rounded-full bg-border",
32
+ variants: {
33
+ orientation: {
34
+ vertical: "flex-1",
35
+ horizontal: "",
36
+ },
37
+ },
38
+ });
39
+ </script>
@@ -0,0 +1,27 @@
1
+ <template>
2
+ <ScrollAreaViewport
3
+ data-slot="scroll-area-viewport"
4
+ v-bind="forwarded"
5
+ :class="styles({ class: normalizeClass(props.class) || undefined })"
6
+ >
7
+ <slot />
8
+ </ScrollAreaViewport>
9
+ </template>
10
+
11
+ <script lang="ts" setup>
12
+ import { ScrollAreaViewport } from "reka-ui";
13
+ import type { ScrollAreaViewportProps } from "reka-ui";
14
+ import { normalizeClass } from "vue";
15
+ import type { HTMLAttributes } from "vue";
16
+
17
+ const props = defineProps<
18
+ ScrollAreaViewportProps & {
19
+ /** Custom class(es) to add to the parent */
20
+ class?: HTMLAttributes["class"];
21
+ }
22
+ >();
23
+ const forwarded = reactiveOmit(props, "class");
24
+ const styles = tv({
25
+ base: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
26
+ });
27
+ </script>
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <!-- Wrap only the ANCHORS (links/buttons) inside this component -->
3
+ <div ref="root" data-slot="scrollspy" v-bind="$attrs" :class="props.class">
4
+ <slot />
5
+ </div>
6
+ </template>
7
+
8
+ <script setup lang="ts">
9
+ import type { HTMLAttributes } from "vue";
10
+
11
+ type TargetLike = HTMLElement | Window | Document | null | undefined;
12
+
13
+ const props = withDefaults(
14
+ defineProps<{
15
+ /** Optional scroll container (pass a ref to a scrollable element). Defaults to window. */
16
+ target?: MaybeRefOrGetter<TargetLike>;
17
+ /** Default offset in px from the top when computing active section / scrolling. */
18
+ offset?: number;
19
+ /** Smooth scrolling on anchor click. */
20
+ smooth?: boolean;
21
+ /** Base data-* attribute, e.g. data-scrollspy-anchor. */
22
+ dataAttribute?: string;
23
+ /** Reflect active id in URL hash. */
24
+ history?: boolean;
25
+ /** Throttle time (ms) for scroll handler. */
26
+ throttleTime?: number;
27
+ /** Whether to mark only the current section or every visible section as active. */
28
+ mode?: "single" | "multiple";
29
+ /** Optional callback on change (also emits 'change'). */
30
+ onUpdate?: (id: string) => void;
31
+ /**
32
+ * Additional classes to apply to the wrapper element.
33
+ */
34
+ class?: HTMLAttributes["class"];
35
+ }>(),
36
+ {
37
+ offset: 0,
38
+ smooth: true,
39
+ dataAttribute: "scrollspy",
40
+ history: true,
41
+ throttleTime: 50,
42
+ mode: "single",
43
+ }
44
+ );
45
+
46
+ const emit = defineEmits<{ (e: "change", id: string): void }>();
47
+
48
+ const { root } = useScrollspy({
49
+ target: props.target,
50
+ offset: props.offset,
51
+ smooth: props.smooth,
52
+ dataAttribute: props.dataAttribute,
53
+ history: props.history,
54
+ throttleTime: props.throttleTime,
55
+ mode: props.mode,
56
+ onChange: (id) => {
57
+ props.onUpdate?.(id);
58
+ emit("change", id);
59
+ },
60
+ });
61
+ </script>
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <Separator
3
+ data-slot="separator"
4
+ v-bind="forwarded"
5
+ :class="styles({ orientation, class: normalizeClass(props.class) || undefined })"
6
+ />
7
+ </template>
8
+
9
+ <script lang="ts">
10
+ import { Separator, useForwardProps } from "reka-ui";
11
+ import type { SeparatorProps } from "reka-ui";
12
+ import { normalizeClass } from "vue";
13
+ import type { HTMLAttributes } from "vue";
14
+
15
+ export type UiSeparatorProps = SeparatorProps & {
16
+ /**
17
+ * Custom class(es) to add to the separator
18
+ */
19
+ class?: HTMLAttributes["class"];
20
+ };
21
+ </script>
22
+
23
+ <script lang="ts" setup>
24
+ const props = withDefaults(defineProps<UiSeparatorProps>(), {
25
+ orientation: "horizontal",
26
+ decorative: true,
27
+ });
28
+
29
+ const forwarded = useForwardProps(reactiveOmit(props, "class"));
30
+
31
+ const styles = tv({
32
+ base: "shrink-0 bg-border",
33
+ variants: {
34
+ orientation: {
35
+ horizontal: "h-px w-full",
36
+ vertical: "h-full w-px",
37
+ },
38
+ },
39
+ });
40
+ </script>
@@ -0,0 +1,39 @@
1
+ <template>
2
+ <Primitive
3
+ data-slot="skeleton"
4
+ :class="styles({ loading, class: normalizeClass(props.class) || undefined })"
5
+ v-bind="forwarded"
6
+ >
7
+ <slot />
8
+ </Primitive>
9
+ </template>
10
+
11
+ <script lang="ts" setup>
12
+ import { Primitive } from "reka-ui";
13
+ import type { PrimitiveProps } from "reka-ui";
14
+ import { normalizeClass } from "vue";
15
+ import type { HTMLAttributes } from "vue";
16
+
17
+ const styles = tv({
18
+ base: "animate-pulse rounded-md bg-muted",
19
+ variants: {
20
+ loading: { true: "cursor-wait", false: "cursor-default" },
21
+ },
22
+ });
23
+
24
+ const props = withDefaults(
25
+ defineProps<
26
+ PrimitiveProps & {
27
+ /** Custom class(es) to add to parent element */
28
+ class?: HTMLAttributes["class"];
29
+ /** Whether the skeleton is loading */
30
+ loading?: boolean;
31
+ }
32
+ >(),
33
+ {
34
+ as: "div",
35
+ }
36
+ );
37
+
38
+ const forwarded = reactiveOmit(props, "class", "loading");
39
+ </script>