Skip to content

Commit dde7912

Browse files
committed
Update shadcn-vue components to 2.2.0
1 parent eece325 commit dde7912

Some content is hidden

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

58 files changed

+139
-160
lines changed

app/frontend/components/ui/avatar/AvatarFallback.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { reactiveOmit } from "@vueuse/core"
3-
import { AvatarFallback, type AvatarFallbackProps } from "reka-ui"
3+
import type { AvatarFallbackProps } from "reka-ui"
4+
import { AvatarFallback } from "reka-ui"
45
import type { HTMLAttributes } from "vue"
56
67
import { cn } from "@/lib/utils"

app/frontend/components/ui/breadcrumb/BreadcrumbLink.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts" setup>
2-
import { Primitive, type PrimitiveProps } from "reka-ui"
2+
import type { PrimitiveProps } from "reka-ui"
3+
import { Primitive } from "reka-ui"
34
import type { HTMLAttributes } from "vue"
45
56
import { cn } from "@/lib/utils"

app/frontend/components/ui/button/Button.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<script setup lang="ts">
2-
import { Primitive, type PrimitiveProps } from "reka-ui"
2+
import type { PrimitiveProps } from "reka-ui"
3+
import { Primitive } from "reka-ui"
34
import type { HTMLAttributes } from "vue"
45
56
import { cn } from "@/lib/utils"
67
7-
import { type ButtonVariants, buttonVariants } from "."
8+
import type { ButtonVariants } from "."
9+
import { buttonVariants } from "."
810
911
interface Props extends PrimitiveProps {
1012
variant?: ButtonVariants["variant"]

app/frontend/components/ui/button/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { type VariantProps, cva } from "class-variance-authority"
1+
import type { VariantProps } from "class-variance-authority"
2+
import { cva } from "class-variance-authority"
23

34
export { default as Button } from "./Button.vue"
45

app/frontend/components/ui/collapsible/CollapsibleContent.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
2-
import { CollapsibleContent, type CollapsibleContentProps } from "reka-ui"
2+
import type { CollapsibleContentProps } from "reka-ui"
3+
import { CollapsibleContent } from "reka-ui"
34
45
const props = defineProps<CollapsibleContentProps>()
56
</script>

app/frontend/components/ui/collapsible/CollapsibleTrigger.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
2-
import { CollapsibleTrigger, type CollapsibleTriggerProps } from "reka-ui"
2+
import type { CollapsibleTriggerProps } from "reka-ui"
3+
import { CollapsibleTrigger } from "reka-ui"
34
45
const props = defineProps<CollapsibleTriggerProps>()
56
</script>

app/frontend/components/ui/dialog/Dialog.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<script setup lang="ts">
2-
import {
3-
DialogRoot,
4-
type DialogRootEmits,
5-
type DialogRootProps,
6-
useForwardPropsEmits,
7-
} from "reka-ui"
2+
import type { DialogRootEmits, DialogRootProps } from "reka-ui"
3+
import { DialogRoot, useForwardPropsEmits } from "reka-ui"
84
95
const props = defineProps<DialogRootProps>()
106
const emits = defineEmits<DialogRootEmits>()

app/frontend/components/ui/dialog/DialogClose.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
2-
import { DialogClose, type DialogCloseProps } from "reka-ui"
2+
import type { DialogCloseProps } from "reka-ui"
3+
import { DialogClose } from "reka-ui"
34
45
const props = defineProps<DialogCloseProps>()
56
</script>

app/frontend/components/ui/dialog/DialogContent.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<script setup lang="ts">
22
import { reactiveOmit } from "@vueuse/core"
33
import { X } from "lucide-vue-next"
4+
import type { DialogContentEmits, DialogContentProps } from "reka-ui"
45
import {
56
DialogClose,
67
DialogContent,
7-
type DialogContentEmits,
8-
type DialogContentProps,
98
DialogPortal,
109
useForwardPropsEmits,
1110
} from "reka-ui"

app/frontend/components/ui/dialog/DialogDescription.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<script setup lang="ts">
22
import { reactiveOmit } from "@vueuse/core"
3-
import {
4-
DialogDescription,
5-
type DialogDescriptionProps,
6-
useForwardProps,
7-
} from "reka-ui"
3+
import type { DialogDescriptionProps } from "reka-ui"
4+
import { DialogDescription, useForwardProps } from "reka-ui"
85
import type { HTMLAttributes } from "vue"
96
107
import { cn } from "@/lib/utils"

0 commit comments

Comments
 (0)