@4alldigital/foundation-ui--gamma 1.51.0 → 1.52.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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './Avatar.types';
3
3
  declare const Avatar: {
4
- ({ testID, name, isEditable, initValue }: Props): React.ReactElement;
4
+ ({ testID, name, isEditable, initValue, fileUpdateCallback, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default Avatar;
@@ -4,4 +4,5 @@ export interface Props {
4
4
  name?: string;
5
5
  isEditable?: boolean;
6
6
  initValue?: string;
7
+ fileUpdateCallback?: (file: File) => Promise<void>;
7
8
  }
@@ -1,2 +1,2 @@
1
- export declare const cardWrapperClasses = "relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-bodyBackground text-bodyText dark:bg-darkBodyBackground dark:text-darkBodyText hover:bg-primary hover:text-bodyTextInverted group";
1
+ export declare const cardWrapperClasses = "relative rounded-lg overflow-hidden cursor-pointer hover:scale-105 shadow hover:shadow-lg bg-cardBackground text-cardText dark:bg-darkCardBackground dark:text-darkCardText hover:bg-cardText hover:text-cardBackground group";
2
2
  export declare const animateClasses = "transition duration-500 ease-in-out ";
@@ -40,6 +40,8 @@ export { default as PanelHero } from './PanelHero';
40
40
  export { default as PanelProduct } from './PanelProduct';
41
41
  export { default as PanelVideo } from './PanelVideo';
42
42
  export { default as CardGrid } from './CardGrid';
43
+ export { default as Screen } from './Screen';
44
+ export { default as Accordion } from './Accordion';
43
45
  export { default as Container } from './Container';
44
46
  export { default as ContentPageLayout } from './ContentPageLayout';
45
47
  export { default as ContentRowsLayout } from './ContentRowsLayout';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './ProfileForm.types';
3
3
  declare const ProfileForm: {
4
- ({ testID, initialValues, handleSubmit }: Props): React.ReactElement;
4
+ ({ testID, initialValues, handleSubmit, avatarUpdateCallback }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default ProfileForm;
@@ -2,4 +2,5 @@ export interface Props {
2
2
  testID?: string;
3
3
  initialValues?: Record<string, string>;
4
4
  handleSubmit: (values: Record<string, string>) => void;
5
+ avatarUpdateCallback: (file: File) => Promise<void>;
5
6
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './ChallengeScreen.types';
3
3
  declare const ChallengeScreen: {
4
- ({ testID, title, image, created, body, days, price, puchaseLabel, hasAccess, onPressCallback, purchaseCallback, }: Props): React.ReactElement;
4
+ ({ testID, title, image, created, body, days, puchaseLabel, hasAccess, onPressCallback, purchaseCallback, isLoading, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default ChallengeScreen;
@@ -15,5 +15,6 @@ export interface Props {
15
15
  price?: number;
16
16
  puchaseLabel?: string;
17
17
  purchaseCallback: () => void;
18
+ isLoading?: boolean;
18
19
  }
19
20
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './ProfileScreen.types';
3
3
  declare const ProfileScreen: {
4
- ({ testID, title, image, user, handleProfileSubmit }: Props): React.ReactElement;
4
+ ({ testID, title, image, user, handleProfileSubmit, profilePicUpdateCallback, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default ProfileScreen;
@@ -20,4 +20,5 @@ export interface Props {
20
20
  };
21
21
  };
22
22
  handleProfileSubmit: (values: Record<string, string>) => void;
23
+ profilePicUpdateCallback: (file: File) => Promise<void>;
23
24
  }
@@ -466,7 +466,9 @@ declare const strings: {
466
466
  PASSWORD_RESET_SUCCESS: string;
467
467
  REGISTRATION_SUCCESS: string;
468
468
  REQUIRED_DATA_MISSING: string;
469
- PAASSWORD_EMAIL_SENT: string;
469
+ PASSWORD_EMAIL_SENT: string;
470
+ MISSING_QUERY_PARAMS: string;
471
+ CHALLENGE_ENTRY_SUCCESS: string;
470
472
  };
471
473
  ERRORS: {
472
474
  GENERIC_ERROR: string;
@@ -489,6 +491,8 @@ declare const strings: {
489
491
  SIGN_OUT_FAILED_MESSAGE: string;
490
492
  PASSWORD_RESET_FAILED: string;
491
493
  REGISTRATION_FAILED: string;
494
+ VERIFICATION_FAILED: string;
495
+ UNKNOWN_ERROR: string;
492
496
  };
493
497
  };
494
498
  export default strings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.51.0",
3
+ "version": "1.52.1",
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": "7cd4df688fa970ab114f446628363477dc364add",
42
+ "gitHead": "b69bee69673716b025de9f6049c22d31a53ffb24",
43
43
  "dependencies": {
44
44
  "@elastic/datemath": "^5.0.3",
45
45
  "@elastic/react-search-ui": "^1.21.5",