@fumadocs/base-ui 16.19.0 → 16.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
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$1 from "react";
2
+ import * as React from "react";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  export interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onValueChange'> {
5
5
  /**
@@ -17,14 +17,14 @@ export interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' |
17
17
  */
18
18
  label?: ReactNode;
19
19
  }
20
- export declare function TabsList({ className, ...props }: React$1.ComponentProps<typeof TabsList$1>): React$1.JSX.Element;
21
- export declare function TabsTrigger({ className, ...props }: React$1.ComponentProps<typeof TabsTrigger$1>): React$1.JSX.Element;
22
- export declare function Tabs({ ref, className, items, label, defaultIndex, defaultValue, ...props }: TabsProps): React$1.JSX.Element;
20
+ export declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsList$1>): React.JSX.Element;
21
+ export declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsTrigger$1>): React.JSX.Element;
22
+ export declare function Tabs({ ref, className, items, label, defaultIndex, defaultValue, ...props }: TabsProps): React.JSX.Element;
23
23
  export interface TabProps extends Omit<ComponentProps<typeof TabsContent$1>, 'value'> {
24
24
  /**
25
25
  * Value of tab, detect from index if unspecified.
26
26
  */
27
27
  value?: string;
28
28
  }
29
- export declare function Tab({ value, ...props }: TabProps): React$1.JSX.Element;
30
- export declare function TabsContent({ value, className, ...props }: ComponentProps<typeof TabsContent$1>): React$1.JSX.Element;
29
+ export declare function Tab({ value, ...props }: TabProps): React.JSX.Element;
30
+ export declare function TabsContent({ value, className, ...props }: ComponentProps<typeof TabsContent$1>): React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  import { Popover as Popover$1 } from "@base-ui/react/popover";
3
3
  export declare const Popover: typeof Popover$1.Root;
4
4
  export declare const PopoverTrigger: Popover$1.Trigger;
5
- export declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof Popover$1.Popup> & Pick<Popover$1.Positioner.Props, 'sideOffset' | 'align'>): React$1.JSX.Element;
6
- export declare const PopoverClose: React$1.ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
5
+ export declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof Popover$1.Popup> & Pick<Popover$1.Positioner.Props, 'sideOffset' | 'align'>): React.JSX.Element;
6
+ export declare const PopoverClose: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").PopoverCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -13,7 +13,7 @@ const Context = createContext(null);
13
13
  function TOCProvider(props) {
14
14
  return /* @__PURE__ */ jsx(TOCProvider$1, { ...props });
15
15
  }
16
- function useContext$1() {
16
+ function useContext() {
17
17
  return use(Context);
18
18
  }
19
19
  function TOC({ container, header, footer }) {
@@ -83,7 +83,7 @@ function TOC({ container, header, footer }) {
83
83
  }
84
84
  function TOCPanel({ className, style, ...props }) {
85
85
  const items = useTOCItems();
86
- const { open, inAnimation, setMobileOpen } = useContext$1();
86
+ const { open, inAnimation, setMobileOpen } = useContext();
87
87
  return /* @__PURE__ */ jsx("div", {
88
88
  className: cn("grid grid-cols-1 transition-[grid-template-rows]", open ? "[--row:calc(6*var(--spacing))]" : "[--row:calc(3*var(--spacing))] xl:[@media(hover:none)]:[--row:calc(6*var(--spacing))]", (!open || inAnimation) && "pointer-events-none xl:[@media(hover:none)]:pointer-events-auto", className),
89
89
  style: {
@@ -92,7 +92,7 @@ function OptionsMenu() {
92
92
  ]
93
93
  })]
94
94
  }),
95
- slots.languageSelect && /* @__PURE__ */ jsx(Languages$1, { className: "lg:hidden" }),
95
+ slots.languageSelect && /* @__PURE__ */ jsx(Languages, { className: "lg:hidden" }),
96
96
  iconLinks.length > 0 && /* @__PURE__ */ jsx("div", {
97
97
  className: "flex flex-col p-1 lg:hidden",
98
98
  children: iconLinks.map((item, i) => /* @__PURE__ */ jsxs(Menu.LinkItem, {
@@ -119,7 +119,7 @@ function OptionsMenu() {
119
119
  })
120
120
  }) })] });
121
121
  }
122
- function Languages$1({ className }) {
122
+ function Languages({ className }) {
123
123
  const { locale, locales = [], onChange } = useI18n();
124
124
  const t = useTranslations({ note: "language switcher" });
125
125
  return /* @__PURE__ */ jsx("div", {
package/dist/mdx.js CHANGED
@@ -4,11 +4,11 @@ import { Heading } from "./components/heading.js";
4
4
  import { cn } from "./utils/cn.js";
5
5
  import { CodeBlock, CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, Pre } from "./components/codeblock.js";
6
6
  import Link from "fumadocs-core/link";
7
- import { Image } from "fumadocs-core/framework";
7
+ import { Image as Image$1 } from "fumadocs-core/framework";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  // src/mdx.tsx
10
- function Image$1(props) {
11
- return /* @__PURE__ */ jsx(Image, {
10
+ function Image(props) {
11
+ return /* @__PURE__ */ jsx(Image$1, {
12
12
  sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 70vw, 900px",
13
13
  ...props,
14
14
  className: cn("rounded-lg", props.className)
@@ -33,7 +33,7 @@ const defaultMdxComponents = {
33
33
  Card,
34
34
  Cards,
35
35
  a: Link,
36
- img: Image$1,
36
+ img: Image,
37
37
  h1: (props) => /* @__PURE__ */ jsx(Heading, {
38
38
  as: "h1",
39
39
  ...props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fumadocs/base-ui",
3
- "version": "16.19.0",
3
+ "version": "16.19.1",
4
4
  "description": "The Base UI version of Fumadocs UI",
5
5
  "keywords": [
6
6
  "Docs",
@@ -143,15 +143,15 @@
143
143
  "@fumadocs/tailwind": "0.1.5",
144
144
  "class-variance-authority": "^0.7.1",
145
145
  "cn": "^0.5.2",
146
- "lucide-react": "^1.70.0",
147
- "motion": "^14.10.1",
146
+ "lucide-react": "^1.71.0",
147
+ "motion": "^14.12.0",
148
148
  "next-themes": "^0.4.6",
149
149
  "react-remove-scroll": "^2.7.2",
150
150
  "scroll-into-view-if-needed": "^3.1.0",
151
151
  "shiki": "^4.6.0"
152
152
  },
153
153
  "devDependencies": {
154
- "@fumadocs/cli": "1.9.0",
154
+ "@fumadocs/cli": "1.9.1",
155
155
  "@tailwindcss/cli": "^4.3.5",
156
156
  "@tailwindcss/oxide": "^4.3.5",
157
157
  "@tsdown/css": "^0.23.7",
@@ -160,7 +160,7 @@
160
160
  "@types/react": "^19.3.0",
161
161
  "@types/react-dom": "^19.3.0",
162
162
  "fuma-cli": "^0.3.4",
163
- "fumadocs-core": "16.19.0",
163
+ "fumadocs-core": "16.19.1",
164
164
  "react-medium-image-zoom": "^5.4.9",
165
165
  "tailwindcss": "^4.3.5",
166
166
  "tsconfig": "0.0.0",
@@ -169,7 +169,7 @@
169
169
  "peerDependencies": {
170
170
  "@types/mdx": "*",
171
171
  "@types/react": "*",
172
- "fumadocs-core": "16.19.0",
172
+ "fumadocs-core": "16.19.1",
173
173
  "next": "16.x.x",
174
174
  "react": "^19.2.0",
175
175
  "react-dom": "^19.2.0",