@happeouikit/form-elements 2.5.1 → 2.6.0

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Styles shared by DatePicker and MonthDayPicker. Kept apart from DatePicker.tsx
3
+ * so MonthDayPicker does not load DatePicker's moment.js imports.
4
+ */
5
+ export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {}, never>;
7
+ export declare const OverlayContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const YearMonthSelectContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const MonthUl: import("styled-components").StyledComponent<"ul", any, {}, never>;
10
+ export declare const MonthSelectButton: import("styled-components").StyledComponent<any, any, object & {
11
+ $isActive: boolean;
12
+ }, string | number | symbol>;
13
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
14
+ width?: string | undefined;
15
+ }, never>;
16
+ export declare const NavBarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,4 @@
1
+ import type { FC } from "react";
2
+ import type { MonthDayPickerProps } from "./MonthDayPicker.types";
3
+ declare const _default: FC<MonthDayPickerProps>;
4
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ export interface MonthDay {
3
+ /** 1-12 */
4
+ month: number;
5
+ /** 1-31; 29 February is allowed */
6
+ day: number;
7
+ }
8
+ export interface MonthDayPickerProps {
9
+ label?: React.ReactNode;
10
+ /** BCP 47 locale for the day/month order and month names, e.g. "en-gb" or "en-us" */
11
+ locale?: string;
12
+ width?: string;
13
+ value?: MonthDay | null;
14
+ inputProps?: React.InputHTMLAttributes<HTMLInputElement> & {
15
+ id?: string;
16
+ };
17
+ showOverlay?: boolean;
18
+ /** Called with the picked month and day, or `null` when the input is emptied */
19
+ onChange?: (value: MonthDay | null) => void;
20
+ }
package/dist/Tag.d.ts CHANGED
@@ -3,7 +3,7 @@ declare function Tag({ text, closeCallback, isUppercase, closeIconAriaLabel, ...
3
3
  [x: string]: any;
4
4
  text: any;
5
5
  closeCallback: any;
6
- isUppercase: any;
6
+ isUppercase?: boolean | undefined;
7
7
  closeIconAriaLabel: any;
8
8
  }): false | import("react/jsx-runtime").JSX.Element;
9
9
  declare namespace Tag {
@@ -13,13 +13,5 @@ declare namespace Tag {
13
13
  let isUppercase: PropTypes.Requireable<boolean>;
14
14
  let closeIconAriaLabel: PropTypes.Requireable<string>;
15
15
  }
16
- namespace defaultProps {
17
- let closeCallback_1: undefined;
18
- export { closeCallback_1 as closeCallback };
19
- let isUppercase_1: boolean;
20
- export { isUppercase_1 as isUppercase };
21
- let closeIconAriaLabel_1: undefined;
22
- export { closeIconAriaLabel_1 as closeIconAriaLabel };
23
- }
24
16
  }
25
17
  import PropTypes from "prop-types";