From 5068004f429b289b711a8931d03bb9b6fb8e8325 Mon Sep 17 00:00:00 2001 From: zernonia Date: Mon, 16 Dec 2024 23:19:57 +0800 Subject: [PATCH 1/6] refactor: migrate radix-vue to reka-ui --- README.md | 4 +- packages/vaul-vue/README.md | 4 +- packages/vaul-vue/package.json | 4 +- packages/vaul-vue/src/DrawerContent.vue | 2 +- packages/vaul-vue/src/DrawerOverlay.vue | 2 +- packages/vaul-vue/src/DrawerRoot.vue | 2 +- packages/vaul-vue/src/DrawerRootNested.vue | 2 +- packages/vaul-vue/src/context.ts | 2 +- packages/vaul-vue/src/index.ts | 2 +- packages/vaul-vue/vite.config.ts | 2 +- playground/package.json | 2 +- playground/src/views/HomeView.vue | 2 +- pnpm-lock.yaml | 276 ++++++++++++++++----- 13 files changed, 230 insertions(+), 76 deletions(-) diff --git a/README.md b/README.md index 0ec3724..10c301e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Vaul Vue Vaul Vue is an unstyled drawer component for Vue that can be used as a Dialog replacement on tablet and mobile devices. -It uses [Radix Vue's Dialog primitive](https://www.radix-vue.com/components/dialog.html) under the hood and is a feature complete port of [Emil Kowalski's Vaul library](https://github.com/emilkowalski/vaul) (built for React). +It uses [Radix Vue's Dialog primitive](https://www.reka-ui.com/docs/components/dialog) under the hood and is a feature complete port of [Emil Kowalski's Vaul library](https://github.com/emilkowalski/vaul) (built for React). ## Installation @@ -42,4 +42,4 @@ import { DrawerContent, DrawerOverlay, DrawerPortal, DrawerRoot, DrawerTrigger } All credits go to these open-source works and resources - Major credits go to [Emil Kowalski](https://emilkowal.ski/) for the original [Vaul library](https://github.com/emilkowalski/vaul). -- [Radix Vue](https://www.radix-vue.com/) for the Dialog primitive used under the hood. +- [Reka UI](https://www.reka-ui.com/) for the Dialog primitive used under the hood. diff --git a/packages/vaul-vue/README.md b/packages/vaul-vue/README.md index 0ec3724..10c301e 100644 --- a/packages/vaul-vue/README.md +++ b/packages/vaul-vue/README.md @@ -1,7 +1,7 @@ # Vaul Vue Vaul Vue is an unstyled drawer component for Vue that can be used as a Dialog replacement on tablet and mobile devices. -It uses [Radix Vue's Dialog primitive](https://www.radix-vue.com/components/dialog.html) under the hood and is a feature complete port of [Emil Kowalski's Vaul library](https://github.com/emilkowalski/vaul) (built for React). +It uses [Radix Vue's Dialog primitive](https://www.reka-ui.com/docs/components/dialog) under the hood and is a feature complete port of [Emil Kowalski's Vaul library](https://github.com/emilkowalski/vaul) (built for React). ## Installation @@ -42,4 +42,4 @@ import { DrawerContent, DrawerOverlay, DrawerPortal, DrawerRoot, DrawerTrigger } All credits go to these open-source works and resources - Major credits go to [Emil Kowalski](https://emilkowal.ski/) for the original [Vaul library](https://github.com/emilkowalski/vaul). -- [Radix Vue](https://www.radix-vue.com/) for the Dialog primitive used under the hood. +- [Reka UI](https://www.reka-ui.com/) for the Dialog primitive used under the hood. diff --git a/packages/vaul-vue/package.json b/packages/vaul-vue/package.json index 5014182..ea48457 100644 --- a/packages/vaul-vue/package.json +++ b/packages/vaul-vue/package.json @@ -36,12 +36,12 @@ "release": "pnpm run build-only" }, "peerDependencies": { - "radix-vue": "^1.4.0", + "reka-ui": "^1.0.0-alpha.7", "vue": "^3.3.0" }, "dependencies": { "@vueuse/core": "^10.8.0", - "radix-vue": "^1.4.9", + "reka-ui": "^1.0.0-alpha.7", "vue": "^3.4.5" }, "devDependencies": { diff --git a/packages/vaul-vue/src/DrawerContent.vue b/packages/vaul-vue/src/DrawerContent.vue index 9a7103b..9aaeaf4 100644 --- a/packages/vaul-vue/src/DrawerContent.vue +++ b/packages/vaul-vue/src/DrawerContent.vue @@ -1,6 +1,6 @@