@4alldigital/foundation-ui--gamma 1.31.14 → 1.33.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 +49 -20
- package/dist/index.js +49 -20
- package/dist/types/fui/components/Authenticator/Authenticator.d.ts +8 -0
- package/dist/types/fui/components/Authenticator/Authenticator.stories.d.ts +6 -0
- package/dist/types/fui/components/Authenticator/Authenticator.test.d.ts +1 -0
- package/dist/types/fui/components/Authenticator/Authenticator.types.d.ts +7 -0
- package/dist/types/fui/components/Authenticator/index.d.ts +1 -0
- package/dist/types/fui/components/Button/Button.stories.d.ts +3 -2
- package/dist/types/fui/components/Button/Button.types.d.ts +2 -1
- package/dist/types/fui/components/Card/Card.stories.d.ts +1 -0
- package/dist/types/fui/components/Card/Card.types.d.ts +3 -1
- package/dist/types/fui/components/Card/types/CardIcon/CardIcon.d.ts +8 -0
- package/dist/types/fui/components/Card/types/CardIcon/CardIcon.test.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardIcon/CardIcon.types.d.ts +4 -0
- package/dist/types/fui/components/Card/types/CardIcon/index.d.ts +1 -0
- package/dist/types/fui/components/Copy/Copy.types.d.ts +1 -2
- package/dist/types/fui/components/DisplayHeading/DisplayHeading.d.ts +8 -0
- package/dist/types/fui/components/DisplayHeading/DisplayHeading.stories.d.ts +6 -0
- package/dist/types/fui/components/DisplayHeading/DisplayHeading.test.d.ts +1 -0
- package/dist/types/fui/components/DisplayHeading/DisplayHeading.types.d.ts +3 -0
- package/dist/types/fui/components/DisplayHeading/index.d.ts +1 -0
- package/dist/types/fui/components/FormSelect/FormSelect.types.d.ts +2 -2
- package/dist/types/fui/components/Hr/Hr.d.ts +2 -1
- package/dist/types/fui/components/Hr/Hr.types.d.ts +3 -0
- package/dist/types/fui/components/PanelCards/PanelCards.d.ts +8 -0
- package/dist/types/fui/components/PanelCards/PanelCards.stories.d.ts +6 -0
- package/dist/types/fui/components/PanelCards/PanelCards.test.d.ts +1 -0
- package/dist/types/fui/components/PanelCards/PanelCards.types.d.ts +6 -0
- package/dist/types/fui/components/PanelCards/index.d.ts +1 -0
- package/dist/types/fui/components/Radio/Radio.types.d.ts +2 -4
- package/dist/types/fui/components/Tabs/Tabs.d.ts +8 -0
- package/dist/types/fui/{features/Search/views/Layout/Layout.stories.d.ts → components/Tabs/Tabs.stories.d.ts} +3 -3
- package/dist/types/fui/components/Tabs/Tabs.test.d.ts +1 -0
- package/dist/types/fui/components/Tabs/Tabs.types.d.ts +8 -0
- package/dist/types/fui/components/Tabs/index.d.ts +1 -0
- package/dist/types/fui/components/Video/Video.d.ts +9 -0
- package/dist/types/fui/components/Video/Video.stories.d.ts +7 -0
- package/dist/types/fui/components/Video/Video.test.d.ts +1 -0
- package/dist/types/fui/components/Video/Video.types.d.ts +16 -0
- package/dist/types/fui/components/Video/index.d.ts +1 -0
- package/dist/types/fui/features/Search/Search.d.ts +0 -1
- package/dist/types/fui/forms/ForgotPasswordForm/ForgotPasswordForm.d.ts +8 -0
- package/dist/types/fui/forms/ForgotPasswordForm/ForgotPasswordForm.stories.d.ts +6 -0
- package/dist/types/fui/forms/ForgotPasswordForm/ForgotPasswordForm.test.d.ts +1 -0
- package/dist/types/fui/forms/ForgotPasswordForm/ForgotPasswordForm.types.d.ts +3 -0
- package/dist/types/fui/forms/ForgotPasswordForm/index.d.ts +1 -0
- package/dist/types/fui/forms/LoginForm/LoginForm.d.ts +8 -0
- package/dist/types/fui/{features/Search/views/Result/Result.stories.d.ts → forms/LoginForm/LoginForm.stories.d.ts} +3 -3
- package/dist/types/fui/forms/LoginForm/LoginForm.test.d.ts +1 -0
- package/dist/types/fui/forms/LoginForm/LoginForm.types.d.ts +6 -0
- package/dist/types/fui/forms/LoginForm/index.d.ts +1 -0
- package/dist/types/fui/forms/RegisterForm/RegisterForm.d.ts +8 -0
- package/dist/types/fui/forms/RegisterForm/RegisterForm.stories.d.ts +6 -0
- package/dist/types/fui/forms/RegisterForm/RegisterForm.test.d.ts +1 -0
- package/dist/types/fui/forms/RegisterForm/RegisterForm.types.d.ts +4 -0
- package/dist/types/fui/forms/RegisterForm/index.d.ts +1 -0
- package/dist/types/fui/forms/ResetPasswordForm/ResetPasswordForm.d.ts +8 -0
- package/dist/types/fui/forms/ResetPasswordForm/ResetPasswordForm.stories.d.ts +6 -0
- package/dist/types/fui/forms/ResetPasswordForm/ResetPasswordForm.test.d.ts +1 -0
- package/dist/types/fui/forms/ResetPasswordForm/ResetPasswordForm.types.d.ts +3 -0
- package/dist/types/fui/forms/ResetPasswordForm/index.d.ts +1 -0
- package/dist/types/fui/forms/constants/index.d.ts +2 -0
- package/dist/types/fui/forms/validations/index.d.ts +18 -0
- package/dist/types/fui/translations/en.d.ts +93 -0
- package/dist/types/fui/translations/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/Paging/Paging.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/Results/Results.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.stories.d.ts +0 -6
- package/dist/types/fui/features/Search/views/Sorting/Sorting.stories.d.ts +0 -6
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
export declare enum CardVariant {
|
|
3
3
|
BASIC = "basic",
|
|
4
4
|
MEDIA = "media",
|
|
5
|
-
VIDEO = "video"
|
|
5
|
+
VIDEO = "video",
|
|
6
|
+
ICON = "icon"
|
|
6
7
|
}
|
|
7
8
|
export interface ImageData {
|
|
8
9
|
src: string;
|
|
@@ -43,6 +44,7 @@ export interface CardData {
|
|
|
43
44
|
onClick?: (data: any) => void;
|
|
44
45
|
playCallback?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
45
46
|
isMuted?: boolean;
|
|
47
|
+
icon?: string;
|
|
46
48
|
}
|
|
47
49
|
export interface Props {
|
|
48
50
|
variant?: CardVariant;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props } from './CardIcon.types';
|
|
3
|
+
declare const CardIcon: {
|
|
4
|
+
({ id, title, description, icon, className, onClick, moreTitle, }: Props): React.ReactElement;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default CardIcon;
|
|
8
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CardIcon';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FieldError, FieldErrorsImpl, Merge } from 'react-hook-form';
|
|
3
2
|
export declare enum COPY_ALIGN {
|
|
4
3
|
LEFT = "left",
|
|
5
4
|
CENTER = "center",
|
|
@@ -29,7 +28,7 @@ export declare enum COPY_TAG {
|
|
|
29
28
|
SMALL = "small"
|
|
30
29
|
}
|
|
31
30
|
export interface Props {
|
|
32
|
-
children: string | Array<React.ReactNode> | React.ReactNode | string |
|
|
31
|
+
children: string | Array<React.ReactNode> | React.ReactNode | string | undefined;
|
|
33
32
|
align?: COPY_ALIGN;
|
|
34
33
|
size?: COPY_SIZE;
|
|
35
34
|
transform?: COPY_TRANSFORM;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DisplayHeading';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FilterValue } from
|
|
2
|
+
import { FilterValue } from '@elastic/search-ui';
|
|
3
3
|
export type OptionsType = {
|
|
4
|
-
value: FilterValue;
|
|
4
|
+
value: string | FilterValue;
|
|
5
5
|
label: string;
|
|
6
6
|
/** The selected option's value. */
|
|
7
7
|
defaultValue?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PanelCards';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { OptionsType } from '../FormSelect/FormSelect.types';
|
|
2
3
|
export interface Props {
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
@@ -7,8 +8,5 @@ export interface Props {
|
|
|
7
8
|
required?: boolean;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
className?: string;
|
|
10
|
-
options?:
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}[];
|
|
11
|
+
options?: Array<OptionsType>;
|
|
14
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const meta: Meta<typeof
|
|
4
|
-
type Story = StoryObj<typeof
|
|
2
|
+
import Tabs from '.';
|
|
3
|
+
declare const meta: Meta<typeof Tabs>;
|
|
4
|
+
type Story = StoryObj<typeof Tabs>;
|
|
5
5
|
export declare const Default: Story;
|
|
6
6
|
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Tabs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props } from './Video.types';
|
|
3
|
+
import 'video.js/dist/video-js.css';
|
|
4
|
+
declare const Video: {
|
|
5
|
+
({ url, sources, onReady, className, options, isYoutube, defaultAudioTrack, }: Props): React.ReactElement;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export default Video;
|
|
9
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
url: string;
|
|
3
|
+
autoPlay?: boolean;
|
|
4
|
+
muted?: boolean;
|
|
5
|
+
preload?: 'auto' | 'metadata' | 'none';
|
|
6
|
+
title?: string;
|
|
7
|
+
sources?: {
|
|
8
|
+
src: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
}[];
|
|
11
|
+
className?: string;
|
|
12
|
+
options?: any;
|
|
13
|
+
isYoutube?: boolean;
|
|
14
|
+
onReady?: (player: any) => void;
|
|
15
|
+
defaultAudioTrack?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Video';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import '@elastic/eui/dist/eui_theme_light.css';
|
|
3
|
-
import '@elastic/react-search-ui-views/lib/styles/styles.css';
|
|
4
3
|
import { Props } from './Search.types';
|
|
5
4
|
export default function Search({ showOptions, sortOptions, resultAs, ResultFieldMap, config, facetDisplay, noSidebar, customConnector, showPagingInfo, gridClasses, initialState, showTextSearch, }: Props): React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ForgotPasswordForm';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import
|
|
3
|
-
declare const meta: Meta<typeof
|
|
4
|
-
type Story = StoryObj<typeof
|
|
2
|
+
import LoginForm from '.';
|
|
3
|
+
declare const meta: Meta<typeof LoginForm>;
|
|
4
|
+
type Story = StoryObj<typeof LoginForm>;
|
|
5
5
|
export declare const Default: Story;
|
|
6
6
|
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './LoginForm';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './RegisterForm';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ResetPasswordForm';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const validEmail: {
|
|
2
|
+
required: string;
|
|
3
|
+
pattern: {
|
|
4
|
+
value: RegExp;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const validPassword: {
|
|
9
|
+
required: string;
|
|
10
|
+
minLength: {
|
|
11
|
+
value: number;
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
pattern: {
|
|
15
|
+
value: RegExp;
|
|
16
|
+
message: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
GLOBAL: {};
|
|
3
|
+
FORMS: {
|
|
4
|
+
LOGIN_FORM: {
|
|
5
|
+
TITLE: string;
|
|
6
|
+
SUBMIT: string;
|
|
7
|
+
FORGOT_PASSWORD: string;
|
|
8
|
+
REGISTER: string;
|
|
9
|
+
EMAIL: string;
|
|
10
|
+
PASSWORD: string;
|
|
11
|
+
};
|
|
12
|
+
REGISTER_FORM: {
|
|
13
|
+
TITLE: string;
|
|
14
|
+
SUBMIT: string;
|
|
15
|
+
EMAIL: string;
|
|
16
|
+
PASSWORD: string;
|
|
17
|
+
PASSWORD_DESCRIPTION: string;
|
|
18
|
+
};
|
|
19
|
+
FORGOT_PASSWORD_FORM: {
|
|
20
|
+
TITLE: string;
|
|
21
|
+
SUBMIT: string;
|
|
22
|
+
EMAIL: string;
|
|
23
|
+
};
|
|
24
|
+
RESET_PASSWORD_FORM: {
|
|
25
|
+
TITLE: string;
|
|
26
|
+
SUBMIT: string;
|
|
27
|
+
PASSWORD: string;
|
|
28
|
+
CONFIRM_PASSWORD: string;
|
|
29
|
+
};
|
|
30
|
+
PROFILE_FORM: {
|
|
31
|
+
TITLE: string;
|
|
32
|
+
SUBMIT: string;
|
|
33
|
+
EMAIL: string;
|
|
34
|
+
PASSWORD: string;
|
|
35
|
+
PASSWORD_DESCRIPTION: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
UI: {
|
|
39
|
+
SAVE: string;
|
|
40
|
+
CANCEL: string;
|
|
41
|
+
DELETE: string;
|
|
42
|
+
LOGIN_WITH_GOOGLE: string;
|
|
43
|
+
LOGIN_WITH_APPLE: string;
|
|
44
|
+
SIGNUP_WITH_GOOGLE: string;
|
|
45
|
+
SIGNUP_WITH_APPLE: string;
|
|
46
|
+
BACK_TO_LOGIN: string;
|
|
47
|
+
FORGOT_PASSWORD: string;
|
|
48
|
+
SUBMIT: string;
|
|
49
|
+
LOGIN: string;
|
|
50
|
+
REGISTER: string;
|
|
51
|
+
SOCIAL: {
|
|
52
|
+
GOOGLE: string;
|
|
53
|
+
FACEBOOK: string;
|
|
54
|
+
TWITTER: string;
|
|
55
|
+
EMAIL: string;
|
|
56
|
+
};
|
|
57
|
+
READ_MORE: string;
|
|
58
|
+
READ_LESS: string;
|
|
59
|
+
CLOSE: string;
|
|
60
|
+
BACK: string;
|
|
61
|
+
SHARE: string;
|
|
62
|
+
DOWNLOAD: string;
|
|
63
|
+
FORMAT_HOUR: string;
|
|
64
|
+
FORMAT_HOURS: string;
|
|
65
|
+
FORMAT_MINUTE: string;
|
|
66
|
+
FORMAT_MINUTES: string;
|
|
67
|
+
LOAD_MORE_LABEL: string;
|
|
68
|
+
NO_MORE_RESULTS: string;
|
|
69
|
+
UNKNOWN_ERROR_TITLE: string;
|
|
70
|
+
UNKNOWN_ERROR_MESSAGE: string;
|
|
71
|
+
CONTENT_SORT_TITLE: string;
|
|
72
|
+
CONTENT_FILTERS_TITLE: string;
|
|
73
|
+
CONTENT_FILTERS_LABEL: string;
|
|
74
|
+
CLOSE_FILTERS_LABEL: string;
|
|
75
|
+
CLEAR_ALL_FILTERS_LABEL: string;
|
|
76
|
+
CLEAR_FILTERS_LABEL: string;
|
|
77
|
+
MORE_ITEMS_LABEL: string;
|
|
78
|
+
PREVIOUS_ITEMS_LABEL: string;
|
|
79
|
+
CHOOSE_BTN_LABEL: string;
|
|
80
|
+
ADD_BTN_LABEL: string;
|
|
81
|
+
SEND_BTN_LABEL: string;
|
|
82
|
+
CANCEL_BTN_LABEL: string;
|
|
83
|
+
DONE_BTN_LABEL: string;
|
|
84
|
+
EDIT_BTN_LABEL: string;
|
|
85
|
+
CHANGE_BTN_LABEL: string;
|
|
86
|
+
REMOVE_BTN_LABEL: string;
|
|
87
|
+
MESSAGE_PROMPT_BTN_LABEL: string;
|
|
88
|
+
SELECT_FILE_BTN_LABEL: string;
|
|
89
|
+
TOO_MANY_REQUESTS_MESSAGE: string;
|
|
90
|
+
};
|
|
91
|
+
ERRORS: {};
|
|
92
|
+
};
|
|
93
|
+
export default en;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4alldigital/foundation-ui--gamma",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "Foundation UI Component library with GAMMA theme. ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "da82a48d936ed5ecde43cbad2d61bb46ad4e4c88",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@elastic/datemath": "^5.0.3",
|
|
31
31
|
"@elastic/eui": "^94.1.0",
|