Skip to content

Commit 2ad4dce

Browse files
committed
switch to shadcn-vue v4
1 parent 3c59b1e commit 2ad4dce

File tree

118 files changed

+668
-678
lines changed

Some content is hidden

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

118 files changed

+668
-678
lines changed

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://shadcn-vue.com/schema.json",
3-
"style": "default",
3+
"style": "new-york",
44
"tailwind": {
55
"config": "tailwind.config.js",
66
"css": "resources/css/app.css",

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"clsx": "^2.1.1",
3737
"laravel-vite-plugin": "^2.0.0",
3838
"lucide-vue-next": "^0.468.0",
39-
"reka-ui": "^2.4.1",
39+
"reka-ui": "^2.6.0",
4040
"tailwind-merge": "^3.2.0",
4141
"tailwindcss": "^4.1.1",
4242
"tw-animate-css": "^1.2.5",

resources/js/components/TwoFactorSetupModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import AlertError from '@/components/AlertError.vue';
33
import InputError from '@/components/InputError.vue';
44
import { Button } from '@/components/ui/button';
5-
import { Spinner } from '@/components/ui/spinner';
65
import {
76
Dialog,
87
DialogContent,
@@ -15,6 +14,7 @@ import {
1514
PinInputGroup,
1615
PinInputSlot,
1716
} from '@/components/ui/pin-input';
17+
import { Spinner } from '@/components/ui/spinner';
1818
import { useTwoFactorAuth } from '@/composables/useTwoFactorAuth';
1919
import { confirm } from '@/routes/two-factor';
2020
import { Form } from '@inertiajs/vue3';

resources/js/components/ui/avatar/Avatar.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script setup lang="ts">
2-
import type { HTMLAttributes } from 'vue'
3-
import { cn } from '@/lib/utils'
4-
import { AvatarRoot } from 'reka-ui'
2+
import type { HTMLAttributes } from "vue"
3+
import { AvatarRoot } from "reka-ui"
4+
import { cn } from "@/lib/utils"
55
66
const props = defineProps<{
7-
class?: HTMLAttributes['class']
7+
class?: HTMLAttributes["class"]
88
}>()
99
</script>
1010

resources/js/components/ui/avatar/AvatarFallback.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<script setup lang="ts">
2-
import { cn } from '@/lib/utils'
3-
import { AvatarFallback, type AvatarFallbackProps } from 'reka-ui'
4-
import { computed, type HTMLAttributes } from 'vue'
2+
import type { AvatarFallbackProps } from "reka-ui"
3+
import type { HTMLAttributes } from "vue"
4+
import { reactiveOmit } from "@vueuse/core"
5+
import { AvatarFallback } from "reka-ui"
6+
import { cn } from "@/lib/utils"
57
6-
const props = defineProps<AvatarFallbackProps & { class?: HTMLAttributes['class'] }>()
8+
const props = defineProps<AvatarFallbackProps & { class?: HTMLAttributes["class"] }>()
79
8-
const delegatedProps = computed(() => {
9-
const { class: _, ...delegated } = props
10-
11-
return delegated
12-
})
10+
const delegatedProps = reactiveOmit(props, "class")
1311
</script>
1412

1513
<template>

resources/js/components/ui/avatar/AvatarImage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import type { AvatarImageProps } from 'reka-ui'
3-
import { AvatarImage } from 'reka-ui'
2+
import type { AvatarImageProps } from "reka-ui"
3+
import { AvatarImage } from "reka-ui"
44
55
const props = defineProps<AvatarImageProps>()
66
</script>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { default as Avatar } from './Avatar.vue'
2-
export { default as AvatarFallback } from './AvatarFallback.vue'
3-
export { default as AvatarImage } from './AvatarImage.vue'
1+
export { default as Avatar } from "./Avatar.vue"
2+
export { default as AvatarFallback } from "./AvatarFallback.vue"
3+
export { default as AvatarImage } from "./AvatarImage.vue"

resources/js/components/ui/badge/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { cva } from "class-variance-authority"
44
export { default as Badge } from "./Badge.vue"
55

66
export const badgeVariants = cva(
7-
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
7+
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
88
{
99
variants: {
1010
variant: {

resources/js/components/ui/breadcrumb/Breadcrumb.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script lang="ts" setup>
2-
import type { HTMLAttributes } from 'vue'
2+
import type { HTMLAttributes } from "vue"
33
44
const props = defineProps<{
5-
class?: HTMLAttributes['class']
5+
class?: HTMLAttributes["class"]
66
}>()
77
</script>
88

0 commit comments

Comments
 (0)