Skip to content

Commit 60ba70e

Browse files
committed
Merge remote-tracking branch 'origin/upstream'
2 parents 2a33c9d + 6d467d2 commit 60ba70e

File tree

8 files changed

+46
-11
lines changed

8 files changed

+46
-11
lines changed

apps/v4/app/(app)/docs/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export default async function Page(props: {
183183
<div className="sticky top-[calc(var(--header-height)+1px)] z-30 ml-auto hidden h-[90svh] w-72 flex-col gap-4 overflow-hidden overscroll-none pb-8 lg:flex">
184184
<div className="h-(--top-spacing) shrink-0"></div>
185185
<div className="px-8">
186-
<div className="wwads-cn wwads-vertical w-full my-6" data-id="354" />
186+
<div className="wwads-cn wwads-vertical my-6" data-id="354" style={{ maxWidth: "200px" }} />
187187
</div>
188188
{doc.toc?.length ? (
189189
<div className="no-scrollbar flex flex-col gap-8 overflow-y-auto px-8">

apps/v4/content/docs/(root)/figma.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ description: Figma 中重新创建的每个组件。支持可自定义属性、
99

1010
## 免费
1111

12-
- [Obra shadcn/ui](https://www.figma.com/community/file/1514746685758799870/obra-shadcn-ui)[Obra Studio](https://obra.studio/) 提供 - 精心打造的套件,采用 shadcn 哲学设计,跟踪 v4,MIT 许可
13-
- [shadcn/ui 设计系统](https://www.figma.com/community/file/1203061493325953101)[Pietro Schirano](https://twitter.com/skirano) 提供 - shadcn/ui 的设计伴侣。每个组件都经过精心制作,完美匹配代码实现。
12+
- [Obra shadcn/ui](https://www.figma.com/community/file/1514746685758799870/obra-shadcn-ui)[Obra Studio](https://obra.studio/) 提供 - 精心打造的 shadcn/ui 套件,MIT 许可,由设计师团队维护,配有免费的设计转代码插件
13+
- [shadcn/ui 组件](https://www.figma.com/community/file/1342715840824755935)[Sitsiilia Bergmann](https://x.com/sitsiilia) 提供 - 结构良好的组件库,与 shadcn 组件系统保持一致,定期维护。
14+
- [shadcn/ui 设计系统](https://www.figma.com/community/file/1203061493325953101)[Pietro Schirano](https://twitter.com/skirano) 提供 - shadcn/ui 的设计伴侣。每个组件都经过精心打造,与代码实现完美匹配。
1415

1516
## 付费
1617

apps/v4/content/docs/components/base/dropdown-menu.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ featured: true
55
base: base
66
component: true
77
links:
8-
doc: https://base-ui.com/react/components/dropdown-menu
9-
api: https://base-ui.com/react/components/dropdown-menu#api-reference
8+
doc: https://base-ui.com/react/components/menu
9+
api: https://base-ui.com/react/components/menu#api-reference
1010
---
1111

1212
<ComponentPreview
@@ -162,4 +162,4 @@ import {
162162

163163
## API 参考
164164

165-
完整 API 参考请参阅 [Base UI 文档](https://base-ui.com/react/components/dropdown-menu)
165+
完整 API 参考请参阅 [Base UI 文档](https://base-ui.com/react/components/menu)

apps/v4/content/docs/components/base/navigation-menu.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ npx shadcn@latest add navigation-menu
3737
<Step>安装以下依赖:</Step>
3838

3939
```bash
40-
npm install @base-ui-components/react
40+
npm install @base-ui/react
4141
```
4242

4343
<Step>将以下代码复制并粘贴到您的项目中。</Step>
4444

4545
<ComponentSource
4646
name="navigation-menu"
4747
title="components/ui/navigation-menu.tsx"
48+
styleName="base-nova"
4849
/>
4950

5051
<Step>更新导入路径以匹配您的项目配置。</Step>

apps/v4/lib/highlight-code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function highlightCode(code: string, language: string = "tsx") {
8787
{
8888
pre(node) {
8989
node.properties["class"] =
90-
"no-scrollbar min-w-0 overflow-x-auto overscroll-none px-4 py-3.5 outline-none has-[[data-highlighted-line]]:px-0 has-[[data-line-numbers]]:px-0 has-[[data-slot=tabs]]:p-0 !bg-transparent"
90+
"no-scrollbar min-w-0 overflow-x-auto overflow-y-auto overscroll-x-contain overscroll-y-auto px-4 py-3.5 outline-none has-[[data-highlighted-line]]:px-0 has-[[data-line-numbers]]:px-0 has-[[data-slot=tabs]]:p-0 !bg-transparent"
9191
},
9292
code(node) {
9393
node.properties["data-line-numbers"] = ""

apps/v4/mdx-components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export const mdxComponents = {
190190
return (
191191
<pre
192192
className={cn(
193-
"no-scrollbar min-w-0 overflow-x-auto overscroll-none px-4 py-3.5 outline-none has-[[data-highlighted-line]]:px-0 has-[[data-line-numbers]]:px-0 has-[[data-slot=tabs]]:p-0",
193+
"no-scrollbar min-w-0 overflow-x-auto overflow-y-auto overscroll-x-contain overscroll-y-auto px-4 py-3.5 outline-none has-[[data-highlighted-line]]:px-0 has-[[data-line-numbers]]:px-0 has-[[data-slot=tabs]]:p-0",
194194
className
195195
)}
196196
{...props}

apps/v4/public/r/registries.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
{
8787
"name": "@basecn",
8888
"homepage": "https://basecn.dev",
89-
"url": "https://basecn.dev/r/{name}",
89+
"url": "https://basecn.dev/r/{name}.json",
9090
"description": "Beautifully crafted shadcn/ui components powered by Base UI"
9191
},
9292
{
@@ -431,6 +431,12 @@
431431
"url": "https://roiui.com/r/{name}.json",
432432
"description": "Roi UI is a library that offers UI components and blocks built with Base UI primitives. Some blocks and components use motion (framer). Everything is open-source and will be forever."
433433
},
434+
{
435+
"name": "@satoriui",
436+
"homepage": "https://satoriui.site",
437+
"url": "https://satoriui.site/r/{name}.json",
438+
"description": "A comprehensive suite of high-fidelity interaction components. It offers motion-driven components that designed with motion-react and tailwindcss, that blends seamlessly."
439+
},
434440
{
435441
"name": "@solaceui",
436442
"homepage": "https://www.solaceui.com",
@@ -688,5 +694,11 @@
688694
"homepage": "https://typedora-ui.netlify.app",
689695
"url": "https://typedora-ui.netlify.app/r/{name}.json",
690696
"description": "Typedora UI is a next-generation extension layer for shadcn/ui, designed to bring full type-safety to your UI components."
697+
},
698+
{
699+
"name": "@shadcn-space",
700+
"homepage": "https://shadcnspace.com/",
701+
"url": "https://shadcnspace.com/r/{name}.json",
702+
"description": "An open-source collection of production-ready Shadcn UI blocks, components, and templates for websites, admin dashboards and modern React web projects, built with Tailwind CSS and ready to copy-paste or install via the Shadcn CLI."
691703
}
692704
]

0 commit comments

Comments
 (0)