fumadocs-ui 16.4.1 → 16.4.2

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 (266) hide show
  1. package/css/preset.css +2 -4
  2. package/dist/_virtual/rolldown_runtime.js +36 -0
  3. package/dist/components/accordion.d.ts +24 -7
  4. package/dist/components/accordion.d.ts.map +1 -1
  5. package/dist/components/accordion.js +65 -38
  6. package/dist/components/accordion.js.map +1 -0
  7. package/dist/components/banner.d.ts +33 -22
  8. package/dist/components/banner.d.ts.map +1 -1
  9. package/dist/components/banner.js +63 -47
  10. package/dist/components/banner.js.map +1 -0
  11. package/dist/components/callout.d.ts +41 -17
  12. package/dist/components/callout.d.ts.map +1 -1
  13. package/dist/components/callout.js +57 -28
  14. package/dist/components/callout.js.map +1 -0
  15. package/dist/components/card.d.ts +19 -9
  16. package/dist/components/card.d.ts.map +1 -1
  17. package/dist/components/card.js +39 -8
  18. package/dist/components/card.js.map +1 -0
  19. package/dist/components/codeblock.d.ts +61 -40
  20. package/dist/components/codeblock.d.ts.map +1 -1
  21. package/dist/components/codeblock.js +116 -58
  22. package/dist/components/codeblock.js.map +1 -0
  23. package/dist/components/dialog/search-algolia.d.ts +37 -23
  24. package/dist/components/dialog/search-algolia.d.ts.map +1 -1
  25. package/dist/components/dialog/search-algolia.js +64 -31
  26. package/dist/components/dialog/search-algolia.js.map +1 -0
  27. package/dist/components/dialog/search-default.d.ts +42 -27
  28. package/dist/components/dialog/search-default.d.ts.map +1 -1
  29. package/dist/components/dialog/search-default.js +64 -38
  30. package/dist/components/dialog/search-default.js.map +1 -0
  31. package/dist/components/dialog/search-orama.d.ts +41 -25
  32. package/dist/components/dialog/search-orama.d.ts.map +1 -1
  33. package/dist/components/dialog/search-orama.js +68 -35
  34. package/dist/components/dialog/search-orama.js.map +1 -0
  35. package/dist/components/dialog/search.d.ts +103 -64
  36. package/dist/components/dialog/search.d.ts.map +1 -1
  37. package/dist/components/dialog/search.js +264 -185
  38. package/dist/components/dialog/search.js.map +1 -0
  39. package/dist/components/dynamic-codeblock.d.ts +30 -19
  40. package/dist/components/dynamic-codeblock.d.ts.map +1 -1
  41. package/dist/components/dynamic-codeblock.js +60 -27
  42. package/dist/components/dynamic-codeblock.js.map +1 -0
  43. package/dist/components/files.d.ts +32 -16
  44. package/dist/components/files.d.ts.map +1 -1
  45. package/dist/components/files.js +40 -14
  46. package/dist/components/files.js.map +1 -0
  47. package/dist/components/github-info.d.ts +18 -7
  48. package/dist/components/github-info.d.ts.map +1 -1
  49. package/dist/components/github-info.js +63 -48
  50. package/dist/components/github-info.js.map +1 -0
  51. package/dist/components/heading.d.ts +11 -4
  52. package/dist/components/heading.d.ts.map +1 -1
  53. package/dist/components/heading.js +28 -8
  54. package/dist/components/heading.js.map +1 -0
  55. package/dist/components/image-zoom-CtfZieBH.css +80 -0
  56. package/dist/components/image-zoom-CtfZieBH.css.map +1 -0
  57. package/dist/components/image-zoom.d.ts +23 -14
  58. package/dist/components/image-zoom.d.ts.map +1 -1
  59. package/dist/components/image-zoom.js +32 -19
  60. package/dist/components/image-zoom.js.map +1 -0
  61. package/dist/components/image-zoom2.js +1 -0
  62. package/dist/components/inline-toc.d.ts +14 -6
  63. package/dist/components/inline-toc.d.ts.map +1 -1
  64. package/dist/components/inline-toc.js +28 -8
  65. package/dist/components/inline-toc.js.map +1 -0
  66. package/dist/components/sidebar/base.d.ts +102 -65
  67. package/dist/components/sidebar/base.d.ts.map +1 -1
  68. package/dist/components/sidebar/base.js +256 -180
  69. package/dist/components/sidebar/base.js.map +1 -0
  70. package/dist/components/sidebar/link-item.d.ts +23 -10
  71. package/dist/components/sidebar/link-item.d.ts.map +1 -1
  72. package/dist/components/sidebar/link-item.js +32 -12
  73. package/dist/components/sidebar/link-item.js.map +1 -0
  74. package/dist/components/sidebar/page-tree.d.ts +28 -17
  75. package/dist/components/sidebar/page-tree.d.ts.map +1 -1
  76. package/dist/components/sidebar/page-tree.js +57 -33
  77. package/dist/components/sidebar/page-tree.js.map +1 -0
  78. package/dist/components/sidebar/tabs/dropdown.d.ts +18 -9
  79. package/dist/components/sidebar/tabs/dropdown.d.ts.map +1 -1
  80. package/dist/components/sidebar/tabs/dropdown.js +75 -31
  81. package/dist/components/sidebar/tabs/dropdown.js.map +1 -0
  82. package/dist/components/sidebar/tabs/index.d.ts +24 -18
  83. package/dist/components/sidebar/tabs/index.d.ts.map +1 -1
  84. package/dist/components/sidebar/tabs/index.js +45 -45
  85. package/dist/components/sidebar/tabs/index.js.map +1 -0
  86. package/dist/components/steps.d.ts +16 -7
  87. package/dist/components/steps.d.ts.map +1 -1
  88. package/dist/components/steps.js +17 -5
  89. package/dist/components/steps.js.map +1 -0
  90. package/dist/components/tabs.d.ts +49 -28
  91. package/dist/components/tabs.d.ts.map +1 -1
  92. package/dist/components/tabs.js +88 -51
  93. package/dist/components/tabs.js.map +1 -0
  94. package/dist/components/toc/clerk.d.ts +1 -2
  95. package/dist/components/toc/clerk.js +12 -1
  96. package/dist/components/toc/clerk.js.map +1 -0
  97. package/dist/components/toc/default.d.ts +1 -2
  98. package/dist/components/toc/default.js +12 -1
  99. package/dist/components/toc/default.js.map +1 -0
  100. package/dist/components/toc/index.d.ts +1 -2
  101. package/dist/components/toc/index.js +12 -1
  102. package/dist/components/toc/index.js.map +1 -0
  103. package/dist/components/type-table.d.ts +36 -29
  104. package/dist/components/type-table.d.ts.map +1 -1
  105. package/dist/components/type-table.js +106 -25
  106. package/dist/components/type-table.js.map +1 -0
  107. package/dist/components/ui/accordion.d.ts +31 -7
  108. package/dist/components/ui/accordion.d.ts.map +1 -1
  109. package/dist/components/ui/accordion.js +40 -14
  110. package/dist/components/ui/accordion.js.map +1 -0
  111. package/dist/components/ui/button.d.ts +12 -7
  112. package/dist/components/ui/button.d.ts.map +1 -1
  113. package/dist/components/ui/button.js +21 -18
  114. package/dist/components/ui/button.js.map +1 -0
  115. package/dist/components/ui/collapsible.d.ts +12 -8
  116. package/dist/components/ui/collapsible.d.ts.map +1 -1
  117. package/dist/components/ui/collapsible.js +21 -11
  118. package/dist/components/ui/collapsible.js.map +1 -0
  119. package/dist/components/ui/navigation-menu.d.ts +8 -5
  120. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  121. package/dist/components/ui/navigation-menu.js +36 -9
  122. package/dist/components/ui/navigation-menu.js.map +1 -0
  123. package/dist/components/ui/popover.d.ts +6 -3
  124. package/dist/components/ui/popover.d.ts.map +1 -1
  125. package/dist/components/ui/popover.js +19 -6
  126. package/dist/components/ui/popover.js.map +1 -0
  127. package/dist/components/ui/scroll-area.d.ts +7 -4
  128. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  129. package/dist/components/ui/scroll-area.js +33 -7
  130. package/dist/components/ui/scroll-area.js.map +1 -0
  131. package/dist/components/ui/tabs.d.ts +37 -19
  132. package/dist/components/ui/tabs.d.ts.map +1 -1
  133. package/dist/components/ui/tabs.js +75 -73
  134. package/dist/components/ui/tabs.js.map +1 -0
  135. package/dist/contexts/i18n.d.ts +1 -2
  136. package/dist/contexts/i18n.js +12 -1
  137. package/dist/contexts/i18n.js.map +1 -0
  138. package/dist/contexts/search.d.ts +7 -1
  139. package/dist/contexts/search.d.ts.map +1 -1
  140. package/dist/contexts/search.js +12 -1
  141. package/dist/contexts/search.js.map +1 -0
  142. package/dist/contexts/tree.d.ts +1 -2
  143. package/dist/contexts/tree.js +12 -1
  144. package/dist/contexts/tree.js.map +1 -0
  145. package/dist/i18n.d.ts +1 -2
  146. package/dist/i18n.js +3 -1
  147. package/dist/layouts/docs/client.d.ts +30 -13
  148. package/dist/layouts/docs/client.d.ts.map +1 -1
  149. package/dist/layouts/docs/client.js +61 -34
  150. package/dist/layouts/docs/client.js.map +1 -0
  151. package/dist/layouts/docs/index.d.ts +57 -33
  152. package/dist/layouts/docs/index.d.ts.map +1 -1
  153. package/dist/layouts/docs/index.js +178 -68
  154. package/dist/layouts/docs/index.js.map +1 -0
  155. package/dist/layouts/docs/page/client.d.ts +43 -21
  156. package/dist/layouts/docs/page/client.d.ts.map +1 -1
  157. package/dist/layouts/docs/page/client.js +213 -105
  158. package/dist/layouts/docs/page/client.js.map +1 -0
  159. package/dist/layouts/docs/page/index.d.ts +82 -46
  160. package/dist/layouts/docs/page/index.d.ts.map +1 -1
  161. package/dist/layouts/docs/page/index.js +98 -45
  162. package/dist/layouts/docs/page/index.js.map +1 -0
  163. package/dist/layouts/docs/sidebar.d.ts +57 -16
  164. package/dist/layouts/docs/sidebar.d.ts.map +1 -1
  165. package/dist/layouts/docs/sidebar.js +135 -82
  166. package/dist/layouts/docs/sidebar.js.map +1 -0
  167. package/dist/layouts/home/client.d.ts +18 -5
  168. package/dist/layouts/home/client.d.ts.map +1 -1
  169. package/dist/layouts/home/client.js +252 -103
  170. package/dist/layouts/home/client.js.map +1 -0
  171. package/dist/layouts/home/index.d.ts +15 -10
  172. package/dist/layouts/home/index.d.ts.map +1 -1
  173. package/dist/layouts/home/index.js +24 -7
  174. package/dist/layouts/home/index.js.map +1 -0
  175. package/dist/layouts/home/navbar.d.ts +13 -6
  176. package/dist/layouts/home/navbar.d.ts.map +1 -1
  177. package/dist/layouts/home/navbar.js +34 -12
  178. package/dist/layouts/home/navbar.js.map +1 -0
  179. package/dist/layouts/notebook/client.d.ts +44 -20
  180. package/dist/layouts/notebook/client.d.ts.map +1 -1
  181. package/dist/layouts/notebook/client.js +148 -93
  182. package/dist/layouts/notebook/client.js.map +1 -0
  183. package/dist/layouts/notebook/index.d.ts +34 -30
  184. package/dist/layouts/notebook/index.d.ts.map +1 -1
  185. package/dist/layouts/notebook/index.js +216 -90
  186. package/dist/layouts/notebook/index.js.map +1 -0
  187. package/dist/layouts/notebook/page/client.d.ts +43 -21
  188. package/dist/layouts/notebook/page/client.d.ts.map +1 -1
  189. package/dist/layouts/notebook/page/client.js +213 -105
  190. package/dist/layouts/notebook/page/client.js.map +1 -0
  191. package/dist/layouts/notebook/page/index.d.ts +82 -46
  192. package/dist/layouts/notebook/page/index.d.ts.map +1 -1
  193. package/dist/layouts/notebook/page/index.js +98 -45
  194. package/dist/layouts/notebook/page/index.js.map +1 -0
  195. package/dist/layouts/notebook/sidebar.d.ts +62 -20
  196. package/dist/layouts/notebook/sidebar.d.ts.map +1 -1
  197. package/dist/layouts/notebook/sidebar.js +130 -88
  198. package/dist/layouts/notebook/sidebar.js.map +1 -0
  199. package/dist/layouts/shared/index.d.ts +62 -50
  200. package/dist/layouts/shared/index.d.ts.map +1 -1
  201. package/dist/layouts/shared/index.js +36 -20
  202. package/dist/layouts/shared/index.js.map +1 -0
  203. package/dist/layouts/shared/language-toggle.d.ts +9 -4
  204. package/dist/layouts/shared/language-toggle.d.ts.map +1 -1
  205. package/dist/layouts/shared/language-toggle.js +44 -21
  206. package/dist/layouts/shared/language-toggle.js.map +1 -0
  207. package/dist/layouts/shared/search-toggle.d.ts +20 -8
  208. package/dist/layouts/shared/search-toggle.d.ts.map +1 -1
  209. package/dist/layouts/shared/search-toggle.js +53 -24
  210. package/dist/layouts/shared/search-toggle.js.map +1 -0
  211. package/dist/layouts/shared/theme-toggle.d.ts +13 -4
  212. package/dist/layouts/shared/theme-toggle.d.ts.map +1 -1
  213. package/dist/layouts/shared/theme-toggle.js +58 -34
  214. package/dist/layouts/shared/theme-toggle.js.map +1 -0
  215. package/dist/mdx.d.ts +34 -29
  216. package/dist/mdx.d.ts.map +1 -1
  217. package/dist/mdx.js +68 -34
  218. package/dist/mdx.js.map +1 -0
  219. package/dist/mdx.server.d.ts +9 -5
  220. package/dist/mdx.server.d.ts.map +1 -1
  221. package/dist/mdx.server.js +21 -13
  222. package/dist/mdx.server.js.map +1 -0
  223. package/dist/og.d.ts +1 -2
  224. package/dist/og.js +3 -1
  225. package/dist/page.d.ts +30 -20
  226. package/dist/page.d.ts.map +1 -1
  227. package/dist/page.js +34 -18
  228. package/dist/page.js.map +1 -0
  229. package/dist/provider/base.d.ts +43 -33
  230. package/dist/provider/base.d.ts.map +1 -1
  231. package/dist/provider/base.js +37 -17
  232. package/dist/provider/base.js.map +1 -0
  233. package/dist/provider/next.d.ts +20 -12
  234. package/dist/provider/next.d.ts.map +1 -1
  235. package/dist/provider/next.js +19 -5
  236. package/dist/provider/next.js.map +1 -0
  237. package/dist/provider/react-router.d.ts +20 -12
  238. package/dist/provider/react-router.d.ts.map +1 -1
  239. package/dist/provider/react-router.js +19 -5
  240. package/dist/provider/react-router.js.map +1 -0
  241. package/dist/provider/tanstack.d.ts +20 -12
  242. package/dist/provider/tanstack.d.ts.map +1 -1
  243. package/dist/provider/tanstack.js +19 -5
  244. package/dist/provider/tanstack.js.map +1 -0
  245. package/dist/provider/waku.d.ts +20 -12
  246. package/dist/provider/waku.d.ts.map +1 -1
  247. package/dist/provider/waku.js +19 -5
  248. package/dist/provider/waku.js.map +1 -0
  249. package/dist/style.css +11 -13
  250. package/dist/utils/use-copy-button.d.ts +1 -2
  251. package/dist/utils/use-copy-button.js +3 -1
  252. package/dist/utils/use-footer-items.d.ts +1 -2
  253. package/dist/utils/use-footer-items.js +3 -1
  254. package/dist/utils/use-is-scroll-top.d.ts +1 -2
  255. package/dist/utils/use-is-scroll-top.js +3 -1
  256. package/package.json +51 -52
  257. package/dist/components/toc/clerk.d.ts.map +0 -1
  258. package/dist/components/toc/default.d.ts.map +0 -1
  259. package/dist/components/toc/index.d.ts.map +0 -1
  260. package/dist/contexts/i18n.d.ts.map +0 -1
  261. package/dist/contexts/tree.d.ts.map +0 -1
  262. package/dist/i18n.d.ts.map +0 -1
  263. package/dist/og.d.ts.map +0 -1
  264. package/dist/utils/use-copy-button.d.ts.map +0 -1
  265. package/dist/utils/use-footer-items.d.ts.map +0 -1
  266. package/dist/utils/use-is-scroll-top.d.ts.map +0 -1
@@ -1,8 +1,13 @@
1
- import { type VariantProps } from 'class-variance-authority';
2
- export declare const buttonVariants: (props?: ({
3
- variant?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
4
- color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
5
- size?: "icon" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export type ButtonProps = VariantProps<typeof buttonVariants>;
1
+ import { VariantProps } from "class-variance-authority";
2
+ import * as class_variance_authority_types0 from "class-variance-authority/types";
3
+
4
+ //#region src/components/ui/button.d.ts
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
7
+ color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
8
+ size?: "sm" | "icon" | "icon-sm" | "icon-xs" | null | undefined;
9
+ } & class_variance_authority_types0.ClassProp) | undefined) => string;
10
+ type ButtonProps = VariantProps<typeof buttonVariants>;
11
+ //#endregion
12
+ export { ButtonProps, buttonVariants };
8
13
  //# sourceMappingURL=button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAUlE,eAAO,MAAM,cAAc;;;;8EAe1B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"button.d.ts","names":[],"sources":["../../../src/components/ui/button.tsx"],"sourcesContent":[],"mappings":";;;;cAUa,sBAiByB;;;EAjBzB,IAAA,CAAA,EAAA,IAAA,GAAA,MAeZ,GAAA,SAAA,GAAA,SAAA,GAAA,IAAA,GAAA,SAAA;AAED,CAAA,GAFC,+BAAA,CAAA,SAEyB,CAAA,GAAA,SAAY,EAAA,GAAA,MAAA;KAA1B,WAAA,GAAc,oBAAoB"}
@@ -1,20 +1,23 @@
1
- import { cva } from 'class-variance-authority';
1
+ import { cva } from "class-variance-authority";
2
+
3
+ //#region src/components/ui/button.tsx
2
4
  const variants = {
3
- primary: 'bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80',
4
- outline: 'border hover:bg-fd-accent hover:text-fd-accent-foreground',
5
- ghost: 'hover:bg-fd-accent hover:text-fd-accent-foreground',
6
- secondary: 'border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground',
5
+ primary: "bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80",
6
+ outline: "border hover:bg-fd-accent hover:text-fd-accent-foreground",
7
+ ghost: "hover:bg-fd-accent hover:text-fd-accent-foreground",
8
+ secondary: "border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground"
7
9
  };
8
- export const buttonVariants = cva('inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring', {
9
- variants: {
10
- variant: variants,
11
- // fumadocs use `color` instead of `variant`
12
- color: variants,
13
- size: {
14
- sm: 'gap-1 px-2 py-1.5 text-xs',
15
- icon: 'p-1.5 [&_svg]:size-5',
16
- 'icon-sm': 'p-1.5 [&_svg]:size-4.5',
17
- 'icon-xs': 'p-1 [&_svg]:size-4',
18
- },
19
- },
20
- });
10
+ const buttonVariants = cva("inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring", { variants: {
11
+ variant: variants,
12
+ color: variants,
13
+ size: {
14
+ sm: "gap-1 px-2 py-1.5 text-xs",
15
+ icon: "p-1.5 [&_svg]:size-5",
16
+ "icon-sm": "p-1.5 [&_svg]:size-4.5",
17
+ "icon-xs": "p-1 [&_svg]:size-4"
18
+ }
19
+ } });
20
+
21
+ //#endregion
22
+ export { buttonVariants };
23
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","names":[],"sources":["../../../src/components/ui/button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\n\nconst variants = {\n primary: 'bg-fd-primary text-fd-primary-foreground hover:bg-fd-primary/80',\n outline: 'border hover:bg-fd-accent hover:text-fd-accent-foreground',\n ghost: 'hover:bg-fd-accent hover:text-fd-accent-foreground',\n secondary:\n 'border bg-fd-secondary text-fd-secondary-foreground hover:bg-fd-accent hover:text-fd-accent-foreground',\n} as const;\n\nexport const buttonVariants = cva(\n 'inline-flex items-center justify-center rounded-md p-2 text-sm font-medium transition-colors duration-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring',\n {\n variants: {\n variant: variants,\n // fumadocs use `color` instead of `variant`\n color: variants,\n size: {\n sm: 'gap-1 px-2 py-1.5 text-xs',\n icon: 'p-1.5 [&_svg]:size-5',\n 'icon-sm': 'p-1.5 [&_svg]:size-4.5',\n 'icon-xs': 'p-1 [&_svg]:size-4',\n },\n },\n },\n);\n\nexport type ButtonProps = VariantProps<typeof buttonVariants>;\n"],"mappings":";;;AAEA,MAAM,WAAW;CACf,SAAS;CACT,SAAS;CACT,OAAO;CACP,WACE;CACH;AAED,MAAa,iBAAiB,IAC5B,yOACA,EACE,UAAU;CACR,SAAS;CAET,OAAO;CACP,MAAM;EACJ,IAAI;EACJ,MAAM;EACN,WAAW;EACX,WAAW;EACZ;CACF,EACF,CACF"}
@@ -1,9 +1,13 @@
1
- import * as Primitive from '@radix-ui/react-collapsible';
2
- declare const Collapsible: import("react").ForwardRefExoticComponent<Primitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
3
- declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<Primitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
4
- declare const CollapsibleContent: import("react").ForwardRefExoticComponent<Omit<Primitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
- export { Collapsible, CollapsibleTrigger, CollapsibleContent };
6
- export type CollapsibleProps = Primitive.CollapsibleProps;
7
- export type CollapsibleContentProps = Primitive.CollapsibleContentProps;
8
- export type CollapsibleTriggerProps = Primitive.CollapsibleTriggerProps;
1
+ import * as react0 from "react";
2
+ import * as Primitive from "@radix-ui/react-collapsible";
3
+
4
+ //#region src/components/ui/collapsible.d.ts
5
+ declare const Collapsible: react0.ForwardRefExoticComponent<Primitive.CollapsibleProps & react0.RefAttributes<HTMLDivElement>>;
6
+ declare const CollapsibleTrigger: react0.ForwardRefExoticComponent<Primitive.CollapsibleTriggerProps & react0.RefAttributes<HTMLButtonElement>>;
7
+ declare const CollapsibleContent: react0.ForwardRefExoticComponent<Omit<Primitive.CollapsibleContentProps & react0.RefAttributes<HTMLDivElement>, "ref"> & react0.RefAttributes<HTMLDivElement>>;
8
+ type CollapsibleProps = Primitive.CollapsibleProps;
9
+ type CollapsibleContentProps = Primitive.CollapsibleContentProps;
10
+ type CollapsibleTriggerProps = Primitive.CollapsibleTriggerProps;
11
+ //#endregion
12
+ export { Collapsible, CollapsibleContent, CollapsibleContentProps, CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerProps };
9
13
  //# sourceMappingURL=collapsible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AAIzD,QAAA,MAAM,WAAW,uHAAiB,CAAC;AAEnC,QAAA,MAAM,kBAAkB,iIAA+B,CAAC;AAExD,QAAA,MAAM,kBAAkB,2LAwBtB,CAAC;AAIH,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,CAAC;AAC1D,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,uBAAuB,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,uBAAuB,CAAC"}
1
+ {"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../../src/components/ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,aAAW,MAAA,CAAA,0BAAA,SAAA,CAAA,mBAAA,MAAA,CAAA,cAAA;cAEX,oBAAkB,MAAA,CAAA,0BAAA,SAAA,CAAA,0BAAA,MAAA,CAAA,cAAA;cAElB,oBAAkB,MAAA,CAAA,0BAAA,KAAA,SAAA,CAAA,0BAAA,MAAA,CAAA,cAAA,0BAAA,MAAA,CAAA,cAAA;AAJP,KAkCL,gBAAA,GAAmB,SAAA,CAAU,gBAlCxB;AAAA,KAmCL,uBAAA,GAA0B,SAAA,CAAU,uBAnC/B;AAAA,KAoCL,uBAAA,GAA0B,SAAA,CAAU,uBApC/B"}
@@ -1,17 +1,27 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as Primitive from '@radix-ui/react-collapsible';
4
- import { forwardRef, useEffect, useState } from 'react';
5
- import { cn } from '@fumadocs/ui/cn';
2
+
3
+ import { cn } from "@fumadocs/ui/cn";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { forwardRef, useEffect, useState } from "react";
6
+ import * as Primitive from "@radix-ui/react-collapsible";
7
+
8
+ //#region src/components/ui/collapsible.tsx
6
9
  const Collapsible = Primitive.Root;
7
10
  const CollapsibleTrigger = Primitive.CollapsibleTrigger;
8
11
  const CollapsibleContent = forwardRef(({ children, ...props }, ref) => {
9
- const [mounted, setMounted] = useState(false);
10
- useEffect(() => {
11
- setMounted(true);
12
- }, []);
13
- return (_jsx(Primitive.CollapsibleContent, { ref: ref, ...props, className: cn('overflow-hidden', mounted &&
14
- 'data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down', props.className), children: children }));
12
+ const [mounted, setMounted] = useState(false);
13
+ useEffect(() => {
14
+ setMounted(true);
15
+ }, []);
16
+ return /* @__PURE__ */ jsx(Primitive.CollapsibleContent, {
17
+ ref,
18
+ ...props,
19
+ className: cn("overflow-hidden", mounted && "data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down", props.className),
20
+ children
21
+ });
15
22
  });
16
23
  CollapsibleContent.displayName = Primitive.CollapsibleContent.displayName;
17
- export { Collapsible, CollapsibleTrigger, CollapsibleContent };
24
+
25
+ //#endregion
26
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
27
+ //# sourceMappingURL=collapsible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.js","names":[],"sources":["../../../src/components/ui/collapsible.tsx"],"sourcesContent":["'use client';\nimport * as Primitive from '@radix-ui/react-collapsible';\nimport { forwardRef, useEffect, useState } from 'react';\nimport { cn } from '@fumadocs/ui/cn';\n\nconst Collapsible = Primitive.Root;\n\nconst CollapsibleTrigger = Primitive.CollapsibleTrigger;\n\nconst CollapsibleContent = forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof Primitive.CollapsibleContent>\n>(({ children, ...props }, ref) => {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n setMounted(true);\n }, []);\n\n return (\n <Primitive.CollapsibleContent\n ref={ref}\n {...props}\n className={cn(\n 'overflow-hidden',\n mounted &&\n 'data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down',\n props.className,\n )}\n >\n {children}\n </Primitive.CollapsibleContent>\n );\n});\n\nCollapsibleContent.displayName = Primitive.CollapsibleContent.displayName;\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\n\nexport type CollapsibleProps = Primitive.CollapsibleProps;\nexport type CollapsibleContentProps = Primitive.CollapsibleContentProps;\nexport type CollapsibleTriggerProps = Primitive.CollapsibleTriggerProps;\n"],"mappings":";;;;;;;;AAKA,MAAM,cAAc,UAAU;AAE9B,MAAM,qBAAqB,UAAU;AAErC,MAAM,qBAAqB,YAGxB,EAAE,UAAU,GAAG,SAAS,QAAQ;CACjC,MAAM,CAAC,SAAS,cAAc,SAAS,MAAM;AAE7C,iBAAgB;AACd,aAAW,KAAK;IACf,EAAE,CAAC;AAEN,QACE,oBAAC,UAAU;EACJ;EACL,GAAI;EACJ,WAAW,GACT,mBACA,WACE,+FACF,MAAM,UACP;EAEA;GAC4B;EAEjC;AAEF,mBAAmB,cAAc,UAAU,mBAAmB"}
@@ -1,7 +1,9 @@
1
- import * as React from 'react';
2
- import * as Primitive from '@radix-ui/react-navigation-menu';
3
- export type NavigationMenuContentProps = Primitive.NavigationMenuContentProps;
4
- export type NavigationMenuTriggerProps = Primitive.NavigationMenuTriggerProps;
1
+ import * as React from "react";
2
+ import * as Primitive from "@radix-ui/react-navigation-menu";
3
+
4
+ //#region src/components/ui/navigation-menu.d.ts
5
+ type NavigationMenuContentProps = Primitive.NavigationMenuContentProps;
6
+ type NavigationMenuTriggerProps = Primitive.NavigationMenuTriggerProps;
5
7
  declare const NavigationMenu: React.ForwardRefExoticComponent<Primitive.NavigationMenuProps & React.RefAttributes<HTMLElement>>;
6
8
  declare const NavigationMenuList: React.ForwardRefExoticComponent<Primitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
7
9
  declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
@@ -9,5 +11,6 @@ declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<Primit
9
11
  declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
12
  declare const NavigationMenuLink: React.ForwardRefExoticComponent<Primitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
11
13
  declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<Primitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuViewport, };
14
+ //#endregion
15
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuTriggerProps, NavigationMenuViewport };
13
16
  //# sourceMappingURL=navigation-menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/navigation-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,SAAS,MAAM,iCAAiC,CAAC;AAG7D,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC,0BAA0B,CAAC;AAC9E,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC,0BAA0B,CAAC;AAE9E,QAAA,MAAM,cAAc,mGAAiB,CAAC;AAEtC,QAAA,MAAM,kBAAkB,4GAAiB,CAAC;AAE1C,QAAA,MAAM,kBAAkB,2JAWtB,CAAC;AAIH,QAAA,MAAM,qBAAqB,sKAWzB,CAAC;AAGH,QAAA,MAAM,qBAAqB,gKAYzB,CAAC;AAGH,QAAA,MAAM,kBAAkB,6GAAiB,CAAC;AAE1C,QAAA,MAAM,sBAAsB,iKAa1B,CAAC;AAGH,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,GACvB,CAAC"}
1
+ {"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":[],"mappings":";;;;KAKY,0BAAA,GAA6B,SAAA,CAAU;KACvC,0BAAA,GAA6B,SAAA,CAAU;AADnD,cAGM,cAHM,EAGQ,KAAA,CAAA,yBAH+B,CAG/B,SAAA,CAAA,mBAHyD,GAGzD,KAAA,CAAA,aAHyD,CAGzD,WAHyD,CAAA,CAAA;AAC7E,cAIM,kBAJM,EAIY,KAAA,CAAA,yBAJ2B,CAI3B,SAAA,CAAA,uBAJqD,GAIrD,KAAA,CAAA,aAJqD,CAIrD,gBAJqD,CAAA,CAAA;AAAC,cAMxE,kBAJ+B,EAIb,KAAA,CAAA,yBAJa,CAIb,IAJa,CAIb,SAAA,CAAA,uBAJa,GAIb,KAAA,CAAA,aAJa,CAIb,aAJa,CAAA,EAAA,KAAA,CAAA,GAIb,KAAA,CAAA,aAJa,CAIb,aAJa,CAAA,CAAA;cAe/B,qBAfc,EAeO,KAAA,CAAA,yBAfP,CAeO,IAfP,CAeO,SAAA,CAAA,0BAfP,GAeO,KAAA,CAAA,aAfP,CAeO,iBAfP,CAAA,EAAA,KAAA,CAAA,GAeO,KAAA,CAAA,aAfP,CAeO,iBAfP,CAAA,CAAA;cA6Bd,qBA7Bc,EA6BO,KAAA,CAAA,yBA7BP,CA6BO,IA7BP,CA6BO,SAAA,CAAA,0BA7BP,GA6BO,KAAA,CAAA,aA7BP,CA6BO,cA7BP,CAAA,EAAA,KAAA,CAAA,GA6BO,KAAA,CAAA,aA7BP,CA6BO,cA7BP,CAAA,CAAA;cA4Cd,kBA5Cc,EA4CI,KAAA,CAAA,yBA5CJ,CA4CI,SAAA,CAAA,uBA5CJ,GA4CI,KAAA,CAAA,aA5CJ,CA4CI,iBA5CJ,CAAA,CAAA;cA8Cd,sBA9Cc,EA8CQ,KAAA,CAAA,yBA9CR,CA8CQ,IA9CR,CA8CQ,SAAA,CAAA,2BA9CR,GA8CQ,KAAA,CAAA,aA9CR,CA8CQ,cA9CR,CAAA,EAAA,KAAA,CAAA,GA8CQ,KAAA,CAAA,aA9CR,CA8CQ,cA9CR,CAAA,CAAA"}
@@ -1,17 +1,44 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as React from 'react';
4
- import * as Primitive from '@radix-ui/react-navigation-menu';
5
- import { cn } from '@fumadocs/ui/cn';
2
+
3
+ import { cn } from "@fumadocs/ui/cn";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import * as React from "react";
6
+ import * as Primitive from "@radix-ui/react-navigation-menu";
7
+
8
+ //#region src/components/ui/navigation-menu.tsx
6
9
  const NavigationMenu = Primitive.Root;
7
10
  const NavigationMenuList = Primitive.List;
8
- const NavigationMenuItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(Primitive.NavigationMenuItem, { ref: ref, className: cn('list-none', className), ...props, children: children })));
11
+ const NavigationMenuItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.NavigationMenuItem, {
12
+ ref,
13
+ className: cn("list-none", className),
14
+ ...props,
15
+ children
16
+ }));
9
17
  NavigationMenuItem.displayName = Primitive.NavigationMenuItem.displayName;
10
- const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(Primitive.Trigger, { ref: ref, className: cn('data-[state=open]:bg-fd-accent/50', className), ...props, children: children })));
18
+ const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Trigger, {
19
+ ref,
20
+ className: cn("data-[state=open]:bg-fd-accent/50", className),
21
+ ...props,
22
+ children
23
+ }));
11
24
  NavigationMenuTrigger.displayName = Primitive.Trigger.displayName;
12
- const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(Primitive.Content, { ref: ref, className: cn('absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft', className), ...props })));
25
+ const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Content, {
26
+ ref,
27
+ className: cn("absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft", className),
28
+ ...props
29
+ }));
13
30
  NavigationMenuContent.displayName = Primitive.Content.displayName;
14
31
  const NavigationMenuLink = Primitive.Link;
15
- const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: "flex w-full justify-center", children: _jsx(Primitive.Viewport, { ...props, className: cn('relative h-(--radix-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden transition-[width,height] duration-300 data-[state=closed]:animate-fd-nav-menu-out data-[state=open]:animate-fd-nav-menu-in', className) }) })));
32
+ const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
33
+ ref,
34
+ className: "flex w-full justify-center",
35
+ children: /* @__PURE__ */ jsx(Primitive.Viewport, {
36
+ ...props,
37
+ className: cn("relative h-(--radix-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden transition-[width,height] duration-300 data-[state=closed]:animate-fd-nav-menu-out data-[state=open]:animate-fd-nav-menu-in", className)
38
+ })
39
+ }));
16
40
  NavigationMenuViewport.displayName = Primitive.Viewport.displayName;
17
- export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuViewport, };
41
+
42
+ //#endregion
43
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport };
44
+ //# sourceMappingURL=navigation-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-menu.js","names":[],"sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\nimport * as Primitive from '@radix-ui/react-navigation-menu';\nimport { cn } from '@fumadocs/ui/cn';\n\nexport type NavigationMenuContentProps = Primitive.NavigationMenuContentProps;\nexport type NavigationMenuTriggerProps = Primitive.NavigationMenuTriggerProps;\n\nconst NavigationMenu = Primitive.Root;\n\nconst NavigationMenuList = Primitive.List;\n\nconst NavigationMenuItem = React.forwardRef<\n React.ComponentRef<typeof Primitive.NavigationMenuItem>,\n React.ComponentPropsWithoutRef<typeof Primitive.NavigationMenuItem>\n>(({ className, children, ...props }, ref) => (\n <Primitive.NavigationMenuItem ref={ref} className={cn('list-none', className)} {...props}>\n {children}\n </Primitive.NavigationMenuItem>\n));\n\nNavigationMenuItem.displayName = Primitive.NavigationMenuItem.displayName;\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ComponentRef<typeof Primitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof Primitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Trigger\n ref={ref}\n className={cn('data-[state=open]:bg-fd-accent/50', className)}\n {...props}\n >\n {children}\n </Primitive.Trigger>\n));\nNavigationMenuTrigger.displayName = Primitive.Trigger.displayName;\n\nconst NavigationMenuContent = React.forwardRef<\n React.ComponentRef<typeof Primitive.Content>,\n React.ComponentPropsWithoutRef<typeof Primitive.Content>\n>(({ className, ...props }, ref) => (\n <Primitive.Content\n ref={ref}\n className={cn(\n 'absolute inset-x-0 top-0 overflow-auto fd-scroll-container max-h-[80svh] data-[motion=from-end]:animate-fd-enterFromRight data-[motion=from-start]:animate-fd-enterFromLeft data-[motion=to-end]:animate-fd-exitToRight data-[motion=to-start]:animate-fd-exitToLeft',\n className,\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = Primitive.Content.displayName;\n\nconst NavigationMenuLink = Primitive.Link;\n\nconst NavigationMenuViewport = React.forwardRef<\n React.ComponentRef<typeof Primitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof Primitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className=\"flex w-full justify-center\">\n <Primitive.Viewport\n {...props}\n className={cn(\n 'relative h-(--radix-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden transition-[width,height] duration-300 data-[state=closed]:animate-fd-nav-menu-out data-[state=open]:animate-fd-nav-menu-in',\n className,\n )}\n />\n </div>\n));\nNavigationMenuViewport.displayName = Primitive.Viewport.displayName;\n\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuViewport,\n};\n"],"mappings":";;;;;;;;AAQA,MAAM,iBAAiB,UAAU;AAEjC,MAAM,qBAAqB,UAAU;AAErC,MAAM,qBAAqB,MAAM,YAG9B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAAC,UAAU;CAAwB;CAAK,WAAW,GAAG,aAAa,UAAU;CAAE,GAAI;CAChF;EAC4B,CAC/B;AAEF,mBAAmB,cAAc,UAAU,mBAAmB;AAE9D,MAAM,wBAAwB,MAAM,YAGjC,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAAC,UAAU;CACJ;CACL,WAAW,GAAG,qCAAqC,UAAU;CAC7D,GAAI;CAEH;EACiB,CACpB;AACF,sBAAsB,cAAc,UAAU,QAAQ;AAEtD,MAAM,wBAAwB,MAAM,YAGjC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,UAAU;CACJ;CACL,WAAW,GACT,wQACA,UACD;CACD,GAAI;EACJ,CACF;AACF,sBAAsB,cAAc,UAAU,QAAQ;AAEtD,MAAM,qBAAqB,UAAU;AAErC,MAAM,yBAAyB,MAAM,YAGlC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC;CAAS;CAAK,WAAU;WACvB,oBAAC,UAAU;EACT,GAAI;EACJ,WAAW,GACT,+NACA,UACD;GACD;EACE,CACN;AACF,uBAAuB,cAAc,UAAU,SAAS"}
@@ -1,8 +1,11 @@
1
- import * as PopoverPrimitive from '@radix-ui/react-popover';
2
- import * as React from 'react';
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+
4
+ //#region src/components/ui/popover.d.ts
3
5
  declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
6
  declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
7
  declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
8
  declare const PopoverClose: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- export { Popover, PopoverTrigger, PopoverContent, PopoverClose };
9
+ //#endregion
10
+ export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
8
11
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAiBlB,CAAC;AAGH,QAAA,MAAM,YAAY,8GAAgC,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","names":[],"sources":["../../../src/components/ui/popover.tsx"],"sourcesContent":[],"mappings":";;;;cAKM,SAAO,KAAA,CAAA,GAAA,gBAAA,CAAA;cAEP,gBAAc,KAAA,CAAA,0BAAA,gBAAA,CAAA,sBAAA,KAAA,CAAA,cAAA;AALW,cAOzB,cAJO,EAIO,KAAA,CAAA,yBAJP,CAIO,IAJP,CAIO,gBAAA,CAAA,mBAJP,GAIO,KAAA,CAAA,aAJP,CAIO,cAJP,CAAA,EAAA,KAAA,CAAA,GAIO,KAAA,CAAA,aAJP,CAIO,cAJP,CAAA,CAAA;AAAA,cAwBP,YAtByC,EAsB7B,KAAA,CAAA,yBAtB6B,CAsB7B,gBAAA,CAAA,iBAtB6B,GAsB7B,KAAA,CAAA,aAtB6B,CAsB7B,iBAtB6B,CAAA,CAAA"}
@@ -1,11 +1,24 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as PopoverPrimitive from '@radix-ui/react-popover';
4
- import * as React from 'react';
5
- import { cn } from '@fumadocs/ui/cn';
2
+
3
+ import { cn } from "@fumadocs/ui/cn";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import * as React from "react";
6
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
7
+
8
+ //#region src/components/ui/popover.tsx
6
9
  const Popover = PopoverPrimitive.Root;
7
10
  const PopoverTrigger = PopoverPrimitive.Trigger;
8
- const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { ref: ref, align: align, sideOffset: sideOffset, side: "bottom", className: cn('z-50 origin-(--radix-popover-content-transform-origin) overflow-y-auto max-h-(--radix-popover-content-available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in', className), ...props }) })));
11
+ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
12
+ ref,
13
+ align,
14
+ sideOffset,
15
+ side: "bottom",
16
+ className: cn("z-50 origin-(--radix-popover-content-transform-origin) overflow-y-auto max-h-(--radix-popover-content-available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in", className),
17
+ ...props
18
+ }) }));
9
19
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
10
20
  const PopoverClose = PopoverPrimitive.PopoverClose;
11
- export { Popover, PopoverTrigger, PopoverContent, PopoverClose };
21
+
22
+ //#endregion
23
+ export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
24
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","names":[],"sources":["../../../src/components/ui/popover.tsx"],"sourcesContent":["'use client';\nimport * as PopoverPrimitive from '@radix-ui/react-popover';\nimport * as React from 'react';\nimport { cn } from '@fumadocs/ui/cn';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ComponentRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n side=\"bottom\"\n className={cn(\n 'z-50 origin-(--radix-popover-content-transform-origin) overflow-y-auto max-h-(--radix-popover-content-available-height) min-w-[240px] max-w-[98vw] rounded-xl border bg-fd-popover/60 backdrop-blur-lg p-2 text-sm text-fd-popover-foreground shadow-lg focus-visible:outline-none data-[state=closed]:animate-fd-popover-out data-[state=open]:animate-fd-popover-in',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nconst PopoverClose = PopoverPrimitive.PopoverClose;\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverClose };\n"],"mappings":";;;;;;;;AAKA,MAAM,UAAU,iBAAiB;AAEjC,MAAM,iBAAiB,iBAAiB;AAExC,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAAC,iBAAiB,oBAChB,oBAAC,iBAAiB;CACX;CACE;CACK;CACZ,MAAK;CACL,WAAW,GACT,yWACA,UACD;CACD,GAAI;EACJ,GACsB,CAC1B;AACF,eAAe,cAAc,iBAAiB,QAAQ;AAEtD,MAAM,eAAe,iBAAiB"}
@@ -1,8 +1,11 @@
1
- import * as Primitive from '@radix-ui/react-scroll-area';
2
- import * as React from 'react';
1
+ import * as React from "react";
2
+ import * as Primitive from "@radix-ui/react-scroll-area";
3
+
4
+ //#region src/components/ui/scroll-area.d.ts
3
5
  declare const ScrollArea: React.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
6
  declare const ScrollViewport: React.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
7
  declare const ScrollBar: React.ForwardRefExoticComponent<Omit<Primitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- export { ScrollArea, ScrollBar, ScrollViewport };
7
- export type ScrollAreaProps = Primitive.ScrollAreaProps;
8
+ type ScrollAreaProps = Primitive.ScrollAreaProps;
9
+ //#endregion
10
+ export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollViewport };
8
11
  //# sourceMappingURL=scroll-area.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../../src/components/ui/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,UAAU,qJAcd,CAAC;AAIH,QAAA,MAAM,cAAc,6JAWlB,CAAC;AAIH,QAAA,MAAM,SAAS,8JAiBb,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC"}
1
+ {"version":3,"file":"scroll-area.d.ts","names":[],"sources":["../../../src/components/ui/scroll-area.tsx"],"sourcesContent":[],"mappings":";;;;cAIM,YAAU,KAAA,CAAA,0BAAA,KAAA,SAAA,CAAA,kBAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA;cAaV,gBAAc,KAAA,CAAA,0BAAA,KAAA,SAAA,CAAA,0BAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA;AAhBW,cA2BzB,SAfJ,EAea,KAAA,CAAA,yBAfb,CAea,IAfb,CAea,SAAA,CAAA,wBAfb,GAea,KAAA,CAAA,aAfb,CAea,cAfb,CAAA,EAAA,KAAA,CAAA,GAea,KAAA,CAAA,aAfb,CAea,cAfb,CAAA,CAAA;AATc,KA6CJ,eAAA,GAAkB,SAAA,CAAU,eA7CxB"}
@@ -1,11 +1,37 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as Primitive from '@radix-ui/react-scroll-area';
3
- import * as React from 'react';
4
- import { cn } from '@fumadocs/ui/cn';
5
- const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(Primitive.Root, { ref: ref, type: "scroll", className: cn('overflow-hidden', className), ...props, children: [children, _jsx(Primitive.Corner, {}), _jsx(ScrollBar, { orientation: "vertical" })] })));
1
+ import { cn } from "@fumadocs/ui/cn";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import * as Primitive from "@radix-ui/react-scroll-area";
5
+
6
+ //#region src/components/ui/scroll-area.tsx
7
+ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(Primitive.Root, {
8
+ ref,
9
+ type: "scroll",
10
+ className: cn("overflow-hidden", className),
11
+ ...props,
12
+ children: [
13
+ children,
14
+ /* @__PURE__ */ jsx(Primitive.Corner, {}),
15
+ /* @__PURE__ */ jsx(ScrollBar, { orientation: "vertical" })
16
+ ]
17
+ }));
6
18
  ScrollArea.displayName = Primitive.Root.displayName;
7
- const ScrollViewport = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(Primitive.Viewport, { ref: ref, className: cn('size-full rounded-[inherit]', className), ...props, children: children })));
19
+ const ScrollViewport = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Viewport, {
20
+ ref,
21
+ className: cn("size-full rounded-[inherit]", className),
22
+ ...props,
23
+ children
24
+ }));
8
25
  ScrollViewport.displayName = Primitive.Viewport.displayName;
9
- const ScrollBar = React.forwardRef(({ className, orientation = 'vertical', ...props }, ref) => (_jsx(Primitive.Scrollbar, { ref: ref, orientation: orientation, className: cn('flex select-none data-[state=hidden]:animate-fd-fade-out', orientation === 'vertical' && 'h-full w-1.5', orientation === 'horizontal' && 'h-1.5 flex-col', className), ...props, children: _jsx(Primitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-fd-border" }) })));
26
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(Primitive.Scrollbar, {
27
+ ref,
28
+ orientation,
29
+ className: cn("flex select-none data-[state=hidden]:animate-fd-fade-out", orientation === "vertical" && "h-full w-1.5", orientation === "horizontal" && "h-1.5 flex-col", className),
30
+ ...props,
31
+ children: /* @__PURE__ */ jsx(Primitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-fd-border" })
32
+ }));
10
33
  ScrollBar.displayName = Primitive.Scrollbar.displayName;
34
+
35
+ //#endregion
11
36
  export { ScrollArea, ScrollBar, ScrollViewport };
37
+ //# sourceMappingURL=scroll-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.js","names":[],"sources":["../../../src/components/ui/scroll-area.tsx"],"sourcesContent":["import * as Primitive from '@radix-ui/react-scroll-area';\nimport * as React from 'react';\nimport { cn } from '@fumadocs/ui/cn';\n\nconst ScrollArea = React.forwardRef<\n React.ComponentRef<typeof Primitive.Root>,\n React.ComponentPropsWithoutRef<typeof Primitive.Root>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Root ref={ref} type=\"scroll\" className={cn('overflow-hidden', className)} {...props}>\n {children}\n <Primitive.Corner />\n <ScrollBar orientation=\"vertical\" />\n </Primitive.Root>\n));\n\nScrollArea.displayName = Primitive.Root.displayName;\n\nconst ScrollViewport = React.forwardRef<\n React.ComponentRef<typeof Primitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof Primitive.Viewport>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Viewport ref={ref} className={cn('size-full rounded-[inherit]', className)} {...props}>\n {children}\n </Primitive.Viewport>\n));\n\nScrollViewport.displayName = Primitive.Viewport.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ComponentRef<typeof Primitive.Scrollbar>,\n React.ComponentPropsWithoutRef<typeof Primitive.Scrollbar>\n>(({ className, orientation = 'vertical', ...props }, ref) => (\n <Primitive.Scrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n 'flex select-none data-[state=hidden]:animate-fd-fade-out',\n orientation === 'vertical' && 'h-full w-1.5',\n orientation === 'horizontal' && 'h-1.5 flex-col',\n className,\n )}\n {...props}\n >\n <Primitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-fd-border\" />\n </Primitive.Scrollbar>\n));\nScrollBar.displayName = Primitive.Scrollbar.displayName;\n\nexport { ScrollArea, ScrollBar, ScrollViewport };\nexport type ScrollAreaProps = Primitive.ScrollAreaProps;\n"],"mappings":";;;;;;AAIA,MAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAAC,UAAU;CAAU;CAAK,MAAK;CAAS,WAAW,GAAG,mBAAmB,UAAU;CAAE,GAAI;;EACtF;EACD,oBAAC,UAAU,WAAS;EACpB,oBAAC,aAAU,aAAY,aAAa;;EACrB,CACjB;AAEF,WAAW,cAAc,UAAU,KAAK;AAExC,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAAC,UAAU;CAAc;CAAK,WAAW,GAAG,+BAA+B,UAAU;CAAE,GAAI;CACxF;EACkB,CACrB;AAEF,eAAe,cAAc,UAAU,SAAS;AAEhD,MAAM,YAAY,MAAM,YAGrB,EAAE,WAAW,cAAc,YAAY,GAAG,SAAS,QACpD,oBAAC,UAAU;CACJ;CACQ;CACb,WAAW,GACT,4DACA,gBAAgB,cAAc,gBAC9B,gBAAgB,gBAAgB,kBAChC,UACD;CACD,GAAI;WAEJ,oBAAC,UAAU,mBAAgB,WAAU,8CAA8C;EAC/D,CACtB;AACF,UAAU,cAAc,UAAU,UAAU"}
@@ -1,21 +1,39 @@
1
- import { type ComponentProps } from 'react';
2
- import * as Primitive from '@radix-ui/react-tabs';
3
- export interface TabsProps extends ComponentProps<typeof Primitive.Tabs> {
4
- /**
5
- * Identifier for Sharing value of tabs
6
- */
7
- groupId?: string;
8
- /**
9
- * Enable persistent
10
- */
11
- persist?: boolean;
12
- /**
13
- * If true, updates the URL hash based on the tab's id
14
- */
15
- updateAnchor?: boolean;
1
+ import * as react_jsx_runtime42 from "react/jsx-runtime";
2
+ import * as react7 from "react";
3
+ import { ComponentProps } from "react";
4
+ import * as Primitive from "@radix-ui/react-tabs";
5
+
6
+ //#region src/components/ui/tabs.d.ts
7
+ interface TabsProps extends ComponentProps<typeof Primitive.Tabs> {
8
+ /**
9
+ * Identifier for Sharing value of tabs
10
+ */
11
+ groupId?: string;
12
+ /**
13
+ * Enable persistent
14
+ */
15
+ persist?: boolean;
16
+ /**
17
+ * If true, updates the URL hash based on the tab's id
18
+ */
19
+ updateAnchor?: boolean;
16
20
  }
17
- export declare const TabsList: import("react").ForwardRefExoticComponent<Primitive.TabsListProps & import("react").RefAttributes<HTMLDivElement>>;
18
- export declare const TabsTrigger: import("react").ForwardRefExoticComponent<Primitive.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
19
- export declare function Tabs({ ref, groupId, persist, updateAnchor, defaultValue, value: _value, onValueChange: _onValueChange, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
20
- export declare function TabsContent({ value, ...props }: ComponentProps<typeof Primitive.TabsContent>): import("react/jsx-runtime").JSX.Element;
21
+ declare const TabsList: react7.ForwardRefExoticComponent<Primitive.TabsListProps & react7.RefAttributes<HTMLDivElement>>;
22
+ declare const TabsTrigger: react7.ForwardRefExoticComponent<Primitive.TabsTriggerProps & react7.RefAttributes<HTMLButtonElement>>;
23
+ declare function Tabs({
24
+ ref,
25
+ groupId,
26
+ persist,
27
+ updateAnchor,
28
+ defaultValue,
29
+ value: _value,
30
+ onValueChange: _onValueChange,
31
+ ...props
32
+ }: TabsProps): react_jsx_runtime42.JSX.Element;
33
+ declare function TabsContent({
34
+ value,
35
+ ...props
36
+ }: ComponentProps<typeof Primitive.TabsContent>): react_jsx_runtime42.JSX.Element;
37
+ //#endregion
38
+ export { Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
21
39
  //# sourceMappingURL=tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAQpB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAMlD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC;IACtE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAYD,eAAO,MAAM,QAAQ,oHAAqB,CAAC;AAE3C,eAAO,MAAM,WAAW,0HAAwB,CAAC;AAEjD,wBAAgB,IAAI,CAAC,EACnB,GAAG,EACH,OAAO,EACP,OAAe,EACf,YAAoB,EACpB,YAAY,EACZ,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,cAAc,EAC7B,GAAG,KAAK,EACT,EAAE,SAAS,2CAqEX;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,WAAW,CAAC,2CAY9C"}
1
+ {"version":3,"file":"tabs.d.ts","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":[],"mappings":";;;;;;UAkBiB,SAAA,SAAkB,sBAAsB,SAAA,CAAU;;;;EAAlD,OAAA,CAAA,EAAA,MAAU;EA2Bd;;;EAAQ,OAAA,CAAA,EAAA,OAAA;EAAA;;AAErB;EAAwB,YAAA,CAAA,EAAA,OAAA;;AAAA,cAFX,QAEW,EAFH,MAAA,CAAA,yBAEG,CAFH,SAAA,CAAA,aAEG,GAFH,MAAA,CAAA,aAEG,CAFH,cAEG,CAAA,CAAA;AAAA,cAAX,WAAW,EAAA,MAAA,CAAA,yBAAA,CAAA,SAAA,CAAA,gBAAA,GAAA,MAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,CAAA;AAAA,iBAER,IAAA,CAFQ;EAAA,GAAA;EAAA,OAAA;EAAA,OAAA;EAAA,YAAA;EAAA,YAAA;EAAA,KAAA,EAQf,MARe;EAAA,aAAA,EASP,cATO;EAAA,GAAA;AAAA,CAAA,EAWrB,SAXqB,CAAA,EAWZ,mBAAA,CAAA,GAAA,CAAA,OAXY;AAER,iBAgFA,WAAA,CAhFI;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EAgF6B,cAhF7B,CAAA,OAgFmD,SAAA,CAAU,WAhF7D,CAAA,CAAA,EAgFyE,mBAAA,CAAA,GAAA,CAAA,OAhFzE"}