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

+3 -3
View File
@@ -127,7 +127,7 @@ function MatchingTeamMembers({
if (!hasValidValue) {
return (
<div className="border-subtle bg-muted mt-4 space-y-3 rounded-md border p-4">
<div className="border-subtle bg-cal-muted mt-4 stack-y-3 rounded-md border p-4">
<div className="text-subtle flex items-center text-sm font-medium">
<span>{t("no_filter_set")}</span>
</div>
@@ -138,7 +138,7 @@ function MatchingTeamMembers({
if (isPending) {
return (
<div
className="border-subtle bg-muted mt-4 space-y-3 rounded-md border p-4"
className="border-subtle bg-cal-muted mt-4 stack-y-3 rounded-md border p-4"
data-testid="segment_loading_state">
<div className="text-emphasis flex items-center text-sm font-medium">
<div className="bg-subtle h-4 w-32 animate-pulse rounded" />
@@ -161,7 +161,7 @@ function MatchingTeamMembers({
const { result: matchingTeamMembers } = matchingTeamMembersWithResult;
return (
<div className="border-subtle bg-muted mt-4 space-y-3 rounded-md border p-4">
<div className="border-subtle bg-cal-muted mt-4 stack-y-3 rounded-md border p-4">
<div className="text-emphasis flex items-center text-sm font-medium">
<span>{t("x_matching_members", { x: matchingTeamMembers?.length ?? 0 })}</span>
</div>
+2 -2
View File
@@ -348,8 +348,8 @@ export default AdminAppsList;
const SkeletonLoader = () => {
return (
<SkeletonContainer className="w-[30rem] pr-10">
<div className="mb-8 mt-6 space-y-6">
<SkeletonContainer className="w-120 pr-10">
<div className="mb-8 mt-6 stack-y-6">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
@@ -92,7 +92,7 @@ function CategoryTab({ selectedCategory, categories, searchText, onCategoryChang
<div className="bg-default flex h-12 w-5 items-center justify-end">
<Icon name="chevron-left" className="text-subtle h-4 w-4" />
</div>
<div className="to-default flex h-12 w-5 bg-gradient-to-l from-transparent" />
<div className="to-default flex h-12 w-5 bg-linear-to-l from-transparent" />
</button>
)}
<ul
@@ -104,7 +104,7 @@ function CategoryTab({ selectedCategory, categories, searchText, onCategoryChang
onCategoryChange(null);
}}
className={classNames(
selectedCategory === null ? "bg-emphasis text-default" : "bg-muted text-emphasis",
selectedCategory === null ? "bg-emphasis text-default" : "bg-cal-muted text-emphasis",
"hover:bg-emphasis min-w-max rounded-md px-4 py-2.5 text-sm font-medium transition hover:cursor-pointer"
)}>
{t("all")}
@@ -120,7 +120,7 @@ function CategoryTab({ selectedCategory, categories, searchText, onCategoryChang
}
}}
className={classNames(
selectedCategory === cat ? "bg-emphasis text-default" : "bg-muted text-emphasis",
selectedCategory === cat ? "bg-emphasis text-default" : "bg-cal-muted text-emphasis",
"hover:bg-emphasis rounded-md px-4 py-2.5 text-sm font-medium transition hover:cursor-pointer"
)}>
{cat === "crm" ? cat.toUpperCase() : cat[0].toUpperCase() + cat.slice(1)}
@@ -129,7 +129,7 @@ function CategoryTab({ selectedCategory, categories, searchText, onCategoryChang
</ul>
{rightVisible && (
<button onClick={handleRight} className="absolute bottom-0 right-0 flex ">
<div className="to-default flex h-12 w-5 bg-gradient-to-r from-transparent" />
<div className="to-default flex h-12 w-5 bg-linear-to-r from-transparent" />
<div className="bg-default flex h-12 w-5 items-center justify-end">
<Icon name="chevron-right" className="text-subtle h-4 w-4" />
</div>
@@ -120,7 +120,7 @@ export function AppCard({ app, credentials, searchText, userAdminTeams }: AppCar
<span className="pl-1 text-subtle">{props.reviews} reviews</span>
</div> */}
<p
className="text-default mt-2 flex-grow text-sm"
className="text-default mt-2 grow text-sm"
dangerouslySetInnerHTML={{ __html: markdownToSafeHTML(app.description) }}
style={{
overflow: "hidden",
@@ -133,7 +133,7 @@ export function AppCard({ app, credentials, searchText, userAdminTeams }: AppCar
<div className="mt-5 flex max-w-full flex-row justify-between gap-2">
<Button
color="secondary"
className="flex w-32 flex-grow justify-center"
className="flex w-32 grow justify-center"
href={`/apps/${app.slug}`}
data-testid={`app-store-app-card-${app.slug}`}>
{t("details")}
@@ -37,7 +37,7 @@ export function AppStoreCategories({
data-testid={`app-store-category-${category.name}`}
className="relative flex rounded-md"
style={{ background: "radial-gradient(farthest-side at top right, #a2abbe 0%, #E3E3E3 100%)" }}>
<div className="dark:bg-muted light:bg-[url('/noise.svg')] dark:from-subtle dark:to-muted w-full self-center bg-cover bg-center bg-no-repeat px-6 py-4 dark:bg-gradient-to-tr">
<div className="dark:bg-cal-muted light:bg-[url('/noise.svg')] dark:from-subtle dark:to-muted w-full self-center bg-cover bg-center bg-no-repeat px-6 py-4 dark:bg-linear-to-tr">
<Image
src={`/app-categories/${category.name}.svg`}
width={100}
@@ -17,10 +17,10 @@ export function SkeletonLoader({ className }: { className?: string }) {
function SkeletonItem() {
return (
<li className="group flex w-full items-center justify-between p-3">
<div className="flex-grow truncate text-sm">
<div className="grow truncate text-sm">
<div className="flex justify-start space-x-2 rtl:space-x-reverse">
<SkeletonText className="h-10 w-10" />
<div className="space-y-1">
<div className="stack-y-1">
<div>
<SkeletonText className="h-4 w-16" />
</div>
@@ -30,7 +30,7 @@ function SkeletonItem() {
</div>
</div>
</div>
<div className="mt-4 hidden flex-shrink-0 sm:ml-5 sm:mt-0 lg:flex">
<div className="mt-4 hidden shrink-0 sm:ml-5 sm:mt-0 lg:flex">
<div className="flex justify-between space-x-2 rtl:space-x-reverse">
<SkeletonText className="h-11 w-32" />
</div>
@@ -45,7 +45,7 @@ export const SelectSkeletonLoader = ({ className }: { className?: string }) => {
"border-subtle group flex w-full items-center justify-between rounded-sm border px-[10px] py-3",
className
)}>
<div className="flex-grow truncate text-sm">
<div className="grow truncate text-sm">
<div className="flex justify-between">
<SkeletonText className="h-4 w-32" />
<SkeletonText className="h-4 w-4" />
+7 -7
View File
@@ -351,7 +351,7 @@ const BookerComponent = ({
data-testid="booker-container"
className={classNames(
...getBookerSizeClassNames(layout, bookerState, hideEventTypeDetails),
`bg-default dark:bg-muted grid max-w-full items-start dark:[color-scheme:dark] sm:transition-[width] sm:duration-300 sm:motion-reduce:transition-none md:flex-row`,
`bg-default dark:bg-cal-muted grid max-w-full items-start dark:scheme-dark sm:transition-[width] sm:duration-300 sm:motion-reduce:transition-none md:flex-row`,
// We remove border only when the content covers entire viewport. Because in embed, it can almost never be the case that it covers entire viewport, we show the border there
(layout === BookerLayouts.MONTH_VIEW || isEmbed) && "border-subtle rounded-md",
!isEmbed && "sm:transition-[width] sm:duration-300",
@@ -366,7 +366,7 @@ const BookerComponent = ({
className={classNames(
layout === BookerLayouts.MONTH_VIEW && "fixed top-4 z-10 ltr:right-4 rtl:left-4",
(layout === BookerLayouts.COLUMN_VIEW || layout === BookerLayouts.WEEK_VIEW) &&
"bg-default dark:bg-muted sticky top-0 z-10"
"bg-default dark:bg-cal-muted sticky top-0 z-10"
)}>
{isPlatform && layout === BookerLayouts.MONTH_VIEW ? (
<></>
@@ -406,7 +406,7 @@ const BookerComponent = ({
<StickyOnDesktop key="meta" className={classNames("relative z-10 flex [grid-area:meta]")}>
<BookerSection
area="meta"
className="max-w-screen flex w-full flex-col md:w-[var(--booker-meta-width)]">
className="max-w-screen flex w-full flex-col md:w-(--booker-meta-width)">
{!hideEventTypeDetails && orgBannerUrl && (
<img
loading="eager"
@@ -453,7 +453,7 @@ const BookerComponent = ({
<BookerSection
key="book-event-form"
area="main"
className="sticky top-0 ml-[-1px] h-full p-6 md:w-[var(--booker-main-width)] md:border-l"
className="sticky top-0 -ml-px h-full p-6 md:w-(--booker-main-width) md:border-l"
{...fadeInLeft}
visible={bookerState === "booking" && !shouldShowFormInDialog}>
{EventBooker}
@@ -465,7 +465,7 @@ const BookerComponent = ({
visible={bookerState !== "booking" && layout === BookerLayouts.MONTH_VIEW}
{...fadeInLeft}
initial="visible"
className="md:border-subtle ml-[-1px] h-full flex-shrink px-5 py-3 md:border-l lg:w-[var(--booker-main-width)]">
className="md:border-subtle -ml-px h-full shrink px-5 py-3 md:border-l lg:w-(--booker-main-width)">
<DatePicker
classNames={customClassNames?.datePickerCustomClassNames}
event={event}
@@ -480,7 +480,7 @@ const BookerComponent = ({
key="large-calendar"
area="main"
visible={layout === BookerLayouts.WEEK_VIEW}
className="border-subtle sticky top-0 ml-[-1px] h-full md:border-l"
className="border-subtle sticky top-0 -ml-px h-full md:border-l"
{...fadeInLeft}>
<LargeCalendar
extraDays={extraDays}
@@ -499,7 +499,7 @@ const BookerComponent = ({
className={classNames(
"border-subtle rtl:border-default flex h-full w-full flex-col overflow-x-auto px-5 py-3 pb-0 rtl:border-r ltr:md:border-l",
layout === BookerLayouts.MONTH_VIEW &&
"h-full overflow-hidden md:w-[var(--booker-timeslots-width)]",
"h-full overflow-hidden md:w-(--booker-timeslots-width)",
layout !== BookerLayouts.MONTH_VIEW && "sticky top-0"
)}
ref={timeslotsRef}
@@ -214,7 +214,7 @@ export const AvailableTimeSlots = ({
<div
ref={containerRef}
className={classNames(
limitHeight && "scroll-bar flex-grow overflow-auto md:h-[400px]",
limitHeight && "scroll-bar grow overflow-auto md:h-[400px]",
!limitHeight && "flex h-full w-full flex-row gap-4",
`${customClassNames?.availableTimeSlotsContainer}`
)}>
@@ -223,7 +223,7 @@ export const AvailableTimeSlots = ({
{!isLoading &&
slotsPerDay.length > 0 &&
slotsPerDay.map((slots) => (
<div key={slots.date} className="scroll-bar h-full w-full overflow-y-auto overflow-x-hidden">
<div key={slots.date} className="scroll-bar h-full w-full overflow-y-auto overflow-x-hidden!">
<AvailableTimes
className={customClassNames?.availableTimeSlotsContainer}
customClassNames={customClassNames?.availableTimes}
@@ -36,12 +36,12 @@ export function DecoyBookingSuccessCard({
<div className="flex items-end justify-center px-4 pb-20 pt-4 text-center sm:flex sm:p-0">
<div className="main inset-0 my-4 flex flex-col transition-opacity sm:my-0" aria-hidden="true">
<div
className="bg-default dark:bg-muted border-booker border-booker-width inline-block transform overflow-hidden rounded-lg px-8 pb-4 pt-5 text-left align-bottom transition-all sm:my-8 sm:w-full sm:max-w-xl sm:py-8 sm:align-middle"
className="bg-default dark:bg-cal-muted border-booker border-booker-width inline-block transform overflow-hidden rounded-lg px-8 pb-4 pt-5 text-left align-bottom transition-all sm:my-8 sm:w-full sm:max-w-xl sm:py-8 sm:align-middle"
role="dialog"
aria-modal="true"
aria-labelledby="modal-headline">
<div>
<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-5 w-5 text-green-600 dark:text-green-400" />
</div>
</div>
@@ -178,7 +178,7 @@ export const EventMeta = ({
{(event.description || translatedDescription) && (
<EventMetaBlock
data-testid="event-meta-description"
contentClassName="mb-8 break-words max-w-full max-h-[180px] scroll-bar pr-4">
contentClassName="mb-8 wrap-break-word max-w-full max-h-[180px] scroll-bar pr-4">
<div
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
@@ -187,7 +187,7 @@ export const EventMeta = ({
/>
</EventMetaBlock>
)}
<div className="space-y-4 font-medium rtl:-mr-2">
<div className="stack-y-4 font-medium rtl:-mr-2">
{rescheduleUid && bookingData && (
<EventMetaBlock icon="calendar">
{t("former_time")}
@@ -223,7 +223,7 @@ export const EventMeta = ({
<>{timezone}</>
) : (
<span
className={`current-timezone before:bg-subtle min-w-32 -mt-[2px] flex h-6 max-w-full items-center justify-start before:absolute before:inset-0 before:bottom-[-3px] before:left-[-30px] before:top-[-3px] before:w-[calc(100%_+_35px)] before:rounded-md before:py-3 before:opacity-0 before:transition-opacity ${
className={`current-timezone before:bg-subtle min-w-32 -mt-[2px] flex h-6 max-w-full items-center justify-start before:absolute before:inset-0 before:bottom-[-3px] before:left-[-30px] before:top-[-3px] before:w-[calc(100%+35px)] before:rounded-md before:py-3 before:opacity-0 before:transition-opacity ${
event.lockTimeZoneToggleOnBookingPage ? "cursor-not-allowed" : ""
}`}
data-testid="event-meta-current-timezone">
@@ -233,8 +233,8 @@ export const EventMeta = ({
timezoneSelectCustomClassname={classNames?.eventMetaTimezoneSelect}
classNames={{
control: () =>
"!min-h-0 p-0 w-full border-0 bg-transparent focus-within:ring-0 shadow-none!",
menu: () => "!w-64 max-w-[90vw] mb-1 ",
"min-h-0! p-0 w-full border-0 bg-transparent focus-within:ring-0 shadow-none!",
menu: () => "w-64! max-w-[90vw] mb-1 ",
singleValue: () => "text-text py-1",
indicatorsContainer: () => "ml-auto",
container: () => "max-w-full",
@@ -113,7 +113,7 @@ export function Header({
return (
<div className="border-default relative z-10 flex border-b px-5 py-4 ltr:border-l rtl:border-r">
<div className="flex items-center gap-5 rtl:flex-grow">
<div className="flex items-center gap-5 rtl:grow">
<FormattedSelectedDateRange />
<ButtonGroup>
<Button
@@ -35,7 +35,7 @@ export const OutOfOfficeInSlots = (props: IOutOfOfficeInSlotsProps) => {
<div className="bg-emphasis flex h-14 w-14 flex-col items-center justify-center rounded-full">
<span className="m-auto text-center text-lg">{emoji}</span>
</div>
<div className="space-y-2 text-center">
<div className="stack-y-2 text-center">
<p className="mt-2 text-base font-bold">
{t("ooo_user_is_ooo", { displayName: fromUser.displayName })}
</p>
@@ -28,7 +28,7 @@ interface IOverlayCalendarSettingsModalProps {
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="border-subtle mt-3 space-y-4 rounded-xl border px-4 py-4 ">
<div className="border-subtle mt-3 stack-y-4 rounded-xl border px-4 py-4 ">
<SkeletonText className="h-4 w-full" />
<SkeletonText className="h-4 w-full" />
<SkeletonText className="h-4 w-full" />
@@ -99,7 +99,7 @@ export function OverlayCalendarSettingsModal({
/>
)
}
<div className="flex-grow truncate pl-2">
<div className="grow truncate pl-2">
<ListItemTitle component="h3" className="space-x-2 rtl:space-x-reverse">
<Link href={`/apps/${item.integration.slug}`}>
{item.integration.name || item.integration.title}
@@ -109,7 +109,7 @@ export function OverlayCalendarSettingsModal({
</div>
</div>
<div className="border-subtle w-full border-t pt-4">
<ul className="space-y-4">
<ul className="stack-y-4">
{item.calendars.map((cal, index) => {
const id = cal.integrationTitle ?? `calendar-switch-${index}`;
return (
@@ -2,7 +2,7 @@ import { useLocale } from "@calcom/lib/hooks/useLocale";
const UnAvailableMessage = ({ children, title }: { children: React.ReactNode; title: string }) => (
<div className="mx-auto w-full max-w-2xl">
<div className="border-subtle bg-default dark:bg-muted overflow-hidden rounded-lg border p-10">
<div className="border-subtle bg-default dark:bg-cal-muted overflow-hidden rounded-lg border p-10">
<h2 className="font-cal mb-4 text-3xl">{title}</h2>
{children}
</div>
@@ -169,7 +169,7 @@ const SlotItem = ({
data-time={slot.time}
onClick={onButtonClick}
className={classNames(
`hover:border-brand-default min-h-9 mb-2 flex h-auto w-full flex-grow flex-col justify-center py-2`,
`hover:border-brand-default min-h-9 mb-2 flex h-auto w-full grow flex-col justify-center py-2`,
selectedSlots?.includes(slot.time) && "border-brand-default",
`${customClassNames}`
)}
@@ -242,7 +242,7 @@ const SlotItem = ({
{isOverlapping && (
<HoverCard.Portal>
<HoverCard.Content side="top" align="end" sideOffset={2}>
<div className="text-emphasis bg-inverted w-[var(--booker-timeslots-width)] rounded-md p-3">
<div className="text-emphasis bg-inverted w-(--booker-timeslots-width) rounded-md p-3">
<div className="flex items-center gap-2">
<p>Busy</p>
</div>
@@ -36,7 +36,7 @@ export const AvailableTimesHeader = ({
return (
<header
className={classNames(
`dark:bg-muted dark:before:bg-muted mb-3 flex w-full flex-row items-center font-medium`,
`dark:bg-cal-muted dark:before:bg-cal-muted mb-3 flex w-full flex-row items-center font-medium`,
"bg-default before:bg-default",
customClassNames?.availableTimeSlotsHeaderContainer
)}>
@@ -36,12 +36,12 @@ export function BookingSuccessCard({
<div className="flex items-end justify-center px-4 pb-20 pt-4 text-center sm:flex sm:p-0">
<div className="main inset-0 my-4 flex flex-col transition-opacity sm:my-0" aria-hidden="true">
<div
className="bg-default dark:bg-muted border-booker border-booker-width inline-block transform overflow-hidden rounded-lg px-8 pb-4 pt-5 text-left align-bottom transition-all sm:my-8 sm:w-full sm:max-w-xl sm:py-8 sm:align-middle"
className="bg-default dark:bg-cal-muted border-booker border-booker-width inline-block transform overflow-hidden rounded-lg px-8 pb-4 pt-5 text-left align-bottom transition-all sm:my-8 sm:w-full sm:max-w-xl sm:py-8 sm:align-middle"
role="dialog"
aria-modal="true"
aria-labelledby="modal-headline">
<div>
<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-5 w-5 text-green-600 dark:text-green-400" />
</div>
</div>
@@ -83,7 +83,7 @@ export const VerifyCodeDialog = ({
useEffect(() => setValue(""), [isOpenDialog]);
const digitClassName = "h-12 w-12 !text-xl text-center";
const digitClassName = "h-12 w-12 text-xl! text-center";
return (
<Dialog
@@ -35,7 +35,7 @@ function RenderLocationTooltip({ locations }: { locations: LocationObject[] }) {
const { t } = useLocale();
return (
<div className="my-2 me-2 flex w-full flex-col space-y-3 break-words">
<div className="my-2 me-2 flex w-full flex-col stack-y-3 wrap-break-word">
<p>{t("select_on_next_step")}</p>
{locations.map(
(
@@ -115,7 +115,7 @@ export function AvailableEventLocations({ locations }: { locations: LocationObje
</Tooltip>
</div>
) : filteredLocations.length === 1 ? (
<div className="text-default mr-6 flex w-full flex-col space-y-4 break-words text-sm rtl:mr-2">
<div className="text-default mr-6 flex w-full flex-col stack-y-4 wrap-break-word text-sm rtl:mr-2">
{filteredLocations}
</div>
) : null;
@@ -96,20 +96,20 @@ export const EventMetaBlock = ({
alt=""
// @TODO: Use SVG's instead of images, so we can get rid of the filter.
className={classNames(
"mr-2 mt-[2px] h-4 w-4 flex-shrink-0",
isDark === undefined && "[filter:invert(0.5)_brightness(0.5)]",
(isDark === undefined || isDark) && "dark:[filter:invert(0.65)_brightness(0.9)]"
"mr-2 mt-[2px] h-4 w-4 shrink-0",
isDark === undefined && "filter-[invert(0.5)_brightness(0.5)]",
(isDark === undefined || isDark) && "dark:filter-[invert(0.65)_brightness(0.9)]"
)}
/>
) : (
<>
{customIcon ||
(!!icon && (
<Icon name={icon} className="relative z-20 mr-2 mt-[2px] h-4 w-4 flex-shrink-0 rtl:ml-2" />
<Icon name={icon} className="relative z-20 mr-2 mt-[2px] h-4 w-4 shrink-0 rtl:ml-2" />
))}
</>
)}
<div className={classNames("relative z-10 max-w-full break-words", contentClassName)}>{children}</div>
<div className={classNames("relative z-10 max-w-full wrap-break-word", contentClassName)}>{children}</div>
</div>
);
};
@@ -183,7 +183,7 @@ export const EventDetails = ({ event, blocks = defaultEventDetailsBlocks }: Even
key={block}
customIcon={
<PriceIcon
className="relative z-20 mr-2 mt-[2px] h-4 w-4 flex-shrink-0 rtl:ml-2"
className="relative z-20 mr-2 mt-[2px] h-4 w-4 shrink-0 rtl:ml-2"
currency={event.currency}
/>
}>
@@ -101,7 +101,7 @@ export const EventDuration = ({
<div className="bg-default flex h-9 w-5 items-center justify-end rounded-md">
<Icon name="chevron-left" className="text-subtle h-4 w-4" />
</div>
<div className="to-default flex h-9 w-5 bg-gradient-to-l from-transparent" />
<div className="to-default flex h-9 w-5 bg-linear-to-l from-transparent" />
</button>
)}
<ul
@@ -127,7 +127,7 @@ export const EventDuration = ({
</ul>
{rightVisible && (
<button onClick={handleRight} className="absolute bottom-0 right-0 flex">
<div className="to-default flex h-9 w-5 bg-gradient-to-r from-transparent" />
<div className="to-default flex h-9 w-5 bg-linear-to-r from-transparent" />
<div className="bg-default flex h-9 w-5 items-center justify-end rounded-md">
<Icon name="chevron-right" className="text-subtle h-4 w-4" />
</div>
@@ -34,7 +34,7 @@ export const EventLocations = ({ event }: { event: BookerEvent }) => {
{locations.length > 1 && (
<div
key={locations[0].type}
className="before:bg-subtle relative before:pointer-events-none before:absolute before:inset-0 before:bottom-[-5px] before:left-[-30px] before:top-[-5px] before:w-[calc(100%_+_35px)] before:rounded-md before:py-3 before:opacity-0 before:transition-opacity hover:before:opacity-100">
className="before:bg-subtle relative before:pointer-events-none before:absolute before:inset-0 before:bottom-[-5px] before:left-[-30px] before:top-[-5px] before:w-[calc(100%+35px)] before:rounded-md before:py-3 before:opacity-0 before:transition-opacity hover:before:opacity-100">
<Tooltip
content={
<>
@@ -60,7 +60,7 @@ export const EventLocations = ({ event }: { event: BookerEvent }) => {
</ul>
</>
}>
<span className="relative z-[2] py-2">{t("num_locations", { num: locations.length })}</span>
<span className="relative z-2 py-2">{t("num_locations", { num: locations.length })}</span>
</Tooltip>
</div>
)}
+1 -1
View File
@@ -322,7 +322,7 @@ const Days = ({
<div key={`e-${idx}`} />
) : props.isLoading ? (
<button
className="bg-muted text-muted absolute bottom-0 left-0 right-0 top-0 mx-auto flex w-full items-center justify-center rounded-sm border-transparent text-center font-medium opacity-90 transition"
className="bg-cal-muted text-muted absolute bottom-0 left-0 right-0 top-0 mx-auto flex w-full items-center justify-center rounded-sm border-transparent text-center font-medium opacity-90 transition"
key={`e-${idx}`}
disabled>
<SkeletonText className="h-8 w-9" />
@@ -64,7 +64,7 @@ function CalendarInner(props: CalendarComponentProps) {
{props.isPending && <Spinner />}
<div
ref={container}
className="bg-default dark:bg-muted relative isolate flex h-full flex-auto flex-col">
className="bg-default dark:bg-cal-muted relative isolate flex h-full flex-auto flex-col">
<div
style={{ width: "165%" }}
className="flex h-full max-w-full flex-none flex-col sm:max-w-none md:max-w-full">
@@ -78,7 +78,7 @@ function CalendarInner(props: CalendarComponentProps) {
<CurrentTime timezone={timezone} scrollToCurrentTime={scrollToCurrentTime} />
<div
className={classNames(
"bg-default dark:bg-muted ring-muted sticky left-0 z-10 w-16 flex-none ring-1",
"bg-default dark:bg-cal-muted ring-muted sticky left-0 z-10 w-16 flex-none ring-1",
showBorder &&
(borderColor === "subtle"
? "border-subtle border-l border-r"
@@ -52,7 +52,7 @@ export function DateValues({ showBorder, borderColor, days, containerNavRef }: P
<div
ref={containerNavRef}
className={classNames(
"bg-default dark:bg-default sticky top-[var(--calendar-dates-sticky-offset,0px)] z-[80] flex-none border-b",
"bg-default dark:bg-cal-muted sticky top-(--calendar-dates-sticky-offset,0px) z-80 flex-none border-b",
borderColor === "subtle" ? "border-b-subtle" : "border-b-default",
showBorder && (borderColor === "subtle" ? "border-r-subtle border-r" : "border-r-default border-r")
)}>
@@ -151,7 +151,7 @@ function Cell({ isDisabled, topOffsetMinutes, timeSlot }: CellProps) {
className={classNames(
"group flex w-[calc(100%-1px)] items-center justify-center",
isDisabled && "pointer-events-none",
!isDisabled && "bg-default dark:bg-muted",
!isDisabled && "bg-default dark:bg-cal-muted",
topOffsetMinutes && "absolute"
)}
data-disabled={isDisabled}
@@ -168,7 +168,7 @@ function Cell({ isDisabled, topOffsetMinutes, timeSlot }: CellProps) {
{!isDisabled && hoverEventDuration !== 0 && (
<div
className={classNames(
"opacity-4 bg-brand-default hover:bg-brand-default text-brand dark:border-emphasis absolute hidden rounded-[4px] p-[6px] text-xs font-semibold leading-5 group-hover:flex group-hover:cursor-pointer",
"bg-brand-default hover:bg-brand-default text-brand dark:border-emphasis absolute hidden rounded-[4px] p-[6px] text-xs font-semibold leading-5 group-hover:flex group-hover:cursor-pointer",
hoverEventDuration && hoverEventDuration > 15 && "items-start pt-3",
hoverEventDuration && hoverEventDuration < 15 && "items-center"
)}
@@ -179,7 +179,7 @@ function Cell({ isDisabled, topOffsetMinutes, timeSlot }: CellProps) {
// multiple events are stacked next to each other. We might need to add this back later.
width: "calc(100% - 2px)",
}}>
<div className="overflow-ellipsis leading-[0]">{timeSlot.format(timeFormat)}</div>
<div className="text-ellipsis leading-0">{timeSlot.format(timeFormat)}</div>
</div>
)}
</div>
@@ -195,7 +195,7 @@ function CustomCell({
return (
<div
className={classNames(
"bg-default dark:bg-muted group absolute z-[65] flex w-[calc(100%-1px)] items-center justify-center"
"bg-default dark:bg-cal-muted group absolute z-65 flex w-[calc(100%-1px)] items-center justify-center"
)}
data-slot={timeSlot.toISOString()}
style={{
@@ -204,7 +204,7 @@ function CustomCell({
}}>
<div
className={classNames(
"dark:border-emphasis bg-default dark:bg-muted cursor-pointer rounded-[4px] p-[6px] text-xs font-semibold dark:text-white"
"dark:border-emphasis bg-default dark:bg-cal-muted cursor-pointer rounded-[4px] p-[6px] text-xs font-semibold dark:text-white"
)}
style={{
height: `calc(${startEndTimeDuration}*var(--one-minute-height) - 2px)`,
@@ -31,7 +31,7 @@ const eventClasses = cva(
false: "hover:cursor-pointer",
},
selected: {
true: "bg-inverted text-inverted border-[1px] border-transparent",
true: "bg-inverted text-inverted border border-transparent",
false: "",
},
},
@@ -107,7 +107,7 @@ export function Event({
{displayType === "single-line" && (
<div
className={classNames(
"flex w-full shrink-0 gap-2 overflow-hidden overflow-ellipsis whitespace-nowrap text-left leading-4",
"flex w-full shrink-0 gap-2 overflow-hidden text-ellipsis whitespace-nowrap text-left leading-4",
"items-center"
)}>
<span>{event.title}</span>
@@ -24,13 +24,13 @@ export const HorizontalLines = ({
return (
<div
className={classNames(
"pointer-events-none relative z-[60] col-start-1 col-end-2 row-start-1 grid divide-y",
"pointer-events-none relative z-60 col-start-1 col-end-2 row-start-1 grid divide-y",
borderColor === "subtle" ? "divide-subtle" : "divide-default"
)}
style={{
gridTemplateRows: `repeat(${hours.length}, minmax(var(--gridDefaultSize),1fr)`,
}}>
<div className="row-end-1 h-[--calendar-offset-top] " ref={containerOffsetRef} />
<div className="row-end-1 h-(--calendar-offset-top) " ref={containerOffsetRef} />
{hours.map((hour) => (
<div key={`${id}-${hour.get("hour")}`}>
<div className="text-muted sticky left-0 z-20 -ml-14 -mt-2.5 w-14 pr-2 text-right text-xs leading-5 rtl:-mr-14">
@@ -3,7 +3,7 @@ import classNames from "@calcom/ui/classNames";
export const Spinner = ({ className }: { className?: string }) => (
<div
className={classNames(
"fixed left-[calc(50%+calc(var(--booker-meta-width,0px)/2))] top-1/2 z-[80] h-10 w-10 -translate-x-1/2 -translate-y-1/2",
"fixed left-[calc(50%+calc(var(--booker-meta-width,0px)/2))] top-1/2 z-80 h-10 w-10 -translate-x-1/2 -translate-y-1/2",
className
)}>
<svg className="h-10 w-10" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
@@ -19,7 +19,7 @@ export const VerticalLines = ({ days, borderColor }: { days: dayjs.Dayjs[]; bord
return (
<div
className={classNames(
"pointer-events-none relative z-[60] col-start-1 col-end-2 row-start-1 grid auto-cols-auto grid-rows-1 divide-x",
"pointer-events-none relative z-60 col-start-1 col-end-2 row-start-1 grid auto-cols-auto grid-rows-1 divide-x",
borderColor === "subtle" ? "divide-subtle" : "divide-default"
)}
dir={direction}
@@ -161,7 +161,7 @@ export function TimezoneSelectComponent({
classNames(
"bg-default py-2.5 px-3 rounded-md text-default ",
state.isFocused && "bg-subtle",
state.isDisabled && "bg-muted",
state.isDisabled && "bg-cal-muted",
state.isSelected && "bg-emphasis text-default",
timezoneClassNames?.option && timezoneClassNames.option(state)
),
@@ -118,7 +118,7 @@ export function DataTable<TData>({
return (
<div
className={classNames(
!hasWrapperContext ? "grid" : "bg-muted grid rounded-xl px-0.5 pb-0.5",
!hasWrapperContext ? "grid" : "bg-cal-muted grid rounded-xl px-0.5 pb-0.5",
className
)}
style={{
@@ -153,7 +153,7 @@ export function DataTable<TData>({
<TableNew
className={classNames(
"data-table grid border-0",
!hasWrapperContext && "bg-muted rounded-xl px-0.5 pb-0.5"
!hasWrapperContext && "bg-cal-muted rounded-xl px-0.5 pb-0.5"
)}
style={{
...columnSizingVars,
@@ -174,7 +174,7 @@ export function DataTable<TData>({
}}
className={classNames(
"relative flex shrink-0 items-center",
"bg-muted",
"bg-cal-muted",
column.getIsPinned() && "top-0 z-20 sm:sticky"
)}>
<TableHeadLabel header={header} />
@@ -184,9 +184,9 @@ export function DataTable<TData>({
onTouchStart={header.getResizeHandler()}
className={classNames(
"group absolute right-0 top-0 h-full w-[5px] cursor-col-resize touch-none select-none opacity-0 hover:opacity-50",
header.column.getIsResizing() && "!opacity-75"
header.column.getIsResizing() && "opacity-75!"
)}>
<div className="bg-inverted mx-auto h-full w-[1px]" />
<div className="bg-inverted mx-auto h-full w-px" />
</div>
)}
</TableHead>
@@ -287,7 +287,7 @@ function SeparatorRowRenderer({ separator, className }: { separator: SeparatorRo
return (
<div
className={classNames(
"bg-muted text-emphasis w-full px-3 py-2 font-semibold",
"bg-cal-muted text-emphasis w-full px-3 py-2 font-semibold",
separator.className,
className
)}>
@@ -429,10 +429,10 @@ function DataTableBody<TData>({
width: `var(--col-${kebabCase(cell.column.id)}-size)`,
}}
className={classNames(
"bg-default group-hover:!bg-muted group-data-[state=selected]:bg-subtle flex shrink-0 items-center overflow-hidden",
"bg-default group-hover:!bg-cal-muted group-data-[state=selected]:bg-subtle flex shrink-0 items-center overflow-hidden",
variant === "compact" && "p-0",
column.getIsPinned() &&
"bg-default group-hover:!bg-muted group-data-[state=selected]:bg-subtle sm:sticky"
"bg-default group-hover:!bg-cal-muted group-data-[state=selected]:bg-subtle sm:sticky"
)}>
{flexRender(cell.column.columnDef.cell, cell.getContext())}
</TableCell>
@@ -471,7 +471,7 @@ const TableHeadLabel = <TData,>({ header }: { header: Header<TData, unknown> })
type="button"
className={classNames(
"group mr-1 flex w-full items-center gap-2 rounded-md px-2 py-1",
open && "bg-muted"
open && "bg-cal-muted"
)}>
<div
className="text-default truncate text-sm leading-none"
@@ -78,7 +78,7 @@ function AddFilterButtonComponent<TData>(
addFilter(column.id);
setOpen(false);
}}
className="flex items-center justify-between px-4 py-2"
className="flex items-center justify-between px-4 py-2 rounded-none"
data-testid={`add-filter-item-${column.id}`}>
<span>{startCase(column.title)}</span>
{showHiddenIndicator && <Icon name="eye-off" className="h-4 w-4 opacity-50" />}
@@ -142,8 +142,8 @@ export function BaseSelectFilterOptions<
onSelect={() => onOptionSelect(column, filterValue, optionValue)}>
<div
className={classNames(
"border-subtle mr-2 flex h-4 w-4 items-center justify-center rounded-sm border",
isOptionSelected(filterValue, optionValue) ? "bg-primary" : "opacity-50"
"border-subtle mr-2 flex h-4 w-4 items-center justify-center rounded-sm",
isOptionSelected(filterValue, optionValue) ? "bg-primary-default" : "border opacity-50"
)}>
{isOptionSelected(filterValue, optionValue) && (
<Icon name="check" className="text-primary-foreground h-4 w-4" />
@@ -220,7 +220,7 @@ export const DateRangeFilter = ({
key={option.value}
data-testid={`date-range-options-${option.value}`}
className={classNames(
"cursor-pointer justify-between px-3 py-2",
"cursor-pointer justify-between px-3 py-2 rounded-none",
selectedPreset.value === option.value && "bg-emphasis"
)}
onSelect={() => {
@@ -87,7 +87,7 @@ export function DuplicateSegmentDialog({
<DialogContent>
<DialogHeader title={t("duplicate_segment")} />
<Form form={form} handleSubmit={handleSubmit}>
<div className="space-y-4">
<div className="stack-y-4">
<TextField
required
data-testid="duplicate-segment-name"
@@ -70,7 +70,7 @@ export function RenameSegmentDialog({
<DialogContent>
<DialogHeader title={t("rename_segment")} />
<Form form={form} handleSubmit={handleSubmit}>
<div className="space-y-4">
<div className="stack-y-4">
<TextField
required
data-testid="rename-segment-name"
@@ -184,7 +184,7 @@ export function SaveFilterSegmentButton() {
<RadioGroup
defaultValue="update"
onValueChange={(value: string) => setSaveMode(value as "create" | "update")}
className="space-y-2">
className="stack-y-2">
<RadioField
id="update_segment"
label={t("override_segment", { name: selectedSegment.name })}
@@ -216,7 +216,7 @@ export function SaveFilterSegmentButton() {
</div>
{isTeamSegment && teams && teams.length > 0 && (
<div>
<div className="mt-1.5">
<Select<{ value: string; label: string }>
options={teams.map((team) => ({
value: team.id.toString(),
@@ -151,7 +151,7 @@ export default function ApiKeyDialogForm({
setSuccessfulNewApiKeyModal(true);
}
}}
className="space-y-4">
className="stack-y-4">
<div className="mb-4 mt-1">
<h2 className="font-semi-bold font-cal text-emphasis text-xl tracking-wide">
{defaultValues ? t("edit_api_key") : t("create_api_key")}
@@ -7,7 +7,7 @@ export const AppearanceSkeletonLoader = () => {
<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="border-subtle stack-y-6 border-x px-4 py-6 sm:px-6">
<div className="flex w-full items-center justify-center gap-6">
<div className="bg-emphasis h-32 flex-1 animate-pulse rounded-md p-5" />
<div className="bg-emphasis h-32 flex-1 animate-pulse rounded-md p-5" />
@@ -85,7 +85,7 @@ const CreateANewLicenseKeyFormChild = ({ session }: { session: Ensure<SessionCon
{!stripeCheckoutUrl ? (
<Form
form={newLicenseKeyFormMethods}
className="space-y-5"
className="stack-y-5"
id="createOrg"
handleSubmit={(values) => {
mutation.mutate(values);
@@ -177,7 +177,7 @@ const CreateANewLicenseKeyFormChild = ({ session }: { session: Ensure<SessionCon
/>
</div>
<div className="flex flex-wrap gap-2 [&>*]:flex-1">
<div className="flex flex-wrap gap-2 *:flex-1">
<Controller
name="entityCount"
control={newLicenseKeyFormMethods.control}
@@ -257,7 +257,7 @@ const CreateANewLicenseKeyFormChild = ({ session }: { session: Ensure<SessionCon
<TextField className="flex-1" disabled value={stripeCheckoutUrl} />
</div>
<div className="mt-4 flex gap-2 [&>*]:flex-1 [&>*]:justify-center">
<div className="mt-4 flex gap-2 *:flex-1 *:justify-center">
<Button
color="secondary"
onClick={() => {
@@ -38,7 +38,7 @@ const CreateDirectory = ({ orgId }: { orgId: number | null }) => {
{t("directory_sync_title")}
</p>
</div>
<div className="flex-shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">
<div className="shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">
<Button color="primary" onClick={() => setOpenModal(true)}>
{t("configure")}
</Button>
@@ -61,7 +61,7 @@ const CreateDirectory = ({ orgId }: { orgId: number | null }) => {
</h2>
<p className="mt-1 text-sm text-gray-500">{t("directory_sync_configure_description")}</p>
</div>
<fieldset className="space-y-6 py-2">
<fieldset className="stack-y-6 py-2">
<Controller
control={form.control}
name="name"
@@ -10,7 +10,7 @@ const DirectoryInfo = ({ directory }: { directory: Directory }) => {
const { t } = useLocale();
return (
<div className="space-y-8">
<div className="stack-y-8">
<p className="text-default text-sm font-normal leading-6 dark:text-gray-300">
{t("directory_sync_info_description")}
</p>
@@ -76,7 +76,7 @@ const GroupNameCell = ({ groupNames, teamId, directoryId }: GroupNameCellProps)
{groupNames.map((name) => (
<Badge variant="gray" size="lg" key={name} className="min-h-8 h-auto py-2">
<div className="flex min-w-0 items-center gap-2">
<p className="min-w-0 break-words">{name}</p>
<p className="min-w-0 wrap-break-word">{name}</p>
<div className="hover:bg-emphasis shrink-0 rounded p-1">
<Icon name="x" className="h-4 w-4 stroke-[3px]" onClick={() => removeGroupName(name)} />
</div>
@@ -34,7 +34,7 @@ export const AboutOrganizationForm = () => {
<>
<Form
form={aboutOrganizationFormMethods}
className="space-y-5"
className="stack-y-5"
handleSubmit={(values) => {
setLogo(values.logo);
setBio(values.bio);
@@ -31,7 +31,7 @@ export const AdminOnboardingHandover = () => {
const onboardingUrl = `${WEBAPP_URL}/settings/organizations/new/resume?onboardingId=${onboardingId}`;
return (
<div className="space-y-6">
<div className="stack-y-6">
{/* Instructions Card */}
<div className="bg-subtle rounded-lg p-6">
<h3 className="text-emphasis mb-2 text-lg font-medium">{t("next_steps")}</h3>
@@ -40,7 +40,7 @@ export const AdminOnboardingHandover = () => {
setup:
</p>
<div className="space-y-3">
<div className="stack-y-3">
<div className="bg-default flex items-center gap-2 rounded-md border p-3">
<code className="text-default flex-1 truncate font-mono text-sm" data-testid="onboarding-url">
{onboardingUrl}
@@ -115,7 +115,7 @@ const CreateANewOrganizationFormChild = ({ session }: { session: Ensure<SessionC
<>
<Form
form={newOrganizationFormMethods}
className="space-y-5"
className="stack-y-5"
id="createOrg"
handleSubmit={async (v) => {
if (!needToCreateOnboarding) {
@@ -325,7 +325,7 @@ const CreateANewOrganizationFormChild = ({ session }: { session: Ensure<SessionC
{/* This radio group does nothing - its just for visual purposes */}
{isBillingEnabled && !isAdmin && (
<>
<div className="bg-subtle space-y-5 rounded-lg p-5">
<div className="bg-subtle stack-y-5 rounded-lg p-5">
<h3 className="font-cal text-default text-lg font-semibold leading-4">
Upgrade to Organizations
</h3>
@@ -29,12 +29,12 @@ export default function TeamInviteFromOrg({
});
return (
<div className="bg-muted border-subtle flex flex-col rounded-md border p-4">
<div className="bg-cal-muted border-subtle flex flex-col rounded-md border p-4">
<div className="-my-1">
<TextField placeholder="Search..." onChange={(e) => setSearchQuery(e.target.value)} />
</div>
<hr className="border-subtle -mx-4 mt-2" />
<div className="scrollbar min-h-48 flex max-h-48 flex-col space-y-0.5 overflow-y-scroll pt-2">
<div className="scrollbar min-h-48 flex max-h-48 flex-col stack-y-0.5 overflow-y-scroll pt-2">
<>
{filteredMembers &&
filteredMembers.map((member) => {
@@ -31,7 +31,7 @@ export function WelcomeToOrganizationsModal() {
return (
<Dialog open={isOpen} onOpenChange={(open) => !open && closeModal()}>
<DialogContent size="default" className="!p-0 flex flex-col max-h-[95vh]" enableOverflow>
<DialogContent size="default" className="flex max-h-[95vh] flex-col !p-0" enableOverflow>
<div className="flex flex-1 flex-col overflow-y-auto">
<div className="flex flex-col gap-4 p-6">
<div className="flex flex-col items-center gap-1">
@@ -136,14 +136,16 @@ export function WelcomeToOrganizationsModal() {
</div>
<div className="mb-2 flex flex-col gap-2 text-center">
<h2 className="font-cal text-emphasis text-2xl leading-none">{t("welcome_to_organizations")}</h2>
<h2 className="font-cal text-emphasis text-2xl leading-none">
{t("welcome_to_organizations")}
</h2>
<p className="text-default text-sm leading-normal">{t("organizations_welcome_description")}</p>
</div>
<div className="mb-2 flex flex-col gap-3">
{features.map((feature) => (
<div key={feature} className="flex items-start gap-2">
<Icon name="check" className="text-muted mt-0.5 h-4 w-4 flex-shrink-0" />
<Icon name="check" className="text-muted mt-0.5 h-4 w-4 shrink-0" />
<span className="text-default text-sm font-medium leading-tight">{t(feature)}</span>
</div>
))}
@@ -61,7 +61,7 @@ export default function OtherTeamListItem(props: Props) {
return (
<li>
<div className="hover:bg-muted group flex items-center justify-between transition">
<div className="hover:bg-cal-muted group flex items-center justify-between transition">
{teamInfo}
<div className="px-5 py-5">
<div className="flex space-x-2 rtl:space-x-reverse">
@@ -88,7 +88,7 @@ export default function OtherTeamListItem(props: Props) {
<Dropdown>
<DropdownMenuTrigger asChild>
<Button
className="radix-state-open:rounded-r-md"
className="ltr:radix-state-open:rounded-r-(--btn-group-radius) rtl:radix-state-open:rounded-l-(--btn-group-radius)"
type="button"
color="secondary"
variant="icon"
@@ -37,7 +37,7 @@ export const AdminAPIView = () => {
features={features}
background="/tips/enterprise"
buttons={
<div className="space-y-2 rtl:space-x-reverse sm:space-x-2">
<div className="stack-y-2 rtl:space-x-reverse sm:space-x-2">
<ButtonGroup>
<Button color="primary" href="https://cal.com/sales" target="_blank">
{t("contact_sales")}
@@ -61,7 +61,7 @@ export const OrgForm = ({
};
return (
<Form form={form} className="space-y-4" handleSubmit={onSubmit}>
<Form form={form} className="stack-y-4" handleSubmit={onSubmit}>
<TextField label="Name" placeholder="example" required {...form.register("name")} />
<TextField label="Slug" placeholder="example" required {...form.register("slug")} />
<p className="text-default mt-2 text-sm">
@@ -251,7 +251,7 @@ const DeleteOrgDialog = ({
cancelBtnText={t("cancel")}
variety="danger"
onConfirm={onConfirm}>
<ul className="ml-4 mt-5 list-disc space-y-2">
<ul className="ml-4 mt-5 list-disc stack-y-2">
<li>{t("admin_delete_organization_description_1")}</li>
<li>{t("admin_delete_organization_description_2")}</li>
<li>{t("admin_delete_organization_description_3")}</li>
@@ -137,7 +137,7 @@ function EmptyState({ onAdd }: Pick<Props, "onAdd">) {
const { t } = useLocale();
return (
<div className="flex flex-col items-center justify-center space-y-4 py-10">
<div className="flex flex-col items-center justify-center stack-y-4 py-10">
<p className="text-gray-500">{t("no_workspace_platforms")}</p>
<Button color="secondary" onClick={onAdd}>
{t("add")}
@@ -185,7 +185,7 @@ function ServiceAccountFields() {
const form = useFormContext();
return (
<div className="space-y-4">
<div className="stack-y-4">
<TextAreaField
required
label={t("service_account_key")}
@@ -421,7 +421,7 @@ function PlatformFormFields({ isCreate }: Pick<Props, "isCreate">) {
const form = useFormContext();
return (
<div className="space-y-4">
<div className="stack-y-4">
<TextField required label={t("name")} {...form.register("name")} />
<TextAreaField required label={t("description")} {...form.register("description")} />
{isCreate && <TextField required label={t("slug")} {...form.register("slug")} />}
@@ -212,7 +212,7 @@ const GroupOption = ({
<div key={option.id}>
<div className="mb-2 flex items-center gap-2" key={option.id}>
<div className="flex w-full items-center justify-between gap-2">
<Input {...form.register(`options.${index}.value`)} className="!mb-0 w-36" />
<Input {...form.register(`options.${index}.value`)} className="mb-0! w-36" />
<SelectField
isMulti
placeholder={t("choose_an_option")}
@@ -362,7 +362,7 @@ export function AttributeForm({ initialValues, onSubmit, header }: AttributeForm
return (
<Form
form={form}
className="flex flex-col space-y-4 lg:space-y-6"
className="flex flex-col stack-y-4 lg:stack-y-6"
handleSubmit={(values) => {
onSubmit({
...values,
@@ -423,7 +423,7 @@ export function AttributeForm({ initialValues, onSubmit, header }: AttributeForm
)}
/>
{["SINGLE_SELECT", "MULTI_SELECT"].includes(watchedType) && (
<div className="bg-muted border-muted mt-6 rounded-lg border p-6">
<div className="bg-cal-muted border-muted mt-6 rounded-lg border p-6">
<div className="flex flex-col gap-2">
<div>
<Label>{t("options")}</Label>
@@ -61,7 +61,7 @@ function CreateAttributeHeader(props: { isPending: boolean }) {
return (
<>
<div className="mb-6 mt-6 flex flex-grow items-center justify-between lg:mt-12">
<div className="mb-6 mt-6 flex grow items-center justify-between lg:mt-12">
<div className="-ml-12 flex items-center gap-4">
<Button
variant="icon"
@@ -83,7 +83,7 @@ function EditAttributeHeader(props: { isPending: boolean }) {
return (
<>
<div className="mb-6 mt-6 flex flex-grow items-center justify-between lg:mt-12">
<div className="mb-6 mt-6 flex grow items-center justify-between lg:mt-12">
<div className="-ml-12 flex items-center gap-4">
<Button
variant="icon"
@@ -54,7 +54,7 @@ function getWorkspacePlatformOptions(workspacePlatforms: WorkspacePlatform[]) {
const SkeletonLoader = () => {
return (
<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>
@@ -247,7 +247,7 @@ function DelegationFormFields({
const { t } = useLocale();
const form = useFormContext();
return (
<div className="space-y-4">
<div className="stack-y-4">
<TextField label={t("domain")} {...form.register("domain")} />
<Controller
name="workspacePlatformSlug"
@@ -405,7 +405,7 @@ function DelegationCredentialList() {
<div>
{!!delegations?.length ? (
<>
<ul className="space-y-2 [&>*:last-child]:rounded-b-xl">
<ul className="stack-y-2 [&>*:last-child]:rounded-b-xl">
{delegations.map(
(delegation) =>
delegation && (
@@ -474,7 +474,7 @@ function MembersThatWillBeAffectedOnDisablingDelegationCredential({
<div>{t("loading")}</div>
) : affectedMembers?.length ? (
<>
<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">
{affectedMembers.slice(0, 5).map((m) => (
<li className="text-muted text-sm" key={m.email}>
{m.name ? `${m.name} (${m.email})` : m.email}
@@ -28,7 +28,7 @@ import { NoSlotsNotificationSwitch } from "../components/NoSlotsNotificationSwit
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="mb-8 mt-6 space-y-6">
<div className="mb-8 mt-6 stack-y-6">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
@@ -257,7 +257,7 @@ const OtherTeamProfileView = () => {
</Form>
) : (
<div className="flex">
<div className="flex-grow">
<div className="grow">
<div>
<Label className="text-emphasis">{t("team_name")}</Label>
<p className="text-default text-sm">{team?.name}</p>
@@ -266,7 +266,8 @@ const OtherTeamProfileView = () => {
<>
<Label className="text-emphasis mt-5">{t("about")}</Label>
<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"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: markdownToSafeHTML(team.bio) }}
/>
</>
@@ -36,7 +36,7 @@ const PrivacyView = ({
return (
<LicenseRequired>
<div className="space-y-8">
<div className="stack-y-8">
<MakeTeamPrivateSwitch
isOrg={true}
teamId={currentOrg.id}
@@ -60,7 +60,7 @@ type FormValues = {
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="border-subtle space-y-6 rounded-b-xl border border-t-0 px-4 py-8">
<div className="border-subtle stack-y-6 rounded-b-xl 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" />
@@ -140,7 +140,7 @@ const OrgProfileView = ({
</>
) : (
<div className="border-subtle flex rounded-b-md border border-t-0 px-4 py-8 sm:px-6">
<div className="flex-grow">
<div className="grow">
<div>
<Label className="text-emphasis">{t("organization_name")}</Label>
<p className="text-default text-sm">{currentOrganisation?.name}</p>
@@ -149,7 +149,7 @@ const OrgProfileView = ({
<>
<Label className="text-emphasis mt-5">{t("about")}</Label>
<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"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: markdownToSafeHTML(currentOrganisation.bio || ""),
@@ -80,7 +80,7 @@ export const PaymentFormComponent = (
<PaymentElement options={paymentElementOptions} onChange={(_) => onPaymentElementChange()} />
</div>
{paymentOption === "HOLD" && (
<div className="bg-info mb-5 mt-2 rounded-md p-3">
<div className="bg-cal-info mb-5 mt-2 rounded-md p-3">
<CheckboxField
description={t("acknowledge_booking_no_show_fee", {
amount: props.payment.amount / 100,
@@ -85,7 +85,7 @@ const CreateANewPlatformFormChild = ({ session }: { session: Ensure<SessionConte
<>
<Form
form={newOrganizationFormMethods}
className="space-y-5"
className="stack-y-5"
id="createOrg"
handleSubmit={(v) => {
if (!createOrganizationMutation.isPending) {
@@ -49,7 +49,7 @@ export default function ConnectionInfo({
<OIDCInfo callbackUrl={connection.callbackUrl} />
)}
<hr className="border-subtle my-6" />
<div className="flex flex-col space-y-3">
<div className="flex flex-col stack-y-3">
<Label>{t("danger_zone")}</Label>
<Dialog>
<div>
@@ -83,7 +83,7 @@ const SAMLInfo = ({ acsUrl, entityId }: { acsUrl: string | null; entityId: strin
}
return (
<div className="space-y-6">
<div className="stack-y-6">
<div className="flex flex-col">
<div className="flex">
<Label>ACS URL</Label>
@@ -37,7 +37,7 @@ export default function OIDCConnection({
</p>
</div>
{!connection && (
<div className="flex-shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">
<div className="shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">
<Button data-testid="sso-oidc-configure" color="secondary" onClick={() => setOpenModal(true)}>
{t("configure")}
</Button>
@@ -97,7 +97,7 @@ const CreateConnectionDialog = ({
{t("sso_oidc_configuration_title")}
</h2>
<p className="text-subtle mb-4 mt-1 text-sm">{t("sso_oidc_configuration_description")}</p>
<div className="space-y-5">
<div className="stack-y-5">
<Controller
control={form.control}
name="clientId"
@@ -35,7 +35,7 @@ export default function SAMLConnection({
</p>
</div>
{!connection && (
<div className="flex-shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">
<div className="shrink-0 pt-3 sm:ml-auto sm:pl-3 sm:pt-0">
<Button color="secondary" onClick={() => setOpenModal(true)}>
Configure
</Button>
@@ -10,7 +10,7 @@ import { SkeletonText, SkeletonContainer } from "@calcom/ui/components/skeleton"
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="divide-subtle border-subtle space-y-6 rounded-b-xl border border-t-0 px-6 py-4">
<div className="divide-subtle border-subtle stack-y-6 rounded-b-xl border border-t-0 px-6 py-4">
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
<SkeletonText className="h-8 w-full" />
@@ -40,7 +40,7 @@ export default function SSOConfiguration({ teamId }: { teamId: number | null })
if (!connection) {
return (
<LicenseRequired>
<div className="[&>*]:border-subtle flex flex-col [&>*:last-child]:rounded-b-xl [&>*]:border [&>*]:border-t-0 [&>*]:px-4 [&>*]:py-6 [&>*]:sm:px-6">
<div className="[&>*]:border-subtle flex flex-col [&>*:last-child]:rounded-b-xl *:border *:border-t-0 *:px-4 *:py-6 *:sm:px-6">
<SAMLConnection teamId={teamId} connection={null} />
<OIDCConnection teamId={teamId} connection={null} />
</div>
@@ -50,7 +50,7 @@ export default function SSOConfiguration({ teamId }: { teamId: number | null })
return (
<LicenseRequired>
<div className="[&>*]:border-subtle flex flex-col [&>*:last-child]:rounded-b-xl [&>*]:border [&>*]:border-t-0 [&>*]:px-4 [&>*]:py-6 [&>*]:sm:px-6">
<div className="[&>*]:border-subtle flex flex-col [&>*:last-child]:rounded-b-xl *:border *:border-t-0 *:px-4 *:py-6 *:sm:px-6">
{connection.type === "saml" ? (
<SAMLConnection teamId={teamId} connection={connection} />
) : (
@@ -37,7 +37,7 @@ export default function ContactMenuItem(props: ContactMenuItem) {
{t("community_support")}{" "}
<Icon
name="external-link"
className="group-hover:text-subtle text-muted ml-1 mt-px h-4 w-4 flex-shrink-0 ltr:mr-3"
className="group-hover:text-subtle text-muted ml-1 mt-px h-4 w-4 shrink-0 ltr:mr-3"
/>
</a>
</>
@@ -110,11 +110,11 @@ export const IntercomContactForm = () => {
};
return (
<div className="fixed bottom-[1rem] right-[1rem] z-50 [&_[data-radix-popper-content-wrapper]]:!bottom-[1rem]">
<div className="fixed bottom-4 right-4 z-50 **:data-radix-popper-content-wrapper:bottom-4!">
<Popover open={isOpen} onOpenChange={setIsOpen}>
<PopoverTrigger
asChild
className={classNames("enabled:hover:bg-subtle bg-subtle shadow-none", !showTrigger && "!hidden")}>
className={classNames("enabled:hover:bg-subtle bg-subtle shadow-none", !showTrigger && "hidden!")}>
<Button
onClick={() => setIsOpen(true)}
className="bg-subtle text-emphasis flex h-12 w-12 items-center justify-center rounded-full border-none">
@@ -126,7 +126,7 @@ export const IntercomContactForm = () => {
ref={contentRef}
style={{ maxWidth: "450px", maxHeight: "650px" }}
className={classNames(
"!bg-muted no-scrollbar mb-2 w-screen overflow-hidden overflow-y-scroll px-6 py-4 md:w-[450px]",
"!bg-cal-muted no-scrollbar mb-2 w-screen overflow-hidden overflow-y-scroll px-6 py-4 md:w-[450px]",
showTrigger ? "mr-8" : "mr-0"
)}>
<div className="flex w-full justify-between">
@@ -189,7 +189,7 @@ export function EditMemberSheet({
setEditMode(false);
dispatch({ type: "CLOSE_MODAL" });
}}>
<SheetContent className="bg-muted">
<SheetContent className="bg-cal-muted">
{!isPending && !isLoadingRoles ? (
<Form form={form} handleSubmit={changeRole} className="flex h-full flex-col">
<SheetHeader showCloseButton={false} className="w-full">
@@ -216,8 +216,8 @@ export function EditMemberSheet({
</Skeleton>
</div>
</SheetHeader>
<SheetBody className="flex flex-col space-y-4 p-4">
<div className="mb-4 flex flex-col space-y-4">
<SheetBody className="flex flex-col stack-y-4 p-4">
<div className="mb-4 flex flex-col stack-y-4">
<h3 className="text-emphasis mb-1 text-base font-semibold">{t("profile")}</h3>
<DisplayInfo label="Cal" value={bookingLink} icon="external-link" />
<DisplayInfo label={t("email")} value={selectedUser.email} icon="at-sign" />
@@ -119,9 +119,9 @@ const InternalNotePresetsView = ({ team }: ProfileViewProps) => {
isChecked && "rounded-b-none"
)}>
<div className="border-subtle border border-y-0 p-6">
<div className="flex flex-col space-y-4" ref={animateRef}>
<div className="flex flex-col stack-y-4" ref={animateRef}>
{fields.map((field, index) => (
<div key={field.id} className="space-y-2">
<div key={field.id} className="stack-y-2">
<div className="flex items-center space-x-2">
<Controller
name={`presets.${index}.name`}
@@ -131,7 +131,7 @@ const InternalNotePresetsView = ({ team }: ProfileViewProps) => {
type="text"
{...field}
placeholder={t("internal_booking_note")}
className="!mb-0"
className="mb-0!"
/>
)}
/>
@@ -154,7 +154,7 @@ const InternalNotePresetsView = ({ team }: ProfileViewProps) => {
type="text"
{...field}
placeholder={t("internal_note_cancellation_reason")}
className="!mb-0"
className="mb-0!"
/>
)}
/>
@@ -159,7 +159,7 @@ export default function MemberChangeRoleModal(props: {
<div className="mb-4 sm:flex sm:items-start">
<div className="text-center sm:text-left">
<h3
className="text-emphasis !font-cal text-semibold leading-20 text-xl font-medium"
className="text-emphasis !font-cal text-semibold text-xl font-medium"
id="modal-title">
{t("change_member_role")}
</h3>
@@ -236,7 +236,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
</div>
<Form form={newMemberFormMethods} handleSubmit={(values) => props.onSubmit(values, resetFields)}>
<div className="mb-10 mt-6 space-y-6">
<div className="mb-10 mt-6 stack-y-6">
{/* Individual Invite */}
{modalImportMode === "INDIVIDUAL" && (
<Controller
@@ -270,7 +270,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
)}
{/* Bulk Invite */}
{modalImportMode === "BULK" && (
<div className="bg-muted flex flex-col rounded-md p-4">
<div className="bg-cal-muted flex flex-col rounded-md p-4">
<Controller
name="emailOrUsername"
control={newMemberFormMethods.control}
@@ -399,7 +399,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)
</div>
<DialogFooter showDivider>
{!disableCopyLink && (
<div className="flex-grow">
<div className="grow">
<Button
type="button"
color="minimal"
@@ -490,7 +490,7 @@ function MemberListContent(props: Props) {
<Dropdown>
<DropdownMenuTrigger asChild>
<Button
className="radix-state-open:rounded-r-md"
className="ltr:radix-state-open:rounded-r-(--btn-group-radius) rtl:radix-state-open:rounded-l-(--btn-group-radius)"
color="secondary"
variant="icon"
StartIcon="ellipsis"
@@ -734,12 +734,12 @@ function MemberListContent(props: Props) {
</>
}>
{numberOfSelectedRows >= 2 && dynamicLinkVisible && (
<DataTableSelectionBar.Root className="!bottom-[7.3rem] md:!bottom-32">
<DataTableSelectionBar.Root className="bottom-[7.3rem]! md:bottom-32!">
<DynamicLink table={table} domain={domain} />
</DataTableSelectionBar.Root>
)}
{numberOfSelectedRows > 0 && (
<DataTableSelectionBar.Root className="!bottom-16 justify-center md:w-max">
<DataTableSelectionBar.Root className="bottom-16! justify-center md:w-max">
<p className="text-brand-subtle px-2 text-center text-xs leading-none sm:text-sm sm:font-medium">
{t("number_selected", { count: numberOfSelectedRows })}
</p>
@@ -21,7 +21,7 @@ function SkeletonItem() {
<li className="flex w-full items-center justify-between">
<div className="flex items-center space-x-3 p-5 rtl:space-x-reverse">
<SkeletonText className="h-8 w-8 rounded-full" />
<div className="flex flex-col space-y-2">
<div className="flex flex-col stack-y-2">
<SkeletonText className="h-4 w-32" />
<SkeletonText className="h-3 w-24" />
</div>
@@ -54,7 +54,7 @@ export default function TeamAvailabilityTimes(props: Props) {
: [];
return (
<div className={classNames("min-w-60 flex-grow pl-0", props.className)}>
<div className={classNames("min-w-60 grow pl-0", props.className)}>
{props.HeaderComponent}
{isPending && slots.length === 0 && <SkeletonLoader />}
{!isPending && slots.length === 0 ? (
@@ -68,7 +68,7 @@ export default function TeamAvailabilityTimes(props: Props) {
{slots.map((slot) => (
<div key={slot.time.format()} className="flex flex-row items-center ">
<a
className="min-w-48 border-brand-default text-bookingdarker bg-default mb-2 mr-3 block flex-grow rounded-md border py-2 text-center font-medium dark:border-transparent dark:bg-gray-600 "
className="min-w-48 border-brand-default text-bookingdarker bg-default mb-2 mr-3 block grow rounded-md border py-2 text-center font-medium dark:border-transparent dark:bg-gray-600 "
data-testid="time">
{slot.time.tz(props.selectedTimeZone.toString()).format("HH:mm")}
</a>
@@ -46,7 +46,7 @@ export const TeamEventTypeForm = ({
return (
<Form form={form} handleSubmit={handleSubmit}>
<div className="mb-6 mt-1 space-y-6">
<div className="mb-6 mt-1 stack-y-6">
<TextField
type="hidden"
labelProps={{ style: { display: "none" } }}
@@ -134,13 +134,13 @@ export default function TeamListItem(props: Props) {
}}
/>
)}
<div className={classNames("flex items-center justify-between", !isInvitee && "hover:bg-muted group")}>
<div className={classNames("flex items-center justify-between", !isInvitee && "hover:bg-cal-muted group")}>
{!isInvitee ? (
team.slug ? (
<Link
data-testid="team-list-item-link"
href={`/settings/teams/${team.id}/profile`}
className="flex-grow cursor-pointer truncate text-sm"
className="grow cursor-pointer truncate text-sm"
title={`${team.name}`}>
{teamInfo}
</Link>
@@ -218,7 +218,7 @@ export default function TeamListItem(props: Props) {
<Dropdown>
<DropdownMenuTrigger asChild>
<Button
className="radix-state-open:rounded-r-md"
className="ltr:radix-state-open:rounded-r-(--btn-group-radius) rtl:radix-state-open:rounded-l-(--btn-group-radius)"
type="button"
color="secondary"
variant="icon"
@@ -367,7 +367,7 @@ const TeamPublishSection = ({ children, teamId }: { children: React.ReactNode; t
return (
<button
className="block flex-grow cursor-pointer truncate text-left text-sm"
className="block grow cursor-pointer truncate text-left text-sm"
type="button"
onClick={() => {
publishTeamMutation.mutate({ teamId });
@@ -16,7 +16,7 @@ export default function TeamPill(props: Props) {
<div
className={classNames("text-medium self-center rounded-md px-1.5 py-1 text-xs ltr:mr-1 rtl:ml-1", {
" bg-subtle text-emphasis": !color,
" bg-info text-info": color === "blue",
" bg-cal-info text-info": color === "blue",
" bg-error text-error ": color === "red",
" bg-attention text-attention": color === "orange",
})}
@@ -138,7 +138,7 @@ export function TeamsListing({
background="/tips/teams"
buttons={
!orgId || permissions.canCreateTeam ? (
<div className="space-y-2 rtl:space-x-reverse sm:space-x-2">
<div className="stack-y-2 rtl:space-x-reverse sm:space-x-2">
<ButtonGroup>
<Button color="primary" href={`${WEBAPP_URL}/settings/teams/new`}>
{t("create_team")}
@@ -66,7 +66,7 @@ type FormValues = z.infer<typeof teamProfileFormSchema>;
const SkeletonLoader = () => {
return (
<SkeletonContainer>
<div className="border-subtle space-y-6 rounded-b-xl border border-t-0 px-4 py-8">
<div className="border-subtle stack-y-6 rounded-b-xl 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" />
@@ -174,7 +174,7 @@ const ProfileView = () => {
<TeamProfileForm team={team} teamId={teamId} />
) : (
<div className="border-subtle flex rounded-b-xl border border-t-0 px-4 py-8 sm:px-6">
<div className="flex-grow">
<div className="grow">
<div>
<Label className="text-emphasis">{t("team_name")}</Label>
<p className="text-default text-sm">{team?.name}</p>
@@ -183,7 +183,7 @@ const ProfileView = () => {
<>
<Label className="text-emphasis mt-5">{t("about")}</Label>
<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"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: markdownToSafeHTML(team.bio ?? null) }}
/>
@@ -118,7 +118,7 @@ export const UserForm = ({
});
return (
<Form form={form} className="space-y-4" handleSubmit={onSubmit}>
<Form form={form} className="stack-y-4" handleSubmit={onSubmit}>
<div className="flex items-center">
<Controller
control={form.control}
@@ -41,7 +41,7 @@ const MeetingSessionDetailsSkeleton = () => {
</div>
<div className="mt-4">
<SkeletonText className="mb-2 h-5 w-20" />
<div className="space-y-2">
<div className="stack-y-2">
{[...Array(2)].map((_, i) => (
<div key={i} className="border-subtle rounded border p-2 text-sm">
<div className="flex justify-between">
@@ -138,7 +138,7 @@ const MeetingSessionDetailsList = ({ roomName }: { roomName: string }) => {
{session.participants && session.participants.length > 0 && (
<div className="mt-4">
<h4 className="mb-2 text-sm font-medium">{t("participants")}:</h4>
<div className="space-y-2">
<div className="stack-y-2">
{session.participants.map((participant: Participant) => (
<div key={participant.participant_id} className="border-subtle rounded border p-2 text-sm">
<div className="flex justify-between">
@@ -158,7 +158,7 @@ export const AddActionDialog = (props: IAddActionDialog) => {
setIsEmailAddressNeeded(false);
setIsSenderIdNeeded(false);
}}>
<div className="space-y-1">
<div className="stack-y-1">
<Label htmlFor="label">{t("action")}:</Label>
<Controller
name="action"
@@ -190,7 +190,7 @@ export const AddActionDialog = (props: IAddActionDialog) => {
)}
</div>
{isPhoneNumberNeeded && (
<div className="mt-5 space-y-1">
<div className="mt-5 stack-y-1">
<Label htmlFor="sendTo">{t("phone_number")}</Label>
<div className="mb-5 mt-1">
<Controller
@@ -59,9 +59,9 @@ export function CallDetailsSheet({ state, dispatch }: CallDetailsSheetProps) {
</div>
</SheetHeader>
<SheetBody className="flex flex-col space-y-6 p-4">
<SheetBody className="flex flex-col stack-y-6 p-4">
{/* Call Information */}
<div className="space-y-3">
<div className="stack-y-3">
<h3 className="text-emphasis text-base font-semibold">{t("call_information")}</h3>
<div className="grid grid-cols-2 gap-4">
<div>
@@ -106,14 +106,14 @@ export function CallDetailsSheet({ state, dispatch }: CallDetailsSheetProps) {
{/* Call Summary */}
{selectedCall.call_analysis?.call_summary && (
<div className="space-y-3">
<div className="stack-y-3">
<h3 className="text-emphasis text-base font-semibold">{t("call_summary")}</h3>
<p className="text-default text-sm">{selectedCall.call_analysis.call_summary}</p>
</div>
)}
{/* Recording Section */}
<div className="space-y-3">
<div className="stack-y-3">
<h3 className="text-emphasis text-base font-semibold">{t("recording")}</h3>
<div className="flex items-center gap-3">
<audio controls className="h-11 w-[258px]" src={selectedCall.recording_url}>
@@ -126,9 +126,9 @@ export function CallDetailsSheet({ state, dispatch }: CallDetailsSheetProps) {
</div>
{/* Transcription */}
<div className="space-y-3">
<div className="stack-y-3">
<h3 className="text-emphasis text-base font-semibold">{t("transcription")}</h3>
<div className="border-subtle max-h-96 space-y-3 overflow-y-auto rounded-md border p-4">
<div className="border-subtle max-h-96 stack-y-3 overflow-y-auto rounded-md border p-4">
{selectedCall.transcript ? (
selectedCall.transcript
.split("\n")
@@ -141,7 +141,7 @@ export function CallDetailsSheet({ state, dispatch }: CallDetailsSheetProps) {
if (!isAgent && !isUser) return null;
return (
<div key={index} className="space-y-1">
<div key={index} className="stack-y-1">
<div className="flex items-center gap-2">
<Icon name="user" className={isAgent ? "text-info" : "text-success"} />
<span className={`text-sm font-medium ${isAgent ? "text-info" : "text-success"}`}>
@@ -160,9 +160,9 @@ export function CallDetailsSheet({ state, dispatch }: CallDetailsSheetProps) {
{/* Event Details */}
{selectedCall.retell_llm_dynamic_variables && (
<div className="space-y-3">
<div className="stack-y-3">
<h3 className="text-emphasis text-base font-semibold">{t("event_details")}</h3>
<div className="border-subtle bg-muted rounded-md border p-4">
<div className="border-subtle bg-cal-muted rounded-md border p-4">
<pre className="text-default overflow-x-auto text-xs">
{JSON.stringify(selectedCall.retell_llm_dynamic_variables, null, 2)}
</pre>
@@ -40,7 +40,7 @@ function WorkflowExample(props: WorkflowExampleType) {
)}
</div>
</div>
<div className="m-auto w-full flex-grow items-center justify-center ">
<div className="m-auto w-full grow items-center justify-center ">
<div className="text-semibold text-emphasis line-clamp-2 w-full text-sm font-semibold">{title}</div>
<div className="text-default text-sm font-normal leading-none">{description}</div>
</div>
@@ -146,7 +146,7 @@ export default function EmptyScreen(props: { isFilteredView: boolean }) {
const TemplateSection = ({ title, examples }: { title: string; examples: WorkflowExampleType[] }) => {
return (
<div className="flex items-center justify-center">
<div className="bg-muted flex max-w-5xl flex-col rounded-md p-2">
<div className="bg-cal-muted flex max-w-5xl flex-col rounded-md p-2">
<h2 className="text-emphasis mb-2 text-base font-semibold">{title}</h2>
<div className="grid grid-cols-1 items-center gap-2 lg:grid-cols-3">
{examples.map((example: WorkflowExampleType, index: number) => (
@@ -14,11 +14,11 @@ export default SkeletonLoader;
function SkeletonItem() {
return (
<li className="border-subtle group mb-4 flex h-[90px] w-full items-center justify-between rounded-md border px-4 py-4 sm:px-6">
<div className="flex-grow truncate text-sm">
<div className="grow truncate text-sm">
<div className="flex">
<SkeletonAvatar className="h-10 w-10" />
<div className="ml-4 mt-1 flex flex-col space-y-1">
<div className="ml-4 mt-1 flex flex-col stack-y-1">
<SkeletonText className="h-5 w-20 sm:w-24" />
<div className="flex">
<SkeletonText className="h-4 w-16 ltr:mr-2 rtl:ml-2 sm:w-28" />
@@ -26,7 +26,7 @@ function SkeletonItem() {
</div>
</div>
</div>
<div className="mt-0 flex flex-shrink-0 sm:ml-5">
<div className="mt-0 flex shrink-0 sm:ml-5">
<div className="flex justify-between space-x-2 rtl:space-x-reverse">
<SkeletonText className="h-8 w-8 sm:w-16" />
<SkeletonText className="h-8 w-8 sm:w-16" />
@@ -16,9 +16,9 @@ export default SkeletonLoader;
function SkeletonItem() {
return (
<li className="group flex w-full items-center justify-between px-4 py-4 sm:px-6">
<div className="flex-grow truncate text-sm">
<div className="grow truncate text-sm">
<div className="flex">
<div className="flex flex-col space-y-2">
<div className="flex flex-col stack-y-2">
<SkeletonText className="h-4 w-16 sm:w-24" />
<div className="flex">
<Icon name="bell" className="mr-1.5 mt-0.5 inline h-4 w-4 text-gray-200" />
@@ -29,7 +29,7 @@ function SkeletonItem() {
</div>
</div>
</div>
<div className="mt-0 flex flex-shrink-0 sm:ml-5">
<div className="mt-0 flex shrink-0 sm:ml-5">
<div className="flex justify-between space-x-2 rtl:space-x-reverse">
<SkeletonText className="h-8 w-8 sm:w-16" />
</div>
@@ -402,7 +402,7 @@ export function WebCallDialog({
)}
</div>
<div className="h-60 space-y-3 overflow-y-auto p-2">
<div className="h-60 stack-y-3 overflow-y-auto p-2">
{transcript.length === 0 ? (
<div className="flex h-40 items-center justify-center text-center">
<div>
@@ -143,7 +143,7 @@ export function WorkflowCreationDialog({
icon="circle-plus"
isSelected={selectedOption === "scratch"}
onClick={() => setSelectedOption("scratch")}
iconWrapperClassName="bg-muted"
iconWrapperClassName="bg-cal-muted"
value="scratch"
/>
<WorkflowOptionCard
@@ -212,7 +212,7 @@ export default function WorkflowDetailsPage(props: Props) {
</FormCardBody>
</FormCard>
<div className="!mt-0 ml-7 h-3 w-2 border-l" />
<div className="mt-0! ml-7 h-3 w-2 border-l" />
{form.getValues("steps") && (
<div className="">
{form.getValues("steps")?.map((step, index) => {
@@ -225,7 +225,7 @@ export default function WorkflowDetailsPage(props: Props) {
<div key={index}>
<FormCard
key={step.id}
className="mb-0 bg-muted border-muted"
className="mb-0 bg-cal-muted border-muted"
collapsible={false}
label={
<div className="flex gap-2 items-center pt-1 pb-2">
@@ -293,7 +293,7 @@ export default function WorkflowDetailsPage(props: Props) {
</FormCardBody>
</FormCard>
{index !== form.getValues("steps").length - 1 && (
<div className="border-default !mt-0 ml-7 h-3 w-2 border-l" />
<div className="border-default mt-0! ml-7 h-3 w-2 border-l" />
)}
</div>
);
@@ -302,7 +302,7 @@ export default function WorkflowDetailsPage(props: Props) {
)}
{!permissions.readOnly && (
<>
<div className="border-default !mt-0 ml-7 h-3 w-2 border-l" />
<div className="border-default mt-0! ml-7 h-3 w-2 border-l" />
<Button
type="button"
onClick={() => setIsAddActionDialogOpen(true)}
@@ -102,7 +102,7 @@ export default function WorkflowListPage({ workflows }: Props) {
<>
{workflows && workflows.length > 0 ? (
<div className="bg-default border-subtle overflow-hidden rounded-md border sm:mx-0">
<ul className="divide-subtle !static w-full divide-y" data-testid="workflow-list" ref={parent}>
<ul className="divide-subtle static! w-full divide-y" data-testid="workflow-list" ref={parent}>
{workflows.map((workflow, index) => {
const firstItem = workflows[0];
const lastItem = workflows[workflows.length - 1];
@@ -118,8 +118,8 @@ export default function WorkflowListPage({ workflows }: Props) {
{!(lastItem && lastItem.id === workflow.id) && (
<ArrowButton onClick={() => moveWorkflow(index, 1)} arrowDirection="down" />
)}
<div className="first-line:group hover:bg-muted flex w-full items-center justify-between p-4 transition sm:px-6">
<Link href={`/workflows/${workflow.id}`} className="flex-grow cursor-pointer">
<div className="first-line:group hover:bg-cal-muted flex w-full items-center justify-between p-4 transition sm:px-6">
<Link href={`/workflows/${workflow.id}`} className="grow cursor-pointer">
<div className="rtl:space-x-reverse">
<div className="flex">
<div
@@ -229,7 +229,7 @@ export default function WorkflowListPage({ workflows }: Props) {
<div>
<div className="hidden md:block">
{workflow.team?.name && (
<Badge className="mb-2 mr-4 mt-1 p-[1px] px-2" variant="gray">
<Badge className="mb-2 mr-4 mt-1 p-px px-2" variant="gray">
<Avatar
alt={workflow.team?.name || ""}
href={
@@ -250,7 +250,7 @@ export default function WorkflowListPage({ workflows }: Props) {
</div>
</div>
<div className="flex flex-shrink-0">
<div className="flex shrink-0">
<div className="hidden sm:block">
<ButtonGroup combined>
<Tooltip content={t("edit") as string}>
@@ -123,7 +123,7 @@ const getTimeSectionText = (trigger: WorkflowTriggerEvents, t: TFunction) => {
const CalAIAgentDataSkeleton = () => {
return (
<div className="bg-muted mt-4 rounded-lg p-4">
<div className="bg-cal-muted mt-4 rounded-lg p-4">
<div className="flex items-center justify-between">
<div>
<SkeletonText className="h-5 w-28" />
@@ -848,7 +848,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
</div>
)}
{isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && !stepAgentId && (
<div className="bg-muted border-muted mt-2 rounded-2xl border p-3">
<div className="bg-cal-muted border-muted mt-2 rounded-2xl border p-3">
<div className="flex flex-col justify-between gap-4 sm:flex-row sm:items-center sm:gap-0">
<div>
<h2 className="text-emphasis text-sm font-medium leading-none">
@@ -875,7 +875,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
{stepAgentId && isAgentLoading && <CalAIAgentDataSkeleton />}
{stepAgentId && agentData && (
<div className="bg-muted mt-4 rounded-lg p-4">
<div className="bg-cal-muted mt-4 rounded-lg p-4">
<div
className="flex cursor-pointer items-center justify-between"
onClick={(e) => {
@@ -1019,7 +1019,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
</div>
)}
{isPhoneNumberNeeded && (
<div className="bg-muted mt-2 rounded-md p-4 pt-0">
<div className="bg-cal-muted mt-2 rounded-md p-4 pt-0">
<Label className="pt-4">{t("custom_phone_number")}</Label>
<div className="block sm:flex">
<Controller
@@ -1132,7 +1132,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
</div>
)}
{isEmailAddressNeeded && !isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && (
<div className="bg-muted border-muted mt-5 rounded-2xl border p-4">
<div className="bg-cal-muted border-muted mt-5 rounded-2xl border p-4">
<Label>{t("email_address")}</Label>
<div className="block items-center gap-2 sm:flex">
<Controller
@@ -1304,7 +1304,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
</div>
)}
{!isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && (
<div className="bg-muted border-muted mt-3 rounded-2xl border p-3">
<div className="bg-cal-muted border-muted mt-3 rounded-2xl border p-3">
{isEmailSubjectNeeded && (
<div className="mb-6">
<div className="flex items-center">
@@ -1316,7 +1316,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
{t("email_subject")}
</Label>
{!props.readOnly && !isFormTrigger(trigger) && (
<div className="flex-grow text-right">
<div className="grow text-right">
<AddVariablesDropdown
addVariable={addVariableEmailSubject}
variables={DYNAMIC_TEXT_VARIABLES}
@@ -1520,7 +1520,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
? t("how_form_responses_as_variables")
: t("how_booking_questions_as_variables")}
</h1>
<div className="bg-muted-3 mb-6 rounded-md sm:p-4">
<div className="mb-6 rounded-md sm:p-4">
<p className="test-sm font-medium">{t("format")}</p>
<ul className="text-emphasis ml-5 mt-2 list-disc">
<li>{t("uppercase_for_letters")}</li>
@@ -1540,7 +1540,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
<div className="test-sm text-emphasis col-span-7">{t("company_size")}</div>
<div className="test-sm text-default col-span-5 w-full">{t("variable")}</div>
<div className="test-sm text-emphasis col-span-7 break-words">
<div className="test-sm text-emphasis col-span-7 wrap-break-word">
{" "}
{`{${t("company_size")
.replace(/[^a-zA-Z0-9 ]/g, "")
@@ -1558,7 +1558,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
</div>
<div className="test-sm text-emphasis col-span-7">{t("what_help_needed")}</div>
<div className="test-sm text-default col-span-5">{t("variable")}</div>
<div className="test-sm text-emphasis col-span-7 break-words">
<div className="test-sm text-emphasis col-span-7 wrap-break-word">
{" "}
{`{${t("what_help_needed")
.replace(/[^a-zA-Z0-9 ]/g, "")
@@ -1631,7 +1631,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
{/* Unsubscribe Confirmation Dialog */}
<Dialog open={isUnsubscribeDialogOpen} onOpenChange={setIsUnsubscribeDialogOpen}>
<DialogContent type="creation" title={t("unsubscribe_phone_number")}>
<div className="space-y-4">
<div className="stack-y-4">
<p className="text-default text-sm">{t("do_you_still_want_to_unsubscribe")}</p>
{getActivePhoneNumbers(
agentData?.outboundPhoneNumbers?.map((phone) => ({
@@ -1639,7 +1639,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
subscriptionStatus: phone.subscriptionStatus ?? undefined,
}))
).length > 0 && (
<div className="bg-muted rounded-lg p-3">
<div className="bg-cal-muted rounded-lg p-3">
<div className="flex items-center gap-2">
<Icon name="phone" className="text-emphasis h-4 w-4" />
<span className="text-emphasis text-sm font-medium">
@@ -1689,7 +1689,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
{/* Delete Step Confirmation Dialog */}
<Dialog open={isDeleteStepDialogOpen} onOpenChange={setIsDeleteStepDialogOpen}>
<DialogContent type="confirmation" title={t("delete_workflow_step")}>
<div className="space-y-4">
<div className="stack-y-4">
<p className="text-default text-sm">{t("are_you_sure_you_want_to_delete_workflow_step")}</p>
{(() => {
const relevantPhoneNumbers =
@@ -1703,9 +1703,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
<div className="bg-attention rounded-lg p-3">
<div className="flex items-start gap-2">
<Icon name="info" className="text-attention mt-0.5 h-4 w-4" />
<div className="space-y-2">
<div className="stack-y-2">
<p className="text-attention text-sm font-medium">{t("this_action_will_also")}</p>
<ul className="text-attention list-inside list-disc space-y-1 text-sm">
<ul className="text-attention list-inside list-disc stack-y-1 text-sm">
{relevantPhoneNumbers.some(
(phone) => phone.subscriptionStatus === PhoneNumberSubscriptionStatus.ACTIVE
) && <li>{t("cancel_your_phone_number_subscription")}</li>}
@@ -1715,10 +1715,10 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
</div>
</div>
{relevantPhoneNumbers.map((phone) => (
<div key={phone.phoneNumber} className="bg-muted rounded-lg p-3">
<div className="flex items-center gap-2">
<Icon name="phone" className="text-emphasis h-4 w-4" />
<span className="text-emphasis text-sm font-medium">
<div key={phone.phoneNumber} className="p-3 rounded-lg bg-cal-muted">
<div className="flex gap-2 items-center">
<Icon name="phone" className="w-4 h-4 text-emphasis" />
<span className="text-sm font-medium text-emphasis">
{formatPhoneNumber(phone.phoneNumber)}
</span>
{phone.subscriptionStatus === PhoneNumberSubscriptionStatus.ACTIVE && (
@@ -73,7 +73,7 @@ export function ImportNumberDialog({
<DialogHeader title={t("import_phone_number")} subtitle={t("import_phone_number_description")} />
<Form form={phoneNumberForm} handleSubmit={(values) => handleImportPhoneNumber(values)}>
<div className="space-y-6">
<div className="stack-y-6">
<Controller
name="phoneNumber"
control={phoneNumberForm.control}
@@ -124,14 +124,14 @@ export function ImportNumberDialog({
)}
/>
<div className="bg-muted rounded-xl p-1">
<div className="bg-cal-muted rounded-xl p-1">
<div className="flex items-center justify-between p-2">
<Label className="text-emphasis mb-0 text-sm font-medium leading-none">{t("advanced")}</Label>
<Switch size="sm" checked={showAdvancedFields} onCheckedChange={setShowAdvancedFields} />
</div>
{showAdvancedFields && (
<div className="bg-default space-y-5 rounded-lg p-4">
<div className="bg-default stack-y-5 rounded-lg p-4">
<Controller
name="sipTrunkAuthUsername"
control={phoneNumberForm.control}
@@ -211,7 +211,7 @@ export function ImportNumberDialog({
{/* Having trouble importing section */}
<div className="rounded-lg border p-2">
<div className="flex items-start gap-3">
<Icon name="info" className="text-subtle mt-0.5 h-5 w-5 flex-shrink-0" />
<Icon name="info" className="text-subtle mt-0.5 h-5 w-5 shrink-0" />
<div className="flex-1">
<p className="text-emphasis text-sm font-medium">{t("having_trouble_importing")}</p>
<p className="text-subtle mt-1 text-sm leading-tight">
@@ -51,7 +51,7 @@ export function AgentConfigForm({
};
return (
<div className="space-y-4">
<div className="stack-y-4">
<LanguageSelector control={form.control} name="language" disabled={readOnly} />
<VoiceSelector
@@ -118,11 +118,11 @@ export function AgentConfigForm({
{t("Add Function")}
</Button>
</div>
<div className="space-y-3">
<div className="stack-y-3">
{toolFields.map((tool, idx) => (
<div
key={tool.id}
className="flex justify-between items-center p-4 rounded-lg border transition-colors border-subtle bg-muted hover:bg-default">
className="flex justify-between items-center p-4 rounded-lg border transition-colors border-subtle bg-cal-muted hover:bg-default">
<div className="flex gap-3">
<div className="flex justify-center items-center w-8 h-8 rounded-md border bg-default border-subtle">
<Icon name="zap" className="w-4 h-4 text-emphasis" />
@@ -161,7 +161,7 @@ export function AgentConfigForm({
</div>
))}
{toolFields.length === 0 && (
<div className="flex flex-col justify-center items-center p-6 text-center rounded-lg border border-subtle bg-muted">
<div className="flex flex-col justify-center items-center p-6 text-center rounded-lg border border-subtle bg-cal-muted">
<Icon name="zap" className="w-6 h-6 text-subtle" />
<p className="mt-2 text-sm text-subtle">{t("No functions configured yet")}</p>
<p className="text-xs text-subtle">
@@ -87,11 +87,11 @@ export function IncomingCallsTab({
if (!hasActivePhoneNumbers) {
return (
<div className="p-8 rounded-xl border border-subtle">
<div className="flex flex-col items-center space-y-6 text-center">
<div className="flex justify-center items-center w-16 h-16 rounded-lg bg-muted">
<div className="flex flex-col items-center stack-y-6 text-center">
<div className="flex justify-center items-center w-16 h-16 rounded-lg bg-cal-muted">
<Icon name="info" className="w-8 h-8 text-subtle" />
</div>
<div className="space-y-2">
<div className="stack-y-2">
<h3 className="text-lg font-semibold text-emphasis">{t("setup_incoming_agent")}</h3>
<p className="text-sm text-subtle">{t("connect_a_phone_number_first")}</p>
</div>
@@ -103,11 +103,11 @@ export function IncomingCallsTab({
if (!inboundAgentId) {
return (
<div className="p-8 rounded-xl border border-subtle">
<div className="flex flex-col items-center space-y-6 text-center">
<div className="flex justify-center items-center w-16 h-16 rounded-lg bg-muted">
<div className="flex flex-col items-center stack-y-6 text-center">
<div className="flex justify-center items-center w-16 h-16 rounded-lg bg-cal-muted">
<Icon name="phone-incoming" className="w-8 h-8 text-subtle" />
</div>
<div className="space-y-2">
<div className="stack-y-2">
<h3 className="text-lg font-semibold text-emphasis">{t("setup_inbound_agent")}</h3>
<p className="text-sm text-subtle">{t("setup_inbound_agent_for_incoming_calls")}</p>
</div>
@@ -145,7 +145,7 @@ export function IncomingCallsTab({
}
return (
<div className="space-y-4">
<div className="stack-y-4">
<div>
<Label className="block mb-1 text-sm font-medium text-emphasis">{t("event_type")}</Label>
<p className="text-subtle mb-1.5 text-xs">{t("select_event_type_for_inbound_calls")}</p>
@@ -124,7 +124,7 @@ export function PhoneNumberTab({
return (
<>
<div className="relative space-y-2">
<div className="relative stack-y-2">
{updateAgentMutation.isPending && (
<div className="absolute inset-0 z-10 flex items-center justify-center rounded-lg bg-white/50">
<div className="flex items-center gap-2 text-sm text-gray-600">
@@ -274,11 +274,11 @@ export function PhoneNumberTab({
return (
<>
<div className="border-subtle rounded-xl border p-8">
<div className="flex flex-col items-center space-y-6 text-center">
<div className="bg-muted flex h-16 w-16 items-center justify-center rounded-lg">
<div className="flex flex-col items-center stack-y-6 text-center">
<div className="bg-cal-muted flex h-16 w-16 items-center justify-center rounded-lg">
<Icon name="phone" className="text-subtle h-8 w-8" />
</div>
<div className="space-y-2">
<div className="stack-y-2">
<h3 className="text-emphasis text-lg font-semibold">{t("no_phone_numbers")}</h3>
<p className="text-subtle text-sm">{t("buy_a_phone_number_or_import_one_you_already_have")}</p>
</div>
@@ -138,7 +138,7 @@ const Filter = (props: {
return (
<div className={classNames("-mb-2", noFilter ? "w-16" : "w-[100px]")}>
<AnimatedPopover text={noFilter ? "All" : "Filtered"}>
<div className="item-center focus-within:bg-subtle hover:bg-muted flex px-4 py-[6px] transition hover:cursor-pointer">
<div className="item-center focus-within:bg-subtle hover:bg-cal-muted flex px-4 py-[6px] transition hover:cursor-pointer">
<Avatar
imageSrc={userAvatar || ""}
size="sm"
@@ -173,7 +173,7 @@ const Filter = (props: {
</div>
{teams.map((profile) => (
<div
className="item-center focus-within:bg-subtle hover:bg-muted flex px-4 py-[6px] transition hover:cursor-pointer"
className="item-center focus-within:bg-subtle hover:bg-cal-muted flex px-4 py-[6px] transition hover:cursor-pointer"
key={`${profile.teamId || 0}`}>
<Avatar
imageSrc={profile.image || ""}
Loaded 100 of 447 files, more files were not shown because too many files have changed in this diff. Show more