feat: more atoms styles (#22976)
* feat: availability override classnames * feat: availability time picker styles * feat: calendar settings headers styles * feat: destination and connected calendars * feat: date override title,description,button * feat: selected calendars list * example styles * docs * chanegest * refactor: change import path to relative * fix: make all classnames optional * docs: time picker docs --------- Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
This commit is contained in:
co-authored by
Somay Chauhan
parent
6c6cf0433a
commit
abe92cd693
@@ -125,12 +125,45 @@ Along with the props, Availability settings atom accepts custom styles via the *
|
||||
| formClassName | Form which contains the days and toggles |
|
||||
| timezoneSelectClassName | Adds styling to the timezone select component |
|
||||
| subtitlesClassName | Styles the subtitle |
|
||||
| scheduleContainer | Styles the entire schedule component |
|
||||
| scheduleDay | Adds styling to just the day of a particular schedule |
|
||||
| dayRanges | Adds styling to day ranges |
|
||||
| timeRanges | Time ranges in the availability settings can be customized |
|
||||
| labelAndSwitchContainer | Adds styling to label and switches |
|
||||
| overridesModalClassNames | Adds styling to the date overrides modal |
|
||||
| scheduleClassNames | An object for granular styling of schedule components (see detailed table below) |
|
||||
| dateOverrideClassNames | An object for granular styling of date override components (see detailed table below) |
|
||||
|
||||
### scheduleClassNames Object Structure
|
||||
|
||||
The `scheduleClassNames` prop accepts an object with the following structure for granular styling of schedule components:
|
||||
|
||||
| Property Path | Description |
|
||||
|:--------------|:------------|
|
||||
| `schedule` | Styles the entire schedule component |
|
||||
| `scheduleContainer` | Styles the schedule container |
|
||||
| `scheduleDay` | Adds styling to just the day of a particular schedule |
|
||||
| `dayRanges` | Adds styling to day ranges |
|
||||
| `timeRangeField` | Styles the time range input fields |
|
||||
| `labelAndSwitchContainer` | Adds styling to label and switches |
|
||||
| `timePicker` | An object for granular styling of time picker dropdown components (see nested table below) |
|
||||
|
||||
#### timePicker Object Structure (nested within scheduleClassNames)
|
||||
|
||||
The `timePicker` prop accepts an object with the following structure for granular styling of time picker dropdown components. This applies to the time selection dropdowns (e.g., [ 9:00 ]) that users can click to open a dropdown with available times or click to manually enter a time:
|
||||
|
||||
| Property Path | Description |
|
||||
|:--------------|:------------|
|
||||
| `container` | Styles the main time picker container |
|
||||
| `valueContainer` | Styles the container that holds the selected value |
|
||||
| `value` | Styles the displayed selected time value |
|
||||
| `input` | Styles the input field for manual time entry |
|
||||
| `dropdown` | Styles the dropdown menu with time options |
|
||||
|
||||
### dateOverrideClassNames Object Structure
|
||||
|
||||
The `dateOverrideClassNames` prop accepts an object with the following structure for granular styling of date override components:
|
||||
|
||||
| Property Path | Description |
|
||||
|:--------------|:------------|
|
||||
| `container` | Styles the main container |
|
||||
| `title` | Styles the title|
|
||||
| `description` | Styles the description |
|
||||
| `button` | Styles the button to add date override |
|
||||
|
||||
<Info>Please ensure all custom classnames are valid [Tailwind CSS](https://tailwindcss.com/) classnames.</Info>
|
||||
|
||||
|
||||
@@ -47,6 +47,37 @@ Along with the props, calendar settings atom accepts custom styles via the **cla
|
||||
| calendarSettingsCustomClassnames | Adds styling to the entire calendar settings atom |
|
||||
| destinationCalendarSettingsCustomClassnames | Adds styling only to the destination calendar container |
|
||||
| selectedCalendarSettingsCustomClassnames | Adds styling only to the selected calendar container |
|
||||
| selectedCalendarSettingsClassNames | An object for granular styling of selected calendars component (see detailed table below) |
|
||||
| destinationCalendarSettingsClassNames | An object for granular styling of destination calendar component (see detailed table below) |
|
||||
|
||||
### selectedCalendarSettingsClassNames Object Structure
|
||||
|
||||
The `selectedCalendarSettingsClassNames` prop accepts an object with the following nested structure for granular styling of the selected calendars component:
|
||||
|
||||
| Property Path | Description |
|
||||
|:--------------|:------------|
|
||||
| `container` | Styles the main container of the selected calendars section |
|
||||
| `header.container` | Styles the header container |
|
||||
| `header.title` | Styles the header title |
|
||||
| `header.description` | Styles the header description |
|
||||
| `selectedCalendarsListClassNames.container` | Styles the container that holds all selected calendar items |
|
||||
| `selectedCalendarsListClassNames.selectedCalendar.container` | Styles each individual calendar item container |
|
||||
| `selectedCalendarsListClassNames.selectedCalendar.header.container` | Styles the header section of each calendar item |
|
||||
| `selectedCalendarsListClassNames.selectedCalendar.header.title` | Styles the title of each calendar item |
|
||||
| `selectedCalendarsListClassNames.selectedCalendar.header.description` | Styles the description of each calendar item |
|
||||
| `selectedCalendarsListClassNames.selectedCalendar.body.container` | Styles the body section of each calendar item |
|
||||
| `selectedCalendarsListClassNames.selectedCalendar.body.description` | Styles the body description of each calendar item |
|
||||
| `noSelectedCalendarsMessage` | Styles the message shown when no calendars are connected |
|
||||
|
||||
### destinationCalendarSettingsClassNames Object Structure
|
||||
|
||||
The `destinationCalendarSettingsClassNames` prop accepts an object with the following nested structure for granular styling of the destination calendar component:
|
||||
|
||||
| Property Path | Description |
|
||||
|:--------------|:------------|
|
||||
| `container` | Styles the main container of the destination calendar section |
|
||||
| `header.title` | Styles the header title text |
|
||||
| `header.description` | Styles the header description text |
|
||||
|
||||
<p></p>
|
||||
Additionally, if you wish to select either the Destination Calendar or the Selected Calendar, we also provide atoms specifically designed for this purpose.
|
||||
|
||||
Reference in New Issue
Block a user