Skip to content

Commit 4e5a08b

Browse files
marcopiiiveej
authored andcommitted
fix exported types and components
1 parent aa4ff2d commit 4e5a08b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

packages/bento-design-system/src/DateField/DateField.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ function RangeDateField(props: RangeDateFieldProps) {
116116
);
117117
}
118118

119-
export function DateField(props: SingleDateFieldProps | RangeDateFieldProps) {
119+
export type DateFieldProps = SingleDateFieldProps | RangeDateFieldProps;
120+
121+
export function DateField(props: DateFieldProps) {
120122
// @ts-ignore
121123
return match(props)
122124
.with({ type: "single" }, { type: undefined }, (props) => <SingleDateField {...props} />)

packages/bento-design-system/src/DateField/DateInput.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ function RangeDateInput(props: RangeDateInputProps) {
109109
);
110110
}
111111

112+
export type DateInputProps = SingleDateInputProps | RangeDateInputProps;
113+
112114
export function DateInput(props: SingleDateInputProps | RangeDateInputProps) {
113115
return match(props)
114116
.with({ type: "single" }, { type: undefined }, (props) => <SingleDateInput {...props} />)

packages/bento-design-system/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export * from "./ContentBlock/ContentBlock";
2727
export * from "./ContentWithSidebar/ContentWithSidebar";
2828
export * from "./DateField/Calendar";
2929
export * from "./DateField/DateField";
30+
export * from "./DateField/DateInput";
3031
export * from "./Disclosure/Disclosure";
3132
export * from "./DisclosureGroup/DisclosureGroup";
3233
export * from "./Divider/Divider";

0 commit comments

Comments
 (0)