This commit is contained in:
dap
2025-01-01 12:57:20 +08:00
251 changed files with 619 additions and 959 deletions

View File

@@ -10,7 +10,7 @@ import { computed } from 'vue';
import { Avatar, AvatarFallback, AvatarImage } from '../../ui';
interface Props extends AvatarRootProps, AvatarFallbackProps, AvatarImageProps {
interface Props extends AvatarFallbackProps, AvatarImageProps, AvatarRootProps {
alt?: string;
class?: ClassType;
dot?: boolean;

View File

@@ -1,5 +1,4 @@
import type { BreadcrumbStyleType } from '@vben-core/typings';
import type { Component } from 'vue';
export interface IBreadcrumb {

View File

@@ -1,9 +1,8 @@
import type { AsTag } from 'radix-vue';
import type { Component } from 'vue';
import type { ButtonVariants, ButtonVariantSize } from '../../ui';
import type { Component } from 'vue';
export interface VbenButtonProps {
/**
* The element or component this component should render as. Can be overwrite by `asChild`

View File

@@ -8,9 +8,8 @@ import type {
import type { IContextMenuItem } from './interface';
import { computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
import {
ContextMenu,

View File

@@ -6,9 +6,8 @@ import type {
HoverCardRootProps,
} from 'radix-vue';
import { computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
import { HoverCard, HoverCardContent, HoverCardTrigger } from '../../ui';

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { type Component, computed } from 'vue';
import type { Component } from 'vue';
import { IconDefault, IconifyIcon } from '@vben-core/icons';
import {
@@ -8,6 +8,7 @@ import {
isObject,
isString,
} from '@vben-core/shared/utils';
import { computed } from 'vue';
const props = defineProps<{
// 没有是否显示默认图标

View File

@@ -6,9 +6,8 @@ import type {
PopoverRootProps,
} from 'radix-vue';
import { computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
import {
PopoverContent,

View File

@@ -1,8 +1,8 @@
<script lang="ts">
import type { Component, PropType } from 'vue';
import { defineComponent, h } from 'vue';
import { isFunction, isObject } from '@vben-core/shared/utils';
import { defineComponent, h } from 'vue';
export default defineComponent({
name: 'RenderContent',

View File

@@ -1,11 +1,9 @@
<script setup lang="ts">
import type { TabsIndicatorProps } from 'radix-vue';
import { computed } from 'vue';
import { cn } from '@vben-core/shared/utils';
import { TabsIndicator, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & TabsIndicatorProps>();

View File

@@ -1,7 +1,6 @@
<script setup lang="ts">
import type { ClassType } from '@vben-core/typings';
import type { TooltipContentProps } from 'radix-vue';
import type { StyleValue } from 'vue';
import {

View File

@@ -1,10 +1,7 @@
<script setup lang="ts">
import {
AccordionRoot,
type AccordionRootEmits,
type AccordionRootProps,
useForwardPropsEmits,
} from 'radix-vue';
import type { AccordionRootEmits, AccordionRootProps } from 'radix-vue';
import { AccordionRoot, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<AccordionRootProps>();
const emits = defineEmits<AccordionRootEmits>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { AccordionContentProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { AccordionContent, type AccordionContentProps } from 'radix-vue';
import { AccordionContent } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & AccordionContentProps>();

View File

@@ -1,13 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { AccordionItemProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
AccordionItem,
type AccordionItemProps,
useForwardProps,
} from 'radix-vue';
import { AccordionItem, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & AccordionItemProps>();

View File

@@ -1,14 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { AccordionTriggerProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronDown } from 'lucide-vue-next';
import {
AccordionHeader,
AccordionTrigger,
type AccordionTriggerProps,
} from 'radix-vue';
import { AccordionHeader, AccordionTrigger } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & AccordionTriggerProps>();

View File

@@ -1,9 +1,10 @@
<script setup lang="ts">
import { cn } from '@vben-core/shared/utils';
import type { AvatarVariants } from './avatar';
import { cn } from '@vben-core/shared/utils';
import { AvatarRoot } from 'radix-vue';
import { avatarVariant, type AvatarVariants } from './avatar';
import { avatarVariant } from './avatar';
const props = withDefaults(
defineProps<{

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { AvatarFallback, type AvatarFallbackProps } from 'radix-vue';
import type { AvatarFallbackProps } from 'radix-vue';
import { AvatarFallback } from 'radix-vue';
const props = defineProps<AvatarFallbackProps>();
</script>

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { AvatarImage, type AvatarImageProps } from 'radix-vue';
import type { AvatarImageProps } from 'radix-vue';
import { AvatarImage } from 'radix-vue';
const props = defineProps<AvatarImageProps>();
</script>

View File

@@ -1,4 +1,6 @@
import { cva, type VariantProps } from 'class-variance-authority';
import type { VariantProps } from 'class-variance-authority';
import { cva } from 'class-variance-authority';
export const avatarVariant = cva(
'inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden',

View File

@@ -1,7 +1,9 @@
<script setup lang="ts">
import type { BadgeVariants } from './badge';
import { cn } from '@vben-core/shared/utils';
import { type BadgeVariants, badgeVariants } from './badge';
import { badgeVariants } from './badge';
const props = defineProps<{
class?: any;

View File

@@ -1,4 +1,6 @@
import { cva, type VariantProps } from 'class-variance-authority';
import type { VariantProps } from 'class-variance-authority';
import { cva } from 'class-variance-authority';
export const badgeVariants = cva(
'inline-flex items-center rounded-md border border-border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',

View File

@@ -1,7 +1,8 @@
<script lang="ts" setup>
import { cn } from '@vben-core/shared/utils';
import type { PrimitiveProps } from 'radix-vue';
import { Primitive, type PrimitiveProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Primitive } from 'radix-vue';
const props = withDefaults(defineProps<{ class?: any } & PrimitiveProps>(), {
as: 'a',

View File

@@ -1,9 +1,10 @@
<script setup lang="ts">
import type { PrimitiveProps } from 'radix-vue';
import type { ButtonVariants, ButtonVariantSize } from './types';
import { cn } from '@vben-core/shared/utils';
import { Primitive, type PrimitiveProps } from 'radix-vue';
import { Primitive } from 'radix-vue';
import { buttonVariants } from './button';

View File

@@ -1,16 +1,14 @@
<script setup lang="ts">
import type { CheckboxRootEmits, CheckboxRootProps } from 'radix-vue';
import { computed } from 'vue';
import { cn } from '@vben-core/shared/utils';
import { Check } from 'lucide-vue-next';
import {
CheckboxIndicator,
CheckboxRoot,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & CheckboxRootProps>();
const emits = defineEmits<CheckboxRootEmits>();

View File

@@ -1,16 +1,17 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
ContextMenuCheckboxItemEmits,
ContextMenuCheckboxItemProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Check } from 'lucide-vue-next';
import {
ContextMenuCheckboxItem,
type ContextMenuCheckboxItemEmits,
type ContextMenuCheckboxItemProps,
ContextMenuItemIndicator,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & ContextMenuCheckboxItemProps>();
const emits = defineEmits<ContextMenuCheckboxItemEmits>();

View File

@@ -1,15 +1,16 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
ContextMenuContentEmits,
ContextMenuContentProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
ContextMenuContent,
type ContextMenuContentEmits,
type ContextMenuContentProps,
ContextMenuPortal,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & ContextMenuContentProps>();
const emits = defineEmits<ContextMenuContentEmits>();

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { ContextMenuGroup, type ContextMenuGroupProps } from 'radix-vue';
import type { ContextMenuGroupProps } from 'radix-vue';
import { ContextMenuGroup } from 'radix-vue';
const props = defineProps<ContextMenuGroupProps>();
</script>

View File

@@ -1,14 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { ContextMenuItemEmits, ContextMenuItemProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
ContextMenuItem,
type ContextMenuItemEmits,
type ContextMenuItemProps,
useForwardPropsEmits,
} from 'radix-vue';
import { ContextMenuItem, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{ class?: any; inset?: boolean } & ContextMenuItemProps

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { ContextMenuLabelProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ContextMenuLabel, type ContextMenuLabelProps } from 'radix-vue';
import { ContextMenuLabel } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{ class?: any; inset?: boolean } & ContextMenuLabelProps

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { ContextMenuPortal, type ContextMenuPortalProps } from 'radix-vue';
import type { ContextMenuPortalProps } from 'radix-vue';
import { ContextMenuPortal } from 'radix-vue';
const props = defineProps<ContextMenuPortalProps>();
</script>

View File

@@ -1,11 +1,11 @@
<script setup lang="ts">
import {
ContextMenuRadioGroup,
type ContextMenuRadioGroupEmits,
type ContextMenuRadioGroupProps,
useForwardPropsEmits,
import type {
ContextMenuRadioGroupEmits,
ContextMenuRadioGroupProps,
} from 'radix-vue';
import { ContextMenuRadioGroup, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<ContextMenuRadioGroupProps>();
const emits = defineEmits<ContextMenuRadioGroupEmits>();

View File

@@ -1,16 +1,17 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
ContextMenuRadioItemEmits,
ContextMenuRadioItemProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Circle } from 'lucide-vue-next';
import {
ContextMenuItemIndicator,
ContextMenuRadioItem,
type ContextMenuRadioItemEmits,
type ContextMenuRadioItemProps,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & ContextMenuRadioItemProps>();
const emits = defineEmits<ContextMenuRadioItemEmits>();

View File

@@ -1,12 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { ContextMenuSeparatorProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
ContextMenuSeparator,
type ContextMenuSeparatorProps,
} from 'radix-vue';
import { ContextMenuSeparator } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & ContextMenuSeparatorProps>();

View File

@@ -1,10 +1,7 @@
<script setup lang="ts">
import {
ContextMenuSub,
type ContextMenuSubEmits,
type ContextMenuSubProps,
useForwardPropsEmits,
} from 'radix-vue';
import type { ContextMenuSubEmits, ContextMenuSubProps } from 'radix-vue';
import { ContextMenuSub, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<ContextMenuSubProps>();
const emits = defineEmits<ContextMenuSubEmits>();

View File

@@ -1,14 +1,12 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
DropdownMenuSubContentEmits,
DropdownMenuSubContentProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
ContextMenuSubContent,
type DropdownMenuSubContentEmits,
type DropdownMenuSubContentProps,
useForwardPropsEmits,
} from 'radix-vue';
import { ContextMenuSubContent, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DropdownMenuSubContentProps>();
const emits = defineEmits<DropdownMenuSubContentEmits>();

View File

@@ -1,14 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { ContextMenuSubTriggerProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronRight } from 'lucide-vue-next';
import {
ContextMenuSubTrigger,
type ContextMenuSubTriggerProps,
useForwardProps,
} from 'radix-vue';
import { ContextMenuSubTrigger, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{

View File

@@ -1,9 +1,7 @@
<script setup lang="ts">
import {
ContextMenuTrigger,
type ContextMenuTriggerProps,
useForwardProps,
} from 'radix-vue';
import type { ContextMenuTriggerProps } from 'radix-vue';
import { ContextMenuTrigger, useForwardProps } from 'radix-vue';
const props = defineProps<ContextMenuTriggerProps>();

View File

@@ -1,10 +1,7 @@
<script setup lang="ts">
import {
DialogRoot,
type DialogRootEmits,
type DialogRootProps,
useForwardPropsEmits,
} from 'radix-vue';
import type { DialogRootEmits, DialogRootProps } from 'radix-vue';
import { DialogRoot, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<DialogRootProps>();
const emits = defineEmits<DialogRootEmits>();

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { DialogClose, type DialogCloseProps } from 'radix-vue';
import type { DialogCloseProps } from 'radix-vue';
import { DialogClose } from 'radix-vue';
const props = defineProps<DialogCloseProps>();
</script>

View File

@@ -1,19 +1,16 @@
<script setup lang="ts">
import type { ClassType } from '@vben-core/typings';
import { computed, ref } from 'vue';
import type { DialogContentEmits, DialogContentProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { X } from 'lucide-vue-next';
import {
DialogClose,
DialogContent,
type DialogContentEmits,
type DialogContentProps,
DialogPortal,
useForwardPropsEmits,
} from 'radix-vue';
import { computed, ref } from 'vue';
import DialogOverlay from './DialogOverlay.vue';

View File

@@ -1,13 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DialogDescriptionProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
DialogDescription,
type DialogDescriptionProps,
useForwardProps,
} from 'radix-vue';
import { DialogDescription, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DialogDescriptionProps>();

View File

@@ -1,18 +1,16 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DialogContentEmits, DialogContentProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { X } from 'lucide-vue-next';
import {
DialogClose,
DialogContent,
type DialogContentEmits,
type DialogContentProps,
DialogOverlay,
DialogPortal,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = withDefaults(
defineProps<{ class?: any; zIndex?: number } & DialogContentProps>(),

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DialogTitleProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { DialogTitle, type DialogTitleProps, useForwardProps } from 'radix-vue';
import { DialogTitle, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DialogTitleProps>();

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { DialogTrigger, type DialogTriggerProps } from 'radix-vue';
import type { DialogTriggerProps } from 'radix-vue';
import { DialogTrigger } from 'radix-vue';
const props = defineProps<DialogTriggerProps>();
</script>

View File

@@ -1,10 +1,7 @@
<script setup lang="ts">
import {
DropdownMenuRoot,
type DropdownMenuRootEmits,
type DropdownMenuRootProps,
useForwardPropsEmits,
} from 'radix-vue';
import type { DropdownMenuRootEmits, DropdownMenuRootProps } from 'radix-vue';
import { DropdownMenuRoot, useForwardPropsEmits } from 'radix-vue';
const props = withDefaults(defineProps<DropdownMenuRootProps>(), {
modal: false,

View File

@@ -1,16 +1,17 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
DropdownMenuCheckboxItemEmits,
DropdownMenuCheckboxItemProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Check } from 'lucide-vue-next';
import {
DropdownMenuCheckboxItem,
type DropdownMenuCheckboxItemEmits,
type DropdownMenuCheckboxItemProps,
DropdownMenuItemIndicator,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DropdownMenuCheckboxItemProps>();
const emits = defineEmits<DropdownMenuCheckboxItemEmits>();

View File

@@ -1,15 +1,16 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
DropdownMenuContentEmits,
DropdownMenuContentProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
DropdownMenuContent,
type DropdownMenuContentEmits,
type DropdownMenuContentProps,
DropdownMenuPortal,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = withDefaults(
defineProps<{ class?: any } & DropdownMenuContentProps>(),

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { DropdownMenuGroup, type DropdownMenuGroupProps } from 'radix-vue';
import type { DropdownMenuGroupProps } from 'radix-vue';
import { DropdownMenuGroup } from 'radix-vue';
const props = defineProps<DropdownMenuGroupProps>();
</script>

View File

@@ -1,13 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DropdownMenuItemProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
DropdownMenuItem,
type DropdownMenuItemProps,
useForwardProps,
} from 'radix-vue';
import { DropdownMenuItem, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{ class?: any; inset?: boolean } & DropdownMenuItemProps

View File

@@ -1,13 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DropdownMenuLabelProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
DropdownMenuLabel,
type DropdownMenuLabelProps,
useForwardProps,
} from 'radix-vue';
import { DropdownMenuLabel, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{ class?: any; inset?: boolean } & DropdownMenuLabelProps

View File

@@ -1,11 +1,11 @@
<script setup lang="ts">
import {
DropdownMenuRadioGroup,
type DropdownMenuRadioGroupEmits,
type DropdownMenuRadioGroupProps,
useForwardPropsEmits,
import type {
DropdownMenuRadioGroupEmits,
DropdownMenuRadioGroupProps,
} from 'radix-vue';
import { DropdownMenuRadioGroup, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<DropdownMenuRadioGroupProps>();
const emits = defineEmits<DropdownMenuRadioGroupEmits>();

View File

@@ -1,16 +1,17 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
DropdownMenuRadioItemEmits,
DropdownMenuRadioItemProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Circle } from 'lucide-vue-next';
import {
DropdownMenuItemIndicator,
DropdownMenuRadioItem,
type DropdownMenuRadioItemEmits,
type DropdownMenuRadioItemProps,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DropdownMenuRadioItemProps>();

View File

@@ -1,12 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DropdownMenuSeparatorProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
DropdownMenuSeparator,
type DropdownMenuSeparatorProps,
} from 'radix-vue';
import { DropdownMenuSeparator } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{

View File

@@ -1,10 +1,7 @@
<script setup lang="ts">
import {
DropdownMenuSub,
type DropdownMenuSubEmits,
type DropdownMenuSubProps,
useForwardPropsEmits,
} from 'radix-vue';
import type { DropdownMenuSubEmits, DropdownMenuSubProps } from 'radix-vue';
import { DropdownMenuSub, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<DropdownMenuSubProps>();
const emits = defineEmits<DropdownMenuSubEmits>();

View File

@@ -1,14 +1,12 @@
<script setup lang="ts">
import { computed } from 'vue';
import type {
DropdownMenuSubContentEmits,
DropdownMenuSubContentProps,
} from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
DropdownMenuSubContent,
type DropdownMenuSubContentEmits,
type DropdownMenuSubContentProps,
useForwardPropsEmits,
} from 'radix-vue';
import { DropdownMenuSubContent, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DropdownMenuSubContentProps>();
const emits = defineEmits<DropdownMenuSubContentEmits>();

View File

@@ -1,14 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DropdownMenuSubTriggerProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronRight } from 'lucide-vue-next';
import {
DropdownMenuSubTrigger,
type DropdownMenuSubTriggerProps,
useForwardProps,
} from 'radix-vue';
import { DropdownMenuSubTrigger, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DropdownMenuSubTriggerProps>();

View File

@@ -1,9 +1,7 @@
<script setup lang="ts">
import {
DropdownMenuTrigger,
type DropdownMenuTriggerProps,
useForwardProps,
} from 'radix-vue';
import type { DropdownMenuTriggerProps } from 'radix-vue';
import { DropdownMenuTrigger, useForwardProps } from 'radix-vue';
const props = defineProps<DropdownMenuTriggerProps>();

View File

@@ -1,10 +1,7 @@
<script setup lang="ts">
import {
HoverCardRoot,
type HoverCardRootEmits,
type HoverCardRootProps,
useForwardPropsEmits,
} from 'radix-vue';
import type { HoverCardRootEmits, HoverCardRootProps } from 'radix-vue';
import { HoverCardRoot, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<HoverCardRootProps>();
const emits = defineEmits<HoverCardRootEmits>();

View File

@@ -1,14 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { HoverCardContentProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
HoverCardContent,
type HoverCardContentProps,
HoverCardPortal,
useForwardProps,
} from 'radix-vue';
import { HoverCardContent, HoverCardPortal, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = withDefaults(
defineProps<{ class?: any } & HoverCardContentProps>(),

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { HoverCardTrigger, type HoverCardTriggerProps } from 'radix-vue';
import type { HoverCardTriggerProps } from 'radix-vue';
import { HoverCardTrigger } from 'radix-vue';
const props = defineProps<HoverCardTriggerProps>();
</script>

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { LabelProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Label, type LabelProps } from 'radix-vue';
import { Label } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & LabelProps>();

View File

@@ -1,11 +1,9 @@
<script setup lang="ts">
import type { NumberFieldRootEmits, NumberFieldRootProps } from 'radix-vue';
import { computed } from 'vue';
import { cn } from '@vben-core/shared/utils';
import { NumberFieldRoot, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & NumberFieldRootProps>();
const emits = defineEmits<NumberFieldRootEmits>();

View File

@@ -1,12 +1,10 @@
<script setup lang="ts">
import type { NumberFieldDecrementProps } from 'radix-vue';
import { computed } from 'vue';
import { cn } from '@vben-core/shared/utils';
import { Minus } from 'lucide-vue-next';
import { NumberFieldDecrement, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & NumberFieldDecrementProps>();

View File

@@ -1,12 +1,10 @@
<script setup lang="ts">
import type { NumberFieldIncrementProps } from 'radix-vue';
import { computed } from 'vue';
import { cn } from '@vben-core/shared/utils';
import { Plus } from 'lucide-vue-next';
import { NumberFieldIncrement, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & NumberFieldIncrementProps>();

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PaginationEllipsisProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { MoreHorizontal } from 'lucide-vue-next';
import { PaginationEllipsis, type PaginationEllipsisProps } from 'radix-vue';
import { PaginationEllipsis } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & PaginationEllipsisProps>();

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PaginationFirstProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronsLeft } from 'lucide-vue-next';
import { PaginationFirst, type PaginationFirstProps } from 'radix-vue';
import { PaginationFirst } from 'radix-vue';
import { computed } from 'vue';
import { Button } from '../button';

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PaginationLastProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronsRight } from 'lucide-vue-next';
import { PaginationLast, type PaginationLastProps } from 'radix-vue';
import { PaginationLast } from 'radix-vue';
import { computed } from 'vue';
import { Button } from '../button';

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PaginationNextProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronRight } from 'lucide-vue-next';
import { PaginationNext, type PaginationNextProps } from 'radix-vue';
import { PaginationNext } from 'radix-vue';
import { computed } from 'vue';
import { Button } from '../button';

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PaginationPrevProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronLeft } from 'lucide-vue-next';
import { PaginationPrev, type PaginationPrevProps } from 'radix-vue';
import { PaginationPrev } from 'radix-vue';
import { computed } from 'vue';
import { Button } from '../button';

View File

@@ -1,14 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PinInputRootEmits, PinInputRootProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
PinInputRoot,
type PinInputRootEmits,
type PinInputRootProps,
useForwardPropsEmits,
} from 'radix-vue';
import { PinInputRoot, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & PinInputRootProps>();
const emits = defineEmits<PinInputRootEmits>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PrimitiveProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Primitive, type PrimitiveProps, useForwardProps } from 'radix-vue';
import { Primitive, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & PrimitiveProps>();
const delegatedProps = computed(() => {

View File

@@ -1,13 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PinInputInputProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
PinInputInput,
type PinInputInputProps,
useForwardProps,
} from 'radix-vue';
import { PinInputInput, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & PinInputInputProps>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import type { PrimitiveProps } from 'radix-vue';
import { Dot } from 'lucide-vue-next';
import { Primitive, type PrimitiveProps, useForwardProps } from 'radix-vue';
import { Primitive, useForwardProps } from 'radix-vue';
const props = defineProps<PrimitiveProps>();
const forwardedProps = useForwardProps(props);

View File

@@ -1,15 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { PopoverContentEmits, PopoverContentProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
PopoverContent,
type PopoverContentEmits,
type PopoverContentProps,
PopoverPortal,
useForwardPropsEmits,
} from 'radix-vue';
import { PopoverContent, PopoverPortal, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
defineOptions({
inheritAttrs: false,

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { PopoverTrigger, type PopoverTriggerProps } from 'radix-vue';
import type { PopoverTriggerProps } from 'radix-vue';
import { PopoverTrigger } from 'radix-vue';
const props = defineProps<PopoverTriggerProps>();
</script>

View File

@@ -1,14 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { RadioGroupRootEmits, RadioGroupRootProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
RadioGroupRoot,
type RadioGroupRootEmits,
type RadioGroupRootProps,
useForwardPropsEmits,
} from 'radix-vue';
import { RadioGroupRoot, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & RadioGroupRootProps>();
const emits = defineEmits<RadioGroupRootEmits>();

View File

@@ -1,15 +1,14 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { RadioGroupItemProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Circle } from 'lucide-vue-next';
import {
RadioGroupIndicator,
RadioGroupItem,
type RadioGroupItemProps,
useForwardProps,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & RadioGroupItemProps>();

View File

@@ -1,15 +1,14 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import type {
SplitterResizeHandleEmits,
SplitterResizeHandleProps,
} from 'radix-vue';
import type { HTMLAttributes } from 'vue';
import { GripVertical } from '@vben-core/icons';
import { cn } from '@vben-core/shared/utils';
import {
SplitterResizeHandle,
type SplitterResizeHandleEmits,
type SplitterResizeHandleProps,
useForwardPropsEmits,
} from 'radix-vue';
import { SplitterResizeHandle, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{

View File

@@ -1,14 +1,10 @@
<script setup lang="ts">
import { computed, type HTMLAttributes } from 'vue';
import type { SplitterGroupEmits, SplitterGroupProps } from 'radix-vue';
import type { HTMLAttributes } from 'vue';
import { cn } from '@vben-core/shared/utils';
import {
SplitterGroup,
type SplitterGroupEmits,
type SplitterGroupProps,
useForwardPropsEmits,
} from 'radix-vue';
import { SplitterGroup, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SplitterGroupProps

View File

@@ -1,14 +1,13 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { ScrollAreaRootProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
ScrollAreaCorner,
ScrollAreaRoot,
type ScrollAreaRootProps,
ScrollAreaViewport,
} from 'radix-vue';
import { computed } from 'vue';
import ScrollBar from './ScrollBar.vue';

View File

@@ -1,13 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { ScrollAreaScrollbarProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
ScrollAreaScrollbar,
type ScrollAreaScrollbarProps,
ScrollAreaThumb,
} from 'radix-vue';
import { ScrollAreaScrollbar, ScrollAreaThumb } from 'radix-vue';
import { computed } from 'vue';
const props = withDefaults(
defineProps<{ class?: any } & ScrollAreaScrollbarProps>(),

View File

@@ -1,16 +1,14 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SelectContentEmits, SelectContentProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
SelectContent,
type SelectContentEmits,
type SelectContentProps,
SelectPortal,
SelectViewport,
useForwardPropsEmits,
} from 'radix-vue';
import { computed } from 'vue';
import SelectScrollDownButton from './SelectScrollDownButton.vue';
import SelectScrollUpButton from './SelectScrollUpButton.vue';

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SelectGroupProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { SelectGroup, type SelectGroupProps } from 'radix-vue';
import { SelectGroup } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & SelectGroupProps>();

View File

@@ -1,16 +1,15 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SelectItemProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Check } from 'lucide-vue-next';
import {
SelectItem,
SelectItemIndicator,
type SelectItemProps,
SelectItemText,
useForwardProps,
} from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & SelectItemProps>();

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { SelectItemText, type SelectItemTextProps } from 'radix-vue';
import type { SelectItemTextProps } from 'radix-vue';
import { SelectItemText } from 'radix-vue';
const props = defineProps<SelectItemTextProps>();
</script>

View File

@@ -1,7 +1,8 @@
<script setup lang="ts">
import { cn } from '@vben-core/shared/utils';
import type { SelectLabelProps } from 'radix-vue';
import { SelectLabel, type SelectLabelProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { SelectLabel } from 'radix-vue';
const props = defineProps<{ class?: any } & SelectLabelProps>();
</script>

View File

@@ -1,14 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SelectScrollDownButtonProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronDown } from 'lucide-vue-next';
import {
SelectScrollDownButton,
type SelectScrollDownButtonProps,
useForwardProps,
} from 'radix-vue';
import { SelectScrollDownButton, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & SelectScrollDownButtonProps>();

View File

@@ -1,14 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SelectScrollUpButtonProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronUp } from 'lucide-vue-next';
import {
SelectScrollUpButton,
type SelectScrollUpButtonProps,
useForwardProps,
} from 'radix-vue';
import { SelectScrollUpButton, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & SelectScrollUpButtonProps>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SelectSeparatorProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { SelectSeparator, type SelectSeparatorProps } from 'radix-vue';
import { SelectSeparator } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & SelectSeparatorProps>();

View File

@@ -1,15 +1,10 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SelectTriggerProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { ChevronDown } from 'lucide-vue-next';
import {
SelectIcon,
SelectTrigger,
type SelectTriggerProps,
useForwardProps,
} from 'radix-vue';
import { SelectIcon, SelectTrigger, useForwardProps } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & SelectTriggerProps>();

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { SelectValue, type SelectValueProps } from 'radix-vue';
import type { SelectValueProps } from 'radix-vue';
import { SelectValue } from 'radix-vue';
const props = defineProps<SelectValueProps>();
</script>

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SeparatorProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { Separator, type SeparatorProps } from 'radix-vue';
import { Separator } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any; label?: string } & SeparatorProps>();

View File

@@ -1,10 +1,7 @@
<script setup lang="ts">
import {
DialogRoot,
type DialogRootEmits,
type DialogRootProps,
useForwardPropsEmits,
} from 'radix-vue';
import type { DialogRootEmits, DialogRootProps } from 'radix-vue';
import { DialogRoot, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<DialogRootProps>();
const emits = defineEmits<DialogRootEmits>();

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { DialogClose, type DialogCloseProps } from 'radix-vue';
import type { DialogCloseProps } from 'radix-vue';
import { DialogClose } from 'radix-vue';
const props = defineProps<DialogCloseProps>();
</script>

View File

@@ -1,17 +1,13 @@
<script setup lang="ts">
import { computed, ref } from 'vue';
import type { DialogContentEmits, DialogContentProps } from 'radix-vue';
import type { SheetVariants } from './sheet';
import { cn } from '@vben-core/shared/utils';
import { DialogContent, DialogPortal, useForwardPropsEmits } from 'radix-vue';
import { computed, ref } from 'vue';
import {
DialogContent,
type DialogContentEmits,
type DialogContentProps,
DialogPortal,
useForwardPropsEmits,
} from 'radix-vue';
import { type SheetVariants, sheetVariants } from './sheet';
import { sheetVariants } from './sheet';
import SheetOverlay from './SheetOverlay.vue';
interface SheetContentProps extends DialogContentProps {

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DialogDescriptionProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { DialogDescription, type DialogDescriptionProps } from 'radix-vue';
import { DialogDescription } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DialogDescriptionProps>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { DialogTitleProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { DialogTitle, type DialogTitleProps } from 'radix-vue';
import { DialogTitle } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & DialogTitleProps>();

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { DialogTrigger, type DialogTriggerProps } from 'radix-vue';
import type { DialogTriggerProps } from 'radix-vue';
import { DialogTrigger } from 'radix-vue';
const props = defineProps<DialogTriggerProps>();
</script>

View File

@@ -1,4 +1,6 @@
import { cva, type VariantProps } from 'class-variance-authority';
import type { VariantProps } from 'class-variance-authority';
import { cva } from 'class-variance-authority';
export const sheetVariants = cva(
'bg-background shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 border-border',

View File

@@ -1,15 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { SwitchRootEmits, SwitchRootProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import {
SwitchRoot,
type SwitchRootEmits,
type SwitchRootProps,
SwitchThumb,
useForwardPropsEmits,
} from 'radix-vue';
import { SwitchRoot, SwitchThumb, useForwardPropsEmits } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & SwitchRootProps>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed } from 'vue';
import type { TabsContentProps } from 'radix-vue';
import { cn } from '@vben-core/shared/utils';
import { TabsContent, type TabsContentProps } from 'radix-vue';
import { TabsContent } from 'radix-vue';
import { computed } from 'vue';
const props = defineProps<{ class?: any } & TabsContentProps>();

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