@4alldigital/foundation-ui--gamma 1.47.0 → 1.49.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.
Files changed (83) hide show
  1. package/dist/foundation-ui.css +1 -1
  2. package/dist/index.esm.js +2 -2
  3. package/dist/index.js +2 -2
  4. package/dist/types/lib/components/Accordion/Accordion.d.ts +8 -0
  5. package/dist/types/lib/components/Accordion/Accordion.types.d.ts +8 -0
  6. package/dist/types/lib/components/Accordion/index.d.ts +1 -0
  7. package/dist/types/lib/components/Card/Card.types.d.ts +1 -0
  8. package/dist/types/lib/components/Card/types/CardMedia/CardMedia.d.ts +1 -1
  9. package/dist/types/lib/components/CardGrid/CardGrid.d.ts +8 -0
  10. package/dist/types/lib/components/CardGrid/CardGrid.types.d.ts +6 -0
  11. package/dist/types/lib/components/CardGrid/index.d.ts +1 -0
  12. package/dist/types/lib/components/Carousel/Carousel.types.d.ts +7 -1
  13. package/dist/types/lib/components/Header/Header.d.ts +1 -1
  14. package/dist/types/lib/components/Schedule/Schedule.d.ts +8 -0
  15. package/dist/types/lib/components/Schedule/Schedule.types.d.ts +73 -0
  16. package/dist/types/lib/components/Schedule/index.d.ts +1 -0
  17. package/dist/types/lib/components/ScheduleItem/ScheduleItem.d.ts +8 -0
  18. package/dist/types/lib/components/ScheduleItem/ScheduleItem.types.d.ts +8 -0
  19. package/dist/types/lib/components/ScheduleItem/index.d.ts +1 -0
  20. package/dist/types/lib/components/Screen/Screen.d.ts +8 -0
  21. package/dist/types/lib/components/Screen/Screen.types.d.ts +12 -0
  22. package/dist/types/lib/components/Screen/index.d.ts +1 -0
  23. package/dist/types/lib/components/Video/Video.types.d.ts +1 -1
  24. package/dist/types/lib/components/index.d.ts +4 -0
  25. package/dist/types/lib/constants/index.d.ts +3 -0
  26. package/dist/types/lib/context/App/index.d.ts +5 -0
  27. package/dist/types/lib/features/Search/views/Layout/Layout.d.ts +1 -1
  28. package/dist/types/lib/features/Search/views/Layout/Layout.types.d.ts +1 -0
  29. package/dist/types/lib/features/Search/views/SearchBox/SearchBox.d.ts +1 -1
  30. package/dist/types/lib/features/Search/views/SearchBox/SearchBox.types.d.ts +2 -0
  31. package/dist/types/lib/forms/SubscriptionForm/SubscriptionForm.d.ts +8 -0
  32. package/dist/types/lib/forms/SubscriptionForm/SubscriptionForm.types.d.ts +6 -0
  33. package/dist/types/lib/forms/SubscriptionForm/index.d.ts +1 -0
  34. package/dist/types/lib/index.d.ts +1 -0
  35. package/dist/types/lib/templates/AccountScreen/AccountScreen.d.ts +8 -0
  36. package/dist/types/lib/templates/AccountScreen/AccountScreen.types.d.ts +29 -0
  37. package/dist/types/lib/templates/AccountScreen/index.d.ts +1 -0
  38. package/dist/types/lib/templates/AuthScreen/AuthScreen.d.ts +8 -0
  39. package/dist/types/lib/templates/AuthScreen/AuthScreen.types.d.ts +8 -0
  40. package/dist/types/lib/templates/AuthScreen/index.d.ts +1 -0
  41. package/dist/types/lib/templates/CardGridScreen/CardGridScreen.d.ts +8 -0
  42. package/dist/types/lib/templates/CardGridScreen/CardGridScreen.types.d.ts +9 -0
  43. package/dist/types/lib/templates/CardGridScreen/index.d.ts +1 -0
  44. package/dist/types/lib/templates/CatalogueScreen/CatalogueScreen.d.ts +8 -0
  45. package/dist/types/lib/templates/CatalogueScreen/CatalogueScreen.types.d.ts +7 -0
  46. package/dist/types/lib/templates/CatalogueScreen/index.d.ts +1 -0
  47. package/dist/types/lib/templates/ChallengeLibraryScreen/ChallengeLibraryScreen.d.ts +8 -0
  48. package/dist/types/lib/templates/ChallengeLibraryScreen/ChallengeLibraryScreen.types.d.ts +9 -0
  49. package/dist/types/lib/templates/ChallengeLibraryScreen/index.d.ts +1 -0
  50. package/dist/types/lib/templates/ChallengeScreen/ChallengeScreen.d.ts +8 -0
  51. package/dist/types/lib/templates/ChallengeScreen/ChallengeScreen.types.d.ts +19 -0
  52. package/dist/types/lib/templates/ChallengeScreen/index.d.ts +1 -0
  53. package/dist/types/lib/templates/ContentScreen/ContentScreen.d.ts +8 -0
  54. package/dist/types/lib/templates/ContentScreen/ContentScreen.types.d.ts +7 -0
  55. package/dist/types/lib/templates/ContentScreen/index.d.ts +1 -0
  56. package/dist/types/lib/templates/DashboardScreen/DashboardScreen.d.ts +8 -0
  57. package/dist/types/lib/templates/DashboardScreen/DashboardScreen.types.d.ts +25 -0
  58. package/dist/types/lib/templates/DashboardScreen/index.d.ts +1 -0
  59. package/dist/types/lib/templates/FAQScreen/FAQScreen.d.ts +8 -0
  60. package/dist/types/lib/templates/FAQScreen/FAQScreen.types.d.ts +14 -0
  61. package/dist/types/lib/templates/FAQScreen/index.d.ts +1 -0
  62. package/dist/types/lib/templates/HomeScreen/HomeScreen.d.ts +8 -0
  63. package/dist/types/lib/templates/HomeScreen/HomeScreen.types.d.ts +5 -0
  64. package/dist/types/lib/templates/HomeScreen/index.d.ts +1 -0
  65. package/dist/types/lib/templates/MenuScreen/MenuScreen.d.ts +8 -0
  66. package/dist/types/lib/templates/MenuScreen/MenuScreen.types.d.ts +11 -0
  67. package/dist/types/lib/templates/MenuScreen/index.d.ts +1 -0
  68. package/dist/types/lib/templates/ProfileScreen/ProfileScreen.d.ts +8 -0
  69. package/dist/types/lib/templates/ProfileScreen/ProfileScreen.types.d.ts +23 -0
  70. package/dist/types/lib/templates/ProfileScreen/index.d.ts +1 -0
  71. package/dist/types/lib/templates/ScheduleScreen/ScheduleScreen.d.ts +8 -0
  72. package/dist/types/lib/templates/ScheduleScreen/ScheduleScreen.types.d.ts +8 -0
  73. package/dist/types/lib/templates/ScheduleScreen/index.d.ts +1 -0
  74. package/dist/types/lib/templates/SubscriptionScreen/SubscriptionScreen.d.ts +8 -0
  75. package/dist/types/lib/templates/SubscriptionScreen/SubscriptionScreen.types.d.ts +25 -0
  76. package/dist/types/lib/templates/SubscriptionScreen/index.d.ts +1 -0
  77. package/dist/types/lib/templates/WorkoutScreen/WorkoutScreen.d.ts +8 -0
  78. package/dist/types/lib/templates/WorkoutScreen/WorkoutScreen.types.d.ts +29 -0
  79. package/dist/types/lib/templates/WorkoutScreen/index.d.ts +1 -0
  80. package/dist/types/lib/templates/index.d.ts +30 -0
  81. package/dist/types/lib/translations/en.d.ts +4 -0
  82. package/dist/types/lib/utils/index.d.ts +1 -0
  83. package/package.json +5 -4
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './Accordion.types';
3
+ declare const Accordion: {
4
+ ({ testID, data, titleKey, contentKey }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default Accordion;
8
+ export type { Props };
@@ -0,0 +1,8 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ titleKey?: string;
4
+ contentKey?: string;
5
+ data: {
6
+ [key: string]: string;
7
+ }[];
8
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Accordion';
@@ -59,6 +59,7 @@ export interface CardData {
59
59
  align?: COPY_ALIGN;
60
60
  raised?: boolean;
61
61
  htmlDetails?: string;
62
+ accessRestriced?: boolean;
62
63
  }
63
64
  export interface Props {
64
65
  variant?: CardVariant;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './CardMedia.types';
3
3
  declare const CardMedia: {
4
- ({ id, title, description, image, className, metaData, actions, onClick, playCallback, htmlDetails, }: Props): React.ReactElement;
4
+ ({ id, title, description, image, className, metaData, actions, onClick, playCallback, htmlDetails, accessRestriced, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default CardMedia;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './CardGrid.types';
3
+ declare const CardGrid: {
4
+ ({ testID, data, onPressCallback }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default CardGrid;
8
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import { Props as CardProps } from '../Card/Card.types';
2
+ export interface Props {
3
+ testID?: string;
4
+ data: CardProps[];
5
+ onPressCallback: (id: string) => void;
6
+ }
@@ -0,0 +1 @@
1
+ export { default } from './CardGrid';
@@ -1,4 +1,4 @@
1
- import { Props as CardProps } from "../Card/Card.types";
1
+ import { Props as CardProps } from '../Card/Card.types';
2
2
  export interface Props {
3
3
  testID?: string;
4
4
  data: CardProps[];
@@ -14,5 +14,11 @@ export interface Props {
14
14
  shouldScrollOnClick?: boolean;
15
15
  showDots?: boolean;
16
16
  showArrows?: boolean;
17
+ responsive?: {
18
+ breakpoint: number;
19
+ settings: {
20
+ slidesToShow: number;
21
+ };
22
+ }[];
17
23
  };
18
24
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props } from './Header.types';
3
3
  declare const Header: {
4
- ({ testID, loginCallback, logoutCallback, isAuthenticated, hideMenu, className, logoOnly, }: Props): React.ReactElement;
4
+ ({ testID, hideMenu, className, logoOnly, }: Props): React.ReactElement;
5
5
  displayName: string;
6
6
  };
7
7
  export default Header;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './Schedule.types';
3
+ declare const Schedule: {
4
+ ({ testID, raised, scheduleItems, hasAccess }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default Schedule;
8
+ export type { Props };
@@ -0,0 +1,73 @@
1
+ export interface WeekDay {
2
+ date: Date;
3
+ isToday: boolean;
4
+ }
5
+ type WeekdayLong = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday';
6
+ export interface ScheduleItem {
7
+ day: WeekdayLong;
8
+ component: React.ReactElement;
9
+ }
10
+ interface Schedule {
11
+ uuid: string;
12
+ created: string;
13
+ langcode: string;
14
+ updated: string;
15
+ days: {
16
+ monday?: {
17
+ title: string;
18
+ start: string;
19
+ end: string;
20
+ video: string;
21
+ live: string;
22
+ }[];
23
+ tuesday?: {
24
+ title: string;
25
+ start: string;
26
+ end: string;
27
+ video: string;
28
+ live: string;
29
+ }[];
30
+ wednesday?: {
31
+ title: string;
32
+ start: string;
33
+ end: string;
34
+ video: string;
35
+ live: string;
36
+ }[];
37
+ thursday?: {
38
+ title: string;
39
+ start: string;
40
+ end: string;
41
+ video: string;
42
+ live: string;
43
+ }[];
44
+ friday?: {
45
+ title: string;
46
+ start: string;
47
+ end: string;
48
+ video: string;
49
+ live: string;
50
+ }[];
51
+ saturday?: {
52
+ title: string;
53
+ start: string;
54
+ end: string;
55
+ video: string;
56
+ live: string;
57
+ }[];
58
+ sunday?: {
59
+ title: string;
60
+ start: string;
61
+ end: string;
62
+ video: string;
63
+ live: string;
64
+ }[];
65
+ }[];
66
+ }
67
+ export interface Props {
68
+ testID?: string;
69
+ raised?: boolean;
70
+ scheduleItems?: Schedule;
71
+ hasAccess?: boolean;
72
+ }
73
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './Schedule';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './ScheduleItem.types';
3
+ declare const ScheduleItem: {
4
+ ({ testID, end, live, start, title }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default ScheduleItem;
8
+ export type { Props };
@@ -0,0 +1,8 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ end: number;
4
+ live: string;
5
+ start: number;
6
+ title: string;
7
+ video?: string;
8
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ScheduleItem';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './Screen.types';
3
+ declare const Screen: {
4
+ ({ testID, children, showHeader, showFooter, headerProps, footerProps, image, showOverlay, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default Screen;
8
+ export type { Props };
@@ -0,0 +1,12 @@
1
+ import { Props as HeaderProps } from '../Header/Header.types';
2
+ import { Props as FooterProps } from '../Footer/Footer.types';
3
+ export interface Props {
4
+ testID?: string;
5
+ children: React.ReactNode;
6
+ showHeader?: boolean;
7
+ showFooter?: boolean;
8
+ headerProps?: HeaderProps;
9
+ footerProps?: FooterProps;
10
+ image?: string;
11
+ showOverlay?: boolean;
12
+ }
@@ -0,0 +1 @@
1
+ export { default } from './Screen';
@@ -5,7 +5,7 @@ export interface Props {
5
5
  preload?: 'auto' | 'metadata' | 'none';
6
6
  title?: string;
7
7
  sources?: {
8
- uri: string;
8
+ src: string;
9
9
  type?: string;
10
10
  }[];
11
11
  className?: string;
@@ -39,6 +39,7 @@ export { default as PanelFeature } from './PanelFeature';
39
39
  export { default as PanelHero } from './PanelHero';
40
40
  export { default as PanelProduct } from './PanelProduct';
41
41
  export { default as PanelVideo } from './PanelVideo';
42
+ export { default as CardGrid } from './CardGrid';
42
43
  export { default as Container } from './Container';
43
44
  export { default as ContentPageLayout } from './ContentPageLayout';
44
45
  export { default as ContentRowsLayout } from './ContentRowsLayout';
@@ -101,3 +102,6 @@ export type { Props as AvatarProps } from './Avatar/Avatar.types';
101
102
  export type { Props as OTPInputProps } from './OTPInput/OTPInput.types';
102
103
  export type { Props as HeroProps } from './Hero/Hero.types';
103
104
  export type { Props as HtmlContentProps } from './HtmlContent/HtmlContent.types';
105
+ export type { Props as CardGridProps } from './CardGrid/CardGrid.types';
106
+ export type { Props as ScreenProps } from './Screen/Screen.types';
107
+ export type { Props as CarouselProps } from './Carousel/Carousel.types';
@@ -0,0 +1,3 @@
1
+ export declare const DATE_FORMAT = "MMMM dd, yyyy";
2
+ export declare const DATE_TIME_FORMAT = "MMMM dd, yyyy HH:mm";
3
+ export declare const TIME_FORMAT = "HH:mm";
@@ -42,6 +42,11 @@ interface AppContextProps {
42
42
  currency?: string;
43
43
  country?: string;
44
44
  };
45
+ app?: {
46
+ loginCallback?: () => void;
47
+ logoutCallback?: () => void;
48
+ isAuthenticated?: boolean;
49
+ };
45
50
  }
46
51
  export declare const AppContext: React.Context<AppContextProps>;
47
52
  interface AppProviderProps {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Props } from './Layout.types';
3
- declare function Layout({ className, children, header, bodyContent, bodyFooter, bodyHeader, sideContent }: Props): React.ReactElement;
3
+ declare function Layout({ className, children, header, bodyContent, bodyFooter, bodyHeader, sideContent, showSidebar, }: Props): React.ReactElement;
4
4
  declare namespace Layout {
5
5
  var displayName: string;
6
6
  }
@@ -7,4 +7,5 @@ export interface Props {
7
7
  bodyHeader?: React.ReactNode;
8
8
  sideContent?: React.ReactNode;
9
9
  noSidebar?: boolean;
10
+ showSidebar?: boolean;
10
11
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Props } from './SearchBox.types';
3
- declare function SearchBox({ className, onChange, onSubmit, wasSearched, placeholder }: Props): React.ReactElement;
3
+ declare function SearchBox({ className, onChange, onSubmit, wasSearched, placeholder, allowReset, resetTrigger, }: Props): React.ReactElement;
4
4
  declare namespace SearchBox {
5
5
  var displayName: string;
6
6
  }
@@ -5,4 +5,6 @@ export interface Props {
5
5
  value?: string;
6
6
  wasSearched?: boolean;
7
7
  placeholder?: string;
8
+ allowReset?: boolean;
9
+ resetTrigger?: (data?: any, options?: any) => void;
8
10
  }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './SubscriptionForm.types';
3
+ declare const SubscriptionForm: {
4
+ ({ testID, initialValues, handleSubmit, isDisabled }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default SubscriptionForm;
8
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ initialValues?: Record<string, string>;
4
+ handleSubmit: (values: Record<string, string>) => void;
5
+ isDisabled?: boolean;
6
+ }
@@ -0,0 +1 @@
1
+ export { default } from './SubscriptionForm';
@@ -4,3 +4,4 @@ export * from './forms';
4
4
  export * from './context';
5
5
  export * from './translations';
6
6
  export * from './hooks';
7
+ export * from './templates';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './AccountScreen.types';
3
+ declare const AccountScreen: {
4
+ ({ testID, title, image, user, logoutCallback, menu }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default AccountScreen;
8
+ export type { Props };
@@ -0,0 +1,29 @@
1
+ export interface Props {
2
+ testID: string;
3
+ title?: string;
4
+ image?: string;
5
+ user?: {
6
+ profile?: {
7
+ picture?: string;
8
+ firstName?: string;
9
+ lastName?: string;
10
+ dateOfBirth?: string;
11
+ email: string;
12
+ };
13
+ subscription?: {
14
+ status?: string;
15
+ price?: string;
16
+ nextBillingDate?: string;
17
+ cardType?: string;
18
+ cardNumber?: string;
19
+ cardExpiry?: string;
20
+ };
21
+ };
22
+ logoutCallback: () => void;
23
+ menu: {
24
+ title: string;
25
+ route: string;
26
+ icon?: string;
27
+ onClick: () => void;
28
+ }[];
29
+ }
@@ -0,0 +1 @@
1
+ export { default } from './AccountScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './AuthScreen.types';
3
+ declare const AuthScreen: {
4
+ ({ testID, title, image, formProps }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default AuthScreen;
8
+ export type { Props };
@@ -0,0 +1,8 @@
1
+ import { Props as AuthProps } from '../../components/Authenticator/Authenticator.types';
2
+ export interface Props {
3
+ testID?: string;
4
+ title: string;
5
+ isLoading: boolean;
6
+ image?: string;
7
+ formProps: AuthProps;
8
+ }
@@ -0,0 +1 @@
1
+ export { default } from './AuthScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './CardGridScreen.types';
3
+ declare const CardGridScreen: {
4
+ ({ testID, title, image, data, onPressCallback, isLoading }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default CardGridScreen;
8
+ export type { Props };
@@ -0,0 +1,9 @@
1
+ import { Props as CardProps } from '../../components/Card/Card.types';
2
+ export interface Props {
3
+ testID?: string;
4
+ title: string;
5
+ image?: string;
6
+ data?: CardProps[];
7
+ onPressCallback: (id: string) => void;
8
+ isLoading?: boolean;
9
+ }
@@ -0,0 +1 @@
1
+ export { default } from './CardGridScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './CatalogueScreen.types';
3
+ declare const CatalogueScreen: {
4
+ ({ testID, title, image, searchProps }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default CatalogueScreen;
8
+ export type { Props };
@@ -0,0 +1,7 @@
1
+ import { Props as SearchProps } from '../../features/Search/Search.types';
2
+ export interface Props {
3
+ testID?: string;
4
+ title: string;
5
+ image?: string;
6
+ searchProps: SearchProps;
7
+ }
@@ -0,0 +1 @@
1
+ export { default } from './CatalogueScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './ChallengeLibraryScreen.types';
3
+ declare const ChallengeLibraryScreen: {
4
+ ({ testID, title, image, data, isLoading, onPressCallback, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default ChallengeLibraryScreen;
8
+ export type { Props };
@@ -0,0 +1,9 @@
1
+ import { Props as CardProps } from '../../components/Card/Card.types';
2
+ export interface Props {
3
+ testID?: string;
4
+ title: string;
5
+ image?: string;
6
+ data?: CardProps[];
7
+ isLoading?: boolean;
8
+ onPressCallback: (id: string) => void;
9
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ChallengeLibraryScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './ChallengeScreen.types';
3
+ declare const ChallengeScreen: {
4
+ ({ testID, title, image, created, body, days, price, puchaseLabel, hasAccess, onPressCallback, purchaseCallback, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default ChallengeScreen;
8
+ export type { Props };
@@ -0,0 +1,19 @@
1
+ interface ChallengeDay {
2
+ title: string;
3
+ image: string;
4
+ id: string;
5
+ }
6
+ export interface Props {
7
+ testID?: string;
8
+ title: string;
9
+ image?: string;
10
+ created?: number;
11
+ body?: string;
12
+ days?: ChallengeDay[];
13
+ hasAccess?: boolean;
14
+ onPressCallback: (id: string) => void;
15
+ price?: number;
16
+ puchaseLabel?: string;
17
+ purchaseCallback: () => void;
18
+ }
19
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './ChallengeScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './ContentScreen.types';
3
+ declare const ContentScreen: {
4
+ ({ testID, title, image, updated, content }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default ContentScreen;
8
+ export type { Props };
@@ -0,0 +1,7 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ title: string;
4
+ image?: string;
5
+ content: string;
6
+ updated?: number;
7
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ContentScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './DashboardScreen.types';
3
+ declare const DashboardScreen: {
4
+ ({ testID, title, image, user, latestData, recentdata, stats, promo, news, statsIsLoading, promosIsLoading, dataIsLoading, handleLatestDataPress, handleRecentDataPress, handleNewsDataPress, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default DashboardScreen;
8
+ export type { Props };
@@ -0,0 +1,25 @@
1
+ import { CardProps, PanelHeroProps } from '../../components';
2
+ import { Props as HeaderProps } from '../../components/Header/Header.types';
3
+ import { Props as FooterProps } from '../../components/Footer/Footer.types';
4
+ export interface Props {
5
+ testID?: string;
6
+ title: string;
7
+ image?: string;
8
+ user?: {
9
+ id?: string;
10
+ name?: string;
11
+ };
12
+ latestData?: CardProps[];
13
+ recentdata?: CardProps[];
14
+ stats?: CardProps[];
15
+ promo?: PanelHeroProps;
16
+ news?: CardProps[];
17
+ statsIsLoading?: boolean;
18
+ promosIsLoading?: boolean;
19
+ dataIsLoading?: boolean;
20
+ handleLatestDataPress: (id: string) => void;
21
+ handleRecentDataPress: (id: string) => void;
22
+ handleNewsDataPress: (id: string) => void;
23
+ headerProps?: HeaderProps;
24
+ footerProps?: FooterProps;
25
+ }
@@ -0,0 +1 @@
1
+ export { default } from './DashboardScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './FAQScreen.types';
3
+ declare const FAQScreen: {
4
+ ({ testID, title, image, data, isLoading }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default FAQScreen;
8
+ export type { Props };
@@ -0,0 +1,14 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ title: string;
4
+ image?: string;
5
+ data?: {
6
+ uuid?: string;
7
+ id?: string;
8
+ title?: string;
9
+ answer?: string;
10
+ created?: number;
11
+ updated?: number;
12
+ }[];
13
+ isLoading?: boolean;
14
+ }
@@ -0,0 +1 @@
1
+ export { default } from './FAQScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './HomeScreen.types';
3
+ declare const HomeScreen: {
4
+ ({ testID, title, image }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default HomeScreen;
8
+ export type { Props };
@@ -0,0 +1,5 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ title: string;
4
+ image?: string;
5
+ }
@@ -0,0 +1 @@
1
+ export { default } from './HomeScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './MenuScreen.types';
3
+ declare const MenuScreen: {
4
+ ({ testID, title, image, menu, isLoading }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default MenuScreen;
8
+ export type { Props };
@@ -0,0 +1,11 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ title: string;
4
+ image?: string;
5
+ menu?: {
6
+ title: string;
7
+ onPress: (arg?: any) => void;
8
+ icon?: string;
9
+ }[];
10
+ isLoading?: boolean;
11
+ }
@@ -0,0 +1 @@
1
+ export { default } from './MenuScreen';