diff --git a/packages/icons/package.json b/packages/icons/package.json index d8545fc38..06f338cf8 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -13,18 +13,77 @@ "bugs": { "url": "https://github.com/primefaces/primevue/issues" }, + "sideEffects": [ + "*.vue" + ], + "main": "./src/index.js", + "module": "./src/index.js", "types": "./src/index.d.ts", "exports": { - "./baseicon/style": "./src/baseicon/style/BaseIconStyle.js", + "./angledoubledown": "./src/angledoubledown/AngleDoubleDownIcon.vue", + "./angledoubleleft": "./src/angledoubleleft/AngleDoubleLeftIcon.vue", + "./angledoubleright": "./src/angledoubleright/AngleDoubleRightIcon.vue", + "./angledoubleup": "./src/angledoubleup/AngleDoubleUpIcon.vue", + "./angledown": "./src/angledown/AngleDownIcon.vue", + "./angleleft": "./src/angleleft/AngleLeftIcon.vue", + "./angleright": "./src/angleright/AngleRightIcon.vue", + "./angleup": "./src/angleup/AngleUpIcon.vue", + "./arrowdown": "./src/arrowdown/ArrowDownIcon.vue", + "./arrowup": "./src/arrowup/ArrowUpIcon.vue", + "./ban": "./src/ban/BanIcon.vue", + "./bars": "./src/bars/BarsIcon.vue", "./baseicon": "./src/baseicon/BaseIcon.vue", - "./*": "./src/*/index.vue" + "./baseicon/style": "./src/baseicon/style/BaseIconStyle.js", + "./blank": "./src/blank/BlankIcon.vue", + "./calendar": "./src/calendar/CalendarIcon.vue", + "./check": "./src/check/CheckIcon.vue", + "./chevrondown": "./src/chevrondown/ChevronDownIcon.vue", + "./chevronleft": "./src/chevronleft/ChevronLeftIcon.vue", + "./chevronright": "./src/chevronright/ChevronRightIcon.vue", + "./chevronup": "./src/chevronup/ChevronUpIcon.vue", + "./exclamationtriangle": "./src/exclamationtriangle/ExclamationTriangleIcon.vue", + "./eye": "./src/eye/EyeIcon.vue", + "./eyeslash": "./src/eyeslash/EyeSlashIcon.vue", + "./filter": "./src/filter/FilterIcon.vue", + "./filterslash": "./src/filterslash/FilterSlashIcon.vue", + "./infocircle": "./src/infocircle/InfoCircleIcon.vue", + "./minus": "./src/minus/MinusIcon.vue", + "./pencil": "./src/pencil/PencilIcon.vue", + "./plus": "./src/plus/PlusIcon.vue", + "./refresh": "./src/refresh/RefreshIcon.vue", + "./search": "./src/search/SearchIcon.vue", + "./searchminus": "./src/searchminus/SearchMinusIcon.vue", + "./searchplus": "./src/searchplus/SearchPlusIcon.vue", + "./sortalt": "./src/sortalt/SortAltIcon.vue", + "./sortamountdown": "./src/sortamountdown/SortAmountDownIcon.vue", + "./sortamountupalt": "./src/sortamountupalt/SortAmountUpAltIcon.vue", + "./spinner": "./src/spinner/SpinnerIcon.vue", + "./star": "./src/star/StarIcon.vue", + "./starfill": "./src/starfill/StarFillIcon.vue", + "./thlarge": "./src/thlarge/ThLargeIcon.vue", + "./times": "./src/times/TimesIcon.vue", + "./timescircle": "./src/timescircle/TimesCircleIcon.vue", + "./trash": "./src/trash/TrashIcon.vue", + "./undo": "./src/undo/UndoIcon.vue", + "./upload": "./src/upload/UploadIcon.vue", + "./windowmaximize": "./src/windowmaximize/WindowMaximizeIcon.vue", + "./windowminimize": "./src/windowminimize/WindowMinimizeIcon.vue", + "./*": "./*" }, "publishConfig": { + "main": "./index.mjs", + "module": "./index.mjs", "types": "./index.d.ts", "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.mjs", + "default": "./index.mjs" + }, "./*": { "types": "./*/index.d.ts", - "import": "./*/index.mjs" + "import": "./*/index.mjs", + "default": "./*/index.mjs" } }, "directory": "dist", diff --git a/packages/icons/rollup.config.mjs b/packages/icons/rollup.config.mjs index a08826f70..f1cae6493 100644 --- a/packages/icons/rollup.config.mjs +++ b/packages/icons/rollup.config.mjs @@ -26,7 +26,22 @@ const EXTERNALS = [...GLOBAL_EXTERNALS, ...INLINE_EXTERNALS]; const ALIAS_ENTRIES = [ { find: /^@primevue\/icons\/(.*)$/, - replacement: path.resolve(__dirname, './src/$1/index.vue') + replacement: path.resolve(__dirname, './src/$1'), + customResolver(source, importer) { + const basedir = path.dirname(importer); + const folderPath = path.resolve(basedir, source); + const folderName = path.basename(folderPath); + + const fName = folderName === 'style' ? `${path.basename(path.dirname(folderPath))}Style` : folderName; + const files = fs.readdirSync(folderPath); + const targetFile = files.find((file) => { + const ext = path.extname(file); + + return ['.vue', '.js'].includes(ext) && path.basename(file, ext).toLowerCase() === fName.toLowerCase(); + }); + + return targetFile ? path.join(folderPath, targetFile) : null; + } }, { find: '@primevue/icons/baseicon/style', replacement: path.resolve(__dirname, './src/baseicon/style/BaseIconStyle.js') }, { find: '@primevue/icons/baseicon', replacement: path.resolve(__dirname, './src/baseicon/BaseIcon.vue') } @@ -167,7 +182,9 @@ function addIcons() { .filter((dir) => dir.isDirectory()) .forEach(({ name: folderName }) => { fs.readdirSync(path.resolve(__dirname, iconDir + '/' + folderName)).forEach((file) => { - if (/\.vue$/.test(file)) { + let name = file.split(/(.vue)$|(.js)$/)[0].toLowerCase(); + + if (name === folderName || name === `${folderName}icon`) { const input = process.env.INPUT_DIR + folderName + '/' + file; const output = process.env.OUTPUT_DIR + folderName + '/index'; @@ -195,7 +212,12 @@ function addStyle() { }); } +function addLibrary() { + ENTRY.format.es({ input: process.env.INPUT_DIR + 'index.js', output: process.env.OUTPUT_DIR + 'index' }); +} + addIcons(); addStyle(); +addLibrary(); export default ENTRY.entries; diff --git a/packages/icons/scripts/prebuild.mjs b/packages/icons/scripts/prebuild.mjs index e8449e469..43ae786ef 100644 --- a/packages/icons/scripts/prebuild.mjs +++ b/packages/icons/scripts/prebuild.mjs @@ -1,5 +1,79 @@ +import fs from 'fs-extra'; import path from 'path'; import { removeBuild, resolvePath, updatePackageJson } from '../../../scripts/build-helper.mjs'; removeBuild(import.meta.url); + +const { __dirname, INPUT_DIR } = resolvePath(import.meta.url); +const __root = path.resolve(__dirname, '../'); +const pkg = path.resolve(__root, './package.json'); + updatePackageJson(path.resolve(resolvePath(import.meta.url).__dirname, '../package.json')); + +// update package.json > "exports" for local +let exports = {}; +let modules = { + ignoredFolders: [], + esm: [ + `/***************** PrimeVue Icons (Auto-Generated) *****************/ +` + ] +}; + +fs.readdirSync(path.resolve(__root, INPUT_DIR), { withFileTypes: true }) + .filter((dir) => dir.isDirectory()) + .forEach(({ name: folderName }) => { + const folderPath = path.resolve(__root, INPUT_DIR + folderName); + + fs.readdirSync(folderPath).forEach((file) => { + let fileName = file.split(/(.vue)$|(.js)$/)[0]; + let name = fileName.toLowerCase(); + + if (name === folderName || name === `${folderName}icon`) { + const validModuleFolder = !modules.ignoredFolders.includes(folderName); + + exports[`./${folderName}`] = `./${INPUT_DIR}${folderName}/${file}`; + + if (validModuleFolder) { + modules.esm.push( + ` +// ${fileName} +export * from '@primevue/icons/${folderName}'; +export { default as ${fileName} } from '@primevue/icons/${folderName}'; +` + ); + } + + try { + fs.readdirSync(folderPath + '/style').forEach((file) => { + let subFileName = file.split(/(.js)$/)[0]; + let subName = subFileName.toLowerCase(); + + if (subName === `${folderName}style`) { + exports[`./${folderName}/style`] = `./${INPUT_DIR}${folderName}/style/${file}`; + + if (validModuleFolder) { + modules.esm.push( + `export * from '@primevue/icons/${folderName}/style'; +export { default as ${subFileName} } from '@primevue/icons/${folderName}/style'; +` + ); + } + } + }); + } catch {} + } + }); + }); +exports['./*'] = './*'; + +// package.json +const pkgJson = JSON.parse(fs.readFileSync(pkg, { encoding: 'utf8', flag: 'r' })); + +pkgJson.exports = exports; + +fs.writeFileSync(pkg, JSON.stringify(pkgJson, null, 4)); + +// ESM +fs.writeFileSync(INPUT_DIR + 'index.js', modules.esm.join('')); +fs.writeFileSync(INPUT_DIR + 'index.d.ts', modules.esm.join('')); diff --git a/packages/icons/src/angledoubledown/index.d.ts b/packages/icons/src/angledoubledown/AngleDoubleDownIcon.d.ts similarity index 83% rename from packages/icons/src/angledoubledown/index.d.ts rename to packages/icons/src/angledoubledown/AngleDoubleDownIcon.d.ts index 6a6120d94..25aafdd6c 100644 --- a/packages/icons/src/angledoubledown/index.d.ts +++ b/packages/icons/src/angledoubledown/AngleDoubleDownIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleDoubleDownIcon extends Icon {} diff --git a/packages/icons/src/angledoubledown/index.vue b/packages/icons/src/angledoubledown/AngleDoubleDownIcon.vue similarity index 100% rename from packages/icons/src/angledoubledown/index.vue rename to packages/icons/src/angledoubledown/AngleDoubleDownIcon.vue diff --git a/packages/icons/src/angledoubledown/package.json b/packages/icons/src/angledoubledown/package.json index dbc8e9bc4..55339d1e2 100644 --- a/packages/icons/src/angledoubledown/package.json +++ b/packages/icons/src/angledoubledown/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleDoubleDownIcon.vue", + "module": "./AngleDoubleDownIcon.vue", + "types": "./AngleDoubleDownIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleDoubleDownIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/angledoubleleft/index.d.ts b/packages/icons/src/angledoubleleft/AngleDoubleLeftIcon.d.ts similarity index 83% rename from packages/icons/src/angledoubleleft/index.d.ts rename to packages/icons/src/angledoubleleft/AngleDoubleLeftIcon.d.ts index 5fb584507..10e3c4204 100644 --- a/packages/icons/src/angledoubleleft/index.d.ts +++ b/packages/icons/src/angledoubleleft/AngleDoubleLeftIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleDoubleLeftIcon extends Icon {} diff --git a/packages/icons/src/angledoubleleft/index.vue b/packages/icons/src/angledoubleleft/AngleDoubleLeftIcon.vue similarity index 100% rename from packages/icons/src/angledoubleleft/index.vue rename to packages/icons/src/angledoubleleft/AngleDoubleLeftIcon.vue diff --git a/packages/icons/src/angledoubleleft/package.json b/packages/icons/src/angledoubleleft/package.json index dbc8e9bc4..eb2026ce8 100644 --- a/packages/icons/src/angledoubleleft/package.json +++ b/packages/icons/src/angledoubleleft/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleDoubleLeftIcon.vue", + "module": "./AngleDoubleLeftIcon.vue", + "types": "./AngleDoubleLeftIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleDoubleLeftIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/angledoubleright/index.d.ts b/packages/icons/src/angledoubleright/AngleDoubleRightIcon.d.ts similarity index 84% rename from packages/icons/src/angledoubleright/index.d.ts rename to packages/icons/src/angledoubleright/AngleDoubleRightIcon.d.ts index caae9c1fc..86c57760b 100644 --- a/packages/icons/src/angledoubleright/index.d.ts +++ b/packages/icons/src/angledoubleright/AngleDoubleRightIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleDoubleRightIcon extends Icon {} diff --git a/packages/icons/src/angledoubleright/index.vue b/packages/icons/src/angledoubleright/AngleDoubleRightIcon.vue similarity index 100% rename from packages/icons/src/angledoubleright/index.vue rename to packages/icons/src/angledoubleright/AngleDoubleRightIcon.vue diff --git a/packages/icons/src/angledoubleright/package.json b/packages/icons/src/angledoubleright/package.json index dbc8e9bc4..1b64db9c8 100644 --- a/packages/icons/src/angledoubleright/package.json +++ b/packages/icons/src/angledoubleright/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleDoubleRightIcon.vue", + "module": "./AngleDoubleRightIcon.vue", + "types": "./AngleDoubleRightIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleDoubleRightIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/angledoubleup/index.d.ts b/packages/icons/src/angledoubleup/AngleDoubleUpIcon.d.ts similarity index 83% rename from packages/icons/src/angledoubleup/index.d.ts rename to packages/icons/src/angledoubleup/AngleDoubleUpIcon.d.ts index 27d4d0251..0102ac5bd 100644 --- a/packages/icons/src/angledoubleup/index.d.ts +++ b/packages/icons/src/angledoubleup/AngleDoubleUpIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleDoubleUpIcon extends Icon {} diff --git a/packages/icons/src/angledoubleup/index.vue b/packages/icons/src/angledoubleup/AngleDoubleUpIcon.vue similarity index 100% rename from packages/icons/src/angledoubleup/index.vue rename to packages/icons/src/angledoubleup/AngleDoubleUpIcon.vue diff --git a/packages/icons/src/angledoubleup/package.json b/packages/icons/src/angledoubleup/package.json index dbc8e9bc4..f0b04ee99 100644 --- a/packages/icons/src/angledoubleup/package.json +++ b/packages/icons/src/angledoubleup/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleDoubleUpIcon.vue", + "module": "./AngleDoubleUpIcon.vue", + "types": "./AngleDoubleUpIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleDoubleUpIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/angledown/index.d.ts b/packages/icons/src/angledown/AngleDownIcon.d.ts similarity index 82% rename from packages/icons/src/angledown/index.d.ts rename to packages/icons/src/angledown/AngleDownIcon.d.ts index 30d9fa499..4a7ae2bff 100644 --- a/packages/icons/src/angledown/index.d.ts +++ b/packages/icons/src/angledown/AngleDownIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleDownIcon extends Icon {} diff --git a/packages/icons/src/angledown/index.vue b/packages/icons/src/angledown/AngleDownIcon.vue similarity index 100% rename from packages/icons/src/angledown/index.vue rename to packages/icons/src/angledown/AngleDownIcon.vue diff --git a/packages/icons/src/angledown/package.json b/packages/icons/src/angledown/package.json index dbc8e9bc4..24c81c192 100644 --- a/packages/icons/src/angledown/package.json +++ b/packages/icons/src/angledown/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleDownIcon.vue", + "module": "./AngleDownIcon.vue", + "types": "./AngleDownIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleDownIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/angleleft/index.d.ts b/packages/icons/src/angleleft/AngleLeftIcon.d.ts similarity index 82% rename from packages/icons/src/angleleft/index.d.ts rename to packages/icons/src/angleleft/AngleLeftIcon.d.ts index cde84a31a..7707274ed 100644 --- a/packages/icons/src/angleleft/index.d.ts +++ b/packages/icons/src/angleleft/AngleLeftIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleLeftIcon extends Icon {} diff --git a/packages/icons/src/angleleft/index.vue b/packages/icons/src/angleleft/AngleLeftIcon.vue similarity index 100% rename from packages/icons/src/angleleft/index.vue rename to packages/icons/src/angleleft/AngleLeftIcon.vue diff --git a/packages/icons/src/angleleft/package.json b/packages/icons/src/angleleft/package.json index dbc8e9bc4..29d37cf63 100644 --- a/packages/icons/src/angleleft/package.json +++ b/packages/icons/src/angleleft/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleLeftIcon.vue", + "module": "./AngleLeftIcon.vue", + "types": "./AngleLeftIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleLeftIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/angleright/index.d.ts b/packages/icons/src/angleright/AngleRightIcon.d.ts similarity index 82% rename from packages/icons/src/angleright/index.d.ts rename to packages/icons/src/angleright/AngleRightIcon.d.ts index 824fd596e..ae5070e26 100644 --- a/packages/icons/src/angleright/index.d.ts +++ b/packages/icons/src/angleright/AngleRightIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleRightIcon extends Icon {} diff --git a/packages/icons/src/angleright/index.vue b/packages/icons/src/angleright/AngleRightIcon.vue similarity index 100% rename from packages/icons/src/angleright/index.vue rename to packages/icons/src/angleright/AngleRightIcon.vue diff --git a/packages/icons/src/angleright/package.json b/packages/icons/src/angleright/package.json index dbc8e9bc4..9d144bfb5 100644 --- a/packages/icons/src/angleright/package.json +++ b/packages/icons/src/angleright/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleRightIcon.vue", + "module": "./AngleRightIcon.vue", + "types": "./AngleRightIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleRightIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/angleup/index.d.ts b/packages/icons/src/angleup/AngleUpIcon.d.ts similarity index 82% rename from packages/icons/src/angleup/index.d.ts rename to packages/icons/src/angleup/AngleUpIcon.d.ts index fed29c702..0f2a637af 100644 --- a/packages/icons/src/angleup/index.d.ts +++ b/packages/icons/src/angleup/AngleUpIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class AngleUpIcon extends Icon {} diff --git a/packages/icons/src/angleup/index.vue b/packages/icons/src/angleup/AngleUpIcon.vue similarity index 100% rename from packages/icons/src/angleup/index.vue rename to packages/icons/src/angleup/AngleUpIcon.vue diff --git a/packages/icons/src/angleup/package.json b/packages/icons/src/angleup/package.json index dbc8e9bc4..37cff67b1 100644 --- a/packages/icons/src/angleup/package.json +++ b/packages/icons/src/angleup/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./AngleUpIcon.vue", + "module": "./AngleUpIcon.vue", + "types": "./AngleUpIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./AngleUpIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/arrowdown/index.d.ts b/packages/icons/src/arrowdown/ArrowDownIcon.d.ts similarity index 82% rename from packages/icons/src/arrowdown/index.d.ts rename to packages/icons/src/arrowdown/ArrowDownIcon.d.ts index 4fdc721a7..baf05a298 100644 --- a/packages/icons/src/arrowdown/index.d.ts +++ b/packages/icons/src/arrowdown/ArrowDownIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ArrowDownIcon extends Icon {} diff --git a/packages/icons/src/arrowdown/index.vue b/packages/icons/src/arrowdown/ArrowDownIcon.vue similarity index 100% rename from packages/icons/src/arrowdown/index.vue rename to packages/icons/src/arrowdown/ArrowDownIcon.vue diff --git a/packages/icons/src/arrowdown/package.json b/packages/icons/src/arrowdown/package.json index dbc8e9bc4..17e15c1d1 100644 --- a/packages/icons/src/arrowdown/package.json +++ b/packages/icons/src/arrowdown/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ArrowDownIcon.vue", + "module": "./ArrowDownIcon.vue", + "types": "./ArrowDownIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ArrowDownIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/arrowup/index.d.ts b/packages/icons/src/arrowup/ArrowUpIcon.d.ts similarity index 82% rename from packages/icons/src/arrowup/index.d.ts rename to packages/icons/src/arrowup/ArrowUpIcon.d.ts index 0973dd247..680e08ddd 100644 --- a/packages/icons/src/arrowup/index.d.ts +++ b/packages/icons/src/arrowup/ArrowUpIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ArrowUpIcon extends Icon {} diff --git a/packages/icons/src/arrowup/index.vue b/packages/icons/src/arrowup/ArrowUpIcon.vue similarity index 100% rename from packages/icons/src/arrowup/index.vue rename to packages/icons/src/arrowup/ArrowUpIcon.vue diff --git a/packages/icons/src/arrowup/package.json b/packages/icons/src/arrowup/package.json index dbc8e9bc4..e81bac823 100644 --- a/packages/icons/src/arrowup/package.json +++ b/packages/icons/src/arrowup/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ArrowUpIcon.vue", + "module": "./ArrowUpIcon.vue", + "types": "./ArrowUpIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ArrowUpIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/ban/index.d.ts b/packages/icons/src/ban/BanIcon.d.ts similarity index 81% rename from packages/icons/src/ban/index.d.ts rename to packages/icons/src/ban/BanIcon.d.ts index 227cd88f0..61889282f 100644 --- a/packages/icons/src/ban/index.d.ts +++ b/packages/icons/src/ban/BanIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class BanIcon extends Icon {} diff --git a/packages/icons/src/ban/index.vue b/packages/icons/src/ban/BanIcon.vue similarity index 100% rename from packages/icons/src/ban/index.vue rename to packages/icons/src/ban/BanIcon.vue diff --git a/packages/icons/src/ban/package.json b/packages/icons/src/ban/package.json index dbc8e9bc4..5d607ba0d 100644 --- a/packages/icons/src/ban/package.json +++ b/packages/icons/src/ban/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./BanIcon.vue", + "module": "./BanIcon.vue", + "types": "./BanIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./BanIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/bars/index.d.ts b/packages/icons/src/bars/BarsIcon.d.ts similarity index 81% rename from packages/icons/src/bars/index.d.ts rename to packages/icons/src/bars/BarsIcon.d.ts index 3875c317d..e4acd9395 100644 --- a/packages/icons/src/bars/index.d.ts +++ b/packages/icons/src/bars/BarsIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class BarsIcon extends Icon {} diff --git a/packages/icons/src/bars/index.vue b/packages/icons/src/bars/BarsIcon.vue similarity index 100% rename from packages/icons/src/bars/index.vue rename to packages/icons/src/bars/BarsIcon.vue diff --git a/packages/icons/src/bars/package.json b/packages/icons/src/bars/package.json index dbc8e9bc4..73e71ce2e 100644 --- a/packages/icons/src/bars/package.json +++ b/packages/icons/src/bars/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./BarsIcon.vue", + "module": "./BarsIcon.vue", + "types": "./BarsIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./BarsIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/baseicon/BaseIcon.d.ts b/packages/icons/src/baseicon/BaseIcon.d.ts new file mode 100644 index 000000000..834c85a44 --- /dev/null +++ b/packages/icons/src/baseicon/BaseIcon.d.ts @@ -0,0 +1,14 @@ +import type { DefineComponent, EmitFn } from '@primevue/core'; + +export interface IconProps { + label?: string | undefined; + spin?: boolean; +} + +export interface IconSlots {} + +export interface IconEmitsOptions {} + +export declare type IconEmits = EmitFn; + +export declare const Icon: DefineComponent; diff --git a/packages/icons/src/baseicon/package.json b/packages/icons/src/baseicon/package.json index 71301135c..c2ae99088 100644 --- a/packages/icons/src/baseicon/package.json +++ b/packages/icons/src/baseicon/package.json @@ -1,6 +1,7 @@ { "main": "./BaseIcon.vue", "module": "./BaseIcon.vue", + "types": "./BaseIcon.d.ts", "browser": { "./sfc": "./BaseIcon.vue" }, diff --git a/packages/icons/src/blank/index.d.ts b/packages/icons/src/blank/BlankIcon.d.ts similarity index 81% rename from packages/icons/src/blank/index.d.ts rename to packages/icons/src/blank/BlankIcon.d.ts index a69ef4d19..518d93128 100644 --- a/packages/icons/src/blank/index.d.ts +++ b/packages/icons/src/blank/BlankIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class BlankIcon extends Icon {} diff --git a/packages/icons/src/blank/index.vue b/packages/icons/src/blank/BlankIcon.vue similarity index 100% rename from packages/icons/src/blank/index.vue rename to packages/icons/src/blank/BlankIcon.vue diff --git a/packages/icons/src/blank/package.json b/packages/icons/src/blank/package.json index dbc8e9bc4..5c7d723ec 100644 --- a/packages/icons/src/blank/package.json +++ b/packages/icons/src/blank/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./BlankIcon.vue", + "module": "./BlankIcon.vue", + "types": "./BlankIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./BlankIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/calendar/index.d.ts b/packages/icons/src/calendar/CalendarIcon.d.ts similarity index 82% rename from packages/icons/src/calendar/index.d.ts rename to packages/icons/src/calendar/CalendarIcon.d.ts index 40d2ab095..4e25b2729 100644 --- a/packages/icons/src/calendar/index.d.ts +++ b/packages/icons/src/calendar/CalendarIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class CalendarIcon extends Icon {} diff --git a/packages/icons/src/calendar/index.vue b/packages/icons/src/calendar/CalendarIcon.vue similarity index 100% rename from packages/icons/src/calendar/index.vue rename to packages/icons/src/calendar/CalendarIcon.vue diff --git a/packages/icons/src/calendar/package.json b/packages/icons/src/calendar/package.json index dbc8e9bc4..eaa2a0c5f 100644 --- a/packages/icons/src/calendar/package.json +++ b/packages/icons/src/calendar/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./CalendarIcon.vue", + "module": "./CalendarIcon.vue", + "types": "./CalendarIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./CalendarIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/check/index.d.ts b/packages/icons/src/check/CheckIcon.d.ts similarity index 81% rename from packages/icons/src/check/index.d.ts rename to packages/icons/src/check/CheckIcon.d.ts index 97862fd33..4b2d4232b 100644 --- a/packages/icons/src/check/index.d.ts +++ b/packages/icons/src/check/CheckIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class CheckIcon extends Icon {} diff --git a/packages/icons/src/check/index.vue b/packages/icons/src/check/CheckIcon.vue similarity index 100% rename from packages/icons/src/check/index.vue rename to packages/icons/src/check/CheckIcon.vue diff --git a/packages/icons/src/check/package.json b/packages/icons/src/check/package.json index dbc8e9bc4..5424f1f25 100644 --- a/packages/icons/src/check/package.json +++ b/packages/icons/src/check/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./CheckIcon.vue", + "module": "./CheckIcon.vue", + "types": "./CheckIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./CheckIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/chevrondown/index.d.ts b/packages/icons/src/chevrondown/ChevronDownIcon.d.ts similarity index 83% rename from packages/icons/src/chevrondown/index.d.ts rename to packages/icons/src/chevrondown/ChevronDownIcon.d.ts index fcd17e125..bd9ac4277 100644 --- a/packages/icons/src/chevrondown/index.d.ts +++ b/packages/icons/src/chevrondown/ChevronDownIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ChevronDownIcon extends Icon {} diff --git a/packages/icons/src/chevrondown/index.vue b/packages/icons/src/chevrondown/ChevronDownIcon.vue similarity index 100% rename from packages/icons/src/chevrondown/index.vue rename to packages/icons/src/chevrondown/ChevronDownIcon.vue diff --git a/packages/icons/src/chevrondown/package.json b/packages/icons/src/chevrondown/package.json index dbc8e9bc4..f6dafdae2 100644 --- a/packages/icons/src/chevrondown/package.json +++ b/packages/icons/src/chevrondown/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ChevronDownIcon.vue", + "module": "./ChevronDownIcon.vue", + "types": "./ChevronDownIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ChevronDownIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/chevronleft/index.d.ts b/packages/icons/src/chevronleft/ChevronLeftIcon.d.ts similarity index 83% rename from packages/icons/src/chevronleft/index.d.ts rename to packages/icons/src/chevronleft/ChevronLeftIcon.d.ts index 0437d12c3..fa6fe7dda 100644 --- a/packages/icons/src/chevronleft/index.d.ts +++ b/packages/icons/src/chevronleft/ChevronLeftIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ChevronLeftIcon extends Icon {} diff --git a/packages/icons/src/chevronleft/index.vue b/packages/icons/src/chevronleft/ChevronLeftIcon.vue similarity index 100% rename from packages/icons/src/chevronleft/index.vue rename to packages/icons/src/chevronleft/ChevronLeftIcon.vue diff --git a/packages/icons/src/chevronleft/package.json b/packages/icons/src/chevronleft/package.json index dbc8e9bc4..0a87c150e 100644 --- a/packages/icons/src/chevronleft/package.json +++ b/packages/icons/src/chevronleft/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ChevronLeftIcon.vue", + "module": "./ChevronLeftIcon.vue", + "types": "./ChevronLeftIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ChevronLeftIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/chevronright/index.d.ts b/packages/icons/src/chevronright/ChevronRightIcon.d.ts similarity index 83% rename from packages/icons/src/chevronright/index.d.ts rename to packages/icons/src/chevronright/ChevronRightIcon.d.ts index ccb1b7f4f..7fa2bba76 100644 --- a/packages/icons/src/chevronright/index.d.ts +++ b/packages/icons/src/chevronright/ChevronRightIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ChevronRightIcon extends Icon {} diff --git a/packages/icons/src/chevronright/index.vue b/packages/icons/src/chevronright/ChevronRightIcon.vue similarity index 100% rename from packages/icons/src/chevronright/index.vue rename to packages/icons/src/chevronright/ChevronRightIcon.vue diff --git a/packages/icons/src/chevronright/package.json b/packages/icons/src/chevronright/package.json index dbc8e9bc4..5966b02a6 100644 --- a/packages/icons/src/chevronright/package.json +++ b/packages/icons/src/chevronright/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ChevronRightIcon.vue", + "module": "./ChevronRightIcon.vue", + "types": "./ChevronRightIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ChevronRightIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/chevronup/index.d.ts b/packages/icons/src/chevronup/ChevronUpIcon.d.ts similarity index 82% rename from packages/icons/src/chevronup/index.d.ts rename to packages/icons/src/chevronup/ChevronUpIcon.d.ts index 2a450e45f..0cac59a85 100644 --- a/packages/icons/src/chevronup/index.d.ts +++ b/packages/icons/src/chevronup/ChevronUpIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ChevronUpIcon extends Icon {} diff --git a/packages/icons/src/chevronup/index.vue b/packages/icons/src/chevronup/ChevronUpIcon.vue similarity index 100% rename from packages/icons/src/chevronup/index.vue rename to packages/icons/src/chevronup/ChevronUpIcon.vue diff --git a/packages/icons/src/chevronup/package.json b/packages/icons/src/chevronup/package.json index dbc8e9bc4..d3d9bbe62 100644 --- a/packages/icons/src/chevronup/package.json +++ b/packages/icons/src/chevronup/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ChevronUpIcon.vue", + "module": "./ChevronUpIcon.vue", + "types": "./ChevronUpIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ChevronUpIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/exclamationtriangle/index.d.ts b/packages/icons/src/exclamationtriangle/ExclamationTriangleIcon.d.ts similarity index 84% rename from packages/icons/src/exclamationtriangle/index.d.ts rename to packages/icons/src/exclamationtriangle/ExclamationTriangleIcon.d.ts index bc3cc6937..94f0d64a9 100644 --- a/packages/icons/src/exclamationtriangle/index.d.ts +++ b/packages/icons/src/exclamationtriangle/ExclamationTriangleIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ExclamationTriangleIcon extends Icon {} diff --git a/packages/icons/src/exclamationtriangle/index.vue b/packages/icons/src/exclamationtriangle/ExclamationTriangleIcon.vue similarity index 100% rename from packages/icons/src/exclamationtriangle/index.vue rename to packages/icons/src/exclamationtriangle/ExclamationTriangleIcon.vue diff --git a/packages/icons/src/exclamationtriangle/package.json b/packages/icons/src/exclamationtriangle/package.json index dbc8e9bc4..b4ca58d2f 100644 --- a/packages/icons/src/exclamationtriangle/package.json +++ b/packages/icons/src/exclamationtriangle/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ExclamationTriangleIcon.vue", + "module": "./ExclamationTriangleIcon.vue", + "types": "./ExclamationTriangleIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ExclamationTriangleIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/eye/index.d.ts b/packages/icons/src/eye/EyeIcon.d.ts similarity index 81% rename from packages/icons/src/eye/index.d.ts rename to packages/icons/src/eye/EyeIcon.d.ts index 2540f37e7..2f5e35a55 100644 --- a/packages/icons/src/eye/index.d.ts +++ b/packages/icons/src/eye/EyeIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class EyeIcon extends Icon {} diff --git a/packages/icons/src/eye/index.vue b/packages/icons/src/eye/EyeIcon.vue similarity index 100% rename from packages/icons/src/eye/index.vue rename to packages/icons/src/eye/EyeIcon.vue diff --git a/packages/icons/src/eye/package.json b/packages/icons/src/eye/package.json index dbc8e9bc4..92846e597 100644 --- a/packages/icons/src/eye/package.json +++ b/packages/icons/src/eye/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./EyeIcon.vue", + "module": "./EyeIcon.vue", + "types": "./EyeIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./EyeIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/eyeslash/index.d.ts b/packages/icons/src/eyeslash/EyeSlashIcon.d.ts similarity index 82% rename from packages/icons/src/eyeslash/index.d.ts rename to packages/icons/src/eyeslash/EyeSlashIcon.d.ts index b51d990c4..bb3d79e8b 100644 --- a/packages/icons/src/eyeslash/index.d.ts +++ b/packages/icons/src/eyeslash/EyeSlashIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class EyeSlashIcon extends Icon {} diff --git a/packages/icons/src/eyeslash/index.vue b/packages/icons/src/eyeslash/EyeSlashIcon.vue similarity index 100% rename from packages/icons/src/eyeslash/index.vue rename to packages/icons/src/eyeslash/EyeSlashIcon.vue diff --git a/packages/icons/src/eyeslash/package.json b/packages/icons/src/eyeslash/package.json index dbc8e9bc4..36f96fd4e 100644 --- a/packages/icons/src/eyeslash/package.json +++ b/packages/icons/src/eyeslash/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./EyeSlashIcon.vue", + "module": "./EyeSlashIcon.vue", + "types": "./EyeSlashIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./EyeSlashIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/filter/index.d.ts b/packages/icons/src/filter/FilterIcon.d.ts similarity index 82% rename from packages/icons/src/filter/index.d.ts rename to packages/icons/src/filter/FilterIcon.d.ts index 4a0ea6483..2f54eb664 100644 --- a/packages/icons/src/filter/index.d.ts +++ b/packages/icons/src/filter/FilterIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class FilterIcon extends Icon {} diff --git a/packages/icons/src/filter/index.vue b/packages/icons/src/filter/FilterIcon.vue similarity index 100% rename from packages/icons/src/filter/index.vue rename to packages/icons/src/filter/FilterIcon.vue diff --git a/packages/icons/src/filter/package.json b/packages/icons/src/filter/package.json index dbc8e9bc4..035ffdcec 100644 --- a/packages/icons/src/filter/package.json +++ b/packages/icons/src/filter/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./FilterIcon.vue", + "module": "./FilterIcon.vue", + "types": "./FilterIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./FilterIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/filterslash/index.d.ts b/packages/icons/src/filterslash/FilterSlashIcon.d.ts similarity index 83% rename from packages/icons/src/filterslash/index.d.ts rename to packages/icons/src/filterslash/FilterSlashIcon.d.ts index 57c83ce69..8b923efff 100644 --- a/packages/icons/src/filterslash/index.d.ts +++ b/packages/icons/src/filterslash/FilterSlashIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class FilterSlashIcon extends Icon {} diff --git a/packages/icons/src/filterslash/index.vue b/packages/icons/src/filterslash/FilterSlashIcon.vue similarity index 100% rename from packages/icons/src/filterslash/index.vue rename to packages/icons/src/filterslash/FilterSlashIcon.vue diff --git a/packages/icons/src/filterslash/package.json b/packages/icons/src/filterslash/package.json index dbc8e9bc4..bc9943779 100644 --- a/packages/icons/src/filterslash/package.json +++ b/packages/icons/src/filterslash/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./FilterSlashIcon.vue", + "module": "./FilterSlashIcon.vue", + "types": "./FilterSlashIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./FilterSlashIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/index.d.ts b/packages/icons/src/index.d.ts index 3e24927b2..35a66df89 100644 --- a/packages/icons/src/index.d.ts +++ b/packages/icons/src/index.d.ts @@ -1,14 +1,191 @@ -import type { DefineComponent, EmitFn } from '@primevue/core'; +/***************** PrimeVue Icons (Auto-Generated) *****************/ -export interface IconProps { - label?: string | undefined; - spin?: boolean; -} +// AngleDoubleDownIcon +export * from '@primevue/icons/angledoubledown'; +export { default as AngleDoubleDownIcon } from '@primevue/icons/angledoubledown'; -export interface IconSlots {} +// AngleDoubleLeftIcon +export * from '@primevue/icons/angledoubleleft'; +export { default as AngleDoubleLeftIcon } from '@primevue/icons/angledoubleleft'; -export interface IconEmitsOptions {} +// AngleDoubleRightIcon +export * from '@primevue/icons/angledoubleright'; +export { default as AngleDoubleRightIcon } from '@primevue/icons/angledoubleright'; -export declare type IconEmits = EmitFn; +// AngleDoubleUpIcon +export * from '@primevue/icons/angledoubleup'; +export { default as AngleDoubleUpIcon } from '@primevue/icons/angledoubleup'; -declare const Icon: DefineComponent; +// AngleDownIcon +export * from '@primevue/icons/angledown'; +export { default as AngleDownIcon } from '@primevue/icons/angledown'; + +// AngleLeftIcon +export * from '@primevue/icons/angleleft'; +export { default as AngleLeftIcon } from '@primevue/icons/angleleft'; + +// AngleRightIcon +export * from '@primevue/icons/angleright'; +export { default as AngleRightIcon } from '@primevue/icons/angleright'; + +// AngleUpIcon +export * from '@primevue/icons/angleup'; +export { default as AngleUpIcon } from '@primevue/icons/angleup'; + +// ArrowDownIcon +export * from '@primevue/icons/arrowdown'; +export { default as ArrowDownIcon } from '@primevue/icons/arrowdown'; + +// ArrowUpIcon +export * from '@primevue/icons/arrowup'; +export { default as ArrowUpIcon } from '@primevue/icons/arrowup'; + +// BanIcon +export * from '@primevue/icons/ban'; +export { default as BanIcon } from '@primevue/icons/ban'; + +// BarsIcon +export * from '@primevue/icons/bars'; +export { default as BarsIcon } from '@primevue/icons/bars'; + +// BaseIcon +export * from '@primevue/icons/baseicon'; +export { default as BaseIcon } from '@primevue/icons/baseicon'; +export * from '@primevue/icons/baseicon/style'; +export { default as BaseIconStyle } from '@primevue/icons/baseicon/style'; + +// BlankIcon +export * from '@primevue/icons/blank'; +export { default as BlankIcon } from '@primevue/icons/blank'; + +// CalendarIcon +export * from '@primevue/icons/calendar'; +export { default as CalendarIcon } from '@primevue/icons/calendar'; + +// CheckIcon +export * from '@primevue/icons/check'; +export { default as CheckIcon } from '@primevue/icons/check'; + +// ChevronDownIcon +export * from '@primevue/icons/chevrondown'; +export { default as ChevronDownIcon } from '@primevue/icons/chevrondown'; + +// ChevronLeftIcon +export * from '@primevue/icons/chevronleft'; +export { default as ChevronLeftIcon } from '@primevue/icons/chevronleft'; + +// ChevronRightIcon +export * from '@primevue/icons/chevronright'; +export { default as ChevronRightIcon } from '@primevue/icons/chevronright'; + +// ChevronUpIcon +export * from '@primevue/icons/chevronup'; +export { default as ChevronUpIcon } from '@primevue/icons/chevronup'; + +// ExclamationTriangleIcon +export * from '@primevue/icons/exclamationtriangle'; +export { default as ExclamationTriangleIcon } from '@primevue/icons/exclamationtriangle'; + +// EyeIcon +export * from '@primevue/icons/eye'; +export { default as EyeIcon } from '@primevue/icons/eye'; + +// EyeSlashIcon +export * from '@primevue/icons/eyeslash'; +export { default as EyeSlashIcon } from '@primevue/icons/eyeslash'; + +// FilterIcon +export * from '@primevue/icons/filter'; +export { default as FilterIcon } from '@primevue/icons/filter'; + +// FilterSlashIcon +export * from '@primevue/icons/filterslash'; +export { default as FilterSlashIcon } from '@primevue/icons/filterslash'; + +// InfoCircleIcon +export * from '@primevue/icons/infocircle'; +export { default as InfoCircleIcon } from '@primevue/icons/infocircle'; + +// MinusIcon +export * from '@primevue/icons/minus'; +export { default as MinusIcon } from '@primevue/icons/minus'; + +// PencilIcon +export * from '@primevue/icons/pencil'; +export { default as PencilIcon } from '@primevue/icons/pencil'; + +// PlusIcon +export * from '@primevue/icons/plus'; +export { default as PlusIcon } from '@primevue/icons/plus'; + +// RefreshIcon +export * from '@primevue/icons/refresh'; +export { default as RefreshIcon } from '@primevue/icons/refresh'; + +// SearchIcon +export * from '@primevue/icons/search'; +export { default as SearchIcon } from '@primevue/icons/search'; + +// SearchMinusIcon +export * from '@primevue/icons/searchminus'; +export { default as SearchMinusIcon } from '@primevue/icons/searchminus'; + +// SearchPlusIcon +export * from '@primevue/icons/searchplus'; +export { default as SearchPlusIcon } from '@primevue/icons/searchplus'; + +// SortAltIcon +export * from '@primevue/icons/sortalt'; +export { default as SortAltIcon } from '@primevue/icons/sortalt'; + +// SortAmountDownIcon +export * from '@primevue/icons/sortamountdown'; +export { default as SortAmountDownIcon } from '@primevue/icons/sortamountdown'; + +// SortAmountUpAltIcon +export * from '@primevue/icons/sortamountupalt'; +export { default as SortAmountUpAltIcon } from '@primevue/icons/sortamountupalt'; + +// SpinnerIcon +export * from '@primevue/icons/spinner'; +export { default as SpinnerIcon } from '@primevue/icons/spinner'; + +// StarIcon +export * from '@primevue/icons/star'; +export { default as StarIcon } from '@primevue/icons/star'; + +// StarFillIcon +export * from '@primevue/icons/starfill'; +export { default as StarFillIcon } from '@primevue/icons/starfill'; + +// ThLargeIcon +export * from '@primevue/icons/thlarge'; +export { default as ThLargeIcon } from '@primevue/icons/thlarge'; + +// TimesIcon +export * from '@primevue/icons/times'; +export { default as TimesIcon } from '@primevue/icons/times'; + +// TimesCircleIcon +export * from '@primevue/icons/timescircle'; +export { default as TimesCircleIcon } from '@primevue/icons/timescircle'; + +// TrashIcon +export * from '@primevue/icons/trash'; +export { default as TrashIcon } from '@primevue/icons/trash'; + +// UndoIcon +export * from '@primevue/icons/undo'; +export { default as UndoIcon } from '@primevue/icons/undo'; + +// UploadIcon +export * from '@primevue/icons/upload'; +export { default as UploadIcon } from '@primevue/icons/upload'; + +// WindowMaximizeIcon +export * from '@primevue/icons/windowmaximize'; +export { default as WindowMaximizeIcon } from '@primevue/icons/windowmaximize'; + +// WindowMinimizeIcon +export * from '@primevue/icons/windowminimize'; +export { default as WindowMinimizeIcon } from '@primevue/icons/windowminimize'; diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js new file mode 100644 index 000000000..35a66df89 --- /dev/null +++ b/packages/icons/src/index.js @@ -0,0 +1,191 @@ +/***************** PrimeVue Icons (Auto-Generated) *****************/ + +// AngleDoubleDownIcon +export * from '@primevue/icons/angledoubledown'; +export { default as AngleDoubleDownIcon } from '@primevue/icons/angledoubledown'; + +// AngleDoubleLeftIcon +export * from '@primevue/icons/angledoubleleft'; +export { default as AngleDoubleLeftIcon } from '@primevue/icons/angledoubleleft'; + +// AngleDoubleRightIcon +export * from '@primevue/icons/angledoubleright'; +export { default as AngleDoubleRightIcon } from '@primevue/icons/angledoubleright'; + +// AngleDoubleUpIcon +export * from '@primevue/icons/angledoubleup'; +export { default as AngleDoubleUpIcon } from '@primevue/icons/angledoubleup'; + +// AngleDownIcon +export * from '@primevue/icons/angledown'; +export { default as AngleDownIcon } from '@primevue/icons/angledown'; + +// AngleLeftIcon +export * from '@primevue/icons/angleleft'; +export { default as AngleLeftIcon } from '@primevue/icons/angleleft'; + +// AngleRightIcon +export * from '@primevue/icons/angleright'; +export { default as AngleRightIcon } from '@primevue/icons/angleright'; + +// AngleUpIcon +export * from '@primevue/icons/angleup'; +export { default as AngleUpIcon } from '@primevue/icons/angleup'; + +// ArrowDownIcon +export * from '@primevue/icons/arrowdown'; +export { default as ArrowDownIcon } from '@primevue/icons/arrowdown'; + +// ArrowUpIcon +export * from '@primevue/icons/arrowup'; +export { default as ArrowUpIcon } from '@primevue/icons/arrowup'; + +// BanIcon +export * from '@primevue/icons/ban'; +export { default as BanIcon } from '@primevue/icons/ban'; + +// BarsIcon +export * from '@primevue/icons/bars'; +export { default as BarsIcon } from '@primevue/icons/bars'; + +// BaseIcon +export * from '@primevue/icons/baseicon'; +export { default as BaseIcon } from '@primevue/icons/baseicon'; +export * from '@primevue/icons/baseicon/style'; +export { default as BaseIconStyle } from '@primevue/icons/baseicon/style'; + +// BlankIcon +export * from '@primevue/icons/blank'; +export { default as BlankIcon } from '@primevue/icons/blank'; + +// CalendarIcon +export * from '@primevue/icons/calendar'; +export { default as CalendarIcon } from '@primevue/icons/calendar'; + +// CheckIcon +export * from '@primevue/icons/check'; +export { default as CheckIcon } from '@primevue/icons/check'; + +// ChevronDownIcon +export * from '@primevue/icons/chevrondown'; +export { default as ChevronDownIcon } from '@primevue/icons/chevrondown'; + +// ChevronLeftIcon +export * from '@primevue/icons/chevronleft'; +export { default as ChevronLeftIcon } from '@primevue/icons/chevronleft'; + +// ChevronRightIcon +export * from '@primevue/icons/chevronright'; +export { default as ChevronRightIcon } from '@primevue/icons/chevronright'; + +// ChevronUpIcon +export * from '@primevue/icons/chevronup'; +export { default as ChevronUpIcon } from '@primevue/icons/chevronup'; + +// ExclamationTriangleIcon +export * from '@primevue/icons/exclamationtriangle'; +export { default as ExclamationTriangleIcon } from '@primevue/icons/exclamationtriangle'; + +// EyeIcon +export * from '@primevue/icons/eye'; +export { default as EyeIcon } from '@primevue/icons/eye'; + +// EyeSlashIcon +export * from '@primevue/icons/eyeslash'; +export { default as EyeSlashIcon } from '@primevue/icons/eyeslash'; + +// FilterIcon +export * from '@primevue/icons/filter'; +export { default as FilterIcon } from '@primevue/icons/filter'; + +// FilterSlashIcon +export * from '@primevue/icons/filterslash'; +export { default as FilterSlashIcon } from '@primevue/icons/filterslash'; + +// InfoCircleIcon +export * from '@primevue/icons/infocircle'; +export { default as InfoCircleIcon } from '@primevue/icons/infocircle'; + +// MinusIcon +export * from '@primevue/icons/minus'; +export { default as MinusIcon } from '@primevue/icons/minus'; + +// PencilIcon +export * from '@primevue/icons/pencil'; +export { default as PencilIcon } from '@primevue/icons/pencil'; + +// PlusIcon +export * from '@primevue/icons/plus'; +export { default as PlusIcon } from '@primevue/icons/plus'; + +// RefreshIcon +export * from '@primevue/icons/refresh'; +export { default as RefreshIcon } from '@primevue/icons/refresh'; + +// SearchIcon +export * from '@primevue/icons/search'; +export { default as SearchIcon } from '@primevue/icons/search'; + +// SearchMinusIcon +export * from '@primevue/icons/searchminus'; +export { default as SearchMinusIcon } from '@primevue/icons/searchminus'; + +// SearchPlusIcon +export * from '@primevue/icons/searchplus'; +export { default as SearchPlusIcon } from '@primevue/icons/searchplus'; + +// SortAltIcon +export * from '@primevue/icons/sortalt'; +export { default as SortAltIcon } from '@primevue/icons/sortalt'; + +// SortAmountDownIcon +export * from '@primevue/icons/sortamountdown'; +export { default as SortAmountDownIcon } from '@primevue/icons/sortamountdown'; + +// SortAmountUpAltIcon +export * from '@primevue/icons/sortamountupalt'; +export { default as SortAmountUpAltIcon } from '@primevue/icons/sortamountupalt'; + +// SpinnerIcon +export * from '@primevue/icons/spinner'; +export { default as SpinnerIcon } from '@primevue/icons/spinner'; + +// StarIcon +export * from '@primevue/icons/star'; +export { default as StarIcon } from '@primevue/icons/star'; + +// StarFillIcon +export * from '@primevue/icons/starfill'; +export { default as StarFillIcon } from '@primevue/icons/starfill'; + +// ThLargeIcon +export * from '@primevue/icons/thlarge'; +export { default as ThLargeIcon } from '@primevue/icons/thlarge'; + +// TimesIcon +export * from '@primevue/icons/times'; +export { default as TimesIcon } from '@primevue/icons/times'; + +// TimesCircleIcon +export * from '@primevue/icons/timescircle'; +export { default as TimesCircleIcon } from '@primevue/icons/timescircle'; + +// TrashIcon +export * from '@primevue/icons/trash'; +export { default as TrashIcon } from '@primevue/icons/trash'; + +// UndoIcon +export * from '@primevue/icons/undo'; +export { default as UndoIcon } from '@primevue/icons/undo'; + +// UploadIcon +export * from '@primevue/icons/upload'; +export { default as UploadIcon } from '@primevue/icons/upload'; + +// WindowMaximizeIcon +export * from '@primevue/icons/windowmaximize'; +export { default as WindowMaximizeIcon } from '@primevue/icons/windowmaximize'; + +// WindowMinimizeIcon +export * from '@primevue/icons/windowminimize'; +export { default as WindowMinimizeIcon } from '@primevue/icons/windowminimize'; diff --git a/packages/icons/src/infocircle/index.d.ts b/packages/icons/src/infocircle/InfoCircleIcon.d.ts similarity index 82% rename from packages/icons/src/infocircle/index.d.ts rename to packages/icons/src/infocircle/InfoCircleIcon.d.ts index 59c8a6e0d..f907ab648 100644 --- a/packages/icons/src/infocircle/index.d.ts +++ b/packages/icons/src/infocircle/InfoCircleIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class InfoCircleIcon extends Icon {} diff --git a/packages/icons/src/infocircle/index.vue b/packages/icons/src/infocircle/InfoCircleIcon.vue similarity index 100% rename from packages/icons/src/infocircle/index.vue rename to packages/icons/src/infocircle/InfoCircleIcon.vue diff --git a/packages/icons/src/infocircle/package.json b/packages/icons/src/infocircle/package.json index dbc8e9bc4..a8db1d927 100644 --- a/packages/icons/src/infocircle/package.json +++ b/packages/icons/src/infocircle/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./InfoCircleIcon.vue", + "module": "./InfoCircleIcon.vue", + "types": "./InfoCircleIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./InfoCircleIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/minus/index.d.ts b/packages/icons/src/minus/MinusIcon.d.ts similarity index 81% rename from packages/icons/src/minus/index.d.ts rename to packages/icons/src/minus/MinusIcon.d.ts index f52acc372..d01dcf211 100644 --- a/packages/icons/src/minus/index.d.ts +++ b/packages/icons/src/minus/MinusIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class MinusIcon extends Icon {} diff --git a/packages/icons/src/minus/index.vue b/packages/icons/src/minus/MinusIcon.vue similarity index 100% rename from packages/icons/src/minus/index.vue rename to packages/icons/src/minus/MinusIcon.vue diff --git a/packages/icons/src/minus/package.json b/packages/icons/src/minus/package.json index dbc8e9bc4..c101ccd7b 100644 --- a/packages/icons/src/minus/package.json +++ b/packages/icons/src/minus/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./MinusIcon.vue", + "module": "./MinusIcon.vue", + "types": "./MinusIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./MinusIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/pencil/index.d.ts b/packages/icons/src/pencil/PencilIcon.d.ts similarity index 82% rename from packages/icons/src/pencil/index.d.ts rename to packages/icons/src/pencil/PencilIcon.d.ts index fe288abb9..dfc2c9877 100644 --- a/packages/icons/src/pencil/index.d.ts +++ b/packages/icons/src/pencil/PencilIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class PencilIcon extends Icon {} diff --git a/packages/icons/src/pencil/index.vue b/packages/icons/src/pencil/PencilIcon.vue similarity index 100% rename from packages/icons/src/pencil/index.vue rename to packages/icons/src/pencil/PencilIcon.vue diff --git a/packages/icons/src/pencil/package.json b/packages/icons/src/pencil/package.json index dbc8e9bc4..b81a5ec2c 100644 --- a/packages/icons/src/pencil/package.json +++ b/packages/icons/src/pencil/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./PencilIcon.vue", + "module": "./PencilIcon.vue", + "types": "./PencilIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./PencilIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/plus/index.d.ts b/packages/icons/src/plus/PlusIcon.d.ts similarity index 81% rename from packages/icons/src/plus/index.d.ts rename to packages/icons/src/plus/PlusIcon.d.ts index eb6814912..0a2a489e2 100644 --- a/packages/icons/src/plus/index.d.ts +++ b/packages/icons/src/plus/PlusIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class PlusIcon extends Icon {} diff --git a/packages/icons/src/plus/index.vue b/packages/icons/src/plus/PlusIcon.vue similarity index 100% rename from packages/icons/src/plus/index.vue rename to packages/icons/src/plus/PlusIcon.vue diff --git a/packages/icons/src/plus/package.json b/packages/icons/src/plus/package.json index dbc8e9bc4..417b3224c 100644 --- a/packages/icons/src/plus/package.json +++ b/packages/icons/src/plus/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./PlusIcon.vue", + "module": "./PlusIcon.vue", + "types": "./PlusIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./PlusIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/refresh/index.d.ts b/packages/icons/src/refresh/RefreshIcon.d.ts similarity index 82% rename from packages/icons/src/refresh/index.d.ts rename to packages/icons/src/refresh/RefreshIcon.d.ts index fbda5ed64..bd83448d7 100644 --- a/packages/icons/src/refresh/index.d.ts +++ b/packages/icons/src/refresh/RefreshIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class RefreshIcon extends Icon {} diff --git a/packages/icons/src/refresh/index.vue b/packages/icons/src/refresh/RefreshIcon.vue similarity index 100% rename from packages/icons/src/refresh/index.vue rename to packages/icons/src/refresh/RefreshIcon.vue diff --git a/packages/icons/src/refresh/package.json b/packages/icons/src/refresh/package.json index dbc8e9bc4..c04109f11 100644 --- a/packages/icons/src/refresh/package.json +++ b/packages/icons/src/refresh/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./RefreshIcon.vue", + "module": "./RefreshIcon.vue", + "types": "./RefreshIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./RefreshIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/search/index.d.ts b/packages/icons/src/search/SearchIcon.d.ts similarity index 82% rename from packages/icons/src/search/index.d.ts rename to packages/icons/src/search/SearchIcon.d.ts index 32526e209..20d777c28 100644 --- a/packages/icons/src/search/index.d.ts +++ b/packages/icons/src/search/SearchIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class SearchIcon extends Icon {} diff --git a/packages/icons/src/search/index.vue b/packages/icons/src/search/SearchIcon.vue similarity index 100% rename from packages/icons/src/search/index.vue rename to packages/icons/src/search/SearchIcon.vue diff --git a/packages/icons/src/search/package.json b/packages/icons/src/search/package.json index dbc8e9bc4..2516d4a94 100644 --- a/packages/icons/src/search/package.json +++ b/packages/icons/src/search/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./SearchIcon.vue", + "module": "./SearchIcon.vue", + "types": "./SearchIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./SearchIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/searchminus/index.d.ts b/packages/icons/src/searchminus/SearchMinusIcon.d.ts similarity index 83% rename from packages/icons/src/searchminus/index.d.ts rename to packages/icons/src/searchminus/SearchMinusIcon.d.ts index f12f3dcc4..81a1f29c5 100644 --- a/packages/icons/src/searchminus/index.d.ts +++ b/packages/icons/src/searchminus/SearchMinusIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class SearchMinusIcon extends Icon {} diff --git a/packages/icons/src/searchminus/index.vue b/packages/icons/src/searchminus/SearchMinusIcon.vue similarity index 100% rename from packages/icons/src/searchminus/index.vue rename to packages/icons/src/searchminus/SearchMinusIcon.vue diff --git a/packages/icons/src/searchminus/package.json b/packages/icons/src/searchminus/package.json index dbc8e9bc4..defc52d01 100644 --- a/packages/icons/src/searchminus/package.json +++ b/packages/icons/src/searchminus/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./SearchMinusIcon.vue", + "module": "./SearchMinusIcon.vue", + "types": "./SearchMinusIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./SearchMinusIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/searchplus/index.d.ts b/packages/icons/src/searchplus/SearchPlusIcon.d.ts similarity index 82% rename from packages/icons/src/searchplus/index.d.ts rename to packages/icons/src/searchplus/SearchPlusIcon.d.ts index b9c1f9443..a1fec5031 100644 --- a/packages/icons/src/searchplus/index.d.ts +++ b/packages/icons/src/searchplus/SearchPlusIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class SearchPlusIcon extends Icon {} diff --git a/packages/icons/src/searchplus/index.vue b/packages/icons/src/searchplus/SearchPlusIcon.vue similarity index 100% rename from packages/icons/src/searchplus/index.vue rename to packages/icons/src/searchplus/SearchPlusIcon.vue diff --git a/packages/icons/src/searchplus/package.json b/packages/icons/src/searchplus/package.json index dbc8e9bc4..800bada3b 100644 --- a/packages/icons/src/searchplus/package.json +++ b/packages/icons/src/searchplus/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./SearchPlusIcon.vue", + "module": "./SearchPlusIcon.vue", + "types": "./SearchPlusIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./SearchPlusIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/sortalt/index.d.ts b/packages/icons/src/sortalt/SortAltIcon.d.ts similarity index 82% rename from packages/icons/src/sortalt/index.d.ts rename to packages/icons/src/sortalt/SortAltIcon.d.ts index 4403eb716..aecd84137 100644 --- a/packages/icons/src/sortalt/index.d.ts +++ b/packages/icons/src/sortalt/SortAltIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class SortAltIcon extends Icon {} diff --git a/packages/icons/src/sortalt/index.vue b/packages/icons/src/sortalt/SortAltIcon.vue similarity index 100% rename from packages/icons/src/sortalt/index.vue rename to packages/icons/src/sortalt/SortAltIcon.vue diff --git a/packages/icons/src/sortalt/package.json b/packages/icons/src/sortalt/package.json index dbc8e9bc4..77f498967 100644 --- a/packages/icons/src/sortalt/package.json +++ b/packages/icons/src/sortalt/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./SortAltIcon.vue", + "module": "./SortAltIcon.vue", + "types": "./SortAltIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./SortAltIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/sortamountdown/index.d.ts b/packages/icons/src/sortamountdown/SortAmountDownIcon.d.ts similarity index 83% rename from packages/icons/src/sortamountdown/index.d.ts rename to packages/icons/src/sortamountdown/SortAmountDownIcon.d.ts index 2866e9b21..b0473d241 100644 --- a/packages/icons/src/sortamountdown/index.d.ts +++ b/packages/icons/src/sortamountdown/SortAmountDownIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class SortAmountDownIcon extends Icon {} diff --git a/packages/icons/src/sortamountdown/index.vue b/packages/icons/src/sortamountdown/SortAmountDownIcon.vue similarity index 100% rename from packages/icons/src/sortamountdown/index.vue rename to packages/icons/src/sortamountdown/SortAmountDownIcon.vue diff --git a/packages/icons/src/sortamountdown/package.json b/packages/icons/src/sortamountdown/package.json index dbc8e9bc4..c4a6e64e3 100644 --- a/packages/icons/src/sortamountdown/package.json +++ b/packages/icons/src/sortamountdown/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./SortAmountDownIcon.vue", + "module": "./SortAmountDownIcon.vue", + "types": "./SortAmountDownIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./SortAmountDownIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/sortamountupalt/index.d.ts b/packages/icons/src/sortamountupalt/SortAmountUpAltIcon.d.ts similarity index 83% rename from packages/icons/src/sortamountupalt/index.d.ts rename to packages/icons/src/sortamountupalt/SortAmountUpAltIcon.d.ts index 4d4f0f7a1..40cba9f24 100644 --- a/packages/icons/src/sortamountupalt/index.d.ts +++ b/packages/icons/src/sortamountupalt/SortAmountUpAltIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class SortAmountUpAltIcon extends Icon {} diff --git a/packages/icons/src/sortamountupalt/index.vue b/packages/icons/src/sortamountupalt/SortAmountUpAltIcon.vue similarity index 100% rename from packages/icons/src/sortamountupalt/index.vue rename to packages/icons/src/sortamountupalt/SortAmountUpAltIcon.vue diff --git a/packages/icons/src/sortamountupalt/package.json b/packages/icons/src/sortamountupalt/package.json index dbc8e9bc4..a1f5184a2 100644 --- a/packages/icons/src/sortamountupalt/package.json +++ b/packages/icons/src/sortamountupalt/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./SortAmountUpAltIcon.vue", + "module": "./SortAmountUpAltIcon.vue", + "types": "./SortAmountUpAltIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./SortAmountUpAltIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/spinner/index.d.ts b/packages/icons/src/spinner/SpinnerIcon.d.ts similarity index 82% rename from packages/icons/src/spinner/index.d.ts rename to packages/icons/src/spinner/SpinnerIcon.d.ts index 6334a8e65..8906692e9 100644 --- a/packages/icons/src/spinner/index.d.ts +++ b/packages/icons/src/spinner/SpinnerIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class SpinnerIcon extends Icon {} diff --git a/packages/icons/src/spinner/index.vue b/packages/icons/src/spinner/SpinnerIcon.vue similarity index 100% rename from packages/icons/src/spinner/index.vue rename to packages/icons/src/spinner/SpinnerIcon.vue diff --git a/packages/icons/src/spinner/package.json b/packages/icons/src/spinner/package.json index dbc8e9bc4..bcda39811 100644 --- a/packages/icons/src/spinner/package.json +++ b/packages/icons/src/spinner/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./SpinnerIcon.vue", + "module": "./SpinnerIcon.vue", + "types": "./SpinnerIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./SpinnerIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/star/index.d.ts b/packages/icons/src/star/StarIcon.d.ts similarity index 81% rename from packages/icons/src/star/index.d.ts rename to packages/icons/src/star/StarIcon.d.ts index 6cd1f1db1..663b92115 100644 --- a/packages/icons/src/star/index.d.ts +++ b/packages/icons/src/star/StarIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class StarIcon extends Icon {} diff --git a/packages/icons/src/star/index.vue b/packages/icons/src/star/StarIcon.vue similarity index 100% rename from packages/icons/src/star/index.vue rename to packages/icons/src/star/StarIcon.vue diff --git a/packages/icons/src/star/package.json b/packages/icons/src/star/package.json index dbc8e9bc4..4568c3b23 100644 --- a/packages/icons/src/star/package.json +++ b/packages/icons/src/star/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./StarIcon.vue", + "module": "./StarIcon.vue", + "types": "./StarIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./StarIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/starfill/index.d.ts b/packages/icons/src/starfill/StarFillIcon.d.ts similarity index 82% rename from packages/icons/src/starfill/index.d.ts rename to packages/icons/src/starfill/StarFillIcon.d.ts index 4b2049138..19d2ce462 100644 --- a/packages/icons/src/starfill/index.d.ts +++ b/packages/icons/src/starfill/StarFillIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class StarFillIcon extends Icon {} diff --git a/packages/icons/src/starfill/index.vue b/packages/icons/src/starfill/StarFillIcon.vue similarity index 100% rename from packages/icons/src/starfill/index.vue rename to packages/icons/src/starfill/StarFillIcon.vue diff --git a/packages/icons/src/starfill/package.json b/packages/icons/src/starfill/package.json index dbc8e9bc4..1f735e53f 100644 --- a/packages/icons/src/starfill/package.json +++ b/packages/icons/src/starfill/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./StarFillIcon.vue", + "module": "./StarFillIcon.vue", + "types": "./StarFillIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./StarFillIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/thlarge/index.d.ts b/packages/icons/src/thlarge/ThLargeIcon.d.ts similarity index 82% rename from packages/icons/src/thlarge/index.d.ts rename to packages/icons/src/thlarge/ThLargeIcon.d.ts index a96b971d1..0e3e9c6d6 100644 --- a/packages/icons/src/thlarge/index.d.ts +++ b/packages/icons/src/thlarge/ThLargeIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class ThLargeIcon extends Icon {} diff --git a/packages/icons/src/thlarge/index.vue b/packages/icons/src/thlarge/ThLargeIcon.vue similarity index 100% rename from packages/icons/src/thlarge/index.vue rename to packages/icons/src/thlarge/ThLargeIcon.vue diff --git a/packages/icons/src/thlarge/package.json b/packages/icons/src/thlarge/package.json index dbc8e9bc4..2ae494a21 100644 --- a/packages/icons/src/thlarge/package.json +++ b/packages/icons/src/thlarge/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./ThLargeIcon.vue", + "module": "./ThLargeIcon.vue", + "types": "./ThLargeIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./ThLargeIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/times/index.d.ts b/packages/icons/src/times/TimesIcon.d.ts similarity index 81% rename from packages/icons/src/times/index.d.ts rename to packages/icons/src/times/TimesIcon.d.ts index 55a5124ca..c6ab07d0c 100644 --- a/packages/icons/src/times/index.d.ts +++ b/packages/icons/src/times/TimesIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class TimesIcon extends Icon {} diff --git a/packages/icons/src/times/index.vue b/packages/icons/src/times/TimesIcon.vue similarity index 100% rename from packages/icons/src/times/index.vue rename to packages/icons/src/times/TimesIcon.vue diff --git a/packages/icons/src/times/package.json b/packages/icons/src/times/package.json index dbc8e9bc4..0bda708dd 100644 --- a/packages/icons/src/times/package.json +++ b/packages/icons/src/times/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./TimesIcon.vue", + "module": "./TimesIcon.vue", + "types": "./TimesIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./TimesIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/timescircle/index.d.ts b/packages/icons/src/timescircle/TimesCircleIcon.d.ts similarity index 83% rename from packages/icons/src/timescircle/index.d.ts rename to packages/icons/src/timescircle/TimesCircleIcon.d.ts index 609a520d6..ef9849178 100644 --- a/packages/icons/src/timescircle/index.d.ts +++ b/packages/icons/src/timescircle/TimesCircleIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class TimesCircleIcon extends Icon {} diff --git a/packages/icons/src/timescircle/index.vue b/packages/icons/src/timescircle/TimesCircleIcon.vue similarity index 100% rename from packages/icons/src/timescircle/index.vue rename to packages/icons/src/timescircle/TimesCircleIcon.vue diff --git a/packages/icons/src/timescircle/package.json b/packages/icons/src/timescircle/package.json index dbc8e9bc4..3ef29425c 100644 --- a/packages/icons/src/timescircle/package.json +++ b/packages/icons/src/timescircle/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./TimesCircleIcon.vue", + "module": "./TimesCircleIcon.vue", + "types": "./TimesCircleIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./TimesCircleIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/trash/index.d.ts b/packages/icons/src/trash/TrashIcon.d.ts similarity index 81% rename from packages/icons/src/trash/index.d.ts rename to packages/icons/src/trash/TrashIcon.d.ts index 8da5b2353..cd1103805 100644 --- a/packages/icons/src/trash/index.d.ts +++ b/packages/icons/src/trash/TrashIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class TrashIcon extends Icon {} diff --git a/packages/icons/src/trash/index.vue b/packages/icons/src/trash/TrashIcon.vue similarity index 100% rename from packages/icons/src/trash/index.vue rename to packages/icons/src/trash/TrashIcon.vue diff --git a/packages/icons/src/trash/package.json b/packages/icons/src/trash/package.json index dbc8e9bc4..d31b88c5b 100644 --- a/packages/icons/src/trash/package.json +++ b/packages/icons/src/trash/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./TrashIcon.vue", + "module": "./TrashIcon.vue", + "types": "./TrashIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./TrashIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/undo/index.d.ts b/packages/icons/src/undo/UndoIcon.d.ts similarity index 81% rename from packages/icons/src/undo/index.d.ts rename to packages/icons/src/undo/UndoIcon.d.ts index 1da3cbe9e..91622b039 100644 --- a/packages/icons/src/undo/index.d.ts +++ b/packages/icons/src/undo/UndoIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class UndoIcon extends Icon {} diff --git a/packages/icons/src/undo/index.vue b/packages/icons/src/undo/UndoIcon.vue similarity index 100% rename from packages/icons/src/undo/index.vue rename to packages/icons/src/undo/UndoIcon.vue diff --git a/packages/icons/src/undo/package.json b/packages/icons/src/undo/package.json index dbc8e9bc4..2f190a017 100644 --- a/packages/icons/src/undo/package.json +++ b/packages/icons/src/undo/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./UndoIcon.vue", + "module": "./UndoIcon.vue", + "types": "./UndoIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./UndoIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/upload/index.d.ts b/packages/icons/src/upload/UploadIcon.d.ts similarity index 82% rename from packages/icons/src/upload/index.d.ts rename to packages/icons/src/upload/UploadIcon.d.ts index 26a564084..78bbde9cd 100644 --- a/packages/icons/src/upload/index.d.ts +++ b/packages/icons/src/upload/UploadIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class UploadIcon extends Icon {} diff --git a/packages/icons/src/upload/index.vue b/packages/icons/src/upload/UploadIcon.vue similarity index 100% rename from packages/icons/src/upload/index.vue rename to packages/icons/src/upload/UploadIcon.vue diff --git a/packages/icons/src/upload/package.json b/packages/icons/src/upload/package.json index dbc8e9bc4..a967ab803 100644 --- a/packages/icons/src/upload/package.json +++ b/packages/icons/src/upload/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./UploadIcon.vue", + "module": "./UploadIcon.vue", + "types": "./UploadIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./UploadIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/windowmaximize/index.d.ts b/packages/icons/src/windowmaximize/WindowMaximizeIcon.d.ts similarity index 83% rename from packages/icons/src/windowmaximize/index.d.ts rename to packages/icons/src/windowmaximize/WindowMaximizeIcon.d.ts index 9672da932..193464666 100644 --- a/packages/icons/src/windowmaximize/index.d.ts +++ b/packages/icons/src/windowmaximize/WindowMaximizeIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class WindowMaximizeIcon extends Icon {} diff --git a/packages/icons/src/windowmaximize/index.vue b/packages/icons/src/windowmaximize/WindowMaximizeIcon.vue similarity index 100% rename from packages/icons/src/windowmaximize/index.vue rename to packages/icons/src/windowmaximize/WindowMaximizeIcon.vue diff --git a/packages/icons/src/windowmaximize/package.json b/packages/icons/src/windowmaximize/package.json index dbc8e9bc4..43faa98d2 100644 --- a/packages/icons/src/windowmaximize/package.json +++ b/packages/icons/src/windowmaximize/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./WindowMaximizeIcon.vue", + "module": "./WindowMaximizeIcon.vue", + "types": "./WindowMaximizeIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./WindowMaximizeIcon.vue" }, "sideEffects": [ "*.vue" diff --git a/packages/icons/src/windowminimize/index.d.ts b/packages/icons/src/windowminimize/WindowMinimizeIcon.d.ts similarity index 83% rename from packages/icons/src/windowminimize/index.d.ts rename to packages/icons/src/windowminimize/WindowMinimizeIcon.d.ts index 7131fe4b0..f8075b1e5 100644 --- a/packages/icons/src/windowminimize/index.d.ts +++ b/packages/icons/src/windowminimize/WindowMinimizeIcon.d.ts @@ -1,5 +1,5 @@ import type { DefineComponent } from '@primevue/core'; -import type { Icon } from '@primevue/icons'; +import type { Icon } from '@primevue/icons/baseicon'; declare class WindowMinimizeIcon extends Icon {} diff --git a/packages/icons/src/windowminimize/index.vue b/packages/icons/src/windowminimize/WindowMinimizeIcon.vue similarity index 100% rename from packages/icons/src/windowminimize/index.vue rename to packages/icons/src/windowminimize/WindowMinimizeIcon.vue diff --git a/packages/icons/src/windowminimize/package.json b/packages/icons/src/windowminimize/package.json index dbc8e9bc4..65482047a 100644 --- a/packages/icons/src/windowminimize/package.json +++ b/packages/icons/src/windowminimize/package.json @@ -1,9 +1,9 @@ { - "main": "./index.vue", - "module": "./index.vue", - "types": "./index.d.ts", + "main": "./WindowMinimizeIcon.vue", + "module": "./WindowMinimizeIcon.vue", + "types": "./WindowMinimizeIcon.d.ts", "browser": { - "./sfc": "./index.vue" + "./sfc": "./WindowMinimizeIcon.vue" }, "sideEffects": [ "*.vue"