@katajere/recap 2.1.7 → 2.1.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.
- package/dist/App.css +8 -0
- package/dist/LoginScreen.css +6 -139
- package/dist/OtpScreen.css +5 -127
- package/dist/RecapApp.d.ts +4 -1
- package/dist/RecapApp.d.ts.map +1 -1
- package/dist/RecapApp.js +2 -2
- package/dist/RecapLoadingScreen.css +11 -0
- package/dist/RecapStory.d.ts +8 -4
- package/dist/RecapStory.d.ts.map +1 -1
- package/dist/RecapStory.js +5 -254
- package/dist/StoryProgress.d.ts +2 -2
- package/dist/StoryProgress.d.ts.map +1 -1
- package/dist/StoryProgress.js +11 -68
- package/dist/assets/fluctuating/notification-left.svg +30 -0
- package/dist/assets/fluctuating/notification-right.svg +30 -0
- package/dist/assets/fluctuating/notification-top.svg +30 -0
- package/dist/assets/fluctuating/phone-body.svg +18 -0
- package/dist/assets/fluctuating/phone-detail.svg +6 -0
- package/dist/assets/fluctuating/phone-floor.svg +5 -0
- package/dist/assets/fluctuating/phone-marks.svg +8 -0
- package/dist/assets/fluctuating/phone-pulse.svg +7 -0
- package/dist/assets/fluctuating/wave-mask.svg +5 -0
- package/dist/assets/fluctuating/wave.svg +24 -0
- package/dist/assets/low-data/book-left-page.svg +7 -0
- package/dist/assets/low-data/book-right-leaf.svg +6 -0
- package/dist/assets/low-data/book-right-page.svg +5 -0
- package/dist/assets/low-data/book-spine.svg +5 -0
- package/dist/assets/low-data/sign-cord-left.svg +17 -0
- package/dist/assets/low-data/sign-cord-right.svg +17 -0
- package/dist/assets/low-data/sign-edge.svg +5 -0
- package/dist/assets/low-data/sign-eyelet-left.svg +15 -0
- package/dist/assets/low-data/sign-eyelet-right.svg +15 -0
- package/dist/assets/low-data/sign-face-detail.svg +18 -0
- package/dist/assets/low-data/sign-face.svg +10 -0
- package/dist/assets/low-data/sign-inner-bevel.svg +11 -0
- package/dist/assets/low-data/sign-lettering.svg +26 -0
- package/dist/assets/low-data/sign-pin.svg +15 -0
- package/dist/assets/low-data/sign-plaque.svg +19 -0
- package/dist/assets/low-data/sign-rim-bottom.svg +3 -0
- package/dist/assets/low-data/sign-rim-top.svg +3 -0
- package/dist/assets/low-data/store-browser.svg +10 -0
- package/dist/assets/low-data/store-cursor.svg +5 -0
- package/dist/assets/low-data/store-ground.svg +5 -0
- package/dist/assets/recap-intro/close.svg +5 -0
- package/dist/assets/recap-intro/loading-bar-1.png +0 -0
- package/dist/assets/recap-intro/loading-bar-2.png +0 -0
- package/dist/assets/recap-intro/tunnel.svg +516 -0
- package/dist/assets/steady/bag/badge.svg +9 -0
- package/dist/assets/steady/bag/body.svg +105 -0
- package/dist/assets/steady/bag/front-handle-inner.svg +353 -0
- package/dist/assets/steady/bag/front-handle.svg +10 -0
- package/dist/assets/steady/bag/hand.svg +208 -0
- package/dist/assets/steady/bag/rear-handle-inner.svg +297 -0
- package/dist/assets/steady/bag/rear-handle-top.svg +3 -0
- package/dist/assets/steady/bag/rear-handle.svg +10 -0
- package/dist/assets/steady/bag/shadow.svg +7 -0
- package/dist/assets/steady/calendar/base.png +0 -0
- package/dist/assets/steady/calendar/tick.svg +6 -0
- package/dist/assets/steady/coin/shimmer-mask.svg +5 -0
- package/dist/assets/steady/coin/shimmer.svg +16 -0
- package/dist/assets/steady/coin.png +0 -0
- package/dist/assets/steady/tree.svg +790 -0
- package/dist/assets/top10/biggest-day/coin-left.svg +21 -0
- package/dist/assets/top10/biggest-day/coin-right.svg +21 -0
- package/dist/assets/top10/biggest-day/coin-top.svg +21 -0
- package/dist/assets/top10/biggest-day/floor.svg +5 -0
- package/dist/assets/top10/biggest-day/illustration.png +0 -0
- package/dist/assets/top10/biggest-day/marks.svg +8 -0
- package/dist/assets/top10/biggest-day/mask.svg +5 -0
- package/dist/assets/top10/biggest-day/phone-body.svg +18 -0
- package/dist/assets/top10/biggest-day/phone-detail.svg +6 -0
- package/dist/assets/top10/closing/imgHccStaticHaloScale.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticHaloScale1.svg +12 -0
- package/dist/assets/top10/closing/imgHccStaticP0Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP10Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP11Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP12Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP13Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP14Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP15Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP16Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP17Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP18Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP19Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP1Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP20Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP21Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP22Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP23Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP24Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP25Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP26Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP27Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP28Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP29Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP2Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP30Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP31Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP32Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP33Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP34Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP35Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP36Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP37Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP38Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP39Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP3Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP40Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP41Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP42Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP43Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP44Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP45Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP46Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP47Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP48Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP49Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP4Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP50Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP51Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP52Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP53Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP54Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP55Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP5Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP6Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP7Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP8Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgHccStaticP9Tumble.svg +5 -0
- package/dist/assets/top10/closing/imgVector.png +0 -0
- package/dist/assets/top10/closing/replay.svg +7 -0
- package/dist/assets/top10/closing/share.svg +6 -0
- package/dist/assets/top10/customers/arrow.svg +6 -0
- package/dist/assets/top10/customers/avatar.svg +61 -0
- package/dist/assets/top10/customers/illustration.png +0 -0
- package/dist/assets/top10/favourite/emoji.svg +9 -0
- package/dist/assets/top10/favourite/heart.svg +8 -0
- package/dist/assets/top10/growth/coin.svg +10 -0
- package/dist/assets/top10/growth/counter-shadow.svg +12 -0
- package/dist/assets/top10/growth/counter.svg +8 -0
- package/dist/assets/top10/growth/highlight.svg +12 -0
- package/dist/assets/top10/growth/illustration.png +0 -0
- package/dist/assets/top10/milestone/illustration.png +0 -0
- package/dist/assets/top10/orders/giver.svg +18 -0
- package/dist/assets/top10/orders/illustration.png +0 -0
- package/dist/assets/top10/orders/mask.svg +5 -0
- package/dist/assets/top10/orders/parcel.svg +16 -0
- package/dist/assets/top10/orders/receiver.svg +20 -0
- package/dist/assets/top10/orders/seal.svg +8 -0
- package/dist/assets/top10/recognition/contact-mask.svg +6 -0
- package/dist/assets/top10/recognition/contact.svg +14 -0
- package/dist/assets/top10/recognition/mask.svg +5 -0
- package/dist/assets/top10/recognition/plug-left.svg +27 -0
- package/dist/assets/top10/recognition/plug-right.svg +23 -0
- package/dist/assets/top10/recognition/pulse.svg +15 -0
- package/dist/assets/top10/recognition/ring.svg +3 -0
- package/dist/assets/top10/shared/avatar.png +0 -0
- package/dist/assets/top10/shared/close-dark.svg +5 -0
- package/dist/assets/top10/shared/close-light.svg +5 -0
- package/dist/assets/top10/signature/glow.svg +13 -0
- package/dist/assets/top10/signature/horizon.svg +12 -0
- package/dist/assets/top10/signature/inner-glow.svg +13 -0
- package/dist/assets/top10/signature/mask.svg +5 -0
- package/dist/assets/top10/signature/rim-glow.svg +13 -0
- package/dist/assets/top10/signature/rim.svg +13 -0
- package/dist/assets/top10/signature/year-mask.svg +5 -0
- package/dist/assets/top10/signature/year-shadow.svg +8 -0
- package/dist/assets/top10/signature/year.svg +30 -0
- package/dist/assets/top10/surprise/illustration.png +0 -0
- package/dist/assets/top10/surprise/note-front.svg +275 -0
- package/dist/assets/zero-order/catalogue-card.svg +15 -0
- package/dist/assets/zero-order/catalogue-ground.svg +3 -0
- package/dist/assets/zero-order/catalogue-window.svg +15 -0
- package/dist/assets/zero-order/storefront-awning.svg +145 -0
- package/dist/assets/zero-order/storefront-chrome.svg +15 -0
- package/dist/assets/zero-order/storefront-door-frame.svg +3 -0
- package/dist/assets/zero-order/storefront-door-glass.svg +14 -0
- package/dist/assets/zero-order/storefront-door-handle-light.svg +3 -0
- package/dist/assets/zero-order/storefront-door-handle-shadow.svg +3 -0
- package/dist/assets/zero-order/storefront-door-handle.svg +3 -0
- package/dist/assets/zero-order/storefront-door-mask.svg +5 -0
- package/dist/assets/zero-order/storefront-door-pane.svg +10 -0
- package/dist/assets/zero-order/storefront-door-panel.svg +3 -0
- package/dist/assets/zero-order/storefront-door-sill.svg +3 -0
- package/dist/assets/zero-order/storefront-ground.svg +3 -0
- package/dist/assets/zero-order/storefront-shell.svg +19 -0
- package/dist/assets/zero-order/storefront-step.svg +8 -0
- package/dist/assets/zero-order/storefront-wall.svg +13 -0
- package/dist/assets/zero-order/storefront-window-frame.svg +3 -0
- package/dist/assets/zero-order/storefront-window-glass.svg +16 -0
- package/dist/assets/zero-order/storefront-window-ledge-edge.svg +3 -0
- package/dist/assets/zero-order/storefront-window-ledge-line.svg +3 -0
- package/dist/assets/zero-order/storefront-window-ledge.svg +3 -0
- package/dist/assets/zero-order/storefront-window-mask.svg +5 -0
- package/dist/assets/zero-order/storefront-window-pane.svg +10 -0
- package/dist/assets/zero-order/storefront-window-sill.svg +3 -0
- package/dist/categories.d.ts +15 -0
- package/dist/categories.d.ts.map +1 -0
- package/dist/categories.js +25 -0
- package/dist/components/RecapIntroLayout.css +225 -0
- package/dist/components/RecapIntroLayout.d.ts +16 -0
- package/dist/components/RecapIntroLayout.d.ts.map +1 -0
- package/dist/components/RecapIntroLayout.js +19 -0
- package/dist/data/mock.d.ts +12 -2
- package/dist/data/mock.d.ts.map +1 -1
- package/dist/data/mock.js +99 -59
- package/dist/data/recapCopy.d.ts +1 -0
- package/dist/data/recapCopy.d.ts.map +1 -1
- package/dist/data/recapCopy.js +30 -21
- package/dist/data/remoteAssets.d.ts +3 -0
- package/dist/data/remoteAssets.d.ts.map +1 -0
- package/dist/data/remoteAssets.js +3 -0
- package/dist/hooks/useBackgroundMusic.d.ts +8 -8
- package/dist/hooks/useBackgroundMusic.d.ts.map +1 -1
- package/dist/hooks/useBackgroundMusic.js +38 -43
- package/dist/hooks/useCountUp.d.ts +16 -0
- package/dist/hooks/useCountUp.d.ts.map +1 -0
- package/dist/hooks/useCountUp.js +15 -0
- package/dist/hooks/useFrameImages.d.ts +5 -0
- package/dist/hooks/useFrameImages.d.ts.map +1 -0
- package/dist/hooks/useFrameImages.js +18 -0
- package/dist/hooks/useSessionValidator.d.ts +14 -0
- package/dist/hooks/useSessionValidator.d.ts.map +1 -0
- package/dist/hooks/useSessionValidator.js +97 -0
- package/dist/hooks/useShareCardPrecapture.d.ts +17 -0
- package/dist/hooks/useShareCardPrecapture.d.ts.map +1 -0
- package/dist/hooks/useShareCardPrecapture.js +35 -0
- package/dist/hooks/useStatusBarColor.d.ts +6 -0
- package/dist/hooks/useStatusBarColor.d.ts.map +1 -0
- package/dist/hooks/useStatusBarColor.js +34 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/slides/Slide10Final.d.ts.map +1 -1
- package/dist/slides/Slide10Final.js +2 -50
- package/dist/slides/Slide1Intro.css +1 -2
- package/dist/slides/Slide1Intro.d.ts.map +1 -1
- package/dist/slides/Slide1Intro.js +21 -25
- package/dist/slides/Slide2Days.d.ts.map +1 -1
- package/dist/slides/Slide2Days.js +7 -44
- package/dist/slides/Slide3Revenue.d.ts.map +1 -1
- package/dist/slides/Slide3Revenue.js +5 -22
- package/dist/slides/Slide4Orders.d.ts.map +1 -1
- package/dist/slides/Slide4Orders.js +12 -41
- package/dist/slides/Slide5Buyers.d.ts.map +1 -1
- package/dist/slides/Slide5Buyers.js +9 -43
- package/dist/slides/Slide6Customer.d.ts.map +1 -1
- package/dist/slides/Slide6Customer.js +3 -19
- package/dist/slides/Slide9Year.d.ts.map +1 -1
- package/dist/slides/Slide9Year.js +3 -21
- package/dist/slides/registry.d.ts +7 -0
- package/dist/slides/registry.d.ts.map +1 -0
- package/dist/slides/registry.js +84 -0
- package/dist/store/auth.d.ts +40 -0
- package/dist/store/auth.d.ts.map +1 -0
- package/dist/store/auth.js +40 -0
- package/dist/story/StoryProgressBars.d.ts +13 -0
- package/dist/story/StoryProgressBars.d.ts.map +1 -0
- package/dist/story/StoryProgressBars.js +12 -0
- package/dist/story/index.d.ts +12 -0
- package/dist/story/index.d.ts.map +1 -0
- package/dist/story/index.js +10 -0
- package/dist/story/resolveStories.d.ts +9 -0
- package/dist/story/resolveStories.d.ts.map +1 -0
- package/dist/story/resolveStories.js +23 -0
- package/dist/story/storyPlayerReducer.d.ts +33 -0
- package/dist/story/storyPlayerReducer.d.ts.map +1 -0
- package/dist/story/storyPlayerReducer.js +55 -0
- package/dist/story/types.d.ts +55 -0
- package/dist/story/types.d.ts.map +1 -0
- package/dist/story/types.js +1 -0
- package/dist/story/usePreloadAssets.d.ts +8 -0
- package/dist/story/usePreloadAssets.d.ts.map +1 -0
- package/dist/story/usePreloadAssets.js +21 -0
- package/dist/story/useStoryGestures.d.ts +23 -0
- package/dist/story/useStoryGestures.d.ts.map +1 -0
- package/dist/story/useStoryGestures.js +60 -0
- package/dist/story/useStoryKeyboard.d.ts +10 -0
- package/dist/story/useStoryKeyboard.d.ts.map +1 -0
- package/dist/story/useStoryKeyboard.js +43 -0
- package/dist/story/useStoryPlayer.d.ts +26 -0
- package/dist/story/useStoryPlayer.d.ts.map +1 -0
- package/dist/story/useStoryPlayer.js +64 -0
- package/dist/story/useStoryTimer.d.ts +16 -0
- package/dist/story/useStoryTimer.d.ts.map +1 -0
- package/dist/story/useStoryTimer.js +34 -0
- package/dist/story/useVideoCaptureBridge.d.ts +6 -0
- package/dist/story/useVideoCaptureBridge.d.ts.map +1 -0
- package/dist/story/useVideoCaptureBridge.js +22 -0
- package/dist/top10/RecapStory2026.d.ts +20 -0
- package/dist/top10/RecapStory2026.d.ts.map +1 -0
- package/dist/top10/RecapStory2026.js +67 -0
- package/dist/top10/Top10Chrome.d.ts +16 -0
- package/dist/top10/Top10Chrome.d.ts.map +1 -0
- package/dist/top10/Top10Chrome.js +15 -0
- package/dist/top10/Top10Slides.css +308 -0
- package/dist/top10/Top10Story.css +250 -0
- package/dist/top10/fluctuatingSlides.d.ts +5 -0
- package/dist/top10/fluctuatingSlides.d.ts.map +1 -0
- package/dist/top10/fluctuatingSlides.js +30 -0
- package/dist/top10/format.d.ts +17 -0
- package/dist/top10/format.d.ts.map +1 -0
- package/dist/top10/format.js +57 -0
- package/dist/top10/illustrations/IllustrationLayers.d.ts +51 -0
- package/dist/top10/illustrations/IllustrationLayers.d.ts.map +1 -0
- package/dist/top10/illustrations/IllustrationLayers.js +51 -0
- package/dist/top10/illustrations/closingAssets.d.ts +2 -0
- package/dist/top10/illustrations/closingAssets.d.ts.map +1 -0
- package/dist/top10/illustrations/closingAssets.js +119 -0
- package/dist/top10/illustrations/closingLayers.json +461 -0
- package/dist/top10/illustrations/index.d.ts +45 -0
- package/dist/top10/illustrations/index.d.ts.map +1 -0
- package/dist/top10/illustrations/index.js +646 -0
- package/dist/top10/lowDataSlides.d.ts +9 -0
- package/dist/top10/lowDataSlides.d.ts.map +1 -0
- package/dist/top10/lowDataSlides.js +50 -0
- package/dist/top10/motion.d.ts +18 -0
- package/dist/top10/motion.d.ts.map +1 -0
- package/dist/top10/motion.js +43 -0
- package/dist/top10/registry.d.ts +21 -0
- package/dist/top10/registry.d.ts.map +1 -0
- package/dist/top10/registry.js +313 -0
- package/dist/top10/slides.d.ts +87 -0
- package/dist/top10/slides.d.ts.map +1 -0
- package/dist/top10/slides.js +137 -0
- package/dist/top10/steadySlides.d.ts +16 -0
- package/dist/top10/steadySlides.d.ts.map +1 -0
- package/dist/top10/steadySlides.js +78 -0
- package/dist/top10/useCanvasScale.d.ts +18 -0
- package/dist/top10/useCanvasScale.d.ts.map +1 -0
- package/dist/top10/useCanvasScale.js +50 -0
- package/dist/top10/zeroOrderSlides.d.ts +9 -0
- package/dist/top10/zeroOrderSlides.d.ts.map +1 -0
- package/dist/top10/zeroOrderSlides.js +34 -0
- package/dist/types.d.ts +74 -14
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/utils/Helpers.d.ts +7 -0
- package/dist/utils/Helpers.d.ts.map +1 -0
- package/dist/utils/Helpers.js +21 -0
- package/dist/utils/RecapApi.d.ts +3 -0
- package/dist/utils/RecapApi.d.ts.map +1 -0
- package/dist/utils/RecapApi.js +35 -0
- package/dist/utils/Services/AuthServices.d.ts +49 -0
- package/dist/utils/Services/AuthServices.d.ts.map +1 -0
- package/dist/utils/Services/AuthServices.js +16 -0
- package/dist/utils/Services/mockApi.d.ts +49 -0
- package/dist/utils/Services/mockApi.d.ts.map +1 -0
- package/dist/utils/Services/mockApi.js +60 -0
- package/dist/utils/analytics.d.ts +4 -0
- package/dist/utils/analytics.d.ts.map +1 -0
- package/dist/utils/analytics.js +12 -0
- package/dist/utils/shareRecapVideo.d.ts +6 -0
- package/dist/utils/shareRecapVideo.d.ts.map +1 -0
- package/dist/utils/shareRecapVideo.js +40 -0
- package/dist/utils/vendorApp.d.ts +2 -0
- package/dist/utils/vendorApp.d.ts.map +1 -0
- package/dist/utils/vendorApp.js +4 -0
- package/package.json +25 -10
- package/src/App.css +8 -0
- package/src/App.tsx +75 -22
- package/src/LoginScreen.css +6 -139
- package/src/LoginScreen.tsx +126 -36
- package/src/OtpScreen.css +5 -127
- package/src/OtpScreen.tsx +84 -37
- package/src/RecapApp.tsx +6 -3
- package/src/RecapLoadingScreen.css +11 -0
- package/src/RecapLoadingScreen.tsx +64 -0
- package/src/RecapStory.tsx +11 -423
- package/src/StoryProgress.tsx +18 -104
- package/src/categories.ts +30 -0
- package/src/components/RecapIntroLayout.css +225 -0
- package/src/components/RecapIntroLayout.tsx +64 -0
- package/src/data/mock.ts +110 -67
- package/src/data/recapCopy.ts +33 -21
- package/src/data/remoteAssets.ts +3 -0
- package/src/hooks/useBackgroundMusic.ts +46 -48
- package/src/hooks/useCountUp.ts +36 -0
- package/src/hooks/useFrameImages.ts +19 -0
- package/src/hooks/useSessionValidator.ts +115 -0
- package/src/hooks/useShareCardPrecapture.ts +50 -0
- package/src/hooks/useStatusBarColor.ts +36 -0
- package/src/index.css +1 -1
- package/src/index.ts +24 -0
- package/src/lib/queryClient.ts +34 -0
- package/src/main.tsx +44 -0
- package/src/queries/recap.ts +15 -0
- package/src/slides/Slide10Final.tsx +2 -56
- package/src/slides/Slide1Intro.css +1 -2
- package/src/slides/Slide1Intro.tsx +22 -32
- package/src/slides/Slide2Days.tsx +7 -55
- package/src/slides/Slide3Revenue.tsx +5 -29
- package/src/slides/Slide4Orders.tsx +12 -53
- package/src/slides/Slide5Buyers.tsx +9 -52
- package/src/slides/Slide6Customer.tsx +3 -21
- package/src/slides/Slide9Year.tsx +3 -26
- package/src/slides/registry.tsx +129 -0
- package/src/store/auth.tsx +72 -0
- package/src/story/StoryProgressBars.tsx +42 -0
- package/src/story/index.ts +11 -0
- package/src/story/resolveStories.ts +31 -0
- package/src/story/storyPlayerReducer.ts +80 -0
- package/src/story/types.ts +49 -0
- package/src/story/usePreloadAssets.ts +28 -0
- package/src/story/useStoryGestures.ts +95 -0
- package/src/story/useStoryKeyboard.ts +56 -0
- package/src/story/useStoryPlayer.ts +120 -0
- package/src/story/useStoryTimer.ts +55 -0
- package/src/story/useVideoCaptureBridge.ts +30 -0
- package/src/top10/RecapStory2026.tsx +136 -0
- package/src/top10/Top10Chrome.tsx +66 -0
- package/src/top10/Top10Slides.css +308 -0
- package/src/top10/Top10Story.css +250 -0
- package/src/top10/fluctuatingSlides.tsx +88 -0
- package/src/top10/format.ts +61 -0
- package/src/top10/illustrations/IllustrationLayers.tsx +150 -0
- package/src/top10/illustrations/closingAssets.ts +120 -0
- package/src/top10/illustrations/index.tsx +753 -0
- package/src/top10/lowDataSlides.tsx +178 -0
- package/src/top10/motion.ts +65 -0
- package/src/top10/registry.tsx +370 -0
- package/src/top10/slides.tsx +560 -0
- package/src/top10/steadySlides.tsx +199 -0
- package/src/top10/useCanvasScale.ts +66 -0
- package/src/top10/zeroOrderSlides.tsx +120 -0
- package/src/types.ts +95 -19
- package/src/utils/Helpers.tsx +25 -0
- package/src/utils/RecapApi.tsx +39 -0
- package/src/utils/Services/AuthServices.tsx +18 -0
- package/src/utils/Services/mockApi.ts +77 -0
- package/src/utils/analytics.ts +15 -0
- package/src/utils/shareRecapVideo.ts +44 -0
- package/src/utils/vendorApp.ts +5 -0
- package/src/vite-env.d.ts +1 -0
- package/src/react-app-env.d.ts +0 -26
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type MotionValue } from 'framer-motion';
|
|
2
|
+
interface Top10ChromeProps {
|
|
3
|
+
businessName: string;
|
|
4
|
+
businessLogo?: string;
|
|
5
|
+
year: number;
|
|
6
|
+
total: number;
|
|
7
|
+
active: number;
|
|
8
|
+
progress: MotionValue<number>;
|
|
9
|
+
onBarClick: (index: number) => void;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
darkIcons: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Story chrome from the 2026 frames: segmented progress, business identity and close button. */
|
|
14
|
+
declare function Top10Chrome({ businessName, businessLogo, year, total, active, progress, onBarClick, onClose, darkIcons }: Top10ChromeProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Top10Chrome;
|
|
16
|
+
//# sourceMappingURL=Top10Chrome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Top10Chrome.d.ts","sourceRoot":"","sources":["../../src/top10/Top10Chrome.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAKzD,UAAU,gBAAgB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,iGAAiG;AACjG,iBAAS,WAAW,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CA4CnI;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import defaultAvatar from '../assets/top10/shared/avatar.png';
|
|
4
|
+
import closeLight from '../assets/top10/shared/close-light.svg';
|
|
5
|
+
import closeDark from '../assets/top10/shared/close-dark.svg';
|
|
6
|
+
/** Story chrome from the 2026 frames: segmented progress, business identity and close button. */
|
|
7
|
+
function Top10Chrome({ businessName, businessLogo, year, total, active, progress, onBarClick, onClose, darkIcons }) {
|
|
8
|
+
const avatar = businessLogo?.trim() || defaultAvatar;
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "s26-progress", children: Array.from({ length: total }).map((_, index) => (_jsx("div", { className: `s26-progress__segment${index < active ? ' s26-progress__segment--done' : ''}`, onClick: () => onBarClick(index), children: index === active && _jsx(motion.div, { className: "s26-progress__fill", style: { scaleX: progress } }) }, index))) }), _jsxs("div", { className: "s26-header", children: [_jsxs("div", { className: "s26-header__identity", children: [_jsx("img", { className: "s26-header__avatar", src: avatar, alt: "", onError: ({ currentTarget }) => {
|
|
10
|
+
if (currentTarget.getAttribute('src') !== defaultAvatar) {
|
|
11
|
+
currentTarget.src = defaultAvatar;
|
|
12
|
+
}
|
|
13
|
+
} }, avatar), _jsxs("div", { className: "s26-header__label", children: [_jsx("span", { className: "s26-header__name", children: businessName }), _jsx("span", { className: "s26-header__dot", "aria-hidden": "true" }), _jsxs("span", { className: "s26-header__meta", children: [year, " Recap"] })] })] }), onClose && (_jsx("button", { type: "button", className: "s26-header__close", onClick: onClose, "aria-label": "Close recap", children: _jsx("img", { src: darkIcons ? closeDark : closeLight, alt: "", width: 40, height: 40 }) }))] })] }));
|
|
14
|
+
}
|
|
15
|
+
export default Top10Chrome;
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
.s26-centered {
|
|
2
|
+
align-items: center;
|
|
3
|
+
text-align: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.s26-accent { color: #FFB74D; }
|
|
7
|
+
.s26-lilac { color: #C5C3F4; }
|
|
8
|
+
|
|
9
|
+
.s26-illustration-image {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.s26-body--strong { font-weight: 600; }
|
|
14
|
+
.s26-upper { text-transform: uppercase; }
|
|
15
|
+
|
|
16
|
+
/* Intro (TF-01) */
|
|
17
|
+
.s26-intro__eyebrow {
|
|
18
|
+
--fs: 14px;
|
|
19
|
+
--lh: 14px;
|
|
20
|
+
color: #A5A3EE;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
letter-spacing: 1.12px;
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.s26-intro__headline {
|
|
27
|
+
--fs: 48px;
|
|
28
|
+
--lh: 54px;
|
|
29
|
+
color: #F2F4F6;
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
letter-spacing: -0.96px;
|
|
32
|
+
text-transform: capitalize;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.s26-intro__body {
|
|
36
|
+
--fs: 14px;
|
|
37
|
+
--lh: 20px;
|
|
38
|
+
color: #C5C3F4;
|
|
39
|
+
font-weight: 400;
|
|
40
|
+
letter-spacing: 0.28px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* `top` is where the trimmed cap height starts, as in Figma */
|
|
44
|
+
.s26-intro__year {
|
|
45
|
+
--fs: 300px;
|
|
46
|
+
--lh: 300px;
|
|
47
|
+
position: absolute;
|
|
48
|
+
left: -280.5px;
|
|
49
|
+
top: 590px;
|
|
50
|
+
font-family: 'Aileron', sans-serif;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
letter-spacing: -24px;
|
|
53
|
+
color: transparent;
|
|
54
|
+
-webkit-text-stroke: 2px rgba(242, 244, 246, 0.35);
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Orders */
|
|
60
|
+
.s26-orders__count {
|
|
61
|
+
color: #F45B69;
|
|
62
|
+
letter-spacing: -3.84px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Biggest Day */
|
|
66
|
+
.s26-day-stats {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 24px;
|
|
70
|
+
height: 106px;
|
|
71
|
+
border-top: 1px solid #DEE2E6;
|
|
72
|
+
border-bottom: 1px solid #DEE2E6;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.s26-day-stats__column {
|
|
76
|
+
flex: 1 0 0;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
gap: 16px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.s26-day-stats__value {
|
|
84
|
+
--fs: 32px;
|
|
85
|
+
--lh: 56px;
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
letter-spacing: -1.28px;
|
|
88
|
+
color: #4F4CD8;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.s26-day-stats__divider {
|
|
93
|
+
flex: none;
|
|
94
|
+
align-self: stretch;
|
|
95
|
+
width: 1px;
|
|
96
|
+
background: #DEE2E6;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Customers */
|
|
100
|
+
.s26-customer-stat {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: 8px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.s26-customer-stat__value {
|
|
107
|
+
color: #FFFFFF;
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.s26-customer-stat__divider {
|
|
112
|
+
height: 1px;
|
|
113
|
+
background: rgba(255, 242, 238, 0.3);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Favourite */
|
|
117
|
+
.s26-post {
|
|
118
|
+
width: 343px;
|
|
119
|
+
height: 372px;
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
border-radius: 15.899px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.s26-post__header {
|
|
127
|
+
flex: none;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: 9.221px;
|
|
131
|
+
padding: 7.631px 17.806px;
|
|
132
|
+
background: #F0F0F0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.s26-post__title {
|
|
136
|
+
font-weight: 800;
|
|
137
|
+
font-size: 16px;
|
|
138
|
+
color: #000000;
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.s26-post__image {
|
|
143
|
+
flex: none;
|
|
144
|
+
height: 276.957px;
|
|
145
|
+
background: #000000;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.s26-post__image img {
|
|
149
|
+
display: block;
|
|
150
|
+
width: 100%;
|
|
151
|
+
height: 100%;
|
|
152
|
+
object-fit: cover;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.s26-post__footer {
|
|
156
|
+
flex: none;
|
|
157
|
+
display: flex;
|
|
158
|
+
padding: 11.129px 15.263px;
|
|
159
|
+
background: #F0F0F0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.s26-post__heart {
|
|
163
|
+
position: relative;
|
|
164
|
+
width: 24.509px;
|
|
165
|
+
height: 27.616px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.s26-post__heart img {
|
|
169
|
+
position: absolute;
|
|
170
|
+
inset: -1.11% -1.25% 0 -1.25%;
|
|
171
|
+
width: auto;
|
|
172
|
+
height: auto;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.s26-product-name {
|
|
176
|
+
font-weight: 700;
|
|
177
|
+
font-style: italic;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* Surprise */
|
|
181
|
+
.s26-surprise__day {
|
|
182
|
+
text-transform: uppercase;
|
|
183
|
+
color: #4F4CD8;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Recognition */
|
|
187
|
+
.s26-plug {
|
|
188
|
+
position: relative;
|
|
189
|
+
width: 120px;
|
|
190
|
+
height: 120px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.s26-plug__ring {
|
|
194
|
+
position: absolute;
|
|
195
|
+
inset: 0;
|
|
196
|
+
display: block;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.s26-plug__art {
|
|
200
|
+
position: absolute;
|
|
201
|
+
top: 0;
|
|
202
|
+
left: 0.5px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.s26-personality {
|
|
206
|
+
letter-spacing: 0;
|
|
207
|
+
text-transform: uppercase;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.s26-chips {
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-direction: column;
|
|
213
|
+
align-items: center;
|
|
214
|
+
gap: 12px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Steady */
|
|
218
|
+
.s26-steady-count {
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: flex-end;
|
|
221
|
+
gap: 8px;
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.s26-steady-count .s26-text {
|
|
226
|
+
color: #4F4CD8;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.s26-steady-count__value {
|
|
230
|
+
letter-spacing: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.s26-steady-day__date {
|
|
234
|
+
color: #FFFFFF;
|
|
235
|
+
text-transform: uppercase;
|
|
236
|
+
white-space: nowrap;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.s26-steady-day__body {
|
|
240
|
+
color: #DEE2E6;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* Tree art inside the 120px recognition ring (Figma 18920:5780) */
|
|
244
|
+
.s26-steady-tree {
|
|
245
|
+
position: relative;
|
|
246
|
+
width: 120px;
|
|
247
|
+
height: 120px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.s26-steady-tree img {
|
|
251
|
+
position: absolute;
|
|
252
|
+
top: 18.41px;
|
|
253
|
+
left: 15.14px;
|
|
254
|
+
display: block;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Closing */
|
|
258
|
+
.s26-closing__title {
|
|
259
|
+
--fs: 36px;
|
|
260
|
+
--lh: 48px;
|
|
261
|
+
width: 100%;
|
|
262
|
+
font-weight: 700;
|
|
263
|
+
background: linear-gradient(to right, #4F4CD8, #2A2872);
|
|
264
|
+
-webkit-background-clip: text;
|
|
265
|
+
background-clip: text;
|
|
266
|
+
color: transparent;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.s26-closing__footer {
|
|
270
|
+
color: #6C757D;
|
|
271
|
+
white-space: nowrap;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.s26-button {
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: center;
|
|
278
|
+
gap: 8px;
|
|
279
|
+
width: 100%;
|
|
280
|
+
height: 48px;
|
|
281
|
+
padding: 16px 24px;
|
|
282
|
+
border-radius: 40px;
|
|
283
|
+
font-family: 'Aileron', sans-serif;
|
|
284
|
+
cursor: pointer;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.s26-button img {
|
|
288
|
+
flex: none;
|
|
289
|
+
display: block;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.s26-button__label {
|
|
293
|
+
--fs: 16px;
|
|
294
|
+
--lh: 24px;
|
|
295
|
+
font-weight: 600;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.s26-button--primary {
|
|
299
|
+
border: none;
|
|
300
|
+
background: #4F4CD8;
|
|
301
|
+
color: #FFFFFF;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.s26-button--secondary {
|
|
305
|
+
border: 1px solid #E9ECEF;
|
|
306
|
+
background: #FFFFFF;
|
|
307
|
+
color: #495057;
|
|
308
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/* 2026 story (Top 10 design). Figma frames are 375×812 with a 42px iOS status bar,
|
|
2
|
+
so the story canvas is 375×770 and every Figma y position maps to (y − 42). */
|
|
3
|
+
|
|
4
|
+
/* ---------- Slide themes (background + chrome colors) ---------- */
|
|
5
|
+
[data-s26-theme] {
|
|
6
|
+
--s26-name: #FFFFFF;
|
|
7
|
+
--s26-meta: #DEE2E6;
|
|
8
|
+
--s26-progress-done: #F2F4F6;
|
|
9
|
+
--s26-progress-track: #495057;
|
|
10
|
+
--s26-eyebrow: #ADB5BD;
|
|
11
|
+
--s26-heading: #F2F4F6;
|
|
12
|
+
--s26-body: #DEE2E6;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-s26-theme='dark'] { --s26-bg: #141619; }
|
|
16
|
+
[data-s26-theme='night'] { --s26-bg: #11102C; --s26-eyebrow: #C5C3F4; }
|
|
17
|
+
|
|
18
|
+
[data-s26-theme='primary'] {
|
|
19
|
+
--s26-bg: linear-gradient(to bottom, #4F4CD8, #2A2872);
|
|
20
|
+
--s26-meta: #C5C3F4;
|
|
21
|
+
--s26-progress-done: #F2F2FC;
|
|
22
|
+
--s26-progress-track: #867FE5;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-s26-theme='secondary'],
|
|
26
|
+
[data-s26-theme='secondary-flat'] {
|
|
27
|
+
--s26-bg: linear-gradient(to bottom, #CC6240, #663120);
|
|
28
|
+
--s26-meta: #FFCBBB;
|
|
29
|
+
--s26-progress-done: #F2F2FC;
|
|
30
|
+
--s26-progress-track: #FF9777;
|
|
31
|
+
--s26-eyebrow: #FFCBBB;
|
|
32
|
+
--s26-body: #FFF2EE;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-s26-theme='secondary-flat'] { --s26-bg: #CC6240; }
|
|
36
|
+
|
|
37
|
+
[data-s26-theme='light'] {
|
|
38
|
+
--s26-bg: #FFFFFF;
|
|
39
|
+
--s26-name: #343A40;
|
|
40
|
+
--s26-meta: #6C757D;
|
|
41
|
+
--s26-progress-done: #4F4CD8;
|
|
42
|
+
--s26-progress-track: #C5C3F4;
|
|
43
|
+
--s26-eyebrow: #6C757D;
|
|
44
|
+
--s26-heading: #495057;
|
|
45
|
+
--s26-body: #495057;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* ---------- Category tokens (differences from Top 10 only) ---------- */
|
|
49
|
+
[data-recap-category='steady'] [data-s26-theme='light'],
|
|
50
|
+
[data-recap-category='low_data'] [data-s26-theme='light'] {
|
|
51
|
+
--s26-heading: #212529;
|
|
52
|
+
--s26-body: #3F3DAD;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-recap-category='zero_order'] [data-s26-theme='light'] {
|
|
56
|
+
--s26-body: #6C757D;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* ---------- Stage & canvas ---------- */
|
|
60
|
+
.s26-stage {
|
|
61
|
+
position: relative;
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
background: var(--s26-bg);
|
|
66
|
+
font-family: 'Aileron', sans-serif;
|
|
67
|
+
-webkit-font-smoothing: antialiased;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* The stage paints under the phone's status bar; the canvas starts below it */
|
|
71
|
+
.s26-stage {
|
|
72
|
+
--s26-safe-top: env(safe-area-inset-top, 0px);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.s26-canvas {
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: var(--s26-safe-top);
|
|
78
|
+
left: 50%;
|
|
79
|
+
width: 375px;
|
|
80
|
+
height: 770px;
|
|
81
|
+
transform-origin: top center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.s26-touch {
|
|
85
|
+
position: absolute;
|
|
86
|
+
inset: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.s26-slide {
|
|
90
|
+
position: absolute;
|
|
91
|
+
inset: 0;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
background: var(--s26-bg);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ---------- Chrome: progress + header ---------- */
|
|
97
|
+
.s26-progress {
|
|
98
|
+
position: absolute;
|
|
99
|
+
z-index: 2;
|
|
100
|
+
top: 8px;
|
|
101
|
+
left: 16px;
|
|
102
|
+
right: 16px;
|
|
103
|
+
display: flex;
|
|
104
|
+
gap: 2px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.s26-progress__segment {
|
|
108
|
+
position: relative;
|
|
109
|
+
flex: 1 0 0;
|
|
110
|
+
min-width: 1px;
|
|
111
|
+
height: 4px;
|
|
112
|
+
border-radius: 999px;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
background: var(--s26-progress-track);
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.s26-progress__segment--done,
|
|
119
|
+
.s26-progress__fill {
|
|
120
|
+
background: var(--s26-progress-done);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.s26-progress__fill {
|
|
124
|
+
position: absolute;
|
|
125
|
+
inset: 0;
|
|
126
|
+
transform-origin: left;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.s26-header {
|
|
130
|
+
position: absolute;
|
|
131
|
+
z-index: 2;
|
|
132
|
+
top: 12px;
|
|
133
|
+
left: 0;
|
|
134
|
+
right: 0;
|
|
135
|
+
display: flex;
|
|
136
|
+
align-items: center;
|
|
137
|
+
justify-content: space-between;
|
|
138
|
+
padding: 12px 16px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.s26-header__identity {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
gap: 8px;
|
|
145
|
+
min-width: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.s26-header__avatar {
|
|
149
|
+
flex: none;
|
|
150
|
+
width: 40px;
|
|
151
|
+
height: 40px;
|
|
152
|
+
object-fit: fill;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.s26-header__label {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: 4px;
|
|
159
|
+
white-space: nowrap;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.s26-header__name {
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
font-size: 16px;
|
|
165
|
+
line-height: 24px;
|
|
166
|
+
color: var(--s26-name);
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
text-overflow: ellipsis;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.s26-header__dot {
|
|
172
|
+
flex: none;
|
|
173
|
+
width: 4px;
|
|
174
|
+
height: 4px;
|
|
175
|
+
border-radius: 50%;
|
|
176
|
+
background: var(--s26-meta);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.s26-header__meta {
|
|
180
|
+
font-size: 14px;
|
|
181
|
+
line-height: 20px;
|
|
182
|
+
letter-spacing: 0.28px;
|
|
183
|
+
color: var(--s26-meta);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.s26-header__close {
|
|
187
|
+
flex: none;
|
|
188
|
+
width: 40px;
|
|
189
|
+
height: 40px;
|
|
190
|
+
padding: 0;
|
|
191
|
+
border: none;
|
|
192
|
+
background: transparent;
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.s26-header__close img {
|
|
197
|
+
display: block;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* ---------- Type scale ---------- */
|
|
201
|
+
/* Figma trims text boxes to cap height (Aileron cap ≈ 0.714em); the negative margins do the same */
|
|
202
|
+
.s26-text {
|
|
203
|
+
margin: calc((var(--lh) - var(--fs) * 0.714) / -2) 0;
|
|
204
|
+
font-size: var(--fs);
|
|
205
|
+
line-height: var(--lh);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.s26-eyebrow { --fs: 14px; --lh: 14px; font-weight: 600; letter-spacing: 1.12px; text-transform: uppercase; color: var(--s26-eyebrow); }
|
|
209
|
+
.s26-h2 { --fs: 48px; --lh: 56px; font-weight: 700; letter-spacing: -1.92px; }
|
|
210
|
+
.s26-h3 { --fs: 40px; --lh: 48px; font-weight: 600; }
|
|
211
|
+
.s26-h4 { --fs: 32px; --lh: 40px; font-weight: 700; color: var(--s26-heading); }
|
|
212
|
+
.s26-h5 { --fs: 24px; --lh: 28px; font-weight: 700; color: var(--s26-heading); }
|
|
213
|
+
.s26-h6 { --fs: 20px; --lh: 28px; font-weight: 600; color: var(--s26-heading); }
|
|
214
|
+
.s26-body { --fs: 16px; --lh: 24px; font-weight: 400; color: var(--s26-body); }
|
|
215
|
+
.s26-body-sm { --fs: 14px; --lh: 20px; font-weight: 400; letter-spacing: 0.28px; color: var(--s26-body); }
|
|
216
|
+
|
|
217
|
+
.s26-abs {
|
|
218
|
+
position: absolute;
|
|
219
|
+
left: 16px;
|
|
220
|
+
width: 343px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.s26-center-x {
|
|
224
|
+
position: absolute;
|
|
225
|
+
left: 50%;
|
|
226
|
+
width: max-content;
|
|
227
|
+
transform: translateX(-50%);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.s26-canvas img {
|
|
231
|
+
max-width: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.s26-stack {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.s26-milestone-copy { gap: 10px; align-items: flex-start; }
|
|
240
|
+
.s26-milestone-copy > .s26-text { margin: 0; }
|
|
241
|
+
|
|
242
|
+
.s26-chip {
|
|
243
|
+
display: inline-flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: center;
|
|
246
|
+
padding: 10px;
|
|
247
|
+
border-radius: 999px;
|
|
248
|
+
background: rgba(255, 255, 255, 0.1);
|
|
249
|
+
white-space: nowrap;
|
|
250
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type SlideProps } from './slides';
|
|
2
|
+
export declare function FluctuatingCustomersSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
export declare function FluctuatingMilestoneSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export declare function FluctuatingRecognitionSlide({ data }: SlideProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=fluctuatingSlides.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluctuatingSlides.d.ts","sourceRoot":"","sources":["../../src/top10/fluctuatingSlides.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAwD,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAMjG,wBAAgB,yBAAyB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,kDA+B7D;AAGD,wBAAgB,yBAAyB,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,kDA8B7D;AAGD,wBAAgB,2BAA2B,CAAC,EAAE,IAAI,EAAE,EAAE,UAAU,2CAS/D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { motion } from 'framer-motion';
|
|
3
|
+
import { BusyPhoneIllustration, CustomersIllustration, SeasonalWaveIllustration } from './illustrations';
|
|
4
|
+
import { fullMonthName } from './format';
|
|
5
|
+
import { fadeIn } from './motion';
|
|
6
|
+
import { At, Illustration, isPaidOrderRecap, RecognitionSlide } from './slides';
|
|
7
|
+
import { momentumChips } from './steadySlides';
|
|
8
|
+
/* Fluctuating (`fluctuating`) story frames. Motion from docs/design/.../fluctuating-motion.md (seasonal video). */
|
|
9
|
+
// Fluctuating Customers (18896:195997): the Top 10 illustration with a single customer count
|
|
10
|
+
export function FluctuatingCustomersSlide({ data }) {
|
|
11
|
+
if (data.totalCustomers == null)
|
|
12
|
+
return null;
|
|
13
|
+
const customers = data.totalCustomers.toLocaleString('en-NG');
|
|
14
|
+
const customersLabel = data.totalCustomers === 1 ? 'Customer' : 'Customers';
|
|
15
|
+
const ordersLabel = isPaidOrderRecap(data) ? 'paid orders' : 'orders';
|
|
16
|
+
return (_jsxs(_Fragment, { children: [_jsx(At, { top: 100, children: _jsx("p", { className: "s26-text s26-eyebrow", children: "Your people" }) }), _jsx(At, { top: 134, delay: 0.2, children: _jsx("p", { className: "s26-text s26-h4", children: "Through It All, Customers Found You." }) }), _jsx(Illustration, { top: 228, height: 240, children: _jsx(CustomersIllustration, {}) }), _jsx(At, { top: 533, anchor: "bottom", children: _jsxs(motion.div, { className: "s26-customer-stat", ...fadeIn(1.6), children: [_jsx("p", { className: "s26-text s26-h2 s26-customer-stat__value", children: customers }), _jsx("p", { className: "s26-text s26-h6 s26-upper", children: customersLabel })] }) }), _jsx(At, { top: 637, anchor: "bottom", delay: 2.2, children: _jsxs("p", { className: "s26-text s26-body s26-body--strong", children: ["These are the customers with ", ordersLabel, " recorded on Huxxle."] }) })] }));
|
|
17
|
+
}
|
|
18
|
+
// Fluctuating Milestone (18896:196168): the busiest month — phone buzzes, notifications pop
|
|
19
|
+
export function FluctuatingMilestoneSlide({ data }) {
|
|
20
|
+
if (!data.busiestMonth || data.busiestMonthOrders == null)
|
|
21
|
+
return null;
|
|
22
|
+
const month = fullMonthName(data.busiestMonth);
|
|
23
|
+
const paid = isPaidOrderRecap(data) ? 'paid ' : '';
|
|
24
|
+
const ordersLabel = data.busiestMonthOrders === 1 ? 'order' : 'orders';
|
|
25
|
+
return (_jsxs(_Fragment, { children: [_jsxs(At, { top: 100, className: "s26-stack", style: { gap: 24 }, children: [_jsx("p", { className: "s26-text s26-eyebrow", children: "Your business rhythm" }), _jsxs(motion.p, { className: "s26-text s26-h4", ...fadeIn(0.25), children: ["Your Busiest", _jsx("br", {}), "Month"] })] }), _jsx(Illustration, { top: 216, height: 326, children: _jsx(BusyPhoneIllustration, {}) }), _jsxs(At, { top: 556.5, anchor: "bottom", className: "s26-stack", style: { gap: 40 }, children: [_jsx(motion.p, { className: "s26-text s26-h4 s26-upper", ...fadeIn(1.15), children: month }), _jsxs(motion.p, { className: "s26-text s26-body s26-body--strong", ...fadeIn(1.45), children: ["You recorded ", data.busiestMonthOrders.toLocaleString('en-NG'), " ", paid, ordersLabel, " in ", month, "."] })] })] }));
|
|
26
|
+
}
|
|
27
|
+
// Fluctuating Recognition (18896:189570): the Top 10 layout with the seasonal wave and the Steady stats
|
|
28
|
+
export function FluctuatingRecognitionSlide({ data }) {
|
|
29
|
+
return (_jsx(RecognitionSlide, { data: data, art: _jsx(SeasonalWaveIllustration, {}), chips: momentumChips(data), bodyClassName: "s26-body s26-body--strong" }));
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** "Twelve", "Forty-two"; numbers from 100 up stay as digits. */
|
|
2
|
+
export declare function countInWords(value: number): string;
|
|
3
|
+
/** "One hundred", "Two thousand" for round hundreds and thousands; other numbers as in countInWords. */
|
|
4
|
+
export declare function roundCountInWords(value: number): string;
|
|
5
|
+
/** "Five million" for 5,000,000; falls back to digits for amounts that aren't whole millions under 100M. */
|
|
6
|
+
export declare function millionsInWords(amount: number): string;
|
|
7
|
+
export declare function formatMoney(amount: number, currency?: string, { spaced, preserveMinorUnits }?: {
|
|
8
|
+
spaced?: boolean | undefined;
|
|
9
|
+
preserveMinorUnits?: boolean | undefined;
|
|
10
|
+
}): string;
|
|
11
|
+
/** 'Nov' or 'November' → 'November'. */
|
|
12
|
+
export declare function fullMonthName(month: string): string;
|
|
13
|
+
/** '2026-11-28' → '28 November' */
|
|
14
|
+
export declare function dayAndMonth(isoDate: string): string;
|
|
15
|
+
/** '2026-12-19' → '19 DEC 2026' */
|
|
16
|
+
export declare function shortDateUpper(isoDate: string): string;
|
|
17
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/top10/format.ts"],"names":[],"mappings":"AAGA,iEAAiE;AACjE,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOlD;AAED,wGAAwG;AACxG,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKvD;AAED,4GAA4G;AAC5G,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAItD;AAID,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAQ,EAAE,EAAE,MAAc,EAAE,kBAA0B,EAAE;;;CAAK,GAAG,MAAM,CAMzH;AAID,wCAAwC;AACxC,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAOD,mCAAmC;AACnC,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGnD;AAED,mCAAmC;AACnC,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGtD"}
|