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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
import { GlobalComponentConstructor } from '../../../primevue/src/ts-helpers'; import type { GlobalComponentConstructor } from '@primevue/core';
import { Icon } from '../../icons/index'; import type { Icon } from '@primevue/icons';
declare class FilterSlashIcon extends Icon {} 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 { export interface IconProps {
label?: string | undefined; label?: string | undefined;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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