@katajere/recap 1.0.3 → 1.0.10

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 (65) hide show
  1. package/dist/App.css +156 -156
  2. package/dist/FloatingFrames.css +55 -55
  3. package/dist/LoginScreen.css +146 -146
  4. package/dist/OtpScreen.css +133 -133
  5. package/dist/RecapStory.css +105 -105
  6. package/dist/StoryProgress.css +47 -47
  7. package/dist/assets/huxxle-blue-logo.svg +14 -14
  8. package/dist/assets/login-logo.svg +14 -14
  9. package/dist/assets/slide-logo.svg +14 -14
  10. package/dist/components/Header.css +46 -46
  11. package/dist/slides/Slide10Final.css +101 -101
  12. package/dist/slides/Slide1Intro.css +235 -235
  13. package/dist/slides/Slide2Days.css +209 -209
  14. package/dist/slides/Slide3Revenue.css +89 -89
  15. package/dist/slides/Slide4Orders.css +135 -135
  16. package/dist/slides/Slide5Buyers.css +140 -140
  17. package/dist/slides/Slide6Customer.css +92 -92
  18. package/dist/slides/Slide7Products.css +144 -144
  19. package/dist/slides/Slide8Months.css +148 -148
  20. package/dist/slides/Slide9Year.css +93 -93
  21. package/package.json +1 -1
  22. package/src/App.css +156 -156
  23. package/src/FloatingFrames.css +55 -55
  24. package/src/FloatingFrames.tsx +27 -27
  25. package/src/LoginScreen.css +146 -146
  26. package/src/LoginScreen.tsx +70 -70
  27. package/src/OtpScreen.css +133 -133
  28. package/src/OtpScreen.tsx +109 -109
  29. package/src/RecapApp.tsx +34 -34
  30. package/src/RecapStory.css +105 -105
  31. package/src/RecapStory.tsx +269 -269
  32. package/src/StoryProgress.css +47 -47
  33. package/src/StoryProgress.tsx +60 -60
  34. package/src/assets.d.ts +41 -41
  35. package/src/components/Header.css +46 -46
  36. package/src/components/Header.tsx +41 -41
  37. package/src/data/mock.ts +62 -62
  38. package/src/data/recapCopy.ts +33 -33
  39. package/src/hooks/useBackgroundMusic.ts +79 -79
  40. package/src/index.ts +70 -70
  41. package/src/react-app-env.d.ts +26 -26
  42. package/src/slides/Slide10Final.css +101 -101
  43. package/src/slides/Slide10Final.tsx +105 -105
  44. package/src/slides/Slide1Intro.css +235 -235
  45. package/src/slides/Slide1Intro.tsx +141 -141
  46. package/src/slides/Slide2Days.css +209 -209
  47. package/src/slides/Slide2Days.tsx +92 -92
  48. package/src/slides/Slide3Revenue.css +89 -89
  49. package/src/slides/Slide3Revenue.tsx +76 -76
  50. package/src/slides/Slide4Orders.css +135 -135
  51. package/src/slides/Slide4Orders.tsx +63 -63
  52. package/src/slides/Slide5Buyers.css +140 -140
  53. package/src/slides/Slide5Buyers.tsx +74 -74
  54. package/src/slides/Slide6Customer.css +92 -92
  55. package/src/slides/Slide6Customer.tsx +27 -27
  56. package/src/slides/Slide7Products.css +144 -144
  57. package/src/slides/Slide7Products.tsx +81 -81
  58. package/src/slides/Slide8Months.css +148 -148
  59. package/src/slides/Slide8Months.tsx +63 -63
  60. package/src/slides/Slide9Year.css +93 -93
  61. package/src/slides/Slide9Year.tsx +35 -35
  62. package/src/types.ts +39 -39
  63. package/src/utils/format.ts +18 -18
  64. package/src/utils/index.ts +3 -3
  65. package/src/utils/motion.ts +89 -89
package/src/types.ts CHANGED
@@ -1,39 +1,39 @@
1
- // Type definitions for the Huxxle Recap app
2
-
3
- export type AuthStep = 'login' | 'otp' | 'recap';
4
-
5
- export type BusinessCategory = 'thriving' | 'not_thriving' | 'new_user';
6
-
7
- export interface RecapData {
8
- businessName: string;
9
- days: number;
10
- streak: number;
11
- revenue: number;
12
- orders: number;
13
- firstTimeBuyers: number;
14
- repeatBuyers: number;
15
- topCustomerName: string;
16
- businessCategory: BusinessCategory;
17
- topProducts: Array<ProductSummary>;
18
- busiestMonth: string;
19
- videoUrl: string;
20
- downloadUrl: string;
21
- }
22
-
23
- export interface ProductSummary {
24
- name: string;
25
- units: number;
26
- productImage: string;
27
- }
28
-
29
- export const AUTH_STEPS = {
30
- LOGIN: 'login' as AuthStep,
31
- OTP: 'otp' as AuthStep,
32
- RECAP: 'recap' as AuthStep
33
- };
34
-
35
- export const BUSINESS_CATEGORIES = {
36
- THRIVING: 'thriving' as BusinessCategory,
37
- NOT_THRIVING: 'not_thriving' as BusinessCategory,
38
- NEW_USER: 'new_user' as BusinessCategory
39
- };
1
+ // Type definitions for the Huxxle Recap app
2
+
3
+ export type AuthStep = 'login' | 'otp' | 'recap';
4
+
5
+ export type BusinessCategory = 'thriving' | 'not_thriving' | 'new_user';
6
+
7
+ export interface RecapData {
8
+ businessName: string;
9
+ days: number;
10
+ streak: number;
11
+ revenue: number;
12
+ orders: number;
13
+ firstTimeBuyers: number;
14
+ repeatBuyers: number;
15
+ topCustomerName: string;
16
+ businessCategory: BusinessCategory;
17
+ topProducts: Array<ProductSummary>;
18
+ busiestMonth: string;
19
+ videoUrl: string;
20
+ downloadUrl: string;
21
+ }
22
+
23
+ export interface ProductSummary {
24
+ name: string;
25
+ units: number;
26
+ productImage: string;
27
+ }
28
+
29
+ export const AUTH_STEPS = {
30
+ LOGIN: 'login' as AuthStep,
31
+ OTP: 'otp' as AuthStep,
32
+ RECAP: 'recap' as AuthStep
33
+ };
34
+
35
+ export const BUSINESS_CATEGORIES = {
36
+ THRIVING: 'thriving' as BusinessCategory,
37
+ NOT_THRIVING: 'not_thriving' as BusinessCategory,
38
+ NEW_USER: 'new_user' as BusinessCategory
39
+ };
@@ -1,18 +1,18 @@
1
- /**
2
- * Format a number as Nigerian Naira currency
3
- */
4
- export function formatCurrency(amount: number): string {
5
- return new Intl.NumberFormat('en-NG', {
6
- style: 'currency',
7
- currency: 'NGN',
8
- minimumFractionDigits: 0,
9
- maximumFractionDigits: 0
10
- }).format(amount);
11
- }
12
-
13
- /**
14
- * Format a number with thousand separators
15
- */
16
- export function formatNumber(num: number): string {
17
- return new Intl.NumberFormat('en-US').format(num);
18
- }
1
+ /**
2
+ * Format a number as Nigerian Naira currency
3
+ */
4
+ export function formatCurrency(amount: number): string {
5
+ return new Intl.NumberFormat('en-NG', {
6
+ style: 'currency',
7
+ currency: 'NGN',
8
+ minimumFractionDigits: 0,
9
+ maximumFractionDigits: 0
10
+ }).format(amount);
11
+ }
12
+
13
+ /**
14
+ * Format a number with thousand separators
15
+ */
16
+ export function formatNumber(num: number): string {
17
+ return new Intl.NumberFormat('en-US').format(num);
18
+ }
@@ -1,3 +1,3 @@
1
- // Barrel export for utils
2
- export * from './motion';
3
- export * from './format';
1
+ // Barrel export for utils
2
+ export * from './motion';
3
+ export * from './format';
@@ -1,89 +1,89 @@
1
- import { Variants } from 'framer-motion';
2
-
3
- /**
4
- * Common Framer Motion variants and animation configs
5
- */
6
-
7
- // Slide transition variants
8
- export const slideVariants: Variants = {
9
- initial: {
10
- opacity: 0,
11
- y: 40
12
- },
13
- animate: {
14
- opacity: 1,
15
- y: 0,
16
- transition: {
17
- duration: 0.4,
18
- ease: 'easeOut'
19
- }
20
- },
21
- exit: {
22
- opacity: 0,
23
- y: -40,
24
- transition: {
25
- duration: 0.4,
26
- ease: 'easeIn'
27
- }
28
- }
29
- };
30
-
31
- // Fade in from top (for logo)
32
- export const fadeInFromTop: Variants = {
33
- initial: { opacity: 0, y: -20 },
34
- animate: {
35
- opacity: 1,
36
- y: 0,
37
- transition: { duration: 0.5, ease: 'easeOut' }
38
- }
39
- };
40
-
41
- // Scale in (for titles)
42
- export const scaleIn: Variants = {
43
- initial: { opacity: 0, scale: 0.9 },
44
- animate: {
45
- opacity: 1,
46
- scale: 1,
47
- transition: { duration: 0.5, ease: 'easeOut' }
48
- }
49
- };
50
-
51
- // Slide up (for forms)
52
- export const slideUp: Variants = {
53
- initial: { opacity: 0, y: 30 },
54
- animate: {
55
- opacity: 1,
56
- y: 0,
57
- transition: { duration: 0.6, ease: 'easeOut', delay: 0.2 }
58
- }
59
- };
60
-
61
- // Pulse animation (for OTP boxes)
62
- export const pulse: Variants = {
63
- initial: { scale: 0.95, opacity: 0 },
64
- animate: {
65
- scale: 1,
66
- opacity: 1,
67
- transition: { duration: 0.3, ease: 'easeOut' }
68
- }
69
- };
70
-
71
- // Delayed fade in (for secondary text)
72
- export const delayedFadeIn = (delay: number = 0.5): Variants => ({
73
- initial: { opacity: 0, x: 12 },
74
- animate: {
75
- opacity: 1,
76
- x: 0,
77
- transition: { duration: 0.5, ease: 'easeOut', delay }
78
- }
79
- });
80
-
81
- // Floating animation (for decorative frames)
82
- export const floatingAnimation = {
83
- x: [-30, 30, -30],
84
- transition: {
85
- duration: 24,
86
- repeat: Infinity,
87
- ease: 'linear' as const
88
- }
89
- };
1
+ import { Variants } from 'framer-motion';
2
+
3
+ /**
4
+ * Common Framer Motion variants and animation configs
5
+ */
6
+
7
+ // Slide transition variants
8
+ export const slideVariants: Variants = {
9
+ initial: {
10
+ opacity: 0,
11
+ y: 40
12
+ },
13
+ animate: {
14
+ opacity: 1,
15
+ y: 0,
16
+ transition: {
17
+ duration: 0.4,
18
+ ease: 'easeOut'
19
+ }
20
+ },
21
+ exit: {
22
+ opacity: 0,
23
+ y: -40,
24
+ transition: {
25
+ duration: 0.4,
26
+ ease: 'easeIn'
27
+ }
28
+ }
29
+ };
30
+
31
+ // Fade in from top (for logo)
32
+ export const fadeInFromTop: Variants = {
33
+ initial: { opacity: 0, y: -20 },
34
+ animate: {
35
+ opacity: 1,
36
+ y: 0,
37
+ transition: { duration: 0.5, ease: 'easeOut' }
38
+ }
39
+ };
40
+
41
+ // Scale in (for titles)
42
+ export const scaleIn: Variants = {
43
+ initial: { opacity: 0, scale: 0.9 },
44
+ animate: {
45
+ opacity: 1,
46
+ scale: 1,
47
+ transition: { duration: 0.5, ease: 'easeOut' }
48
+ }
49
+ };
50
+
51
+ // Slide up (for forms)
52
+ export const slideUp: Variants = {
53
+ initial: { opacity: 0, y: 30 },
54
+ animate: {
55
+ opacity: 1,
56
+ y: 0,
57
+ transition: { duration: 0.6, ease: 'easeOut', delay: 0.2 }
58
+ }
59
+ };
60
+
61
+ // Pulse animation (for OTP boxes)
62
+ export const pulse: Variants = {
63
+ initial: { scale: 0.95, opacity: 0 },
64
+ animate: {
65
+ scale: 1,
66
+ opacity: 1,
67
+ transition: { duration: 0.3, ease: 'easeOut' }
68
+ }
69
+ };
70
+
71
+ // Delayed fade in (for secondary text)
72
+ export const delayedFadeIn = (delay: number = 0.5): Variants => ({
73
+ initial: { opacity: 0, x: 12 },
74
+ animate: {
75
+ opacity: 1,
76
+ x: 0,
77
+ transition: { duration: 0.5, ease: 'easeOut', delay }
78
+ }
79
+ });
80
+
81
+ // Floating animation (for decorative frames)
82
+ export const floatingAnimation = {
83
+ x: [-30, 30, -30],
84
+ transition: {
85
+ duration: 24,
86
+ repeat: Infinity,
87
+ ease: 'linear' as const
88
+ }
89
+ };