@streamlayer/react-ui 1.0.0 → 1.2.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.
- package/lib/app/app/Advertisement/index.d.ts +10 -0
- package/lib/app/app/Advertisement/index.js +89 -0
- package/lib/{ui/app/masters → app/app}/Features/FeatureProvider.d.ts +2 -2
- package/lib/{ui/app → app}/app/Features/FeatureProvider.js +8 -8
- package/lib/{ui/app → app}/app/Features/Gamification/Friends.d.ts +0 -1
- package/lib/{ui/app → app}/app/Features/Gamification/Friends.js +2 -2
- package/lib/{ui/app → app}/app/Features/Gamification/Leaderboard.d.ts +3 -3
- package/lib/{ui/app → app}/app/Features/Gamification/Leaderboard.js +16 -16
- package/lib/{ui/app/masters → app/app}/Features/Gamification/Question.d.ts +1 -1
- package/lib/app/app/Features/Gamification/Question.js +69 -0
- package/lib/{ui/app → app}/app/Features/Gamification/QuestionsList.d.ts +2 -2
- package/lib/{ui/app → app}/app/Features/Gamification/QuestionsList.js +1 -1
- package/lib/{ui/app/masters → app/app}/Features/Gamification/Tabs.d.ts +3 -3
- package/lib/{ui/app → app}/app/Features/Gamification/Tabs.js +12 -12
- package/lib/{ui/app → app}/app/Features/Gamification/UserSummary.d.ts +2 -2
- package/lib/{ui/app/masters → app/app}/Features/Gamification/UserSummary.js +1 -1
- package/lib/{ui/app → app}/app/Features/Gamification/gamification-feature.d.ts +1 -0
- package/lib/{ui/app → app}/app/Features/Gamification/index.d.ts +3 -3
- package/lib/{ui/app/masters → app/app}/Features/Gamification/index.js +29 -29
- package/lib/{ui/app/masters → app/app}/Features/index.d.ts +4 -4
- package/lib/app/app/Navigation/index.d.ts +6 -0
- package/lib/app/app/Navigation/index.js +64 -0
- package/lib/{ui/app → app}/app/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/app/Notifications/Onboarding/Notification/styles.d.ts +9 -0
- package/lib/app/app/Notifications/Onboarding/Notification/styles.js +50 -0
- package/lib/{ui/app/masters → app/app}/Notifications/Onboarding/index.d.ts +4 -4
- package/lib/app/app/Notifications/Onboarding/index.js +168 -0
- package/lib/{ui/app → app}/app/Notifications/index.d.ts +3 -3
- package/lib/{ui/app → app}/app/Notifications/index.js +27 -27
- package/lib/app/app/Notifications/styles.d.ts +9 -0
- package/lib/app/app/Notifications/styles.js +31 -0
- package/lib/{ui/app/app/Navigation → app/app/Points}/index.d.ts +2 -2
- package/lib/{ui/app → app}/app/Points/index.js +1 -1
- package/lib/{ui/app → app}/app/index.d.ts +2 -2
- package/lib/{ui/app → app}/app/index.js +32 -32
- package/lib/app/app/story/content.d.ts +4 -0
- package/lib/app/app/story/content.js +30 -0
- package/lib/app/app/story/index.d.ts +10 -0
- package/lib/app/app/story/index.js +113 -0
- package/lib/app/app/story/login.d.ts +1 -0
- package/lib/app/app/story/login.js +34 -0
- package/lib/app/app/story/styles.d.ts +9 -0
- package/lib/app/app/story/styles.js +49 -0
- package/lib/app/app/story/useResponsive.d.ts +1 -0
- package/lib/app/app/story/useResponsive.js +15 -0
- package/lib/app/app/story/video.d.ts +10 -0
- package/lib/app/app/story/video.js +67 -0
- package/lib/{ui/app → app}/app/useApp.d.ts +2 -1
- package/lib/{ui/app → app}/app/useApp.js +20 -17
- package/lib/app/app/useAppContext.d.ts +8 -0
- package/lib/{ui/app → app}/index.d.ts +0 -1
- package/lib/app/login/demo.d.ts +5 -0
- package/lib/{ui → app}/login/index.d.ts +0 -1
- package/lib/{ui → app}/login/index.js +1 -1
- package/lib/app/login/styles.d.ts +7 -0
- package/lib/app/login/styles.js +39 -0
- package/lib/{ui/app/app → app/masters}/Features/FeatureProvider.d.ts +2 -2
- package/lib/{ui/app → app}/masters/Features/FeatureProvider.js +8 -8
- package/lib/{ui/app → app}/masters/Features/Gamification/Friends.d.ts +0 -1
- package/lib/app/masters/Features/Gamification/Friends.js +19 -0
- package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.d.ts +3 -3
- package/lib/{ui/app → app}/masters/Features/Gamification/Leaderboard.js +10 -10
- package/lib/{ui/app/app → app/masters}/Features/Gamification/Question.d.ts +1 -1
- package/lib/{ui/app → app}/masters/Features/Gamification/Question.js +11 -11
- package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.d.ts +2 -2
- package/lib/{ui/app → app}/masters/Features/Gamification/QuestionsList.js +1 -1
- package/lib/{ui/app/app → app/masters}/Features/Gamification/Tabs.d.ts +3 -3
- package/lib/{ui/app → app}/masters/Features/Gamification/Tabs.js +12 -12
- package/lib/{ui/app → app}/masters/Features/Gamification/UserSummary.d.ts +2 -2
- package/lib/{ui/app/app → app/masters}/Features/Gamification/UserSummary.js +1 -1
- package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.d.ts +1 -0
- package/lib/{ui/app → app}/masters/Features/Gamification/index.d.ts +3 -3
- package/lib/app/masters/Features/Gamification/index.js +88 -0
- package/lib/{ui/app/app → app/masters}/Features/index.d.ts +4 -4
- package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.d.ts +5 -5
- package/lib/{ui/app → app}/masters/Navigation/MastersNavigation/index.js +5 -5
- package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.d.ts +2 -2
- package/lib/app/masters/Notifications/Onboarding/Notification/styles.d.ts +9 -0
- package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/Notification/styles.js +16 -16
- package/lib/{ui/app/app → app/masters}/Notifications/Onboarding/index.d.ts +4 -4
- package/lib/{mastersLogoSolid-B4Dz-vm1.js → app/masters/Notifications/Onboarding/index.js} +166 -2
- package/lib/{ui/app → app}/masters/Notifications/index.d.ts +3 -3
- package/lib/{ui/app → app}/masters/Notifications/index.js +48 -47
- package/lib/app/masters/Notifications/styles.d.ts +9 -0
- package/lib/{ui/app/app → app/masters}/Notifications/styles.js +10 -10
- package/lib/app/masters/Points/index.d.ts +5 -0
- package/lib/{ui/app → app}/masters/Points/index.js +1 -1
- package/lib/{ui/app → app}/masters/masters.d.ts +3 -3
- package/lib/{ui/app → app}/masters/masters.js +20 -20
- package/lib/{ui/app → app}/masters/useMastersApp.d.ts +2 -1
- package/lib/app/masters/useMastersApp.js +71 -0
- package/lib/app/masters/useMastersContext.d.ts +8 -0
- package/lib/app/styles.d.ts +20 -0
- package/lib/{ui/app → app}/styles.js +13 -13
- package/lib/{ui/app → app}/useClipboardCopy.d.ts +3 -3
- package/lib/{ui/app → app}/useClipboardCopy.js +2 -2
- package/lib/{ui/app → app}/useSdkFeature.d.ts +2 -1
- package/lib/{ui/app → app}/useSdkResponsive.d.ts +3 -1
- package/lib/{ui/app → app}/useSdkResponsive.js +2 -2
- package/lib/{ui/app → app}/useSdkScroll.d.ts +3 -2
- package/lib/{ui/app → app}/useSdkScroll.js +2 -2
- package/lib/assets/style.css +1 -1
- package/lib/hooks/showIn.js +1 -1
- package/lib/{index-Bicco-Aq.js → index-B1QdimmR.js} +7737 -8219
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/ui/advertisement/banner/index.d.ts +8 -0
- package/lib/ui/advertisement/banner/index.js +32 -0
- package/lib/ui/advertisement/index.d.ts +10 -0
- package/lib/ui/advertisement/index.js +19 -0
- package/lib/ui/advertisement/mock.d.ts +4 -0
- package/lib/ui/advertisement/mock.js +67 -0
- package/lib/ui/advertisement/overlay/index.d.ts +7 -0
- package/lib/ui/advertisement/overlay/index.js +74 -0
- package/lib/ui/advertisement/overlay/styles.d.ts +18 -0
- package/lib/ui/advertisement/overlay/styles.js +95 -0
- package/lib/ui/advertisement/sidebar/index.d.ts +7 -0
- package/lib/ui/advertisement/sidebar/index.js +25 -0
- package/lib/ui/animated-counter/index.d.ts +1 -1
- package/lib/ui/button/index.d.ts +0 -1
- package/lib/ui/button/styles.d.ts +2 -3
- package/lib/ui/gamification/constants.d.ts +1 -0
- package/lib/ui/gamification/copyNotification/index.d.ts +0 -1
- package/lib/ui/gamification/copyNotification/styles.d.ts +3 -4
- package/lib/ui/gamification/detail/header/index.d.ts +1 -1
- package/lib/ui/gamification/detail/header/styles.d.ts +4 -5
- package/lib/ui/gamification/detail/sponsor/index.d.ts +1 -1
- package/lib/ui/gamification/detail/sponsor/index.js +13 -7
- package/lib/ui/gamification/insight/index.d.ts +1 -1
- package/lib/ui/gamification/insight/styles.d.ts +8 -9
- package/lib/ui/gamification/insight-list/index.d.ts +1 -1
- package/lib/ui/gamification/insight-list/styles.d.ts +2 -3
- package/lib/ui/gamification/invite-link/index.d.ts +0 -1
- package/lib/ui/gamification/invite-link/index.js +13 -13
- package/lib/ui/gamification/invite-link/styles.d.ts +5 -6
- package/lib/ui/gamification/invite-link/styles.js +11 -11
- package/lib/ui/gamification/leaderboard/index.d.ts +1 -1
- package/lib/ui/gamification/leaderboard/list-item/index.d.ts +2 -2
- package/lib/ui/gamification/leaderboard/list-item/styles.d.ts +7 -8
- package/lib/ui/gamification/leaderboard/static.d.ts +3 -3
- package/lib/ui/gamification/leaderboard/styles.d.ts +1 -2
- package/lib/ui/gamification/leaderboard/styles.js +1 -1
- package/lib/ui/gamification/onboarding/index.d.ts +3 -3
- package/lib/ui/gamification/onboarding/invitingUser/index.d.ts +0 -1
- package/lib/ui/gamification/onboarding/invitingUser/styles.d.ts +5 -6
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/index.d.ts +1 -0
- package/lib/ui/gamification/onboarding/slides/onboarding-instructions/styles.d.ts +10 -11
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.d.ts +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/index.js +6 -6
- package/lib/ui/gamification/onboarding/slides/onboarding-invite-card/styles.d.ts +9 -10
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/index.d.ts +1 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-rules/styles.d.ts +8 -9
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/index.d.ts +0 -1
- package/lib/ui/gamification/onboarding/slides/onboarding-terms/styles.d.ts +4 -5
- package/lib/ui/gamification/onboarding/styles.d.ts +5 -6
- package/lib/ui/gamification/points/index.d.ts +0 -1
- package/lib/ui/gamification/points/styles.d.ts +5 -6
- package/lib/ui/gamification/question/index.d.ts +2 -2
- package/lib/ui/gamification/question/index.js +27 -26
- package/lib/ui/gamification/question/insight/index.d.ts +1 -1
- package/lib/ui/gamification/question/insight/styles.d.ts +2 -3
- package/lib/ui/gamification/question/list/index.d.ts +2 -2
- package/lib/ui/gamification/question/list/styles.d.ts +1 -2
- package/lib/ui/gamification/question/notification/index.d.ts +2 -2
- package/lib/ui/gamification/question/notification/insight/index.d.ts +2 -2
- package/lib/ui/gamification/question/notification/insight/styles.d.ts +7 -8
- package/lib/ui/gamification/question/notification/pill/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/pill/styles.d.ts +3 -4
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/index.d.ts +0 -1
- package/lib/ui/gamification/question/notification/prediction-result/animation-lines/styles.d.ts +58 -31
- package/lib/ui/gamification/question/notification/prediction-result/index.d.ts +3 -2
- package/lib/ui/gamification/question/notification/prediction-result/index.js +55 -54
- package/lib/ui/gamification/question/notification/prediction-result/styles.d.ts +11 -10
- package/lib/ui/gamification/question/notification/styles.d.ts +6 -7
- package/lib/ui/gamification/question/notification/tweet/index.d.ts +3 -3
- package/lib/ui/gamification/question/notification/tweet/styles.d.ts +4 -5
- package/lib/ui/gamification/question/styles.d.ts +14 -14
- package/lib/ui/gamification/question/styles.js +48 -43
- package/lib/ui/gamification/question/twitter/index.d.ts +2 -2
- package/lib/ui/gamification/question/twitter/styles.d.ts +3 -4
- package/lib/ui/gamification/tabs/index.d.ts +0 -1
- package/lib/ui/gamification/tabs/styles.d.ts +4 -5
- package/lib/ui/gamification/user-statistics/components/rank/index.d.ts +0 -1
- package/lib/ui/gamification/user-statistics/components/rank/styles.d.ts +3 -4
- package/lib/ui/gamification/user-statistics/components/statistic/index.d.ts +0 -1
- package/lib/ui/gamification/user-statistics/components/statistic/styles.d.ts +3 -4
- package/lib/ui/gamification/user-statistics/index.d.ts +0 -1
- package/lib/ui/gamification/user-statistics/styles.d.ts +17 -18
- package/lib/ui/gamification/vote/alert/index.d.ts +2 -1
- package/lib/ui/gamification/vote/alert/styles.d.ts +3 -4
- package/lib/ui/gamification/vote/feedback/index.d.ts +1 -1
- package/lib/ui/gamification/vote/feedback/styles.d.ts +8 -9
- package/lib/ui/gamification/vote/index.d.ts +1 -1
- package/lib/ui/gamification/vote/insight-details/index.d.ts +1 -1
- package/lib/ui/gamification/vote/insight-details/styles.d.ts +2 -3
- package/lib/ui/gamification/vote/styles.d.ts +4 -5
- package/lib/ui/gamification/vote/styles.js +1 -1
- package/lib/ui/gamification/vote/twitter-details/index.d.ts +2 -2
- package/lib/ui/gamification/vote/twitter-details/styles.d.ts +2 -3
- package/lib/ui/gamification/vote/vote-option/index.d.ts +1 -1
- package/lib/ui/gamification/vote/vote-option/index.js +6 -6
- package/lib/ui/gamification/vote/vote-option/styles.d.ts +19 -16
- package/lib/ui/gamification/vote/win-bar/index.d.ts +1 -1
- package/lib/ui/gamification/vote/win-bar/styles.d.ts +6 -7
- package/lib/ui/icons/index.d.ts +1 -1
- package/lib/ui/icons/index.js +108 -47
- package/lib/ui/lottie/index.d.ts +0 -1
- package/lib/ui/modal/index.d.ts +0 -1
- package/lib/ui/modal/index.js +1 -1
- package/lib/ui/navigation/button/Channels.d.ts +1 -1
- package/lib/ui/navigation/button/FeaturedGroups.d.ts +1 -1
- package/lib/ui/navigation/button/LeaderBoard.d.ts +1 -1
- package/lib/ui/navigation/button/index.d.ts +1 -1
- package/lib/ui/navigation/button/styles.d.ts +6 -7
- package/lib/ui/navigation/index.d.ts +1 -1
- package/lib/ui/navigation/masters.d.ts +6 -5
- package/lib/ui/questions/insight/index.d.ts +1 -1
- package/lib/ui/questions/insight/styles.d.ts +6 -7
- package/lib/ui/questions/twitter/account/index.d.ts +0 -1
- package/lib/ui/questions/twitter/account/styles.d.ts +6 -7
- package/lib/ui/questions/twitter/index.d.ts +1 -1
- package/lib/ui/questions/twitter/styles.d.ts +14 -11
- package/lib/ui/show-in/index.d.ts +2 -1
- package/lib/ui/skeleton/index.d.ts +0 -1
- package/lib/ui/skeleton/styles.d.ts +1 -2
- package/lib/ui/slide-in/index.d.ts +11 -0
- package/lib/ui/slide-in/index.js +24 -0
- package/lib/ui/theme/ThemeColors.js +1 -1
- package/lib/ui/theme/ThemeColorsAdvertisement.d.ts +1 -0
- package/lib/ui/theme/ThemeColorsAdvertisement.js +15 -0
- package/lib/ui/theme/breakpoints.d.ts +1 -0
- package/lib/ui/theme/constants.d.ts +23 -59
- package/lib/ui/theme/constants.js +41 -56
- package/lib/ui/theme/index.d.ts +0 -1
- package/lib/ui/theme/masters-theme.d.ts +4 -24
- package/lib/ui/theme/masters-theme.js +26 -58
- package/lib/ui/theme/masters.d.ts +0 -1
- package/lib/ui/theme/theme.d.ts +1 -1
- package/lib/ui/theme/theme.js +14 -11
- package/lib/ui/timer/index.d.ts +3 -2
- package/lib/ui/timer/index.js +32 -32
- package/lib/ui/video-player/index.d.ts +1 -1
- package/lib/ui/video-player/index.js +70 -62
- package/lib/ui/video-player/styles.d.ts +5 -6
- package/lib/utils/debug/storage.js +1 -1
- package/lib/utils/storage.js +1 -1
- package/package.json +47 -41
- package/lib/styles_z07sl8-l0sNRNKZ.js +0 -1
- package/lib/ui/app/app/Features/Gamification/Question.js +0 -69
- package/lib/ui/app/app/Features/Gamification/index.js +0 -88
- package/lib/ui/app/app/Navigation/index.js +0 -42
- package/lib/ui/app/app/Notifications/Onboarding/Notification/styles.d.ts +0 -10
- package/lib/ui/app/app/Notifications/Onboarding/index.js +0 -172
- package/lib/ui/app/app/Notifications/styles.d.ts +0 -8
- package/lib/ui/app/app/Points/index.d.ts +0 -5
- package/lib/ui/app/app/useAppContext.d.ts +0 -8
- package/lib/ui/app/masters/Features/Gamification/Friends.js +0 -19
- package/lib/ui/app/masters/Navigation/index.d.ts +0 -9
- package/lib/ui/app/masters/Navigation/index.js +0 -30
- package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.d.ts +0 -10
- package/lib/ui/app/masters/Notifications/Onboarding/Notification/styles.js +0 -50
- package/lib/ui/app/masters/Notifications/Onboarding/index.js +0 -172
- package/lib/ui/app/masters/Notifications/styles.d.ts +0 -8
- package/lib/ui/app/masters/Notifications/styles.js +0 -31
- package/lib/ui/app/masters/Points/index.d.ts +0 -5
- package/lib/ui/app/masters/useMastersApp.js +0 -68
- package/lib/ui/app/masters/useMastersContext.d.ts +0 -8
- package/lib/ui/app/styles.d.ts +0 -15
- package/lib/ui/login/demo.d.ts +0 -6
- package/lib/ui/login/styles.d.ts +0 -8
- package/lib/ui/login/styles.js +0 -39
- /package/lib/{ui/app → app}/app/Features/Gamification/gamification-feature.js +0 -0
- /package/lib/{ui/app → app}/app/Features/index.js +0 -0
- /package/lib/{ui/app → app}/app/Notifications/Onboarding/Notification/index.js +0 -0
- /package/lib/{ui/app → app}/app/useAppContext.js +0 -0
- /package/lib/{ui/app → app}/index.js +0 -0
- /package/lib/{ui → app}/login/demo.js +0 -0
- /package/lib/{ui/app → app}/masters/Features/Gamification/gamification-feature.js +0 -0
- /package/lib/{ui/app → app}/masters/Features/index.js +0 -0
- /package/lib/{ui/app → app}/masters/Notifications/Onboarding/Notification/index.js +0 -0
- /package/lib/{ui/app → app}/masters/useMastersContext.js +0 -0
- /package/lib/{ui/app → app}/useImagesPreload.d.ts +0 -0
- /package/lib/{ui/app → app}/useImagesPreload.js +0 -0
- /package/lib/{ui/app → app}/useSdkFeature.js +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { App } from './
|
|
1
|
+
export { App } from './app/app';
|
|
2
2
|
export { StreamLayerThemeProvider } from './ui/theme';
|
package/lib/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PromotionOptions } from '@streamlayer/sdk-web-types';
|
|
2
|
+
|
|
3
|
+
export declare const BannerImg: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const Banner: React.FC<{
|
|
5
|
+
promotion: PromotionOptions;
|
|
6
|
+
direction?: 'top' | 'bottom';
|
|
7
|
+
hiding?: boolean;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { styled as e } from "@linaria/react";
|
|
3
|
+
import { SlideIn as o } from "../../slide-in/index.js";
|
|
4
|
+
const t = /* @__PURE__ */ e("div")({
|
|
5
|
+
name: "BannerContainer",
|
|
6
|
+
class: "bipmch2",
|
|
7
|
+
propsAsIs: !1
|
|
8
|
+
}), l = /* @__PURE__ */ e("img")({
|
|
9
|
+
name: "BannerImg",
|
|
10
|
+
class: "bpkcihp",
|
|
11
|
+
propsAsIs: !1
|
|
12
|
+
}), d = ({
|
|
13
|
+
promotion: r,
|
|
14
|
+
hiding: i,
|
|
15
|
+
direction: s = "bottom"
|
|
16
|
+
}) => {
|
|
17
|
+
var a;
|
|
18
|
+
return (a = r.additionalBanner) != null && a.imageUrl ? /* @__PURE__ */ n(o, {
|
|
19
|
+
direction: s,
|
|
20
|
+
hiding: i,
|
|
21
|
+
children: /* @__PURE__ */ n(t, {
|
|
22
|
+
children: /* @__PURE__ */ n(l, {
|
|
23
|
+
src: r.additionalBanner.imageUrl,
|
|
24
|
+
alt: "promo"
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
}) : null;
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
d as Banner,
|
|
31
|
+
l as BannerImg
|
|
32
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Advertisement } from '@streamlayer/feature-gamification';
|
|
2
|
+
|
|
3
|
+
export declare const AdvertisementUI: React.FC<{
|
|
4
|
+
advertisement: Advertisement & {
|
|
5
|
+
data: Exclude<Advertisement['data'], undefined>;
|
|
6
|
+
};
|
|
7
|
+
layoutMode?: 'cover' | 'side-by-side';
|
|
8
|
+
sidebar?: 'left' | 'right';
|
|
9
|
+
banner?: 'top' | 'bottom';
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useStore as a } from "@nanostores/react";
|
|
3
|
+
import { PromotionType as d } from "@streamlayer/sdk-web-types";
|
|
4
|
+
import { Banner as s } from "./banner/index.js";
|
|
5
|
+
import { Overlay as u } from "./overlay/index.js";
|
|
6
|
+
import { Sidebar as n } from "./sidebar/index.js";
|
|
7
|
+
const f = (r) => (r == null ? void 0 : r.type) === d.INGAME_IAB11_LBAR || (r == null ? void 0 : r.type) === d.INGAME_IAB21_LBAR, y = (r) => (r == null ? void 0 : r.type) === d.INGAME_IAB11 || (r == null ? void 0 : r.type) === d.INGAME_IAB21, C = ({ advertisement: r, layoutMode: A = "side-by-side", sidebar: i, banner: t }) => {
|
|
8
|
+
const e = a(r.data);
|
|
9
|
+
return !e.data && e.loading ? null : e.error ? /* @__PURE__ */ c("div", { children: [
|
|
10
|
+
"error ",
|
|
11
|
+
/* @__PURE__ */ l("button", { onClick: r.close, children: "close" })
|
|
12
|
+
] }) : e.data ? !i && !t && y(e.data) ? /* @__PURE__ */ l(u, { promotion: e.data, onClose: r.close }) : i && f(e.data) ? /* @__PURE__ */ l(n, { direction: i, hiding: r.hiding, children: /* @__PURE__ */ l(u, { promotion: e.data, onClose: r.close, inSidebar: !0 }) }) : t ? /* @__PURE__ */ l(s, { hiding: r.hiding, promotion: e.data, direction: t }) : null : /* @__PURE__ */ c("div", { children: [
|
|
13
|
+
"empty promo ",
|
|
14
|
+
/* @__PURE__ */ l("button", { onClick: r.close, children: "close" })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
C as AdvertisementUI
|
|
19
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { PromotionType as o, PromotionWallet as e, PromotionLogoMode as a, CtaIconMode as c } from "@streamlayer/sdk-web-types";
|
|
2
|
+
const d = {
|
|
3
|
+
type: o.INGAME_IAB21_LBAR,
|
|
4
|
+
enableWallet: e.DISABLED,
|
|
5
|
+
coupon: "",
|
|
6
|
+
logoMode: a.LEFT,
|
|
7
|
+
couponZip: "",
|
|
8
|
+
couponBarcodeUrl: "",
|
|
9
|
+
sponsor: {
|
|
10
|
+
logo: "https://static-next.streamlayer.io/a8b6c1738a31dd0076a01c8807253533/f1de6799-4502-4423-9cbe-4804cd0ba769/c911da1a-e4a1-4e9a-8eb2-d1a6aa17e05d.png",
|
|
11
|
+
name: "Coca Cola"
|
|
12
|
+
},
|
|
13
|
+
banner: {
|
|
14
|
+
imageUrl: "https://www.figma.com/file/8XscgUSGOMU6rCYDLBgrAc/image/58f7c29647f7ad5bd447f76534af79609bedc74f",
|
|
15
|
+
url: "google.com",
|
|
16
|
+
ctaButton: {
|
|
17
|
+
label: "Order",
|
|
18
|
+
color: "#1d7bff",
|
|
19
|
+
ctaIcon: "",
|
|
20
|
+
ctaIconMode: c.CTA_ICON_UNSET,
|
|
21
|
+
textColor: "#fff"
|
|
22
|
+
},
|
|
23
|
+
body: "Order pizza",
|
|
24
|
+
title: "Get free Cola"
|
|
25
|
+
},
|
|
26
|
+
additionalBanner: {
|
|
27
|
+
imageUrl: "https://static-next.streamlayer.io/a8b6c1738a31dd0076a01c8807253533/42b6d84a-3cca-4eed-98ed-195706b47882/fce903c3-9781-4613-ae1e-4cce7e8cde90.png",
|
|
28
|
+
url: "google.com"
|
|
29
|
+
}
|
|
30
|
+
}, r = {
|
|
31
|
+
type: o.INGAME_IAB21_LBAR,
|
|
32
|
+
enableWallet: e.DISABLED,
|
|
33
|
+
coupon: "",
|
|
34
|
+
logoMode: a.LEFT,
|
|
35
|
+
couponZip: "",
|
|
36
|
+
couponBarcodeUrl: "",
|
|
37
|
+
sponsor: {
|
|
38
|
+
logo: "https://static-next.streamlayer.io/a8b6c1738a31dd0076a01c8807253533/f1de6799-4502-4423-9cbe-4804cd0ba769/c911da1a-e4a1-4e9a-8eb2-d1a6aa17e05d.png",
|
|
39
|
+
name: "Lorem ipsum dolor sit 4434, co"
|
|
40
|
+
},
|
|
41
|
+
banner: {
|
|
42
|
+
imageUrl: "",
|
|
43
|
+
url: "",
|
|
44
|
+
video: {
|
|
45
|
+
id: "1",
|
|
46
|
+
thumbnailUrl: "https://www.figma.com/file/8XscgUSGOMU6rCYDLBgrAc/image/58f7c29647f7ad5bd447f76534af79609bedc74f",
|
|
47
|
+
url: "https://static-next.streamlayer.io/2e8700993dd42a9b3283ef7f1b4bddc0/aa7a51c8-b8fb-4e8c-97bd-eebf649fd04d/36163fdd-3d41-447c-a3b2-3faf35ae9235.mp4"
|
|
48
|
+
},
|
|
49
|
+
ctaButton: {
|
|
50
|
+
label: "Lorem ipsum dol",
|
|
51
|
+
color: "#1d7bff",
|
|
52
|
+
ctaIcon: "",
|
|
53
|
+
ctaIconMode: c.CTA_ICON_UNSET,
|
|
54
|
+
textColor: "#fff"
|
|
55
|
+
},
|
|
56
|
+
body: "Lorem ipsum dolor sit 4434, consectetur 1111192392 3333, sed do 4434343 342343 545454344 ut 234323 ",
|
|
57
|
+
title: "Lorem ipsum dolor sit 4434, co"
|
|
58
|
+
},
|
|
59
|
+
additionalBanner: {
|
|
60
|
+
imageUrl: "https://static-next.streamlayer.io/a8b6c1738a31dd0076a01c8807253533/42b6d84a-3cca-4eed-98ed-195706b47882/fce903c3-9781-4613-ae1e-4cce7e8cde90.png",
|
|
61
|
+
url: "google.com"
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
d as promotionMock,
|
|
66
|
+
r as promotionMockWithVideo
|
|
67
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { PromotionType as N, PromotionLogoMode as n } from "@streamlayer/sdk-web-types";
|
|
3
|
+
import { VideoPlayer as D } from "../../video-player/index.js";
|
|
4
|
+
import { PromoOverlay as F, Header as R, HeaderContent as _, SponsorLogo as S, SponsorName as U, SponsorText as j, ADLogo as m, SponsoredText as G, CloseIconWrap as H, CloseIcon as W, Media as w, Content as V, PromoImg as q, Text as z, Title as J, Description as K, ActionBtnWrap as Q, ActionButton as X } from "./styles.js";
|
|
5
|
+
const re = ({
|
|
6
|
+
promotion: e,
|
|
7
|
+
onClose: O,
|
|
8
|
+
inSidebar: k
|
|
9
|
+
}) => {
|
|
10
|
+
var a, s, c, d, t, g, h, i, b, u, y, x, f, p, A, C, E, T, B, L, M, v, I, P;
|
|
11
|
+
const o = e.type === N.INGAME_IAB11_LBAR || e.type === N.INGAME_IAB11;
|
|
12
|
+
return /* @__PURE__ */ l(F, { className: "PromoOverlay", style: { ...k ? {} : { backgroundColor: "#1E3344" } }, children: [
|
|
13
|
+
/* @__PURE__ */ l(R, { children: [
|
|
14
|
+
/* @__PURE__ */ l(_, { children: [
|
|
15
|
+
((a = e.sponsor) == null ? void 0 : a.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(S, { src: (s = e.sponsor) == null ? void 0 : s.logo, alt: "promo" }),
|
|
16
|
+
/* @__PURE__ */ l(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
style: {
|
|
20
|
+
paddingLeft: (c = e.sponsor) != null && c.logo && e.logoMode === n.LEFT ? "0px" : "8px"
|
|
21
|
+
},
|
|
22
|
+
children: [
|
|
23
|
+
((d = e.sponsor) == null ? void 0 : d.logo) && e.logoMode === n.LEFT && /* @__PURE__ */ r(U, { children: (t = e.sponsor) == null ? void 0 : t.name }),
|
|
24
|
+
/* @__PURE__ */ l(j, { children: [
|
|
25
|
+
/* @__PURE__ */ r(m, { children: "AD" }),
|
|
26
|
+
/* @__PURE__ */ r(G, { children: "SPONSORED" })
|
|
27
|
+
] })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ r(H, { onClick: O, children: /* @__PURE__ */ r(W, { name: "icon-cross" }) })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ l(w, { children: [
|
|
35
|
+
((g = e.sponsor) == null ? void 0 : g.logo) && e.logoMode === n.CENTER && /* @__PURE__ */ r(S, { src: (h = e.sponsor) == null ? void 0 : h.logo, alt: "promo" }),
|
|
36
|
+
/* @__PURE__ */ l(V, { children: [
|
|
37
|
+
(b = (i = e.banner) == null ? void 0 : i.video) != null && b.url ? /* @__PURE__ */ r(
|
|
38
|
+
D,
|
|
39
|
+
{
|
|
40
|
+
source: (y = (u = e.banner) == null ? void 0 : u.video) == null ? void 0 : y.url,
|
|
41
|
+
poster: (f = (x = e.banner) == null ? void 0 : x.video) == null ? void 0 : f.thumbnailUrl,
|
|
42
|
+
aspectRatio: o ? "1/1" : "16/9"
|
|
43
|
+
}
|
|
44
|
+
) : (p = e.banner) != null && p.imageUrl ? /* @__PURE__ */ r(
|
|
45
|
+
q,
|
|
46
|
+
{
|
|
47
|
+
style: o ? { width: "268px", height: "268px" } : {},
|
|
48
|
+
src: (A = e.banner) == null ? void 0 : A.imageUrl,
|
|
49
|
+
alt: "promo"
|
|
50
|
+
}
|
|
51
|
+
) : null,
|
|
52
|
+
!o && /* @__PURE__ */ l(z, { children: [
|
|
53
|
+
/* @__PURE__ */ r(J, { children: (C = e.banner) == null ? void 0 : C.title }),
|
|
54
|
+
/* @__PURE__ */ r(K, { children: (E = e.banner) == null ? void 0 : E.body })
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ r(Q, { children: /* @__PURE__ */ r(
|
|
58
|
+
X,
|
|
59
|
+
{
|
|
60
|
+
href: (T = e.banner) == null ? void 0 : T.url,
|
|
61
|
+
style: {
|
|
62
|
+
backgroundColor: ((L = (B = e.banner) == null ? void 0 : B.ctaButton) == null ? void 0 : L.color) || "#009dc4",
|
|
63
|
+
color: ((v = (M = e.banner) == null ? void 0 : M.ctaButton) == null ? void 0 : v.textColor) || "#fff"
|
|
64
|
+
},
|
|
65
|
+
target: "_blank",
|
|
66
|
+
children: (P = (I = e.banner) == null ? void 0 : I.ctaButton) == null ? void 0 : P.label
|
|
67
|
+
}
|
|
68
|
+
) })
|
|
69
|
+
] })
|
|
70
|
+
] });
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
re as Overlay
|
|
74
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const Header: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const HeaderContent: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const SponsorLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const SponsorName: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const PromoOverlay: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
6
|
+
export declare const Media: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
|
+
export declare const Text: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
|
+
export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
9
|
+
export declare const SponsorText: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
10
|
+
export declare const ADLogo: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
11
|
+
export declare const SponsoredText: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
12
|
+
export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
13
|
+
export declare const CloseIcon: any;
|
|
14
|
+
export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
15
|
+
export declare const ActionBtnWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
16
|
+
export declare const ActionButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLAnchorElement> & import('react').AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
|
|
17
|
+
export declare const PromoImg: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
18
|
+
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { styled as s } from "@linaria/react";
|
|
2
|
+
import { SvgIcon as o } from "../../icons/index.js";
|
|
3
|
+
const p = /* @__PURE__ */ s("div")({
|
|
4
|
+
name: "Header",
|
|
5
|
+
class: "hkzhq2w",
|
|
6
|
+
propsAsIs: !1
|
|
7
|
+
}), t = /* @__PURE__ */ s("div")({
|
|
8
|
+
name: "HeaderContent",
|
|
9
|
+
class: "hmgz5i",
|
|
10
|
+
propsAsIs: !1
|
|
11
|
+
}), c = /* @__PURE__ */ s("img")({
|
|
12
|
+
name: "SponsorLogo",
|
|
13
|
+
class: "syxi3jt",
|
|
14
|
+
propsAsIs: !1
|
|
15
|
+
}), r = /* @__PURE__ */ s("div")({
|
|
16
|
+
name: "SponsorName",
|
|
17
|
+
class: "s149e3gp",
|
|
18
|
+
propsAsIs: !1
|
|
19
|
+
}), l = /* @__PURE__ */ s("div")({
|
|
20
|
+
name: "PromoOverlay",
|
|
21
|
+
class: "p10toh7",
|
|
22
|
+
propsAsIs: !1
|
|
23
|
+
}), m = /* @__PURE__ */ s("div")({
|
|
24
|
+
name: "Media",
|
|
25
|
+
class: "m1jyea6t",
|
|
26
|
+
propsAsIs: !1
|
|
27
|
+
}), i = /* @__PURE__ */ s("div")({
|
|
28
|
+
name: "Text",
|
|
29
|
+
class: "tzpfa3h",
|
|
30
|
+
propsAsIs: !1
|
|
31
|
+
}), d = /* @__PURE__ */ s("div")({
|
|
32
|
+
name: "Description",
|
|
33
|
+
class: "d1crmu01",
|
|
34
|
+
propsAsIs: !1
|
|
35
|
+
}), I = /* @__PURE__ */ s("div")({
|
|
36
|
+
name: "SponsorText",
|
|
37
|
+
class: "s1l37r8s",
|
|
38
|
+
propsAsIs: !1
|
|
39
|
+
}), A = /* @__PURE__ */ s("div")({
|
|
40
|
+
name: "ADLogo",
|
|
41
|
+
class: "a1nmch9k",
|
|
42
|
+
propsAsIs: !1
|
|
43
|
+
}), f = /* @__PURE__ */ s("span")({
|
|
44
|
+
name: "SponsoredText",
|
|
45
|
+
class: "s1er0ljd",
|
|
46
|
+
propsAsIs: !1
|
|
47
|
+
}), v = /* @__PURE__ */ s("div")({
|
|
48
|
+
name: "CloseIconWrap",
|
|
49
|
+
class: "cydopmr",
|
|
50
|
+
propsAsIs: !1
|
|
51
|
+
}), e = () => o, x = /* @__PURE__ */ s(e())({
|
|
52
|
+
name: "CloseIcon",
|
|
53
|
+
class: "c1w6nt04",
|
|
54
|
+
propsAsIs: !0
|
|
55
|
+
}), g = /* @__PURE__ */ s("div")({
|
|
56
|
+
name: "Content",
|
|
57
|
+
class: "c1evcmtq",
|
|
58
|
+
propsAsIs: !1
|
|
59
|
+
}), S = /* @__PURE__ */ s("div")({
|
|
60
|
+
name: "ActionBtnWrap",
|
|
61
|
+
class: "awodx0x",
|
|
62
|
+
propsAsIs: !1
|
|
63
|
+
}), C = /* @__PURE__ */ s("a")({
|
|
64
|
+
name: "ActionButton",
|
|
65
|
+
class: "a1q3n6oi",
|
|
66
|
+
propsAsIs: !1
|
|
67
|
+
}), T = /* @__PURE__ */ s("img")({
|
|
68
|
+
name: "PromoImg",
|
|
69
|
+
class: "p8d4xfk",
|
|
70
|
+
propsAsIs: !1
|
|
71
|
+
}), h = /* @__PURE__ */ s("div")({
|
|
72
|
+
name: "Title",
|
|
73
|
+
class: "tt6oobh",
|
|
74
|
+
propsAsIs: !1
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
A as ADLogo,
|
|
78
|
+
S as ActionBtnWrap,
|
|
79
|
+
C as ActionButton,
|
|
80
|
+
x as CloseIcon,
|
|
81
|
+
v as CloseIconWrap,
|
|
82
|
+
g as Content,
|
|
83
|
+
d as Description,
|
|
84
|
+
p as Header,
|
|
85
|
+
t as HeaderContent,
|
|
86
|
+
m as Media,
|
|
87
|
+
T as PromoImg,
|
|
88
|
+
l as PromoOverlay,
|
|
89
|
+
c as SponsorLogo,
|
|
90
|
+
r as SponsorName,
|
|
91
|
+
I as SponsorText,
|
|
92
|
+
f as SponsoredText,
|
|
93
|
+
i as Text,
|
|
94
|
+
h as Title
|
|
95
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { styled as t } from "@linaria/react";
|
|
3
|
+
import { SlideIn as a } from "../../slide-in/index.js";
|
|
4
|
+
const d = /* @__PURE__ */ t("div")({
|
|
5
|
+
name: "SidebarContainer",
|
|
6
|
+
class: "s1abskp8",
|
|
7
|
+
propsAsIs: !1
|
|
8
|
+
}), b = ({
|
|
9
|
+
children: e,
|
|
10
|
+
direction: o,
|
|
11
|
+
style: s,
|
|
12
|
+
className: i,
|
|
13
|
+
hiding: n
|
|
14
|
+
}) => /* @__PURE__ */ r(a, {
|
|
15
|
+
direction: o,
|
|
16
|
+
style: s,
|
|
17
|
+
hiding: n,
|
|
18
|
+
className: i,
|
|
19
|
+
children: /* @__PURE__ */ r(d, {
|
|
20
|
+
children: e
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
b as Sidebar
|
|
25
|
+
};
|
package/lib/ui/button/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const ButtonLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
1
|
+
export declare const SButton: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const ButtonLabel: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const Title: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
1
|
+
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLButtonElement> & import('react').ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const QuestionTypeWrap: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
1
|
+
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const QuestionTypeWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
3
|
export declare const QuestionTypeIcon: any;
|
|
5
|
-
export declare const QuestionTypeTitle: import(
|
|
6
|
-
export declare const CloseIconWrap: import(
|
|
4
|
+
export declare const QuestionTypeTitle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLSpanElement> & import('react').HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const CloseIconWrap: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
6
|
export declare const CloseIcon: any;
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { styled as
|
|
3
|
-
import { SvgIcon as
|
|
4
|
-
const
|
|
2
|
+
import { styled as n } from "@linaria/react";
|
|
3
|
+
import { SvgIcon as e } from "../../../icons/index.js";
|
|
4
|
+
const s = /* @__PURE__ */ n("div")({
|
|
5
5
|
name: "SponsorLogoWrap",
|
|
6
6
|
class: "s8p5v5z",
|
|
7
7
|
propsAsIs: !1
|
|
8
|
-
}),
|
|
8
|
+
}), t = () => e, r = /* @__PURE__ */ n(t())({
|
|
9
9
|
name: "SponsorLogo",
|
|
10
10
|
class: "s755yti",
|
|
11
11
|
propsAsIs: !0
|
|
12
|
-
}),
|
|
13
|
-
|
|
12
|
+
}), i = ({
|
|
13
|
+
mastersApp: p
|
|
14
|
+
}) => p ? /* @__PURE__ */ o(s, {
|
|
15
|
+
children: /* @__PURE__ */ o(r, {
|
|
14
16
|
name: "mastersLogo"
|
|
15
17
|
})
|
|
18
|
+
}) : /* @__PURE__ */ o(s, {
|
|
19
|
+
children: /* @__PURE__ */ o(r, {
|
|
20
|
+
name: "streamLayerLogo"
|
|
21
|
+
})
|
|
16
22
|
});
|
|
17
23
|
export {
|
|
18
|
-
|
|
24
|
+
i as Sponsor
|
|
19
25
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const NextIcon: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
1
|
+
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const Graphic: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const InsightIconDefault: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const InsightIconCircle: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
6
|
+
export declare const InsightIconAbsolute: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
7
|
+
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
8
|
+
export declare const NextIcon: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLImageElement> & import('react').ImgHTMLAttributes<HTMLImageElement> & Record<never, unknown>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const ItemsContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
1
|
+
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const ItemsContainer: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import { useAnalyticsHandle as
|
|
3
|
-
import { InvitationFrom as
|
|
4
|
-
import { Container as s, FriendsIcon as
|
|
5
|
-
const
|
|
6
|
-
const [
|
|
1
|
+
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useAnalyticsHandle as a } from "../../../hooks/analytics.js";
|
|
3
|
+
import { InvitationFrom as m } from "@streamlayer/sdk-web-types";
|
|
4
|
+
import { Container as s, FriendsIcon as l, Content as d, Title as p, Description as f, ArrowInviteIcon as I } from "./styles.js";
|
|
5
|
+
const C = ({ title: o, description: t, onClick: r, className: e }) => {
|
|
6
|
+
const [c] = a({
|
|
7
7
|
type: "invitation",
|
|
8
8
|
action: "sent",
|
|
9
9
|
payload: {
|
|
10
|
-
from:
|
|
10
|
+
from: m.TITLE_CARD
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
return /* @__PURE__ */ i(s, { onClick: r
|
|
14
|
-
/* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ i(s, { onClick: c(r), className: e, children: [
|
|
14
|
+
/* @__PURE__ */ n(l, { name: "icon-friends" }),
|
|
15
15
|
/* @__PURE__ */ i(d, { children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ n(p, { children: o }),
|
|
17
|
+
/* @__PURE__ */ n(f, { children: t })
|
|
18
18
|
] }),
|
|
19
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ n(I, { name: "icon-copy" })
|
|
20
20
|
] });
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
C as InviteLink
|
|
24
24
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const Description: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
1
|
+
export declare const Container: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
2
|
+
export declare const FriendsIcon: any;
|
|
3
|
+
export declare const Content: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
+
export declare const Title: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
5
|
+
export declare const Description: import('@linaria/react').StyledComponent<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
7
6
|
export declare const ArrowInviteIcon: any;
|