@4alldigital/foundation-ui--gamma 1.50.2 → 1.52.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.
@@ -58,7 +58,7 @@ export interface CardData {
58
58
  };
59
59
  align?: COPY_ALIGN;
60
60
  raised?: boolean;
61
- htmlDetails?: string;
61
+ htmlDetails?: boolean;
62
62
  accessRestriced?: boolean;
63
63
  }
64
64
  export interface Props {
@@ -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';
@@ -8,7 +8,12 @@ interface AppContextProps {
8
8
  tagline?: string;
9
9
  };
10
10
  header?: {
11
- nav: {
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;
@@ -1,12 +1,8 @@
1
- import React from "react";
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
- brand?: Brand;
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;
@@ -1,4 +1,5 @@
1
1
  export interface Props {
2
2
  handleSubmit: (data: Record<string, any>) => void;
3
3
  showSocialButtons?: boolean;
4
+ handleTokenCallback?: (tokens: any) => void;
4
5
  }
@@ -1,8 +1,8 @@
1
1
  import { Props as AuthProps } from '../../components/Authenticator/Authenticator.types';
2
2
  export interface Props {
3
3
  testID?: string;
4
- title: string;
5
- isLoading: boolean;
4
+ title?: string;
5
+ isLoading?: boolean;
6
6
  image?: string;
7
7
  formProps: AuthProps;
8
8
  }
@@ -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,8 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ title: string;
4
+ image?: string;
5
+ handleSubmitCallback: (data: {
6
+ password: string;
7
+ }) => void;
8
+ }
@@ -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;
@@ -1,3 +1,4 @@
1
+ export * from './parseDuration';
1
2
  export declare function truncateString(str: string, maxLen?: number): string;
2
3
  export declare function formatDuration(duration: string): string;
3
4
  export declare function getRandomImageFromArray(images?: string[]): string | undefined;
@@ -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.50.2",
3
+ "version": "1.52.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": "bf9b74fe845974b4878d21cc60d75e9e934be0c7",
42
+ "gitHead": "f6afa7aaac80226dc4a60455b225ee0c7ce5d787",
43
43
  "dependencies": {
44
44
  "@elastic/datemath": "^5.0.3",
45
45
  "@elastic/react-search-ui": "^1.21.5",