feat: upgrade tailwind v4 (#24598)

* chore: refactor config files to prevent migration tool errors

* refactor: upgrade with the tailwind migration tool

* chore: restore pre-commit command + mc

* refactor(wip): update dependencies and migrate to Tailwind CSS v4 (mainly web)

* chore: resolve Tailwind v4 migration conflicts from merging main

* chore: remove unused Tailwind packages from config and update dependencies for v4 migration

* chore: uncomment Tailwind CSS utility classes in globals.css

* fix: resolve token conflicts between calcom and coss ui

* fix: textarea scrollbar

* Fix CUI-16

* fix: added @tailwindcss/forms plugin and cleaned up CSS classes in various components to remove unnecessary dark mode styles

* fix: selects and inputs of different sizes

* fix: remove unnecessary leading-20 class from modal titles in various components

* fix: update Checkbox component styles to remove unnecessary border on checked state

* fix: clean up styles in RequiresConfirmationController, Checkbox, and Radio components to enhance consistency

* fix: update button and filter component styles to remove unnecessary rounded classes for consistency

* fix: calendar

* fix: update KBarSearch

* fix: refine styles in Empty and Checkbox components for improved consistency

* Fix focus state email input

* fix: update button hover and active states to use 'not-disabled' instead of 'enabled'

* fix: line-height issues

* fix: update class name for muted background in BookingListItem component

* fix: sidebar spacing

* chore: update class names to use new Tailwind CSS color utilities

* fix embed

* chore: upgrade Tailwind CSS to version 4.1.16 and update related dependencies

* Map css variables and add a playground test for heavy css customization

* suggestion for coss-ui

* refactor: update CSS variable usage and clean up styles

- Replace instances of `--cal-brand-color` with `--cal-brand` in embed-related HTML files.
- Remove the now-unnecessary `addAppCssVars` function from the embed core.
- Import theme tokens in the embed core styles for better consistency.
- Clean up whitespace and formatting in CSS files for improved readability.
- Add a comment in `tokens.css` regarding its usage in both embed and webapp contexts.

* Handle within tokens.css instead of fixing coss-ui

* Remove initial, not needed. Also, remove tailwind.config.js as tailwidn scans the html automaically

* fix: examples app breaking

* fix: modal not resizing correctly

* feat: upgrade atoms to tailwind v4

* fix: atoms build breaking

* fix: atoms build breaking

* chore: upgrate examples/base to tailwind 4

* chore: update globals.css

* fix: add missing scheduler css variables

* fix: PlatformAdditionalCalendarSelector

* chore: update global styles

* chore: update tailwindcss and postcss dependencies to stable versions

* chore: remove unneeded class

* fix: dialog and toast animation

* fix: replace flex-shrink-0 with shrink-0 for consistent styling in various components

* fix: dialog modal for Apple connect

* add margin in SaveFilterSegmentButton

* Fix radix button nested states

* add cursor pointer to buttons but keep dsabled state

* Fix commandK selectors and adds cursor pointer

* Fix teams filter

* fix - round checkboxes

* fix filter checkbox

* fix select indicator's margin

* command group font size

* style: fix badge and tooltip radius

* chore: remove unneeded files

* Delete PR_REVIEW_MANAGED_EVENT_REASSIGNMENT.md

* remove ui-playground leftover

* fix: add missing react phone input styles in atoms

* Delete managed-event-reassignment-flow-and-architecture.mermaid

* fix: inter font not loading

* Add theme to skeleton container so that it can support dark mode

* fix: create custom stack-y-* utilities post tw4 upgrade

* fix: typo

* fix: atoms stack class + remove unused css file

* fix default radius valiue

* fix space-y in embed

* fix skeleton background

* Hardcode radius values to match production

* fix border in embed

* add missing externalThemeClass

* feat: create a custom stack-y-* utility

* fix: add stack utility to atom global css

* fix: Skeleton loader class modalbox

* Add stack-y utility in embed

* fix: add missing stack utilities in atoms globals.css

* update yarn.lock

* add popover portla

* update

---------

Co-authored-by: Sean Brydon <[email protected]>
Co-authored-by: Hariom Balhara <[email protected]>
Co-authored-by: Ryukemeister <[email protected]>
Co-authored-by: cal.com <[email protected]>
Co-authored-by: Eunjae Lee <[email protected]>
Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-11-25 17:32:28 -03:00
1 parent 625c260e40
commit d6546c3107
447 files changed
+14783 -28932

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ function AppsSearch({
<TextField
addOnLeading={<Icon name="search" className="text-subtle h-4 w-4" />}
addOnClassname="!border-muted"
containerClassName={classNames("focus:!ring-offset-0 m-1", className)}
containerClassName={classNames("focus:ring-offset-0! m-1", className)}
type="search"
autoComplete="false"
onChange={onChange}
@@ -233,7 +233,7 @@ const OnboardingPage = ({
return (
<div
key={pathname}
className="dark:bg-brand dark:text-brand-contrast text-emphasis min-h-screen px-4"
className="text-emphasis min-h-screen px-4"
data-testid="onboarding">
<div className="mx-auto py-6 sm:px-4 md:py-24">
<div className="relative">
@@ -21,7 +21,7 @@ function Success() {
const { t } = useLocale();
return (
<>
<div className="space-y-6">
<div className="stack-y-6">
<div>
<h2 className="font-cal text-emphasis mt-6 text-center text-3xl font-extrabold">
{t("password_updated")}
@@ -39,7 +39,7 @@ function Expired() {
const { t } = useLocale();
return (
<>
<div className="space-y-6">
<div className="stack-y-6">
<div>
<h2 className="font-cal text-emphasis mt-6 text-center text-3xl font-extrabold">{t("whoops")}</h2>
<h2 className="text-emphasis text-center text-3xl font-extrabold">{t("request_is_expired")}</h2>
@@ -114,7 +114,7 @@ function PasswordResetForm({
return (
<Form
className="space-y-6"
className="stack-y-6"
form={formMethods}
style={
{
@@ -76,7 +76,7 @@ export default function ForgotPassword(props: PageProps) {
const Success = () => {
return (
<div className="space-y-6 text-sm leading-normal ">
<div className="stack-y-6 text-sm leading-normal ">
<p className="">{t("password_reset_email", { email })}</p>
<p className="">{t("password_reset_leading")}</p>
{error && <p className="text-center text-red-600">{error.message}</p>}
@@ -103,9 +103,9 @@ export default function ForgotPassword(props: PageProps) {
{success && <Success />}
{!success && (
<>
<div className="space-y-6">{error && <p className="text-red-600">{error.message}</p>}</div>
<div className="stack-y-6">{error && <p className="text-red-600">{error.message}</p>}</div>
<form
className="space-y-6"
className="stack-y-6"
onSubmit={handleSubmit}
action="#"
style={
@@ -125,7 +125,7 @@ export default function ForgotPassword(props: PageProps) {
placeholder="[email protected]"
required
/>
<div className="space-y-2">
<div className="stack-y-2">
<Button
className="w-full justify-center bg-white hover:bg-black hover:text-white"
type="submit"
+7 -7
View File
@@ -177,7 +177,7 @@ export default function Login({
: isSAMLLoginEnabled && !isPending && data?.connectionExists;
return (
<div className="dark:bg-brand dark:text-brand-contrast text-emphasis min-h-screen [--cal-brand-emphasis:#101010] [--cal-brand-subtle:#9CA3AF] [--cal-brand-text:white] [--cal-brand:#111827] dark:[--cal-brand-emphasis:#e1e1e1] dark:[--cal-brand-text:black] dark:[--cal-brand:white]">
<div className="text-emphasis min-h-screen [--cal-brand-emphasis:#101010] [--cal-brand-subtle:#9CA3AF] [--cal-brand-text:white] [--cal-brand:#111827] dark:[--cal-brand-emphasis:#e1e1e1] dark:[--cal-brand-text:black] dark:[--cal-brand:white]">
<AuthContainer
showLogo
heading={twoFactorRequired ? t("2fa_code") : t("welcome_back")}
@@ -193,7 +193,7 @@ export default function Login({
<FormProvider {...methods}>
{!twoFactorRequired && (
<>
<div className="space-y-3">
<div className="stack-y-3">
{isGoogleLoginEnabled && (
<Button
color="primary"
@@ -224,11 +224,11 @@ export default function Login({
{(isGoogleLoginEnabled || displaySSOLogin) && (
<div className="my-8">
<div className="relative flex items-center">
<div className="border-subtle flex-grow border-t" />
<span className="text-subtle mx-2 flex-shrink text-sm font-normal leading-none">
<div className="border-subtle grow border-t" />
<span className="text-subtle mx-2 shrink text-sm font-normal leading-none">
{t("or").toLocaleLowerCase()}
</span>
<div className="border-subtle flex-grow border-t" />
<div className="border-subtle grow border-t" />
</div>
</div>
)}
@@ -239,8 +239,8 @@ export default function Login({
<div>
<input defaultValue={csrfToken || undefined} type="hidden" hidden {...register("csrfToken")} />
</div>
<div className="space-y-6">
<div className={classNames("space-y-6", { hidden: twoFactorRequired })}>
<div className="stack-y-6">
<div className={classNames("stack-y-6", { hidden: twoFactorRequired })}>
<EmailField
id="email"
label={t("email_address")}
+1 -1
View File
@@ -43,7 +43,7 @@ export function Logout(props: PageProps) {
return (
<AuthContainer showLogo>
<div className="mb-4">
<div className="bg-success mx-auto flex h-12 w-12 items-center justify-center rounded-full">
<div className="bg-cal-success mx-auto flex h-12 w-12 items-center justify-center rounded-full">
<Icon name="check" className="h-6 w-6 text-green-600" />
</div>
<div className="mt-3 text-center sm:mt-5">
@@ -116,7 +116,7 @@ export default function Authorize() {
options={mappedProfiles}
/>
<div className="mb-4 mt-5 font-medium">{t("allow_client_to", { clientName: client.name })}</div>
<ul className="space-y-4 text-sm">
<ul className="stack-y-4 text-sm">
<li className="relative pl-5">
<span className="absolute left-0">&#10003;</span>{" "}
{t("associate_with_cal_account", { clientName: client.name })}
@@ -95,7 +95,7 @@ export default function Authorize() {
<div className="mb-4 mt-5 font-medium text-black">
{t("allow_client_to", { clientName: client.name })}
</div>
<ul className="space-y-4 text-sm text-black">{permissions}</ul>
<ul className="stack-y-4 text-sm text-black">{permissions}</ul>
<div className="bg-subtle mb-8 mt-8 flex rounded-md p-3">
<div>
<Icon name="info" className="mr-1 mt-0.5 h-4 w-4" />
@@ -110,7 +110,7 @@ export default function Authorize() {
<div className="border-subtle border- -mx-9 mb-4 border-b" />
<div className="flex justify-end">
<Button
className="bg-primary mr-2 text-black"
className="bg-primary-default mr-2 text-black"
onClick={() => {
router.back();
}}>
+2 -2
View File
@@ -103,7 +103,7 @@ export function Setup(props: PageProps) {
steps.push({
title: t("enable_apps"),
description: t("enable_apps_description", { appName: APP_NAME }),
contentClassname: "!pb-0 mb-[-1px]",
contentClassname: "pb-0! -mb-px",
customActions: true,
content: (setIsPending, nav) => {
return (
@@ -113,7 +113,7 @@ export function Setup(props: PageProps) {
classNames={{
form: "mb-4 rounded-md bg-default px-0 pt-0 md:max-w-full",
appCategoryNavigationContainer: "max-h-[400px] overflow-y-auto md:p-4",
verticalTabsItem: "!w-48 md:p-4",
verticalTabsItem: "w-48! md:p-4",
}}
baseURL={`/auth/setup?step=${steps.length}`}
useQueryParam={true}
+1 -1
View File
@@ -14,7 +14,7 @@ function Signin({ providers }: PageProps) {
}
return (
<div className="center mt-10 justify-between space-y-5 text-center align-baseline">
<div className="center mt-10 justify-between stack-y-5 text-center align-baseline">
{Object.values(providers).map((provider) => {
return (
<div key={provider.name}>
+1 -1
View File
@@ -32,7 +32,7 @@ function VerifyEmailPage() {
return null;
}
return (
<div className="h-[100vh] w-full ">
<div className="h-screen w-full ">
<div className="flex h-full w-full flex-col items-center justify-center">
<div className="max-w-3xl">
<EmptyScreen
+3 -3
View File
@@ -59,7 +59,7 @@ const querySchema = z.object({
const PaymentFailedIcon = () => (
<div className="rounded-full bg-orange-900 p-3">
<Icon name="triangle-alert" className="h-6 w-6 flex-shrink-0 p-0.5 font-extralight text-orange-100" />
<Icon name="triangle-alert" className="h-6 w-6 shrink-0 p-0.5 font-extralight text-orange-100" />
</div>
);
@@ -108,7 +108,7 @@ const PaymentSuccess = () => (
const MailOpenIcon = () => (
<div className="bg-default rounded-full p-3">
<Icon name="mail-open" className="text-emphasis h-12 w-12 flex-shrink-0 p-0.5 font-extralight" />
<Icon name="mail-open" className="text-emphasis h-12 w-12 shrink-0 p-0.5 font-extralight" />
</div>
);
@@ -162,7 +162,7 @@ export default function Verify({ EMAIL_FROM }: { EMAIL_FROM?: string }) {
}
return (
<div className="text-default bg-muted bg-opacity-90 backdrop-blur-md backdrop-grayscale backdrop-filter">
<div className="text-default bg-cal-muted/90 backdrop-blur-md backdrop-grayscale backdrop-filter">
<div className="flex min-h-screen flex-col items-center justify-center px-6">
<div className="border-subtle bg-default m-10 flex max-w-2xl flex-col items-center rounded-xl border px-8 py-14 text-left">
{hasPaymentFailed ? (
@@ -191,9 +191,9 @@ function BookingDetailsSheetInner({
</div>
</SheetHeader>
<SheetBody className="space-y-6">
<div className="space-y-6">
<div className="space-y-1">
<SheetBody className="stack-y-6">
<div className="stack-y-6">
<div className="stack-y-1">
<SheetTitle className="text-2xl font-semibold">{booking.title}</SheetTitle>
<p className="text-subtle text-sm">
{startTime.format("dddd, MMMM D, YYYY h:mma")} - {endTime.format("h:mma")} (
@@ -277,7 +277,7 @@ function WhoSection({ booking }: { booking: BookingOutput }) {
const { t } = useLocale();
return (
<Section title={t("who")}>
<div className="space-y-4">
<div className="stack-y-4">
{booking.user && (
<div className="flex items-center gap-4">
<Avatar
@@ -340,12 +340,12 @@ function WhereSection({ booking, meta }: { booking: BookingOutput; meta: Booking
// eslint-disable-next-line @next/next/no-img-element
<img
src={provider.iconUrl}
className="h-4 w-4 flex-shrink-0 rounded-sm"
className="h-4 w-4 shrink-0 rounded-sm"
alt={`${provider?.label} logo`}
/>
)}
<div className="flex min-w-0 items-baseline gap-1">
<span className="text-default flex-shrink-0">{provider?.label}:</span>
<span className="text-default shrink-0">{provider?.label}:</span>
<a
href={locationToDisplay}
target="_blank"
@@ -502,7 +502,7 @@ function Section({
children: React.ReactNode;
}) {
return (
<div className={classNames("space-y-1", className)}>
<div className={classNames("stack-y-1", className)}>
<h3 className="text-subtle text-xs font-semibold">{title}</h3>
{children}
</div>
@@ -39,7 +39,7 @@ export default function DryRunSuccessful() {
return (
<div className="flex h-screen">
<div className="bg-default m-auto rounded-md p-10 text-center">
<div className="bg-success mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full">
<div className="bg-cal-success mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full">
<Icon name="check" className="h-6 w-6 text-green-600 dark:text-green-400" />
</div>
<h1 className="text-emphasis mb-4 text-2xl font-medium" data-testid="dry-run-success-msg">
@@ -462,7 +462,7 @@ export default function Success(props: PageProps) {
<div
className={classNames(
"inline-block transform overflow-hidden rounded-lg border sm:my-8 sm:max-w-xl",
!isBackgroundTransparent && " bg-default dark:bg-muted border-booker border-booker-width",
!isBackgroundTransparent && " bg-default dark:bg-cal-muted border-booker border-booker-width",
"px-8 pb-4 pt-5 text-left align-bottom transition-all sm:w-full sm:py-8 sm:align-middle"
)}
role="dialog"
@@ -490,7 +490,7 @@ export default function Success(props: PageProps) {
isRoundRobin &&
"border-cal-bg dark:border-cal-bg-muted absolute bottom-0 right-0 z-10 h-12 w-12 border-8",
!giphyImage && isReschedulable && !needsConfirmation && !isAwaitingPayment
? "bg-success"
? "bg-cal-success"
: "",
!giphyImage && isReschedulable && (needsConfirmation || isAwaitingPayment)
? "bg-subtle"
@@ -568,7 +568,7 @@ export default function Success(props: PageProps) {
{isCancelled ? t("reason") : t("reschedule_reason")}
</div>
<div className="col-span-2 mb-6 last:mb-0">
<p className="break-words">{cancellationReason}</p>
<p className="wrap-break-word">{cancellationReason}</p>
</div>
</>
)}
@@ -578,7 +578,7 @@ export default function Success(props: PageProps) {
<>
<div className="font-medium">{t("cancelled_by")}</div>
<div className="col-span-2 mb-6 last:mb-0">
<p className="break-words">{bookingInfo?.cancelledBy}</p>
<p className="wrap-break-word">{bookingInfo?.cancelledBy}</p>
</div>
</>
)}
@@ -586,7 +586,7 @@ export default function Success(props: PageProps) {
<>
<div className="font-medium">{t("rescheduled_by")}</div>
<div className="col-span-2 mb-6 last:mb-0">
<p className="break-words">{previousBooking?.rescheduledBy}</p>
<p className="wrap-break-word">{previousBooking?.rescheduledBy}</p>
<Link className="text-sm underline" href={`/booking/${previousBooking?.uid}`}>
{t("original_booking")}
</Link>
@@ -711,7 +711,7 @@ export default function Success(props: PageProps) {
<>
<div className="mt-9 font-medium">{t("additional_notes")}</div>
<div className="col-span-2 mb-2 mt-9">
<p className="whitespace-pre-line break-words">{bookingInfo.description}</p>
<p className="whitespace-pre-line wrap-break-word">{bookingInfo.description}</p>
</div>
</>
)}
@@ -738,7 +738,7 @@ export default function Success(props: PageProps) {
<div className="col-span-2 mb-2 mt-2">
{Object.entries(utmParams).filter(([_, value]) => Boolean(value)).length >
0 ? (
<ul className="list-disc space-y-1 p-1 pl-5 sm:w-80">
<ul className="list-disc stack-y-1 p-1 pl-5 sm:w-80">
{Object.entries(utmParams)
.filter(([_, value]) => Boolean(value))
.map(([key, value]) => (
@@ -783,7 +783,7 @@ export default function Success(props: PageProps) {
}}
/>
<p
className="text-default break-words"
className="text-default wrap-break-word"
data-testid="field-response"
data-fob-field={field.name}>
{field.type === "boolean"
@@ -1053,7 +1053,7 @@ export default function Success(props: PageProps) {
</button>
))}
</div>
<div className="my-4 space-y-1 text-center">
<div className="my-4 stack-y-1 text-center">
<h2 className="font-cal text-lg">{t("submitted_feedback")}</h2>
<p className="text-sm">{rateValue < 4 ? t("how_can_we_improve") : t("most_liked")}</p>
</div>
@@ -125,7 +125,7 @@ const InfiniteTeamsTab: FC<InfiniteTeamsTabProps> = (props) => {
<TextField
className="max-w-64"
addOnLeading={<Icon name="search" className="text-subtle h-4 w-4" />}
containerClassName="max-w-64 focus:!ring-offset-0 mb-4"
containerClassName="max-w-64 focus:ring-offset-0! mb-4"
type="search"
value={searchTerm}
autoComplete="false"
@@ -483,7 +483,7 @@ export const InfiniteEventTypeList = ({
return (
<div className="bg-default border-subtle flex flex-col overflow-hidden rounded-md border">
<ul ref={parent} className="divide-subtle !static w-full divide-y" data-testid="event-types">
<ul ref={parent} className="divide-subtle static! w-full divide-y" data-testid="event-types">
{pages.map((page, pageIdx) => {
return page?.eventTypes?.map((type, index) => {
const embedLink = `${group.profile.slug}/${type.slug}`;
@@ -505,7 +505,7 @@ export const InfiniteEventTypeList = ({
type.schedulingType !== SchedulingType.MANAGED;
return (
<li key={type.id}>
<div className="hover:bg-muted flex w-full items-center justify-between transition">
<div className="hover:bg-cal-muted flex w-full items-center justify-between transition">
<div className="group flex w-full max-w-full items-center justify-between overflow-hidden px-4 py-4 sm:px-6">
{!(firstItem && firstItem.id === type.id) && (
<ArrowButton
@@ -617,7 +617,7 @@ export const InfiniteEventTypeList = ({
color="secondary"
StartIcon="ellipsis"
// Unusual practice to use radix state open but for some reason this dropdown and only this dropdown clears the border radius of this button.
className="ltr:radix-state-open:rounded-r-[--btn-group-radius] rtl:radix-state-open:rounded-l-[--btn-group-radius]"
className="ltr:radix-state-open:rounded-r-(--btn-group-radius) rtl:radix-state-open:rounded-l-(--btn-group-radius)"
/>
</DropdownMenuTrigger>
<DropdownMenuContent>
@@ -143,7 +143,7 @@ const OnboardingPage = (props: PageProps) => {
return (
<div
className={classNames(
"dark:bg-brand dark:text-brand-contrast text-emphasis min-h-screen [--cal-brand:#111827] dark:[--cal-brand:#FFFFFF]",
"text-emphasis min-h-screen [--cal-brand:#111827] dark:[--cal-brand:#FFFFFF]",
"[--cal-brand-emphasis:#101010] dark:[--cal-brand-emphasis:#e1e1e1]",
"[--cal-brand-subtle:#9CA3AF]",
"[--cal-brand-text:#FFFFFF] dark:[--cal-brand-text:#000000]",
@@ -22,7 +22,7 @@ export default function InsightsRoutingFormResponsesPage({ timeZone }: { timeZon
return (
<DataTableProvider tableIdentifier={pathname} useSegments={useSegments} timeZone={timeZone}>
<InsightsOrgTeamsProvider>
<div className="mb-4 space-y-4">
<div className="mb-4 stack-y-4">
<RoutingFormResponsesTable />
<RoutingFunnel />
+1 -1
View File
@@ -100,7 +100,7 @@ function InsightsPageContent() {
<TimezoneBadge />
</div>
<div className="my-4 space-y-4">
<div className="my-4 stack-y-4">
<BookingKPICards />
<EventTrendsChart />
+1 -1
View File
@@ -8,7 +8,7 @@ export default function MorePage() {
const { t } = useLocale();
return (
<Shell>
<div className="max-w-screen-lg">
<div className="max-w-(--breakpoint-lg)">
<MobileNavigationMoreItems />
<p className="text-subtle mt-6 text-xs leading-tight md:hidden">{t("more_page_footer")}</p>
</div>
@@ -34,7 +34,7 @@ export const CtaRow = ({ title, description, className, children }: CtaRowProps)
<h2 className="text-base font-semibold">{title}</h2>
<p>{description}</p>
</div>
<div className="flex-shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">{children}</div>
<div className="shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">{children}</div>
</section>
</>
);
@@ -77,7 +77,7 @@ const BillingView = () => {
return (
<>
<div className="bg-muted border-muted mt-5 rounded-xl border p-1">
<div className="bg-cal-muted border-muted mt-5 rounded-xl border p-1">
<div className="bg-default border-muted flex rounded-[10px] border px-5 py-4">
<div className="flex w-full flex-col gap-1">
<h3 className="text-emphasis text-sm font-semibold leading-none">{t("manage_billing")}</h3>
@@ -179,7 +179,7 @@ export default function BillingCredits() {
return (
<>
<div className="bg-muted border-muted mt-5 rounded-xl border p-1">
<div className="bg-cal-muted border-muted mt-5 rounded-xl border p-1">
<div className="flex flex-col gap-1 px-4 py-5">
<h2 className="text-default text-base font-semibold leading-none">{t("credits")}</h2>
<p className="text-subtle text-sm font-medium leading-tight">{t("view_and_manage_credits")}</p>
@@ -3,7 +3,7 @@ import { SkeletonText, SkeletonContainer, SkeletonButton } from "@calcom/ui/comp
export function BillingCreditsSkeleton() {
return (
<SkeletonContainer>
<div className="bg-muted border-muted mt-5 rounded-xl p-1">
<div className="bg-cal-muted border-muted mt-5 rounded-xl p-1">
<div className="flex flex-col gap-1 px-4 py-5">
<SkeletonText className="h-4 w-20" /> {/* Credits title */}
<SkeletonText className="h-4 w-48" /> {/* View and manage credits description */}
@@ -14,7 +14,7 @@ export const SkeletonLoader = () => {
description={t("create_first_api_key_description", { appName: APP_NAME })}
borderInShellHeader={true}>
<SkeletonContainer>
<div className="divide-subtle border-subtle space-y-6 rounded-b-lg border border-t-0 px-6 py-4">
<div className="divide-subtle border-subtle stack-y-6 rounded-b-lg border border-t-0 px-6 py-4">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
</div>
@@ -13,8 +13,8 @@ export const SkeletonLoader = () => {
<div className="border-subtle mt-6 flex items-center rounded-t-xl border p-6 text-sm">
<SkeletonText className="h-8 w-1/3" />
</div>
<div className="border-subtle space-y-6 border-x px-4 py-6 sm:px-6">
<div className="[&>*]:bg-emphasis flex w-full items-center justify-center gap-x-2 [&>*]:animate-pulse">
<div className="border-subtle stack-y-6 border-x px-4 py-6 sm:px-6">
<div className="[&>*]:bg-emphasis flex w-full items-center justify-center gap-x-2 *:animate-pulse">
<div className="h-32 flex-1 rounded-md p-5" />
<div className="h-32 flex-1 rounded-md p-5" />
<div className="h-32 flex-1 rounded-md p-5" />
@@ -9,7 +9,7 @@ export const SkeletonLoader = () => {
return (
<SettingsHeader title={t("general")} description={t("general_description")} borderInShellHeader={true}>
<SkeletonContainer>
<div className="border-subtle space-y-6 rounded-b-xl border border-t-0 px-4 py-8 sm:px-6">
<div className="border-subtle stack-y-6 rounded-b-xl border border-t-0 px-4 py-8 sm:px-6">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
@@ -211,7 +211,7 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {
{t("schedule_timezone_change")}
</Button>
) : (
<div className="bg-muted border-subtle mt-2 rounded-md border p-4">
<div className="bg-cal-muted border-subtle mt-2 rounded-md border p-4">
<Label>{t("travel_schedule")}</Label>
<div className="border-subtle bg-default mt-4 rounded-md border text-sm">
{watchedTzSchedules.map((schedule, index) => {
@@ -18,7 +18,7 @@ export const SkeletonLoader = () => {
description={t("profile_description", { appName: APP_NAME })}
borderInShellHeader={true}>
<SkeletonContainer>
<div className="border-subtle space-y-6 rounded-b-lg border border-t-0 px-4 py-8">
<div className="border-subtle stack-y-6 rounded-b-lg border border-t-0 px-4 py-8">
<div className="flex items-center">
<SkeletonAvatar className="me-4 mt-0 h-16 w-16 px-4" />
<SkeletonButton className="h-6 w-32 rounded-md p-5" />
@@ -658,7 +658,7 @@ const ProfileForm = ({
</div>
{extraField}
<p className="text-subtle mt-1 flex gap-1 text-sm">
<Icon name="info" className="mt-0.5 flex-shrink-0" />
<Icon name="info" className="mt-0.5 shrink-0" />
<span className="flex-1">{t("tip_username_plus")}</span>
</p>
<div className="mt-6">
@@ -719,7 +719,7 @@ const ProfileForm = ({
{usersAttributes && usersAttributes?.length > 0 && (
<div className="mt-6 flex flex-col">
<Label>{t("attributes")}</Label>
<div className="flex flex-col space-y-4">
<div className="flex flex-col stack-y-4">
{usersAttributes.map((attribute, index) => (
<>
<DisplayInfo
@@ -37,10 +37,10 @@ export const AddNewTeamsForm = () => {
if (isLoading) {
return (
<SkeletonContainer as="div" className="space-y-6">
<div className="space-y-4">
<SkeletonContainer as="div" className="stack-y-6">
<div className="stack-y-4">
<SkeletonText className="h-4 w-32" />
<div className="space-y-2">
<div className="stack-y-2">
{[...Array(2)].map((_, i) => (
<div key={i} className="flex items-center space-x-2">
<SkeletonText className="h-5 w-5" />
@@ -49,9 +49,9 @@ export const AddNewTeamsForm = () => {
))}
</div>
</div>
<div className="space-y-4">
<div className="stack-y-4">
<SkeletonText className="h-4 w-32" />
<div className="space-y-2">
<div className="stack-y-2">
{[...Array(3)].map((_, i) => (
<SkeletonText key={i} className="h-10 w-full" />
))}
@@ -160,7 +160,7 @@ const AddNewTeamsFormChild = ({ teams }: { teams: { id: number; name: string; sl
<label className="text-emphasis mb-2 block text-sm font-medium leading-none">
Move existing teams
</label>
<ul className="mb-8 space-y-4">
<ul className="mb-8 stack-y-4">
{moveTeams.map((team, index) => {
const currentTeam = teams.find((t) => t.id === team.id);
// If the team slug conflicts with the org slug, this team must be moved
@@ -136,7 +136,7 @@ export const AddNewTeamMembersForm = () => {
if (isLoading) {
return (
<SkeletonContainer as="div" className="space-y-6">
<SkeletonContainer as="div" className="stack-y-6">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
<SkeletonButton className="mr-6 h-8 w-20 rounded-md p-5" />
@@ -151,10 +151,10 @@ export const AddNewTeamMembersForm = () => {
<Alert severity="error" message={orgCreation.errorMessage} />
</div>
)}
<div className="space-y-6">
<div className="stack-y-6">
<div className="flex space-x-3">
<form onSubmit={onSubmit} className="flex w-full items-end space-x-2">
<div className="flex-grow">
<div className="grow">
<TextField
label={t("email")}
type="email"
@@ -34,7 +34,7 @@ const PaymentStatusView = () => {
if (paymentStatus === "failed" || paymentError) {
return (
<div className="flex min-h-[500px] flex-col items-center justify-center space-y-6 px-4 sm:px-6">
<div className="flex min-h-[500px] flex-col items-center justify-center stack-y-6 px-4 sm:px-6">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-red-100">
<Icon name="x" className="h-6 w-6 text-red-600" />
</div>
@@ -50,7 +50,7 @@ const PaymentStatusView = () => {
}
return (
<div className="flex min-h-[500px] flex-col items-center justify-center space-y-6 px-4 sm:px-6">
<div className="flex min-h-[500px] flex-col items-center justify-center stack-y-6 px-4 sm:px-6">
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-green-100">
<Icon name="check" className="h-6 w-6 text-green-600 dark:text-green-400" />
</div>
@@ -63,7 +63,7 @@ const ResumeOnboardingView = () => {
if (isLoadingOrgOnboarding) {
return (
<SkeletonContainer className="space-y-4">
<SkeletonContainer className="stack-y-4">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-4 w-3/4" />
<SkeletonText className="h-4 w-1/2" />
@@ -101,7 +101,7 @@ const ResumeOnboardingView = () => {
// Loading state while redirecting
return (
<SkeletonContainer className="space-y-4">
<SkeletonContainer className="stack-y-4">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-4 w-3/4" />
</SkeletonContainer>
@@ -55,16 +55,16 @@ export function BlocklistEntryDetailsSheet({
<SheetBody className="px-6">
{isLoading ? (
<div className="mt-3 space-y-3">
<div className="mt-3 stack-y-3">
<SkeletonText className="h-6 w-32" />
<SkeletonText className="h-40 w-full" />
</div>
) : data?.entry ? (
<div className="mt-3 space-y-6">
<div className="mt-3 stack-y-6">
<div className="bg-subtle rounded-xl p-1">
<h2 className="text-default p-5 text-sm font-semibold">{t("details")}</h2>
<div className="bg-default space-y-3 rounded-xl p-5">
<div className="bg-default stack-y-3 rounded-xl p-5">
<div>
<label className="text-default block text-sm font-semibold">
{data.entry.type === "EMAIL" ? t("email") : t("domain")}
@@ -115,7 +115,7 @@ export function BlocklistEntryDetailsSheet({
<div className="bg-subtle rounded-xl p-1">
<h2 className="text-default p-5 text-sm font-semibold">{t("history")}</h2>
{data.auditHistory.length > 0 ? (
<div className="space-y-3">
<div className="stack-y-3">
{data.auditHistory.map((audit) => (
<div key={audit.id} className="bg-default border-subtle rounded-xl border p-4">
<div className="flex items-start justify-between">
@@ -104,10 +104,10 @@ export function BookingReportEntryDetailsModal({
<DialogContent enableOverflow>
<DialogHeader title={t("review_report") + ` - ${entry.bookerEmail}`} />
<form onSubmit={handleSubmit(onSubmit)}>
<div className="space-y-5">
<div className="stack-y-5">
<div className="bg-subtle rounded-xl p-1">
<h2 className="text-emphasis px-5 py-4 text-base font-semibold">{t("details")}</h2>
<div className="bg-default space-y-4 rounded-xl p-5">
<div className="bg-default stack-y-4 rounded-xl p-5">
<div>
<label className="text-emphasis mb-1 block text-sm font-semibold">{t("email")}</label>
<p className="text-subtle text-sm">{entry.bookerEmail}</p>
@@ -90,7 +90,7 @@ export function CreateBlocklistEntryModal({ isOpen, onClose }: CreateBlocklistEn
<DialogContent enableOverflow>
<DialogHeader title={t("add_to_blocklist")} />
<form onSubmit={handleSubmit(onSubmit)}>
<div className="space-y-4">
<div className="stack-y-4">
<div>
<Label htmlFor="type" className="text-emphasis mb-2 block text-sm font-medium">
{t("what_would_you_like_to_block")}
@@ -89,7 +89,7 @@ export default function PlatformBillingUpgrade() {
subtitle={t("manage_billing_description")}
isPlatformUser={true}>
<>
<div className="border-subtle space-y-6 rounded-lg border px-6 py-8 text-sm sm:space-y-8">
<div className="border-subtle stack-y-6 rounded-lg border px-6 py-8 text-sm sm:stack-y-8">
<CtaRow
title={t("view_and_manage_billing_details")}
description={t("view_and_edit_billing_details")}>
@@ -12,7 +12,7 @@ import { showToast } from "@calcom/ui/components/toast";
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="border-subtle space-y-6 border border-t-0 px-4 py-8 sm:px-6">
<div className="border-subtle stack-y-6 border border-t-0 px-4 py-8 sm:px-6">
<SkeletonText className="h-8 w-full" />
</div>
</SkeletonContainer>
@@ -34,7 +34,7 @@ interface PasswordViewProps {
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="border-subtle space-y-6 border-x px-4 py-8 sm:px-6">
<div className="border-subtle stack-y-6 border-x px-4 py-8 sm:px-6">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
@@ -265,7 +265,7 @@ const PasswordView = ({ user }: PasswordViewProps) => {
: timeoutOptions[1]
}
isSearchable={false}
className="block h-[36px] !w-auto min-w-0 flex-none rounded-md text-sm"
className="block h-[36px] w-auto! min-w-0 flex-none rounded-md text-sm"
onChange={(event) => {
setSessionTimeout(event?.value);
}}
@@ -15,7 +15,7 @@ import EnableTwoFactorModal from "@components/settings/EnableTwoFactorModal";
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="mb-8 mt-6 space-y-6">
<div className="mb-8 mt-6 stack-y-6">
<div className="flex items-center">
<SkeletonButton className="mr-6 h-8 w-20 rounded-md p-5" />
<SkeletonText className="h-8 w-full" />
+6 -6
View File
@@ -340,12 +340,12 @@ export default function Signup({
) : null}
<div
className={classNames(
"light bg-muted 2xl:bg-default flex min-h-screen w-full flex-col items-center justify-center [--cal-brand:#111827] dark:[--cal-brand:#FFFFFF]",
"light bg-cal-muted 2xl:bg-default flex min-h-screen w-full flex-col items-center justify-center [--cal-brand:#111827] dark:[--cal-brand:#FFFFFF]",
"[--cal-brand-subtle:#9CA3AF]",
"[--cal-brand-text:#FFFFFF] dark:[--cal-brand-text:#000000]",
"[--cal-brand-emphasis:#101010] dark:[--cal-brand-emphasis:#e1e1e1] "
)}>
<div className="bg-muted 2xl:border-subtle grid w-full max-w-[1440px] grid-cols-1 grid-rows-1 overflow-hidden lg:grid-cols-2 2xl:rounded-[20px] 2xl:border 2xl:py-6">
<div className="bg-cal-muted 2xl:border-subtle grid w-full max-w-[1440px] grid-cols-1 grid-rows-1 overflow-hidden lg:grid-cols-2 2xl:rounded-[20px] 2xl:border 2xl:py-6">
{/* Left side */}
<div className="ml-auto mr-auto mt-0 flex w-full max-w-xl flex-col px-4 pt-6 sm:px-16 md:px-20 lg:mt-24 2xl:px-28">
{displayBackButton && (
@@ -575,11 +575,11 @@ export default function Signup({
{isGoogleLoginEnabled && (
<div className="mt-6">
<div className="relative flex items-center">
<div className="border-subtle flex-grow border-t" />
<span className="text-subtle mx-2 flex-shrink text-sm font-normal leading-none">
<div className="border-subtle grow border-t" />
<span className="text-subtle mx-2 shrink text-sm font-normal leading-none">
{t("or").toLocaleLowerCase()}
</span>
<div className="border-subtle flex-grow border-t" />
<div className="border-subtle grow border-t" />
</div>
</div>
)}
@@ -699,7 +699,7 @@ export default function Signup({
</div>
</>
)}
<div className="border-default hidden rounded-bl-2xl rounded-br-none rounded-tl-2xl border border-r-0 border-dashed bg-black/[3%] dark:bg-white/5 lg:block lg:py-[6px] lg:pl-[6px]">
<div className="border-default hidden rounded-bl-2xl rounded-br-none rounded-tl-2xl border border-r-0 border-dashed bg-black/3 dark:bg-white/5 lg:block lg:py-[6px] lg:pl-[6px]">
<img className="block dark:hidden" src="/mock-event-type-list.svg" alt="Cal.com Booking Page" />
<img
className="hidden dark:block"
+7 -13
View File
@@ -65,7 +65,7 @@ function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {
<li
key={index}
className={classNames(
"bg-default hover:bg-muted border-subtle group relative border-b transition first:rounded-t-md last:rounded-b-md last:border-b-0",
"bg-default hover:bg-cal-muted border-subtle group relative border-b transition first:rounded-t-md last:rounded-b-md last:border-b-0",
!isEmbed && "bg-default"
)}>
<div className="px-6 py-4 ">
@@ -81,19 +81,14 @@ function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {
}}
data-testid="event-type-link"
className="flex justify-between">
<div className="flex-shrink">
<div className="shrink">
<div className="flex flex-wrap items-center space-x-2 rtl:space-x-reverse">
<h2 className=" text-default text-sm font-semibold">{type.title}</h2>
</div>
<EventTypeDescription className="text-sm" eventType={type} />
</div>
<div className="mt-1 self-center">
<UserAvatarGroup
truncateAfter={4}
className="flex flex-shrink-0"
size="sm"
users={type.users}
/>
<UserAvatarGroup truncateAfter={4} className="flex shrink-0" size="sm" users={type.users} />
</div>
</Link>
</div>
@@ -104,13 +99,13 @@ function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {
const SubTeams = () =>
team.children.length ? (
<ul className="divide-subtle border-subtle bg-default !static w-full divide-y rounded-md border">
<ul className="divide-subtle border-subtle bg-default static! w-full divide-y rounded-md border">
{team.children.map((ch, i) => {
const memberCount = team.members.filter(
(mem) => mem.subteams?.includes(ch.slug) && mem.accepted
).length;
return (
<li key={i} className="hover:bg-muted w-full rounded-md transition">
<li key={i} className="hover:bg-cal-muted w-full rounded-md transition">
<Link href={`/${ch.slug}`} className="flex items-center justify-between">
<div className="flex items-center px-5 py-5">
<div className="ms-3 inline-block truncate">
@@ -134,7 +129,7 @@ function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {
})}
</ul>
) : (
<div className="space-y-6" data-testid="event-types">
<div className="stack-y-6" data-testid="event-types">
<div className="overflow-hidden rounded-sm border dark:border-gray-900">
<div className="text-muted p-8 text-center">
<h2 className="font-cal text-emphasis mb-2 text-3xl">{` ${t("org_no_teams_yet")}`}</h2>
@@ -160,8 +155,7 @@ function TeamPage({ team, considerUnpublished, isValidOrgDomain }: PageProps) {
{!isBioEmpty && (
<>
<div
className=" text-subtle break-words text-sm [&_a]:text-blue-500 [&_a]:underline [&_a]:hover:text-blue-600"
className=" text-subtle wrap-break-word text-sm [&_a]:text-blue-500 [&_a]:underline [&_a]:hover:text-blue-600"
dangerouslySetInnerHTML={{ __html: team.safeBio }}
/>
</>
+1 -1
View File
@@ -31,7 +31,7 @@ export default function UpgradePage() {
return (
<Shell>
<div className="max-w-screen-lg">
<div className="max-w-(--breakpoint-lg)">
{doesUserHaveOrgToUpgrade.data ? (
<EmptyScreen
headline={t("your_upgrade_is_here")}
@@ -90,8 +90,7 @@ export function UserPage(props: PageProps) {
{!isBioEmpty && (
<>
<div
className="text-default break-words text-sm [&_a]:text-blue-500 [&_a]:underline [&_a]:hover:text-blue-600"
className="text-default wrap-break-word text-sm [&_a]:text-blue-500 [&_a]:underline [&_a]:hover:text-blue-600"
dangerouslySetInnerHTML={{ __html: props.safeBio }}
/>
</>
@@ -116,7 +115,7 @@ export function UserPage(props: PageProps) {
eventType: type,
});
}}
className="bg-default border-subtle dark:bg-muted dark:hover:bg-emphasis hover:bg-muted group relative border-b transition first:rounded-t-md last:rounded-b-md last:border-b-0"
className="bg-default border-subtle dark:bg-cal-muted dark:hover:bg-emphasis hover:bg-cal-muted group relative border-b transition first:rounded-t-md last:rounded-b-md last:border-b-0"
data-testid="event-type-link">
<Icon
name="arrow-right"
@@ -447,7 +447,7 @@ export function LogInOverlay(props: LogInOverlayProps) {
description={t("choose_how_you_d_like_to_appear_on_the_call")}
className="bg-black/80 p-6 sm:max-w-lg">
<div className="mt-2 pb-4">
<div className="space-y-4">
<div className="stack-y-4">
<div>
<div className="font-semibold">{t("join_as_guest")}</div>
<p className="text-subtle text-sm">{t("ideal_for_one_time_calls")}</p>
@@ -516,7 +516,7 @@ export function LogInOverlay(props: LogInOverlayProps) {
{/* Divider */}
<hr className="my-6 h-0.5 border-t-0 bg-neutral-100 dark:bg-white/10" />
<div className="mt-5 space-y-4">
<div className="mt-5 stack-y-4">
<div>
<h4 className="text-base font-semibold text-black dark:text-white">
{t("sign_in_to_cal_com")}
@@ -568,7 +568,7 @@ export function VideoMeetingInfo(props: VideoMeetingInfo) {
"no-scrollbar fixed left-0 top-0 z-30 flex h-full w-64 transform justify-between overflow-x-hidden overflow-y-scroll transition-all duration-300 ease-in-out",
open ? "translate-x-0" : "-translate-x-[232px]"
)}>
<main className="prose-sm prose max-w-64 prose-a:text-white prose-h3:text-white prose-h3:font-cal scroll-bar scrollbar-track-w-20 w-full overflow-scroll overflow-x-hidden border-r border-gray-300/20 bg-black/80 p-4 text-white shadow-sm backdrop-blur-lg">
<main className="prose-sm prose max-w-64 prose-a:text-white prose-h3:text-white prose-h3:font-cal scroll-bar scrollbar-track-w-20 w-full overflow-scroll overflow-x-hidden! border-r border-gray-300/20 bg-black/80 p-4 text-white shadow-sm backdrop-blur-lg">
<h3>{t("what")}:</h3>
<p>{booking.title}</p>
<h3>{t("invitee_timezone")}:</h3>