diff --git a/apps/volt/assets/data/menu.json b/apps/volt/assets/data/menu.json index 757fa5117..579666266 100644 --- a/apps/volt/assets/data/menu.json +++ b/apps/volt/assets/data/menu.json @@ -114,6 +114,10 @@ "name": "Timeline", "to": "/timeline" }, + { + "name": "Toast", + "to": "/toast" + }, { "name": "ToggleButton", "to": "/togglebutton" diff --git a/apps/volt/assets/styles/tailwind.css b/apps/volt/assets/styles/tailwind.css index cd2c1bfb9..a984d5af2 100644 --- a/apps/volt/assets/styles/tailwind.css +++ b/apps/volt/assets/styles/tailwind.css @@ -26,8 +26,10 @@ @custom-variant p-right (&[data-p~="right"]); @custom-variant p-top (&[data-p~="top"]); @custom-variant p-bottom (&[data-p~="bottom"]); -@custom-variant p-center (&[data-p~="center"]); @custom-variant p-alternate (&[data-p~="alternate"]); +@custom-variant p-center (&[data-p~="center"]); +@custom-variant p-top-center (&[data-p~="top-center"]); +@custom-variant p-bottom-center (&[data-p~="bottom-center"]); @custom-variant p-active (&[data-p~="active"]); @custom-variant p-focus-visible (&[data-p~="focus-visible"]); @custom-variant p-readonly (&[data-p~="readonly"]); @@ -50,6 +52,7 @@ @custom-variant p-warn (&[data-p~="warn"]); @custom-variant p-danger (&[data-p~="danger"]); @custom-variant p-error (&[data-p~="error"]); +@custom-variant p-custom (&[data-p~="custom"]); @custom-variant p-outlined (&[data-p~="outlined"]); @custom-variant p-text (&[data-p~="text"]); @custom-variant p-simple (&[data-p~="simple"]); \ No newline at end of file diff --git a/apps/volt/components/app/AppMenuItem.vue b/apps/volt/components/app/AppMenuItem.vue index ce0e675fa..62b3c1a21 100644 --- a/apps/volt/components/app/AppMenuItem.vue +++ b/apps/volt/components/app/AppMenuItem.vue @@ -34,6 +34,8 @@ diff --git a/apps/volt/components/doc/DocSectionCode.vue b/apps/volt/components/doc/DocSectionCode.vue index 256690d42..082d190af 100644 --- a/apps/volt/components/doc/DocSectionCode.vue +++ b/apps/volt/components/doc/DocSectionCode.vue @@ -1,7 +1,7 @@ diff --git a/apps/volt/layouts/default.vue b/apps/volt/layouts/default.vue index f9d7a5469..b7e3cf610 100644 --- a/apps/volt/layouts/default.vue +++ b/apps/volt/layouts/default.vue @@ -18,6 +18,7 @@ diff --git a/apps/volt/nuxt.config.js b/apps/volt/nuxt.config.js index 9c5879b38..ab542dabd 100644 --- a/apps/volt/nuxt.config.js +++ b/apps/volt/nuxt.config.js @@ -6,7 +6,6 @@ import tailwindcss from '@tailwindcss/vite'; export default defineNuxtConfig({ compatibilityDate: '2024-11-01', devtools: { enabled: true }, - modules: ['@primevue/nuxt-module'], components: [ { path: '~/components', @@ -37,12 +36,6 @@ export default defineNuxtConfig({ runtimeConfig: { GITHUB_TOKEN: '' }, - primevue: { - autoImport: false, - options: { - unstyled: true - } - }, app: { baseURL: baseUrl, head: { diff --git a/apps/volt/package.json b/apps/volt/package.json index c2387a866..07992bb01 100644 --- a/apps/volt/package.json +++ b/apps/volt/package.json @@ -35,18 +35,10 @@ }, "dependencies": { "@docsearch/js": "catalog:app", - "@primeuix/themes": "catalog:", - "@primevue/core": "workspace:*", - "@primevue/forms": "workspace:*", - "@primevue/nuxt-module": "workspace:*", "primeicons": "catalog:", "primevue": "workspace:*", "chart.js": "catalog:app", - "quill": "catalog:app", - "superstruct": "^2.0.2", - "valibot": "^0.42.1", - "yup": "1.4.0", - "zod": "3.23.8" + "quill": "catalog:app" }, "devDependencies": { "@stackblitz/sdk": "^1.8.2", diff --git a/apps/volt/pages/toast/index.vue b/apps/volt/pages/toast/index.vue new file mode 100644 index 000000000..420551f12 --- /dev/null +++ b/apps/volt/pages/toast/index.vue @@ -0,0 +1,65 @@ + + + diff --git a/apps/volt/plugins/primevue.js b/apps/volt/plugins/primevue.js new file mode 100644 index 000000000..49a6fc4b5 --- /dev/null +++ b/apps/volt/plugins/primevue.js @@ -0,0 +1,7 @@ +import PrimeVue from 'primevue/config'; +import StyleClass from 'primevue/styleclass'; + +export default defineNuxtPlugin((nuxtApp) => { + nuxtApp.vueApp.use(PrimeVue); + nuxtApp.vueApp.directive('styleclass', StyleClass); +}); diff --git a/apps/volt/volt/toast/index.vue b/apps/volt/volt/toast/index.vue new file mode 100644 index 000000000..d19d94041 --- /dev/null +++ b/apps/volt/volt/toast/index.vue @@ -0,0 +1,56 @@ + + + diff --git a/packages/primevue/src/toast/Toast.vue b/packages/primevue/src/toast/Toast.vue index b51b9dfcf..cafae16d0 100755 --- a/packages/primevue/src/toast/Toast.vue +++ b/packages/primevue/src/toast/Toast.vue @@ -1,6 +1,6 @@