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

feat: exports typescript interface DatePickerProps and DatePickerInputProps #16707

Merged
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/react/src/components/DatePicker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export type CalRef = {
plugins: [];
clickOpens: any;
};
interface DatePickerProps {
export interface DatePickerProps {
/**
* Flatpickr prop passthrough enables direct date input, and when set to false,
* we must clear dates manually by resetting the value prop to empty string making it a controlled input.
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/DatePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/

import DatePicker from './DatePicker';
import DatePicker, { type DatePickerProps } from './DatePicker';

export {
default as DatePickerSkeleton,
type DatePickerSkeletonProps,
} from './DatePicker.Skeleton';
export default DatePicker;
export { DatePicker };
export { DatePicker, type DatePickerProps };
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type ReactNodeLike =

export type func = (...args: any[]) => any;

interface DatePickerInputProps
export interface DatePickerInputProps
extends Omit<ReactAttr<HTMLInputElement>, ExcludedAttributes> {
/**
* The type of the date picker:
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/DatePickerInput/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

import DatePickerInput from './DatePickerInput';
import DatePickerInput, { type DatePickerInputProps } from './DatePickerInput';
export default DatePickerInput;
export { DatePickerInput };
export { DatePickerInput, type DatePickerInputProps };
Loading