fumadocs-ui 16.6.7 → 16.6.9

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.
@@ -822,6 +822,7 @@
822
822
  @source inline("rtl");
823
823
  @source inline("rtl:-scale-x-100");
824
824
  @source inline("rtl:rotate-180");
825
+ @source inline("rtl:rotate-90");
825
826
  @source inline("s");
826
827
  @source inline("scroll");
827
828
  @source inline("scroll-into-view-if-needed");
package/css/lib/base.css CHANGED
@@ -175,7 +175,7 @@
175
175
  @utility fd-steps {
176
176
  counter-reset: step;
177
177
  position: relative;
178
- @apply pl-6 ml-2 border-l sm:ml-4 sm:pl-7;
178
+ @apply ps-6 ms-2 border-s sm:ms-4 sm:ps-7;
179
179
  }
180
180
 
181
181
  @utility fd-step {
@@ -0,0 +1,21 @@
1
+ import { CodeBlockProps } from "./codeblock.js";
2
+ import * as react from "react";
3
+ import { HighlightOptions } from "fumadocs-core/highlight";
4
+
5
+ //#region src/components/codeblock.rsc.d.ts
6
+ type ServerCodeBlockProps = HighlightOptions & {
7
+ code: string;
8
+ /**
9
+ * Extra props for the underlying `<CodeBlock />` component.
10
+ *
11
+ * Ignored if you defined your own `pre` component in `components`.
12
+ */
13
+ codeblock?: CodeBlockProps;
14
+ };
15
+ declare function ServerCodeBlock({
16
+ code,
17
+ codeblock,
18
+ ...options
19
+ }: ServerCodeBlockProps): Promise<react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | (string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined)>;
20
+ //#endregion
21
+ export { ServerCodeBlock, ServerCodeBlockProps };
@@ -0,0 +1,23 @@
1
+ import { cn } from "../utils/cn.js";
2
+ import { CodeBlock, Pre } from "./codeblock.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { highlight } from "fumadocs-core/highlight";
5
+
6
+ //#region src/components/codeblock.rsc.tsx
7
+ async function ServerCodeBlock({ code, codeblock, ...options }) {
8
+ return await highlight(code, {
9
+ ...options,
10
+ components: {
11
+ pre: (props) => {
12
+ CodeBlock, {
13
+ ...props,
14
+ ...codeblock
15
+ }, cn("my-0", props.className, codeblock?.className), Pre, props.children;
16
+ },
17
+ ...options.components
18
+ }
19
+ });
20
+ }
21
+
22
+ //#endregion
23
+ export { ServerCodeBlock };
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { DynamicCodeBlock as DynamicCodeBlock$1 } from "./dynamic-codeblock.core.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import { useShikiConfigOptional } from "fumadocs-core/highlight/core/client";
6
5
  import { configDefault } from "fumadocs-core/highlight";
6
+ import { useShikiConfigOptional } from "fumadocs-core/highlight/core/client";
7
7
 
8
8
  //#region src/components/dynamic-codeblock.tsx
9
9
  function DynamicCodeBlock(props) {
@@ -179,7 +179,7 @@ function SidebarFolderTrigger({ children, ...props }) {
179
179
  ...props,
180
180
  children: [children, /* @__PURE__ */ jsx(ChevronDown, {
181
181
  "data-icon": true,
182
- className: cn("ms-auto transition-transform", !open && "-rotate-90")
182
+ className: cn("ms-auto transition-transform", !open && "-rotate-90 rtl:rotate-90")
183
183
  })]
184
184
  });
185
185
  return /* @__PURE__ */ jsx("div", {
@@ -206,7 +206,7 @@ function SidebarFolderLink({ children, active = false, ...props }) {
206
206
  ...props,
207
207
  children: [children, collapsible && /* @__PURE__ */ jsx(ChevronDown, {
208
208
  "data-icon": true,
209
- className: cn("ms-auto transition-transform", !open && "-rotate-90")
209
+ className: cn("ms-auto transition-transform", !open && "-rotate-90 rtl:rotate-90")
210
210
  })]
211
211
  });
212
212
  }
@@ -5,7 +5,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
5
5
  declare const buttonVariants: (props?: ({
6
6
  variant?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
7
7
  color?: "primary" | "outline" | "ghost" | "secondary" | null | undefined;
8
- size?: "sm" | "icon" | "icon-sm" | "icon-xs" | null | undefined;
8
+ size?: "icon" | "sm" | "icon-sm" | "icon-xs" | null | undefined;
9
9
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  type ButtonProps = VariantProps<typeof buttonVariants>;
11
11
  //#endregion
@@ -4,7 +4,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
4
4
 
5
5
  //#region src/layouts/home/client.d.ts
6
6
  declare const navItemVariants: (props?: ({
7
- variant?: "button" | "main" | "icon" | null | undefined;
7
+ variant?: "icon" | "main" | "button" | null | undefined;
8
8
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
9
9
  declare function Header({
10
10
  nav,
package/dist/style.css CHANGED
@@ -268,15 +268,15 @@
268
268
  .fd-steps {
269
269
  counter-reset: step;
270
270
  position: relative;
271
- margin-left: calc(var(--spacing) * 2);
272
- border-left-style: var(--tw-border-style);
273
- border-left-width: 1px;
274
- padding-left: calc(var(--spacing) * 6);
271
+ margin-inline-start: calc(var(--spacing) * 2);
272
+ border-inline-start-style: var(--tw-border-style);
273
+ border-inline-start-width: 1px;
274
+ padding-inline-start: calc(var(--spacing) * 6);
275
275
  @media (width >= 40rem) {
276
- margin-left: calc(var(--spacing) * 4);
276
+ margin-inline-start: calc(var(--spacing) * 4);
277
277
  }
278
278
  @media (width >= 40rem) {
279
- padding-left: calc(var(--spacing) * 7);
279
+ padding-inline-start: calc(var(--spacing) * 7);
280
280
  }
281
281
  }
282
282
  .absolute {
@@ -2726,6 +2726,11 @@
2726
2726
  scale: var(--tw-scale-x) var(--tw-scale-y);
2727
2727
  }
2728
2728
  }
2729
+ .rtl\:rotate-90 {
2730
+ &:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
2731
+ rotate: 90deg;
2732
+ }
2733
+ }
2729
2734
  .rtl\:rotate-180 {
2730
2735
  &:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
2731
2736
  rotate: 180deg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "16.6.7",
3
+ "version": "16.6.9",
4
4
  "description": "The Radix UI version of Fumadocs UI",
5
5
  "keywords": [
6
6
  "Docs",
@@ -126,29 +126,29 @@
126
126
  "scroll-into-view-if-needed": "^3.1.0",
127
127
  "tailwind-merge": "^3.5.0",
128
128
  "unist-util-visit": "^5.1.0",
129
- "@fumadocs/tailwind": "0.0.2"
129
+ "@fumadocs/tailwind": "0.0.3"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@tailwindcss/cli": "^4.2.1",
133
133
  "@types/hast": "^3.0.4",
134
- "@types/node": "^25.3.1",
134
+ "@types/node": "^25.3.3",
135
135
  "@types/react": "^19.2.14",
136
136
  "@types/react-dom": "^19.2.3",
137
137
  "tailwindcss": "^4.2.1",
138
138
  "tsdown": "0.20.3",
139
139
  "unified": "^11.0.5",
140
- "@fumadocs/cli": "1.2.4",
141
- "tsconfig": "0.0.0",
140
+ "@fumadocs/cli": "1.2.5",
142
141
  "eslint-config-custom": "0.0.0",
143
- "fumadocs-core": "16.6.7"
142
+ "fumadocs-core": "16.6.9",
143
+ "tsconfig": "0.0.0"
144
144
  },
145
145
  "peerDependencies": {
146
- "@takumi-rs/image-response": "^0.68.17",
146
+ "@takumi-rs/image-response": "*",
147
147
  "@types/react": "*",
148
148
  "next": "16.x.x",
149
149
  "react": "^19.2.0",
150
150
  "react-dom": "^19.2.0",
151
- "fumadocs-core": "16.6.7"
151
+ "fumadocs-core": "16.6.9"
152
152
  },
153
153
  "peerDependenciesMeta": {
154
154
  "next": {