Skip to content

Commit

Permalink
feat(calendar): expose further public apis (#418)
Browse files Browse the repository at this point in the history
- add label property to the calendar type
- expose externalEventToInternal
  • Loading branch information
tomosterlund committed May 11, 2024
1 parent 1f80aa2 commit e2be1b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/calendar/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
setRangeForMonth,
setRangeForDay,
} from './utils/stateless/time/range/set-range'
import { externalEventToInternal } from '@schedule-x/shared/src/utils/stateless/calendar/external-event-to-internal'

export type { CalendarConfig, CustomComponentFn, CalendarEvent }

Expand All @@ -29,4 +30,5 @@ export {
setRangeForDay,
setRangeForWeek,
setRangeForMonth,
externalEventToInternal,
}
1 change: 1 addition & 0 deletions packages/shared/src/interfaces/calendar/calendar-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type ColorDefinition = {

export type CalendarType = {
colorName: string
label?: string
lightColors?: ColorDefinition
darkColors?: ColorDefinition
}
Expand Down

0 comments on commit e2be1b0

Please sign in to comment.