@fumadocs/base-ui 16.4.1 → 16.4.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 (265) hide show
  1. package/dist/_virtual/rolldown_runtime.js +36 -0
  2. package/dist/components/accordion.d.ts +23 -7
  3. package/dist/components/accordion.d.ts.map +1 -1
  4. package/dist/components/accordion.js +66 -36
  5. package/dist/components/accordion.js.map +1 -0
  6. package/dist/components/banner.d.ts +33 -22
  7. package/dist/components/banner.d.ts.map +1 -1
  8. package/dist/components/banner.js +63 -47
  9. package/dist/components/banner.js.map +1 -0
  10. package/dist/components/callout.d.ts +41 -17
  11. package/dist/components/callout.d.ts.map +1 -1
  12. package/dist/components/callout.js +57 -28
  13. package/dist/components/callout.js.map +1 -0
  14. package/dist/components/card.d.ts +19 -9
  15. package/dist/components/card.d.ts.map +1 -1
  16. package/dist/components/card.js +39 -8
  17. package/dist/components/card.js.map +1 -0
  18. package/dist/components/codeblock.d.ts +66 -40
  19. package/dist/components/codeblock.d.ts.map +1 -1
  20. package/dist/components/codeblock.js +116 -58
  21. package/dist/components/codeblock.js.map +1 -0
  22. package/dist/components/dialog/search-algolia.d.ts +37 -23
  23. package/dist/components/dialog/search-algolia.d.ts.map +1 -1
  24. package/dist/components/dialog/search-algolia.js +64 -31
  25. package/dist/components/dialog/search-algolia.js.map +1 -0
  26. package/dist/components/dialog/search-default.d.ts +42 -27
  27. package/dist/components/dialog/search-default.d.ts.map +1 -1
  28. package/dist/components/dialog/search-default.js +64 -38
  29. package/dist/components/dialog/search-default.js.map +1 -0
  30. package/dist/components/dialog/search-orama.d.ts +41 -25
  31. package/dist/components/dialog/search-orama.d.ts.map +1 -1
  32. package/dist/components/dialog/search-orama.js +68 -35
  33. package/dist/components/dialog/search-orama.js.map +1 -0
  34. package/dist/components/dialog/search.d.ts +107 -64
  35. package/dist/components/dialog/search.d.ts.map +1 -1
  36. package/dist/components/dialog/search.js +264 -185
  37. package/dist/components/dialog/search.js.map +1 -0
  38. package/dist/components/dynamic-codeblock.d.ts +30 -19
  39. package/dist/components/dynamic-codeblock.d.ts.map +1 -1
  40. package/dist/components/dynamic-codeblock.js +60 -27
  41. package/dist/components/dynamic-codeblock.js.map +1 -0
  42. package/dist/components/files.d.ts +32 -16
  43. package/dist/components/files.d.ts.map +1 -1
  44. package/dist/components/files.js +40 -14
  45. package/dist/components/files.js.map +1 -0
  46. package/dist/components/github-info.d.ts +18 -7
  47. package/dist/components/github-info.d.ts.map +1 -1
  48. package/dist/components/github-info.js +63 -48
  49. package/dist/components/github-info.js.map +1 -0
  50. package/dist/components/heading.d.ts +11 -4
  51. package/dist/components/heading.d.ts.map +1 -1
  52. package/dist/components/heading.js +28 -8
  53. package/dist/components/heading.js.map +1 -0
  54. package/dist/components/image-zoom-CtfZieBH.css +80 -0
  55. package/dist/components/image-zoom-CtfZieBH.css.map +1 -0
  56. package/dist/components/image-zoom.d.ts +23 -14
  57. package/dist/components/image-zoom.d.ts.map +1 -1
  58. package/dist/components/image-zoom.js +32 -19
  59. package/dist/components/image-zoom.js.map +1 -0
  60. package/dist/components/image-zoom2.js +1 -0
  61. package/dist/components/inline-toc.d.ts +15 -6
  62. package/dist/components/inline-toc.d.ts.map +1 -1
  63. package/dist/components/inline-toc.js +28 -8
  64. package/dist/components/inline-toc.js.map +1 -0
  65. package/dist/components/sidebar/base.d.ts +103 -65
  66. package/dist/components/sidebar/base.d.ts.map +1 -1
  67. package/dist/components/sidebar/base.js +278 -191
  68. package/dist/components/sidebar/base.js.map +1 -0
  69. package/dist/components/sidebar/link-item.d.ts +23 -10
  70. package/dist/components/sidebar/link-item.d.ts.map +1 -1
  71. package/dist/components/sidebar/link-item.js +32 -12
  72. package/dist/components/sidebar/link-item.js.map +1 -0
  73. package/dist/components/sidebar/page-tree.d.ts +28 -17
  74. package/dist/components/sidebar/page-tree.d.ts.map +1 -1
  75. package/dist/components/sidebar/page-tree.js +57 -33
  76. package/dist/components/sidebar/page-tree.js.map +1 -0
  77. package/dist/components/sidebar/tabs/dropdown.d.ts +18 -9
  78. package/dist/components/sidebar/tabs/dropdown.d.ts.map +1 -1
  79. package/dist/components/sidebar/tabs/dropdown.js +75 -31
  80. package/dist/components/sidebar/tabs/dropdown.js.map +1 -0
  81. package/dist/components/sidebar/tabs/index.d.ts +24 -18
  82. package/dist/components/sidebar/tabs/index.d.ts.map +1 -1
  83. package/dist/components/sidebar/tabs/index.js +45 -45
  84. package/dist/components/sidebar/tabs/index.js.map +1 -0
  85. package/dist/components/steps.d.ts +16 -7
  86. package/dist/components/steps.d.ts.map +1 -1
  87. package/dist/components/steps.js +17 -5
  88. package/dist/components/steps.js.map +1 -0
  89. package/dist/components/tabs.d.ts +49 -28
  90. package/dist/components/tabs.d.ts.map +1 -1
  91. package/dist/components/tabs.js +88 -51
  92. package/dist/components/tabs.js.map +1 -0
  93. package/dist/components/toc/clerk.d.ts +1 -2
  94. package/dist/components/toc/clerk.js +12 -1
  95. package/dist/components/toc/clerk.js.map +1 -0
  96. package/dist/components/toc/default.d.ts +1 -2
  97. package/dist/components/toc/default.js +12 -1
  98. package/dist/components/toc/default.js.map +1 -0
  99. package/dist/components/toc/index.d.ts +1 -2
  100. package/dist/components/toc/index.js +12 -1
  101. package/dist/components/toc/index.js.map +1 -0
  102. package/dist/components/type-table.d.ts +36 -29
  103. package/dist/components/type-table.d.ts.map +1 -1
  104. package/dist/components/type-table.js +106 -25
  105. package/dist/components/type-table.js.map +1 -0
  106. package/dist/components/ui/accordion.d.ts +30 -7
  107. package/dist/components/ui/accordion.d.ts.map +1 -1
  108. package/dist/components/ui/accordion.js +39 -14
  109. package/dist/components/ui/accordion.js.map +1 -0
  110. package/dist/components/ui/button.d.ts +12 -7
  111. package/dist/components/ui/button.d.ts.map +1 -1
  112. package/dist/components/ui/button.js +21 -18
  113. package/dist/components/ui/button.js.map +1 -0
  114. package/dist/components/ui/collapsible.d.ts +19 -8
  115. package/dist/components/ui/collapsible.d.ts.map +1 -1
  116. package/dist/components/ui/collapsible.js +18 -7
  117. package/dist/components/ui/collapsible.js.map +1 -0
  118. package/dist/components/ui/navigation-menu.d.ts +15 -11
  119. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  120. package/dist/components/ui/navigation-menu.js +33 -14
  121. package/dist/components/ui/navigation-menu.js.map +1 -0
  122. package/dist/components/ui/popover.d.ts +11 -7
  123. package/dist/components/ui/popover.d.ts.map +1 -1
  124. package/dist/components/ui/popover.js +26 -10
  125. package/dist/components/ui/popover.js.map +1 -0
  126. package/dist/components/ui/scroll-area.d.ts +11 -7
  127. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  128. package/dist/components/ui/scroll-area.js +35 -10
  129. package/dist/components/ui/scroll-area.js.map +1 -0
  130. package/dist/components/ui/tabs.d.ts +39 -20
  131. package/dist/components/ui/tabs.d.ts.map +1 -1
  132. package/dist/components/ui/tabs.js +75 -73
  133. package/dist/components/ui/tabs.js.map +1 -0
  134. package/dist/contexts/i18n.d.ts +1 -2
  135. package/dist/contexts/i18n.js +12 -1
  136. package/dist/contexts/i18n.js.map +1 -0
  137. package/dist/contexts/search.d.ts +7 -1
  138. package/dist/contexts/search.d.ts.map +1 -1
  139. package/dist/contexts/search.js +12 -1
  140. package/dist/contexts/search.js.map +1 -0
  141. package/dist/contexts/tree.d.ts +1 -2
  142. package/dist/contexts/tree.js +12 -1
  143. package/dist/contexts/tree.js.map +1 -0
  144. package/dist/i18n.d.ts +1 -2
  145. package/dist/i18n.js +3 -1
  146. package/dist/layouts/docs/client.d.ts +30 -13
  147. package/dist/layouts/docs/client.d.ts.map +1 -1
  148. package/dist/layouts/docs/client.js +61 -34
  149. package/dist/layouts/docs/client.js.map +1 -0
  150. package/dist/layouts/docs/index.d.ts +55 -32
  151. package/dist/layouts/docs/index.d.ts.map +1 -1
  152. package/dist/layouts/docs/index.js +177 -68
  153. package/dist/layouts/docs/index.js.map +1 -0
  154. package/dist/layouts/docs/page/client.d.ts +43 -21
  155. package/dist/layouts/docs/page/client.d.ts.map +1 -1
  156. package/dist/layouts/docs/page/client.js +213 -105
  157. package/dist/layouts/docs/page/client.js.map +1 -0
  158. package/dist/layouts/docs/page/index.d.ts +82 -46
  159. package/dist/layouts/docs/page/index.d.ts.map +1 -1
  160. package/dist/layouts/docs/page/index.js +98 -45
  161. package/dist/layouts/docs/page/index.js.map +1 -0
  162. package/dist/layouts/docs/sidebar.d.ts +62 -20
  163. package/dist/layouts/docs/sidebar.d.ts.map +1 -1
  164. package/dist/layouts/docs/sidebar.js +145 -91
  165. package/dist/layouts/docs/sidebar.js.map +1 -0
  166. package/dist/layouts/home/client.d.ts +18 -5
  167. package/dist/layouts/home/client.d.ts.map +1 -1
  168. package/dist/layouts/home/client.js +273 -126
  169. package/dist/layouts/home/client.js.map +1 -0
  170. package/dist/layouts/home/index.d.ts +10 -5
  171. package/dist/layouts/home/index.d.ts.map +1 -1
  172. package/dist/layouts/home/index.js +24 -7
  173. package/dist/layouts/home/index.js.map +1 -0
  174. package/dist/layouts/home/navbar.d.ts +19 -6
  175. package/dist/layouts/home/navbar.d.ts.map +1 -1
  176. package/dist/layouts/home/navbar.js +31 -12
  177. package/dist/layouts/home/navbar.js.map +1 -0
  178. package/dist/layouts/notebook/client.d.ts +44 -20
  179. package/dist/layouts/notebook/client.d.ts.map +1 -1
  180. package/dist/layouts/notebook/client.js +148 -93
  181. package/dist/layouts/notebook/client.js.map +1 -0
  182. package/dist/layouts/notebook/index.d.ts +34 -30
  183. package/dist/layouts/notebook/index.d.ts.map +1 -1
  184. package/dist/layouts/notebook/index.js +216 -90
  185. package/dist/layouts/notebook/index.js.map +1 -0
  186. package/dist/layouts/notebook/page/client.d.ts +43 -21
  187. package/dist/layouts/notebook/page/client.d.ts.map +1 -1
  188. package/dist/layouts/notebook/page/client.js +213 -105
  189. package/dist/layouts/notebook/page/client.js.map +1 -0
  190. package/dist/layouts/notebook/page/index.d.ts +82 -46
  191. package/dist/layouts/notebook/page/index.d.ts.map +1 -1
  192. package/dist/layouts/notebook/page/index.js +98 -45
  193. package/dist/layouts/notebook/page/index.js.map +1 -0
  194. package/dist/layouts/notebook/sidebar.d.ts +58 -16
  195. package/dist/layouts/notebook/sidebar.d.ts.map +1 -1
  196. package/dist/layouts/notebook/sidebar.js +121 -79
  197. package/dist/layouts/notebook/sidebar.js.map +1 -0
  198. package/dist/layouts/shared/index.d.ts +62 -50
  199. package/dist/layouts/shared/index.d.ts.map +1 -1
  200. package/dist/layouts/shared/index.js +36 -20
  201. package/dist/layouts/shared/index.js.map +1 -0
  202. package/dist/layouts/shared/language-toggle.d.ts +9 -4
  203. package/dist/layouts/shared/language-toggle.d.ts.map +1 -1
  204. package/dist/layouts/shared/language-toggle.js +44 -21
  205. package/dist/layouts/shared/language-toggle.js.map +1 -0
  206. package/dist/layouts/shared/search-toggle.d.ts +20 -8
  207. package/dist/layouts/shared/search-toggle.d.ts.map +1 -1
  208. package/dist/layouts/shared/search-toggle.js +53 -24
  209. package/dist/layouts/shared/search-toggle.js.map +1 -0
  210. package/dist/layouts/shared/theme-toggle.d.ts +13 -4
  211. package/dist/layouts/shared/theme-toggle.d.ts.map +1 -1
  212. package/dist/layouts/shared/theme-toggle.js +58 -34
  213. package/dist/layouts/shared/theme-toggle.js.map +1 -0
  214. package/dist/mdx.d.ts +34 -29
  215. package/dist/mdx.d.ts.map +1 -1
  216. package/dist/mdx.js +68 -34
  217. package/dist/mdx.js.map +1 -0
  218. package/dist/mdx.server.d.ts +9 -5
  219. package/dist/mdx.server.d.ts.map +1 -1
  220. package/dist/mdx.server.js +21 -13
  221. package/dist/mdx.server.js.map +1 -0
  222. package/dist/og.d.ts +1 -2
  223. package/dist/og.js +3 -1
  224. package/dist/page.d.ts +30 -20
  225. package/dist/page.d.ts.map +1 -1
  226. package/dist/page.js +34 -18
  227. package/dist/page.js.map +1 -0
  228. package/dist/provider/base.d.ts +44 -34
  229. package/dist/provider/base.d.ts.map +1 -1
  230. package/dist/provider/base.js +37 -17
  231. package/dist/provider/base.js.map +1 -0
  232. package/dist/provider/next.d.ts +20 -12
  233. package/dist/provider/next.d.ts.map +1 -1
  234. package/dist/provider/next.js +19 -5
  235. package/dist/provider/next.js.map +1 -0
  236. package/dist/provider/react-router.d.ts +20 -12
  237. package/dist/provider/react-router.d.ts.map +1 -1
  238. package/dist/provider/react-router.js +19 -5
  239. package/dist/provider/react-router.js.map +1 -0
  240. package/dist/provider/tanstack.d.ts +20 -12
  241. package/dist/provider/tanstack.d.ts.map +1 -1
  242. package/dist/provider/tanstack.js +19 -5
  243. package/dist/provider/tanstack.js.map +1 -0
  244. package/dist/provider/waku.d.ts +20 -12
  245. package/dist/provider/waku.d.ts.map +1 -1
  246. package/dist/provider/waku.js +19 -5
  247. package/dist/provider/waku.js.map +1 -0
  248. package/dist/style.css +15 -9
  249. package/dist/utils/use-copy-button.d.ts +1 -2
  250. package/dist/utils/use-copy-button.js +3 -1
  251. package/dist/utils/use-footer-items.d.ts +1 -2
  252. package/dist/utils/use-footer-items.js +3 -1
  253. package/dist/utils/use-is-scroll-top.d.ts +1 -2
  254. package/dist/utils/use-is-scroll-top.js +3 -1
  255. package/package.json +47 -48
  256. package/dist/components/toc/clerk.d.ts.map +0 -1
  257. package/dist/components/toc/default.d.ts.map +0 -1
  258. package/dist/components/toc/index.d.ts.map +0 -1
  259. package/dist/contexts/i18n.d.ts.map +0 -1
  260. package/dist/contexts/tree.d.ts.map +0 -1
  261. package/dist/i18n.d.ts.map +0 -1
  262. package/dist/og.d.ts.map +0 -1
  263. package/dist/utils/use-copy-button.d.ts.map +0 -1
  264. package/dist/utils/use-footer-items.d.ts.map +0 -1
  265. package/dist/utils/use-is-scroll-top.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,2CAYvC;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,2CAEvC;AAED,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,2CAczC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,OAAO,CAAC,2CAe1C;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,2CAcxC"}
1
+ {"version":3,"file":"accordion.d.ts","names":[],"sources":["../../../src/components/ui/accordion.tsx"],"sourcesContent":[],"mappings":";;;;;iBAOgB,SAAA;;;GAAmC,sBAAsB,WAAA,CAAU,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAcxE,aAAA;;;GAAsC,sBAAsB,WAAA,CAAU,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAI3E,eAAA;;;;GAIb,sBAAsB,WAAA,CAAU,UAAO,mBAAA,CAAA,GAAA,CAAA;AAtB1B,iBAsCA,gBAAA,CAtCS;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA0CtB,cA1CsB,CAAA,OA0CA,WAAA,CAAU,OA1CV,CAAA,CAAA,EA0CkB,mBAAA,CAAA,GAAA,CAAA,OA1ClB;AAAG,iBA2DZ,gBAAA,CA3DY;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA+DzB,cA/DyB,CAAA,OA+DH,WAAA,CAAU,KA/DP,CAAA,CAAA,EA+Da,mBAAA,CAAA,GAAA,CAAA,OA/Db"}
@@ -1,20 +1,45 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Accordion as Primitive } from '@base-ui/react/accordion';
4
- import { ChevronRight } from '@fumadocs/ui/icons';
5
- import { cn } from '@fumadocs/ui/cn';
6
- export function Accordion({ className, ...props }) {
7
- return (_jsx(Primitive.Root, { className: (s) => cn('divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card', typeof className === 'function' ? className(s) : className), ...props }));
2
+
3
+ import { cn } from "@fumadocs/ui/cn";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { ChevronRight } from "lucide-react";
6
+ import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
7
+
8
+ //#region src/components/ui/accordion.tsx
9
+ function Accordion({ className, ...props }) {
10
+ return /* @__PURE__ */ jsx(Accordion$1.Root, {
11
+ className: (s) => cn("divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card", typeof className === "function" ? className(s) : className),
12
+ ...props
13
+ });
8
14
  }
9
- export function AccordionItem({ children, ...props }) {
10
- return _jsx(Primitive.Item, { ...props, children: children });
15
+ function AccordionItem({ children, ...props }) {
16
+ return /* @__PURE__ */ jsx(Accordion$1.Item, {
17
+ ...props,
18
+ children
19
+ });
11
20
  }
12
- export function AccordionHeader({ className, children, ...props }) {
13
- return (_jsx(Primitive.Header, { className: (s) => cn('scroll-m-24 not-prose flex flex-row items-center text-fd-card-foreground font-medium has-focus-visible:bg-fd-accent', typeof className === 'function' ? className(s) : className), ...props, children: children }));
21
+ function AccordionHeader({ className, children, ...props }) {
22
+ return /* @__PURE__ */ jsx(Accordion$1.Header, {
23
+ className: (s) => cn("scroll-m-24 not-prose flex flex-row items-center text-fd-card-foreground font-medium has-focus-visible:bg-fd-accent", typeof className === "function" ? className(s) : className),
24
+ ...props,
25
+ children
26
+ });
14
27
  }
15
- export function AccordionTrigger({ className, children, ...props }) {
16
- return (_jsxs(Primitive.Trigger, { className: (s) => cn('group flex flex-1 items-center gap-2 px-3 py-2.5 text-start focus-visible:outline-none', typeof className === 'function' ? className(s) : className), ...props, children: [_jsx(ChevronRight, { className: "size-4 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-data-[panel-open]:rotate-90" }), children] }));
28
+ function AccordionTrigger({ className, children, ...props }) {
29
+ return /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
30
+ className: (s) => cn("group flex flex-1 items-center gap-2 px-3 py-2.5 text-start focus-visible:outline-none", typeof className === "function" ? className(s) : className),
31
+ ...props,
32
+ children: [/* @__PURE__ */ jsx(ChevronRight, { className: "size-4 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-data-[panel-open]:rotate-90" }), children]
33
+ });
17
34
  }
18
- export function AccordionContent({ className, children, ...props }) {
19
- return (_jsx(Primitive.Panel, { className: (s) => cn('h-(--accordion-panel-height) overflow-hidden transition-[height] ease-out data-[ending-style]:h-0 data-[starting-style]:h-0', typeof className === 'function' ? className(s) : className), ...props, children: children }));
35
+ function AccordionContent({ className, children, ...props }) {
36
+ return /* @__PURE__ */ jsx(Accordion$1.Panel, {
37
+ className: (s) => cn("h-(--accordion-panel-height) overflow-hidden transition-[height] ease-out data-[ending-style]:h-0 data-[starting-style]:h-0", typeof className === "function" ? className(s) : className),
38
+ ...props,
39
+ children
40
+ });
20
41
  }
42
+
43
+ //#endregion
44
+ export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger };
45
+ //# sourceMappingURL=accordion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.js","names":["Primitive"],"sources":["../../../src/components/ui/accordion.tsx"],"sourcesContent":["'use client';\n\nimport { Accordion as Primitive } from '@base-ui/react/accordion';\nimport { ChevronRight } from 'lucide-react';\nimport { type ComponentProps } from 'react';\nimport { cn } from '@fumadocs/ui/cn';\n\nexport function Accordion({ className, ...props }: ComponentProps<typeof Primitive.Root>) {\n return (\n <Primitive.Root\n className={(s) =>\n cn(\n 'divide-y divide-fd-border overflow-hidden rounded-lg border bg-fd-card',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n />\n );\n}\n\nexport function AccordionItem({ children, ...props }: ComponentProps<typeof Primitive.Item>) {\n return <Primitive.Item {...props}>{children}</Primitive.Item>;\n}\n\nexport function AccordionHeader({\n className,\n children,\n ...props\n}: ComponentProps<typeof Primitive.Header>) {\n return (\n <Primitive.Header\n className={(s) =>\n cn(\n 'scroll-m-24 not-prose flex flex-row items-center text-fd-card-foreground font-medium has-focus-visible:bg-fd-accent',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n {children}\n </Primitive.Header>\n );\n}\n\nexport function AccordionTrigger({\n className,\n children,\n ...props\n}: ComponentProps<typeof Primitive.Trigger>) {\n return (\n <Primitive.Trigger\n className={(s) =>\n cn(\n 'group flex flex-1 items-center gap-2 px-3 py-2.5 text-start focus-visible:outline-none',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n <ChevronRight className=\"size-4 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-data-[panel-open]:rotate-90\" />\n {children}\n </Primitive.Trigger>\n );\n}\n\nexport function AccordionContent({\n className,\n children,\n ...props\n}: ComponentProps<typeof Primitive.Panel>) {\n return (\n <Primitive.Panel\n className={(s) =>\n cn(\n 'h-(--accordion-panel-height) overflow-hidden transition-[height] ease-out data-[ending-style]:h-0 data-[starting-style]:h-0',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n {children}\n </Primitive.Panel>\n );\n}\n"],"mappings":";;;;;;;;AAOA,SAAgB,UAAU,EAAE,WAAW,GAAG,SAAgD;AACxF,QACE,oBAACA,YAAU;EACT,YAAY,MACV,GACE,0EACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;GACJ;;AAIN,SAAgB,cAAc,EAAE,UAAU,GAAG,SAAgD;AAC3F,QAAO,oBAACA,YAAU;EAAK,GAAI;EAAQ;GAA0B;;AAG/D,SAAgB,gBAAgB,EAC9B,WACA,UACA,GAAG,SACuC;AAC1C,QACE,oBAACA,YAAU;EACT,YAAY,MACV,GACE,uHACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;EAEH;GACgB;;AAIvB,SAAgB,iBAAiB,EAC/B,WACA,UACA,GAAG,SACwC;AAC3C,QACE,qBAACA,YAAU;EACT,YAAY,MACV,GACE,0FACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;aAEJ,oBAAC,gBAAa,WAAU,iHAAiH,EACxI;GACiB;;AAIxB,SAAgB,iBAAiB,EAC/B,WACA,UACA,GAAG,SACsC;AACzC,QACE,oBAACA,YAAU;EACT,YAAY,MACV,GACE,+HACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;EAEH;GACe"}
@@ -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,20 @@
1
- import { Collapsible as Primitive } from '@base-ui/react/collapsible';
2
- import type { ComponentProps } from 'react';
3
- export declare const Collapsible: import("react").ForwardRefExoticComponent<import("@base-ui/react").CollapsibleRootProps & import("react").RefAttributes<HTMLDivElement>>;
4
- export declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<import("@base-ui/react").CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
- export declare function CollapsibleContent({ children, className, ...props }: ComponentProps<typeof Primitive.Panel>): import("react/jsx-runtime").JSX.Element;
6
- export type CollapsibleProps = Primitive.Root.Props;
7
- export type CollapsibleContentProps = Primitive.Panel.Props;
8
- export type CollapsibleTriggerProps = Primitive.Trigger.Props;
1
+ import * as react_jsx_runtime123 from "react/jsx-runtime";
2
+ import * as react16 from "react";
3
+ import { ComponentProps } from "react";
4
+ import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
5
+ import * as _base_ui_react16 from "@base-ui/react";
6
+
7
+ //#region src/components/ui/collapsible.d.ts
8
+ declare const Collapsible: react16.ForwardRefExoticComponent<_base_ui_react16.CollapsibleRootProps & react16.RefAttributes<HTMLDivElement>>;
9
+ declare const CollapsibleTrigger: react16.ForwardRefExoticComponent<_base_ui_react16.CollapsibleTriggerProps & react16.RefAttributes<HTMLButtonElement>>;
10
+ declare function CollapsibleContent({
11
+ children,
12
+ className,
13
+ ...props
14
+ }: ComponentProps<typeof Collapsible$1.Panel>): react_jsx_runtime123.JSX.Element;
15
+ type CollapsibleProps = Collapsible$1.Root.Props;
16
+ type CollapsibleContentProps = Collapsible$1.Panel.Props;
17
+ type CollapsibleTriggerProps = Collapsible$1.Trigger.Props;
18
+ //#endregion
19
+ export { Collapsible, CollapsibleContent, CollapsibleContentProps, CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerProps };
9
20
  //# 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,EAAE,WAAW,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,WAAW,0IAAiB,CAAC;AAE1C,eAAO,MAAM,kBAAkB,gJAAoB,CAAC;AAEpD,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,2CAcxC;AAED,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AACpD,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC;AAC5D,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC"}
1
+ {"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../../src/components/ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;;;;cAKa,aAAW,OAAA,CAAA,0BAAiB,gBAAA,CAAjB,oBAAA,GAAA,OAAA,CAAA,cAAA;cAEX,oBAAkB,OAAA,CAAA,0BAAoB,gBAAA,CAApB,uBAAA,GAAA,OAAA,CAAA,cAAA;iBAEf,kBAAA;;;;GAIb,sBAAsB,aAAA,CAAU,SAAM,oBAAA,CAAA,GAAA,CAAA;KAgB7B,gBAAA,GAAmB,aAAA,CAAU,IAAA,CAAK;KAClC,uBAAA,GAA0B,aAAA,CAAU,KAAA,CAAM;AAzBzC,KA0BD,uBAAA,GAA0B,aAAA,CAAU,OAAA,CAAQ,KA1Bf"}
@@ -1,9 +1,20 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Collapsible as Primitive } from '@base-ui/react/collapsible';
4
- import { cn } from '@fumadocs/ui/cn';
5
- export const Collapsible = Primitive.Root;
6
- export const CollapsibleTrigger = Primitive.Trigger;
7
- export function CollapsibleContent({ children, className, ...props }) {
8
- return (_jsx(Primitive.Panel, { ...props, className: (s) => cn("overflow-hidden [&[hidden]:not([hidden='until-found'])]:hidden h-(--collapsible-panel-height) transition-[height] data-[starting-style]:h-0 data-[ending-style]:h-0", typeof className === 'function' ? className(s) : className), children: children }));
2
+
3
+ import { cn } from "@fumadocs/ui/cn";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
6
+
7
+ //#region src/components/ui/collapsible.tsx
8
+ const Collapsible = Collapsible$1.Root;
9
+ const CollapsibleTrigger = Collapsible$1.Trigger;
10
+ function CollapsibleContent({ children, className, ...props }) {
11
+ return /* @__PURE__ */ jsx(Collapsible$1.Panel, {
12
+ ...props,
13
+ className: (s) => cn("overflow-hidden [&[hidden]:not([hidden='until-found'])]:hidden h-(--collapsible-panel-height) transition-[height] data-[starting-style]:h-0 data-[ending-style]:h-0", typeof className === "function" ? className(s) : className),
14
+ children
15
+ });
9
16
  }
17
+
18
+ //#endregion
19
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger };
20
+ //# sourceMappingURL=collapsible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.js","names":["Primitive"],"sources":["../../../src/components/ui/collapsible.tsx"],"sourcesContent":["'use client';\nimport { Collapsible as Primitive } from '@base-ui/react/collapsible';\nimport type { ComponentProps } from 'react';\nimport { cn } from '@fumadocs/ui/cn';\n\nexport const Collapsible = Primitive.Root;\n\nexport const CollapsibleTrigger = Primitive.Trigger;\n\nexport function CollapsibleContent({\n children,\n className,\n ...props\n}: ComponentProps<typeof Primitive.Panel>) {\n return (\n <Primitive.Panel\n {...props}\n className={(s) =>\n cn(\n \"overflow-hidden [&[hidden]:not([hidden='until-found'])]:hidden h-(--collapsible-panel-height) transition-[height] data-[starting-style]:h-0 data-[ending-style]:h-0\",\n typeof className === 'function' ? className(s) : className,\n )\n }\n >\n {children}\n </Primitive.Panel>\n );\n}\n\nexport type CollapsibleProps = Primitive.Root.Props;\nexport type CollapsibleContentProps = Primitive.Panel.Props;\nexport type CollapsibleTriggerProps = Primitive.Trigger.Props;\n"],"mappings":";;;;;;;AAKA,MAAa,cAAcA,cAAU;AAErC,MAAa,qBAAqBA,cAAU;AAE5C,SAAgB,mBAAmB,EACjC,UACA,WACA,GAAG,SACsC;AACzC,QACE,oBAACA,cAAU;EACT,GAAI;EACJ,YAAY,MACV,GACE,uKACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAGF;GACe"}
@@ -1,12 +1,16 @@
1
- import * as React from 'react';
2
- import { NavigationMenu as Primitive } from '@base-ui/react/navigation-menu';
3
- export type NavigationMenuContentProps = Primitive.Content.Props;
4
- export type NavigationMenuTriggerProps = Primitive.Trigger.Props;
5
- declare const NavigationMenuRoot: React.ForwardRefExoticComponent<import("@base-ui/react").NavigationMenuRootProps & React.RefAttributes<HTMLElement>>;
6
- declare const NavigationMenuList: React.ForwardRefExoticComponent<import("@base-ui/react").NavigationMenuListProps & React.RefAttributes<HTMLDivElement>>;
7
- declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").NavigationMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
- declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- declare const NavigationMenuLink: React.ForwardRefExoticComponent<import("@base-ui/react").NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
11
- export { NavigationMenuRoot, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, };
1
+ import * as React from "react";
2
+ import { NavigationMenu } from "@base-ui/react/navigation-menu";
3
+ import * as _base_ui_react4 from "@base-ui/react";
4
+
5
+ //#region src/components/ui/navigation-menu.d.ts
6
+ type NavigationMenuContentProps = NavigationMenu.Content.Props;
7
+ type NavigationMenuTriggerProps = NavigationMenu.Trigger.Props;
8
+ declare const NavigationMenuRoot: React.ForwardRefExoticComponent<_base_ui_react4.NavigationMenuRootProps & React.RefAttributes<HTMLElement>>;
9
+ declare const NavigationMenuList: React.ForwardRefExoticComponent<_base_ui_react4.NavigationMenuListProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<_base_ui_react4.NavigationMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<_base_ui_react4.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
+ declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<_base_ui_react4.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const NavigationMenuLink: React.ForwardRefExoticComponent<_base_ui_react4.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
14
+ //#endregion
15
+ export { NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger, NavigationMenuTriggerProps };
12
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,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAG7E,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;AACjE,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;AAEjE,QAAA,MAAM,kBAAkB,sHAAiB,CAAC;AAE1C,QAAA,MAAM,kBAAkB,yHAAiB,CAAC;AAE1C,QAAA,MAAM,kBAAkB,4KAgBtB,CAAC;AAIH,QAAA,MAAM,qBAAqB,qLAOzB,CAAC;AAGH,QAAA,MAAM,qBAAqB,+KAoBzB,CAAC;AAGH,QAAA,MAAM,kBAAkB,4HAAiB,CAAC;AAE1C,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,CAAC"}
1
+ {"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":[],"mappings":";;;;;KAKY,0BAAA,GAA6B,cAAA,CAAU,OAAA,CAAQ;KAC/C,0BAAA,GAA6B,cAAA,CAAU,OAAA,CAAQ;cAErD,oBAAkB,KAAA,CAAA,0BAAiB,eAAA,CAAjB,uBAAA,GAAA,KAAA,CAAA,cAAA;AAHxB,cAKM,kBALM,EAKY,KAAA,CAAA,yBAL2B,CAKV,eAAA,CAAjB,uBAAA,GAAA,KAAA,CAAA,aALwC,CAKxC,cALwC,CAAA,CAAA;AAChE,cAMM,kBANM,EAMY,KAAA,CAAA,yBAN2B,CAM3B,IANmC,CAiBzD,eAAA,CAXsB,uBAAA,GAAA,KAAA,CAAA,aANwC,CAMxC,cANwC,CAAA,EAAA,KAAA,CAAA,GAMxC,KAAA,CAAA,aANwC,CAMxC,cANwC,CAAA,CAAA;AAAC,cAqB3D,qBAnBmC,EAmBd,KAAA,CAAA,yBAnBc,CAmBd,IAnBc,CA0BvC,eAAA,CAPyB,0BAAA,GAAA,KAAA,CAAA,aAnBc,CAmBd,iBAnBc,CAAA,EAAA,KAAA,CAAA,GAmBd,KAAA,CAAA,aAnBc,CAmBd,iBAnBc,CAAA,CAAA;cA6BnC,qBA7BkB,EA6BG,KAAA,CAAA,yBA7BH,CA6BG,IA7BH,CAiDtB,eAAA,CApByB,0BAAA,GAAA,KAAA,CAAA,aA7BH,CA6BG,cA7BH,CAAA,EAAA,KAAA,CAAA,GA6BG,KAAA,CAAA,aA7BH,CA6BG,cA7BH,CAAA,CAAA;cAoDlB,kBApDkB,EAoDA,KAAA,CAAA,yBApDA,CAoDiB,eAAA,CAAjB,uBAAA,GAAA,KAAA,CAAA,aApDA,CAoDA,iBApDA,CAAA,CAAA"}
@@ -1,15 +1,34 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import * as React from 'react';
4
- import { NavigationMenu as Primitive } from '@base-ui/react/navigation-menu';
5
- import { cn } from '@fumadocs/ui/cn';
6
- const NavigationMenuRoot = Primitive.Root;
7
- const NavigationMenuList = Primitive.List;
8
- const NavigationMenuItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(Primitive.Item, { ref: ref, className: (s) => cn('list-none', typeof className === 'function' ? className(s) : className), ...props, children: children })));
9
- NavigationMenuItem.displayName = Primitive.Item.displayName;
10
- const NavigationMenuTrigger = React.forwardRef(({ children, ...props }, ref) => (_jsx(Primitive.Trigger, { ref: ref, ...props, children: children })));
11
- NavigationMenuTrigger.displayName = Primitive.Trigger.displayName;
12
- const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(Primitive.Content, { ref: ref, className: (s) => cn('size-full p-4', 'transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)', 'data-[starting-style]:opacity-0 data-[ending-style]:opacity-0', 'data-[starting-style]:data-[activation-direction=left]:-translate-x-1/2', 'data-[starting-style]:data-[activation-direction=right]:translate-x-1/2', 'data-[ending-style]:data-[activation-direction=left]:translate-x-1/2', 'data-[ending-style]:data-[activation-direction=right]:-translate-x-1/2', typeof className === 'function' ? className(s) : className), ...props })));
13
- NavigationMenuContent.displayName = Primitive.Content.displayName;
14
- const NavigationMenuLink = Primitive.Link;
15
- export { NavigationMenuRoot, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, };
2
+
3
+ import { cn } from "@fumadocs/ui/cn";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import * as React from "react";
6
+ import { NavigationMenu } from "@base-ui/react/navigation-menu";
7
+
8
+ //#region src/components/ui/navigation-menu.tsx
9
+ const NavigationMenuRoot = NavigationMenu.Root;
10
+ const NavigationMenuList = NavigationMenu.List;
11
+ const NavigationMenuItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Item, {
12
+ ref,
13
+ className: (s) => cn("list-none", typeof className === "function" ? className(s) : className),
14
+ ...props,
15
+ children
16
+ }));
17
+ NavigationMenuItem.displayName = NavigationMenu.Item.displayName;
18
+ const NavigationMenuTrigger = React.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Trigger, {
19
+ ref,
20
+ ...props,
21
+ children
22
+ }));
23
+ NavigationMenuTrigger.displayName = NavigationMenu.Trigger.displayName;
24
+ const NavigationMenuContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(NavigationMenu.Content, {
25
+ ref,
26
+ className: (s) => cn("size-full p-4", "transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)", "data-[starting-style]:opacity-0 data-[ending-style]:opacity-0", "data-[starting-style]:data-[activation-direction=left]:-translate-x-1/2", "data-[starting-style]:data-[activation-direction=right]:translate-x-1/2", "data-[ending-style]:data-[activation-direction=left]:translate-x-1/2", "data-[ending-style]:data-[activation-direction=right]:-translate-x-1/2", typeof className === "function" ? className(s) : className),
27
+ ...props
28
+ }));
29
+ NavigationMenuContent.displayName = NavigationMenu.Content.displayName;
30
+ const NavigationMenuLink = NavigationMenu.Link;
31
+
32
+ //#endregion
33
+ export { NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuRoot, NavigationMenuTrigger };
34
+ //# sourceMappingURL=navigation-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-menu.js","names":["Primitive"],"sources":["../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["'use client';\nimport * as React from 'react';\nimport { NavigationMenu as Primitive } from '@base-ui/react/navigation-menu';\nimport { cn } from '@fumadocs/ui/cn';\n\nexport type NavigationMenuContentProps = Primitive.Content.Props;\nexport type NavigationMenuTriggerProps = Primitive.Trigger.Props;\n\nconst NavigationMenuRoot = Primitive.Root;\n\nconst NavigationMenuList = Primitive.List;\n\nconst NavigationMenuItem = React.forwardRef<\n React.ComponentRef<typeof Primitive.Item>,\n React.ComponentPropsWithoutRef<typeof Primitive.Item>\n>(({ className, children, ...props }, ref) => (\n <Primitive.Item\n ref={ref}\n className={(s) => cn('list-none', typeof className === 'function' ? className(s) : className)}\n {...props}\n >\n {children}\n </Primitive.Item>\n));\n\nNavigationMenuItem.displayName = Primitive.Item.displayName;\n\nconst NavigationMenuTrigger = React.forwardRef<\n React.ComponentRef<typeof Primitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof Primitive.Trigger>\n>(({ children, ...props }, ref) => (\n <Primitive.Trigger ref={ref} {...props}>\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={(s) =>\n cn(\n 'size-full p-4',\n 'transition-[opacity,transform,translate] duration-(--duration) ease-(--easing)',\n 'data-[starting-style]:opacity-0 data-[ending-style]:opacity-0',\n 'data-[starting-style]:data-[activation-direction=left]:-translate-x-1/2',\n 'data-[starting-style]:data-[activation-direction=right]:translate-x-1/2',\n 'data-[ending-style]:data-[activation-direction=left]:translate-x-1/2',\n 'data-[ending-style]:data-[activation-direction=right]:-translate-x-1/2',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n />\n));\nNavigationMenuContent.displayName = Primitive.Content.displayName;\n\nconst NavigationMenuLink = Primitive.Link;\n\nexport {\n NavigationMenuRoot,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n};\n"],"mappings":";;;;;;;;AAQA,MAAM,qBAAqBA,eAAU;AAErC,MAAM,qBAAqBA,eAAU;AAErC,MAAM,qBAAqB,MAAM,YAG9B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAACA,eAAU;CACJ;CACL,YAAY,MAAM,GAAG,aAAa,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAC7F,GAAI;CAEH;EACc,CACjB;AAEF,mBAAmB,cAAcA,eAAU,KAAK;AAEhD,MAAM,wBAAwB,MAAM,YAGjC,EAAE,UAAU,GAAG,SAAS,QACzB,oBAACA,eAAU;CAAa;CAAK,GAAI;CAC9B;EACiB,CACpB;AACF,sBAAsB,cAAcA,eAAU,QAAQ;AAEtD,MAAM,wBAAwB,MAAM,YAGjC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,eAAU;CACJ;CACL,YAAY,MACV,GACE,iBACA,kFACA,iEACA,2EACA,2EACA,wEACA,0EACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;CAEH,GAAI;EACJ,CACF;AACF,sBAAsB,cAAcA,eAAU,QAAQ;AAEtD,MAAM,qBAAqBA,eAAU"}
@@ -1,8 +1,12 @@
1
- import { Popover as Primitive } from '@base-ui/react/popover';
2
- import * as React from 'react';
3
- declare const Popover: typeof Primitive.Root;
4
- declare const PopoverTrigger: Primitive.Trigger;
5
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverPopupProps & React.RefAttributes<HTMLDivElement>, "ref"> & Pick<import("@base-ui/react").PopoverPositionerProps, "align" | "sideOffset"> & React.RefAttributes<HTMLDivElement>>;
6
- declare const PopoverClose: React.ForwardRefExoticComponent<import("@base-ui/react").PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- export { Popover, PopoverTrigger, PopoverContent, PopoverClose };
1
+ import * as React from "react";
2
+ import { Popover as Popover$1 } from "@base-ui/react/popover";
3
+ import * as _base_ui_react10 from "@base-ui/react";
4
+
5
+ //#region src/components/ui/popover.d.ts
6
+ declare const Popover: typeof Popover$1.Root;
7
+ declare const PopoverTrigger: Popover$1.Trigger;
8
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<_base_ui_react10.PopoverPopupProps & React.RefAttributes<HTMLDivElement>, "ref"> & Pick<_base_ui_react10.PopoverPositionerProps, "sideOffset" | "align"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const PopoverClose: React.ForwardRefExoticComponent<_base_ui_react10.PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ //#endregion
11
+ export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
8
12
  //# 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,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,OAAO,uBAAiB,CAAC;AAE/B,QAAA,MAAM,cAAc,mBAAoB,CAAC;AAEzC,QAAA,MAAM,cAAc,sPAwBlB,CAAC;AAGH,QAAA,MAAM,YAAY,sHAAkB,CAAC;AAErC,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,gBAAO,SAAA,CAAA;cAEP,gBAAc,SAAA,CAAA;cAEd,gBAAc,KAAA,CAAA,0BAAA,KAmBlB,gBAAA,CAnBkB,iBAAA,GAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,gBAAA,CAAA,sBAAA,4BAAA,KAAA,CAAA,cAAA;AAPW,cA6BzB,YA1BwB,EA0BZ,KAAA,CAAA,yBA1BY,CA0BM,gBAAA,CAAlB,iBAAA,GAAA,KAAA,CAAA,aA1BY,CA0BZ,iBA1BY,CAAA,CAAA"}
@@ -1,11 +1,27 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Popover as Primitive } from '@base-ui/react/popover';
4
- import * as React from 'react';
5
- import { cn } from '@fumadocs/ui/cn';
6
- const Popover = Primitive.Root;
7
- const PopoverTrigger = Primitive.Trigger;
8
- const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (_jsx(Primitive.Portal, { children: _jsx(Primitive.Positioner, { align: align, side: "bottom", sideOffset: sideOffset, className: "z-50", children: _jsx(Primitive.Popup, { ref: ref, className: (s) => cn('z-50 origin-(--transform-origin) overflow-y-auto max-h-(--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-[closed]:animate-fd-popover-out data-[open]:animate-fd-popover-in', typeof className === 'function' ? className(s) : className), ...props }) }) })));
9
- PopoverContent.displayName = Primitive.Popup.displayName;
10
- const PopoverClose = Primitive.Close;
11
- export { Popover, PopoverTrigger, PopoverContent, PopoverClose };
2
+
3
+ import { cn } from "@fumadocs/ui/cn";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import * as React from "react";
6
+ import { Popover as Popover$1 } from "@base-ui/react/popover";
7
+
8
+ //#region src/components/ui/popover.tsx
9
+ const Popover = Popover$1.Root;
10
+ const PopoverTrigger = Popover$1.Trigger;
11
+ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(Popover$1.Positioner, {
12
+ align,
13
+ side: "bottom",
14
+ sideOffset,
15
+ className: "z-50",
16
+ children: /* @__PURE__ */ jsx(Popover$1.Popup, {
17
+ ref,
18
+ className: (s) => cn("z-50 origin-(--transform-origin) overflow-y-auto max-h-(--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-[closed]:animate-fd-popover-out data-[open]:animate-fd-popover-in", typeof className === "function" ? className(s) : className),
19
+ ...props
20
+ })
21
+ }) }));
22
+ PopoverContent.displayName = Popover$1.Popup.displayName;
23
+ const PopoverClose = Popover$1.Close;
24
+
25
+ //#endregion
26
+ export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
27
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","names":["Primitive"],"sources":["../../../src/components/ui/popover.tsx"],"sourcesContent":["'use client';\nimport { Popover as Primitive } from '@base-ui/react/popover';\nimport * as React from 'react';\nimport { cn } from '@fumadocs/ui/cn';\n\nconst Popover = Primitive.Root;\n\nconst PopoverTrigger = Primitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ComponentRef<typeof Primitive.Popup>,\n React.ComponentPropsWithoutRef<typeof Primitive.Popup> &\n Pick<Primitive.Positioner.Props, 'sideOffset' | 'align'>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <Primitive.Portal>\n <Primitive.Positioner align={align} side=\"bottom\" sideOffset={sideOffset} className=\"z-50\">\n <Primitive.Popup\n ref={ref}\n className={(s) =>\n cn(\n 'z-50 origin-(--transform-origin) overflow-y-auto max-h-(--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-[closed]:animate-fd-popover-out data-[open]:animate-fd-popover-in',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n />\n </Primitive.Positioner>\n </Primitive.Portal>\n));\nPopoverContent.displayName = Primitive.Popup.displayName;\n\nconst PopoverClose = Primitive.Close;\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverClose };\n"],"mappings":";;;;;;;;AAKA,MAAM,UAAUA,UAAU;AAE1B,MAAM,iBAAiBA,UAAU;AAEjC,MAAM,iBAAiB,MAAM,YAI1B,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAACA,UAAU,oBACT,oBAACA,UAAU;CAAkB;CAAO,MAAK;CAAqB;CAAY,WAAU;WAClF,oBAACA,UAAU;EACJ;EACL,YAAY,MACV,GACE,iTACA,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;EAEH,GAAI;GACJ;EACmB,GACN,CACnB;AACF,eAAe,cAAcA,UAAU,MAAM;AAE7C,MAAM,eAAeA,UAAU"}
@@ -1,8 +1,12 @@
1
- import { ScrollArea as Primitive } from '@base-ui/react/scroll-area';
2
- import * as React from 'react';
3
- declare const ScrollArea: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ScrollAreaRootProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- declare const ScrollViewport: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const ScrollBar: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- export { ScrollArea, ScrollBar, ScrollViewport };
7
- export type ScrollAreaProps = Primitive.Root.Props;
1
+ import * as React from "react";
2
+ import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
3
+ import * as _base_ui_react13 from "@base-ui/react";
4
+
5
+ //#region src/components/ui/scroll-area.d.ts
6
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<_base_ui_react13.ScrollAreaRootProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const ScrollViewport: React.ForwardRefExoticComponent<Omit<_base_ui_react13.ScrollAreaViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<_base_ui_react13.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ type ScrollAreaProps = ScrollArea$1.Root.Props;
10
+ //#endregion
11
+ export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollViewport };
8
12
  //# 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,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,UAAU,wKAkBd,CAAC;AAIH,QAAA,MAAM,cAAc,4KAgBlB,CAAC;AAIH,QAAA,MAAM,SAAS,6KAoBb,CAAC;AAGH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC"}
1
+ {"version":3,"file":"scroll-area.d.ts","names":[],"sources":["../../../src/components/ui/scroll-area.tsx"],"sourcesContent":[],"mappings":";;;;;cAIM,YAAU,KAAA,CAAA,0BAAA,KAed,gBAAA,CAfc,mBAAA,GAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA;cAmBV,gBAAc,KAAA,CAAA,0BAAA,KAalB,gBAAA,CAbkB,uBAAA,GAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA;cAiBd,WAAS,KAAA,CAAA,0BAAA,KAoBb,gBAAA,CApBa,wBAAA,GAAA,KAAA,CAAA,cAAA,0BAAA,KAAA,CAAA,cAAA;AArBb,KA6CU,eAAA,GAAkB,YAAA,CAAU,IAAA,CAAK,KA5D7B"}
@@ -1,11 +1,36 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ScrollArea as Primitive } from '@base-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, className: (s) => cn('overflow-hidden', typeof className === 'function' ? className(s) : className), ...props, children: [children, _jsx(Primitive.Corner, {}), _jsx(ScrollBar, { orientation: "vertical" })] })));
6
- ScrollArea.displayName = Primitive.Root.displayName;
7
- const ScrollViewport = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(Primitive.Viewport, { ref: ref, className: (s) => cn('size-full rounded-[inherit]', typeof className === 'function' ? className(s) : className), ...props, children: children })));
8
- ScrollViewport.displayName = Primitive.Viewport.displayName;
9
- const ScrollBar = React.forwardRef(({ className, orientation = 'vertical', ...props }, ref) => (_jsx(Primitive.Scrollbar, { ref: ref, orientation: orientation, className: (s) => cn('flex select-none transition-opacity', !s.hovering && 'opacity-0', orientation === 'vertical' && 'h-full w-1.5', orientation === 'horizontal' && 'h-1.5 flex-col', typeof className === 'function' ? className(s) : className), ...props, children: _jsx(Primitive.Thumb, { className: "relative flex-1 rounded-full bg-fd-border" }) })));
10
- ScrollBar.displayName = Primitive.Scrollbar.displayName;
1
+ import { cn } from "@fumadocs/ui/cn";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
5
+
6
+ //#region src/components/ui/scroll-area.tsx
7
+ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(ScrollArea$1.Root, {
8
+ ref,
9
+ className: (s) => cn("overflow-hidden", typeof className === "function" ? className(s) : className),
10
+ ...props,
11
+ children: [
12
+ children,
13
+ /* @__PURE__ */ jsx(ScrollArea$1.Corner, {}),
14
+ /* @__PURE__ */ jsx(ScrollBar, { orientation: "vertical" })
15
+ ]
16
+ }));
17
+ ScrollArea.displayName = ScrollArea$1.Root.displayName;
18
+ const ScrollViewport = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
19
+ ref,
20
+ className: (s) => cn("size-full rounded-[inherit]", typeof className === "function" ? className(s) : className),
21
+ ...props,
22
+ children
23
+ }));
24
+ ScrollViewport.displayName = ScrollArea$1.Viewport.displayName;
25
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(ScrollArea$1.Scrollbar, {
26
+ ref,
27
+ orientation,
28
+ className: (s) => cn("flex select-none transition-opacity", !s.hovering && "opacity-0", orientation === "vertical" && "h-full w-1.5", orientation === "horizontal" && "h-1.5 flex-col", typeof className === "function" ? className(s) : className),
29
+ ...props,
30
+ children: /* @__PURE__ */ jsx(ScrollArea$1.Thumb, { className: "relative flex-1 rounded-full bg-fd-border" })
31
+ }));
32
+ ScrollBar.displayName = ScrollArea$1.Scrollbar.displayName;
33
+
34
+ //#endregion
11
35
  export { ScrollArea, ScrollBar, ScrollViewport };
36
+ //# sourceMappingURL=scroll-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.js","names":["Primitive"],"sources":["../../../src/components/ui/scroll-area.tsx"],"sourcesContent":["import { ScrollArea as Primitive } from '@base-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\n ref={ref}\n className={(s) =>\n cn('overflow-hidden', typeof className === 'function' ? className(s) : className)\n }\n {...props}\n >\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\n ref={ref}\n className={(s) =>\n cn('size-full rounded-[inherit]', typeof className === 'function' ? className(s) : className)\n }\n {...props}\n >\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={(s) =>\n cn(\n 'flex select-none transition-opacity',\n !s.hovering && 'opacity-0',\n orientation === 'vertical' && 'h-full w-1.5',\n orientation === 'horizontal' && 'h-1.5 flex-col',\n typeof className === 'function' ? className(s) : className,\n )\n }\n {...props}\n >\n <Primitive.Thumb 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.Root.Props;\n"],"mappings":";;;;;;AAIA,MAAM,aAAa,MAAM,YAGtB,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAACA,aAAU;CACJ;CACL,YAAY,MACV,GAAG,mBAAmB,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAEnF,GAAI;;EAEH;EACD,oBAACA,aAAU,WAAS;EACpB,oBAAC,aAAU,aAAY,aAAa;;EACrB,CACjB;AAEF,WAAW,cAAcA,aAAU,KAAK;AAExC,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,oBAACA,aAAU;CACJ;CACL,YAAY,MACV,GAAG,+BAA+B,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAAU;CAE/F,GAAI;CAEH;EACkB,CACrB;AAEF,eAAe,cAAcA,aAAU,SAAS;AAEhD,MAAM,YAAY,MAAM,YAGrB,EAAE,WAAW,cAAc,YAAY,GAAG,SAAS,QACpD,oBAACA,aAAU;CACJ;CACQ;CACb,YAAY,MACV,GACE,uCACA,CAAC,EAAE,YAAY,aACf,gBAAgB,cAAc,gBAC9B,gBAAgB,gBAAgB,kBAChC,OAAO,cAAc,aAAa,UAAU,EAAE,GAAG,UAClD;CAEH,GAAI;WAEJ,oBAACA,aAAU,SAAM,WAAU,8CAA8C;EACrD,CACtB;AACF,UAAU,cAAcA,aAAU,UAAU"}
@@ -1,22 +1,41 @@
1
- import { type ComponentProps } from 'react';
2
- import { Tabs as Primitive } from '@base-ui/react/tabs';
3
- export interface TabsProps extends ComponentProps<typeof Primitive.Root> {
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;
16
- onValueChange?: (value: string) => void;
1
+ import * as react_jsx_runtime40 from "react/jsx-runtime";
2
+ import * as react0 from "react";
3
+ import { ComponentProps } from "react";
4
+ import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
5
+ import * as _base_ui_react1 from "@base-ui/react";
6
+
7
+ //#region src/components/ui/tabs.d.ts
8
+ interface TabsProps extends ComponentProps<typeof Tabs$1.Root> {
9
+ /**
10
+ * Identifier for Sharing value of tabs
11
+ */
12
+ groupId?: string;
13
+ /**
14
+ * Enable persistent
15
+ */
16
+ persist?: boolean;
17
+ /**
18
+ * If true, updates the URL hash based on the tab's id
19
+ */
20
+ updateAnchor?: boolean;
21
+ onValueChange?: (value: string) => void;
17
22
  }
18
- export declare const TabsList: import("react").ForwardRefExoticComponent<import("@base-ui/react").TabsListProps & import("react").RefAttributes<HTMLDivElement>>;
19
- export declare const TabsTrigger: import("react").ForwardRefExoticComponent<import("@base-ui/react").TabsTabProps & import("react").RefAttributes<Element>>;
20
- export declare function Tabs({ ref, groupId, persist, updateAnchor, defaultValue, value: _value, onValueChange: _onValueChange, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
21
- export declare function TabsContent({ value, ...props }: ComponentProps<typeof Primitive.Panel>): import("react/jsx-runtime").JSX.Element;
23
+ declare const TabsList: react0.ForwardRefExoticComponent<_base_ui_react1.TabsListProps & react0.RefAttributes<HTMLDivElement>>;
24
+ declare const TabsTrigger: react0.ForwardRefExoticComponent<_base_ui_react1.TabsTabProps & react0.RefAttributes<Element>>;
25
+ declare function Tabs({
26
+ ref,
27
+ groupId,
28
+ persist,
29
+ updateAnchor,
30
+ defaultValue,
31
+ value: _value,
32
+ onValueChange: _onValueChange,
33
+ ...props
34
+ }: TabsProps): react_jsx_runtime40.JSX.Element;
35
+ declare function TabsContent({
36
+ value,
37
+ ...props
38
+ }: ComponentProps<typeof Tabs$1.Panel>): react_jsx_runtime40.JSX.Element;
39
+ //#endregion
40
+ export { Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
22
41
  //# 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,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAMxD,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;IAEvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAYD,eAAO,MAAM,QAAQ,mIAAiB,CAAC;AAEvC,eAAO,MAAM,WAAW,2HAAgB,CAAC;AAEzC,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,KAAK,CAAC,2CAYxC"}
1
+ {"version":3,"file":"tabs.d.ts","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":[],"mappings":";;;;;;;UAkBiB,SAAA,SAAkB,sBAAsB,MAAA,CAAU;;;;;EAAlD;AA6BjB;;EAAqB,OAAA,CAAA,EAAA,OAAA;EAAA;;;EAER,YAAA,CAAA,EAA2B,OAAA;EAAA,aAAhB,CAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;;AAAA,cAFX,QAEW,EAFH,MAAA,CAAA,yBAEG,CAFc,eAAA,CAAjB,aAAA,GAAA,MAAA,CAAA,aAEG,CAFH,cAEG,CAAA,CAAA;AAAA,cAAX,WAAW,EAAA,MAAA,CAAA,yBAAA,CAAgB,eAAA,CAAhB,YAAA,GAAA,MAAA,CAAA,aAAA,CAAA,OAAA,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,MAAA,CAAU,KAhF7D,CAAA,CAAA,EAgFmE,mBAAA,CAAA,GAAA,CAAA,OAhFnE"}