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

@@ -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';

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 { ToastTitle, type ToastTitleProps } 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 { ToastViewport, type ToastViewportProps } from 'radix-vue';

View File

@@ -4,7 +4,7 @@ import type { VariantProps } from 'class-variance-authority';
import { computed, type HTMLAttributes, provide } from 'vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ToggleGroupRoot,

View File

@@ -4,7 +4,7 @@ import type { VariantProps } from 'class-variance-authority';
import { computed, type HTMLAttributes, inject } from 'vue';
import { toggleVariants } from '@vben-core/shadcn-ui/components/ui/toggle';
import { cn } from '@vben-core/toolkit';
import { cn } from '@vben-core/shared';
import {
ToggleGroupItem,

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 {
Toggle,

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 {
TooltipContent,