diff --git a/doc/migration/v4/breakingchanges/PluginDoc.vue b/doc/migration/v4/breakingchanges/PluginDoc.vue new file mode 100644 index 000000000..84c203133 --- /dev/null +++ b/doc/migration/v4/breakingchanges/PluginDoc.vue @@ -0,0 +1,48 @@ + + + diff --git a/doc/nuxt/StyledModeDoc.vue b/doc/nuxt/StyledModeDoc.vue deleted file mode 100644 index d27d5ef1f..000000000 --- a/doc/nuxt/StyledModeDoc.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - diff --git a/doc/nuxt/UnstyledModeDoc.vue b/doc/nuxt/UnstyledModeDoc.vue deleted file mode 100644 index aac6d8d13..000000000 --- a/doc/nuxt/UnstyledModeDoc.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/doc/nuxt/configuration/ImportThemeDoc.vue b/doc/nuxt/configuration/ImportThemeDoc.vue new file mode 100644 index 000000000..345f742be --- /dev/null +++ b/doc/nuxt/configuration/ImportThemeDoc.vue @@ -0,0 +1,57 @@ + + + diff --git a/doc/nuxt/configuration/UnstyledDoc.vue b/doc/nuxt/configuration/UnstyledDoc.vue new file mode 100644 index 000000000..b3ea0b416 --- /dev/null +++ b/doc/nuxt/configuration/UnstyledDoc.vue @@ -0,0 +1,22 @@ + + + diff --git a/doc/vite/StyledModeDoc.vue b/doc/vite/StyledModeDoc.vue index 19e9a5943..ee862c7cb 100644 --- a/doc/vite/StyledModeDoc.vue +++ b/doc/vite/StyledModeDoc.vue @@ -1,16 +1,7 @@ @@ -18,24 +9,13 @@ export default { data() { return { - code1: { + code: { basic: ` -//in main.js -import 'primevue/resources/themes/aura-light-green/theme.css' -` - }, - code2: { - basic: ` -/* Order */ -@layer reset, primevue; +import { createApp } from 'vue'; +import PrimeVueStyled from 'primevue/styled'; -/* Reset CSS */ -@layer reset { - button, - input { - /* CSS to Reset */ - } -} +const app = createApp(App); +app.use(PrimeVueStyled); ` } }; diff --git a/doc/vite/UnstyledModeDoc.vue b/doc/vite/UnstyledModeDoc.vue index c82feb73b..efc01a442 100644 --- a/doc/vite/UnstyledModeDoc.vue +++ b/doc/vite/UnstyledModeDoc.vue @@ -1,11 +1,8 @@ @@ -17,23 +14,20 @@ export default { code1: { basic: ` import { createApp } from "vue"; -import PrimeVue from "primevue/config"; +import PrimeVueUnstyled from "primevue/config"; const app = createApp(App); -app.use(PrimeVue, { - unstyled: true -}); +app.use(PrimeVueUnstyled); ` }, code2: { basic: ` import { createApp } from 'vue'; -import PrimeVue from 'primevue/config'; +import PrimeVueUnstyled from 'primevue/config'; import Lara from '@/presets/lara'; //import preset const app = createApp(App); -app.use(PrimeVue, { - unstyled: true, +app.use(PrimeVueUnstyled, { pt: Lara //apply preset }); ` diff --git a/doc/vite/UsageDoc.vue b/doc/vite/UsageDoc.vue index 0683096eb..689d913ff 100644 --- a/doc/vite/UsageDoc.vue +++ b/doc/vite/UsageDoc.vue @@ -1,6 +1,9 @@