diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index e1ccfd434f..17198fcacd 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -342,10 +342,10 @@ const BookerComponent = ({ )} { const selectedDate = useBookerStore((state) => state.selectedDate); const setSelectedTimeslot = useBookerStore((state) => state.setSelectedTimeslot); @@ -88,16 +89,17 @@ export const AvailableTimeSlots = ({ return ( <> -
+
{isLoading ? (
) : ( slotsPerDay.length > 0 && slotsPerDay.map((slots) => ( {isLoading && // Shows exact amount of days as skeleton. Array.from({ length: 1 + (extraDays ?? 0) }).map((_, i) => )} @@ -126,8 +128,8 @@ export const AvailableTimeSlots = ({ slotsPerDay.map((slots) => (
{ const { t } = useLocale(); @@ -126,7 +126,7 @@ const SlotItem = ({ className={classNames( `min-h-9 hover:border-brand-default mb-2 flex h-auto w-full flex-grow flex-col justify-center py-2`, selectedSlots?.includes(slot.time) && "border-brand-default", - `${customClassnames}` + `${customClassNames}` )} color="secondary">
@@ -197,7 +197,7 @@ export const AvailableTimes = ({ className, selectedSlots, event, - customClassnames, + customClassNames, }: AvailableTimesProps) => { const { t } = useLocale(); @@ -228,7 +228,7 @@ export const AvailableTimes = ({ if (slot.away) return null; return ( { const { t, i18n } = useLocale(); const [layout] = useBookerStore((state) => [state.layout], shallow); @@ -38,7 +38,7 @@ export const AvailableTimesHeader = ({ className={classNames( `dark:bg-muted dark:before:bg-muted mb-3 flex w-full flex-row items-center font-medium`, "bg-default before:bg-default", - customClassnames?.availableTimeSlotContainer + customClassNames?.availableTimeSlotsHeaderContainer )}> {nameOfDay(i18n.language, Number(date.format("d")), "short")} @@ -57,8 +57,8 @@ export const AvailableTimesHeader = ({ isColumnView && isToday && "bg-brand-default text-brand ml-2", "inline-flex items-center justify-center rounded-3xl px-1 pt-0.5 font-medium", isMonthView - ? `text-default text-sm ${customClassnames?.availableTimeSlotTitle}` - : `text-xs ${customClassnames?.availableTimeSlotTitle}` + ? `text-default text-sm ${customClassNames?.availableTimeSlotsTitle}` + : `text-xs ${customClassNames?.availableTimeSlotsTitle}` )}> {date.format("DD")} {availableMonth && `, ${availableMonth}`} @@ -67,7 +67,7 @@ export const AvailableTimesHeader = ({ {showTimeFormatToggle && (
- +
)} diff --git a/packages/features/bookings/components/TimeFormatToggle.tsx b/packages/features/bookings/components/TimeFormatToggle.tsx index 330e4dce89..59d29cfce3 100644 --- a/packages/features/bookings/components/TimeFormatToggle.tsx +++ b/packages/features/bookings/components/TimeFormatToggle.tsx @@ -4,14 +4,14 @@ import { ToggleGroup } from "@calcom/ui"; import { useTimePreferences } from "../lib"; -export const TimeFormatToggle = ({ customClassname }: { customClassname?: string }) => { +export const TimeFormatToggle = ({ customClassName }: { customClassName?: string }) => { const timeFormat = useTimePreferences((state) => state.timeFormat); const setTimeFormat = useTimePreferences((state) => state.setTimeFormat); const { t } = useLocale(); return ( { if (newFormat && newFormat !== timeFormat) setTimeFormat(newFormat as TimeFormat); }} diff --git a/packages/features/calendars/DatePicker.tsx b/packages/features/calendars/DatePicker.tsx index ac2388e5a7..08a4487986 100644 --- a/packages/features/calendars/DatePicker.tsx +++ b/packages/features/calendars/DatePicker.tsx @@ -59,14 +59,14 @@ export const Day = ({ disabled, away, emoji, - customClassname, + customClassName, ...props }: JSX.IntrinsicElements["button"] & { active: boolean; date: Dayjs; away?: boolean; emoji?: string | null; - customClassname?: { + customClassName?: { dayContainer?: string; dayActive?: string; }; @@ -85,11 +85,11 @@ export const Day = ({ ? "bg-brand-default text-brand" : !disabled ? `${ - !customClassname?.dayActive + !customClassName?.dayActive ? "hover:border-brand-default text-emphasis bg-emphasis" - : `hover:border-brand-default ${customClassname.dayActive}` + : `hover:border-brand-default ${customClassName.dayActive}` }` - : `${customClassname ? "" : " text-mute"}` + : `${customClassName ? "" : " text-mute"}` )} data-testid="day" data-disabled={disabled} @@ -140,7 +140,7 @@ const Days = ({ nextMonthButton, eventSlug, slots, - customClassname, + customClassName, ...props }: Omit & { DayComponent?: React.FC>; @@ -148,7 +148,7 @@ const Days = ({ weekStart: number; month: string | null; nextMonthButton: () => void; - customClassname?: { + customClassName?: { datePickerDate?: string; datePickerDateActive?: string; }; @@ -258,9 +258,9 @@ const Days = ({ ) : ( { @@ -377,7 +377,7 @@ const DatePicker = ({
& { rescheduleUid?: string; bookingUid?: string; diff --git a/packages/platform/atoms/booker/BookerWebWrapper.tsx b/packages/platform/atoms/booker/BookerWebWrapper.tsx index 033917f2b3..b8dc486d1a 100644 --- a/packages/platform/atoms/booker/BookerWebWrapper.tsx +++ b/packages/platform/atoms/booker/BookerWebWrapper.tsx @@ -21,9 +21,7 @@ import { DEFAULT_LIGHT_BRAND_COLOR, DEFAULT_DARK_BRAND_COLOR } from "@calcom/lib import { useRouterQuery } from "@calcom/lib/hooks/useRouterQuery"; import { BookerLayouts } from "@calcom/prisma/zod-utils"; -import type { CustomClassNames } from "./BookerPlatformWrapper"; - -type BookerWebWrapperAtomProps = BookerProps & { customClassNames?: CustomClassNames }; +type BookerWebWrapperAtomProps = BookerProps; export const BookerWebWrapper = (props: BookerWebWrapperAtomProps) => { const router = useRouter(); diff --git a/packages/platform/atoms/package.json b/packages/platform/atoms/package.json index ce98da1fa3..8f94c1d616 100644 --- a/packages/platform/atoms/package.json +++ b/packages/platform/atoms/package.json @@ -4,7 +4,7 @@ "type": "module", "description": "Customizable UI components to integrate scheduling into your product.", "authors": "Cal.com, Inc.", - "version": "1.0.14", + "version": "1.0.18", "scripts": { "dev": "yarn vite build --watch & npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify --watch", "build": "yarn vite build && npx tailwindcss -i ./globals.css -o ./globals.min.css --postcss --minify", diff --git a/packages/ui/components/form/toggleGroup/ToggleGroup.tsx b/packages/ui/components/form/toggleGroup/ToggleGroup.tsx index 08825dfb7d..75d545e1db 100644 --- a/packages/ui/components/form/toggleGroup/ToggleGroup.tsx +++ b/packages/ui/components/form/toggleGroup/ToggleGroup.tsx @@ -36,9 +36,9 @@ export const ToggleGroup = ({ options, onValueChange, isFullWidth, - customClassnames, + customClassNames, ...props -}: ToggleGroupProps & { customClassnames?: string }) => { +}: ToggleGroupProps & { customClassNames?: string }) => { return ( <> {options.map((option) => (