feat: added custom classnames for event-limits tab (#17478)
* added custom classnames for event limits tab * added classNames to common types * updated classnames to use the common exported types * undo * Update EventTypePlatformWrapper.tsx * better clasnames naming * added example classnames for demo * fix: better calssnames bookingFrequencyLimitSection-> bookingFrequencyLimit totalDurationLimitSection-> totalDurationLimit futureBookingLimitSection-> futureBookingLimit offsetStartTimesSection-> offsetStartTimes * suffix->addOn * Update types.ts
This commit is contained in:
1 parent
eae74c568c
commit
935115d7c1
3 files changed
+351
-43
No files matched your search
@@ -491,6 +491,150 @@ export default function Bookings(props: { calUsername: string; calEmail: string
|
||||
experimentalAlert: "border border-red-300 bg-red-50 rounded-lg text-red-900 shadow-sm",
|
||||
paymentAlert: "border border-purple-300 bg-purple-100 rounded-lg text-purple-900 shadow-md",
|
||||
},
|
||||
eventLimitsTab: {
|
||||
bufferAndNoticeSection: {
|
||||
container: "border border-purple-200 bg-purple-100 rounded-lg",
|
||||
beforeBufferSelect: {
|
||||
container: "mb-4",
|
||||
label: "text-purple-700",
|
||||
select: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
innerClassNames: {
|
||||
input: "text-purple-900",
|
||||
option: "text-purple-700 hover:bg-purple-200",
|
||||
control: "border-purple-300",
|
||||
singleValue: "text-purple-900",
|
||||
valueContainer: "bg-purple-100",
|
||||
menu: "border border-purple-200 rounded-md",
|
||||
menuList: "bg-white",
|
||||
},
|
||||
},
|
||||
afterBufferSelect: {
|
||||
container: "mb-4",
|
||||
label: "text-purple-700",
|
||||
select: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
innerClassNames: {
|
||||
input: "text-purple-900",
|
||||
option: "text-purple-700 hover:bg-purple-200",
|
||||
control: "border-purple-300",
|
||||
singleValue: "text-purple-900",
|
||||
valueContainer: "bg-purple-100",
|
||||
menu: "border border-purple-200 rounded-md",
|
||||
menuList: "bg-white",
|
||||
},
|
||||
},
|
||||
minimumNoticeInput: {
|
||||
container: "mb-4",
|
||||
label: "text-purple-700",
|
||||
input: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
select: "border border-purple-300 rounded-md text-purple-900 bg-purple-50",
|
||||
innerClassNames: {
|
||||
input: "text-purple-900",
|
||||
option: "text-purple-700 hover:bg-purple-200",
|
||||
control: "border-purple-300",
|
||||
singleValue: "text-purple-900",
|
||||
valueContainer: "bg-purple-100",
|
||||
},
|
||||
},
|
||||
timeSlotIntervalSelect: {
|
||||
container: "mb-4",
|
||||
label: "text-purple-700",
|
||||
select: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
innerClassNames: {
|
||||
input: "text-purple-900",
|
||||
option: "text-purple-700 hover:bg-purple-200",
|
||||
control: "border-purple-300",
|
||||
singleValue: "text-purple-900",
|
||||
valueContainer: "bg-purple-100",
|
||||
},
|
||||
},
|
||||
},
|
||||
bookingFrequencyLimit: {
|
||||
container: "border border-purple-200 bg-purple-100 rounded-lg",
|
||||
label: "text-purple-700",
|
||||
description: "text-purple-500",
|
||||
children: "space-y-4",
|
||||
intervalLimitContainer: "space-y-2",
|
||||
intervalLimitItem: {
|
||||
addLimitButton: "text-purple-500 hover:bg-purple-200 rounded-md",
|
||||
limitText: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
limitSelect: {
|
||||
select: "border border-purple-300 rounded-md text-purple-900 bg-purple-50",
|
||||
innerClassNames: {
|
||||
input: "text-purple-900",
|
||||
option: "text-purple-700 hover:bg-purple-200",
|
||||
control: "border-purple-300",
|
||||
singleValue: "text-purple-900",
|
||||
valueContainer: "bg-purple-100",
|
||||
},
|
||||
},
|
||||
container: "flex items-center space-x-2",
|
||||
},
|
||||
},
|
||||
firstAvailableSlotOnly: {
|
||||
container: "border border-purple-200 bg-purple-100 rounded-lg",
|
||||
label: "text-purple-700",
|
||||
description: "text-purple-500",
|
||||
children: "space-y-4",
|
||||
},
|
||||
totalDurationLimit: {
|
||||
container: "border border-purple-200 bg-purple-100 rounded-lg",
|
||||
label: "text-purple-700",
|
||||
description: "text-purple-500",
|
||||
children: "space-y-4",
|
||||
intervalLimitItem: {
|
||||
addLimitButton: "text-purple-500 hover:bg-purple-200 rounded-md",
|
||||
limitText: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
limitSelect: {
|
||||
select: "border border-purple-300 rounded-md text-purple-900 bg-purple-50",
|
||||
innerClassNames: {
|
||||
input: "text-purple-900",
|
||||
option: "text-purple-700 hover:bg-purple-200",
|
||||
control: "border-purple-300",
|
||||
singleValue: "text-purple-900",
|
||||
valueContainer: "bg-purple-100",
|
||||
},
|
||||
},
|
||||
container: "flex items-center space-x-2",
|
||||
},
|
||||
},
|
||||
futureBookingLimit: {
|
||||
container: "border border-purple-200 bg-purple-100 rounded-lg",
|
||||
label: "text-purple-700",
|
||||
description: "text-purple-500",
|
||||
children: "space-y-4",
|
||||
rollingLimit: {
|
||||
container: "flex items-center space-x-2",
|
||||
textField: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
periodTypeSelect: {
|
||||
select: "border border-purple-300 rounded-md text-purple-900 bg-purple-50",
|
||||
innerClassNames: {
|
||||
input: "text-purple-900",
|
||||
option: "text-purple-700 hover:bg-purple-200",
|
||||
control: "border-purple-300",
|
||||
singleValue: "text-purple-900",
|
||||
valueContainer: "bg-purple-100",
|
||||
},
|
||||
},
|
||||
},
|
||||
rangeLimit: {
|
||||
wrapper: "flex items-center space-x-2",
|
||||
datePickerWraper: "border border-purple-300 rounded-md bg-white",
|
||||
datePicker: "text-purple-900 bg-white",
|
||||
},
|
||||
},
|
||||
offsetStartTimes: {
|
||||
container: "border border-purple-200 bg-purple-100 rounded-lg",
|
||||
label: "text-purple-700",
|
||||
description: "text-purple-500",
|
||||
children: "space-y-4",
|
||||
offsetInput: {
|
||||
container: "flex items-center space-x-2",
|
||||
label: "text-purple-700",
|
||||
input: "border border-purple-300 rounded-md text-purple-900 bg-white",
|
||||
addOn: "text-purple-500",
|
||||
},
|
||||
},
|
||||
},
|
||||
}}
|
||||
allowDelete={true}
|
||||
id={eventTypeId}
|
||||
|
||||
Reference in new issue
Block a user