Skip to content

Commit 657a753

Browse files
committed
feat: re-export DateValue type from shared date module
1 parent cdc96e1 commit 657a753

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

packages/core/src/Calendar/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export type { DateValue } from '../date'
2-
31
export {
42
injectCalendarRootContext,
53
default as CalendarRoot,

packages/core/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export {
6464
createContext,
6565
type Formatter,
6666
type DateRange,
67+
type DateValue,
6768
} from './shared'
6869
export {
6970
type ReferenceElement,

packages/core/src/shared/date/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export {
77
} from './comparators'
88
export type {
99
DateRange,
10+
DateValue,
1011
DayOfWeek,
1112
HourCycle,
1213
DayPeriod,

packages/core/src/shared/date/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
*/
44

55
import type { DateValue } from '@internationalized/date'
6+
7+
export type { DateValue }
68
import type { DATE_SEGMENT_PARTS, EDITABLE_SEGMENT_PARTS, NON_EDITABLE_SEGMENT_PARTS, TIME_SEGMENT_PARTS } from './parts'
79

810
// Days of the week, starting with Sunday

packages/core/src/shared/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export * from './arrays'
77
export * from './browser'
88
export * from './object'
99
export * from './nullish'
10-
export { type DateRange } from './date'
10+
export { type DateRange, type DateValue } from './date'
1111
export { onFocusOutside } from './onFocusOutside'
1212
export { renderSlotFragments } from './renderSlotFragments'
1313
export { trapFocus } from './trap-focus'

0 commit comments

Comments
 (0)