[
  {
    "path": ".editorconfig",
    "content": "root = true\n\n[*]\nindent_size = 2\nend_of_line = lf\ninsert_final_newline = true\n\n[*.svg]\ninsert_final_newline = false\n"
  },
  {
    "path": ".gitattributes",
    "content": "* text=auto eol=lf\n"
  },
  {
    "path": ".github/FUNDING.yml",
    "content": "github: [sxzz, JeremyWuuuuu, YunYouJun, iamkun]\n"
  },
  {
    "path": ".github/workflows/release.yml",
    "content": "name: Release\n\non:\n  push:\n    tags:\n      - 'v*'\n\njobs:\n  release:\n    uses: sxzz/workflows/.github/workflows/release.yml@v1\n    with:\n      publish: true\n      build: pnpm run build\n    permissions:\n      contents: write\n      id-token: write\n"
  },
  {
    "path": ".github/workflows/unit-test.yml",
    "content": "name: Unit Test\n\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\npermissions: {}\n\njobs:\n  unit-test:\n    uses: sxzz/workflows/.github/workflows/unit-test.yml@v1\n    with:\n      skip-test: true\n      build-for-lint: true\n"
  },
  {
    "path": ".gitignore",
    "content": "node_modules\n.DS_Store\ndist\n*.log\n"
  },
  {
    "path": ".npmrc",
    "content": "shell-emulator = true\n"
  },
  {
    "path": ".vscode/settings.json",
    "content": "{\n  \"editor.formatOnSave\": true,\n  \"[xml]\": {\n    \"editor.formatOnSave\": false\n  }\n}\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2020-PRESENT Element Plus (https://github.com/element-plus)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "<p align=\"center\">\n  <img width=\"300px\" src=\"https://user-images.githubusercontent.com/10731096/95823103-9ce15780-0d5f-11eb-8010-1bd1b5910d4f.png\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/element-plus/element-plus-icons\">\n    <img alt=\"GitHub Repo stars\" src=\"https://img.shields.io/github/stars/element-plus/element-plus-icons?style=social\">\n  </a>\n  <a href=\"https://github.com/element-plus/element-plus-icons\">\n    <img alt=\"GitHub forks\" src=\"https://img.shields.io/github/forks/element-plus/element-plus-icons?style=social\">\n  </a>\n  <br>\n</p>\n\n# Element Plus Icons\n\n[![Unit Test](https://github.com/element-plus/element-plus-icons/actions/workflows/unit-test.yml/badge.svg)](https://github.com/element-plus/element-plus-icons/actions/workflows/unit-test.yml)\n\n- [`@element-plus/icons-svg`](https://www.npmjs.com/package/@element-plus/icons-svg) raw svg files\n- [`@element-plus/icons-vue`](https://www.npmjs.com/package/@element-plus/icons-vue) vue components\n\n## Preview\n\n- [Documentation](https://element-plus.org/en-US/component/icon.html)\n- [Icônes](https://icones.js.org/collection/ep)\n- [Iconify](https://icon-sets.iconify.design/ep/)\n\n## License\n\n[MIT](./LICENSE) License © 2020-PRESENT Element Plus\n"
  },
  {
    "path": "eslint.config.js",
    "content": "import { sxzz } from '@sxzz/eslint-config'\n\nexport default sxzz()\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"@element-plus/icons-monorepo\",\n  \"type\": \"module\",\n  \"version\": \"2.3.2\",\n  \"private\": true,\n  \"packageManager\": \"pnpm@10.28.1\",\n  \"license\": \"MIT\",\n  \"scripts\": {\n    \"dev\": \"pnpm run -C playground dev\",\n    \"build\": \"pnpm run -C ./packages/vue build\",\n    \"lint\": \"eslint .\",\n    \"lint:fix\": \"pnpm run lint --fix\",\n    \"typecheck\": \"vue-tsc --noEmit\",\n    \"format\": \"prettier --write . && pnpm run -C ./packages/svg optimize\",\n    \"release\": \"bumpp -r\"\n  },\n  \"devDependencies\": {\n    \"@sxzz/eslint-config\": \"^7.5.0\",\n    \"@sxzz/prettier-config\": \"^2.2.6\",\n    \"bumpp\": \"^10.4.0\",\n    \"eslint\": \"^9.39.2\",\n    \"prettier\": \"^3.8.1\",\n    \"typescript\": \"^5.9.3\",\n    \"vue-tsc\": \"^3.2.2\"\n  },\n  \"prettier\": \"@sxzz/prettier-config\"\n}\n"
  },
  {
    "path": "packages/svg/package.json",
    "content": "{\n  \"name\": \"@element-plus/icons-svg\",\n  \"version\": \"2.3.2\",\n  \"description\": \"SVG icon for Element Plus Icons collection.\",\n  \"license\": \"MIT\",\n  \"homepage\": \"https://element-plus.org/\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/element-plus/element-plus-icons.git\",\n    \"directory\": \"packages/svg\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/element-plus/element-plus-icons/issues\"\n  },\n  \"keywords\": [\n    \"icon\",\n    \"svg\",\n    \"element-plus\"\n  ],\n  \"files\": [\n    \"*.svg\"\n  ],\n  \"scripts\": {\n    \"optimize\": \"svgo -f . -o .\"\n  },\n  \"devDependencies\": {\n    \"svgo\": \"^4.0.0\"\n  }\n}\n"
  },
  {
    "path": "packages/svg/svgo.config.js",
    "content": "// svgo.config.js\nmodule.exports = {\n  plugins: [\n    {\n      name: 'preset-default',\n      params: {\n        overrides: {\n          convertPathData: {\n            floatPrecision: 1,\n          },\n        },\n      },\n    },\n  ],\n}\n"
  },
  {
    "path": "packages/vue/.gitignore",
    "content": "src/components/*\n"
  },
  {
    "path": "packages/vue/build/build.ts",
    "content": "import { rm } from 'node:fs/promises'\nimport path from 'node:path'\nimport consola from 'consola'\nimport { build, type BuildOptions, type Format } from 'esbuild'\nimport GlobalsPlugin from 'esbuild-plugin-globals'\nimport vue from 'unplugin-vue/esbuild'\nimport { version } from '../package.json'\n\nconst pathSrc = path.resolve(import.meta.dirname, '../src')\nconst pathOutput = path.resolve(import.meta.dirname, '../dist')\n\nconst buildBundle = () => {\n  const getBuildOptions = (format: Format) => {\n    const options: BuildOptions = {\n      entryPoints: [\n        path.resolve(pathSrc, 'index.ts'),\n        path.resolve(pathSrc, 'global.ts'),\n      ],\n      target: 'es2018',\n      platform: 'neutral',\n      plugins: [\n        vue({\n          isProduction: true,\n          sourceMap: false,\n          // https://github.com/vuejs/core/issues/5256#issuecomment-1173891407\n          template: { compilerOptions: { hoistStatic: false } },\n        }),\n      ],\n      bundle: true,\n      format,\n      minifySyntax: true,\n      banner: {\n        js: `/*! Element Plus Icons Vue v${version} */\\n`,\n      },\n      outdir: pathOutput,\n    }\n    if (format === 'iife') {\n      options.plugins!.push(\n        GlobalsPlugin({\n          vue: 'Vue',\n        }),\n      )\n      options.globalName = 'ElementPlusIconsVue'\n    } else {\n      options.external = ['vue']\n    }\n\n    return options\n  }\n  const doBuild = async (minify: boolean) => {\n    await Promise.all([\n      build({\n        ...getBuildOptions('esm'),\n        entryNames: `[name]${minify ? '.min' : ''}`,\n        minify,\n      }),\n      build({\n        ...getBuildOptions('iife'),\n        entryNames: `[name].iife${minify ? '.min' : ''}`,\n        minify,\n      }),\n      build({\n        ...getBuildOptions('cjs'),\n        entryNames: `[name]${minify ? '.min' : ''}`,\n        outExtension: { '.js': '.cjs' },\n        minify,\n      }),\n    ])\n  }\n\n  return Promise.all([doBuild(true), doBuild(false)])\n}\n\nconsola.info('cleaning dist...')\nawait rm(pathOutput, { recursive: true, force: true })\nconsola.info('building...')\nawait buildBundle()\n"
  },
  {
    "path": "packages/vue/build/generate.ts",
    "content": "import { mkdir, readFile, rm, writeFile } from 'node:fs/promises'\nimport { basename, resolve } from 'node:path'\nimport { fileURLToPath } from 'node:url'\nimport camelcase from 'camelcase'\nimport consola from 'consola'\nimport { format, type BuiltInParserName } from 'prettier'\nimport { glob } from 'tinyglobby'\n\nconsola.info('generating vue components')\nconst pathComponents = resolve(import.meta.dirname, '../src/components')\nawait rm(pathComponents, { recursive: true, force: true })\nawait mkdir(pathComponents, { recursive: true })\nconst files = await getSvgFiles()\n\nconsola.info('generating vue files')\nawait Promise.all(files.map((file) => transformToVueComponent(file)))\n\nconsola.info('generating entry file')\nawait generateEntry(files)\n\nfunction getSvgFiles() {\n  const svgPackageJson = fileURLToPath(\n    import.meta.resolve('@element-plus/icons-svg/package.json'),\n  )\n  return glob('*.svg', {\n    cwd: resolve(svgPackageJson, '..'),\n    absolute: true,\n  })\n}\n\nfunction getName(file: string) {\n  const filename = basename(file).replace('.svg', '')\n  const componentName = camelcase(filename, { pascalCase: true })\n  return {\n    filename,\n    componentName,\n  }\n}\n\nfunction formatCode(code: string, parser: BuiltInParserName = 'typescript') {\n  return format(code, {\n    parser,\n    semi: false,\n    singleQuote: true,\n  })\n}\n\nasync function transformToVueComponent(file: string) {\n  const content = await readFile(file, 'utf8')\n  const { filename, componentName } = getName(file)\n  const vue = await formatCode(\n    `\n<template>\n${content}\n</template>\n<script lang=\"ts\" setup>\ndefineOptions({\n  name: ${JSON.stringify(componentName)}\n})\n</script>`,\n    'vue',\n  )\n  writeFile(resolve(pathComponents, `${filename}.vue`), vue, 'utf8')\n}\n\nasync function generateEntry(files: string[]) {\n  const code = await formatCode(\n    files\n      .map((file) => {\n        const { filename, componentName } = getName(file)\n        return `export { default as ${componentName} } from './${filename}.vue'`\n      })\n      .join('\\n'),\n  )\n  await writeFile(resolve(pathComponents, 'index.ts'), code, 'utf8')\n}\n"
  },
  {
    "path": "packages/vue/package.json",
    "content": "{\n  \"name\": \"@element-plus/icons-vue\",\n  \"type\": \"module\",\n  \"version\": \"2.3.2\",\n  \"description\": \"Vue components of Element Plus Icons collection.\",\n  \"license\": \"MIT\",\n  \"homepage\": \"https://element-plus.org/\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/element-plus/element-plus-icons.git\",\n    \"directory\": \"packages/vue\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/element-plus/element-plus-icons/issues\"\n  },\n  \"keywords\": [\n    \"icon\",\n    \"svg\",\n    \"vue\",\n    \"element-plus\"\n  ],\n  \"sideEffects\": false,\n  \"exports\": {\n    \".\": {\n      \"types\": \"./dist/types/index.d.ts\",\n      \"require\": \"./dist/index.cjs\",\n      \"import\": \"./dist/index.js\"\n    },\n    \"./global\": {\n      \"types\": \"./dist/types/global.d.ts\",\n      \"require\": \"./dist/global.cjs\",\n      \"import\": \"./dist/global.js\"\n    },\n    \"./*\": \"./*\"\n  },\n  \"main\": \"./dist/index.cjs\",\n  \"module\": \"./dist/index.js\",\n  \"unpkg\": \"dist/index.iife.min.js\",\n  \"jsdelivr\": \"dist/index.iife.min.js\",\n  \"types\": \"./dist/types/index.d.ts\",\n  \"typesVersions\": {\n    \"*\": {\n      \"*\": [\n        \"./*\",\n        \"./dist/types/*\"\n      ]\n    }\n  },\n  \"files\": [\n    \"dist\"\n  ],\n  \"scripts\": {\n    \"build\": \"pnpm run build:generate && run-p build:build build:types\",\n    \"build:generate\": \"tsx build/generate.ts\",\n    \"build:build\": \"NODE_ENV=production tsx build/build.ts\",\n    \"build:types\": \"vue-tsc --declaration --emitDeclarationOnly\"\n  },\n  \"peerDependencies\": {\n    \"vue\": \"^3.2.0\"\n  },\n  \"devDependencies\": {\n    \"@element-plus/icons-svg\": \"workspace:*\",\n    \"@types/node\": \"^25.0.10\",\n    \"camelcase\": \"^9.0.0\",\n    \"consola\": \"^3.4.2\",\n    \"esbuild\": \"^0.27.2\",\n    \"esbuild-plugin-globals\": \"^0.2.0\",\n    \"npm-run-all2\": \"^8.0.4\",\n    \"prettier\": \"^3.8.1\",\n    \"tinyglobby\": \"^0.2.15\",\n    \"tsx\": \"^4.21.0\",\n    \"typescript\": \"^5.9.3\",\n    \"unplugin-vue\": \"^7.1.0\",\n    \"vue\": \"^3.5.27\",\n    \"vue-tsc\": \"^3.2.2\"\n  }\n}\n"
  },
  {
    "path": "packages/vue/src/global.ts",
    "content": "import * as icons from './components'\nimport type { App } from 'vue'\n\nexport interface InstallOptions {\n  /** @default `ElIcon` */\n  prefix?: string\n}\n// eslint-disable-next-line import/no-default-export\nexport default function elementPlusIcons(\n  app: App,\n  { prefix = 'ElIcon' }: InstallOptions = {},\n) {\n  for (const [key, component] of Object.entries(icons)) {\n    app.component(prefix + key, component)\n  }\n}\n\nexport { icons }\nexport * from './components'\n"
  },
  {
    "path": "packages/vue/src/index.ts",
    "content": "export * from './components'\n"
  },
  {
    "path": "packages/vue/tsconfig.build.json",
    "content": "{\n  \"compilerOptions\": {\n    \"composite\": true,\n    \"target\": \"ES2021\",\n    \"lib\": [\"ES2021\"],\n    \"baseUrl\": \".\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"bundler\",\n    \"resolveJsonModule\": true,\n    \"types\": [\"node\"],\n    \"strict\": true,\n    \"noImplicitAny\": true,\n    \"allowSyntheticDefaultImports\": true,\n    \"esModuleInterop\": true,\n    \"skipLibCheck\": true\n  },\n  \"include\": [\"build\", \"package.json\"]\n}\n"
  },
  {
    "path": "packages/vue/tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"ES2018\",\n    \"jsx\": \"preserve\",\n    \"lib\": [\"ES2018\", \"DOM\"],\n    \"baseUrl\": \".\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"node\",\n    \"types\": [],\n    \"strict\": true,\n    \"noImplicitAny\": true,\n    \"declaration\": true,\n    \"declarationDir\": \"./dist/types\",\n    \"sourceMap\": true,\n    \"allowSyntheticDefaultImports\": true,\n    \"esModuleInterop\": true,\n    \"skipLibCheck\": true\n  },\n  \"references\": [{ \"path\": \"./tsconfig.build.json\" }],\n  \"include\": [\"./src/**/*\"]\n}\n"
  },
  {
    "path": "playground/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <link rel=\"icon\" href=\"/favicon.ico\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n    <title>Vite App</title>\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script type=\"module\" src=\"/src/main.ts\"></script>\n  </body>\n</html>\n"
  },
  {
    "path": "playground/package.json",
    "content": "{\n  \"name\": \"@element-plus/icons-playground\",\n  \"type\": \"module\",\n  \"private\": true,\n  \"license\": \"MIT\",\n  \"scripts\": {\n    \"dev\": \"vite\",\n    \"build\": \"vite build\",\n    \"preview\": \"vite preview\"\n  },\n  \"dependencies\": {\n    \"@element-plus/icons-svg\": \"workspace:*\",\n    \"@element-plus/icons-vue\": \"workspace:*\",\n    \"vue\": \"^3.5.27\"\n  },\n  \"devDependencies\": {\n    \"@vitejs/plugin-vue\": \"^6.0.3\",\n    \"typescript\": \"^5.9.3\",\n    \"vite\": \"^7.3.1\"\n  }\n}\n"
  },
  {
    "path": "playground/src/App.vue",
    "content": "<script lang=\"ts\" setup>\nimport { icons } from '@element-plus/icons-vue/global'\nimport { Upload } from '@element-plus/icons-vue'\n</script>\n\n<template>\n  <Upload class=\"icon\" />\n  <hr />\n  <component :is=\"Icon\" v-for=\"(Icon, key) in icons\" :key=\"key\" class=\"icon\" />\n  <hr />\n  <component\n    :is=\"`ElIcon${key}`\"\n    v-for=\"key in Object.keys(icons)\"\n    :key=\"key\"\n    class=\"icon\"\n  />\n</template>\n\n<style>\n.icon {\n  height: 48px;\n  color: #409eff;\n}\n</style>\n"
  },
  {
    "path": "playground/src/main.ts",
    "content": "import ElIcons from '@element-plus/icons-vue/global'\nimport { createApp } from 'vue'\nimport App from './App.vue'\n\ncreateApp(App).use(ElIcons).mount('#app')\n"
  },
  {
    "path": "playground/vite.config.ts",
    "content": "import vue from '@vitejs/plugin-vue'\nimport { defineConfig } from 'vite'\n\nexport default defineConfig({\n  plugins: [vue()],\n})\n"
  },
  {
    "path": "pnpm-workspace.yaml",
    "content": "packages:\n  - packages/*\n  - playground\n\nallowBuilds:\n  esbuild: false\n\nignoreWorkspaceRootCheck: true\ntrustPolicy: no-downgrade\n"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"es2018\",\n    \"jsx\": \"preserve\",\n    \"lib\": [\"ES2018\", \"DOM\", \"DOM.Iterable\"],\n    \"baseUrl\": \".\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"bundler\",\n    \"resolveJsonModule\": true,\n    \"types\": [],\n    \"allowJs\": false,\n    \"strict\": true,\n    \"noUnusedLocals\": true,\n    \"outDir\": \"dist\",\n    \"sourceMap\": false,\n    \"allowSyntheticDefaultImports\": true,\n    \"esModuleInterop\": true,\n    \"skipLibCheck\": true\n  }\n}\n"
  }
]