@katajere/recap 1.0.2 → 1.0.9

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 (68) hide show
  1. package/README.md +27 -1
  2. package/dist/App.css +156 -120
  3. package/dist/FloatingFrames.css +55 -55
  4. package/dist/LoginScreen.css +146 -146
  5. package/dist/OtpScreen.css +133 -133
  6. package/dist/RecapStory.css +105 -105
  7. package/dist/StoryProgress.css +47 -47
  8. package/dist/assets/huxxle-blue-logo.svg +14 -14
  9. package/dist/assets/login-logo.svg +14 -14
  10. package/dist/assets/slide-logo.svg +14 -14
  11. package/dist/components/Header.css +46 -46
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.js +2 -2
  14. package/dist/slides/Slide10Final.css +101 -101
  15. package/dist/slides/Slide1Intro.css +235 -261
  16. package/dist/slides/Slide2Days.css +209 -209
  17. package/dist/slides/Slide3Revenue.css +89 -89
  18. package/dist/slides/Slide4Orders.css +135 -135
  19. package/dist/slides/Slide5Buyers.css +140 -140
  20. package/dist/slides/Slide6Customer.css +92 -92
  21. package/dist/slides/Slide7Products.css +144 -144
  22. package/dist/slides/Slide8Months.css +148 -148
  23. package/dist/slides/Slide9Year.css +93 -93
  24. package/package.json +17 -32
  25. package/src/App.css +156 -120
  26. package/src/FloatingFrames.css +55 -55
  27. package/src/FloatingFrames.tsx +27 -27
  28. package/src/LoginScreen.css +146 -146
  29. package/src/LoginScreen.tsx +70 -70
  30. package/src/OtpScreen.css +133 -133
  31. package/src/OtpScreen.tsx +109 -109
  32. package/src/RecapApp.tsx +34 -34
  33. package/src/RecapStory.css +105 -105
  34. package/src/RecapStory.tsx +269 -269
  35. package/src/StoryProgress.css +47 -47
  36. package/src/StoryProgress.tsx +60 -60
  37. package/src/assets.d.ts +41 -41
  38. package/src/components/Header.css +46 -46
  39. package/src/components/Header.tsx +41 -41
  40. package/src/data/mock.ts +62 -62
  41. package/src/data/recapCopy.ts +33 -33
  42. package/src/hooks/useBackgroundMusic.ts +79 -79
  43. package/src/index.ts +70 -70
  44. package/src/react-app-env.d.ts +26 -26
  45. package/src/slides/Slide10Final.css +101 -101
  46. package/src/slides/Slide10Final.tsx +105 -105
  47. package/src/slides/Slide1Intro.css +235 -261
  48. package/src/slides/Slide1Intro.tsx +141 -141
  49. package/src/slides/Slide2Days.css +209 -209
  50. package/src/slides/Slide2Days.tsx +92 -92
  51. package/src/slides/Slide3Revenue.css +89 -89
  52. package/src/slides/Slide3Revenue.tsx +76 -76
  53. package/src/slides/Slide4Orders.css +135 -135
  54. package/src/slides/Slide4Orders.tsx +63 -63
  55. package/src/slides/Slide5Buyers.css +140 -140
  56. package/src/slides/Slide5Buyers.tsx +74 -74
  57. package/src/slides/Slide6Customer.css +92 -92
  58. package/src/slides/Slide6Customer.tsx +27 -27
  59. package/src/slides/Slide7Products.css +144 -144
  60. package/src/slides/Slide7Products.tsx +81 -81
  61. package/src/slides/Slide8Months.css +148 -148
  62. package/src/slides/Slide8Months.tsx +63 -63
  63. package/src/slides/Slide9Year.css +93 -93
  64. package/src/slides/Slide9Year.tsx +35 -35
  65. package/src/types.ts +39 -39
  66. package/src/utils/format.ts +18 -18
  67. package/src/utils/index.ts +3 -3
  68. 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
+ };