@4alldigital/foundation-ui--gamma 1.50.2 → 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/context/App/index.d.ts +6 -1
- package/dist/types/lib/context/Theme/index.d.ts +2 -6
- 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/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 +1 -0
- package/dist/types/lib/utils/parseDuration/index.d.ts +19 -0
- package/package.json +2 -2
|
@@ -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,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",
|