refactor: Integrate the @vben-core/shared package

This commit is contained in:
vben
2024-07-30 21:05:03 +08:00
parent e6403868fc
commit cf0ec053e4
223 changed files with 330 additions and 328 deletions

View File

@@ -37,7 +37,7 @@
}
},
"dependencies": {
"@vben-core/hooks": "workspace:*",
"@vben-core/composables": "workspace:*",
"@vben-core/icons": "workspace:*",
"@vben-core/shadcn-ui": "workspace:*",
"@vben-core/typings": "workspace:*",

View File

@@ -4,7 +4,7 @@ import type { ContentCompactType } from '@vben-core/typings';
import type { CSSProperties } from 'vue';
import { computed } from 'vue';
import { useContentHeightListener } from '@vben-core/hooks';
import { useContentHeightListener } from '@vben-core/composables';
interface Props {
/**

View File

@@ -37,10 +37,10 @@
}
},
"dependencies": {
"@vben-core/hooks": "workspace:*",
"@vben-core/composables": "workspace:*",
"@vben-core/icons": "workspace:*",
"@vben-core/shadcn-ui": "workspace:*",
"@vben-core/toolkit": "workspace:*",
"@vben-core/shared": "workspace:*",
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"vue": "^3.4.34"

View File

@@ -3,7 +3,7 @@ import type { MenuItemProps, MenuItemRegistered } from '../interface';
import { computed, onBeforeUnmount, onMounted, reactive, useSlots } from 'vue';
import { useNamespace } from '@vben-core/hooks';
import { useNamespace } from '@vben-core/composables';
import { VbenIcon, VbenMenuBadge, VbenTooltip } from '@vben-core/shadcn-ui';
import { useMenu, useMenuContext, useSubMenuContext } from '../hooks';

View File

@@ -18,9 +18,9 @@ import {
watchEffect,
} from 'vue';
import { useNamespace } from '@vben-core/hooks';
import { useNamespace } from '@vben-core/composables';
import { Ellipsis } from '@vben-core/icons';
import { isHttpUrl } from '@vben-core/toolkit';
import { isHttpUrl } from '@vben-core/shared';
import { useResizeObserver, UseResizeObserverReturn } from '@vueuse/core';

View File

@@ -3,7 +3,7 @@ import type { MenuRecordRaw } from '@vben-core/typings';
import type { NormalMenuProps } from './normal-menu';
import { useNamespace } from '@vben-core/hooks';
import { useNamespace } from '@vben-core/composables';
import { VbenIcon } from '@vben-core/shadcn-ui';
interface Props extends NormalMenuProps {}

View File

@@ -3,7 +3,7 @@ import type { MenuItemProps } from '../interface';
import { computed } from 'vue';
import { useNamespace } from '@vben-core/hooks';
import { useNamespace } from '@vben-core/composables';
import { ChevronDown, ChevronRight } from '@vben-core/icons';
import { VbenIcon } from '@vben-core/shadcn-ui';

View File

@@ -9,7 +9,7 @@ import type {
import { computed, onBeforeUnmount, onMounted, reactive, ref } from 'vue';
import { useNamespace } from '@vben-core/hooks';
import { useNamespace } from '@vben-core/composables';
import { VbenHoverCard } from '@vben-core/shadcn-ui';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { MenuRecordRaw } from '@vben-core/typings';
import { useForwardProps } from '@vben-core/hooks';
import { useForwardProps } from '@vben-core/composables';
import { Menu } from './components';
import { MenuProps } from './interface';

View File

@@ -11,6 +11,6 @@
"framework": "vite",
"aliases": {
"components": "@vben-core/shadcn-ui/components",
"utils": "@vben-core/toolkit"
"utils": "@vben-core/shared"
}
}

View File

@@ -44,7 +44,7 @@
"dependencies": {
"@radix-icons/vue": "^1.0.0",
"@vben-core/icons": "workspace:*",
"@vben-core/toolkit": "workspace:*",
"@vben-core/shared": "workspace:*",
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"class-variance-authority": "^0.7.0",

View File

@@ -7,7 +7,7 @@ import {
type ButtonVariants,
buttonVariants,
} from '@vben-core/shadcn-ui/components/ui/button';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Primitive, type PrimitiveProps } from 'radix-vue';

View File

@@ -3,7 +3,7 @@ import { computed, type HTMLAttributes, useSlots } from 'vue';
import { VbenTooltip } from '@vben-core/shadcn-ui/components/tooltip';
import { ButtonVariants } from '@vben-core/shadcn-ui/components/ui/button';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { type PrimitiveProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { computed, onMounted, ref, unref, watch, watchEffect } from 'vue';
import { isNumber } from '@vben-core/toolkit';
import { isNumber } from '@vben-core/shared';
import { TransitionPresets, useTransition } from '@vueuse/core';

View File

@@ -2,7 +2,7 @@
import { type Component, computed } from 'vue';
import { Icon, IconDefault } from '@vben-core/icons';
import { isFunction, isHttpUrl, isObject, isString } from '@vben-core/toolkit';
import { isFunction, isHttpUrl, isObject, isString } from '@vben-core/shared';
const props = defineProps<{
// 没有是否显示默认图标

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Primitive, type PrimitiveProps } from 'radix-vue';

View File

@@ -3,7 +3,7 @@ import type { MenuRecordBadgeRaw } from '@vben-core/typings';
import { computed } from 'vue';
import { isValidColor } from '@vben-core/toolkit';
import { isValidColor } from '@vben-core/shared';
import BadgeDot from './menu-badge-dot.vue';

View File

@@ -6,7 +6,7 @@ import {
ScrollArea,
ScrollBar,
} from '@vben-core/shadcn-ui/components/ui/scroll-area';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
interface Props {
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
TabsIndicator,

View File

@@ -2,7 +2,7 @@
import { computed, type HTMLAttributes } from 'vue';
import { buttonVariants } from '@vben-core/shadcn-ui/components/ui/button';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { AlertDialogAction, type AlertDialogActionProps } from 'radix-vue';

View File

@@ -2,7 +2,7 @@
import { computed, type HTMLAttributes } from 'vue';
import { buttonVariants } from '@vben-core/shadcn-ui/components/ui/button';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { AlertDialogCancel, type AlertDialogCancelProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
AlertDialogContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
AlertDialogDescription,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { AlertDialogTitle, type AlertDialogTitleProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { AvatarRoot } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { type BadgeVariants, badgeVariants } from './badge';

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { DotsHorizontalIcon } from '@radix-icons/vue';

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Primitive, type PrimitiveProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ChevronRightIcon } from '@radix-icons/vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Primitive, type PrimitiveProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -3,7 +3,7 @@ import type { CheckboxRootEmits, CheckboxRootProps } from 'radix-vue';
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { CheckIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { CheckIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ContextMenuContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ContextMenuItem,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ContextMenuLabel, type ContextMenuLabelProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { DotFilledIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ContextMenuSeparator,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ContextMenuSubContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ChevronRightIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Cross2Icon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DialogDescription,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{ class?: HTMLAttributes['class'] }>();
</script>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DialogClose,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { DialogTitle, type DialogTitleProps, useForwardProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { CheckIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DropdownMenuContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DropdownMenuItem,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DropdownMenuLabel,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { DotFilledIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DropdownMenuSeparator,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DropdownMenuSubContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ChevronRightIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
HoverCardContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { useVModel } from '@vueuse/core';

View File

@@ -3,7 +3,7 @@ import type { NumberFieldRootEmits, NumberFieldRootProps } from 'radix-vue';
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { NumberFieldRoot, useForwardPropsEmits } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

@@ -3,7 +3,7 @@ import type { NumberFieldDecrementProps } from 'radix-vue';
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Minus } from 'lucide-vue-next';
import { NumberFieldDecrement, useForwardProps } from 'radix-vue';

View File

@@ -3,7 +3,7 @@ import type { NumberFieldIncrementProps } from 'radix-vue';
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Plus } from 'lucide-vue-next';
import { NumberFieldIncrement, useForwardProps } from 'radix-vue';

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { NumberFieldInput } from 'radix-vue';
</script>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
PinInputRoot,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Primitive, type PrimitiveProps, useForwardProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
PinInputInput,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
PopoverContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ScrollAreaCorner,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ScrollAreaScrollbar,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
SelectContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { SelectGroup, type SelectGroupProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { CheckIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { SelectLabel, type SelectLabelProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ChevronDownIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ChevronUpIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { SelectSeparator, type SelectSeparatorProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { CaretSortIcon } from '@radix-icons/vue';
import {

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
DialogContent,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { DialogDescription, type DialogDescriptionProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{ class?: HTMLAttributes['class'] }>();
</script>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
const props = defineProps<{ class?: HTMLAttributes['class'] }>();
</script>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { DialogTitle, type DialogTitleProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
SwitchRoot,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { TabsContent, type TabsContentProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { TabsList, type TabsListProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { TabsTrigger, type TabsTriggerProps, useForwardProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ToastRoot,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ToastAction, type ToastActionProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { Cross2Icon } from '@radix-icons/vue';
import { ToastClose, type ToastCloseProps } from 'radix-vue';

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import { ToastDescription, type ToastDescriptionProps } from 'radix-vue';

Some files were not shown because too many files have changed in this diff Show More