Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Redesign event page with iOS-style grouped sections (#2405)
Luke Vella599526320c9f
diff --git a/apps/landing/src/components/home/hero.tsx b/apps/landing/src/components/home/hero.tsxindex 62a16e299..834aaed69 100644--- a/apps/landing/src/components/home/hero.tsx+++ b/apps/landing/src/components/home/hero.tsx@@ -116,8 +116,7 @@ export const MarketingHero = ({className={buttonVariants({size: "xl",variant: "primary",- className:- "transition-all hover:shadow-md active:translate-y-1 active:shadow-none",+ className: "shadow-md transition-all active:shadow-none",})}>{callToAction}diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.jsonindex 4c41f2565..46678f088 100644--- a/apps/web/public/locales/en/app.json+++ b/apps/web/public/locales/en/app.json@@ -667,8 +667,15 @@"signupSheetsEmptyDescription": "Create a sign-up sheet so people can book the time slots you offer.","newSignupSheet": "New Sign-up Sheet","eventTypesDescription": "Reusable event configurations.",- "eventHostedBy": "Hosted by {name}","eventStatusCanceled": "Canceled","eventStatusPast": "Past",- "eventStatusUpcoming": "Upcoming"+ "eventStatusUpcoming": "Upcoming",+ "attendeeStatusGoing": "Going",+ "attendeeStatusMaybe": "Maybe",+ "attendeeStatusDeclined": "Declined",+ "attendeeStatusPending": "Pending",+ "conferencing": "Conferencing",+ "attendees": "Attendees",+ "invited": "Invited",+ "eventOrganizedBy": "Organized by {name}"}diff --git a/apps/web/src/app/[locale]/e/[id]/attendee-rows.tsx b/apps/web/src/app/[locale]/e/[id]/attendee-rows.tsxnew file mode 100644index 000000000..c7dfdba05--- /dev/null+++ b/apps/web/src/app/[locale]/e/[id]/attendee-rows.tsx@@ -0,0 +1,51 @@+"use client";++import { OptimizedAvatarImage } from "@/components/optimized-avatar-image";+import { Trans } from "@/i18n/client";+import { SectionItem, SectionItemValue } from "./section";++type AttendeeStatus = "accepted" | "tentative" | "declined" | "pending";++export type Attendee = {+ id: string;+ name: string;+ image?: string;+ status: AttendeeStatus;+};++function StatusLabel({ status }: { status: AttendeeStatus }) {+ switch (status) {+ case "accepted":+ return <Trans i18nKey="attendeeStatusGoing" defaults="Going" />;+ case "tentative":+ return <Trans i18nKey="attendeeStatusMaybe" defaults="Maybe" />;+ case "declined":+ return <Trans i18nKey="attendeeStatusDeclined" defaults="Declined" />;+ case "pending":+ return <Trans i18nKey="attendeeStatusPending" defaults="Pending" />;+ }+}++const STATUS_ORDER: AttendeeStatus[] = ["accepted", "tentative", "declined"];++export function AttendeeRows({ attendees }: { attendees: Attendee[] }) {+ const sorted = [...attendees]+ .filter((a) => a.status !== "pending")+ .sort(+ (a, b) => STATUS_ORDER.indexOf(a.status) - STATUS_ORDER.indexOf(b.status),+ );++ return (+ <>+ {sorted.map((a) => (+ <SectionItem key={a.id}>+ <OptimizedAvatarImage size="md" name={a.name} src={a.image} />+ <p className="min-w-0 truncate text-foreground text-sm">{a.name}</p>+ <SectionItemValue>+ <StatusLabel status={a.status} />+ </SectionItemValue>+ </SectionItem>+ ))}+ </>+ );+}diff --git a/apps/web/src/app/[locale]/e/[id]/event-date-time.tsx b/apps/web/src/app/[locale]/e/[id]/event-date-time.tsxdeleted file mode 100644index 0323d5f5f..000000000--- a/apps/web/src/app/[locale]/e/[id]/event-date-time.tsx+++ /dev/null@@ -1,36 +0,0 @@-"use client";--import { CalendarIcon, ClockIcon } from "lucide-react";-import { EventMetaItem } from "@/components/event-meta";-import { dayjs } from "@/lib/dayjs";--export function EventDateTime({- start,- end,- allDay,- timezone,-}: {- start: Date;- end: Date;- allDay: boolean;- timezone: string | null;-}) {- const startD = timezone ? dayjs(start).tz(timezone) : dayjs(start);- const endD = timezone ? dayjs(end).tz(timezone) : dayjs(end);- const date = startD.format("dddd, LL");-- return (- <>- <EventMetaItem>- <CalendarIcon />- {date}- </EventMetaItem>- {allDay ? null : (- <EventMetaItem>- <ClockIcon />- <span>{`${startD.format("LT")} - ${endD.format("LT z")}`}</span>- </EventMetaItem>- )}- </>- );-}diff --git a/apps/web/src/app/[locale]/e/[id]/event-header.tsx b/apps/web/src/app/[locale]/e/[id]/event-header.tsxnew file mode 100644index 000000000..09e8cc867--- /dev/null+++ b/apps/web/src/app/[locale]/e/[id]/event-header.tsx@@ -0,0 +1,32 @@+"use client";++import { dayjs } from "@/lib/dayjs";++export function EventDateLine({+ start,+ end,+ allDay,+ timezone,+}: {+ start: Date;+ end: Date;+ allDay: boolean;+ timezone: string | null;+}) {+ const startD = timezone ? dayjs(start).tz(timezone) : dayjs(start);+ const endD = timezone ? dayjs(end).tz(timezone) : dayjs(end);++ const date = startD.format("dddd, LL");+ const time = allDay+ ? null+ : `${startD.format("LT")} – ${endD.format("LT z")}`;++ return (+ <div className="mt-3">+ <p className="font-medium text-base text-foreground">{date}</p>+ {time ? (+ <p className="mt-0.5 text-base text-muted-foreground">{time}</p>+ ) : null}+ </div>+ );+}diff --git a/apps/web/src/app/[locale]/e/[id]/page.tsx b/apps/web/src/app/[locale]/e/[id]/page.tsxindex c0bcfd86d..04650f0e7 100644--- a/apps/web/src/app/[locale]/e/[id]/page.tsx+++ b/apps/web/src/app/[locale]/e/[id]/page.tsx@@ -1,23 +1,21 @@import { prisma } from "@rallly/database";import { buttonVariants } from "@rallly/ui";+import {+ ActionBar,+ ActionBarOffset,+ ActionBarSpacer,+} from "@rallly/ui/action-bar";import { Badge } from "@rallly/ui/badge";-import { Icon } from "@rallly/ui/icon";+import { Button } from "@rallly/ui/button";import { absoluteUrl } from "@rallly/utils/absolute-url";-import { ArrowLeftIcon, MapPinIcon } from "lucide-react";+import { ArrowLeftIcon, MapPinIcon, VideoIcon } from "lucide-react";import type { Metadata } from "next";import Link from "next/link";import { notFound } from "next/navigation";import { cache, Suspense } from "react";import { getCurrentUser } from "@/auth/data";import { AddToCalendarButton } from "@/components/add-to-calendar-button";-import {- EventMetaDescription,- EventMetaItem,- EventMetaList,- EventMetaTitle,-} from "@/components/event-meta";-import { PollFooter } from "@/components/poll/poll-footer";-import { RandomGradientBar } from "@/components/random-gradient-bar";+import TruncatedLinkify from "@/components/poll/truncated-linkify";import { BrandingStyle } from "@/features/branding/branding-style";import { ConferencingLink } from "@/features/conferencing/components/conferencing-link";import { formatLocationText } from "@/features/location/utils";@@ -25,7 +23,15 @@ import { isScheduledEventEnabled } from "@/features/scheduled-event/constants";import { createScheduledEventDTO } from "@/features/scheduled-event/data";import { SpaceIcon } from "@/features/space/components/space-icon";import { Trans } from "@/i18n/client";-import { EventDateTime } from "./event-date-time";+import { AttendeeRows } from "./attendee-rows";+import { EventDateLine } from "./event-header";+import {+ Section,+ SectionGroup,+ SectionItem,+ SectionItemLabel,+ SectionItemValue,+} from "./section";const getScheduledEvent = cache(async (id: string) => {const event = await prisma.scheduledEvent.findUnique({@@ -42,6 +48,7 @@ const getScheduledEvent = cache(async (id: string) => {timeZone: true,status: true,deletedAt: true,+ hideAttendees: true,user: {select: {name: true,@@ -55,6 +62,18 @@ const getScheduledEvent = cache(async (id: string) => {primaryColor: true,},},+ invites: {+ select: {+ id: true,+ inviteeName: true,+ status: true,+ user: {+ select: {+ image: true,+ },+ },+ },+ },},});@@ -78,9 +97,7 @@ async function EventsBackLink() {href="/events"className={buttonVariants({ variant: "ghost", size: "sm" })}>- <Icon>- <ArrowLeftIcon />- </Icon>+ <ArrowLeftIcon data-icon="inline-start" /><Trans i18nKey="events" defaults="Events" /></Link>);@@ -131,79 +148,136 @@ export default async function EventPage({? event.space.primaryColor: null;const hasEnded = event.end < new Date();+ const visibleAttendees = event.hideAttendees+ ? []+ : event.invites.filter((i) => i.status !== "pending");return (- <div className="page-bg-gray-100 relative flex min-h-dvh flex-col overflow-auto sm:dark:bg-gray-900">+ <div className="page-bg-gray-50 flex min-h-dvh flex-col antialiased dark:bg-gray-900">{brandingColor ? <BrandingStyle primaryColor={brandingColor} /> : null}- <div className="p-3">++ <div className="flex items-center gap-4 p-3 sm:pb-6"><Suspense fallback={null}><EventsBackLink /></Suspense></div>- <div className="flex-1 px-2 md:flex md:items-center md:justify-center">- <div className="w-full max-w-md gap-4 overflow-hidden rounded-2xl border bg-card">- <RandomGradientBar />- <div className="relative p-4">- <div className="absolute top-3 right-3">++ <div className="mx-auto w-full max-w-xl flex-1">+ {isBranded ? (+ <div className="flex items-center gap-2 p-3 py-4">+ <SpaceIcon+ name={event.space.name}+ src={event.space.image ?? undefined}+ size="md"+ />+ <p className="font-medium text-muted-foreground text-sm">+ {event.space.name}+ </p>+ </div>+ ) : null}+ <header className="flex gap-4 px-5 pb-6">+ <div className="w-1 rounded-xs bg-primary" />+ <div className="flex-1">+ <div className="flex items-start justify-between gap-3">+ <h1 className="text-balance font-semibold text-2xl text-foreground leading-tight tracking-tight sm:text-xl">+ {event.title}+ </h1><StatusBadge status={event.status} hasEnded={hasEnded} /></div>- <div>- {isBranded ? (- <div className="mb-4">- <SpaceIcon- name={event.space.name}- src={event.space.image ?? undefined}- size="xl"- />- <p className="mt-2 font-medium text-muted-foreground text-sm">- {event.space.name}- </p>- </div>- ) : null}- <EventMetaTitle className="pr-24">{event.title}</EventMetaTitle>- {event.user?.name ? (- <p className="mt-1 text-muted-foreground text-sm">- <Trans- i18nKey="eventHostedBy"- defaults="Hosted by {name}"- values={{ name: event.user.name }}- />- </p>- ) : null}- {event.description ? (- <EventMetaDescription className="mt-4">- {event.description}- </EventMetaDescription>- ) : null}- <EventMetaList className="mt-6">- <EventDateTime- start={event.start}- end={event.end}- allDay={event.allDay}- timezone={event.displayTimeZone}+ {event.user?.name ? (+ <p className="mt-1 text-muted-foreground text-sm">+ <Trans+ i18nKey="eventOrganizedBy"+ defaults="Organized by {name}"+ values={{ name: event.user.name }}/>+ </p>+ ) : null}+ <EventDateLine+ start={event.start}+ end={event.end}+ allDay={event.allDay}+ timezone={event.displayTimeZone}+ />+ </div>+ </header>++ <div className="px-3 pb-3">+ <SectionGroup>+ {event.location || event.conferencing ? (+ <Section>{event.location ? (- <EventMetaItem>- <MapPinIcon />- {formatLocationText(event.location)}- </EventMetaItem>+ <SectionItem>+ <SectionItemLabel>+ <MapPinIcon />+ <Trans i18nKey="location" defaults="Location" />+ </SectionItemLabel>+ <SectionItemValue className="text-foreground">+ {formatLocationText(event.location)}+ </SectionItemValue>+ </SectionItem>) : null}{event.conferencing ? (- <EventMetaItem>- <ConferencingLink conferencing={event.conferencing} />- </EventMetaItem>+ <SectionItem>+ <SectionItemLabel>+ <VideoIcon />+ <Trans i18nKey="conferencing" defaults="Conferencing" />+ </SectionItemLabel>+ <SectionItemValue className="overflow-hidden">+ <ConferencingLink conferencing={event.conferencing} />+ </SectionItemValue>+ </SectionItem>) : null}- </EventMetaList>- <div className="mt-6">- <AddToCalendarButton eventId={event.id} />- </div>- </div>- </div>+ </Section>+ ) : null}++ {event.description ? (+ <Section+ title={<Trans i18nKey="description" defaults="Description" />}+ >+ <SectionItem className="py-3">+ <p className="whitespace-pre-wrap text-pretty text-foreground text-sm leading-relaxed">+ <TruncatedLinkify>{event.description}</TruncatedLinkify>+ </p>+ </SectionItem>+ </Section>+ ) : null}++ {visibleAttendees.length > 0 ? (+ <Section+ title={<Trans i18nKey="attendees" defaults="Attendees" />}+ >+ <SectionItem>+ <SectionItemLabel>+ <Trans i18nKey="invited" defaults="Invited" />+ </SectionItemLabel>+ <SectionItemValue className="tabular-nums">+ {visibleAttendees.length}+ </SectionItemValue>+ </SectionItem>+ <AttendeeRows+ attendees={visibleAttendees.map((invite) => ({+ id: invite.id,+ name: invite.inviteeName,+ image: invite.user?.image ?? undefined,+ status: invite.status,+ }))}+ />+ </Section>+ ) : null}+ </SectionGroup>+ <ActionBarOffset /></div></div>- <div className="mt-auto py-6">- <PollFooter />- </div>++ <ActionBar>+ <AddToCalendarButton eventId={event.id} size="lg" />+ <ActionBarSpacer />+ <Button size="lg">Decline</Button>+ <Button variant="primary" size="lg">+ Accept+ </Button>+ </ActionBar></div>);}diff --git a/apps/web/src/app/[locale]/e/[id]/section.tsx b/apps/web/src/app/[locale]/e/[id]/section.tsxnew file mode 100644index 000000000..84d6435cc--- /dev/null+++ b/apps/web/src/app/[locale]/e/[id]/section.tsx@@ -0,0 +1,93 @@+import { cn } from "@rallly/ui";++export function SectionGroup({+ children,+ className,+}: {+ children: React.ReactNode;+ className?: string;+}) {+ return <div className={cn("space-y-6", className)}>{children}</div>;+}++export function Section({+ children,+ title,+ className,+}: {+ children: React.ReactNode;+ title?: React.ReactNode;+ className?: string;+}) {+ return (+ <section className="space-y-2">+ {title ? (+ <h2 className="px-4 font-medium text-muted-foreground text-xs uppercase tracking-wide">+ {title}+ </h2>+ ) : null}+ <div+ className={cn(+ "divide-y divide-gray-950/5 overflow-hidden rounded-2xl border border-card-border bg-card",+ className,+ )}+ >+ {children}+ </div>+ </section>+ );+}++export function SectionItem({+ children,+ className,+}: {+ children: React.ReactNode;+ className?: string;+}) {+ return (+ <div+ className={cn("flex min-h-12 items-center gap-3 px-4 py-2.5", className)}+ >+ {children}+ </div>+ );+}++export function SectionItemLabel({+ children,+ className,+}: {+ children: React.ReactNode;+ className?: string;+}) {+ return (+ <div+ className={cn(+ "flex min-w-0 items-center gap-2.5 font-medium text-foreground text-sm [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-muted-foreground",+ className,+ )}+ >+ {children}+ </div>+ );+}++export function SectionItemValue({+ children,+ className,+}: {+ children: React.ReactNode;+ className?: string;+}) {+ return (+ <div+ className={cn(+ "ml-auto min-w-0 truncate text-right text-muted-foreground text-sm",+ className,+ )}+ >+ {children}+ </div>+ );+}diff --git a/apps/web/src/components/add-to-calendar-button.tsx b/apps/web/src/components/add-to-calendar-button.tsxindex eab057c4f..2fd566bba 100644--- a/apps/web/src/components/add-to-calendar-button.tsx+++ b/apps/web/src/components/add-to-calendar-button.tsx@@ -10,6 +10,7 @@ import {} from "@rallly/ui/dropdown-menu";import { Icon } from "@rallly/ui/icon";import { DownloadIcon, PlusIcon } from "lucide-react";+import type * as React from "react";import GoogleCalendarIcon from "@/features/calendars/assets/google-calendar.svg";import Microsoft365Icon from "@/features/calendars/assets/microsoft-365.svg";import OutlookIcon from "@/features/calendars/assets/outlook.svg";@@ -17,11 +18,19 @@ import YahooIcon from "@/features/calendars/assets/yahoo.svg";import { Trans } from "@/i18n/client";-export function AddToCalendarButton({ eventId }: { eventId: string }) {+export function AddToCalendarButton({+ eventId,+ size,+ className,+}: {+ eventId: string;+ size?: React.ComponentProps<typeof Button>["size"];+ className?: string;+}) {return (- <DropdownMenu>+ <DropdownMenu modal={false}><DropdownMenuTrigger asChild>- <Button>+ <Button size={size} className={className}><PlusIcon data-icon="inline-start" /><Trans i18nKey="addToCalendar" defaults="Add to Calendar" /></Button>diff --git a/packages/tailwind-config/shared-styles.css b/packages/tailwind-config/shared-styles.cssindex 6ede2f985..2f65e2dea 100644--- a/packages/tailwind-config/shared-styles.css+++ b/packages/tailwind-config/shared-styles.css@@ -227,6 +227,9 @@html.light body:has(.page-bg-gray-100) {@apply bg-gray-100;}+ html.light body:has(.page-bg-gray-50) {+ @apply bg-gray-50;+ }html {@apply h-full font-sans text-base text-gray-700;}diff --git a/packages/ui/src/action-bar.tsx b/packages/ui/src/action-bar.tsxindex b066f71f3..cf87ca198 100644--- a/packages/ui/src/action-bar.tsx+++ b/packages/ui/src/action-bar.tsx@@ -1,65 +1,47 @@-import * as DialogPrimitive from "@radix-ui/react-dialog";import * as React from "react";import { cn } from "./lib/utils";-interface ActionBarProps- extends Omit<- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>,- "open" | "onOpenChange"- > {- open?: boolean;- onOpenChange?: (open: boolean) => void;- children: React.ReactNode;-}-const ActionBar = React.forwardRef<- React.ComponentRef<typeof DialogPrimitive.Content>,- ActionBarProps->(({ open, onOpenChange, children, className, ...props }, ref) => {- return (- <DialogPrimitive.Root modal={false} open={open} onOpenChange={onOpenChange}>- <DialogPrimitive.Content- forceMount={true}- ref={ref}- className={cn(- "fixed bottom-3 z-50 flex -translate-x-1/2 items-center gap-2 rounded-xl border border-action-bar-border bg-action-bar p-2 text-action-bar-foreground shadow-lg transition-transform duration-200 ease-out data-[state=closed]:pointer-events-none data-[state=closed]:translate-y-full data-[state=open]:translate-y-0 data-[state=closed]:opacity-0 data-[state=open]:opacity-100",- "left-1/2 md:bottom-16 md:w-fit",- "w-[calc(100%-24px)]",- className,- )}- {...props}- >- {children}- </DialogPrimitive.Content>- </DialogPrimitive.Root>- );-});-ActionBar.displayName = "ActionBar";--const ActionBarTitle = React.forwardRef<- HTMLHeadingElement,- React.HTMLAttributes<HTMLHeadingElement>+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>>(({ className, children, ...props }, ref) => (- <DialogPrimitive.Title+ <divref={ref}- className={cn("flex flex-1 items-center px-2.5 py-2 text-sm", className)}+ className={cn(+ "pointer-events-none fixed inset-x-0 bottom-0 z-40 bg-linear-to-t from-25% from-gray-100/50 to-transparent dark:from-gray-900",+ className,+ )}{...props}>- {children}- </DialogPrimitive.Title>+ <div className="pointer-events-auto mx-auto flex max-w-xl items-center justify-center gap-3 px-4 pt-12 pb-[max(--spacing(4),env(safe-area-inset-bottom))] sm:pb-[max(--spacing(8),env(safe-area-inset-bottom))]">+ {children}+ </div>+ </div>+));+ActionBar.displayName = "ActionBar";++const ActionBarSpacer = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div ref={ref} className={cn("flex-1", className)} {...props} />));-ActionBarTitle.displayName = "ActionBarTitle";+ActionBarSpacer.displayName = "ActionBarSpacer";-const ActionBarGroup = React.forwardRef<+const ActionBarOffset = React.forwardRef<HTMLDivElement,React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (<divref={ref}- className={cn("flex justify-end gap-2", className)}+ aria-hidden+ className={cn(+ "h-[calc(--spacing(12)+max(--spacing(4),env(safe-area-inset-bottom)))] sm:h-[calc(--spacing(12)+max(--spacing(8),env(safe-area-inset-bottom)))]",+ className,+ )}{...props}/>));-ActionBarGroup.displayName = "ActionBarGroup";+ActionBarOffset.displayName = "ActionBarOffset";-export { ActionBar, ActionBarTitle, ActionBarGroup };+export { ActionBar, ActionBarOffset, ActionBarSpacer };diff --git a/packages/ui/src/avatar.tsx b/packages/ui/src/avatar.tsxindex 8773bd352..32e86c693 100644--- a/packages/ui/src/avatar.tsx+++ b/packages/ui/src/avatar.tsx@@ -8,7 +8,7 @@ const avatarVariants = cva("relative flex shrink-0 overflow-hidden", {variants: {size: {xl: "size-12 rounded-xl text-lg",- lg: "size-8 rounded-md text-sm",+ lg: "size-8 rounded-md text-xs",md: "size-5 rounded-md text-[9px]",sm: "size-4 rounded text-[8px]",},@@ -54,7 +54,7 @@ const AvatarFallback = React.forwardRef<<AvatarPrimitive.Fallbackref={ref}className={cn(- "flex h-full w-full items-center justify-center bg-gray-200 font-normal text-muted-foreground dark:bg-gray-800",+ "flex h-full w-full items-center justify-center bg-gray-200 font-medium text-muted-foreground dark:bg-gray-800",className,)}{...props}diff --git a/packages/ui/src/button-variants.ts b/packages/ui/src/button-variants.tsindex 1e56c14e0..d977c5bec 100644--- a/packages/ui/src/button-variants.ts+++ b/packages/ui/src/button-variants.ts@@ -4,7 +4,7 @@ import { cn } from "./lib/utils";export const buttonVariants = cva(cn(- "group inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg font-normal outline-none transition-opacity transition-transform focus-visible:ring-2 focus-visible:ring-ring active:shadow-none disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:opacity-90",+ "group inline-flex shrink-0 items-center justify-center whitespace-nowrap font-normal outline-none active:scale-[0.98] active:opacity-80 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=open]:scale-[0.98] data-[state=open]:opacity-80 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:opacity-90",),{variants: {@@ -14,21 +14,21 @@ export const buttonVariants = cva(destructive:"bg-destructive text-destructive-foreground ring-1 ring-button-outline ring-inset hover:bg-destructive/90",default:- "bg-transparent ring-1 ring-button-outline ring-inset hover:bg-accent",+ "bg-background/80 ring-1 ring-button-outline ring-inset backdrop-blur-lg hover:bg-accent",ghost:- "border-transparent bg-transparent text-foreground ring-1 ring-transparent ring-inset hover:bg-accent data-[state=open]:bg-accent",+ "border-transparent bg-transparent text-foreground ring-1 ring-transparent ring-inset hover:bg-accent data-[state=open]:bg-accent [&>svg]:opacity-75",actionBar:"border-transparent bg-action-bar text-action-bar-foreground hover:bg-action-bar-foreground/10 data-[state=open]:bg-action-bar-foreground/20",link: "border-transparent text-primary underline-offset-4 hover:underline",},size: {default:- "h-8 gap-1.5 px-2.5 text-sm has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",+ "h-8 gap-1.5 rounded-lg px-2.5 text-sm has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs: "h-6 gap-1 in-data-[slot=button-group]:rounded-lg rounded-[min(var(--radius-md),10px)] px-2 text-sm text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",- sm: "h-7 gap-1 in-data-[slot=button-group]:rounded-lg rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] text-sm has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",- lg: "h-10 gap-1.5 px-3 text-sm has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",- xl: "h-12 gap-2 px-4 text-base has-data-[icon=inline-end]:pr-3.5 has-data-[icon=inline-start]:pl-3.5",- icon: "size-8",+ sm: "h-7 gap-1.5 in-data-[slot=button-group]:rounded-lg rounded-lg px-2.5 text-[0.8rem] text-sm has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1 [&_svg:not([class*='size-'])]:size-3.5",+ lg: "h-10 gap-1.5 rounded-xl px-3 text-sm has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5",+ xl: "h-12 gap-2 rounded-xl px-4 text-base has-data-[icon=inline-end]:pr-3.5 has-data-[icon=inline-start]:pl-3.5",+ icon: "size-8 rounded-lg","icon-xs":"size-6 in-data-[slot=button-group]:rounded-lg rounded-[min(var(--radius-md),10px)] [&_svg:not([class*='size-'])]:size-3","icon-sm":