@happeouikit/form-elements 3.0.0-alpha.1 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,11 @@
3
3
  * so MonthDayPicker does not load DatePicker's moment.js imports.
4
4
  */
5
5
  export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {}, never>;
6
+ export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {
7
+ $hasError?: boolean | undefined;
8
+ }, never>;
9
+ /** Below the input, same error-message convention as form-elements' own `Input` component. */
10
+ export declare const ValidationErrorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
7
11
  export declare const OverlayContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
12
  export declare const YearMonthSelectContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
9
13
  export declare const MonthUl: import("styled-components").StyledComponent<"ul", any, {}, never>;
@@ -12,6 +12,11 @@ export declare const formatDate: (value: Date | number | string | undefined, loc
12
12
  /**
13
13
  * Parse typed input in the locale's day/month/year order.
14
14
  * Accepts 1-2 digit day/month and a 4-digit year. Returns null if it doesn't match.
15
+ *
16
+ * Only ASCII digits (0-9) are accepted — a native-script digit (Devanagari,
17
+ * Arabic-Indic, Persian, etc.) is never converted, it simply fails to match
18
+ * here like any other malformed input, so the caller can surface a
19
+ * validation error instead of silently accepting a converted value.
15
20
  */
16
21
  export declare const parseDate: (input: string, locale?: string) => Date | null;
17
22
  /**