Skip to content

Commit 9a1965e

Browse files
committed
chore: update components & deps
1 parent ee6c874 commit 9a1965e

16 files changed

+2339
-850
lines changed

app/components/Ui/Accordion/Content.vue

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<AccordionContent
3-
v-bind="reactiveOmit(props, 'content', 'class')"
4-
:class="styles({ class: props.class })"
5-
>
2+
<AccordionContent v-bind="forwarded" :class="styles({ class: props.class })">
63
<div class="pb-4 pt-0">
74
<slot>{{ content }}</slot>
85
</div>
@@ -15,11 +12,15 @@
1512
1613
const props = defineProps<
1714
AccordionContentProps & {
15+
/** Custom class(es) to add to the parent */
1816
class?: any;
17+
/** The content of the accordion */
1918
content?: any;
2019
}
2120
>();
2221
22+
const forwarded = reactiveOmit(props, "class", "content");
23+
2324
const styles = tv({
2425
base: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
2526
});

app/components/Ui/Accordion/Header.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<AccordionHeader v-bind="reactiveOmit(props, 'class')" :class="styles({ class: props.class })">
2+
<AccordionHeader v-bind="forwarded" :class="styles({ class: props.class })">
33
<slot />
44
</AccordionHeader>
55
</template>
@@ -14,6 +14,8 @@
1414
}
1515
>();
1616
17+
const forwarded = reactiveOmit(props, "class");
18+
1719
const styles = tv({
1820
base: "flex",
1921
});

app/components/Ui/Accordion/Item.vue

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<template>
2-
<AccordionItem
3-
v-slot="slotProps"
4-
v-bind="reactiveOmit(props, 'class')"
5-
:class="styles({ class: props.class })"
6-
>
2+
<AccordionItem v-slot="slotProps" v-bind="forwarded" :class="styles({ class: props.class })">
73
<slot v-bind="slotProps" />
84
</AccordionItem>
95
</template>
@@ -14,10 +10,13 @@
1410
1511
const props = defineProps<
1612
AccordionItemProps & {
13+
/** Custom class(es) to add to the parent */
1714
class?: any;
1815
}
1916
>();
2017
18+
const forwarded = reactiveOmit(props, "class");
19+
2120
const styles = tv({
2221
base: "border-b",
2322
});

app/components/Ui/Accordion/Trigger.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<AccordionTrigger
3-
v-bind="reactiveOmit(props, 'class', 'icon', 'title')"
4-
:class="styles({ class: props.class })"
5-
>
2+
<AccordionTrigger v-bind="forwarded" :class="styles({ class: props.class })">
63
<slot :props="props">
74
{{ title }}
85
</slot>
@@ -19,8 +16,11 @@
1916
const props = withDefaults(
2017
defineProps<
2118
AccordionTriggerProps & {
19+
/** Custom class(es) to add to the parent */
2220
class?: any;
21+
/** The title of the accordion trigger */
2322
title?: string;
23+
/** The icon to show next to the title */
2424
icon?: string;
2525
}
2626
>(),
@@ -31,6 +31,8 @@
3131
}
3232
);
3333
34+
const forwarded = reactiveOmit(props, "class", "icon", "title");
35+
3436
const styles = tv({
3537
base: "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background [&[data-state=open]>svg]:rotate-180",
3638
});

app/components/Ui/Avatar/Fallback.vue

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<AvatarFallback
3-
:class="styles({ class: props.class })"
4-
v-bind="reactiveOmit(props, 'class', 'fallback')"
5-
>
2+
<AvatarFallback :class="styles({ class: props.class })" v-bind="forwarded">
63
<slot>
74
{{ fallback }}
85
</slot>
@@ -21,6 +18,7 @@
2118
class?: any;
2219
}
2320
>();
21+
const forwarded = reactiveOmit(props, "class", "fallback");
2422
const styles = tv({
2523
base: "flex h-full w-full items-center justify-center rounded-full bg-muted font-medium",
2624
});

app/components/Ui/Container.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Primitive :class="styles({ class: props.class })" v-bind="reactiveOmit(props, 'class')">
2+
<Primitive :class="styles({ class: props.class })" v-bind="forwarded">
33
<slot />
44
</Primitive>
55
</template>
@@ -19,6 +19,8 @@
1919
}
2020
);
2121
22+
const forwarded = reactiveOmit(props, "class");
23+
2224
const styles = tv({
2325
base: "container mx-auto",
2426
});

app/components/Ui/DropdownMenu/Arrow.vue

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<DropdownMenuArrow
3-
v-bind="reactiveOmit(props, 'class')"
4-
:class="styles({ class: props.class })"
5-
/>
2+
<DropdownMenuArrow v-bind="forwarded" :class="styles({ class: props.class })" />
63
</template>
74

85
<script lang="ts" setup>
@@ -22,7 +19,7 @@
2219
height: 5,
2320
}
2421
);
25-
22+
const forwarded = reactiveOmit(props, "class");
2623
const styles = tv({
2724
base: "rotate-45 border bg-muted",
2825
});

app/components/Ui/DropdownMenu/ItemIndicator.vue

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<DropdownMenuItemIndicator v-bind="reactiveOmit(props, 'icon')">
2+
<DropdownMenuItemIndicator v-bind="forwarded" :class="styles({ class: props.class })">
33
<slot>
44
<Icon v-if="icon" :name="icon" class="h-4 w-4" />
55
</slot>
@@ -12,7 +12,15 @@
1212
1313
const props = defineProps<
1414
DropdownMenuItemIndicatorProps & {
15+
/** The icon to display */
1516
icon?: string;
17+
/** Custom class(es) to add to the parent */
18+
class?: any;
1619
}
1720
>();
21+
const forwarded = reactiveOmit(props, "class", "icon");
22+
23+
const styles = tv({
24+
base: "flex items-center justify-center",
25+
});
1826
</script>

app/components/Ui/DropdownMenu/Label.vue

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<DropdownMenuLabel
3-
:class="styles({ inset, class: props.class })"
4-
v-bind="reactiveOmit(props, 'class', 'inset', 'label')"
5-
>
2+
<DropdownMenuLabel :class="styles({ inset, class: props.class })" v-bind="forwarded">
63
<slot>{{ label }}</slot>
74
</DropdownMenuLabel>
85
</template>
@@ -18,7 +15,7 @@
1815
label?: string;
1916
}
2017
>();
21-
18+
const forwarded = reactiveOmit(props, "class", "inset", "label");
2219
const styles = tv({
2320
base: "inline-block w-full px-2 py-1.5 text-sm font-semibold text-foreground",
2421
variants: {

app/components/Ui/DropdownMenu/Separator.vue

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<DropdownMenuSeparator
3-
:class="styles({ class: props.class })"
4-
v-bind="reactiveOmit(props, 'class')"
5-
/>
2+
<DropdownMenuSeparator :class="styles({ class: props.class })" v-bind="forwarded" />
63
</template>
74

85
<script lang="ts" setup>
@@ -15,7 +12,7 @@
1512
class?: any;
1613
}
1714
>();
18-
15+
const forwarded = reactiveOmit(props, "class");
1916
const styles = tv({
2017
base: "-mx-1 my-1 h-px bg-border",
2118
});

app/components/Ui/DropdownMenu/Shortcut.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Primitive :class="styles({ class: props.class })" v-bind="reactiveOmit(props, 'class')">
2+
<Primitive :class="styles({ class: props.class })" v-bind="forwarded">
33
<slot />
44
</Primitive>
55
</template>
@@ -19,7 +19,7 @@
1919
as: "span",
2020
}
2121
);
22-
22+
const forwarded = reactiveOmit(props, "class");
2323
const styles = tv({
2424
base: "ml-auto text-xs tracking-widest opacity-60",
2525
});

app/components/Ui/DropdownMenu/SubTrigger.vue

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<DropdownMenuSubTrigger
3-
v-bind="reactiveOmit(props, 'class', 'inset', 'icon', 'title', 'trailingIcon')"
4-
:class="styles({ inset, class: props.class })"
5-
>
2+
<DropdownMenuSubTrigger v-bind="forwarded" :class="styles({ inset, class: props.class })">
63
<slot>
74
<Icon v-if="icon" :name="icon" class="h-4 w-4" />
85
<span v-if="title">{{ title }}</span>
@@ -32,7 +29,7 @@
3229
trailingIcon?: string;
3330
}
3431
>();
35-
32+
const forwarded = reactiveOmit(props, "class", "inset", "icon", "title", "trailingIcon");
3633
const styles = tv({
3734
base: "flex cursor-default select-none items-center gap-3 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
3835
variants: {

app/components/Ui/Navbar.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Primitive :class="styles({ sticky, class: props.class })" v-bind="reactiveOmit(props, 'class')">
2+
<Primitive :class="styles({ sticky, class: props.class })" v-bind="forwarded">
33
<slot />
44
</Primitive>
55
</template>
@@ -11,7 +11,9 @@
1111
const props = withDefaults(
1212
defineProps<
1313
PrimitiveProps & {
14+
/** Custom class(es) to add to the parent */
1415
class?: any;
16+
/** Whether the navbar should be sticky */
1517
sticky?: boolean;
1618
}
1719
>(),
@@ -20,6 +22,8 @@
2022
}
2123
);
2224
25+
const forwarded = reactiveOmit(props, "class", "sticky");
26+
2327
const styles = tv({
2428
base: "z-20 border-b bg-background/90 backdrop-blur",
2529
variants: {

nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ export default defineNuxtConfig({
182182
autoLastmod: true,
183183
autoI18n: true,
184184
},
185-
});
185+
});

0 commit comments

Comments
 (0)