@codecademy/gamut
68.2.268.2.3-alpha.794432.0
dist/DatePicker/DatePickerInput.d.ts+
dist/DatePicker/DatePickerInput.d.tsNew file+16
Index: package/dist/DatePicker/DatePickerInput.d.ts
===================================================================
--- package/dist/DatePicker/DatePickerInput.d.ts
+++ package/dist/DatePicker/DatePickerInput.d.ts
@@ -0,0 +1,16 @@
+import { ComponentProps } from 'react';
+import { Input } from '../Form/inputs/Input';
+/**
+ * Props for DatePickerInput. When used inside DatePicker, only overrides (e.g. placeholder, label).
+ * In range mode, use rangePart to bind to start or end date. When outside DatePicker, pass value, onChange, etc.
+ */
+export type DatePickerInputProps = Omit<ComponentProps<typeof Input>, 'type' | 'icon'> & {
+ /** In range mode: which part of the range this input edits. Omit for single-date or combined display. */
+ rangePart?: 'start' | 'end';
+};
+/**
+ * Date input. When inside DatePicker: owns local input value state and syncs to
+ * shared selectedDate via context on blur/parse; opens calendar on click/arrow down.
+ * When outside DatePicker: fully controlled by props.
+ */
+export declare const DatePickerInput: import("react").ForwardRefExoticComponent<Omit<DatePickerInputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;