fix: type check

fix: ci

fix: ci

fix: ci
This commit is contained in:
vben
2024-06-16 21:17:39 +08:00
parent 0085429ef4
commit 54b35deeab
135 changed files with 393 additions and 318 deletions

View File

@@ -20,9 +20,6 @@
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -21,9 +21,6 @@
"sideEffects": [
"**/*.css"
],
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -22,9 +22,6 @@
],
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -22,9 +22,6 @@
],
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -20,9 +20,6 @@
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -22,9 +22,6 @@
"**/*.css"
],
"main": "./dist/index.css",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -19,9 +19,6 @@
"dist",
"src"
],
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"development": "./src/scss/index.scss",

View File

@@ -15,9 +15,6 @@
],
"main": "./src/index.ts",
"module": "./src/index.ts",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"default": "./src/index.ts"

View File

@@ -20,9 +20,6 @@
"sideEffects": false,
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",
@@ -41,9 +38,11 @@
"dependencies": {
"@ctrl/tinycolor": "4.1.0",
"@vue/shared": "^3.4.29",
"clsx": "2.1.1",
"dayjs": "^1.11.11",
"defu": "^6.1.4",
"nprogress": "^0.2.0"
"nprogress": "^0.2.0",
"tailwind-merge": "^2.3.0"
},
"devDependencies": {
"@types/nprogress": "^0.2.3"

View File

@@ -1,6 +1,8 @@
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export { cn };

View File

@@ -1,3 +1,4 @@
export * from './cn';
export * from './color';
export * from './diff';
export * from './hash';

View File

@@ -20,9 +20,6 @@
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -22,9 +22,6 @@
],
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -22,9 +22,6 @@
],
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",

View File

@@ -0,0 +1,33 @@
import { defineBuildConfig } from 'unbuild';
export default defineBuildConfig({
clean: true,
declaration: true,
entries: [
{
builder: 'mkdist',
input: './src',
pattern: ['**/*'],
},
{
builder: 'mkdist',
input: './src',
loaders: ['vue'],
pattern: ['**/*.vue'],
},
// {
// builder: 'mkdist',
// format: 'cjs',
// input: './src',
// loaders: ['js'],
// pattern: ['**/*.ts'],
// },
{
builder: 'mkdist',
format: 'esm',
input: './src',
loaders: ['js'],
pattern: ['**/*.ts'],
},
],
});

View File

@@ -10,7 +10,7 @@
},
"framework": "vite",
"aliases": {
"components": "#/components",
"utils": "#/lib/utils"
"components": "@vben-core/shadcn-ui/components",
"utils": "@vben-core/toolkit"
}
}

View File

@@ -11,7 +11,7 @@
},
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
"scripts": {
"build": "pnpm vite build",
"build": "pnpm unbuild",
"prepublishOnly": "npm run build"
},
"files": [
@@ -22,9 +22,6 @@
],
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"imports": {
"#*": "./src/*"
},
"exports": {
".": {
"types": "./src/index.ts",
@@ -32,9 +29,9 @@
"default": "./dist/index.mjs"
},
"./*": {
"types": "./src/*.ts",
"development": "./src/*.ts",
"default": "./dist/*.mjs"
"types": "./src/*/index.ts",
"development": "./src/*/index.ts",
"default": "./dist/*/index.mjs"
}
},
"publishConfig": {
@@ -51,9 +48,7 @@
"@vben-core/typings": "workspace:*",
"@vueuse/core": "^10.11.0",
"class-variance-authority": "^0.7.0",
"clsx": "2.1.1",
"radix-vue": "^1.8.3",
"tailwind-merge": "^2.3.0",
"vue": "^3.4.29",
"vue-sonner": "^1.1.2"
}

View File

@@ -8,7 +8,7 @@ import {
AlertDialogHeader,
AlertDialog as AlertDialogRoot,
AlertDialogTitle,
} from '#/components/ui/alert-dialog';
} from '@vben-core/shadcn-ui/components/ui/alert-dialog';
interface Props {
cancelText?: string;

View File

@@ -8,7 +8,11 @@ import type {
import type { HTMLAttributes } from 'vue';
import { computed } from 'vue';
import { Avatar, AvatarFallback, AvatarImage } from '#/components/ui/avatar';
import {
Avatar,
AvatarFallback,
AvatarImage,
} from '@vben-core/shadcn-ui/components/ui/avatar';
interface Props extends AvatarRootProps, AvatarFallbackProps, AvatarImageProps {
alt?: string;

View File

@@ -10,13 +10,13 @@ import {
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from '#/components/ui/breadcrumb';
} from '@vben-core/shadcn-ui/components/ui/breadcrumb';
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from '#/components/ui/dropdown-menu';
} from '@vben-core/shadcn-ui/components/ui/dropdown-menu';
import { VbenIcon } from '../';

View File

@@ -3,12 +3,14 @@ import type { HTMLAttributes } from 'vue';
import { computed } from 'vue';
import { MdiLoading } from '@vben-core/iconify';
import { cn } from '@vben-core/toolkit';
import {
type ButtonVariants,
buttonVariants,
} from '@vben-core/shadcn-ui/components/ui/button';
import { Primitive, type PrimitiveProps } from 'radix-vue';
import { type ButtonVariants, buttonVariants } from '#/components/ui/button';
import { cn } from '#/lib/utils';
interface Props extends PrimitiveProps {
class?: HTMLAttributes['class'];
disabled?: boolean;

View File

@@ -1,11 +1,11 @@
<script setup lang="ts">
import { type HTMLAttributes, computed, useSlots } from 'vue';
import { type PrimitiveProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { VbenTooltip } from '#/components/tooltip';
import { ButtonVariants } from '#/components/ui/button';
import { cn } from '#/lib/utils';
import { VbenTooltip } from '@vben-core/shadcn-ui/components/tooltip';
import { ButtonVariants } from '@vben-core/shadcn-ui/components/ui/button';
import { type PrimitiveProps } from 'radix-vue';
import VbenButton from './button.vue';

View File

@@ -1,10 +1,9 @@
<script setup lang="ts">
import type { CheckboxRootEmits, CheckboxRootProps } from 'radix-vue';
import { Checkbox } from '@vben-core/shadcn-ui/components/ui/checkbox';
import { useForwardPropsEmits } from 'radix-vue';
import { Checkbox } from '#/components/ui/checkbox';
const props = defineProps<
{
name: string;

View File

@@ -10,8 +10,6 @@ import type { IContextMenuItem } from './interface';
import type { HTMLAttributes } from 'vue';
import { computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import {
ContextMenu,
ContextMenuContent,
@@ -19,7 +17,8 @@ import {
ContextMenuSeparator,
ContextMenuShortcut,
ContextMenuTrigger,
} from '#/components/ui/context-menu';
} from '@vben-core/shadcn-ui/components/ui/context-menu';
import { useForwardPropsEmits } from 'radix-vue';
const props = defineProps<
{

View File

@@ -11,7 +11,7 @@ import {
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from '#/components/ui/dropdown-menu';
} from '@vben-core/shadcn-ui/components/ui/dropdown-menu';
interface Props extends DropdownMenuProps {}

View File

@@ -7,7 +7,7 @@ import {
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuTrigger,
} from '#/components/ui/dropdown-menu';
} from '@vben-core/shadcn-ui/components/ui/dropdown-menu';
interface Props extends DropdownMenuProps {}

View File

@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
import { ref } from 'vue';
const isMenuOpen = ref(false);
@@ -8,7 +8,7 @@ const toggleMenu = () => {
isMenuOpen.value = !isMenuOpen.value;
};
const handleMenuItemClick = (_item) => {
const handleMenuItemClick = (_item: any) => {
// console.log(111, item);
};
</script>

View File

@@ -3,13 +3,12 @@ import type { HoverCardRootEmits, HoverCardRootProps } from 'radix-vue';
import { HTMLAttributes, computed } from 'vue';
import { HoverCardContentProps, useForwardPropsEmits } from 'radix-vue';
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from '#/components/ui/hover-card';
} from '@vben-core/shadcn-ui/components/ui/hover-card';
import { HoverCardContentProps, useForwardPropsEmits } from 'radix-vue';
const props = defineProps<
{

View File

@@ -6,10 +6,12 @@ import {
IcOutlineVisibilityOff,
} from '@vben-core/iconify';
import {
type InputProps,
VbenInput,
} from '@vben-core/shadcn-ui/components/input';
import { useForwardProps } from 'radix-vue';
import { type InputProps, VbenInput } from '#/components/input/index';
import PasswordStrength from './password-strength.vue';
interface Props extends InputProps {}

View File

@@ -3,12 +3,12 @@ import type { PinInputProps } from './interface';
import { computed, ref, watch } from 'vue';
import { VbenButton } from '#/components/button';
import { VbenButton } from '@vben-core/shadcn-ui/components/button';
import {
PinInput,
PinInputGroup,
PinInputInput,
} from '#/components/ui/pin-input';
} from '@vben-core/shadcn-ui/components/ui/pin-input';
defineOptions({
inheritAttrs: false,

View File

@@ -7,13 +7,12 @@ import type {
import { HTMLAttributes, computed } from 'vue';
import { useForwardPropsEmits } from 'radix-vue';
import {
PopoverContent,
Popover as PopoverRoot,
PopoverTrigger,
} from '#/components/ui/popover';
} from '@vben-core/shadcn-ui/components/ui/popover';
import { useForwardPropsEmits } from 'radix-vue';
const props = withDefaults(
defineProps<

View File

@@ -2,8 +2,9 @@
import type { HTMLAttributes } from 'vue';
import { ref } from 'vue';
import { ScrollArea } from '#/components/ui/scroll-area';
import { cn } from '#/lib/utils';
import { cn } from '@vben-core/toolkit';
import { ScrollArea } from '@vben-core/shadcn-ui/components/ui/scroll-area';
interface Props {
class?: HTMLAttributes['class'];

View File

@@ -3,10 +3,13 @@ import type { SegmentedItem } from './interface';
import { computed } from 'vue';
import {
Tabs,
TabsContent,
TabsList,
} from '@vben-core/shadcn-ui/components/ui/tabs';
import { TabsTrigger } from 'radix-vue';
import { Tabs, TabsContent, TabsList } from '#/components/ui/tabs';
import TabsIndicator from './tabs-indicator.vue';
interface Props {

View File

@@ -1,14 +1,14 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
TabsIndicator,
type TabsIndicatorProps,
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & TabsIndicatorProps
>();

View File

@@ -2,9 +2,11 @@
import { computed, useSlots } from 'vue';
import { Cross2Icon } from '@radix-icons/vue';
import { VbenButton, VbenIconButton } from '#/components/button';
import { VbenScrollbar } from '#/components/scrollbar';
import {
VbenButton,
VbenIconButton,
} from '@vben-core/shadcn-ui/components/button';
import { VbenScrollbar } from '@vben-core/shadcn-ui/components/scrollbar';
import {
Sheet,
SheetClose,
@@ -14,7 +16,7 @@ import {
SheetHeader,
SheetTitle,
SheetTrigger,
} from '#/components/ui/sheet';
} from '@vben-core/shadcn-ui/components/ui/sheet';
interface Props {
cancelText?: string;

View File

@@ -1,12 +1,11 @@
<script setup lang="ts">
import { TooltipContentProps } from 'radix-vue';
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from '#/components/ui/tooltip';
} from '@vben-core/shadcn-ui/components/ui/tooltip';
import { TooltipContentProps } from 'radix-vue';
interface Props {
delayDuration?: number;

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { AlertDialogAction, type AlertDialogActionProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { buttonVariants } from '#/components/ui/button';
import { cn } from '#/lib/utils';
import { buttonVariants } from '@vben-core/shadcn-ui/components/ui/button';
import { AlertDialogAction, type AlertDialogActionProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & AlertDialogActionProps

View File

@@ -1,10 +1,10 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { AlertDialogCancel, type AlertDialogCancelProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { buttonVariants } from '#/components/ui/button';
import { cn } from '#/lib/utils';
import { buttonVariants } from '@vben-core/shadcn-ui/components/ui/button';
import { AlertDialogCancel, type AlertDialogCancelProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & AlertDialogCancelProps

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
AlertDialogContent,
type AlertDialogContentEmits,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & AlertDialogContentProps
>();

View File

@@ -1,13 +1,13 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
AlertDialogDescription,
type AlertDialogDescriptionProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & AlertDialogDescriptionProps
>();

View File

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

View File

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

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { AlertDialogTitle, type AlertDialogTitleProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { AlertDialogTitle, type AlertDialogTitleProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & AlertDialogTitleProps

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { AvatarRoot } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { AvatarRoot } from 'radix-vue';
import { type AvatarVariants, avatarVariant } from './avatar';

View File

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

View File

@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { DotsHorizontalIcon } from '@radix-icons/vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { DotsHorizontalIcon } from '@radix-icons/vue';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

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

View File

@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { Primitive, type PrimitiveProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { Primitive, type PrimitiveProps } from 'radix-vue';
const props = withDefaults(
defineProps<{ class?: HTMLAttributes['class'] } & PrimitiveProps>(),

View File

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

View File

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

View File

@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { HTMLAttributes } from 'vue';
import { ChevronRightIcon } from '@radix-icons/vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { ChevronRightIcon } from '@radix-icons/vue';
const props = defineProps<{
class?: HTMLAttributes['class'];

View File

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

View File

@@ -3,6 +3,8 @@ import type { CheckboxRootEmits, CheckboxRootProps } from 'radix-vue';
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { CheckIcon } from '@radix-icons/vue';
import {
CheckboxIndicator,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & CheckboxRootProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { CheckIcon } from '@radix-icons/vue';
import {
ContextMenuCheckboxItem,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & ContextMenuCheckboxItemProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
ContextMenuContent,
type ContextMenuContentEmits,
@@ -9,8 +11,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & ContextMenuContentProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
ContextMenuItem,
type ContextMenuItemEmits,
@@ -8,8 +10,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class']; inset?: boolean } & ContextMenuItemProps
>();

View File

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

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { DotFilledIcon } from '@radix-icons/vue';
import {
ContextMenuItemIndicator,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & ContextMenuRadioItemProps
>();

View File

@@ -1,13 +1,13 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
ContextMenuSeparator,
type ContextMenuSeparatorProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & ContextMenuSeparatorProps
>();

View File

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

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
ContextMenuSubContent,
type DropdownMenuSubContentEmits,
@@ -8,8 +10,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DropdownMenuSubContentProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { ChevronRightIcon } from '@radix-icons/vue';
import {
ContextMenuSubTrigger,
@@ -8,8 +10,6 @@ import {
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{
class?: HTMLAttributes['class'];

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { Cross2Icon } from '@radix-icons/vue';
import {
DialogClose,
@@ -12,8 +14,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DialogContentProps
>();

View File

@@ -1,14 +1,14 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DialogDescription,
type DialogDescriptionProps,
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DialogDescriptionProps
>();

View File

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

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DialogClose,
DialogContent,
@@ -11,8 +13,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DialogContentProps
>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { DialogTitle, type DialogTitleProps, useForwardProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { DialogTitle, type DialogTitleProps, useForwardProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DialogTitleProps

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { CheckIcon } from '@radix-icons/vue';
import {
DropdownMenuCheckboxItem,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DropdownMenuCheckboxItemProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DropdownMenuContent,
type DropdownMenuContentEmits,
@@ -9,8 +11,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = withDefaults(
defineProps<{ class?: HTMLAttributes['class'] } & DropdownMenuContentProps>(),
{

View File

@@ -1,14 +1,14 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DropdownMenuItem,
type DropdownMenuItemProps,
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class']; inset?: boolean } & DropdownMenuItemProps
>();

View File

@@ -1,14 +1,14 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DropdownMenuLabel,
type DropdownMenuLabelProps,
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class']; inset?: boolean } & DropdownMenuLabelProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { DotFilledIcon } from '@radix-icons/vue';
import {
DropdownMenuItemIndicator,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DropdownMenuRadioItemProps
>();

View File

@@ -1,13 +1,13 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DropdownMenuSeparator,
type DropdownMenuSeparatorProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{
class?: HTMLAttributes['class'];

View File

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

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DropdownMenuSubContent,
type DropdownMenuSubContentEmits,
@@ -8,8 +10,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DropdownMenuSubContentProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { ChevronRightIcon } from '@radix-icons/vue';
import {
DropdownMenuSubTrigger,
@@ -8,8 +10,6 @@ import {
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DropdownMenuSubTriggerProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
HoverCardContent,
type HoverCardContentProps,
@@ -8,8 +10,6 @@ import {
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = withDefaults(
defineProps<{ class?: HTMLAttributes['class'] } & HoverCardContentProps>(),
{

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
PinInputRoot,
type PinInputRootEmits,
@@ -8,8 +10,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & PinInputRootProps
>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { Primitive, type PrimitiveProps, useForwardProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { Primitive, type PrimitiveProps, useForwardProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & PrimitiveProps

View File

@@ -1,14 +1,14 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
PinInputInput,
type PinInputInputProps,
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & PinInputInputProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
PopoverContent,
type PopoverContentEmits,
@@ -9,8 +11,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
defineOptions({
inheritAttrs: false,
});

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
ScrollAreaCorner,
ScrollAreaRoot,
@@ -8,8 +10,6 @@ import {
ScrollAreaViewport,
} from 'radix-vue';
import { cn } from '#/lib/utils';
import ScrollBar from './ScrollBar.vue';
const props = withDefaults(

View File

@@ -1,14 +1,14 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
ScrollAreaScrollbar,
type ScrollAreaScrollbarProps,
ScrollAreaThumb,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = withDefaults(
defineProps<{ class?: HTMLAttributes['class'] } & ScrollAreaScrollbarProps>(),
{

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
SelectContent,
type SelectContentEmits,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
import { SelectScrollDownButton, SelectScrollUpButton } from '.';
defineOptions({

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { SelectGroup, type SelectGroupProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { SelectGroup, type SelectGroupProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SelectGroupProps

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { CheckIcon } from '@radix-icons/vue';
import {
SelectItem,
@@ -10,8 +12,6 @@ import {
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SelectItemProps
>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import type { HTMLAttributes } from 'vue';
import { SelectLabel, type SelectLabelProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { SelectLabel, type SelectLabelProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SelectLabelProps

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { ChevronDownIcon } from '@radix-icons/vue';
import {
SelectScrollDownButton,
@@ -8,8 +10,6 @@ import {
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SelectScrollDownButtonProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { ChevronUpIcon } from '@radix-icons/vue';
import {
SelectScrollUpButton,
@@ -8,8 +10,6 @@ import {
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SelectScrollUpButtonProps
>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { SelectSeparator, type SelectSeparatorProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { SelectSeparator, type SelectSeparatorProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SelectSeparatorProps

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import { CaretSortIcon } from '@radix-icons/vue';
import {
SelectIcon,
@@ -9,8 +11,6 @@ import {
useForwardProps,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SelectTriggerProps
>();

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
DialogContent,
type DialogContentEmits,
@@ -10,8 +12,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
import { type SheetVariants, sheetVariants } from './sheet';
interface SheetContentProps extends DialogContentProps {

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { DialogDescription, type DialogDescriptionProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { DialogDescription, type DialogDescriptionProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DialogDescriptionProps

View File

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

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { DialogTitle, type DialogTitleProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { DialogTitle, type DialogTitleProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & DialogTitleProps

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { cn } from '@vben-core/toolkit';
import {
SwitchRoot,
type SwitchRootEmits,
@@ -9,8 +11,6 @@ import {
useForwardPropsEmits,
} from 'radix-vue';
import { cn } from '#/lib/utils';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & SwitchRootProps
>();

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { TabsContent, type TabsContentProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { TabsContent, type TabsContentProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & TabsContentProps

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import { type HTMLAttributes, computed } from 'vue';
import { TabsList, type TabsListProps } from 'radix-vue';
import { cn } from '@vben-core/toolkit';
import { cn } from '#/lib/utils';
import { TabsList, type TabsListProps } from 'radix-vue';
const props = defineProps<
{ class?: HTMLAttributes['class'] } & TabsListProps

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