@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 './ProfileScreen.types';
3
+ declare const ProfileScreen: {
4
+ ({ testID, title, image, user, handleProfileSubmit }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default ProfileScreen;
8
+ export type { Props };
@@ -0,0 +1,23 @@
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
+ handleProfileSubmit: (values: Record<string, string>) => void;
23
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ProfileScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './ScheduleScreen.types';
3
+ declare const ScheduleScreen: {
4
+ ({ testID, title, image, scheduleData, isLoading }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default ScheduleScreen;
8
+ export type { Props };
@@ -0,0 +1,8 @@
1
+ import { Props as ScheduleProps } from '../../components/Schedule/Schedule.types';
2
+ export interface Props {
3
+ testID?: string;
4
+ title: string;
5
+ image?: string;
6
+ isLoading?: boolean;
7
+ scheduleData?: ScheduleProps;
8
+ }
@@ -0,0 +1 @@
1
+ export { default } from './ScheduleScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './SubscriptionScreen.types';
3
+ declare const SubscriptionScreen: {
4
+ ({ testID, title, image, user, handleSubscriptionSubmit, subscriptionCallback, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default SubscriptionScreen;
8
+ export type { Props };
@@ -0,0 +1,25 @@
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
+ plan?: string;
16
+ price?: string;
17
+ billingDate?: string;
18
+ cardType?: string;
19
+ cardNumber?: string;
20
+ cardExpiry?: string;
21
+ };
22
+ };
23
+ handleSubscriptionSubmit: (values: any) => void;
24
+ subscriptionCallback?: () => void;
25
+ }
@@ -0,0 +1 @@
1
+ export { default } from './SubscriptionScreen';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './WorkoutScreen.types';
3
+ declare const WorkoutScreen: {
4
+ ({ testID, id, title, image, description, created, duration, level, section, uuid, video, category, type, likeCallback, completedCallback, favouriteCallback, isLiked, isCompleted, isFavourite, relatedWorkouts, isLoading, hasActiveSubscription, }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default WorkoutScreen;
8
+ export type { Props };
@@ -0,0 +1,29 @@
1
+ export interface Props {
2
+ testID?: string;
3
+ title?: string;
4
+ image?: string;
5
+ id?: string;
6
+ uuid?: string;
7
+ description?: string;
8
+ created?: number;
9
+ duration?: string;
10
+ level?: string;
11
+ section?: string;
12
+ video: string;
13
+ videoPoster?: string;
14
+ videoDownload?: string;
15
+ category?: string;
16
+ type?: string;
17
+ isVideo?: boolean;
18
+ sharePath?: string;
19
+ shareMessage?: string;
20
+ likeCallback?: (id: string) => void;
21
+ isLiked?: boolean;
22
+ completedCallback?: (id: string) => void;
23
+ isCompleted?: boolean;
24
+ favouriteCallback?: (id: string) => void;
25
+ isFavourite?: boolean;
26
+ relatedWorkouts?: any[];
27
+ isLoading?: boolean;
28
+ hasActiveSubscription?: boolean;
29
+ }
@@ -0,0 +1 @@
1
+ export { default } from './WorkoutScreen';
@@ -0,0 +1,30 @@
1
+ export { default as AccountScreen } from './AccountScreen';
2
+ export { default as AuthScreen } from './AuthScreen';
3
+ export { default as CardGridScreen } from './CardGridScreen';
4
+ export { default as CatalogueScreen } from './CatalogueScreen';
5
+ export { default as ChallengeLibraryScreen } from './ChallengeLibraryScreen';
6
+ export { default as ChallengeScreen } from './ChallengeScreen';
7
+ export { default as ContentScreen } from './ContentScreen';
8
+ export { default as DashboardScreen } from './DashboardScreen';
9
+ export { default as FAQScreen } from './FAQScreen';
10
+ export { default as HomeScreen } from './HomeScreen';
11
+ export { default as MenuScreen } from './MenuScreen';
12
+ export { default as ProfileScreen } from './ProfileScreen';
13
+ export { default as ScheduleScreen } from './ScheduleScreen';
14
+ export { default as SubscriptionScreen } from './SubscriptionScreen';
15
+ export { default as WorkoutScreen } from './WorkoutScreen';
16
+ export type { Props as AccountScreenProps } from './AccountScreen/AccountScreen.types';
17
+ export type { Props as AuthScreenProps } from './AuthScreen/AuthScreen.types';
18
+ export type { Props as CardGridScreenProps } from './CardGridScreen/CardGridScreen.types';
19
+ export type { Props as CatalogueScreenProps } from './CatalogueScreen/CatalogueScreen.types';
20
+ export type { Props as ChallengeLibraryScreenProps } from './ChallengeLibraryScreen/ChallengeLibraryScreen.types';
21
+ export type { Props as ChallengeScreenProps } from './ChallengeScreen/ChallengeScreen.types';
22
+ export type { Props as ContentScreenProps } from './ContentScreen/ContentScreen.types';
23
+ export type { Props as DashboardScreenProps } from './DashboardScreen/DashboardScreen.types';
24
+ export type { Props as FAQScreenProps } from './FAQScreen/FAQScreen.types';
25
+ export type { Props as HomeScreenProps } from './HomeScreen/HomeScreen.types';
26
+ export type { Props as MenuScreenProps } from './MenuScreen/MenuScreen.types';
27
+ export type { Props as ProfileScreenProps } from './ProfileScreen/ProfileScreen.types';
28
+ export type { Props as ScheduleScreenProps } from './ScheduleScreen/ScheduleScreen.types';
29
+ export type { Props as SubscriptionScreenProps } from './SubscriptionScreen/SubscriptionScreen.types';
30
+ export type { Props as WorkoutScreenProps } from './WorkoutScreen/WorkoutScreen.types';
@@ -9,6 +9,9 @@ declare const strings: {
9
9
  };
10
10
  CHALLENGE: {
11
11
  TITLE: string;
12
+ NOT_ENTERED_IN_CHALLENGE: string;
13
+ CLICK_TO_ENTER: string;
14
+ PAYMENT_NOTE: string;
12
15
  };
13
16
  CHALLENGES_LIST: {
14
17
  TITLE: string;
@@ -348,6 +351,7 @@ declare const strings: {
348
351
  SHARED: string;
349
352
  NOT_ENTERED_IN_CHALLENGE: string;
350
353
  ACCESS_RESTRICTED: string;
354
+ PURCHASE_TO_ACCESS: string;
351
355
  SHOW_FILTERS: string;
352
356
  HIDE_FILTERS: string;
353
357
  THIS_WEEK: string;
@@ -1 +1,2 @@
1
1
  export declare function truncateString(str: string, maxLen?: number): string;
2
+ export declare function formatDuration(duration: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.47.0",
3
+ "version": "1.49.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": "81b0fcb4715c2a45cfc2fef1ca29e9126c393ee7",
42
+ "gitHead": "cc773247aa4c24f3609d7e4d058945a8ae6d84c8",
43
43
  "dependencies": {
44
44
  "@elastic/datemath": "^5.0.3",
45
45
  "@elastic/react-search-ui": "^1.21.5",
@@ -54,7 +54,6 @@
54
54
  "@tailwindcss/container-queries": "^0.1.1",
55
55
  "@tailwindcss/forms": "^0.5.7",
56
56
  "@tailwindcss/typography": "^0.5.13",
57
- "@videojs/http-streaming": "3.13.2",
58
57
  "classnames": "^2.5.1",
59
58
  "date-fns": "^3.6.0",
60
59
  "date-input-polyfill": "^2.14.0",
@@ -62,11 +61,13 @@
62
61
  "framer-motion": "^11.3.20",
63
62
  "history": "^5.3.0",
64
63
  "html-react-parser": "^5.1.12",
64
+ "iso8601-duration": "^2.1.2",
65
65
  "libphonenumber-js": "^1.11.5",
66
66
  "next": "^14.2.5",
67
67
  "rc-pagination": "^4.2.0",
68
68
  "react": "^18.3.1",
69
69
  "react-burger-menu": "^3.0.9",
70
+ "react-collapsible": "^2.10.0",
70
71
  "react-content-loader": "^7.0.2",
71
72
  "react-device-detect": "^2.2.3",
72
73
  "react-dom": "^18.3.1",
@@ -82,7 +83,7 @@
82
83
  "tailwind-merge": "^2.4.0",
83
84
  "tailwindcss": "^3.4.7",
84
85
  "typescript": "^5.5.4",
85
- "video.js": "8.17.3"
86
+ "video.js": "8.12.0"
86
87
  },
87
88
  "bugs": {
88
89
  "url": "https://github.com/4AllDigital/foundation-ui/issues"