Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(calendar): fix minor type issues #1588

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions components/calendar/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export interface CalendarProps {
* the size of a single cell in the table forming the calendar
*/
cellSize?: string

/**
* Add a "clear" button to delete the selected date
*/
clearable?: boolean
/**
* the currently selected date using an iso-like format YYYY-MM-DD, in the calendar system provided (not iso8601)
*/
Expand Down Expand Up @@ -52,10 +57,7 @@ export interface CalendarProps {

export const Calendar: React.FC<CalendarProps>

export type CalendarInputProps = Omit<
InputFieldProps,
'label' | 'type' | 'value'
> &
export type CalendarInputProps = Omit<InputFieldProps, 'type' | 'value'> &
CalendarProps

export const CalendarInput: React.FC<CalendarInputProps>
Loading