File tree 3 files changed +6
-1
lines changed
packages/bento-design-system/src
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,9 @@ function RangeDateField(props: RangeDateFieldProps) {
116
116
) ;
117
117
}
118
118
119
- export function DateField ( props : SingleDateFieldProps | RangeDateFieldProps ) {
119
+ export type DateFieldProps = SingleDateFieldProps | RangeDateFieldProps ;
120
+
121
+ export function DateField ( props : DateFieldProps ) {
120
122
// @ts -ignore
121
123
return match ( props )
122
124
. with ( { type : "single" } , { type : undefined } , ( props ) => < SingleDateField { ...props } /> )
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ function RangeDateInput(props: RangeDateInputProps) {
109
109
) ;
110
110
}
111
111
112
+ export type DateInputProps = SingleDateInputProps | RangeDateInputProps ;
113
+
112
114
export function DateInput ( props : SingleDateInputProps | RangeDateInputProps ) {
113
115
return match ( props )
114
116
. with ( { type : "single" } , { type : undefined } , ( props ) => < SingleDateInput { ...props } /> )
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export * from "./ContentBlock/ContentBlock";
27
27
export * from "./ContentWithSidebar/ContentWithSidebar" ;
28
28
export * from "./DateField/Calendar" ;
29
29
export * from "./DateField/DateField" ;
30
+ export * from "./DateField/DateInput" ;
30
31
export * from "./Disclosure/Disclosure" ;
31
32
export * from "./DisclosureGroup/DisclosureGroup" ;
32
33
export * from "./Divider/Divider" ;
You can’t perform that action at this time.
0 commit comments