Skip to content

Commit 1e09fa4

Browse files
Copilotlikui628
andauthored
feat: migrate from Radix Vue to Reka UI (#6870)
* Initial plan * Update dependencies and imports from radix-vue to reka-ui Co-authored-by: likui628 <[email protected]> * Fix type errors after reka-ui migration Co-authored-by: likui628 <[email protected]> * Run formatter to fix code style Co-authored-by: likui628 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: likui628 <[email protected]>
1 parent 7268824 commit 1e09fa4

File tree

148 files changed

+303
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+303
-405
lines changed

docs/.vitepress/components/preview-group.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
TabsList,
1313
TabsRoot,
1414
TabsTrigger,
15-
} from 'radix-vue';
15+
} from 'reka-ui';
1616
1717
defineOptions({
1818
inheritAttrs: false,
@@ -56,7 +56,7 @@ const toggleOpen = () => {
5656
<TabsList class="relative flex">
5757
<template v-if="open">
5858
<TabsIndicator
59-
class="absolute bottom-0 left-0 h-[2px] w-[--radix-tabs-indicator-size] translate-x-[--radix-tabs-indicator-position] rounded-full transition-[width,transform] duration-300"
59+
class="absolute bottom-0 left-0 h-[2px] w-[--reka-tabs-indicator-size] translate-x-[--reka-tabs-indicator-position] rounded-full transition-[width,transform] duration-300"
6060
>
6161
<div class="size-full bg-[var(--vp-c-indigo-1)]"></div>
6262
</TabsIndicator>

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"ant-design-vue": "catalog:",
2323
"lucide-vue-next": "catalog:",
2424
"medium-zoom": "catalog:",
25-
"radix-vue": "catalog:",
25+
"reka-ui": "catalog:",
2626
"vitepress-plugin-group-icons": "catalog:"
2727
},
2828
"devDependencies": {

docs/src/demos/vben-vxe-table/custom-cell/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const [Grid] = useVbenVxeGrid({ gridOptions });
9292
<Image :src="row.imageUrl" height="30" width="30" />
9393
</template>
9494
<template #open="{ row }">
95-
<Switch v-model:checked="row.open" />
95+
<Switch v-model="row.open" />
9696
</template>
9797
<template #status="{ row }">
9898
<Tag :color="row.color">{{ row.status }}</Tag>

packages/@core/composables/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dependencies": {
3838
"@vben-core/shared": "workspace:*",
3939
"@vueuse/core": "catalog:",
40-
"radix-vue": "catalog:",
40+
"reka-ui": "catalog:",
4141
"sortablejs": "catalog:",
4242
"vue": "catalog:"
4343
},

packages/@core/composables/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export {
1010
useForwardExpose,
1111
useForwardProps,
1212
useForwardPropsEmits,
13-
} from 'radix-vue';
13+
} from 'reka-ui';

packages/@core/ui-kit/menu-ui/src/components/sub-menu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ onBeforeUnmount(() => {
209209
is(rootMenu.theme, true),
210210
opened ? '' : 'hidden',
211211
'overflow-auto',
212-
'max-h-[calc(var(--radix-hover-card-content-available-height)-20px)]',
212+
'max-h-[calc(var(--reka-hover-card-content-available-height)-20px)]',
213213
]"
214214
:content-props="contentProps"
215215
:open="true"

packages/@core/ui-kit/shadcn-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@vueuse/core": "catalog:",
4848
"class-variance-authority": "catalog:",
4949
"lucide-vue-next": "catalog:",
50-
"radix-vue": "catalog:",
50+
"reka-ui": "catalog:",
5151
"vee-validate": "catalog:",
5252
"vue": "catalog:"
5353
}

packages/@core/ui-kit/shadcn-ui/src/components/avatar/avatar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
AvatarFallbackProps,
44
AvatarImageProps,
55
AvatarRootProps,
6-
} from 'radix-vue';
6+
} from 'reka-ui';
77
88
import type { CSSProperties } from 'vue';
99

packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/breadcrumb-view.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts" setup>
22
import type { BreadcrumbProps } from './types';
33
4-
import { useForwardPropsEmits } from 'radix-vue';
4+
import { useForwardPropsEmits } from 'reka-ui';
55
66
import BreadcrumbBackground from './breadcrumb-background.vue';
77
import Breadcrumb from './breadcrumb.vue';

packages/@core/ui-kit/shadcn-ui/src/components/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AsTag } from 'radix-vue';
1+
import type { AsTag } from 'reka-ui';
22

33
import type { Component } from 'vue';
44

0 commit comments

Comments
 (0)