@happeouikit/form-elements 2.4.0 → 2.4.1
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.
- package/dist/Badge.d.ts +0 -5
- package/dist/DatePicker.d.ts +18 -38
- package/dist/DateTimePicker.d.ts +1 -7
- package/dist/Dropdown.d.ts +16 -6
- package/dist/Input.d.ts +6 -6
- package/dist/Input.types.d.ts +4 -2
- package/dist/Link.d.ts +6 -5
- package/dist/RadioButton.d.ts +0 -3
- package/dist/Textarea.d.ts +1 -1
- package/dist/Typeahead/Typeahead.d.ts +5 -19
- package/dist/index.cjs.js +270 -301
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4348 -5421
- package/dist/index.es.js.map +1 -1
- package/package.json +5 -5
package/dist/Badge.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="happeouikit__colors" />
|
|
2
1
|
export default Badge;
|
|
3
2
|
declare function Badge({ text, isFilled, color, applyCustomStylings }: {
|
|
4
3
|
text: any;
|
|
@@ -13,9 +12,5 @@ declare namespace Badge {
|
|
|
13
12
|
let color: PropTypes.Requireable<string>;
|
|
14
13
|
let applyCustomStylings: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
14
|
}
|
|
16
|
-
namespace defaultProps {
|
|
17
|
-
export { active as color };
|
|
18
|
-
}
|
|
19
15
|
}
|
|
20
16
|
import PropTypes from "prop-types";
|
|
21
|
-
import { active } from "@happeouikit/colors";
|
package/dist/DatePicker.d.ts
CHANGED
|
@@ -1,54 +1,34 @@
|
|
|
1
1
|
export default DatePicker;
|
|
2
2
|
declare function DatePicker({ label, locale, width, date, type, fromMonth, disabledDays, value, pickerRef, inputProps, dayPickerProps, ...props }: {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
label
|
|
5
|
-
locale
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
locale?: string | undefined;
|
|
6
6
|
width: any;
|
|
7
|
-
date
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
date?: {
|
|
8
|
+
from: string;
|
|
9
|
+
to: string;
|
|
10
|
+
} | undefined;
|
|
11
|
+
type?: string | undefined;
|
|
12
|
+
fromMonth?: Date | undefined;
|
|
13
|
+
disabledDays?: {} | undefined;
|
|
11
14
|
value: any;
|
|
12
15
|
pickerRef: any;
|
|
13
16
|
inputProps?: {} | undefined;
|
|
14
17
|
dayPickerProps?: {} | undefined;
|
|
15
18
|
}): import("react/jsx-runtime").JSX.Element;
|
|
16
19
|
declare namespace DatePicker {
|
|
17
|
-
namespace defaultProps {
|
|
18
|
-
let type: string;
|
|
19
|
-
let fromMonth: Date;
|
|
20
|
-
namespace date {
|
|
21
|
-
let from: string;
|
|
22
|
-
let to: string;
|
|
23
|
-
}
|
|
24
|
-
let locale: string;
|
|
25
|
-
let label: string;
|
|
26
|
-
let width: undefined;
|
|
27
|
-
let value: undefined;
|
|
28
|
-
let pickerRef: undefined;
|
|
29
|
-
let disabledDays: never[];
|
|
30
|
-
}
|
|
31
20
|
namespace propTypes {
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
let
|
|
41
|
-
export { type_1 as type };
|
|
42
|
-
let value_1: PropTypes.Requireable<Date>;
|
|
43
|
-
export { value_1 as value };
|
|
44
|
-
export function date_1(props: any, propName: any): Error | null;
|
|
45
|
-
export { date_1 as date };
|
|
46
|
-
let disabledDays_1: PropTypes.Requireable<object>;
|
|
47
|
-
export { disabledDays_1 as disabledDays };
|
|
48
|
-
let pickerRef_1: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
21
|
+
let fromMonth: PropTypes.Requireable<NonNullable<string | Date | null | undefined>>;
|
|
22
|
+
let label: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
|
|
23
|
+
let locale: PropTypes.Requireable<string>;
|
|
24
|
+
let width: PropTypes.Requireable<string>;
|
|
25
|
+
let type: PropTypes.Requireable<string>;
|
|
26
|
+
let value: PropTypes.Requireable<Date>;
|
|
27
|
+
function date(props: any, propName: any): Error | null;
|
|
28
|
+
let disabledDays: PropTypes.Requireable<object>;
|
|
29
|
+
let pickerRef: PropTypes.Requireable<NonNullable<((...args: any[]) => any) | PropTypes.InferProps<{
|
|
49
30
|
current: PropTypes.Requireable<any>;
|
|
50
31
|
}> | null | undefined>>;
|
|
51
|
-
export { pickerRef_1 as pickerRef };
|
|
52
32
|
}
|
|
53
33
|
}
|
|
54
34
|
import PropTypes from "prop-types";
|
package/dist/DateTimePicker.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare function DateTimePicker({ label, value, onChange, inputMode }: {
|
|
|
3
3
|
label: any;
|
|
4
4
|
value: any;
|
|
5
5
|
onChange: any;
|
|
6
|
-
inputMode
|
|
6
|
+
inputMode?: string | undefined;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare namespace DateTimePicker {
|
|
9
9
|
namespace propTypes {
|
|
@@ -11,11 +11,5 @@ declare namespace DateTimePicker {
|
|
|
11
11
|
let label: PropTypes.Requireable<string>;
|
|
12
12
|
let inputMode: PropTypes.Requireable<string>;
|
|
13
13
|
}
|
|
14
|
-
namespace defaultProps {
|
|
15
|
-
let inputMode_1: string;
|
|
16
|
-
export { inputMode_1 as inputMode };
|
|
17
|
-
let label_1: undefined;
|
|
18
|
-
export { label_1 as label };
|
|
19
|
-
}
|
|
20
14
|
}
|
|
21
15
|
import PropTypes from "prop-types";
|
package/dist/Dropdown.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props as SelectProps } from "react-select";
|
|
3
|
+
/**
|
|
4
|
+
* see https://react-select.com/props
|
|
5
|
+
*/
|
|
6
|
+
interface DropdownProps extends SelectProps {
|
|
7
|
+
label: string;
|
|
8
|
+
hideOnMobile?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface DropdownRef {
|
|
11
|
+
setValue: (value: any) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const dropdownStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
|
|
14
|
+
hideOnMobile?: boolean | undefined;
|
|
15
|
+
}, any>>;
|
|
16
|
+
declare const _default: import("react").ForwardRefExoticComponent<DropdownProps & import("react").RefAttributes<DropdownRef>>;
|
|
6
17
|
export default _default;
|
|
7
|
-
import React from "react";
|
package/dist/Input.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputNumberProps, InputProps } from "./Input.types";
|
|
3
3
|
export declare const Input: ({ label, description, hintText, required, id, icon, iconProps, state, errorMessage, disabled, readOnly, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const StyledInput: import("styled-components
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
4
|
+
export declare const StyledInput: import("styled-components").StyledComponent<"input", any, {
|
|
5
|
+
type: React.HTMLInputTypeAttribute;
|
|
6
|
+
} & {
|
|
7
|
+
hasIcon: boolean;
|
|
8
|
+
state: "success" | "error" | "default";
|
|
9
|
+
}, "type">;
|
|
10
10
|
/**
|
|
11
11
|
* Number Input
|
|
12
12
|
*/
|
package/dist/Input.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export interface InputProps
|
|
2
|
+
export interface InputProps {
|
|
3
3
|
label?: string;
|
|
4
4
|
description?: React.ReactNode;
|
|
5
5
|
hintText?: React.ReactNode;
|
|
@@ -11,7 +11,9 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
11
11
|
iconProps: object;
|
|
12
12
|
state: "success" | "error" | "default";
|
|
13
13
|
errorMessage: string;
|
|
14
|
+
[key: string]: any;
|
|
14
15
|
}
|
|
15
|
-
export interface InputNumberProps
|
|
16
|
+
export interface InputNumberProps {
|
|
16
17
|
label: string;
|
|
18
|
+
[key: string]: any;
|
|
17
19
|
}
|
package/dist/Link.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface LinkProps {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
color?: string;
|
|
4
|
+
hoverColor?: string;
|
|
5
|
+
underline?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const Link: React.ForwardRefExoticComponent<
|
|
7
|
-
export declare const LinkExternal: React.ForwardRefExoticComponent<
|
|
7
|
+
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<unknown>>;
|
|
8
|
+
export declare const LinkExternal: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<unknown>>;
|
|
8
9
|
export {};
|
package/dist/RadioButton.d.ts
CHANGED
package/dist/Textarea.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextareaProps } from "./Textarea.types";
|
|
2
|
-
declare const Textarea: ({ id, cols, rows, label, description, required, readOnly, disabled, state, errorMessage, hintText, maxHeight,
|
|
2
|
+
declare const Textarea: ({ id, cols, rows, label, description, required, readOnly, disabled, state, errorMessage, hintText, maxHeight, ...props }: TextareaProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Textarea;
|
|
@@ -5,11 +5,11 @@ declare function Typeahead({ onQuery, loading, results, onSelect, onClear, keepR
|
|
|
5
5
|
results: any;
|
|
6
6
|
onSelect: any;
|
|
7
7
|
onClear: any;
|
|
8
|
-
keepResult
|
|
9
|
-
placeholder
|
|
10
|
-
errorMessage
|
|
11
|
-
queryError
|
|
12
|
-
dropdownMaxHeight
|
|
8
|
+
keepResult?: boolean | undefined;
|
|
9
|
+
placeholder?: string | undefined;
|
|
10
|
+
errorMessage?: null | undefined;
|
|
11
|
+
queryError?: boolean | undefined;
|
|
12
|
+
dropdownMaxHeight?: string | undefined;
|
|
13
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
declare namespace Typeahead {
|
|
15
15
|
namespace propTypes {
|
|
@@ -28,19 +28,5 @@ declare namespace Typeahead {
|
|
|
28
28
|
let queryError: PropTypes.Requireable<boolean>;
|
|
29
29
|
let dropdownMaxHeight: PropTypes.Requireable<string>;
|
|
30
30
|
}
|
|
31
|
-
namespace defaultProps {
|
|
32
|
-
let keepResult_1: boolean;
|
|
33
|
-
export { keepResult_1 as keepResult };
|
|
34
|
-
let placeholder_1: string;
|
|
35
|
-
export { placeholder_1 as placeholder };
|
|
36
|
-
let errorMessage_1: null;
|
|
37
|
-
export { errorMessage_1 as errorMessage };
|
|
38
|
-
let queryError_1: boolean;
|
|
39
|
-
export { queryError_1 as queryError };
|
|
40
|
-
let dropdownMaxHeight_1: string;
|
|
41
|
-
export { dropdownMaxHeight_1 as dropdownMaxHeight };
|
|
42
|
-
export function onClear_1(): void;
|
|
43
|
-
export { onClear_1 as onClear };
|
|
44
|
-
}
|
|
45
31
|
}
|
|
46
32
|
import PropTypes from "prop-types";
|