snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
12
packages/tests/fixtures/registry/example-at-property.json
vendored
Normal file
12
packages/tests/fixtures/registry/example-at-property.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-at-property",
|
||||
"type": "registry:style",
|
||||
"css": {
|
||||
"@property --foo": {
|
||||
"syntax": "'<number>'",
|
||||
"inherits": "false",
|
||||
"initial-value": "0"
|
||||
}
|
||||
}
|
||||
}
|
||||
12
packages/tests/fixtures/registry/example-component.json
vendored
Normal file
12
packages/tests/fixtures/registry/example-component.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-component",
|
||||
"type": "registry:component",
|
||||
"files": [
|
||||
{
|
||||
"path": "example/hello-world.tsx",
|
||||
"type": "registry:component",
|
||||
"content": "console.log('Hello, world!')"
|
||||
}
|
||||
]
|
||||
}
|
||||
10
packages/tests/fixtures/registry/example-env-vars.json
vendored
Normal file
10
packages/tests/fixtures/registry/example-env-vars.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-env-vars",
|
||||
"type": "registry:item",
|
||||
"envVars": {
|
||||
"APP_URL": "https://example.com",
|
||||
"EMPTY_VAR": "",
|
||||
"MULTILINE_VAR": "\"line1\nline2\nline3\""
|
||||
}
|
||||
}
|
||||
13
packages/tests/fixtures/registry/example-item-to-root.json
vendored
Normal file
13
packages/tests/fixtures/registry/example-item-to-root.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-item-to-root",
|
||||
"type": "registry:item",
|
||||
"files": [
|
||||
{
|
||||
"path": "example/config.json",
|
||||
"type": "registry:item",
|
||||
"content": "{\"foo\": \"bar\"}",
|
||||
"target": "~/config.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
13
packages/tests/fixtures/registry/example-item.json
vendored
Normal file
13
packages/tests/fixtures/registry/example-item.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-item",
|
||||
"type": "registry:item",
|
||||
"files": [
|
||||
{
|
||||
"path": "example/foo.txt",
|
||||
"type": "registry:item",
|
||||
"content": "Foo Bar",
|
||||
"target": "path/to/foo.txt"
|
||||
}
|
||||
]
|
||||
}
|
||||
18
packages/tests/fixtures/registry/example-style.json
vendored
Normal file
18
packages/tests/fixtures/registry/example-style.json
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-style",
|
||||
"type": "registry:style",
|
||||
"dependencies": ["@tabler/icons-react"],
|
||||
"cssVars": {
|
||||
"theme": {
|
||||
"font-sans": "Inter, sans-serif"
|
||||
},
|
||||
"light": {
|
||||
"brand": "oklch(20 14.3% 4.1%)",
|
||||
"brand-foreground": "oklch(24 1.3% 10%)"
|
||||
},
|
||||
"dark": {
|
||||
"brand": "oklch(24 1.3% 10%)"
|
||||
}
|
||||
}
|
||||
}
|
||||
19
packages/tests/fixtures/registry/example-target-alias-child.json
vendored
Normal file
19
packages/tests/fixtures/registry/example-target-alias-child.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-target-alias-child",
|
||||
"type": "registry:component",
|
||||
"files": [
|
||||
{
|
||||
"path": "registry/example-target-alias-child/ui/dependency-button.tsx",
|
||||
"type": "registry:ui",
|
||||
"content": "export function DependencyButton() {\n return <button>Dependency Button</button>\n}\n",
|
||||
"target": "@ui/dependency-button.tsx"
|
||||
},
|
||||
{
|
||||
"path": "registry/example-target-alias-child/lib/dependency-helper.ts",
|
||||
"type": "registry:lib",
|
||||
"content": "export function dependencyHelper() {\n return \"dependency-helper\"\n}\n",
|
||||
"target": "@lib/dependency-helper.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
22
packages/tests/fixtures/registry/example-target-alias-parent.json
vendored
Normal file
22
packages/tests/fixtures/registry/example-target-alias-parent.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-target-alias-parent",
|
||||
"type": "registry:component",
|
||||
"registryDependencies": [
|
||||
"../../fixtures/registry/example-target-alias-child.json"
|
||||
],
|
||||
"files": [
|
||||
{
|
||||
"path": "registry/example-target-alias-parent/components/dependency-panel.tsx",
|
||||
"type": "registry:component",
|
||||
"content": "export function DependencyPanel() {\n return <div>Dependency Panel</div>\n}\n",
|
||||
"target": "@components/dependency-panel.tsx"
|
||||
},
|
||||
{
|
||||
"path": "registry/example-target-alias-parent/hooks/use-dependency.ts",
|
||||
"type": "registry:hook",
|
||||
"content": "export function useDependency() {\n return \"dependency\"\n}\n",
|
||||
"target": "@hooks/use-dependency.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
13
packages/tests/fixtures/registry/example-target-alias-type-mismatch.json
vendored
Normal file
13
packages/tests/fixtures/registry/example-target-alias-type-mismatch.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-target-alias-type-mismatch",
|
||||
"type": "registry:component",
|
||||
"files": [
|
||||
{
|
||||
"path": "registry/example-target-alias-type-mismatch/ui/target-from-ui-type.ts",
|
||||
"type": "registry:ui",
|
||||
"content": "export function targetFromUiType() {\n return \"target-from-ui-type\"\n}\n",
|
||||
"target": "@lib/target-from-ui-type.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
31
packages/tests/fixtures/registry/example-target-aliases.json
vendored
Normal file
31
packages/tests/fixtures/registry/example-target-aliases.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
||||
"name": "example-target-aliases",
|
||||
"type": "registry:component",
|
||||
"files": [
|
||||
{
|
||||
"path": "registry/example-target-aliases/ui/target-button.tsx",
|
||||
"type": "registry:ui",
|
||||
"content": "export function TargetButton() {\n return <button>Target Button</button>\n}\n",
|
||||
"target": "@ui/target-button.tsx"
|
||||
},
|
||||
{
|
||||
"path": "registry/example-target-aliases/components/target-panel.tsx",
|
||||
"type": "registry:component",
|
||||
"content": "export function TargetPanel() {\n return <div>Target Panel</div>\n}\n",
|
||||
"target": "@components/target-panel.tsx"
|
||||
},
|
||||
{
|
||||
"path": "registry/example-target-aliases/lib/target-helper.ts",
|
||||
"type": "registry:lib",
|
||||
"content": "export function targetHelper() {\n return \"target-helper\"\n}\n",
|
||||
"target": "@lib/target-helper.ts"
|
||||
},
|
||||
{
|
||||
"path": "registry/example-target-aliases/hooks/use-target.ts",
|
||||
"type": "registry:hook",
|
||||
"content": "export function useTarget() {\n return \"target\"\n}\n",
|
||||
"target": "@hooks/use-target.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user