@4alldigital/foundation-ui--gamma 1.50.1 → 1.51.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/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/types/lib/components/Card/Card.types.d.ts +1 -1
- package/dist/types/lib/components/index.d.ts +1 -0
- package/dist/types/lib/context/Amplify/index.d.ts +27 -0
- package/dist/types/lib/context/App/index.d.ts +10 -1
- package/dist/types/lib/context/Theme/index.d.ts +2 -6
- package/dist/types/lib/context/index.d.ts +3 -1
- package/dist/types/lib/forms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/types/lib/forms/RegisterForm/RegisterForm.d.ts +1 -1
- package/dist/types/lib/forms/RegisterForm/RegisterForm.types.d.ts +1 -0
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/templates/AuthScreen/AuthScreen.types.d.ts +2 -2
- package/dist/types/lib/templates/PasswordResetScreen/PasswordResetScreen.d.ts +8 -0
- package/dist/types/lib/templates/PasswordResetScreen/PasswordResetScreen.types.d.ts +8 -0
- package/dist/types/lib/templates/PasswordResetScreen/index.d.ts +1 -0
- package/dist/types/lib/templates/index.d.ts +2 -0
- package/dist/types/lib/translations/en.d.ts +9 -0
- package/dist/types/lib/utils/index.d.ts +2 -0
- package/dist/types/lib/utils/parseDuration/index.d.ts +19 -0
- package/package.json +2 -2
|
@@ -101,6 +101,7 @@ export type { Props as ChipProps } from './Chip/Chip.types';
|
|
|
101
101
|
export type { Props as AvatarProps } from './Avatar/Avatar.types';
|
|
102
102
|
export type { Props as OTPInputProps } from './OTPInput/OTPInput.types';
|
|
103
103
|
export type { Props as HeroProps } from './Hero/Hero.types';
|
|
104
|
+
export { SPACING } from './Hero/Hero.types';
|
|
104
105
|
export type { Props as HtmlContentProps } from './HtmlContent/HtmlContent.types';
|
|
105
106
|
export type { Props as CardGridProps } from './CardGrid/CardGrid.types';
|
|
106
107
|
export type { Props as ScreenProps } from './Screen/Screen.types';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AmplifyContextProps {
|
|
3
|
+
config: {
|
|
4
|
+
region?: string;
|
|
5
|
+
userPoolId?: string;
|
|
6
|
+
userPoolWebClientId?: string;
|
|
7
|
+
signUpVerificationMethod?: string;
|
|
8
|
+
oauth: {
|
|
9
|
+
domain?: string;
|
|
10
|
+
scope?: string[];
|
|
11
|
+
redirectSignIn?: string;
|
|
12
|
+
redirectSignOut?: string;
|
|
13
|
+
responseType?: string;
|
|
14
|
+
};
|
|
15
|
+
cookieStorage: {
|
|
16
|
+
domain?: string;
|
|
17
|
+
secure?: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare const AmplifyContext: React.Context<AmplifyContextProps>;
|
|
22
|
+
interface AmplifyProviderProps {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
value: AmplifyContextProps;
|
|
25
|
+
}
|
|
26
|
+
export declare const AmplifyProvider: ({ children, value }: AmplifyProviderProps) => React.ReactElement;
|
|
27
|
+
export default AmplifyProvider;
|
|
@@ -8,7 +8,12 @@ interface AppContextProps {
|
|
|
8
8
|
tagline?: string;
|
|
9
9
|
};
|
|
10
10
|
header?: {
|
|
11
|
-
|
|
11
|
+
authNav?: {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
url: string;
|
|
15
|
+
}[];
|
|
16
|
+
anonNav?: {
|
|
12
17
|
id: string;
|
|
13
18
|
title: string;
|
|
14
19
|
url: string;
|
|
@@ -42,6 +47,10 @@ interface AppContextProps {
|
|
|
42
47
|
currency?: string;
|
|
43
48
|
country?: string;
|
|
44
49
|
};
|
|
50
|
+
images?: {
|
|
51
|
+
banner: string[];
|
|
52
|
+
placeholder: string;
|
|
53
|
+
};
|
|
45
54
|
app?: {
|
|
46
55
|
loginCallback?: () => void;
|
|
47
56
|
logoutCallback?: () => void;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
interface Brand {
|
|
3
|
-
logo: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}
|
|
1
|
+
import React from 'react';
|
|
6
2
|
interface ThemeContextProps {
|
|
7
3
|
isDarkTheme: boolean;
|
|
8
4
|
toggleTheme: () => void;
|
|
9
|
-
|
|
5
|
+
theme?: any;
|
|
10
6
|
}
|
|
11
7
|
export declare const defaultTheme: ThemeContextProps;
|
|
12
8
|
export declare const ThemeContext: React.Context<ThemeContextProps>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './Theme';
|
|
2
2
|
export { default as ThemeProvider } from './Theme';
|
|
3
3
|
export * from './App';
|
|
4
|
-
export { default as
|
|
4
|
+
export { default as AppProvider } from './App';
|
|
5
|
+
export * from './Amplify';
|
|
6
|
+
export { default as AmplifyProvider } from './Amplify';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Props } from './LoginForm.types';
|
|
3
3
|
declare const LoginForm: {
|
|
4
|
-
({ handleSubmit, initialValues, showSocialButtons }: Props): React.ReactElement;
|
|
4
|
+
({ handleSubmit, initialValues, handleTokenCallback, showSocialButtons, }: Props): React.ReactElement;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default LoginForm;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Props } from './RegisterForm.types';
|
|
3
3
|
declare const RegisterForm: {
|
|
4
|
-
({ handleSubmit, showSocialButtons }: Props): React.ReactElement;
|
|
4
|
+
({ handleSubmit, handleTokenCallback, showSocialButtons }: Props): React.ReactElement;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default RegisterForm;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props } from './PasswordResetScreen.types';
|
|
3
|
+
declare const PasswordResetScreen: {
|
|
4
|
+
({ testID, title, image, handleSubmitCallback }: Props): React.ReactElement;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default PasswordResetScreen;
|
|
8
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PasswordResetScreen';
|
|
@@ -9,6 +9,7 @@ export { default as DashboardScreen } from './DashboardScreen';
|
|
|
9
9
|
export { default as FAQScreen } from './FAQScreen';
|
|
10
10
|
export { default as HomeScreen } from './HomeScreen';
|
|
11
11
|
export { default as MenuScreen } from './MenuScreen';
|
|
12
|
+
export { default as PasswordResetScreen } from './PasswordResetScreen';
|
|
12
13
|
export { default as ProfileScreen } from './ProfileScreen';
|
|
13
14
|
export { default as ScheduleScreen } from './ScheduleScreen';
|
|
14
15
|
export { default as SubscriptionScreen } from './SubscriptionScreen';
|
|
@@ -24,6 +25,7 @@ export type { Props as DashboardScreenProps } from './DashboardScreen/DashboardS
|
|
|
24
25
|
export type { Props as FAQScreenProps } from './FAQScreen/FAQScreen.types';
|
|
25
26
|
export type { Props as HomeScreenProps } from './HomeScreen/HomeScreen.types';
|
|
26
27
|
export type { Props as MenuScreenProps } from './MenuScreen/MenuScreen.types';
|
|
28
|
+
export type { Props as PasswordResetScreenProps } from './PasswordResetScreen/PasswordResetScreen.types';
|
|
27
29
|
export type { Props as ProfileScreenProps } from './ProfileScreen/ProfileScreen.types';
|
|
28
30
|
export type { Props as ScheduleScreenProps } from './ScheduleScreen/ScheduleScreen.types';
|
|
29
31
|
export type { Props as SubscriptionScreenProps } from './SubscriptionScreen/SubscriptionScreen.types';
|
|
@@ -463,6 +463,10 @@ declare const strings: {
|
|
|
463
463
|
NO_ACTIVE_SUBSCRIPTION: string;
|
|
464
464
|
SUBSCRIPTION_EXPIRED: string;
|
|
465
465
|
NO_SUBSCRIPTION_DETAILS: string;
|
|
466
|
+
PASSWORD_RESET_SUCCESS: string;
|
|
467
|
+
REGISTRATION_SUCCESS: string;
|
|
468
|
+
REQUIRED_DATA_MISSING: string;
|
|
469
|
+
PAASSWORD_EMAIL_SENT: string;
|
|
466
470
|
};
|
|
467
471
|
ERRORS: {
|
|
468
472
|
GENERIC_ERROR: string;
|
|
@@ -480,6 +484,11 @@ declare const strings: {
|
|
|
480
484
|
COULD_NOT_UPDATE_CONNECTION: string;
|
|
481
485
|
ISSUE_CHECKING_PERMISSIONS: string;
|
|
482
486
|
ISSUE_OPENING_SETTINGS: string;
|
|
487
|
+
USER_NOT_FOUND_MESSAGE: string;
|
|
488
|
+
INCORRECT_USERNAME_OR_PASSWORD_MESSAGE: string;
|
|
489
|
+
SIGN_OUT_FAILED_MESSAGE: string;
|
|
490
|
+
PASSWORD_RESET_FAILED: string;
|
|
491
|
+
REGISTRATION_FAILED: string;
|
|
483
492
|
};
|
|
484
493
|
};
|
|
485
494
|
export default strings;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface DurationValues {
|
|
2
|
+
years?: number;
|
|
3
|
+
months?: number;
|
|
4
|
+
weeks?: number;
|
|
5
|
+
days?: number;
|
|
6
|
+
hours?: number;
|
|
7
|
+
minutes?: number;
|
|
8
|
+
seconds?: number;
|
|
9
|
+
}
|
|
10
|
+
export type Duration = {
|
|
11
|
+
negative?: boolean;
|
|
12
|
+
} & DurationValues;
|
|
13
|
+
export type ParseConfig = {
|
|
14
|
+
allowMultipleFractions?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const InvalidDurationError: Error;
|
|
17
|
+
export declare const MultipleFractionsError: Error;
|
|
18
|
+
export declare function parseDuration(durationStr: string, config?: ParseConfig): Duration;
|
|
19
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4alldigital/foundation-ui--gamma",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.0",
|
|
4
4
|
"description": "Foundation UI Component library with GAMMA theme. ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7cd4df688fa970ab114f446628363477dc364add",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@elastic/datemath": "^5.0.3",
|
|
45
45
|
"@elastic/react-search-ui": "^1.21.5",
|