Fixed #5478 - Remove deprecated Tailwind Pass Through Object

pull/5507/head
Cagatay Civici 2024-03-26 17:12:37 +03:00
parent a9165c25a4
commit cb6c2fffef
6 changed files with 3 additions and 4278 deletions

View File

@ -1,4 +0,0 @@
import { PrimeVuePTOptions } from '../../config';
declare const Tailwind: PrimeVuePTOptions;
export default Tailwind;

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +0,0 @@
{
"main": "./index.cjs.js",
"module": "./index.esm.js",
"unpkg": "./index.min.js",
"types": "./index.d.ts"
}

View File

@ -1,11 +1,8 @@
<template>
<DocSectionText v-bind="$attrs">
<p>Configures the global pass through import path.</p>
<DocSectionCode :code="code1" importCode hideToggleCode hideStackBlitz />
<p>The path may also be a location within your application.</p>
<DocSectionCode :code="code2" importCode hideToggleCode hideStackBlitz />
<DocSectionCode :code="code3" importCode hideToggleCode hideStackBlitz />
</DocSectionText>
</template>
@ -16,19 +13,12 @@ export default {
code1: {
basic: `
primevue: {
importPT: { as: 'Tailwind', from: 'primevue/passthrough/tailwind' },
importPT: { as: 'MyCustomPreset', from: path.resolve(__dirname, './presets/mypreset.js')}
}
`
},
code2: {
basic: `
primevue: {
importPT: { as: 'MyCustomPreset', from: path.resolve(__dirname, './assets/presets/mypreset.js')}
}
`
},
code3: {
basic: `
const MyPreset = {
...
button: {

View File

@ -303,8 +303,7 @@ export default {
'primevue/terminalservice': path.resolve(__dirname, './components/lib/terminalservice/TerminalService.js'),
'primevue/dynamicdialogeventbus': path.resolve(__dirname, './components/lib/dynamicdialogeventbus/DynamicDialogEventBus.js'),
'primevue/virtualscroller': path.resolve(__dirname, './components/lib/virtualscroller/VirtualScroller.vue'),
'primevue/passthrough': path.resolve(__dirname, './components/lib/passthrough/index.js'),
'primevue/passthrough/tailwind': path.resolve(__dirname, './components/lib/passthrough/tailwind/index.js')
'primevue/passthrough': path.resolve(__dirname, './components/lib/passthrough/index.js')
}
}
};

View File

@ -63,8 +63,7 @@ const CORE_ICON_DEPENDENCIES = {
};
const CORE_PASSTHROUGH_DEPENDENCIES = {
'primevue/passthrough': 'primevue.passthrough',
'primevue/passthrough/tailwind': 'primevue.passthrough.tailwind'
'primevue/passthrough': 'primevue.passthrough'
};
const CORE_STYLE_DEPENDENCIES = {