Fixed #6701 - Update the bundle of @primevue/icons package

pull/6705/head
Mert Sincan 2024-11-01 05:59:02 +00:00
parent d1afc92276
commit 204c823cbb
145 changed files with 782 additions and 244 deletions

View File

@ -13,18 +13,77 @@
"bugs": { "bugs": {
"url": "https://github.com/primefaces/primevue/issues" "url": "https://github.com/primefaces/primevue/issues"
}, },
"sideEffects": [
"*.vue"
],
"main": "./src/index.js",
"module": "./src/index.js",
"types": "./src/index.d.ts", "types": "./src/index.d.ts",
"exports": { "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", "./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": { "publishConfig": {
"main": "./index.mjs",
"module": "./index.mjs",
"types": "./index.d.ts", "types": "./index.d.ts",
"exports": { "exports": {
".": {
"types": "./index.d.ts",
"import": "./index.mjs",
"default": "./index.mjs"
},
"./*": { "./*": {
"types": "./*/index.d.ts", "types": "./*/index.d.ts",
"import": "./*/index.mjs" "import": "./*/index.mjs",
"default": "./*/index.mjs"
} }
}, },
"directory": "dist", "directory": "dist",

View File

@ -26,7 +26,22 @@ const EXTERNALS = [...GLOBAL_EXTERNALS, ...INLINE_EXTERNALS];
const ALIAS_ENTRIES = [ const ALIAS_ENTRIES = [
{ {
find: /^@primevue\/icons\/(.*)$/, 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/style', replacement: path.resolve(__dirname, './src/baseicon/style/BaseIconStyle.js') },
{ find: '@primevue/icons/baseicon', replacement: path.resolve(__dirname, './src/baseicon/BaseIcon.vue') } { find: '@primevue/icons/baseicon', replacement: path.resolve(__dirname, './src/baseicon/BaseIcon.vue') }
@ -167,7 +182,9 @@ function addIcons() {
.filter((dir) => dir.isDirectory()) .filter((dir) => dir.isDirectory())
.forEach(({ name: folderName }) => { .forEach(({ name: folderName }) => {
fs.readdirSync(path.resolve(__dirname, iconDir + '/' + folderName)).forEach((file) => { 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 input = process.env.INPUT_DIR + folderName + '/' + file;
const output = process.env.OUTPUT_DIR + folderName + '/index'; 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(); addIcons();
addStyle(); addStyle();
addLibrary();
export default ENTRY.entries; export default ENTRY.entries;

View File

@ -1,5 +1,79 @@
import fs from 'fs-extra';
import path from 'path'; import path from 'path';
import { removeBuild, resolvePath, updatePackageJson } from '../../../scripts/build-helper.mjs'; import { removeBuild, resolvePath, updatePackageJson } from '../../../scripts/build-helper.mjs';
removeBuild(import.meta.url); 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')); 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(''));

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleDoubleDownIcon extends Icon {} declare class AngleDoubleDownIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleDoubleDownIcon.vue",
"module": "./index.vue", "module": "./AngleDoubleDownIcon.vue",
"types": "./index.d.ts", "types": "./AngleDoubleDownIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleDoubleDownIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleDoubleLeftIcon extends Icon {} declare class AngleDoubleLeftIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleDoubleLeftIcon.vue",
"module": "./index.vue", "module": "./AngleDoubleLeftIcon.vue",
"types": "./index.d.ts", "types": "./AngleDoubleLeftIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleDoubleLeftIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleDoubleRightIcon extends Icon {} declare class AngleDoubleRightIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleDoubleRightIcon.vue",
"module": "./index.vue", "module": "./AngleDoubleRightIcon.vue",
"types": "./index.d.ts", "types": "./AngleDoubleRightIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleDoubleRightIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleDoubleUpIcon extends Icon {} declare class AngleDoubleUpIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleDoubleUpIcon.vue",
"module": "./index.vue", "module": "./AngleDoubleUpIcon.vue",
"types": "./index.d.ts", "types": "./AngleDoubleUpIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleDoubleUpIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleDownIcon extends Icon {} declare class AngleDownIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleDownIcon.vue",
"module": "./index.vue", "module": "./AngleDownIcon.vue",
"types": "./index.d.ts", "types": "./AngleDownIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleDownIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleLeftIcon extends Icon {} declare class AngleLeftIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleLeftIcon.vue",
"module": "./index.vue", "module": "./AngleLeftIcon.vue",
"types": "./index.d.ts", "types": "./AngleLeftIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleLeftIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleRightIcon extends Icon {} declare class AngleRightIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleRightIcon.vue",
"module": "./index.vue", "module": "./AngleRightIcon.vue",
"types": "./index.d.ts", "types": "./AngleRightIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleRightIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class AngleUpIcon extends Icon {} declare class AngleUpIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./AngleUpIcon.vue",
"module": "./index.vue", "module": "./AngleUpIcon.vue",
"types": "./index.d.ts", "types": "./AngleUpIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./AngleUpIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class ArrowDownIcon extends Icon {} declare class ArrowDownIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./ArrowDownIcon.vue",
"module": "./index.vue", "module": "./ArrowDownIcon.vue",
"types": "./index.d.ts", "types": "./ArrowDownIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./ArrowDownIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class ArrowUpIcon extends Icon {} declare class ArrowUpIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./ArrowUpIcon.vue",
"module": "./index.vue", "module": "./ArrowUpIcon.vue",
"types": "./index.d.ts", "types": "./ArrowUpIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./ArrowUpIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class BanIcon extends Icon {} declare class BanIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./BanIcon.vue",
"module": "./index.vue", "module": "./BanIcon.vue",
"types": "./index.d.ts", "types": "./BanIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./BanIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class BarsIcon extends Icon {} declare class BarsIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./BarsIcon.vue",
"module": "./index.vue", "module": "./BarsIcon.vue",
"types": "./index.d.ts", "types": "./BarsIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./BarsIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -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<IconEmitsOptions>;
export declare const Icon: DefineComponent<IconProps, IconSlots, IconEmits>;

View File

@ -1,6 +1,7 @@
{ {
"main": "./BaseIcon.vue", "main": "./BaseIcon.vue",
"module": "./BaseIcon.vue", "module": "./BaseIcon.vue",
"types": "./BaseIcon.d.ts",
"browser": { "browser": {
"./sfc": "./BaseIcon.vue" "./sfc": "./BaseIcon.vue"
}, },

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class BlankIcon extends Icon {} declare class BlankIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./BlankIcon.vue",
"module": "./index.vue", "module": "./BlankIcon.vue",
"types": "./index.d.ts", "types": "./BlankIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./BlankIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class CalendarIcon extends Icon {} declare class CalendarIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./CalendarIcon.vue",
"module": "./index.vue", "module": "./CalendarIcon.vue",
"types": "./index.d.ts", "types": "./CalendarIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./CalendarIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class CheckIcon extends Icon {} declare class CheckIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./CheckIcon.vue",
"module": "./index.vue", "module": "./CheckIcon.vue",
"types": "./index.d.ts", "types": "./CheckIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./CheckIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class ChevronDownIcon extends Icon {} declare class ChevronDownIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./ChevronDownIcon.vue",
"module": "./index.vue", "module": "./ChevronDownIcon.vue",
"types": "./index.d.ts", "types": "./ChevronDownIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./ChevronDownIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class ChevronLeftIcon extends Icon {} declare class ChevronLeftIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./ChevronLeftIcon.vue",
"module": "./index.vue", "module": "./ChevronLeftIcon.vue",
"types": "./index.d.ts", "types": "./ChevronLeftIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./ChevronLeftIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class ChevronRightIcon extends Icon {} declare class ChevronRightIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./ChevronRightIcon.vue",
"module": "./index.vue", "module": "./ChevronRightIcon.vue",
"types": "./index.d.ts", "types": "./ChevronRightIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./ChevronRightIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class ChevronUpIcon extends Icon {} declare class ChevronUpIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./ChevronUpIcon.vue",
"module": "./index.vue", "module": "./ChevronUpIcon.vue",
"types": "./index.d.ts", "types": "./ChevronUpIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./ChevronUpIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class ExclamationTriangleIcon extends Icon {} declare class ExclamationTriangleIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./ExclamationTriangleIcon.vue",
"module": "./index.vue", "module": "./ExclamationTriangleIcon.vue",
"types": "./index.d.ts", "types": "./ExclamationTriangleIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./ExclamationTriangleIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class EyeIcon extends Icon {} declare class EyeIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./EyeIcon.vue",
"module": "./index.vue", "module": "./EyeIcon.vue",
"types": "./index.d.ts", "types": "./EyeIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./EyeIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class EyeSlashIcon extends Icon {} declare class EyeSlashIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./EyeSlashIcon.vue",
"module": "./index.vue", "module": "./EyeSlashIcon.vue",
"types": "./index.d.ts", "types": "./EyeSlashIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./EyeSlashIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class FilterIcon extends Icon {} declare class FilterIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./FilterIcon.vue",
"module": "./index.vue", "module": "./FilterIcon.vue",
"types": "./index.d.ts", "types": "./FilterIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./FilterIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class FilterSlashIcon extends Icon {} declare class FilterSlashIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./FilterSlashIcon.vue",
"module": "./index.vue", "module": "./FilterSlashIcon.vue",
"types": "./index.d.ts", "types": "./FilterSlashIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./FilterSlashIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,14 +1,191 @@
import type { DefineComponent, EmitFn } from '@primevue/core'; /***************** PrimeVue Icons (Auto-Generated) *****************/
export interface IconProps { // AngleDoubleDownIcon
label?: string | undefined; export * from '@primevue/icons/angledoubledown';
spin?: boolean; 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<IconEmitsOptions>; // AngleDoubleUpIcon
export * from '@primevue/icons/angledoubleup';
export { default as AngleDoubleUpIcon } from '@primevue/icons/angledoubleup';
declare const Icon: DefineComponent<IconProps, IconSlots, IconEmits>; // 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';

191
packages/icons/src/index.js Normal file
View File

@ -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';

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class InfoCircleIcon extends Icon {} declare class InfoCircleIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./InfoCircleIcon.vue",
"module": "./index.vue", "module": "./InfoCircleIcon.vue",
"types": "./index.d.ts", "types": "./InfoCircleIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./InfoCircleIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class MinusIcon extends Icon {} declare class MinusIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./MinusIcon.vue",
"module": "./index.vue", "module": "./MinusIcon.vue",
"types": "./index.d.ts", "types": "./MinusIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./MinusIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class PencilIcon extends Icon {} declare class PencilIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./PencilIcon.vue",
"module": "./index.vue", "module": "./PencilIcon.vue",
"types": "./index.d.ts", "types": "./PencilIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./PencilIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class PlusIcon extends Icon {} declare class PlusIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./PlusIcon.vue",
"module": "./index.vue", "module": "./PlusIcon.vue",
"types": "./index.d.ts", "types": "./PlusIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./PlusIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class RefreshIcon extends Icon {} declare class RefreshIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./RefreshIcon.vue",
"module": "./index.vue", "module": "./RefreshIcon.vue",
"types": "./index.d.ts", "types": "./RefreshIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./RefreshIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class SearchIcon extends Icon {} declare class SearchIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./SearchIcon.vue",
"module": "./index.vue", "module": "./SearchIcon.vue",
"types": "./index.d.ts", "types": "./SearchIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./SearchIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

View File

@ -1,5 +1,5 @@
import type { DefineComponent } from '@primevue/core'; import type { DefineComponent } from '@primevue/core';
import type { Icon } from '@primevue/icons'; import type { Icon } from '@primevue/icons/baseicon';
declare class SearchMinusIcon extends Icon {} declare class SearchMinusIcon extends Icon {}

View File

@ -1,9 +1,9 @@
{ {
"main": "./index.vue", "main": "./SearchMinusIcon.vue",
"module": "./index.vue", "module": "./SearchMinusIcon.vue",
"types": "./index.d.ts", "types": "./SearchMinusIcon.d.ts",
"browser": { "browser": {
"./sfc": "./index.vue" "./sfc": "./SearchMinusIcon.vue"
}, },
"sideEffects": [ "sideEffects": [
"*.vue" "*.vue"

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