@codecademy/gamut

72.2.272.2.3-alpha.303f64.0
dist/DatePicker/DatePickerContext/types.d.ts
~dist/DatePicker/DatePickerContext/types.d.tsModified
+9
Index: package/dist/DatePicker/DatePickerContext/types.d.ts
===================================================================
--- package/dist/DatePicker/DatePickerContext/types.d.ts
+++ package/dist/DatePicker/DatePickerContext/types.d.ts
@@ -5,8 +5,17 @@
      * Discriminator: same meaning as the `mode` prop on `DatePicker` (`"single"` or `"range"`).
      */
     mode: Mode;
     /**
+     * Whether there is an error in any input. Used by DatePicker to adjust popover position
+     * when calendar is open. Only tracks IF error exists, not the message.
+     */
+    hasError: boolean;
+    /**
+     * Callback to set whether error exists. Called by DatePickerInput when validation errors occur.
+     */
+    setHasError: (hasError: boolean) => void;
+    /**
      * Resolved `Intl.Locale` for the `locale` prop (or the runtime default). The same object is
      * passed to formatters and to APIs such as `getWeekInfo` where available.
      */
     locale: Intl.Locale;