@codecademy/gamut
68.2.268.2.3-alpha.02a91b.0
dist/DatePicker/DatePickerInput/Segment/DatePickerInputSegment.d.ts+
dist/DatePicker/DatePickerInput/Segment/DatePickerInputSegment.d.tsNew file+20
Index: package/dist/DatePicker/DatePickerInput/Segment/DatePickerInputSegment.d.ts
===================================================================
--- package/dist/DatePicker/DatePickerInput/Segment/DatePickerInputSegment.d.ts
+++ package/dist/DatePicker/DatePickerInput/Segment/DatePickerInputSegment.d.ts
@@ -0,0 +1,20 @@
+import { type Dispatch, type SetStateAction } from 'react';
+import type { DatePartKind } from '../utils';
+import { SegmentValues } from './segmentUtils';
+export type DatePickerInputSegmentProps = {
+ field: DatePartKind;
+ segments: SegmentValues;
+ disabled: boolean;
+ error: boolean;
+ handleOnClick: () => void;
+ handleOnFocus: () => void;
+ focusOrOpenCalendarGrid: () => void;
+ setSegments: Dispatch<SetStateAction<SegmentValues>>;
+ prevField: DatePartKind | null;
+ nextField: DatePartKind | null;
+ applySegments: (next: SegmentValues) => void;
+};
+/**
+ * Editable date unit (`role="spinbutton"`). Focus with Tab; type digits or use Arrow up/down.
+ */
+export declare const DatePickerInputSegment: React.FC<DatePickerInputSegmentProps>;