From 6689f5410699ad4792ad03f85348becf80d0fb30 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Mon, 13 May 2024 14:44:55 +0100 Subject: [PATCH] Fixed #5728 - Remove PrimeVueStyled and PrimeVueUnstyled plugins --- components/lib/styled/PrimeVueStyled.d.ts | 1 - components/lib/styled/PrimeVueStyled.js | 24 ------------------- components/lib/styled/package.json | 6 ----- components/lib/unstyled/PrimeVueUnstyled.d.ts | 1 - components/lib/unstyled/PrimeVueUnstyled.js | 11 --------- components/lib/unstyled/package.json | 6 ----- nuxt-vite.config.js | 2 -- rollup.config.js | 2 -- 8 files changed, 53 deletions(-) delete mode 100644 components/lib/styled/PrimeVueStyled.d.ts delete mode 100644 components/lib/styled/PrimeVueStyled.js delete mode 100644 components/lib/styled/package.json delete mode 100644 components/lib/unstyled/PrimeVueUnstyled.d.ts delete mode 100644 components/lib/unstyled/PrimeVueUnstyled.js delete mode 100644 components/lib/unstyled/package.json diff --git a/components/lib/styled/PrimeVueStyled.d.ts b/components/lib/styled/PrimeVueStyled.d.ts deleted file mode 100644 index 49b48d7c5..000000000 --- a/components/lib/styled/PrimeVueStyled.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '../config'; diff --git a/components/lib/styled/PrimeVueStyled.js b/components/lib/styled/PrimeVueStyled.js deleted file mode 100644 index 9bb5f62e4..000000000 --- a/components/lib/styled/PrimeVueStyled.js +++ /dev/null @@ -1,24 +0,0 @@ -import * as PrimeVueConfig from 'primevue/config'; -import Aura from 'primevue/themes/aura'; - -export const defaultOptions = { - ...PrimeVueConfig.defaultOptions, - theme: { - preset: Aura, - options: { - prefix: 'p', - darkModeSelector: 'system', - cssLayer: false - } - } -}; - -export const { usePrimeVue } = PrimeVueConfig; - -export default { - install: (app, options) => { - const configOptions = { ...defaultOptions, ...options, unstyled: false }; - - PrimeVueConfig.setup(app, configOptions); - } -}; diff --git a/components/lib/styled/package.json b/components/lib/styled/package.json deleted file mode 100644 index 251a56cfa..000000000 --- a/components/lib/styled/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "main": "./primevuestyled.cjs.js", - "module": "./primevuestyled.esm.js", - "unpkg": "./primevuestyled.min.js", - "types": "./PrimeVueStyled.d.ts" -} diff --git a/components/lib/unstyled/PrimeVueUnstyled.d.ts b/components/lib/unstyled/PrimeVueUnstyled.d.ts deleted file mode 100644 index 49b48d7c5..000000000 --- a/components/lib/unstyled/PrimeVueUnstyled.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from '../config'; diff --git a/components/lib/unstyled/PrimeVueUnstyled.js b/components/lib/unstyled/PrimeVueUnstyled.js deleted file mode 100644 index b1149a5ee..000000000 --- a/components/lib/unstyled/PrimeVueUnstyled.js +++ /dev/null @@ -1,11 +0,0 @@ -import * as PrimeVueConfig from 'primevue/config'; - -export const { defaultOptions, usePrimeVue } = PrimeVueConfig; - -export default { - install: (app, options) => { - const configOptions = { ...defaultOptions, ...options, unstyled: true }; - - PrimeVueConfig.setup(app, configOptions); - } -}; diff --git a/components/lib/unstyled/package.json b/components/lib/unstyled/package.json deleted file mode 100644 index 34156019c..000000000 --- a/components/lib/unstyled/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "main": "./primevueunstyled.cjs.js", - "module": "./primevueunstyled.esm.js", - "unpkg": "./primevueunstyled.min.js", - "types": "./PrimeVueUnstyled.d.ts" -} diff --git a/nuxt-vite.config.js b/nuxt-vite.config.js index 0164500d2..aa70c2040 100644 --- a/nuxt-vite.config.js +++ b/nuxt-vite.config.js @@ -223,8 +223,6 @@ export default { 'primevue/utils': path.resolve(__dirname, './components/lib/utils/Utils.js'), 'primevue/service': path.resolve(__dirname, './components/lib/service/PrimeVueService.js'), 'primevue/config': path.resolve(__dirname, './components/lib/config/PrimeVue.js'), - 'primevue/styled': path.resolve(__dirname, './components/lib/styled/PrimeVueStyled.js'), - 'primevue/unstyled': path.resolve(__dirname, './components/lib/unstyled/PrimeVueUnstyled.js'), 'primevue/api': path.resolve(__dirname, './components/lib/api/Api.js'), ...STYLE_ALIAS, ...THEME_ALIAS, diff --git a/rollup.config.js b/rollup.config.js index be9c44fe3..7f39ea775 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -521,8 +521,6 @@ function addService() { function addConfig() { addEntry('config', 'PrimeVue.js', 'config'); - addEntry('styled', 'PrimeVueStyled.js', 'primevuestyled'); - addEntry('unstyled', 'PrimeVueUnstyled.js', 'primevueunstyled'); } function addPassThrough() {