@fumadocs/base-ui 16.9.2 → 16.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/css/generated/docs.css +1 -234
  2. package/css/generated/flux.css +1 -162
  3. package/css/generated/home.css +1 -65
  4. package/css/generated/notebook.css +1 -258
  5. package/css/generated/shared.css +1 -1189
  6. package/dist/.translations/index.d.ts +49 -0
  7. package/dist/.translations/keys.js +49 -0
  8. package/dist/components/accordion.d.ts +2 -3
  9. package/dist/components/accordion.js +3 -3
  10. package/dist/components/banner.d.ts +1 -2
  11. package/dist/components/banner.js +3 -3
  12. package/dist/components/callout.d.ts +4 -5
  13. package/dist/components/card.d.ts +2 -3
  14. package/dist/components/codeblock.d.ts +6 -7
  15. package/dist/components/codeblock.js +3 -3
  16. package/dist/components/codeblock.rsc.d.ts +1 -2
  17. package/dist/components/dialog/search-algolia.d.ts +1 -2
  18. package/dist/components/dialog/search-default.d.ts +1 -2
  19. package/dist/components/dialog/search-orama.d.ts +1 -2
  20. package/dist/components/dialog/search.d.ts +12 -13
  21. package/dist/components/dialog/search.js +13 -10
  22. package/dist/components/dynamic-codeblock.core.d.ts +1 -2
  23. package/dist/components/dynamic-codeblock.d.ts +1 -2
  24. package/dist/components/github-info.d.ts +1 -2
  25. package/dist/components/heading.d.ts +1 -2
  26. package/dist/components/heading.js +3 -3
  27. package/dist/components/image-zoom.d.ts +2 -3
  28. package/dist/components/image-zoom.js +1 -1
  29. package/dist/components/inline-toc.d.ts +1 -2
  30. package/dist/components/inline-toc.js +3 -3
  31. package/dist/components/sidebar/base.d.ts +13 -15
  32. package/dist/components/sidebar/base.js +3 -3
  33. package/dist/components/sidebar/link-item.d.ts +1 -2
  34. package/dist/components/sidebar/page-tree.d.ts +1 -2
  35. package/dist/components/sidebar/tabs/dropdown.d.ts +1 -2
  36. package/dist/components/steps.d.ts +2 -3
  37. package/dist/components/tabs.d.ts +5 -6
  38. package/dist/components/toc/clerk.d.ts +3 -4
  39. package/dist/components/toc/clerk.js +7 -7
  40. package/dist/components/toc/default.d.ts +3 -4
  41. package/dist/components/toc/default.js +2 -2
  42. package/dist/components/toc/index.d.ts +2 -3
  43. package/dist/components/type-table.d.ts +1 -2
  44. package/dist/components/type-table.js +9 -9
  45. package/dist/components/ui/accordion.d.ts +5 -6
  46. package/dist/components/ui/button.d.ts +1 -2
  47. package/dist/components/ui/collapsible.d.ts +3 -6
  48. package/dist/components/ui/navigation-menu.d.ts +6 -8
  49. package/dist/components/ui/popover.d.ts +2 -4
  50. package/dist/components/ui/scroll-area.d.ts +3 -4
  51. package/dist/components/ui/tabs.d.ts +4 -7
  52. package/dist/contexts/i18n.d.ts +5 -30
  53. package/dist/contexts/i18n.js +10 -22
  54. package/dist/contexts/search.d.ts +1 -2
  55. package/dist/contexts/tree.d.ts +1 -2
  56. package/dist/i18n.d.ts +9 -63
  57. package/dist/i18n.js +23 -70
  58. package/dist/layouts/docs/index.d.ts +1 -2
  59. package/dist/layouts/docs/page/index.d.ts +6 -7
  60. package/dist/layouts/docs/page/index.js +5 -4
  61. package/dist/layouts/docs/page/slots/breadcrumb.d.ts +1 -2
  62. package/dist/layouts/docs/page/slots/container.d.ts +1 -2
  63. package/dist/layouts/docs/page/slots/footer.d.ts +1 -2
  64. package/dist/layouts/docs/page/slots/footer.js +3 -3
  65. package/dist/layouts/docs/page/slots/toc.d.ts +3 -4
  66. package/dist/layouts/docs/page/slots/toc.js +5 -4
  67. package/dist/layouts/docs/slots/container.d.ts +1 -2
  68. package/dist/layouts/docs/slots/header.d.ts +1 -3
  69. package/dist/layouts/docs/slots/sidebar.d.ts +3 -4
  70. package/dist/layouts/flux/index.d.ts +3 -4
  71. package/dist/layouts/flux/page/index.d.ts +6 -7
  72. package/dist/layouts/flux/page/index.js +5 -4
  73. package/dist/layouts/flux/page/slots/breadcrumb.d.ts +1 -2
  74. package/dist/layouts/flux/page/slots/container.d.ts +1 -2
  75. package/dist/layouts/flux/page/slots/footer.d.ts +1 -2
  76. package/dist/layouts/flux/page/slots/footer.js +3 -3
  77. package/dist/layouts/flux/page/slots/toc.d.ts +1 -2
  78. package/dist/layouts/flux/page/slots/toc.js +3 -3
  79. package/dist/layouts/flux/slots/container.d.ts +1 -2
  80. package/dist/layouts/flux/slots/sidebar.d.ts +3 -4
  81. package/dist/layouts/flux/slots/tab-dropdown.d.ts +1 -2
  82. package/dist/layouts/home/index.d.ts +1 -2
  83. package/dist/layouts/home/navbar.d.ts +3 -4
  84. package/dist/layouts/home/not-found.d.ts +1 -3
  85. package/dist/layouts/home/not-found.js +6 -4
  86. package/dist/layouts/home/slots/container.d.ts +1 -2
  87. package/dist/layouts/home/slots/header.d.ts +3 -5
  88. package/dist/layouts/home/slots/header.js +3 -3
  89. package/dist/layouts/notebook/index.d.ts +1 -2
  90. package/dist/layouts/notebook/page/index.d.ts +6 -7
  91. package/dist/layouts/notebook/page/index.js +5 -4
  92. package/dist/layouts/notebook/page/slots/breadcrumb.d.ts +1 -2
  93. package/dist/layouts/notebook/page/slots/container.d.ts +1 -2
  94. package/dist/layouts/notebook/page/slots/footer.d.ts +1 -2
  95. package/dist/layouts/notebook/page/slots/footer.js +3 -3
  96. package/dist/layouts/notebook/page/slots/toc.d.ts +3 -4
  97. package/dist/layouts/notebook/page/slots/toc.js +5 -4
  98. package/dist/layouts/notebook/slots/container.d.ts +1 -2
  99. package/dist/layouts/notebook/slots/header.d.ts +1 -3
  100. package/dist/layouts/notebook/slots/sidebar.d.ts +5 -6
  101. package/dist/layouts/shared/client.d.ts +1 -2
  102. package/dist/layouts/shared/index.d.ts +1 -1
  103. package/dist/layouts/shared/page-actions.d.ts +2 -3
  104. package/dist/layouts/shared/page-actions.js +12 -13
  105. package/dist/layouts/shared/slots/language-select.d.ts +1 -2
  106. package/dist/layouts/shared/slots/language-select.js +5 -2
  107. package/dist/layouts/shared/slots/search-trigger.d.ts +2 -3
  108. package/dist/layouts/shared/slots/search-trigger.js +5 -5
  109. package/dist/layouts/shared/slots/theme-switch.d.ts +1 -2
  110. package/dist/layouts/shared/slots/theme-switch.js +43 -30
  111. package/dist/mdx.d.ts +9 -10
  112. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/controlled.d.ts +1 -1
  113. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/controlled.js +6 -2
  114. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +1 -1
  115. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/uncontrolled.js +1 -1
  116. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +1 -1
  117. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +1 -1
  118. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +1 -1
  119. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +1 -1
  120. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +1 -1
  121. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +1 -1
  122. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +1 -1
  123. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +1 -1
  124. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +1 -1
  125. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +1 -1
  126. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +1 -1
  127. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +1 -1
  128. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +1 -1
  129. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +1 -1
  130. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +1 -1
  131. package/dist/og/takumi.d.ts +1 -2
  132. package/dist/og.d.ts +1 -2
  133. package/dist/page.d.ts +2 -3
  134. package/dist/provider/base.d.ts +1 -2
  135. package/dist/provider/next.d.ts +1 -2
  136. package/dist/provider/react-router.d.ts +1 -2
  137. package/dist/provider/tanstack.d.ts +1 -2
  138. package/dist/provider/waku.d.ts +1 -2
  139. package/dist/style.css +3 -0
  140. package/package.json +11 -10
  141. /package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.5_react-dom@19.2.6_react@19.2.6__react@19.2.6 → react-medium-image-zoom@5.4.6_react-dom@19.2.7_react@19.2.7__react@19.2.7}/node_modules/react-medium-image-zoom/dist/index.d.ts +0 -0
@@ -1,5 +1,4 @@
1
1
  import { Collapsible } from "./ui/collapsible.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { ComponentProps } from "react";
4
3
  import { TOCItemType } from "fumadocs-core/toc";
5
4
 
@@ -11,6 +10,6 @@ declare function InlineTOC({
11
10
  items,
12
11
  className,
13
12
  ...props
14
- }: InlineTocProps): _$react_jsx_runtime0.JSX.Element;
13
+ }: InlineTocProps): import("react").JSX.Element;
15
14
  //#endregion
16
15
  export { InlineTOC, InlineTocProps };
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import { cn } from "../utils/cn.js";
3
- import { useTranslations } from "../contexts/i18n.js";
4
3
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.js";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { ChevronDown } from "lucide-react";
6
+ import { useTranslations } from "@fuma-translate/react";
7
7
  //#region src/components/inline-toc.tsx
8
8
  function InlineTOC({ items, className, ...props }) {
9
- const t = useTranslations();
9
+ const t = useTranslations({ note: "inline table of contents" });
10
10
  return /* @__PURE__ */ jsxs(Collapsible, {
11
11
  ...props,
12
12
  className: (s) => cn("not-prose rounded-lg border bg-fd-card text-fd-card-foreground", typeof className === "function" ? className(s) : className),
13
13
  children: [/* @__PURE__ */ jsxs(CollapsibleTrigger, {
14
14
  className: "group inline-flex w-full items-center justify-between px-4 py-2.5 font-medium",
15
- children: [props.children ?? t.tocInline, /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 transition-transform duration-200 group-data-open:rotate-180" })]
15
+ children: [props.children ?? t("Table of Contents"), /* @__PURE__ */ jsx(ChevronDown, { className: "size-4 transition-transform duration-200 group-data-open:rotate-180" })]
16
16
  }), /* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", {
17
17
  className: "flex flex-col p-4 pt-0 text-sm text-fd-muted-foreground",
18
18
  children: items.map((item) => /* @__PURE__ */ jsx("a", {
@@ -1,8 +1,6 @@
1
1
  import { CollapsibleContentProps, CollapsibleTriggerProps } from "../ui/collapsible.js";
2
2
  import { ScrollAreaProps } from "../ui/scroll-area.js";
3
3
  import { LinkProps } from "fumadocs-core/link";
4
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
- import * as _$react from "react";
6
4
  import { ComponentProps, PointerEvent, ReactNode, RefObject } from "react";
7
5
 
8
6
  //#region src/components/sidebar/base.d.ts
@@ -37,12 +35,12 @@ interface SidebarProviderProps {
37
35
  children?: ReactNode;
38
36
  }
39
37
  type Mode = 'drawer' | 'full';
40
- declare const SidebarContext: _$react.Context<SidebarContext | null>;
38
+ declare const SidebarContext: import("react").Context<SidebarContext | null>;
41
39
  declare function SidebarProvider({
42
40
  defaultOpenLevel,
43
41
  prefetch,
44
42
  children
45
- }: SidebarProviderProps): _$react_jsx_runtime0.JSX.Element;
43
+ }: SidebarProviderProps): import("react").JSX.Element;
46
44
  declare function useSidebar(): SidebarContext;
47
45
  declare function useFolder(): {
48
46
  open: boolean;
@@ -62,17 +60,17 @@ declare function SidebarContent({
62
60
  onPointerLeave: (event: PointerEvent) => void;
63
61
  }) => ReactNode;
64
62
  }): ReactNode;
65
- declare function SidebarDrawerOverlay(props: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element | undefined;
63
+ declare function SidebarDrawerOverlay(props: ComponentProps<'div'>): import("react").JSX.Element | undefined;
66
64
  declare function SidebarDrawerContent({
67
65
  className,
68
66
  children,
69
67
  ...props
70
- }: ComponentProps<'aside'>): _$react_jsx_runtime0.JSX.Element | undefined;
68
+ }: ComponentProps<'aside'>): import("react").JSX.Element | undefined;
71
69
  declare function SidebarViewport({
72
70
  className,
73
71
  ...props
74
- }: ScrollAreaProps): _$react_jsx_runtime0.JSX.Element;
75
- declare function SidebarSeparator(props: ComponentProps<'p'>): _$react_jsx_runtime0.JSX.Element;
72
+ }: ScrollAreaProps): import("react").JSX.Element;
73
+ declare function SidebarSeparator(props: ComponentProps<'p'>): import("react").JSX.Element;
76
74
  declare function SidebarItem({
77
75
  icon,
78
76
  active,
@@ -81,7 +79,7 @@ declare function SidebarItem({
81
79
  }: LinkProps & {
82
80
  active?: boolean;
83
81
  icon?: ReactNode;
84
- }): _$react_jsx_runtime0.JSX.Element;
82
+ }): import("react").JSX.Element;
85
83
  declare function SidebarFolder({
86
84
  defaultOpen: defaultOpenProp,
87
85
  collapsible,
@@ -92,24 +90,24 @@ declare function SidebarFolder({
92
90
  active?: boolean;
93
91
  defaultOpen?: boolean;
94
92
  collapsible?: boolean;
95
- }): _$react_jsx_runtime0.JSX.Element;
93
+ }): import("react").JSX.Element;
96
94
  declare function SidebarFolderTrigger({
97
95
  children,
98
96
  ...props
99
- }: CollapsibleTriggerProps): _$react_jsx_runtime0.JSX.Element;
97
+ }: CollapsibleTriggerProps): import("react").JSX.Element;
100
98
  declare function SidebarFolderLink({
101
99
  children,
102
100
  active,
103
101
  ...props
104
102
  }: LinkProps & {
105
103
  active?: boolean;
106
- }): _$react_jsx_runtime0.JSX.Element;
107
- declare function SidebarFolderContent(props: CollapsibleContentProps): _$react_jsx_runtime0.JSX.Element;
104
+ }): import("react").JSX.Element;
105
+ declare function SidebarFolderContent(props: CollapsibleContentProps): import("react").JSX.Element;
108
106
  declare function SidebarTrigger({
109
107
  children,
110
108
  ...props
111
- }: ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
112
- declare function SidebarCollapseTrigger(props: ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
109
+ }: ComponentProps<'button'>): import("react").JSX.Element;
110
+ declare function SidebarCollapseTrigger(props: ComponentProps<'button'>): import("react").JSX.Element;
113
111
  /**
114
112
  * scroll to the element if `active` is true
115
113
  */
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { cn } from "../../utils/cn.js";
4
- import { useTranslations } from "../../contexts/i18n.js";
5
4
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
6
5
  import { ScrollArea, ScrollViewport } from "../ui/scroll-area.js";
7
6
  import Link from "fumadocs-core/link";
@@ -9,6 +8,7 @@ import { usePathname } from "fumadocs-core/framework";
9
8
  import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import { ChevronDown, ExternalLink } from "lucide-react";
11
10
  import { createContext, use, useEffect, useMemo, useRef, useState } from "react";
11
+ import { useTranslations } from "@fuma-translate/react";
12
12
  import { useOnChange } from "fumadocs-core/utils/use-on-change";
13
13
  import { useMediaQuery } from "fumadocs-core/utils/use-media-query";
14
14
  import scrollIntoView from "scroll-into-view-if-needed";
@@ -240,7 +240,7 @@ function SidebarFolderContent(props) {
240
240
  function SidebarTrigger({ children, ...props }) {
241
241
  const { setOpen } = useSidebar();
242
242
  return /* @__PURE__ */ jsx("button", {
243
- "aria-label": useTranslations().sidebarOpen,
243
+ "aria-label": useTranslations({ note: "sidebar" })("Open Sidebar", { note: "aria-label" }),
244
244
  onClick: () => setOpen((prev) => !prev),
245
245
  ...props,
246
246
  children
@@ -250,7 +250,7 @@ function SidebarCollapseTrigger(props) {
250
250
  const { collapsed, setCollapsed } = useSidebar();
251
251
  return /* @__PURE__ */ jsx("button", {
252
252
  type: "button",
253
- "aria-label": useTranslations().sidebarCollapse,
253
+ "aria-label": useTranslations({ note: "sidebar" })("Collapse Sidebar", { note: "aria-label" }),
254
254
  "data-collapsed": collapsed,
255
255
  onClick: () => {
256
256
  setCollapsed((prev) => !prev);
@@ -1,6 +1,5 @@
1
1
  import { base_d_exports } from "./base.js";
2
2
  import { LinkItemType } from "../../layouts/shared/index.js";
3
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
3
  import { HTMLAttributes } from "react";
5
4
 
6
5
  //#region src/components/sidebar/link-item.d.ts
@@ -18,6 +17,6 @@ declare function createLinkItemRenderer({
18
17
  item: Exclude<LinkItemType, {
19
18
  type: "icon";
20
19
  }>;
21
- }) => _$react_jsx_runtime0.JSX.Element;
20
+ }) => import("react").JSX.Element;
22
21
  //#endregion
23
22
  export { createLinkItemRenderer };
@@ -1,5 +1,4 @@
1
1
  import { base_d_exports } from "./base.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { FC, ReactNode } from "react";
4
3
  import * as PageTree from "fumadocs-core/page-tree";
5
4
 
@@ -24,6 +23,6 @@ declare function createPageTreeRenderer({
24
23
  SidebarFolderTrigger,
25
24
  SidebarSeparator,
26
25
  SidebarItem
27
- }: InternalComponents): (components: Partial<SidebarPageTreeComponents>) => _$react_jsx_runtime0.JSX.Element;
26
+ }: InternalComponents): (components: Partial<SidebarPageTreeComponents>) => import("react").JSX.Element;
28
27
  //#endregion
29
28
  export { SidebarPageTreeComponents, createPageTreeRenderer };
@@ -1,5 +1,4 @@
1
1
  import { LayoutTab, isLayoutTabActive } from "../../../layouts/shared/index.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import { ComponentProps, ReactNode } from "react";
4
3
 
5
4
  //#region src/components/sidebar/tabs/dropdown.d.ts
@@ -11,7 +10,7 @@ declare function SidebarTabsDropdown({
11
10
  }: {
12
11
  placeholder?: ReactNode;
13
12
  options: SidebarTabWithProps[];
14
- } & ComponentProps<'button'>): _$react_jsx_runtime0.JSX.Element;
13
+ } & ComponentProps<'button'>): import("react").JSX.Element;
15
14
  declare const isTabActive: typeof isLayoutTabActive;
16
15
  //#endregion
17
16
  export { SidebarTabWithProps, SidebarTabsDropdown, isTabActive };
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { ReactNode } from "react";
3
2
 
4
3
  //#region src/components/steps.d.ts
@@ -6,11 +5,11 @@ declare function Steps({
6
5
  children
7
6
  }: {
8
7
  children: ReactNode;
9
- }): _$react_jsx_runtime0.JSX.Element;
8
+ }): import("react").JSX.Element;
10
9
  declare function Step({
11
10
  children
12
11
  }: {
13
12
  children: ReactNode;
14
- }): _$react_jsx_runtime0.JSX.Element;
13
+ }): import("react").JSX.Element;
15
14
  //#endregion
16
15
  export { Step, Steps };
@@ -1,5 +1,4 @@
1
1
  import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
2
  import * as React$1 from "react";
4
3
  import { ComponentProps, ReactNode } from "react";
5
4
 
@@ -23,11 +22,11 @@ interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onVal
23
22
  declare function TabsList({
24
23
  className,
25
24
  ...props
26
- }: React$1.ComponentPropsWithRef<typeof TabsList$1>): _$react_jsx_runtime0.JSX.Element;
25
+ }: React$1.ComponentPropsWithRef<typeof TabsList$1>): React$1.JSX.Element;
27
26
  declare function TabsTrigger({
28
27
  className,
29
28
  ...props
30
- }: React$1.ComponentPropsWithRef<typeof TabsTrigger$1>): _$react_jsx_runtime0.JSX.Element;
29
+ }: React$1.ComponentPropsWithRef<typeof TabsTrigger$1>): React$1.JSX.Element;
31
30
  declare function Tabs({
32
31
  ref,
33
32
  className,
@@ -36,7 +35,7 @@ declare function Tabs({
36
35
  defaultIndex,
37
36
  defaultValue,
38
37
  ...props
39
- }: TabsProps): _$react_jsx_runtime0.JSX.Element;
38
+ }: TabsProps): React$1.JSX.Element;
40
39
  interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
41
40
  /**
42
41
  * Value of tab, detect from index if unspecified.
@@ -46,11 +45,11 @@ interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
46
45
  declare function Tab({
47
46
  value,
48
47
  ...props
49
- }: TabProps): _$react_jsx_runtime0.JSX.Element;
48
+ }: TabProps): React$1.JSX.Element;
50
49
  declare function TabsContent({
51
50
  value,
52
51
  className,
53
52
  ...props
54
- }: ComponentProps<typeof TabsContent$1>): _$react_jsx_runtime0.JSX.Element;
53
+ }: ComponentProps<typeof TabsContent$1>): React$1.JSX.Element;
55
54
  //#endregion
56
55
  export { Tab, TabProps, Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { ComponentProps } from "react";
3
2
  import * as Primitive from "fumadocs-core/toc";
4
3
 
@@ -12,13 +11,13 @@ declare function TOCItems({
12
11
  thumbBox,
13
12
  children,
14
13
  ...props
15
- }: TOCItemsProps): _$react_jsx_runtime0.JSX.Element;
16
- declare function TOCEmpty(): _$react_jsx_runtime0.JSX.Element;
14
+ }: TOCItemsProps): import("react").JSX.Element;
15
+ declare function TOCEmpty(): import("react").JSX.Element;
17
16
  declare function TOCItem({
18
17
  item,
19
18
  ...props
20
19
  }: Primitive.TOCItemProps & {
21
20
  item: Primitive.TOCItemType;
22
- }): _$react_jsx_runtime0.JSX.Element;
21
+ }): import("react").JSX.Element;
23
22
  //#endregion
24
23
  export { TOCEmpty, TOCItem, TOCItems, TOCItemsProps };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { cn } from "../../utils/cn.js";
4
- import { useTranslations } from "../../contexts/i18n.js";
5
4
  import { mergeRefs } from "../../utils/merge-refs.js";
6
5
  import { useTOCItems } from "./index.js";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
8
+ import { useTranslations } from "@fuma-translate/react";
9
9
  import * as Primitive from "fumadocs-core/toc";
10
10
  //#region src/components/toc/clerk.tsx
11
11
  var clerk_exports = /* @__PURE__ */ __exportAll({
@@ -121,7 +121,7 @@ function TOCItems({ ref, className, thumbBox = true, children, ...props }) {
121
121
  function TOCEmpty() {
122
122
  return /* @__PURE__ */ jsx("div", {
123
123
  className: "rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",
124
- children: useTranslations().tocNoHeadings
124
+ children: useTranslations({ note: "table of contents" })("No Headings")
125
125
  });
126
126
  }
127
127
  function ThumbTrack({ computed, thumbBox }) {
@@ -182,14 +182,14 @@ function ThumbTrack({ computed, thumbBox }) {
182
182
  }
183
183
  const a = 8;
184
184
  function getItemOffset(depth) {
185
- if (depth <= 2) return 12 + a;
186
- if (depth === 3) return 24 + a;
187
- return 36 + a;
185
+ if (depth <= 2) return 20;
186
+ if (depth === 3) return 32;
187
+ return 44;
188
188
  }
189
189
  function getLineOffset(depth) {
190
190
  if (depth <= 2) return a;
191
- if (depth === 3) return 8 + a;
192
- return 16 + a;
191
+ if (depth === 3) return 16;
192
+ return 24;
193
193
  }
194
194
  function TOCItem({ item, ...props }) {
195
195
  const items = useTOCItems();
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { ComponentProps } from "react";
3
2
  import * as Primitive from "fumadocs-core/toc";
4
3
 
@@ -8,13 +7,13 @@ declare function TOCItems({
8
7
  ref,
9
8
  className,
10
9
  ...props
11
- }: TOCItemsProps): _$react_jsx_runtime0.JSX.Element;
12
- declare function TOCEmpty(): _$react_jsx_runtime0.JSX.Element;
10
+ }: TOCItemsProps): import("react").JSX.Element;
11
+ declare function TOCEmpty(): import("react").JSX.Element;
13
12
  declare function TOCItem({
14
13
  item,
15
14
  ...props
16
15
  }: Primitive.TOCItemProps & {
17
16
  item: Primitive.TOCItemType;
18
- }): _$react_jsx_runtime0.JSX.Element;
17
+ }): import("react").JSX.Element;
19
18
  //#endregion
20
19
  export { TOCEmpty, TOCItem, TOCItems, TOCItemsProps };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
3
3
  import { cn } from "../../utils/cn.js";
4
- import { useTranslations } from "../../contexts/i18n.js";
5
4
  import { mergeRefs } from "../../utils/merge-refs.js";
6
5
  import { useTOCItems } from "./index.js";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { useCallback, useEffect, useRef, useState } from "react";
8
+ import { useTranslations } from "@fuma-translate/react";
9
9
  import * as Primitive from "fumadocs-core/toc";
10
10
  //#region src/components/toc/default.tsx
11
11
  var default_exports = /* @__PURE__ */ __exportAll({
@@ -81,7 +81,7 @@ function TocThumb({ computed }) {
81
81
  function TOCEmpty() {
82
82
  return /* @__PURE__ */ jsx("div", {
83
83
  className: "rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",
84
- children: useTranslations().tocNoHeadings
84
+ children: useTranslations({ note: "table of contents" })("No Headings")
85
85
  });
86
86
  }
87
87
  function TOCItem({ item, ...props }) {
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { ComponentProps } from "react";
3
2
  import * as Primitive from "fumadocs-core/toc";
4
3
 
@@ -10,11 +9,11 @@ declare function TOCProvider({
10
9
  toc,
11
10
  children,
12
11
  ...props
13
- }: TOCProviderProps): _$react_jsx_runtime0.JSX.Element;
12
+ }: TOCProviderProps): import("react").JSX.Element;
14
13
  declare function TOCScrollArea({
15
14
  ref,
16
15
  className,
17
16
  ...props
18
- }: ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
17
+ }: ComponentProps<'div'>): import("react").JSX.Element;
19
18
  //#endregion
20
19
  export { TOCProvider, TOCProviderProps, TOCScrollArea, useActiveAnchor, useActiveAnchors, useItems, useTOCItems };
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { ComponentProps, ReactNode } from "react";
3
2
 
4
3
  //#region src/components/type-table.d.ts
@@ -39,6 +38,6 @@ declare function TypeTable({
39
38
  ...props
40
39
  }: {
41
40
  type: Record<string, TypeNode>;
42
- } & ComponentProps<'div'>): _$react_jsx_runtime0.JSX.Element;
41
+ } & ComponentProps<'div'>): import("react").JSX.Element;
43
42
  //#endregion
44
43
  export { ParameterNode, TypeNode, TypeTable };
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { cn } from "../utils/cn.js";
3
- import { useTranslations } from "../contexts/i18n.js";
4
3
  import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.js";
5
4
  import Link from "fumadocs-core/link";
6
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
6
  import { ChevronDown } from "lucide-react";
8
7
  import { cva } from "class-variance-authority";
9
8
  import { useEffect, useState } from "react";
9
+ import { useTranslations } from "@fuma-translate/react";
10
10
  //#region src/components/type-table.tsx
11
11
  const fieldVariants = cva("text-fd-muted-foreground not-prose pe-2");
12
12
  function TypeTable({ id, type, className, ...props }) {
13
- const t = useTranslations();
13
+ const t = useTranslations({ note: "type table" });
14
14
  return /* @__PURE__ */ jsxs("div", {
15
15
  id,
16
16
  className: cn("@container flex flex-col p-1 bg-fd-card text-fd-card-foreground rounded-2xl border my-6 text-sm overflow-hidden", className),
@@ -19,10 +19,10 @@ function TypeTable({ id, type, className, ...props }) {
19
19
  className: "flex font-medium items-center px-3 py-1 not-prose text-fd-muted-foreground",
20
20
  children: [/* @__PURE__ */ jsx("p", {
21
21
  className: "w-1/4",
22
- children: t.typeTableProp
22
+ children: t("Prop")
23
23
  }), /* @__PURE__ */ jsx("p", {
24
24
  className: "@max-xl:hidden",
25
- children: t.typeTableType
25
+ children: t("Type")
26
26
  })]
27
27
  }), Object.entries(type).map(([key, value]) => /* @__PURE__ */ jsx(Item, {
28
28
  parentId: id,
@@ -32,7 +32,7 @@ function TypeTable({ id, type, className, ...props }) {
32
32
  });
33
33
  }
34
34
  function Item({ parentId, name, item: { parameters = [], description, required = false, deprecated, typeDescription, default: defaultValue, type, typeDescriptionLink, returns } }) {
35
- const t = useTranslations();
35
+ const t = useTranslations({ note: "type table" });
36
36
  const [open, setOpen] = useState(false);
37
37
  const id = parentId ? `${parentId}-${name}` : void 0;
38
38
  useEffect(() => {
@@ -74,21 +74,21 @@ function Item({ parentId, name, item: { parameters = [], description, required =
74
74
  }),
75
75
  typeDescription && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
76
76
  className: cn(fieldVariants()),
77
- children: t.typeTableType
77
+ children: t("Type")
78
78
  }), /* @__PURE__ */ jsx("p", {
79
79
  className: "my-auto not-prose",
80
80
  children: typeDescription
81
81
  })] }),
82
82
  defaultValue && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
83
83
  className: cn(fieldVariants()),
84
- children: t.typeTableDefault
84
+ children: t("Default")
85
85
  }), /* @__PURE__ */ jsx("p", {
86
86
  className: "my-auto not-prose",
87
87
  children: defaultValue
88
88
  })] }),
89
89
  parameters.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
90
90
  className: cn(fieldVariants()),
91
- children: t.typeTableParameters
91
+ children: t("Parameters")
92
92
  }), /* @__PURE__ */ jsx("div", {
93
93
  className: "flex flex-col gap-2",
94
94
  children: parameters.map((param) => /* @__PURE__ */ jsxs("div", {
@@ -104,7 +104,7 @@ function Item({ parentId, name, item: { parameters = [], description, required =
104
104
  })] }),
105
105
  returns && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
106
106
  className: cn(fieldVariants()),
107
- children: t.typeTableReturns
107
+ children: t("Returns")
108
108
  }), /* @__PURE__ */ jsx("div", {
109
109
  className: "my-auto text-sm prose prose-no-margin",
110
110
  children: returns
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import { ComponentProps } from "react";
3
2
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
4
3
 
@@ -6,25 +5,25 @@ import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
6
5
  declare function Accordion({
7
6
  className,
8
7
  ...props
9
- }: ComponentProps<typeof Accordion$1.Root>): _$react_jsx_runtime0.JSX.Element;
8
+ }: ComponentProps<typeof Accordion$1.Root>): import("react").JSX.Element;
10
9
  declare function AccordionItem({
11
10
  children,
12
11
  ...props
13
- }: ComponentProps<typeof Accordion$1.Item>): _$react_jsx_runtime0.JSX.Element;
12
+ }: ComponentProps<typeof Accordion$1.Item>): import("react").JSX.Element;
14
13
  declare function AccordionHeader({
15
14
  className,
16
15
  children,
17
16
  ...props
18
- }: ComponentProps<typeof Accordion$1.Header>): _$react_jsx_runtime0.JSX.Element;
17
+ }: ComponentProps<typeof Accordion$1.Header>): import("react").JSX.Element;
19
18
  declare function AccordionTrigger({
20
19
  className,
21
20
  children,
22
21
  ...props
23
- }: ComponentProps<typeof Accordion$1.Trigger>): _$react_jsx_runtime0.JSX.Element;
22
+ }: ComponentProps<typeof Accordion$1.Trigger>): import("react").JSX.Element;
24
23
  declare function AccordionContent({
25
24
  className,
26
25
  children,
27
26
  ...props
28
- }: ComponentProps<typeof Accordion$1.Panel>): _$react_jsx_runtime0.JSX.Element;
27
+ }: ComponentProps<typeof Accordion$1.Panel>): import("react").JSX.Element;
29
28
  //#endregion
30
29
  export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger };
@@ -1,12 +1,11 @@
1
1
  import { VariantProps } from "class-variance-authority";
2
- import * as _$class_variance_authority_types0 from "class-variance-authority/types";
3
2
 
4
3
  //#region src/components/ui/button.d.ts
5
4
  declare const buttonVariants: (props?: ({
6
5
  variant?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
7
6
  color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
8
7
  size?: "icon" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
9
- } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
9
  type ButtonProps = VariantProps<typeof buttonVariants>;
11
10
  //#endregion
12
11
  export { ButtonProps, buttonVariants };
@@ -1,17 +1,14 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
- import * as _$react from "react";
3
1
  import { ComponentProps } from "react";
4
2
  import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
5
- import * as _$_base_ui_react0 from "@base-ui/react";
6
3
 
7
4
  //#region src/components/ui/collapsible.d.ts
8
- declare const Collapsible: _$react.ForwardRefExoticComponent<Omit<_$_base_ui_react0.CollapsibleRootProps, "ref"> & _$react.RefAttributes<HTMLDivElement>>;
9
- declare const CollapsibleTrigger: _$react.ForwardRefExoticComponent<Omit<_$_base_ui_react0.CollapsibleTriggerProps, "ref"> & _$react.RefAttributes<HTMLButtonElement>>;
5
+ declare const Collapsible: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").CollapsibleRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").CollapsibleTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
10
7
  declare function CollapsibleContent({
11
8
  children,
12
9
  className,
13
10
  ...props
14
- }: ComponentProps<typeof Collapsible$1.Panel>): _$react_jsx_runtime0.JSX.Element;
11
+ }: ComponentProps<typeof Collapsible$1.Panel>): import("react").JSX.Element;
15
12
  type CollapsibleProps = Collapsible$1.Root.Props;
16
13
  type CollapsibleContentProps = Collapsible$1.Panel.Props;
17
14
  type CollapsibleTriggerProps = Collapsible$1.Trigger.Props;
@@ -1,30 +1,28 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React$1 from "react";
3
2
  import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-menu";
4
- import * as _$_base_ui_react0 from "@base-ui/react";
5
3
 
6
4
  //#region src/components/ui/navigation-menu.d.ts
7
5
  type NavigationMenuContentProps = NavigationMenu$1.Content.Props;
8
6
  type NavigationMenuTriggerProps = NavigationMenu$1.Trigger.Props;
9
7
  declare const NavigationMenu: <Value = any>(props: NavigationMenu$1.Root.Props<Value>) => React$1.JSX.Element;
10
- declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<_$_base_ui_react0.NavigationMenuListProps, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
8
+ declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").NavigationMenuListProps, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
11
9
  declare function NavigationMenuItem({
12
10
  className,
13
11
  children,
14
12
  ...props
15
- }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Item>): _$react_jsx_runtime0.JSX.Element;
13
+ }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Item>): React$1.JSX.Element;
16
14
  declare function NavigationMenuTrigger({
17
15
  children,
18
16
  ...props
19
- }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Trigger>): _$react_jsx_runtime0.JSX.Element;
17
+ }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Trigger>): React$1.JSX.Element;
20
18
  declare function NavigationMenuContent({
21
19
  className,
22
20
  ...props
23
- }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Content>): _$react_jsx_runtime0.JSX.Element;
21
+ }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Content>): React$1.JSX.Element;
24
22
  declare function NavigationMenuLink({
25
23
  children,
26
24
  ...props
27
- }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Link>): _$react_jsx_runtime0.JSX.Element;
28
- declare function NavigationMenuViewport(props: NavigationMenu$1.Positioner.Props): _$react_jsx_runtime0.JSX.Element;
25
+ }: React$1.ComponentPropsWithRef<typeof NavigationMenu$1.Link>): React$1.JSX.Element;
26
+ declare function NavigationMenuViewport(props: NavigationMenu$1.Positioner.Props): React$1.JSX.Element;
29
27
  //#endregion
30
28
  export { NavigationMenu, NavigationMenuContent, NavigationMenuContentProps, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuTriggerProps, NavigationMenuViewport };
@@ -1,7 +1,5 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React$1 from "react";
3
2
  import { Popover as Popover$1 } from "@base-ui/react/popover";
4
- import * as _$_base_ui_react0 from "@base-ui/react";
5
3
 
6
4
  //#region src/components/ui/popover.d.ts
7
5
  declare const Popover: typeof Popover$1.Root;
@@ -11,7 +9,7 @@ declare function PopoverContent({
11
9
  align,
12
10
  sideOffset,
13
11
  ...props
14
- }: React$1.ComponentPropsWithRef<typeof Popover$1.Popup> & Pick<Popover$1.Positioner.Props, 'sideOffset' | 'align'>): _$react_jsx_runtime0.JSX.Element;
15
- declare const PopoverClose: React$1.ForwardRefExoticComponent<Omit<_$_base_ui_react0.PopoverCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
12
+ }: React$1.ComponentPropsWithRef<typeof Popover$1.Popup> & Pick<Popover$1.Positioner.Props, 'sideOffset' | 'align'>): React$1.JSX.Element;
13
+ declare const PopoverClose: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
16
14
  //#endregion
17
15
  export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
@@ -1,4 +1,3 @@
1
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
2
1
  import * as React$1 from "react";
3
2
  import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
4
3
 
@@ -6,17 +5,17 @@ import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
6
5
  declare function ScrollArea({
7
6
  children,
8
7
  ...props
9
- }: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Root>): _$react_jsx_runtime0.JSX.Element;
8
+ }: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Root>): React$1.JSX.Element;
10
9
  declare function ScrollViewport({
11
10
  className,
12
11
  children,
13
12
  ...props
14
- }: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Viewport>): _$react_jsx_runtime0.JSX.Element;
13
+ }: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Viewport>): React$1.JSX.Element;
15
14
  declare function ScrollBar({
16
15
  className,
17
16
  orientation,
18
17
  ...props
19
- }: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Scrollbar>): _$react_jsx_runtime0.JSX.Element;
18
+ }: React$1.ComponentPropsWithRef<typeof ScrollArea$1.Scrollbar>): React$1.JSX.Element;
20
19
  type ScrollAreaProps = ScrollArea$1.Root.Props;
21
20
  //#endregion
22
21
  export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollViewport };