Skip to content

Commit cde0d37

Browse files
refactor: migrate to reka-ui (#75)
* refactor: migrate radix-vue to reka-ui * Version Packages (next) * chore: update readme (#81) * chore: update readme * Create poor-buses-buy.md * chore: update baseBranch * chore: fix cd * Version Packages (next) (#82) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: bump reka stable version * chore: revert the cd --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 413cada commit cde0d37

18 files changed

+266
-78
lines changed

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"fixed": [],
66
"linked": [],
77
"access": "public",
8-
"baseBranch": "main",
8+
"baseBranch": "next",
99
"updateInternalDependencies": "patch",
1010
"ignore": ["playground"]
1111
}

.changeset/good-ways-obey.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vaul-vue": minor
3+
---
4+
5+
migrate from Radix Vue to Reka UI

.changeset/poor-buses-buy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vaul-vue": patch
3+
---
4+
5+
chore: update readme

.changeset/pre.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mode": "pre",
3+
"tag": "next",
4+
"initialVersions": {
5+
"vaul-vue": "0.2.1",
6+
"playground": "0.0.0"
7+
},
8+
"changesets": [
9+
"good-ways-obey",
10+
"poor-buses-buy"
11+
]
12+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Vaul Vue
22

33
Vaul Vue is an unstyled drawer component for Vue that can be used as a Dialog replacement on tablet and mobile devices.
4-
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).
4+
It uses [Reka UI'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).
55

66
## Installation
77

@@ -42,4 +42,4 @@ import { DrawerContent, DrawerOverlay, DrawerPortal, DrawerRoot, DrawerTrigger }
4242
All credits go to these open-source works and resources
4343

4444
- Major credits go to [Emil Kowalski](https://emilkowal.ski/) for the original [Vaul library](https://github.com/emilkowalski/vaul).
45-
- [Radix Vue](https://www.radix-vue.com/) for the Dialog primitive used under the hood.
45+
- [Reka UI](https://www.reka-ui.com/) for the Dialog primitive used under the hood.

packages/vaul-vue/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# vaul-vue
22

3+
## 0.3.0-next.1
4+
5+
### Patch Changes
6+
7+
- 6f906b7: chore: update readme
8+
9+
## 0.3.0-next.0
10+
11+
### Minor Changes
12+
13+
- migrate from Radix Vue to Reka UI
14+
315
## 0.2.1
416

517
### Patch Changes

packages/vaul-vue/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Vaul Vue
22

33
Vaul Vue is an unstyled drawer component for Vue that can be used as a Dialog replacement on tablet and mobile devices.
4-
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).
4+
It uses [Reka UI'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).
55

66
## Installation
77

@@ -42,4 +42,4 @@ import { DrawerContent, DrawerOverlay, DrawerPortal, DrawerRoot, DrawerTrigger }
4242
All credits go to these open-source works and resources
4343

4444
- Major credits go to [Emil Kowalski](https://emilkowal.ski/) for the original [Vaul library](https://github.com/emilkowalski/vaul).
45-
- [Radix Vue](https://www.radix-vue.com/) for the Dialog primitive used under the hood.
45+
- [Reka UI](https://www.reka-ui.com/) for the Dialog primitive used under the hood.

packages/vaul-vue/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vaul-vue",
33
"type": "module",
4-
"version": "0.2.1",
4+
"version": "0.3.0-next.1",
55
"repository": "https://github.com/Elliot-Alexander/vaul-vue",
66
"keywords": [
77
"vue",
@@ -36,12 +36,12 @@
3636
"release": "pnpm run build-only"
3737
},
3838
"peerDependencies": {
39-
"radix-vue": "^1.4.0",
39+
"reka-ui": "^2.0.0",
4040
"vue": "^3.3.0"
4141
},
4242
"dependencies": {
4343
"@vueuse/core": "^10.8.0",
44-
"radix-vue": "^1.4.9",
44+
"reka-ui": "^2.0.0",
4545
"vue": "^3.4.5"
4646
},
4747
"devDependencies": {

packages/vaul-vue/src/DrawerContent.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { computed, watch } from 'vue'
3-
import { DialogContent } from 'radix-vue'
3+
import { DialogContent } from 'reka-ui'
44
import { injectDrawerRootContext } from './context'
55
66
const {

packages/vaul-vue/src/DrawerOverlay.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { DialogOverlay } from 'radix-vue'
2+
import { DialogOverlay } from 'reka-ui'
33
import { computed } from 'vue'
44
import { injectDrawerRootContext } from './context'
55

packages/vaul-vue/src/DrawerRoot.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { DialogRoot } from 'radix-vue'
2+
import { DialogRoot } from 'reka-ui'
33
import { useVModel } from '@vueuse/core'
44
import { type WritableComputedRef, computed, toRefs } from 'vue'
55
import { provideDrawerRootContext } from './context'

packages/vaul-vue/src/DrawerRootNested.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { useForwardPropsEmits } from 'radix-vue'
2+
import { useForwardPropsEmits } from 'reka-ui'
33
import DrawerRoot from './DrawerRoot.vue'
44
import type { DrawerRootEmits, DrawerRootProps } from './controls'
55
import { injectDrawerRootContext } from './context'

packages/vaul-vue/src/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ComponentPublicInstance, Ref } from 'vue'
2-
import { createContext } from 'radix-vue'
2+
import { createContext } from 'reka-ui'
33
import type { DrawerDirection } from './types'
44

55
export interface DrawerRootContext {

packages/vaul-vue/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ export {
3535

3636
DialogTrigger as DrawerTrigger,
3737
type DialogTriggerProps as DrawerTriggerProps,
38-
} from 'radix-vue'
38+
} from 'reka-ui'

packages/vaul-vue/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineConfig({
2929
rollupOptions: {
3030
// make sure to externalize deps that shouldn't be bundled
3131
// into your library (Vue)
32-
external: ['vue', 'radix-vue'],
32+
external: ['vue', 'reka-ui'],
3333
output: {
3434
// Provide global variables to use in the UMD build
3535
// for externalized deps

playground/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "pnpm run test:e2e"
1414
},
1515
"dependencies": {
16-
"radix-vue": "^1.8.3",
16+
"reka-ui": "^2.0.0",
1717
"vaul-vue": "workspace:*",
1818
"vue": "^3.4.5",
1919
"vue-router": "4"

playground/src/views/HomeView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import BackgroundTexture from '@/components/BackgroundTexture.vue'
2828
<div class="flex gap-4 justify-center mt-6">
2929
<DemoDrawer />
3030
<a
31-
href="https://github.com/radix-vue/vaul-vue" target="_blank"
31+
href="https://github.com/unovue/vaul-vue" target="_blank"
3232
class="font-semibold text-sm px-4 py-2.5 hover:bg-gray-100 rounded-full"
3333
> GitHub <span
3434
aria-hidden="true"

0 commit comments

Comments
 (0)