feat: added custom classnames for event-advanced tab (#17479)

* feat: added custom classnames to event-advanced tab

* added more calssnames

* added classNames to common types

* undo extra changes

* Update EventTypePlatformWrapper.tsx

* Update types.ts

* Update EventTypePlatformWrapper.tsx

* better classnames

* Update EventTypePlatformWrapper.tsx

* addeed CustomEventTypeModalClassNames

* added example classnames for demo and some changes

* fix: better classnames

* timezoneLockToggle -> timezoneLock

* Update types.ts

* Update CustomEventTypeModal.tsx
This commit is contained in:
Somay Chauhan authored and GitHub committed 2024-11-25 12:11:27 +05:30
1 parent 9e9dd6070d
commit eae74c568c
7 files changed
+591 -113

No files matched your search

@@ -6,6 +6,7 @@ import { useRef, useState, useEffect } from "react";
import type { ChildrenEventType } from "@calcom/features/eventtypes/components/ChildrenEventTypeSelect";
import { EventType as EventTypeComponent } from "@calcom/features/eventtypes/components/EventType";
import ManagedEventTypeDialog from "@calcom/features/eventtypes/components/dialogs/ManagedEventDialog";
import type { EventAdvancedTabCustomClassNames } from "@calcom/features/eventtypes/components/tabs/advanced/EventAdvancedTab";
import type { EventTeamAssignmentTabCustomClassNames } from "@calcom/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab";
import type { EventAvailabilityTabCustomClassNames } from "@calcom/features/eventtypes/components/tabs/availability/EventAvailabilityTab";
import type { EventRecurringTabCustomClassNames } from "@calcom/features/eventtypes/components/tabs/recurring/RecurringEventController";
@@ -35,6 +36,7 @@ export type PlatformTabs = keyof Omit<TabMap, "workflows" | "webhooks" | "instan
export type EventTypeCustomClassNames = {
atomsWrapper?: string;
eventAdvancedTab?: EventAdvancedTabCustomClassNames;
eventAssignmentTab?: EventTeamAssignmentTabCustomClassNames;
eventRecurringTab?: EventRecurringTabCustomClassNames;
eventAvailabilityTab?: EventAvailabilityTabCustomClassNames;
@@ -184,6 +186,7 @@ const EventType = ({
user={user?.data}
isUserLoading={isUserLoading}
showToast={showToast}
customClassNames={customClassNames?.eventAdvancedTab}
/>
) : (
<></>
@@ -97,6 +97,155 @@ export default function Bookings(props: { calUsername: string; calEmail: string
<EventTypeSettings
customClassNames={{
atomsWrapper: "!w-[50vw] !m-auto",
eventAdvancedTab: {
destinationCalendar: {
container: "bg-purple-50 border border-purple-200 shadow-md",
select: "border border-purple-300 shadow-sm",
innerClassNames: {
input: "",
option: "",
control: "",
singleValue: "",
valueContainer: "",
multiValue: "",
menu: "",
menuList: "",
},
label: "",
},
eventName: {
container: "bg-purple-50 border border-purple-200 shadow-sm",
input: "border border-purple-300 shadow-inner",
label: "",
addOn: "",
},
addToCalendarEmailOrganizer: {
container: "bg-purple-50 border border-purple-200 shadow-inner",
label: "",
description: "",
children: "",
emailSelect: {
container: "",
select: "",
displayEmailLabel: "",
},
},
requiresConfirmation: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
radioGroupContainer: "",
alwaysConfirmationRadio: "",
conditionalConfirmationRadio: {
container: "",
timeInput: "",
timeUnitSelect: "",
checkbox: "",
checkboxDescription: "",
},
},
bookerEmailVerification: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
},
calendarNotes: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
},
eventDetailsVisibility: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
},
bookingRedirect: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
redirectUrlInput: {
container: "bg-purple-50 border border-purple-200 shadow-sm",
label: "",
input: "",
addOn: "",
},
forwardParamsCheckbox: {
checkbox: "",
description: "",
container: "bg-purple-50 border border-purple-300 shadow-sm",
},
error: "bg-purple-50 text-purple-700 border border-purple-300",
},
seatsOptions: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
seatsInput: {
container: "bg-purple-50 border border-purple-200 shadow-sm",
label: "",
input: "",
addOn: "",
},
showAttendeesCheckbox: {
checkbox: "",
description: "",
container: "",
},
showAvalableSeatCountCheckbox: {
checkbox: "",
description: "",
container: "",
},
},
timezoneLock: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
},
eventTypeColors: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
warningText: "",
},
roundRobinReschedule: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
},
emailNotifications: {
container: "bg-purple-50 border border-purple-200 shadow-md",
label: "",
description: "",
children: "",
confirmationDialog: {
container: "bg-purple-50 border border-purple-300 shadow-lg",
dialogTitle: "",
description: "",
confirmInput: {
container: "",
label: "",
input: "",
addOn: "",
},
dialogFooter: {
container: "bg-purple-50",
confirmButton: "",
cancelButton: "",
},
},
},
},
eventAssignmentTab: {
assignmentType: {
container: "border border-purple-200 bg-white rounded-lg p-6",