Refactor on d.ts

pull/5880/head
Mert Sincan 2024-06-11 23:03:46 +01:00
parent 191ec6b1c2
commit 98b93be202
50 changed files with 97 additions and 95 deletions

View File

@ -26,7 +26,9 @@
"./usestyle": "./src/usestyle/UseStyle.js",
"./utils": "./src/utils/Utils.js"
},
"types": "./src/index.d.ts",
"publishConfig": {
"types": "./index.d.ts",
"exports": {
"./*": {
"types": "./*/index.d.ts",
@ -52,4 +54,4 @@
"engines": {
"node": ">=12.11.0"
}
}
}

View File

@ -17,7 +17,7 @@
"baseUrl": ".",
"paths": {
"@primevue/core/*": ["./src/*"],
"primevue/*": ["../../packages/primevue/src/*"]
"primevue/themes/*": ["../../packages/themes/src/*"]
}
},
"include": ["**/*.ts", "src/*"],

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleDoubleDownIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleDoubleLeftIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleDoubleRightIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleDoubleUpIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleDownIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleLeftIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleRightIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class AngleUpIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ArrowDownIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ArrowUpIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class BanIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class BarsIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class BlankIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class CalendarIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class CheckIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ChevronDownIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ChevronLeftIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ChevronRightIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ChevronUpIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ExclamationTriangleIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class EyeIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class EyeSlashIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class FilterIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class FilterSlashIcon extends Icon {}

View File

@ -1,4 +1,4 @@
import { DefineComponent, EmitFn } from '../../primevue/src/ts-helpers';
import type { DefineComponent, EmitFn } from '@primevue/core';
export interface IconProps {
label?: string | undefined;

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class InfoCircleIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class MinusIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class PencilIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class PlusIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class RefreshIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class SearchIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class SearchMinusIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class SearchPlusIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class SortAltIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class SortAmountDownIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class SortAmountUpAltIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class SpinnerIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class StarIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class StarFillIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class ThLargeIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class TimesIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class TimesCircleIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class TrashIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class UndoIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class UploadIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class WindowMaximizeIcon extends Icon {}

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers';
import { Icon } from '../../icons/index';
import type { GlobalComponentConstructor } from '@primevue/core';
import type { Icon } from '@primevue/icons';
declare class WindowMinimizeIcon extends Icon {}