@4alldigital/foundation-ui--gamma 1.24.0 → 1.27.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.
- package/dist/foundation-ui.css +1 -1
- package/dist/index.esm.js +205 -187
- package/dist/index.js +214 -196
- package/dist/types/fui/components/Button/Button.d.ts +1 -1
- package/dist/types/fui/components/Button/Button.stories.d.ts +1 -0
- package/dist/types/fui/components/Button/Button.types.d.ts +1 -0
- package/dist/types/fui/components/Card/Card.d.ts +8 -0
- package/dist/types/fui/components/Card/Card.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/Card.test.d.ts +1 -0
- package/dist/types/fui/components/Card/Card.types.d.ts +27 -0
- package/dist/types/fui/components/Card/index.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.d.ts +8 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.test.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.types.d.ts +4 -0
- package/dist/types/fui/components/Card/types/CardBasic/index.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.d.ts +8 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.test.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.types.d.ts +4 -0
- package/dist/types/fui/components/Card/types/CardMedia/index.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.d.ts +8 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.test.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.types.d.ts +4 -0
- package/dist/types/fui/components/Card/types/CardVideo/index.d.ts +1 -0
- package/dist/types/fui/components/Checkbox/Checkbox.types.d.ts +4 -1
- package/dist/types/fui/components/Container/Container.d.ts +1 -1
- package/dist/types/fui/components/Container/Container.types.d.ts +2 -0
- package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.types.d.ts +2 -2
- package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.types.d.ts +2 -2
- package/dist/types/fui/components/Copy/Copy.d.ts +1 -1
- package/dist/types/fui/components/Copy/Copy.types.d.ts +13 -11
- package/dist/types/fui/components/Form/Form.d.ts +1 -1
- package/dist/types/fui/components/Form/Form.stories.d.ts +1 -0
- package/dist/types/fui/components/Form/Form.types.d.ts +8 -5
- package/dist/types/fui/components/FormField/FormField.d.ts +1 -1
- package/dist/types/fui/components/FormField/FormField.stories.d.ts +1 -0
- package/dist/types/fui/components/FormField/FormField.types.d.ts +10 -8
- package/dist/types/fui/components/FormSelect/FormSelect.d.ts +1 -4
- package/dist/types/fui/components/FormSelect/FormSelect.types.d.ts +7 -5
- package/dist/types/fui/components/Heading/Heading.types.d.ts +6 -6
- package/dist/types/fui/components/Label/Label.d.ts +1 -1
- package/dist/types/fui/components/Label/Label.types.d.ts +6 -2
- package/dist/types/fui/components/Link/Link.types.d.ts +1 -1
- package/dist/types/fui/components/Notice/Notice.d.ts +1 -1
- package/dist/types/fui/components/Notice/Notice.types.d.ts +1 -1
- package/dist/types/fui/components/Radio/Radio.types.d.ts +2 -1
- package/dist/types/fui/components/TextInput/TextInput.types.d.ts +2 -1
- package/dist/types/fui/components/index.d.ts +23 -0
- package/dist/types/fui/features/Search/Search.d.ts +5 -0
- package/dist/types/fui/features/Search/Search.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/Search.test.d.ts +1 -0
- package/dist/types/fui/features/Search/Search.types.d.ts +10 -0
- package/dist/types/fui/features/Search/index.d.ts +1 -0
- package/dist/types/fui/features/Search/view-helpers/appendClassName.d.ts +1 -0
- package/dist/types/fui/features/Search/view-helpers/formatResult.d.ts +3 -0
- package/dist/types/fui/features/Search/view-helpers/getFilterValueDisplay.d.ts +1 -0
- package/dist/types/fui/features/Search/view-helpers/getUrlSanitizer.d.ts +6 -0
- package/dist/types/fui/features/Search/view-helpers/index.d.ts +4 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.types.d.ts +10 -0
- package/dist/types/fui/features/Search/views/Layout/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.d.ts +7 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.types.d.ts +4 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.types.d.ts +14 -0
- package/dist/types/fui/features/Search/views/Paging/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.d.ts +8 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.types.d.ts +16 -0
- package/dist/types/fui/features/Search/views/PagingInfo/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Result/Result.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Result/Result.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Result/Result.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Result/Result.types.d.ts +22 -0
- package/dist/types/fui/features/Search/views/Result/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Results/Results.d.ts +8 -0
- package/dist/types/fui/features/Search/views/Results/Results.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Results/Results.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Results/Results.types.d.ts +19 -0
- package/dist/types/fui/features/Search/views/Results/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.d.ts +7 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.types.d.ts +17 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.d.ts +7 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.types.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SearchBox/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.d.ts +8 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.types.d.ts +3 -0
- package/dist/types/fui/features/Search/views/Sidebar/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.d.ts +7 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.types.d.ts +4 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.d.ts +7 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.types.d.ts +4 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.types.d.ts +20 -0
- package/dist/types/fui/features/Search/views/Sorting/index.d.ts +1 -0
- package/package.json +4 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Props } from './Button.types';
|
|
2
2
|
declare const Button: {
|
|
3
|
-
({ variant, size, type, wide, rounded, raised, uppercase, children, id, disabled, ariaLabel, onClick, icon, external, iconFirst, outline, testID, className, }: Props): React.ReactElement;
|
|
3
|
+
({ variant, size, type, wide, rounded, raised, uppercase, children, id, disabled, ariaLabel, onClick, icon, external, iconFirst, outline, testID, className, isLoading, }: Props): React.ReactElement;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum CardVariant {
|
|
2
|
+
BASIC = "basic",
|
|
3
|
+
MEDIA = "media",
|
|
4
|
+
VIDEO = "video"
|
|
5
|
+
}
|
|
6
|
+
export interface ImageData {
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface CardData {
|
|
13
|
+
id: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
image?: ImageData;
|
|
17
|
+
video?: string;
|
|
18
|
+
link?: string;
|
|
19
|
+
tags?: string[];
|
|
20
|
+
moreTitle?: string;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
}
|
|
23
|
+
export interface Props {
|
|
24
|
+
variant?: CardVariant;
|
|
25
|
+
className?: string;
|
|
26
|
+
data: CardData;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Card';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props } from './CardBasic.types';
|
|
3
|
+
declare const CardBasic: {
|
|
4
|
+
({ id, title, description, image, className, onClick }: Props): React.ReactElement;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default CardBasic;
|
|
8
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CardBasic';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CardMedia';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CardVideo';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare enum Size {
|
|
2
3
|
SMALL = "small",
|
|
3
4
|
MEDIUM = "medium",
|
|
@@ -5,8 +6,10 @@ export declare enum Size {
|
|
|
5
6
|
}
|
|
6
7
|
export interface Props {
|
|
7
8
|
id: string;
|
|
8
|
-
label?: string;
|
|
9
|
+
label?: string | React.ReactNode[];
|
|
9
10
|
required?: boolean;
|
|
10
11
|
className?: string;
|
|
11
12
|
disabled?: boolean;
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Props } from './Container.types';
|
|
2
2
|
declare const Container: {
|
|
3
|
-
({ children, className, spacing, padded }: Props): React.ReactElement;
|
|
3
|
+
({ children, className, spacing, padded, isNarrow, isCentered }: Props): React.ReactElement;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Container;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum CPL_SPACING {
|
|
3
3
|
NONE = "none",
|
|
4
4
|
ATOM = "atom",
|
|
5
5
|
DEFAULT = "default",
|
|
@@ -12,6 +12,6 @@ export interface Props {
|
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
narrow?: boolean;
|
|
14
14
|
flush?: boolean;
|
|
15
|
-
spacing?:
|
|
15
|
+
spacing?: CPL_SPACING;
|
|
16
16
|
className?: string;
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum CRL_SIZE {
|
|
3
3
|
NONE = "none",
|
|
4
4
|
ATOM = "atom",
|
|
5
5
|
DEFAULT = "default",
|
|
@@ -11,5 +11,5 @@ export declare enum SIZE {
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
className?: string;
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
-
size?:
|
|
14
|
+
size?: CRL_SIZE;
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Props } from './Copy.types';
|
|
2
2
|
declare const Copy: {
|
|
3
|
-
({ children, as: Tag, size, align, transform, id, testID, }: Props): React.ReactElement;
|
|
3
|
+
({ children, as: Tag, size, align, transform, id, className, testID, }: Props): React.ReactElement;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default Copy;
|
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { FieldError, FieldErrorsImpl, Merge } from 'react-hook-form';
|
|
3
|
+
export declare enum COPY_ALIGN {
|
|
3
4
|
LEFT = "left",
|
|
4
5
|
CENTER = "center",
|
|
5
6
|
RIGHT = "right",
|
|
6
7
|
JUSTIFY = "justify",
|
|
7
8
|
NOWRAP = "nowrap"
|
|
8
9
|
}
|
|
9
|
-
export declare enum
|
|
10
|
+
export declare enum COPY_TRANSFORM {
|
|
10
11
|
LOWERCASE = "lowercase",
|
|
11
12
|
UPPERCASE = "uppercase",
|
|
12
13
|
CAPITALIZE = "capitalize",
|
|
13
14
|
NORMALCASE = "normal-case"
|
|
14
15
|
}
|
|
15
|
-
export declare enum
|
|
16
|
+
export declare enum COPY_CONTEXTUAL {
|
|
16
17
|
INVERTED = "inverted",
|
|
17
18
|
MUTED = "muted"
|
|
18
19
|
}
|
|
19
|
-
export declare enum
|
|
20
|
+
export declare enum COPY_SIZE {
|
|
20
21
|
SMALL = "small",
|
|
21
22
|
LARGE = "large",
|
|
22
23
|
INTRO = "intro"
|
|
23
24
|
}
|
|
24
|
-
export declare enum
|
|
25
|
+
export declare enum COPY_TAG {
|
|
25
26
|
P = "p",
|
|
26
27
|
SPAN = "span",
|
|
27
28
|
DIV = "div",
|
|
28
29
|
SMALL = "small"
|
|
29
30
|
}
|
|
30
31
|
export interface Props {
|
|
31
|
-
children: string | Array<React.ReactNode> | React.ReactNode;
|
|
32
|
-
align?:
|
|
33
|
-
size?:
|
|
34
|
-
transform?:
|
|
35
|
-
contextual?:
|
|
32
|
+
children: string | Array<React.ReactNode> | React.ReactNode | string | FieldError | Merge<FieldError, FieldErrorsImpl> | undefined;
|
|
33
|
+
align?: COPY_ALIGN;
|
|
34
|
+
size?: COPY_SIZE;
|
|
35
|
+
transform?: COPY_TRANSFORM;
|
|
36
|
+
contextual?: COPY_CONTEXTUAL;
|
|
36
37
|
inverted?: boolean;
|
|
37
38
|
maxLength?: boolean;
|
|
38
|
-
as?:
|
|
39
|
+
as?: COPY_TAG;
|
|
39
40
|
id?: string;
|
|
40
41
|
testID?: string;
|
|
42
|
+
className?: string;
|
|
41
43
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Props } from './Form.types';
|
|
3
3
|
declare const Form: {
|
|
4
|
-
({ children, className, submit, onSubmit, hideSubmit, ariaSubmitLabel, submitID, initialValues,
|
|
4
|
+
({ children, className, submit, onSubmit, onChange, hideSubmit, ariaSubmitLabel, submitID, submitVariant, initialValues, isBoxed, }: Props): React.ReactElement;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default Form;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BTN_VARIANTS } from
|
|
2
|
+
import { BTN_VARIANTS } from '../Button/Button.types';
|
|
3
3
|
export interface Props {
|
|
4
4
|
/** The form inputs and content. */
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -8,9 +8,9 @@ export interface Props {
|
|
|
8
8
|
/** Disable form inputs validation. */
|
|
9
9
|
noValidate?: boolean;
|
|
10
10
|
/** The submit handler that will fire once the form is submitted. */
|
|
11
|
-
onSubmit
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
onSubmit?: (values: any) => void;
|
|
12
|
+
/** The on change handler that will fire once the form is updated. */
|
|
13
|
+
onChange?: (values: any) => void;
|
|
14
14
|
/** The label for the submit button. */
|
|
15
15
|
submit?: string;
|
|
16
16
|
/** Hide submit button. */
|
|
@@ -21,7 +21,10 @@ export interface Props {
|
|
|
21
21
|
submitID?: string;
|
|
22
22
|
/** Initial form values. */
|
|
23
23
|
initialValues?: {
|
|
24
|
-
[k: string]:
|
|
24
|
+
[k: string]: any;
|
|
25
25
|
};
|
|
26
|
+
/** The submit button variant. */
|
|
26
27
|
submitVariant?: BTN_VARIANTS;
|
|
28
|
+
/** The form is boxed. */
|
|
29
|
+
isBoxed?: boolean;
|
|
27
30
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Props } from './FormField.types';
|
|
3
3
|
declare const FormField: {
|
|
4
|
-
({ name, type, label, required, className, icon, options, disabled, description, showPasswordLabel, hidePasswordLabel, }: Props): React.ReactElement;
|
|
4
|
+
({ name, type, label, required, className, icon, options, disabled, description, showPasswordLabel, hidePasswordLabel, validations, }: Props): React.ReactElement;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default FormField;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OptionsType } from "../FormSelect/FormSelect.types";
|
|
3
|
+
export declare enum FIELD_TYPES {
|
|
2
4
|
TEXT = "text",
|
|
3
5
|
TEXTAREA = "textarea",
|
|
4
6
|
SELECT = "select",
|
|
@@ -14,21 +16,21 @@ export declare enum FieldTypes {
|
|
|
14
16
|
NUMBER = "number",
|
|
15
17
|
TEL = "tel",
|
|
16
18
|
URL = "url",
|
|
17
|
-
SEARCH = "search"
|
|
19
|
+
SEARCH = "search",
|
|
20
|
+
HIDDEN = "hidden"
|
|
18
21
|
}
|
|
19
22
|
export interface Props {
|
|
20
|
-
type:
|
|
23
|
+
type: FIELD_TYPES;
|
|
21
24
|
name: string;
|
|
22
25
|
className?: string;
|
|
23
|
-
label?: string;
|
|
26
|
+
label?: string | React.ReactNode[];
|
|
24
27
|
required?: boolean;
|
|
25
28
|
icon?: string;
|
|
26
|
-
options?:
|
|
27
|
-
value: string;
|
|
28
|
-
label: string;
|
|
29
|
-
}[];
|
|
29
|
+
options?: Array<OptionsType>;
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
description?: string;
|
|
32
32
|
showPasswordLabel?: string;
|
|
33
33
|
hidePasswordLabel?: string;
|
|
34
|
+
onChange?: (e: any) => void;
|
|
35
|
+
validations?: any;
|
|
34
36
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Props } from './FormSelect.types';
|
|
3
|
-
declare const FormSelect:
|
|
4
|
-
({ id, name, options, required, className, disabled }: Props): React.ReactElement;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
3
|
+
declare const FormSelect: React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>;
|
|
7
4
|
export default FormSelect;
|
|
8
5
|
export type { Props };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { FilterValue } from "@elastic/search-ui";
|
|
3
|
+
export type OptionsType = {
|
|
4
|
+
value: FilterValue;
|
|
4
5
|
label: string;
|
|
5
6
|
/** The selected option's value. */
|
|
6
7
|
defaultValue?: string;
|
|
@@ -8,11 +9,11 @@ type OptionsType = {
|
|
|
8
9
|
};
|
|
9
10
|
export interface Props {
|
|
10
11
|
/** The selected option's value. */
|
|
11
|
-
options
|
|
12
|
+
options?: Array<OptionsType>;
|
|
12
13
|
/** Unique id for the field, required for a11y. */
|
|
13
14
|
id: string;
|
|
14
15
|
/** The select visible default label value. */
|
|
15
|
-
label?: string;
|
|
16
|
+
label?: string | React.ReactNode[];
|
|
16
17
|
/** Is field required. */
|
|
17
18
|
required?: boolean;
|
|
18
19
|
/** Additional classes. */
|
|
@@ -31,6 +32,8 @@ export interface Props {
|
|
|
31
32
|
name?: string;
|
|
32
33
|
/** Is field disabled. */
|
|
33
34
|
disabled?: boolean;
|
|
35
|
+
/** The selected option's value. */
|
|
36
|
+
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
34
37
|
}
|
|
35
38
|
export interface ItemProps {
|
|
36
39
|
children: React.ReactNode;
|
|
@@ -38,4 +41,3 @@ export interface ItemProps {
|
|
|
38
41
|
itemIcon: string;
|
|
39
42
|
iconColor?: string;
|
|
40
43
|
}
|
|
41
|
-
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum HEADING_TAGS {
|
|
3
3
|
H1 = "h1",
|
|
4
4
|
H2 = "h2",
|
|
5
5
|
H3 = "h3",
|
|
6
6
|
H4 = "h4",
|
|
7
7
|
H5 = "h5"
|
|
8
8
|
}
|
|
9
|
-
export declare enum
|
|
9
|
+
export declare enum HEADING_ALIGN {
|
|
10
10
|
LEFT = "left",
|
|
11
11
|
CENTER = "center",
|
|
12
12
|
RIGHT = "right",
|
|
13
13
|
JUSTIFY = "justify",
|
|
14
14
|
NOWRAP = "nowrap"
|
|
15
15
|
}
|
|
16
|
-
export declare enum
|
|
16
|
+
export declare enum HEADING_TRANSFORM {
|
|
17
17
|
LOWERCASE = "lowercase",
|
|
18
18
|
UPPERCASE = "uppercase",
|
|
19
19
|
CAPITALIZE = "capitalize",
|
|
@@ -21,9 +21,9 @@ export declare enum HeadingTransform {
|
|
|
21
21
|
}
|
|
22
22
|
export interface Props {
|
|
23
23
|
children: string | React.ReactNode;
|
|
24
|
-
tag:
|
|
25
|
-
align?:
|
|
26
|
-
transform?:
|
|
24
|
+
tag: HEADING_TAGS;
|
|
25
|
+
align?: HEADING_ALIGN;
|
|
26
|
+
transform?: HEADING_TRANSFORM;
|
|
27
27
|
id?: string;
|
|
28
28
|
testID?: string;
|
|
29
29
|
flush?: boolean;
|
|
@@ -15,3 +15,26 @@ export { default as ContentPageLayout } from './ContentPageLayout';
|
|
|
15
15
|
export { default as ContentRowsLayout } from './ContentRowsLayout';
|
|
16
16
|
export { default as Form } from './Form';
|
|
17
17
|
export { default as FormField } from './FormField';
|
|
18
|
+
export type { Props as BlockquoteProps } from './Blockquote/Blockquote.types';
|
|
19
|
+
export type { Props as ButtonProps } from './Button/Button.types';
|
|
20
|
+
export { BTN_TYPES, BTN_VARIANTS, BTN_SIZES } from './Button/Button.types';
|
|
21
|
+
export type { Props as CopyProps } from './Copy/Copy.types';
|
|
22
|
+
export { COPY_ALIGN, COPY_TRANSFORM, COPY_CONTEXTUAL, COPY_SIZE, COPY_TAG } from './Copy/Copy.types';
|
|
23
|
+
export type { Props as HeadingProps } from './Heading/Heading.types';
|
|
24
|
+
export { HEADING_TAGS, HEADING_ALIGN, HEADING_TRANSFORM } from './Heading/Heading.types';
|
|
25
|
+
export type { Props as IconProps } from './Icon/Icon.types';
|
|
26
|
+
export type { Props as ImageProps } from './Image/Image.types';
|
|
27
|
+
export type { Props as LinkProps } from './Link/Link.types';
|
|
28
|
+
export type { Props as ListProps, VariantsTypes } from './List/List.types';
|
|
29
|
+
export { Variants, ListTag } from './List/List.types';
|
|
30
|
+
export type { Props as ListItemProps } from './ListItem/ListItem.types';
|
|
31
|
+
export type { Props as NoticeProps } from './Notice/Notice.types';
|
|
32
|
+
export type { Props as LoaderProps } from './Loader/Loader.types';
|
|
33
|
+
export type { Props as ContainerProps } from './Container/Container.types';
|
|
34
|
+
export type { Props as ContentPageLayoutProps } from './ContentPageLayout/ContentPageLayout.types';
|
|
35
|
+
export { CPL_SPACING } from './ContentPageLayout/ContentPageLayout.types';
|
|
36
|
+
export type { Props as ContentRowsLayoutProps } from './ContentRowsLayout/ContentRowsLayout.types';
|
|
37
|
+
export { CRL_SIZE } from './ContentRowsLayout/ContentRowsLayout.types';
|
|
38
|
+
export type { Props as FormProps } from './Form/Form.types';
|
|
39
|
+
export type { Props as FormFieldProps } from './FormField/FormField.types';
|
|
40
|
+
export { FIELD_TYPES } from './FormField/FormField.types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Search';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function appendClassName(baseClassName?: string | string[] | undefined, newClassName?: string | string[] | undefined): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getFilterValueDisplay(filterValue: any): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {URL} URLParser URL interface provided by browser https://developer.mozilla.org/en-US/docs/Web/API/URL
|
|
4
|
+
* @param {String} currentLocation String representation of the browser's current location
|
|
5
|
+
*/
|
|
6
|
+
export default function getUrlSanitizer(URLParser: typeof URL, currentLocation: string): (url: string) => string;
|