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:
447 files changed
+14783
-28932
No files matched your search
@@ -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>
|
||||
|
||||
+4
-4
@@ -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">
|
||||
|
||||
+2
-2
@@ -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>
|
||||
|
||||
+1
-1
@@ -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" />
|
||||
|
||||
Reference in new issue
Block a user