feat: add shadcn/registry (#6339)

* feat: implement shadcn/registry

* feat: add schema field

* fix: import

* chore: add changeset

* chore: remove console

* fix: tests

* fix: diff command

* feat: move to schema/registy-item.json

* fix

* ci: switch to node 20

* ci: build packages
This commit is contained in:
shadcn
2025-01-14 10:50:19 +04:00
committed by GitHub
parent 1081536246
commit 254198b4bf
695 changed files with 1679 additions and 402 deletions

View File

@@ -0,0 +1,5 @@
---
"shadcn": minor
---
add schema

View File

@@ -16,7 +16,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
name: Install pnpm name: Install pnpm
@@ -52,7 +52,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
name: Install pnpm name: Install pnpm
@@ -90,7 +90,7 @@ jobs:
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 20
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
name: Install pnpm name: Install pnpm
@@ -113,4 +113,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
- name: Build packages
run: pnpm --filter=shadcn build
- run: pnpm typecheck - run: pnpm typecheck

1
.npmrc
View File

@@ -1 +1,2 @@
auto-install-peers=true auto-install-peers=true
link-workspace-packages=true

11
apps/www/.eslintrc.json Normal file
View File

@@ -0,0 +1,11 @@
{
"$schema": "https://json.schemastore.org/eslintrc",
"overrides": [
{
"files": ["scripts/**/*.{ts,mts}"],
"parserOptions": {
"project": "tsconfig.scripts.json"
}
}
]
}

View File

@@ -1,4 +1,5 @@
import * as React from "react" import * as React from "react"
import { registryItemFileSchema } from "shadcn/registry"
import { z } from "zod" import { z } from "zod"
import { highlightCode } from "@/lib/highlight-code" import { highlightCode } from "@/lib/highlight-code"
@@ -7,7 +8,6 @@ import {
getRegistryItem, getRegistryItem,
} from "@/lib/registry" } from "@/lib/registry"
import { BlockViewer } from "@/components/block-viewer" import { BlockViewer } from "@/components/block-viewer"
import { registryItemFileSchema } from "@/registry/schema"
export async function BlockDisplay({ name }: { name: string }) { export async function BlockDisplay({ name }: { name: string }) {
const item = await getCachedRegistryItem(name) const item = await getCachedRegistryItem(name)

View File

@@ -16,6 +16,7 @@ import {
Terminal, Terminal,
} from "lucide-react" } from "lucide-react"
import { ImperativePanelHandle } from "react-resizable-panels" import { ImperativePanelHandle } from "react-resizable-panels"
import { registryItemFileSchema, registryItemSchema } from "shadcn/registry"
import { z } from "zod" import { z } from "zod"
import { trackEvent } from "@/lib/events" import { trackEvent } from "@/lib/events"
@@ -51,7 +52,6 @@ import {
ToggleGroupItem, ToggleGroupItem,
} from "@/registry/new-york/ui/toggle-group" } from "@/registry/new-york/ui/toggle-group"
import { Style } from "@/registry/registry-styles" import { Style } from "@/registry/registry-styles"
import { registryItemFileSchema, registryItemSchema } from "@/registry/schema"
type BlockViewerContext = { type BlockViewerContext = {
item: z.infer<typeof registryItemSchema> item: z.infer<typeof registryItemSchema>

View File

@@ -1,11 +1,11 @@
import * as React from "react" import * as React from "react"
import { registryItemSchema } from "shadcn/registry"
import { z } from "zod" import { z } from "zod"
import { highlightCode } from "@/lib/highlight-code" import { highlightCode } from "@/lib/highlight-code"
import { getRegistryItem } from "@/lib/registry" import { getRegistryItem } from "@/lib/registry"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { ChartToolbar } from "@/components/chart-toolbar" import { ChartToolbar } from "@/components/chart-toolbar"
import { registryItemSchema } from "@/registry/schema"
export type Chart = z.infer<typeof registryItemSchema> & { export type Chart = z.infer<typeof registryItemSchema> & {
highlightedCode: string highlightedCode: string

View File

@@ -1,9 +1,9 @@
"use server" "use server"
import { registryItemSchema } from "shadcn/registry"
import { z } from "zod" import { z } from "zod"
import { Style } from "@/registry/registry-styles" import { Style } from "@/registry/registry-styles"
import { registryItemSchema } from "@/registry/schema"
export async function getAllBlockIds( export async function getAllBlockIds(
types: z.infer<typeof registryItemSchema>["type"][] = [ types: z.infer<typeof registryItemSchema>["type"][] = [

View File

@@ -2,11 +2,11 @@ import { promises as fs } from "fs"
import { tmpdir } from "os" import { tmpdir } from "os"
import path from "path" import path from "path"
import { Index } from "@/__registry__" import { Index } from "@/__registry__"
import { registryItemFileSchema, registryItemSchema } from "shadcn/registry"
import { Project, ScriptKind, SourceFile, SyntaxKind } from "ts-morph" import { Project, ScriptKind, SourceFile, SyntaxKind } from "ts-morph"
import { z } from "zod" import { z } from "zod"
import { Style } from "@/registry/registry-styles" import { Style } from "@/registry/registry-styles"
import { registryItemFileSchema, registryItemSchema } from "@/registry/schema"
export const DEFAULT_REGISTRY_STYLE = "new-york" satisfies Style["name"] export const DEFAULT_REGISTRY_STYLE = "new-york" satisfies Style["name"]

View File

@@ -80,6 +80,7 @@
"react-resizable-panels": "^2.0.22", "react-resizable-panels": "^2.0.22",
"react-wrap-balancer": "^0.4.1", "react-wrap-balancer": "^0.4.1",
"recharts": "2.12.7", "recharts": "2.12.7",
"shadcn": "2.1.8",
"sharp": "^0.31.3", "sharp": "^0.31.3",
"sonner": "^1.2.3", "sonner": "^1.2.3",
"swr": "2.2.6-beta.3", "swr": "2.2.6-beta.3",

View File

@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/registry.json",
"name": "facebook",
"type": "registry:block",
"registryDependencies": [],
"dependencies": ["motion"],
"devDependencies": [],
"tailwind": {},
"cssVars": {
"light": {},
"dark": {}
},
"files": [
{
"path": "facebook.tsx",
"content": "'use client';\n\nimport type { Variants } from 'motion/react';\nimport { motion, useAnimation } from 'motion/react';\n\nconst facebookVariants: Variants = {\n normal: {\n opacity: 1,\n pathLength: 1,\n pathOffset: 0,\n transition: {\n duration: 0.4,\n opacity: { duration: 0.1 },\n },\n },\n animate: {\n opacity: [0, 1],\n pathLength: [0, 1],\n pathOffset: [1, 0],\n transition: {\n duration: 0.6,\n ease: 'linear',\n opacity: { duration: 0.1 },\n },\n },\n};\n\nconst FacebookIcon = () => {\n const controls = useAnimation();\n\n return (\n <div\n className=\"cursor-pointer select-none p-2 hover:bg-accent rounded-md transition-colors duration-200 flex items-center justify-center\"\n onMouseEnter={() => {\n controls.start('animate');\n }}\n onMouseLeave={() => {\n controls.start('normal');\n }}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <motion.path\n variants={facebookVariants}\n animate={controls}\n initial=\"normal\"\n d=\"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z\"\n />\n </svg>\n </div>\n );\n};\n\nexport { FacebookIcon };\n",
"type": "registry:ui"
}
]
}

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "accordion-demo", "name": "accordion-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"accordion" "accordion"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "accordion", "name": "accordion",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"@radix-ui/react-accordion" "@radix-ui/react-accordion"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "alert-demo", "name": "alert-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"alert" "alert"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "alert-destructive", "name": "alert-destructive",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"alert" "alert"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "alert-dialog-demo", "name": "alert-dialog-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"alert-dialog", "alert-dialog",
"button" "button"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "alert-dialog", "name": "alert-dialog",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"@radix-ui/react-alert-dialog" "@radix-ui/react-alert-dialog"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "alert", "name": "alert",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "ui/alert.tsx", "path": "ui/alert.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "aspect-ratio-demo", "name": "aspect-ratio-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"aspect-ratio" "aspect-ratio"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "aspect-ratio", "name": "aspect-ratio",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"@radix-ui/react-aspect-ratio" "@radix-ui/react-aspect-ratio"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "avatar-demo", "name": "avatar-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"avatar" "avatar"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "avatar", "name": "avatar",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"@radix-ui/react-avatar" "@radix-ui/react-avatar"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "badge-demo", "name": "badge-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"badge" "badge"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "badge-destructive", "name": "badge-destructive",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"badge" "badge"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "badge-outline", "name": "badge-outline",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"badge" "badge"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "badge-secondary", "name": "badge-secondary",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"badge" "badge"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "badge", "name": "badge",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "ui/badge.tsx", "path": "ui/badge.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "breadcrumb-demo", "name": "breadcrumb-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"breadcrumb" "breadcrumb"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "breadcrumb-dropdown", "name": "breadcrumb-dropdown",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"breadcrumb" "breadcrumb"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "breadcrumb-ellipsis", "name": "breadcrumb-ellipsis",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"breadcrumb" "breadcrumb"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "breadcrumb-link", "name": "breadcrumb-link",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"breadcrumb" "breadcrumb"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "breadcrumb-responsive", "name": "breadcrumb-responsive",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"breadcrumb" "breadcrumb"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "breadcrumb-separator", "name": "breadcrumb-separator",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"breadcrumb" "breadcrumb"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "breadcrumb", "name": "breadcrumb",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"@radix-ui/react-slot" "@radix-ui/react-slot"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-as-child", "name": "button-as-child",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-demo", "name": "button-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-destructive", "name": "button-destructive",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-ghost", "name": "button-ghost",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-icon", "name": "button-icon",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-link", "name": "button-link",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-loading", "name": "button-loading",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-outline", "name": "button-outline",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-secondary", "name": "button-secondary",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button-with-icon", "name": "button-with-icon",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button" "button"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "button", "name": "button",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"@radix-ui/react-slot" "@radix-ui/react-slot"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "calendar-demo", "name": "calendar-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"calendar" "calendar"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "calendar-form", "name": "calendar-form",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"calendar", "calendar",
"form", "form",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "calendar", "name": "calendar",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"react-day-picker@8.10.1", "react-day-picker@8.10.1",
"date-fns" "date-fns"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "card-demo", "name": "card-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"button", "button",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "card-with-form", "name": "card-with-form",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"button", "button",
"card", "card",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "card", "name": "card",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "ui/card.tsx", "path": "ui/card.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "carousel-api", "name": "carousel-api",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"carousel" "carousel"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "carousel-demo", "name": "carousel-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"carousel" "carousel"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "carousel-orientation", "name": "carousel-orientation",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"carousel" "carousel"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "carousel-plugin", "name": "carousel-plugin",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"carousel" "carousel"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "carousel-size", "name": "carousel-size",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"carousel" "carousel"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "carousel-spacing", "name": "carousel-spacing",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"carousel" "carousel"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "carousel", "name": "carousel",
"type": "registry:ui", "type": "registry:ui",
"author": "shadcn (https://ui.shadcn.com)",
"dependencies": [ "dependencies": [
"embla-carousel-react" "embla-carousel-react"
], ],

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-axes", "name": "chart-area-axes",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-default", "name": "chart-area-default",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-gradient", "name": "chart-area-gradient",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-icons", "name": "chart-area-icons",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-interactive", "name": "chart-area-interactive",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart", "chart",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-legend", "name": "chart-area-legend",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-linear", "name": "chart-area-linear",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-stacked-expand", "name": "chart-area-stacked-expand",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-stacked", "name": "chart-area-stacked",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-area-step", "name": "chart-area-step",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-active", "name": "chart-bar-active",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-default", "name": "chart-bar-default",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-demo-axis", "name": "chart-bar-demo-axis",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "examples/chart-bar-demo-axis.tsx", "path": "examples/chart-bar-demo-axis.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-demo-grid", "name": "chart-bar-demo-grid",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "examples/chart-bar-demo-grid.tsx", "path": "examples/chart-bar-demo-grid.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-demo-legend", "name": "chart-bar-demo-legend",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "examples/chart-bar-demo-legend.tsx", "path": "examples/chart-bar-demo-legend.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-demo-tooltip", "name": "chart-bar-demo-tooltip",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "examples/chart-bar-demo-tooltip.tsx", "path": "examples/chart-bar-demo-tooltip.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-demo", "name": "chart-bar-demo",
"type": "registry:example", "type": "registry:example",
"author": "shadcn (https://ui.shadcn.com)",
"files": [ "files": [
{ {
"path": "examples/chart-bar-demo.tsx", "path": "examples/chart-bar-demo.tsx",

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-horizontal", "name": "chart-bar-horizontal",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-interactive", "name": "chart-bar-interactive",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-label-custom", "name": "chart-bar-label-custom",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-label", "name": "chart-bar-label",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-mixed", "name": "chart-bar-mixed",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-multiple", "name": "chart-bar-multiple",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-negative", "name": "chart-bar-negative",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-bar-stacked", "name": "chart-bar-stacked",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-default", "name": "chart-line-default",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-dots-colors", "name": "chart-line-dots-colors",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-dots-custom", "name": "chart-line-dots-custom",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-dots", "name": "chart-line-dots",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-interactive", "name": "chart-line-interactive",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-label-custom", "name": "chart-line-label-custom",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-label", "name": "chart-line-label",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-linear", "name": "chart-line-linear",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-multiple", "name": "chart-line-multiple",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-line-step", "name": "chart-line-step",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-pie-donut-active", "name": "chart-pie-donut-active",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-pie-donut-text", "name": "chart-pie-donut-text",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-pie-donut", "name": "chart-pie-donut",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-pie-interactive", "name": "chart-pie-interactive",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-pie-label-custom", "name": "chart-pie-label-custom",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-pie-label-list", "name": "chart-pie-label-list",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

View File

@@ -1,6 +1,8 @@
{ {
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "chart-pie-label", "name": "chart-pie-label",
"type": "registry:block", "type": "registry:block",
"author": "shadcn (https://ui.shadcn.com)",
"registryDependencies": [ "registryDependencies": [
"card", "card",
"chart" "chart"

Some files were not shown because too many files have changed in this diff Show More