修改后台权限

This commit is contained in:
yoyuzh
2026-03-24 14:30:59 +08:00
parent 00f902f475
commit b2d9db7be9
9310 changed files with 1246063 additions and 48 deletions

21
node_modules/shadcn/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 shadcn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

51
node_modules/shadcn/README.md generated vendored Normal file
View File

@@ -0,0 +1,51 @@
# shadcn
A CLI for adding components to your project.
## create
Use the `create` command to create a new project. You will be taken to a website to build your custom design system and choose your framework.
```bash
npx shadcn create
```
## init
Use the `init` command to initialize dependencies for a new project.
The `init` command installs dependencies, adds the `cn` util, configures Tailwind CSS, and CSS variables for the project.
```bash
npx shadcn init
```
## add
Use the `add` command to add components to your project.
The `add` command adds a component to your project and installs all required dependencies.
```bash
npx shadcn add [component]
```
### Example
```bash
npx shadcn add alert-dialog
```
You can also run the command without any arguments to view a list of all available components:
```bash
npx shadcn add
```
## Documentation
Visit https://ui.shadcn.com/docs/cli to view the documentation.
## License
Licensed under the [MIT license](https://github.com/shadcn-ui/ui/blob/main/LICENSE.md).

33
node_modules/shadcn/dist/chunk-BT5UJFAL.js generated vendored Normal file

File diff suppressed because one or more lines are too long

119
node_modules/shadcn/dist/chunk-C7EWIKNS.js generated vendored Normal file

File diff suppressed because one or more lines are too long

2
node_modules/shadcn/dist/chunk-CHWMSXYA.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
var e={lucide:{name:"lucide",title:"Lucide",packages:["lucide-react"],import:"import { ICON } from 'lucide-react'",usage:"<ICON />",export:"lucide-react"},tabler:{name:"tabler",title:"Tabler Icons",packages:["@tabler/icons-react"],import:"import { ICON } from '@tabler/icons-react'",usage:"<ICON />",export:"@tabler/icons-react"},hugeicons:{name:"hugeicons",title:"HugeIcons",packages:["@hugeicons/react","@hugeicons/core-free-icons"],import:`import { HugeiconsIcon } from '@hugeicons/react'
import { ICON } from '@hugeicons/core-free-icons';`,usage:"<HugeiconsIcon icon={ICON} strokeWidth={2} />",export:"@hugeicons/core-free-icons"},phosphor:{name:"phosphor",title:"Phosphor Icons",packages:["@phosphor-icons/react"],import:"import { ICON } from '@phosphor-icons/react'",usage:"<ICON strokeWidth={2} />",export:"@phosphor-icons/react"},remixicon:{name:"remixicon",title:"Remix Icon",packages:["@remixicon/react"],import:"import { ICON } from '@remixicon/react'",usage:"<ICON />",export:"@remixicon/react"}};export{e as a};

1
node_modules/shadcn/dist/chunk-HW2MEAJZ.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/shadcn/dist/chunk-SD5CAHKQ.js generated vendored Normal file
View File

@@ -0,0 +1 @@
var A=["radix","base"],m=["nova","vega","maia","lyra","mira"],p=["neutral","stone","zinc","gray","mauve","olive","mist","taupe"],c=["neutral","stone","zinc","gray","amber","blue","cyan","emerald","fuchsia","green","indigo","lime","orange","pink","purple","red","rose","sky","teal","violet","yellow","mauve","olive","mist","taupe"],b=c,I={neutral:"blue",stone:"lime",zinc:"amber",mauve:"emerald",olive:"violet",mist:"rose",taupe:"cyan"},R=["lucide","hugeicons","tabler","phosphor","remixicon"],E=["inter","noto-sans","nunito-sans","figtree","roboto","raleway","dm-sans","public-sans","outfit","jetbrains-mono","geist","geist-mono","lora","merriweather","playfair-display","noto-serif","roboto-slab","oxanium","manrope","space-grotesk","montserrat","ibm-plex-sans","source-sans-3","instrument-sans"],g=["inherit",...E],_=["default","none","small","medium","large"],y=["subtle","bold"],d=["default","inverted","default-translucent","inverted-translucent"],f=[{key:"menuColor",values:d,bits:3},{key:"menuAccent",values:y,bits:3},{key:"radius",values:_,bits:4},{key:"font",values:E,bits:6},{key:"iconLibrary",values:R,bits:6},{key:"theme",values:c,bits:6},{key:"baseColor",values:p,bits:6},{key:"style",values:m,bits:6}],a=[...f,{key:"chartColor",values:b,bits:6},{key:"fontHeading",values:g,bits:5}],T=Object.fromEntries(a.map(e=>[e.key,e.values[0]])),l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",P="b",S=["a","b"];function C(e){if(e===0)return "0";let t="",n=e;for(;n>0;)t=l[n%62]+t,n=Math.floor(n/62);return t}function x(e){let t=0;for(let n=0;n<e.length;n++){let s=l.indexOf(e[n]);if(s===-1)return -1;t=t*62+s;}return t}function O(e){let t={...T,...e},n=0,s=0;for(let o of a){let i=o.values.indexOf(t[o.key]);n+=(i===-1?0:i)*2**s,s+=o.bits;}return P+C(n)}function v(e){if(!e||e.length<2)return null;let t=e[0];if(!S.includes(t))return null;let n=t==="a"?f:a,s=x(e.slice(1));if(s<0)return null;let o={},i=0;for(let r of n){let u=Math.floor(s/2**i)%2**r.bits;o[r.key]=u<r.values.length?r.values[u]:r.values[0],i+=r.bits;}return t==="a"&&(o.fontHeading="inherit"),o}function N(e){if(!e||e.length<2||e.length>10||!S.includes(e[0]))return false;for(let t=1;t<e.length;t++)if(l.indexOf(e[t])===-1)return false;return true}function k(e){return v(e)!==null}function h(){let e=t=>t[Math.floor(Math.random()*t.length)];return Object.fromEntries(a.map(t=>[t.key,e(t.values)]))}function L(){return O(h())}export{A as a,m as b,p as c,c as d,b as e,I as f,R as g,E as h,g as i,_ as j,y as k,d as l,T as m,C as n,x as o,O as p,v as q,N as r,k as s,h as t,L as u};

2
node_modules/shadcn/dist/chunk-WLJDV6SE.js generated vendored Normal file

File diff suppressed because one or more lines are too long

6
node_modules/shadcn/dist/get-config-D6gTsP_D.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { configSchema } from './schema/index.js';
import { z } from 'zod';
type Config = z.infer<typeof configSchema>;
export type { Config as C };

47
node_modules/shadcn/dist/icons/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,47 @@
declare const iconLibraries: {
readonly lucide: {
readonly name: "lucide";
readonly title: "Lucide";
readonly packages: readonly ["lucide-react"];
readonly import: "import { ICON } from 'lucide-react'";
readonly usage: "<ICON />";
readonly export: "lucide-react";
};
readonly tabler: {
readonly name: "tabler";
readonly title: "Tabler Icons";
readonly packages: readonly ["@tabler/icons-react"];
readonly import: "import { ICON } from '@tabler/icons-react'";
readonly usage: "<ICON />";
readonly export: "@tabler/icons-react";
};
readonly hugeicons: {
readonly name: "hugeicons";
readonly title: "HugeIcons";
readonly packages: readonly ["@hugeicons/react", "@hugeicons/core-free-icons"];
readonly import: "import { HugeiconsIcon } from '@hugeicons/react'\nimport { ICON } from '@hugeicons/core-free-icons';";
readonly usage: "<HugeiconsIcon icon={ICON} strokeWidth={2} />";
readonly export: "@hugeicons/core-free-icons";
};
readonly phosphor: {
readonly name: "phosphor";
readonly title: "Phosphor Icons";
readonly packages: readonly ["@phosphor-icons/react"];
readonly import: "import { ICON } from '@phosphor-icons/react'";
readonly usage: "<ICON strokeWidth={2} />";
readonly export: "@phosphor-icons/react";
};
readonly remixicon: {
readonly name: "remixicon";
readonly title: "Remix Icon";
readonly packages: readonly ["@remixicon/react"];
readonly import: "import { ICON } from '@remixicon/react'";
readonly usage: "<ICON />";
readonly export: "@remixicon/react";
};
};
type IconLibraries = typeof iconLibraries;
type IconLibrary = IconLibraries[keyof IconLibraries];
type IconLibraryName = keyof IconLibraries;
export { type IconLibraries, type IconLibrary, type IconLibraryName, iconLibraries };

1
node_modules/shadcn/dist/icons/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export{a as iconLibraries}from'../chunk-CHWMSXYA.js';

997
node_modules/shadcn/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,997 @@
#!/usr/bin/env node
import { registryIndexSchema, registryItemSchema } from './schema/index.js';
import { C as Config } from './get-config-D6gTsP_D.js';
import { z } from 'zod';
declare function getRegistry(name: string, options?: {
config?: Partial<Config>;
useCache?: boolean;
}): Promise<{
name: string;
homepage: string;
items: ({
type: "registry:base";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
config?: {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
} | undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
} | undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}> | undefined;
} | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
dependency?: string | undefined;
};
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
})[];
}>;
declare function getRegistryItems(items: string[], options?: {
config?: Partial<Config>;
useCache?: boolean;
}): Promise<({
type: "registry:base";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
config?: {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
} | undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
} | undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}> | undefined;
} | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
dependency?: string | undefined;
};
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
})[]>;
declare function resolveRegistryItems(items: string[], options?: {
config?: Partial<Config>;
useCache?: boolean;
}): Promise<{
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
css?: Record<string, any> | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
fonts?: {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
dependency?: string | undefined;
};
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
}[] | undefined;
} | null>;
declare function getRegistriesConfig(cwd: string, options?: {
useCache?: boolean;
}): Promise<{
registries: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}>;
}>;
declare function getShadcnRegistryIndex(): Promise<({
type: "registry:base";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
config?: {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
} | undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
} | undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}> | undefined;
} | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
dependency?: string | undefined;
};
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
})[] | undefined>;
declare function getRegistryStyles(): Promise<{
name: string;
label: string;
}[]>;
declare function getRegistryIcons(): Promise<Record<string, Record<string, string>>>;
declare function getRegistryBaseColors(): Promise<readonly [{
readonly name: "neutral";
readonly label: "Neutral";
}, {
readonly name: "zinc";
readonly label: "Zinc";
}, {
readonly name: "stone";
readonly label: "Stone";
}, {
readonly name: "mauve";
readonly label: "Mauve";
}, {
readonly name: "olive";
readonly label: "Olive";
}, {
readonly name: "mist";
readonly label: "Mist";
}, {
readonly name: "taupe";
readonly label: "Taupe";
}]>;
declare function getRegistryBaseColor(baseColor: string): Promise<{
cssVars: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
};
inlineColors: {
light: Record<string, string>;
dark: Record<string, string>;
};
inlineColorsTemplate: string;
cssVarsTemplate: string;
cssVarsV4?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
} | undefined>;
/**
* @deprecated This function is deprecated and will be removed in a future version.
*/
declare function resolveTree(index: z.infer<typeof registryIndexSchema>, names: string[]): Promise<({
type: "registry:base";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
config?: {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
} | undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
} | undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}> | undefined;
} | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
dependency?: string | undefined;
};
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
})[]>;
/**
* @deprecated This function is deprecated and will be removed in a future version.
*/
declare function fetchTree(style: string, tree: z.infer<typeof registryIndexSchema>): Promise<({
type: "registry:base";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
config?: {
tailwind?: {
config?: string | undefined;
css?: string | undefined;
baseColor?: string | undefined;
cssVariables?: boolean | undefined;
prefix?: string | undefined;
} | undefined;
$schema?: string | undefined;
style?: string | undefined;
rsc?: boolean | undefined;
tsx?: boolean | undefined;
iconLibrary?: string | undefined;
rtl?: boolean | undefined;
menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
menuAccent?: "bold" | "subtle" | undefined;
aliases?: {
components?: string | undefined;
ui?: string | undefined;
utils?: string | undefined;
lib?: string | undefined;
hooks?: string | undefined;
} | undefined;
registries?: Record<string, string | {
url: string;
params?: Record<string, string> | undefined;
headers?: Record<string, string> | undefined;
}> | undefined;
} | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:font";
name: string;
font: {
family: string;
provider: "google";
import: string;
variable: string;
weight?: string[] | undefined;
subsets?: string[] | undefined;
selector?: string | undefined;
dependency?: string | undefined;
};
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
} | {
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
name: string;
tailwind?: {
config?: {
content?: string[] | undefined;
theme?: Record<string, any> | undefined;
plugins?: string[] | undefined;
} | undefined;
} | undefined;
docs?: string | undefined;
$schema?: string | undefined;
css?: Record<string, any> | undefined;
extends?: string | undefined;
title?: string | undefined;
author?: string | undefined;
description?: string | undefined;
dependencies?: string[] | undefined;
devDependencies?: string[] | undefined;
registryDependencies?: string[] | undefined;
files?: ({
path: string;
type: "registry:page" | "registry:file";
target: string;
content?: string | undefined;
} | {
path: string;
type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
content?: string | undefined;
target?: string | undefined;
})[] | undefined;
cssVars?: {
theme?: Record<string, string> | undefined;
light?: Record<string, string> | undefined;
dark?: Record<string, string> | undefined;
} | undefined;
envVars?: Record<string, string> | undefined;
meta?: Record<string, any> | undefined;
categories?: string[] | undefined;
})[]>;
/**
* @deprecated This function is deprecated and will be removed in a future version.
*/
declare function getItemTargetPath(config: Config, item: Pick<z.infer<typeof registryItemSchema>, "type">, override?: string): Promise<string | null>;
declare function getRegistries(options?: {
useCache?: boolean;
}): Promise<{
url: string;
name: string;
description?: string | undefined;
homepage?: string | undefined;
}[]>;
/**
* @deprecated Use getRegistries() instead.
*/
declare function getRegistriesIndex(options?: {
useCache?: boolean;
}): Promise<Record<string, string> | null>;
declare function getPresets(options?: {
useCache?: boolean;
}): Promise<{
style: string;
baseColor: string;
iconLibrary: string;
rtl: boolean;
menuColor: "default" | "inverted" | "default-translucent" | "inverted-translucent";
menuAccent: "bold" | "subtle";
theme: string;
name: string;
title: string;
description: string;
font: string;
base: string;
radius: string;
}[]>;
declare function getPreset(name: string, options?: {
useCache?: boolean;
}): Promise<{
style: string;
baseColor: string;
iconLibrary: string;
rtl: boolean;
menuColor: "default" | "inverted" | "default-translucent" | "inverted-translucent";
menuAccent: "bold" | "subtle";
theme: string;
name: string;
title: string;
description: string;
font: string;
base: string;
radius: string;
} | null>;
export { fetchTree, getItemTargetPath, getPreset, getPresets, getRegistries, getRegistriesConfig, getRegistriesIndex, getRegistry, getRegistryBaseColor, getRegistryBaseColors, getRegistryIcons, getRegistryItems, getRegistryStyles, getShadcnRegistryIndex, resolveRegistryItems, resolveTree };

162
node_modules/shadcn/dist/index.js generated vendored Executable file

File diff suppressed because one or more lines are too long

38
node_modules/shadcn/dist/mcp/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,38 @@
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
declare const server: Server<{
method: string;
params?: {
[x: string]: unknown;
_meta?: {
[x: string]: unknown;
progressToken?: string | number | undefined;
"io.modelcontextprotocol/related-task"?: {
taskId: string;
} | undefined;
} | undefined;
} | undefined;
}, {
method: string;
params?: {
[x: string]: unknown;
_meta?: {
[x: string]: unknown;
progressToken?: string | number | undefined;
"io.modelcontextprotocol/related-task"?: {
taskId: string;
} | undefined;
} | undefined;
} | undefined;
}, {
[x: string]: unknown;
_meta?: {
[x: string]: unknown;
progressToken?: string | number | undefined;
"io.modelcontextprotocol/related-task"?: {
taskId: string;
} | undefined;
} | undefined;
}>;
export { server };

1
node_modules/shadcn/dist/mcp/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export{b as server}from'../chunk-C7EWIKNS.js';import'../chunk-BT5UJFAL.js';import'../chunk-HW2MEAJZ.js';import'../chunk-WLJDV6SE.js';import'../chunk-CHWMSXYA.js';

35
node_modules/shadcn/dist/preset/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,35 @@
declare const PRESET_BASES: readonly ["radix", "base"];
declare const PRESET_STYLES: readonly ["nova", "vega", "maia", "lyra", "mira"];
declare const PRESET_BASE_COLORS: readonly ["neutral", "stone", "zinc", "gray", "mauve", "olive", "mist", "taupe"];
declare const PRESET_THEMES: readonly ["neutral", "stone", "zinc", "gray", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow", "mauve", "olive", "mist", "taupe"];
declare const PRESET_CHART_COLORS: readonly ["neutral", "stone", "zinc", "gray", "amber", "blue", "cyan", "emerald", "fuchsia", "green", "indigo", "lime", "orange", "pink", "purple", "red", "rose", "sky", "teal", "violet", "yellow", "mauve", "olive", "mist", "taupe"];
declare const V1_CHART_COLOR_MAP: Record<string, string>;
declare const PRESET_ICON_LIBRARIES: readonly ["lucide", "hugeicons", "tabler", "phosphor", "remixicon"];
declare const PRESET_FONTS: readonly ["inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "geist", "geist-mono", "lora", "merriweather", "playfair-display", "noto-serif", "roboto-slab", "oxanium", "manrope", "space-grotesk", "montserrat", "ibm-plex-sans", "source-sans-3", "instrument-sans"];
declare const PRESET_FONT_HEADINGS: readonly ["inherit", "inter", "noto-sans", "nunito-sans", "figtree", "roboto", "raleway", "dm-sans", "public-sans", "outfit", "jetbrains-mono", "geist", "geist-mono", "lora", "merriweather", "playfair-display", "noto-serif", "roboto-slab", "oxanium", "manrope", "space-grotesk", "montserrat", "ibm-plex-sans", "source-sans-3", "instrument-sans"];
declare const PRESET_RADII: readonly ["default", "none", "small", "medium", "large"];
declare const PRESET_MENU_ACCENTS: readonly ["subtle", "bold"];
declare const PRESET_MENU_COLORS: readonly ["default", "inverted", "default-translucent", "inverted-translucent"];
type PresetConfig = {
style: (typeof PRESET_STYLES)[number];
baseColor: (typeof PRESET_BASE_COLORS)[number];
theme: (typeof PRESET_THEMES)[number];
chartColor?: (typeof PRESET_CHART_COLORS)[number];
iconLibrary: (typeof PRESET_ICON_LIBRARIES)[number];
font: (typeof PRESET_FONTS)[number];
fontHeading: (typeof PRESET_FONT_HEADINGS)[number];
radius: (typeof PRESET_RADII)[number];
menuAccent: (typeof PRESET_MENU_ACCENTS)[number];
menuColor: (typeof PRESET_MENU_COLORS)[number];
};
declare const DEFAULT_PRESET_CONFIG: PresetConfig;
declare function toBase62(num: number): string;
declare function fromBase62(str: string): number;
declare function encodePreset(config: Partial<PresetConfig>): string;
declare function decodePreset(code: string): PresetConfig | null;
declare function isPresetCode(value: string): boolean;
declare function isValidPreset(code: string): boolean;
declare function generateRandomConfig(): PresetConfig;
declare function generateRandomPreset(): string;
export { DEFAULT_PRESET_CONFIG, PRESET_BASES, PRESET_BASE_COLORS, PRESET_CHART_COLORS, PRESET_FONTS, PRESET_FONT_HEADINGS, PRESET_ICON_LIBRARIES, PRESET_MENU_ACCENTS, PRESET_MENU_COLORS, PRESET_RADII, PRESET_STYLES, PRESET_THEMES, type PresetConfig, V1_CHART_COLOR_MAP, decodePreset, encodePreset, fromBase62, generateRandomConfig, generateRandomPreset, isPresetCode, isValidPreset, toBase62 };

1
node_modules/shadcn/dist/preset/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export{m as DEFAULT_PRESET_CONFIG,a as PRESET_BASES,c as PRESET_BASE_COLORS,e as PRESET_CHART_COLORS,h as PRESET_FONTS,i as PRESET_FONT_HEADINGS,g as PRESET_ICON_LIBRARIES,k as PRESET_MENU_ACCENTS,l as PRESET_MENU_COLORS,j as PRESET_RADII,b as PRESET_STYLES,d as PRESET_THEMES,f as V1_CHART_COLOR_MAP,q as decodePreset,p as encodePreset,o as fromBase62,t as generateRandomConfig,u as generateRandomPreset,r as isPresetCode,s as isValidPreset,n as toBase62}from'../chunk-SD5CAHKQ.js';

113
node_modules/shadcn/dist/registry/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,113 @@
export { getRegistries, getRegistriesIndex, getRegistry, getRegistryItems, resolveRegistryItems } from '../index.js';
import { C as Config } from '../get-config-D6gTsP_D.js';
import '../schema/index.js';
import 'zod';
declare function searchRegistries(registries: string[], options?: {
query?: string;
limit?: number;
offset?: number;
config?: Partial<Config>;
useCache?: boolean;
}): Promise<{
items: {
registry: string;
name: string;
addCommandArgument: string;
type?: string | undefined;
description?: string | undefined;
}[];
pagination: {
total: number;
offset: number;
limit: number;
hasMore: boolean;
};
}>;
declare const RegistryErrorCode: {
readonly NETWORK_ERROR: "NETWORK_ERROR";
readonly NOT_FOUND: "NOT_FOUND";
readonly GONE: "GONE";
readonly UNAUTHORIZED: "UNAUTHORIZED";
readonly FORBIDDEN: "FORBIDDEN";
readonly FETCH_ERROR: "FETCH_ERROR";
readonly NOT_CONFIGURED: "NOT_CONFIGURED";
readonly INVALID_CONFIG: "INVALID_CONFIG";
readonly MISSING_ENV_VARS: "MISSING_ENV_VARS";
readonly LOCAL_FILE_ERROR: "LOCAL_FILE_ERROR";
readonly PARSE_ERROR: "PARSE_ERROR";
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
};
type RegistryErrorCode = (typeof RegistryErrorCode)[keyof typeof RegistryErrorCode];
declare class RegistryError extends Error {
readonly code: RegistryErrorCode;
readonly statusCode?: number;
readonly context?: Record<string, unknown>;
readonly suggestion?: string;
readonly timestamp: Date;
readonly cause?: unknown;
constructor(message: string, options?: {
code?: RegistryErrorCode;
statusCode?: number;
cause?: unknown;
context?: Record<string, unknown>;
suggestion?: string;
});
toJSON(): {
name: string;
message: string;
code: RegistryErrorCode;
statusCode: number | undefined;
context: Record<string, unknown> | undefined;
suggestion: string | undefined;
timestamp: Date;
stack: string | undefined;
};
}
declare class RegistryNotFoundError extends RegistryError {
readonly url: string;
constructor(url: string, cause?: unknown);
}
declare class RegistryUnauthorizedError extends RegistryError {
readonly url: string;
constructor(url: string, cause?: unknown);
}
declare class RegistryForbiddenError extends RegistryError {
readonly url: string;
constructor(url: string, cause?: unknown);
}
declare class RegistryFetchError extends RegistryError {
readonly url: string;
readonly responseBody?: string | undefined;
constructor(url: string, statusCode?: number, responseBody?: string | undefined, cause?: unknown);
}
declare class RegistryNotConfiguredError extends RegistryError {
readonly registryName: string | null;
constructor(registryName: string | null);
}
declare class RegistryLocalFileError extends RegistryError {
readonly filePath: string;
constructor(filePath: string, cause?: unknown);
}
declare class RegistryParseError extends RegistryError {
readonly item: string;
readonly parseError: unknown;
constructor(item: string, parseError: unknown);
}
declare class RegistryMissingEnvironmentVariablesError extends RegistryError {
readonly registryName: string;
readonly missingVars: string[];
constructor(registryName: string, missingVars: string[]);
}
declare class RegistryInvalidNamespaceError extends RegistryError {
readonly name: string;
constructor(name: string);
}
declare class RegistriesIndexParseError extends RegistryError {
readonly parseError: unknown;
constructor(parseError: unknown);
}
export { RegistriesIndexParseError, RegistryError, RegistryFetchError, RegistryForbiddenError, RegistryInvalidNamespaceError, RegistryLocalFileError, RegistryMissingEnvironmentVariablesError, RegistryNotConfiguredError, RegistryNotFoundError, RegistryParseError, RegistryUnauthorizedError, searchRegistries };

1
node_modules/shadcn/dist/registry/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export{p as RegistriesIndexParseError,f as RegistryError,j as RegistryFetchError,i as RegistryForbiddenError,o as RegistryInvalidNamespaceError,l as RegistryLocalFileError,n as RegistryMissingEnvironmentVariablesError,k as RegistryNotConfiguredError,g as RegistryNotFoundError,m as RegistryParseError,h as RegistryUnauthorizedError,ma as getRegistries,na as getRegistriesIndex,aa as getRegistry,ba as getRegistryItems,ca as resolveRegistryItems,va as searchRegistries}from'../chunk-BT5UJFAL.js';import'../chunk-HW2MEAJZ.js';import'../chunk-WLJDV6SE.js';import'../chunk-CHWMSXYA.js';

4011
node_modules/shadcn/dist/schema/index.d.ts generated vendored Normal file

File diff suppressed because it is too large Load Diff

1
node_modules/shadcn/dist/schema/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export{z as configJsonSchema,d as configSchema,r as iconsSchema,y as presetSchema,c as rawConfigSchema,w as registriesIndexSchema,x as registriesSchema,s as registryBaseColorSchema,a as registryConfigItemSchema,b as registryConfigSchema,p as registryIndexSchema,m as registryItemCommonSchema,j as registryItemCssSchema,i as registryItemCssVarsSchema,k as registryItemEnvVarsSchema,g as registryItemFileSchema,l as registryItemFontSchema,n as registryItemSchema,h as registryItemTailwindSchema,f as registryItemTypeSchema,t as registryResolvedItemsTreeSchema,o as registrySchema,u as searchResultItemSchema,v as searchResultsSchema,q as stylesSchema,e as workspaceConfigSchema}from'../chunk-HW2MEAJZ.js';

95
node_modules/shadcn/dist/tailwind.css generated vendored Normal file
View File

@@ -0,0 +1,95 @@
@theme inline {
@keyframes accordion-down {
from {
height: 0;
}
to {
height: var(
--radix-accordion-content-height,
var(--accordion-panel-height, auto)
);
}
}
@keyframes accordion-up {
from {
height: var(
--radix-accordion-content-height,
var(--accordion-panel-height, auto)
);
}
to {
height: 0;
}
}
}
/* Custom variants */
@custom-variant data-open {
&:where([data-state="open"]),
&:where([data-open]:not([data-open="false"])) {
@slot;
}
}
@custom-variant data-closed {
&:where([data-state="closed"]),
&:where([data-closed]:not([data-closed="false"])) {
@slot;
}
}
@custom-variant data-checked {
&:where([data-state="checked"]),
&:where([data-checked]:not([data-checked="false"])) {
@slot;
}
}
@custom-variant data-unchecked {
&:where([data-state="unchecked"]),
&:where([data-unchecked]:not([data-unchecked="false"])) {
@slot;
}
}
@custom-variant data-selected {
&:where([data-selected="true"]) {
@slot;
}
}
@custom-variant data-disabled {
&:where([data-disabled="true"]),
&:where([data-disabled]:not([data-disabled="false"])) {
@slot;
}
}
@custom-variant data-active {
&:where([data-state="active"]),
&:where([data-active]:not([data-active="false"])) {
@slot;
}
}
@custom-variant data-horizontal {
&:where([data-orientation="horizontal"]) {
@slot;
}
}
@custom-variant data-vertical {
&:where([data-orientation="vertical"]) {
@slot;
}
}
@utility no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
}

42
node_modules/shadcn/dist/utils/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,42 @@
import { z } from 'zod';
import { SourceFile } from 'ts-morph';
import { registryBaseColorSchema } from '../schema/index.js';
import { C as Config } from '../get-config-D6gTsP_D.js';
declare const styleMapSchema: z.ZodRecord<z.ZodString, z.ZodString>;
type StyleMap = z.infer<typeof styleMapSchema>;
declare function createStyleMap(input: string): Record<string, string>;
type TransformerStyle<Output = SourceFile> = (opts: {
sourceFile: SourceFile;
styleMap: StyleMap;
}) => Promise<Output>;
declare function transformStyle(source: string, { styleMap, transformers, }: {
styleMap: StyleMap;
transformers?: TransformerStyle<SourceFile>[];
}): Promise<string>;
type TransformOpts = {
filename: string;
raw: string;
config: Config;
baseColor?: z.infer<typeof registryBaseColorSchema>;
transformJsx?: boolean;
isRemote?: boolean;
supportedFontMarkers?: string[];
};
type Transformer<Output = SourceFile> = (opts: TransformOpts & {
sourceFile: SourceFile;
}) => Promise<Output>;
declare const transformFont: Transformer;
declare const transformIcons: Transformer;
declare const transformMenu: Transformer;
declare const transformRender: Transformer;
declare function transformDirection(source: string, rtl: boolean): Promise<string>;
export { createStyleMap, transformDirection, transformFont, transformIcons, transformMenu, transformRender, transformStyle };

1
node_modules/shadcn/dist/utils/index.js generated vendored Normal file

File diff suppressed because one or more lines are too long

128
node_modules/shadcn/package.json generated vendored Normal file
View File

@@ -0,0 +1,128 @@
{
"name": "shadcn",
"version": "4.1.0",
"description": "Add components to your apps.",
"publishConfig": {
"access": "public"
},
"license": "MIT",
"author": {
"name": "shadcn",
"url": "https://twitter.com/shadcn"
},
"repository": {
"type": "git",
"url": "https://github.com/shadcn-ui/ui.git",
"directory": "packages/shadcn"
},
"files": [
"dist"
],
"keywords": [
"components",
"ui",
"tailwind",
"radix-ui",
"shadcn"
],
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./registry": {
"types": "./dist/registry/index.d.ts",
"default": "./dist/registry/index.js"
},
"./schema": {
"types": "./dist/schema/index.d.ts",
"default": "./dist/schema/index.js"
},
"./mcp": {
"types": "./dist/mcp/index.d.ts",
"default": "./dist/mcp/index.js"
},
"./utils": {
"types": "./dist/utils/index.d.ts",
"default": "./dist/utils/index.js"
},
"./icons": {
"types": "./dist/icons/index.d.ts",
"default": "./dist/icons/index.js"
},
"./preset": {
"types": "./dist/preset/index.d.ts",
"default": "./dist/preset/index.js"
},
"./tailwind.css": {
"style": "./dist/tailwind.css"
}
},
"bin": "./dist/index.js",
"dependencies": {
"@babel/core": "^7.28.0",
"@babel/parser": "^7.28.0",
"@babel/plugin-transform-typescript": "^7.28.0",
"@babel/preset-typescript": "^7.27.1",
"@dotenvx/dotenvx": "^1.48.4",
"@modelcontextprotocol/sdk": "^1.26.0",
"@types/validate-npm-package-name": "^4.0.2",
"browserslist": "^4.26.2",
"commander": "^14.0.0",
"cosmiconfig": "^9.0.0",
"dedent": "^1.6.0",
"deepmerge": "^4.3.1",
"diff": "^8.0.2",
"execa": "^9.6.0",
"fast-glob": "^3.3.3",
"fs-extra": "^11.3.1",
"fuzzysort": "^3.1.0",
"https-proxy-agent": "^7.0.6",
"kleur": "^4.1.5",
"msw": "^2.10.4",
"node-fetch": "^3.3.2",
"open": "^11.0.0",
"ora": "^8.2.0",
"postcss": "^8.5.6",
"postcss-selector-parser": "^7.1.0",
"prompts": "^2.4.2",
"recast": "^0.23.11",
"stringify-object": "^5.0.0",
"tailwind-merge": "^3.0.1",
"ts-morph": "^26.0.0",
"tsconfig-paths": "^4.2.0",
"validate-npm-package-name": "^7.0.1",
"zod": "^3.24.1",
"zod-to-json-schema": "^3.24.6"
},
"devDependencies": {
"@antfu/ni": "^25.0.0",
"@types/babel__core": "^7.20.5",
"@types/fs-extra": "^11.0.4",
"@types/prompts": "^2.4.9",
"@types/stringify-object": "^4.0.5",
"rimraf": "^6.0.1",
"tsup": "^8.5.0",
"type-fest": "^4.41.0",
"typescript": "^5.9.2"
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"typecheck": "tsc --noEmit",
"clean": "rimraf dist && rimraf components",
"start:dev": "cross-env REGISTRY_URL=http://localhost:4000/r SHADCN_TEMPLATE_DIR=../../templates node dist/index.js",
"start:prod": "cross-env REGISTRY_URL=https://ui.shadcn.com/r node dist/index.js",
"start": "node dist/index.js",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
"release": "changeset version",
"pub:beta": "pnpm build && pnpm publish --no-git-checks --access public --tag beta",
"pub:next": "pnpm build && pnpm publish --no-git-checks --access public --tag next",
"pub:release": "pnpm build && pnpm publish --access public",
"test": "vitest run",
"test:dev": "REGISTRY_URL=http://localhost:4000/r SHADCN_TEMPLATE_DIR=../../templates vitest run",
"mcp:inspect": "pnpm dlx @modelcontextprotocol/inspector node dist/index.js mcp"
}
}