fix: change space-x-* with gap and add flex
This commit is contained in:
parent
2b6dfd1fbb
commit
71fea4ff3a
|
|
@ -67,7 +67,7 @@ const selectedUsers = ref<User[]>([])
|
||||||
<template>
|
<template>
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader class="flex flex-row items-center justify-between">
|
<CardHeader class="flex flex-row items-center justify-between">
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center gap-4">
|
||||||
<Avatar>
|
<Avatar>
|
||||||
<AvatarImage src="/avatars/01.png" alt="Image" />
|
<AvatarImage src="/avatars/01.png" alt="Image" />
|
||||||
<AvatarFallback>OM</AvatarFallback>
|
<AvatarFallback>OM</AvatarFallback>
|
||||||
|
|
@ -114,7 +114,7 @@ const selectedUsers = ref<User[]>([])
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardFooter>
|
<CardFooter>
|
||||||
<form
|
<form
|
||||||
class="flex w-full items-center space-x-2"
|
class="flex w-full items-center gap-2"
|
||||||
@submit.prevent="() => {
|
@submit.prevent="() => {
|
||||||
if (inputLength === 0) return
|
if (inputLength === 0) return
|
||||||
messages.push({
|
messages.push({
|
||||||
|
|
@ -182,7 +182,7 @@ const selectedUsers = ref<User[]>([])
|
||||||
</CommandList>
|
</CommandList>
|
||||||
</Command>
|
</Command>
|
||||||
<DialogFooter class="flex items-center border-t p-4 sm:justify-between">
|
<DialogFooter class="flex items-center border-t p-4 sm:justify-between">
|
||||||
<div v-if="selectedUsers.length > 0" class="flex -space-x-2 overflow-hidden">
|
<div v-if="selectedUsers.length > 0" class="flex -flex gap-2 overflow-hidden">
|
||||||
<Avatar
|
<Avatar
|
||||||
v-for="user in selectedUsers"
|
v-for="user in selectedUsers"
|
||||||
:key="user.email"
|
:key="user.email"
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ const notifications = [
|
||||||
<CardDescription>You have 3 unread messages.</CardDescription>
|
<CardDescription>You have 3 unread messages.</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent class="grid gap-4">
|
<CardContent class="grid gap-4">
|
||||||
<div class=" flex items-center space-x-4 rounded-md border p-4">
|
<div class=" flex items-center gap-4 rounded-md border p-4">
|
||||||
<BellRing />
|
<BellRing />
|
||||||
<div class="flex-1 space-y-1">
|
<div class="flex-1 space-y-1">
|
||||||
<p class="text-sm font-medium leading-none">
|
<p class="text-sm font-medium leading-none">
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ const data = [
|
||||||
<CardDescription>Set your daily activity goal.</CardDescription>
|
<CardDescription>Set your daily activity goal.</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent class="pb-2">
|
<CardContent class="pb-2">
|
||||||
<div class="flex items-center justify-center space-x-2">
|
<div class="flex items-center justify-center gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="icon"
|
size="icon"
|
||||||
|
|
|
||||||
|
|
@ -231,12 +231,12 @@ const table = useVueTable({
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end space-x-2 py-4">
|
<div class="flex items-center justify-end gap-2 py-4">
|
||||||
<div class="flex-1 text-sm text-muted-foreground">
|
<div class="flex-1 text-sm text-muted-foreground">
|
||||||
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
||||||
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
||||||
</div>
|
</div>
|
||||||
<div class="space-x-2">
|
<div class="flex gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Checkbox } from '@/lib/registry/default/ui/checkbox'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<Checkbox id="terms" />
|
<Checkbox id="terms" />
|
||||||
<label
|
<label
|
||||||
for="terms"
|
for="terms"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Checkbox } from '@/lib/registry/default/ui/checkbox'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="items-top flex space-x-2">
|
<div class="items-top flex gap-2">
|
||||||
<Checkbox id="terms1" disabled />
|
<Checkbox id="terms1" disabled />
|
||||||
<label
|
<label
|
||||||
for="terms2"
|
for="terms2"
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ const onSubmit = handleSubmit((values) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<FormField v-for="item in items" v-slot="{ value, handleChange }" :key="item.id" type="checkbox" :value="item.id" :unchecked-value="false" name="items">
|
<FormField v-for="item in items" v-slot="{ value, handleChange }" :key="item.id" type="checkbox" :value="item.id" :unchecked-value="false" name="items">
|
||||||
<FormItem class="flex flex-row items-start space-x-3 space-y-0">
|
<FormItem class="flex flex-row items-start gap-3 space-y-0">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
:checked="value.includes(item.id)"
|
:checked="value.includes(item.id)"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const isOpen = ref(false)
|
||||||
v-model:open="isOpen"
|
v-model:open="isOpen"
|
||||||
class="w-[350px] space-y-2"
|
class="w-[350px] space-y-2"
|
||||||
>
|
>
|
||||||
<div class="flex items-center justify-between space-x-4 px-4">
|
<div class="flex items-center justify-between gap-4 px-4">
|
||||||
<h4 class="text-sm font-semibold">
|
<h4 class="text-sm font-semibold">
|
||||||
@peduarte starred 3 repositories
|
@peduarte starred 3 repositories
|
||||||
</h4>
|
</h4>
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ const selectedStatus = ref<Status>()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center gap-4">
|
||||||
<p class="text-sm text-muted-foreground">
|
<p class="text-sm text-muted-foreground">
|
||||||
Status
|
Status
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -242,12 +242,12 @@ const table = useVueTable({
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end space-x-2 py-4">
|
<div class="flex items-center justify-end gap-2 py-4">
|
||||||
<div class="flex-1 text-sm text-muted-foreground">
|
<div class="flex-1 text-sm text-muted-foreground">
|
||||||
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
||||||
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
||||||
</div>
|
</div>
|
||||||
<div class="space-x-2">
|
<div class="flex gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
||||||
|
|
@ -224,12 +224,12 @@ const table = useVueTable({
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end space-x-2 py-4">
|
<div class="flex items-center justify-end gap-2 py-4">
|
||||||
<div class="flex-1 text-sm text-muted-foreground">
|
<div class="flex-1 text-sm text-muted-foreground">
|
||||||
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
||||||
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
||||||
</div>
|
</div>
|
||||||
<div class="space-x-2">
|
<div class="flex gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import { Label } from '@/lib/registry/default/ui/label'
|
||||||
Anyone who has this link will be able to view this.
|
Anyone who has this link will be able to view this.
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<div class="grid flex-1 gap-2">
|
<div class="grid flex-1 gap-2">
|
||||||
<Label for="link" class="sr-only">
|
<Label for="link" class="sr-only">
|
||||||
Link
|
Link
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ const data = [
|
||||||
<DrawerDescription>Set your daily activity goal.</DrawerDescription>
|
<DrawerDescription>Set your daily activity goal.</DrawerDescription>
|
||||||
</DrawerHeader>
|
</DrawerHeader>
|
||||||
<div class="p-4 pb-0">
|
<div class="p-4 pb-0">
|
||||||
<div class="flex items-center justify-center space-x-2">
|
<div class="flex items-center justify-center gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="icon"
|
size="icon"
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import {
|
||||||
</Button>
|
</Button>
|
||||||
</HoverCardTrigger>
|
</HoverCardTrigger>
|
||||||
<HoverCardContent class="w-80">
|
<HoverCardContent class="w-80">
|
||||||
<div class="flex justify-between space-x-4">
|
<div class="flex justify-between gap-4">
|
||||||
<Avatar>
|
<Avatar>
|
||||||
<AvatarImage src="https://github.com/vuejs.png" />
|
<AvatarImage src="https://github.com/vuejs.png" />
|
||||||
<AvatarFallback>VC</AvatarFallback>
|
<AvatarFallback>VC</AvatarFallback>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { Label } from '@/lib/registry/default/ui/label'
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<Checkbox id="terms" />
|
<Checkbox id="terms" />
|
||||||
<Label for="terms">Accept terms and conditions</Label>
|
<Label for="terms">Accept terms and conditions</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,15 @@ import { RadioGroup, RadioGroupItem } from '@/lib/registry/default/ui/radio-grou
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<RadioGroup default-value="comfortable">
|
<RadioGroup default-value="comfortable">
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<RadioGroupItem id="r1" value="default" />
|
<RadioGroupItem id="r1" value="default" />
|
||||||
<Label for="r1">Default</Label>
|
<Label for="r1">Default</Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<RadioGroupItem id="r2" value="comfortable" />
|
<RadioGroupItem id="r2" value="comfortable" />
|
||||||
<Label for="r2">Comfortable</Label>
|
<Label for="r2">Comfortable</Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<RadioGroupItem id="r3" value="compact" />
|
<RadioGroupItem id="r3" value="compact" />
|
||||||
<Label for="r3">Compact</Label>
|
<Label for="r3">Compact</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ const works: Artwork[] = [
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ScrollArea class="border rounded-md w-96 whitespace-nowrap">
|
<ScrollArea class="border rounded-md w-96 whitespace-nowrap">
|
||||||
<div class="flex p-4 space-x-4 w-max">
|
<div class="flex p-4 gap-4 w-max">
|
||||||
<div v-for="artwork in works" :key="artwork.id">
|
<div v-for="artwork in works" :key="artwork.id">
|
||||||
<figure class="shrink-0">
|
<figure class="shrink-0">
|
||||||
<div class="overflow-hidden rounded-md">
|
<div class="overflow-hidden rounded-md">
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import { Separator } from '@/lib/registry/default/ui/separator'
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Separator class="my-4" />
|
<Separator class="my-4" />
|
||||||
<div class="flex h-5 items-center space-x-4 text-sm">
|
<div class="flex h-5 items-center gap-4 text-sm">
|
||||||
<div>Blog</div>
|
<div>Blog</div>
|
||||||
<Separator orientation="vertical" />
|
<Separator orientation="vertical" />
|
||||||
<div>Docs</div>
|
<div>Docs</div>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Skeleton } from '@/lib/registry/default/ui/skeleton'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center gap-4">
|
||||||
<Skeleton class="h-12 w-12 rounded-full" />
|
<Skeleton class="h-12 w-12 rounded-full" />
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<Skeleton class="h-4 w-[250px]" />
|
<Skeleton class="h-4 w-[250px]" />
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { Switch } from '@/lib/registry/default/ui/switch'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<Switch id="airplane-mode" />
|
<Switch id="airplane-mode" />
|
||||||
<Label for="airplane-mode">Airplane Mode</Label>
|
<Label for="airplane-mode">Airplane Mode</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ export { toast, useToast } from './use-toast'
|
||||||
import { type VariantProps, cva } from 'class-variance-authority'
|
import { type VariantProps, cva } from 'class-variance-authority'
|
||||||
|
|
||||||
export const toastVariants = cva(
|
export const toastVariants = cva(
|
||||||
'group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pe-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[--radix-toast-swipe-end-x] data-[swipe=move]:translate-x-[--radix-toast-swipe-move-x] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
|
'group pointer-events-auto relative flex w-full items-center justify-between gap-4 overflow-hidden rounded-md border p-6 pe-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[--radix-toast-swipe-end-x] data-[swipe=move]:translate-x-[--radix-toast-swipe-move-x] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ const selectedUsers = ref<User[]>([])
|
||||||
<template>
|
<template>
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader class="flex flex-row items-center justify-between">
|
<CardHeader class="flex flex-row items-center justify-between">
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center gap-4">
|
||||||
<Avatar>
|
<Avatar>
|
||||||
<AvatarImage src="/avatars/01.png" alt="Image" />
|
<AvatarImage src="/avatars/01.png" alt="Image" />
|
||||||
<AvatarFallback>OM</AvatarFallback>
|
<AvatarFallback>OM</AvatarFallback>
|
||||||
|
|
@ -114,7 +114,7 @@ const selectedUsers = ref<User[]>([])
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardFooter>
|
<CardFooter>
|
||||||
<form
|
<form
|
||||||
class="flex w-full items-center space-x-2"
|
class="flex w-full items-center gap-2"
|
||||||
@submit.prevent="() => {
|
@submit.prevent="() => {
|
||||||
if (inputLength === 0) return
|
if (inputLength === 0) return
|
||||||
messages.push({
|
messages.push({
|
||||||
|
|
@ -182,7 +182,7 @@ const selectedUsers = ref<User[]>([])
|
||||||
</CommandList>
|
</CommandList>
|
||||||
</Command>
|
</Command>
|
||||||
<DialogFooter class="flex items-center border-t p-4 sm:justify-between">
|
<DialogFooter class="flex items-center border-t p-4 sm:justify-between">
|
||||||
<div v-if="selectedUsers.length > 0" class="flex -space-x-2 overflow-hidden">
|
<div v-if="selectedUsers.length > 0" class="flex -flex gap-2 overflow-hidden">
|
||||||
<Avatar
|
<Avatar
|
||||||
v-for="user in selectedUsers"
|
v-for="user in selectedUsers"
|
||||||
:key="user.email"
|
:key="user.email"
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ const notifications = [
|
||||||
<CardDescription>You have 3 unread messages.</CardDescription>
|
<CardDescription>You have 3 unread messages.</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent class="grid gap-4">
|
<CardContent class="grid gap-4">
|
||||||
<div class=" flex items-center space-x-4 rounded-md border p-4">
|
<div class=" flex items-center gap-4 rounded-md border p-4">
|
||||||
<BellIcon />
|
<BellIcon />
|
||||||
<div class="flex-1 space-y-1">
|
<div class="flex-1 space-y-1">
|
||||||
<p class="text-sm font-medium leading-none">
|
<p class="text-sm font-medium leading-none">
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ const data = [
|
||||||
<CardDescription>Set your daily activity goal.</CardDescription>
|
<CardDescription>Set your daily activity goal.</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent class="pb-2">
|
<CardContent class="pb-2">
|
||||||
<div class="flex items-center justify-center space-x-2">
|
<div class="flex items-center justify-center gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="icon"
|
size="icon"
|
||||||
|
|
|
||||||
|
|
@ -231,12 +231,12 @@ const table = useVueTable({
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end space-x-2 py-4">
|
<div class="flex items-center justify-end gap-2 py-4">
|
||||||
<div class="flex-1 text-sm text-muted-foreground">
|
<div class="flex-1 text-sm text-muted-foreground">
|
||||||
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
||||||
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
||||||
</div>
|
</div>
|
||||||
<div class="space-x-2">
|
<div class="flex gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Checkbox } from '@/lib/registry/new-york/ui/checkbox'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<Checkbox id="terms" />
|
<Checkbox id="terms" />
|
||||||
<label
|
<label
|
||||||
for="terms"
|
for="terms"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Checkbox } from '@/lib/registry/new-york/ui/checkbox'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="items-top flex space-x-2">
|
<div class="items-top flex gap-2">
|
||||||
<Checkbox id="terms1" disabled />
|
<Checkbox id="terms1" disabled />
|
||||||
<label
|
<label
|
||||||
for="terms2"
|
for="terms2"
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ const onSubmit = handleSubmit((values) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<FormField v-for="item in items" v-slot="{ value, handleChange }" :key="item.id" type="checkbox" :value="item.id" :unchecked-value="false" name="items">
|
<FormField v-for="item in items" v-slot="{ value, handleChange }" :key="item.id" type="checkbox" :value="item.id" :unchecked-value="false" name="items">
|
||||||
<FormItem class="flex flex-row items-start space-x-3 space-y-0">
|
<FormItem class="flex flex-row items-start gap-3 space-y-0">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
:checked="value.includes(item.id)"
|
:checked="value.includes(item.id)"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const isOpen = ref(false)
|
||||||
v-model:open="isOpen"
|
v-model:open="isOpen"
|
||||||
class="w-[350px] space-y-2"
|
class="w-[350px] space-y-2"
|
||||||
>
|
>
|
||||||
<div class="flex items-center justify-between space-x-4 px-4">
|
<div class="flex items-center justify-between gap-4 px-4">
|
||||||
<h4 class="text-sm font-semibold">
|
<h4 class="text-sm font-semibold">
|
||||||
@peduarte starred 3 repositories
|
@peduarte starred 3 repositories
|
||||||
</h4>
|
</h4>
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ const selectedStatus = ref<Status>()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center gap-4">
|
||||||
<p class="text-sm text-muted-foreground">
|
<p class="text-sm text-muted-foreground">
|
||||||
Status
|
Status
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -242,12 +242,12 @@ const table = useVueTable({
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end space-x-2 py-4">
|
<div class="flex items-center justify-end gap-2 py-4">
|
||||||
<div class="flex-1 text-sm text-muted-foreground">
|
<div class="flex-1 text-sm text-muted-foreground">
|
||||||
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
||||||
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
||||||
</div>
|
</div>
|
||||||
<div class="space-x-2">
|
<div class="flex gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
||||||
|
|
@ -224,12 +224,12 @@ const table = useVueTable({
|
||||||
</Table>
|
</Table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center justify-end space-x-2 py-4">
|
<div class="flex items-center justify-end gap-2 py-4">
|
||||||
<div class="flex-1 text-sm text-muted-foreground">
|
<div class="flex-1 text-sm text-muted-foreground">
|
||||||
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
{{ table.getFilteredSelectedRowModel().rows.length }} of
|
||||||
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
{{ table.getFilteredRowModel().rows.length }} row(s) selected.
|
||||||
</div>
|
</div>
|
||||||
<div class="space-x-2">
|
<div class="flex gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import { Label } from '@/lib/registry/new-york/ui/label'
|
||||||
Anyone who has this link will be able to view this.
|
Anyone who has this link will be able to view this.
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<div class="grid flex-1 gap-2">
|
<div class="grid flex-1 gap-2">
|
||||||
<Label for="link" class="sr-only">
|
<Label for="link" class="sr-only">
|
||||||
Link
|
Link
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ const data = [
|
||||||
<DrawerDescription>Set your daily activity goal.</DrawerDescription>
|
<DrawerDescription>Set your daily activity goal.</DrawerDescription>
|
||||||
</DrawerHeader>
|
</DrawerHeader>
|
||||||
<div class="p-4 pb-0">
|
<div class="p-4 pb-0">
|
||||||
<div class="flex items-center justify-center space-x-2">
|
<div class="flex items-center justify-center gap-2">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="icon"
|
size="icon"
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import {
|
||||||
</Button>
|
</Button>
|
||||||
</HoverCardTrigger>
|
</HoverCardTrigger>
|
||||||
<HoverCardContent class="w-80">
|
<HoverCardContent class="w-80">
|
||||||
<div class="flex justify-between space-x-4">
|
<div class="flex justify-between gap-4">
|
||||||
<Avatar>
|
<Avatar>
|
||||||
<AvatarImage src="https://github.com/vuejs.png" />
|
<AvatarImage src="https://github.com/vuejs.png" />
|
||||||
<AvatarFallback>VC</AvatarFallback>
|
<AvatarFallback>VC</AvatarFallback>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { Label } from '@/lib/registry/new-york/ui/label'
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<Checkbox id="terms" />
|
<Checkbox id="terms" />
|
||||||
<Label for="terms">Accept terms and conditions</Label>
|
<Label for="terms">Accept terms and conditions</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,15 @@ import { RadioGroup, RadioGroupItem } from '@/lib/registry/new-york/ui/radio-gro
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<RadioGroup default-value="comfortable" :orientation="'vertical'">
|
<RadioGroup default-value="comfortable" :orientation="'vertical'">
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<RadioGroupItem id="r1" value="default" />
|
<RadioGroupItem id="r1" value="default" />
|
||||||
<Label for="r1">Default</Label>
|
<Label for="r1">Default</Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<RadioGroupItem id="r2" value="comfortable" />
|
<RadioGroupItem id="r2" value="comfortable" />
|
||||||
<Label for="r2">Comfortable</Label>
|
<Label for="r2">Comfortable</Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<RadioGroupItem id="r3" value="compact" />
|
<RadioGroupItem id="r3" value="compact" />
|
||||||
<Label for="r3">Compact</Label>
|
<Label for="r3">Compact</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ const works: Artwork[] = [
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ScrollArea class="border rounded-md w-96 whitespace-nowrap">
|
<ScrollArea class="border rounded-md w-96 whitespace-nowrap">
|
||||||
<div class="flex p-4 space-x-4 w-max">
|
<div class="flex p-4 gap-4 w-max">
|
||||||
<div v-for="artwork in works" :key="artwork.id">
|
<div v-for="artwork in works" :key="artwork.id">
|
||||||
<figure class="shrink-0">
|
<figure class="shrink-0">
|
||||||
<div class="overflow-hidden rounded-md">
|
<div class="overflow-hidden rounded-md">
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import { Separator } from '@/lib/registry/new-york/ui/separator'
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Separator class="my-4" />
|
<Separator class="my-4" />
|
||||||
<div class="flex h-5 items-center space-x-4 text-sm">
|
<div class="flex h-5 items-center gap-4 text-sm">
|
||||||
<div>Blog</div>
|
<div>Blog</div>
|
||||||
<Separator orientation="vertical" />
|
<Separator orientation="vertical" />
|
||||||
<div>Docs</div>
|
<div>Docs</div>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { Skeleton } from '@/lib/registry/new-york/ui/skeleton'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-4">
|
<div class="flex items-center gap-4">
|
||||||
<Skeleton class="h-12 w-12 rounded-full" />
|
<Skeleton class="h-12 w-12 rounded-full" />
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<Skeleton class="h-4 w-[250px]" />
|
<Skeleton class="h-4 w-[250px]" />
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { Switch } from '@/lib/registry/new-york/ui/switch'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center space-x-2">
|
<div class="flex items-center gap-2">
|
||||||
<Switch id="airplane-mode" />
|
<Switch id="airplane-mode" />
|
||||||
<Label for="airplane-mode">Airplane Mode</Label>
|
<Label for="airplane-mode">Airplane Mode</Label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
||||||
v-bind="forwarded"
|
v-bind="forwarded"
|
||||||
:class="
|
:class="
|
||||||
cn(
|
cn(
|
||||||
'flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm',
|
'flex h-9 items-center gap-1 rounded-md border bg-background p-1 shadow-sm',
|
||||||
props.class,
|
props.class,
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ export { toast, useToast } from './use-toast'
|
||||||
import { type VariantProps, cva } from 'class-variance-authority'
|
import { type VariantProps, cva } from 'class-variance-authority'
|
||||||
|
|
||||||
export const toastVariants = cva(
|
export const toastVariants = cva(
|
||||||
'group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pe-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
|
'group pointer-events-auto relative flex w-full items-center justify-between gap-2 overflow-hidden rounded-md border p-4 pe-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user