@ludo.ninja/components 2.1.35 → 2.1.37

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.
@@ -1,9 +1 @@
1
- import { ReactNode } from "react";
2
- interface IImageInterceptor {
3
- src: string;
4
- title: string;
5
- fallbackSvg: ReactNode;
6
- }
7
- export declare const ImageInterceptor: ({ src, title, fallbackSvg, }: IImageInterceptor) => import("react/jsx-runtime").JSX.Element;
8
1
  export declare const SubscriberNotification: () => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -3,148 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SubscriberNotification = exports.ImageInterceptor = void 0;
6
+ exports.SubscriberNotification = void 0;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
- const client_1 = require("@apollo/client");
9
- const api_1 = require("@ludo.ninja/api");
10
8
  const store_1 = require("../../modules/user/store");
11
- const env_1 = require("../../store/env");
12
- const ui_1 = require("../../store/ui");
13
9
  const NoSSR_1 = __importDefault(require("../../components/base/NoSSR"));
14
- const ludoDomains_1 = require("@ludo.ninja/core/build/ludoDomains");
15
10
  const router_1 = require("next/router");
16
11
  const react_1 = require("react");
17
- const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
18
- const styled_components_1 = __importDefault(require("styled-components"));
19
- const OpportunitySvg_1 = require("@ludo.ninja/ui/build/modules/notifications/variants/OpportunitySvg");
20
- const InviteCodeSvg_1 = require("@ludo.ninja/ui/build/modules/notifications/variants/InviteCodeSvg");
21
- const XPIconSvg_1 = require("@ludo.ninja/ui/build/modules/notifications/variants/XPIconSvg");
22
- const noContent_1 = require("./noContent");
23
- const SImage = styled_components_1.default.div `
24
- position: relative;
25
- width: 62px;
26
- height: 62px;
27
- border-radius: 4px;
28
- overflow: hidden;
29
-
30
- img {
31
- border-radius: 4px;
32
- }
33
-
34
- & *:not(img) {
35
- position: absolute;
36
- top: 0;
37
- left: 0;
38
- z-index: 10;
39
- width: 100%;
40
- height: 100%;
41
- }
42
- `;
43
- const ImageInterceptor = ({ src, title, fallbackSvg, }) => {
44
- const [isLoading, setIsLoading] = (0, react_1.useState)(true);
45
- const [isError, setIsError] = (0, react_1.useState)(false);
46
- return ((0, jsx_runtime_1.jsxs)(SImage, { children: [isError && fallbackSvg, !isError && (0, jsx_runtime_1.jsx)("img", { width: "62", height: "62", src: src, alt: title, onLoad: () => {
47
- setIsLoading(false);
48
- }, onError: () => {
49
- setIsError(true);
50
- setIsLoading(false);
51
- } }), isLoading && ((0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { className: "skeleton", width: 62, height: 62, borderRadius: 4 }))] }));
52
- };
53
- exports.ImageInterceptor = ImageInterceptor;
54
- const ImageNotification = ({ src, title, fallbackSvg, }) => {
55
- if (!src) {
56
- return fallbackSvg;
57
- }
58
- return (0, jsx_runtime_1.jsx)(exports.ImageInterceptor, { fallbackSvg: fallbackSvg, title: title, src: src });
59
- };
60
- const Subscription = () => {
61
- const { authToken } = api_1.authCookies.getCookies();
62
- const addNotification = (0, ui_1.useUiStore)((state) => state.addNotification);
63
- const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)(state => state.NEXT_PUBLIC_ENV_VALUE);
64
- const router = (0, router_1.useRouter)();
65
- const { user, } = (0, store_1.useUserStore)((state) => ({
66
- user: state.user,
67
- }));
68
- const userId = user?.userId || "";
69
- const [readNotification] = api_1.notificationsSchema.useReadNotificationMutation({
70
- context: {
71
- uri: api_1.hosts.notificationsHost,
72
- },
73
- });
74
- (0, client_1.useSubscription)(api_1.notificationsSchema.OnNotificationDocument, {
75
- variables: { authToken, notificationTypes: [api_1.notificationsSchema.INotificationType.Push] },
76
- onData: (options) => {
77
- const notification = options.data.data?.onNotification;
78
- // console.log("notification", notification);
79
- if (notification) {
80
- switch (notification.eventType) {
81
- case api_1.notificationsSchema.IEventType.CommonOpportunity:
82
- case api_1.notificationsSchema.IEventType.UserOpportunity:
83
- addNotification({
84
- icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "Opportunity updated", fallbackSvg: (0, jsx_runtime_1.jsx)(OpportunitySvg_1.OpportunitySvg, {}) }),
85
- title: notification.name || "Opportunity updated",
86
- description: notification.description || "",
87
- onClick: () => {
88
- if (notification.link) {
89
- window.open(notification.link, "_blank");
90
- }
91
- },
92
- });
93
- break;
94
- case api_1.notificationsSchema.IEventType.UserInvitee:
95
- addNotification({
96
- icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "Invite code used", fallbackSvg: (0, jsx_runtime_1.jsx)(InviteCodeSvg_1.InviteCodeSvg, {}) }),
97
- title: notification.name || "Invite code used",
98
- description: notification.description || "",
99
- onClick: () => {
100
- const domain = ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"];
101
- if (domain === window.origin) {
102
- router.push(`/invite-codes`);
103
- }
104
- else {
105
- window.open(`${domain}/invite-codes`, "_self");
106
- }
107
- },
108
- });
109
- break;
110
- case api_1.notificationsSchema.IEventType.UserXpIncrement:
111
- case api_1.notificationsSchema.IEventType.UserXps:
112
- addNotification({
113
- icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "XP updated", fallbackSvg: (0, jsx_runtime_1.jsx)(XPIconSvg_1.XpIconSvg, {}) }),
114
- title: notification.name || "XP updated",
115
- description: notification.description || "",
116
- onClick: () => {
117
- const domain = ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"];
118
- if (domain === window.origin) {
119
- router.push(`/rewards/${userId}`);
120
- }
121
- else {
122
- window.open(`${domain}/rewards/${userId}`, "_self");
123
- }
124
- },
125
- });
126
- break;
127
- default:
128
- addNotification({
129
- icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "Ludo updated", fallbackSvg: (0, jsx_runtime_1.jsx)(noContent_1.NoContentSvg, {}) }),
130
- title: notification.name || "",
131
- description: notification.description || "",
132
- onClick: () => {
133
- if (notification.link) {
134
- window.open(notification.link, "_blank");
135
- }
136
- },
137
- });
138
- }
139
- readNotification({ variables: { notificationId: notification.notificationId } });
140
- }
141
- },
142
- });
143
- return null;
144
- };
12
+ const SubscriptionNotificationSPA_1 = require("./SubscriptionNotificationSPA");
145
13
  const SubscriberNotification = () => {
146
14
  const isSignedIn = (0, store_1.useUserStore)((state) => state.isSignedIn);
147
15
  const key = isSignedIn ? "all includes" : "only common";
16
+ const router = (0, router_1.useRouter)();
148
17
  const [isWindowVisible, setIsWindowVisible] = (0, react_1.useState)(true);
149
18
  (0, react_1.useEffect)(() => {
150
19
  const changeVisibility = () => {
@@ -155,6 +24,6 @@ const SubscriberNotification = () => {
155
24
  document.removeEventListener("visibilitychange", changeVisibility);
156
25
  };
157
26
  }, []);
158
- return ((0, jsx_runtime_1.jsx)(NoSSR_1.default, { children: isWindowVisible && (0, jsx_runtime_1.jsx)(Subscription, {}, key) }));
27
+ return ((0, jsx_runtime_1.jsx)(NoSSR_1.default, { children: isWindowVisible && (0, jsx_runtime_1.jsx)(SubscriptionNotificationSPA_1.Subscription, { routerPush: router.push }, key) }));
159
28
  };
160
29
  exports.SubscriberNotification = SubscriberNotification;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from "react";
2
+ interface IImageInterceptor {
3
+ src: string;
4
+ title: string;
5
+ fallbackSvg: ReactNode;
6
+ }
7
+ export declare const ImageInterceptor: ({ src, title, fallbackSvg, }: IImageInterceptor) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Subscription: ({ routerPush }: {
9
+ routerPush?: (a: string) => void;
10
+ }) => null;
11
+ export {};
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Subscription = exports.ImageInterceptor = void 0;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const react_1 = require("react");
9
+ const react_loading_skeleton_1 = __importDefault(require("react-loading-skeleton"));
10
+ const styled_components_1 = __importDefault(require("styled-components"));
11
+ const api_1 = require("@ludo.ninja/api");
12
+ const ui_1 = require("../../store/ui");
13
+ const env_1 = require("../../store/env");
14
+ const store_1 = require("../../modules/user/store");
15
+ const client_1 = require("@apollo/client");
16
+ const OpportunitySvg_1 = require("@ludo.ninja/ui/build/modules/notifications/variants/OpportunitySvg");
17
+ const InviteCodeSvg_1 = require("@ludo.ninja/ui/build/modules/notifications/variants/InviteCodeSvg");
18
+ const XPIconSvg_1 = require("@ludo.ninja/ui/build/modules/notifications/variants/XPIconSvg");
19
+ const noContent_1 = require("./noContent");
20
+ const ludoDomains_1 = require("@ludo.ninja/core/build/ludoDomains");
21
+ const SImage = styled_components_1.default.div `
22
+ position: relative;
23
+ width: 62px;
24
+ height: 62px;
25
+ border-radius: 4px;
26
+ overflow: hidden;
27
+
28
+ img {
29
+ border-radius: 4px;
30
+ }
31
+
32
+ & *:not(img) {
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ z-index: 10;
37
+ width: 100%;
38
+ height: 100%;
39
+ }
40
+ `;
41
+ const ImageInterceptor = ({ src, title, fallbackSvg, }) => {
42
+ const [isLoading, setIsLoading] = (0, react_1.useState)(true);
43
+ const [isError, setIsError] = (0, react_1.useState)(false);
44
+ return ((0, jsx_runtime_1.jsxs)(SImage, { children: [isError && fallbackSvg, !isError && (0, jsx_runtime_1.jsx)("img", { width: "62", height: "62", src: src, alt: title, onLoad: () => {
45
+ setIsLoading(false);
46
+ }, onError: () => {
47
+ setIsError(true);
48
+ setIsLoading(false);
49
+ } }), isLoading && ((0, jsx_runtime_1.jsx)(react_loading_skeleton_1.default, { className: "skeleton", width: 62, height: 62, borderRadius: 4 }))] }));
50
+ };
51
+ exports.ImageInterceptor = ImageInterceptor;
52
+ const ImageNotification = ({ src, title, fallbackSvg, }) => {
53
+ if (!src) {
54
+ return fallbackSvg;
55
+ }
56
+ return (0, jsx_runtime_1.jsx)(exports.ImageInterceptor, { fallbackSvg: fallbackSvg, title: title, src: src });
57
+ };
58
+ const Subscription = ({ routerPush }) => {
59
+ const { authToken } = api_1.authCookies.getCookies();
60
+ const addNotification = (0, ui_1.useUiStore)((state) => state.addNotification);
61
+ const NEXT_PUBLIC_ENV_VALUE = (0, env_1.useEnvStore)(state => state.NEXT_PUBLIC_ENV_VALUE);
62
+ const { user, } = (0, store_1.useUserStore)((state) => ({
63
+ user: state.user,
64
+ }));
65
+ const userId = user?.userId || "";
66
+ const [readNotification] = api_1.notificationsSchema.useReadNotificationMutation({
67
+ context: {
68
+ uri: api_1.hosts.notificationsHost,
69
+ },
70
+ });
71
+ (0, client_1.useSubscription)(api_1.notificationsSchema.OnNotificationDocument, {
72
+ variables: { authToken, notificationTypes: [api_1.notificationsSchema.INotificationType.Push] },
73
+ onData: (options) => {
74
+ const notification = options.data.data?.onNotification;
75
+ // console.log("notification", notification);
76
+ if (notification) {
77
+ switch (notification.eventType) {
78
+ case api_1.notificationsSchema.IEventType.CommonOpportunity:
79
+ case api_1.notificationsSchema.IEventType.UserOpportunity:
80
+ addNotification({
81
+ icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "Opportunity updated", fallbackSvg: (0, jsx_runtime_1.jsx)(OpportunitySvg_1.OpportunitySvg, {}) }),
82
+ title: notification.name || "Opportunity updated",
83
+ description: notification.description || "",
84
+ onClick: () => {
85
+ if (notification.link) {
86
+ window.open(notification.link, "_blank");
87
+ }
88
+ },
89
+ });
90
+ break;
91
+ case api_1.notificationsSchema.IEventType.UserInvitee:
92
+ addNotification({
93
+ icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "Invite code used", fallbackSvg: (0, jsx_runtime_1.jsx)(InviteCodeSvg_1.InviteCodeSvg, {}) }),
94
+ title: notification.name || "Invite code used",
95
+ description: notification.description || "",
96
+ onClick: () => {
97
+ const domain = ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"];
98
+ if (domain === window.origin) {
99
+ routerPush?.(`/invite-codes`);
100
+ }
101
+ else {
102
+ window.open(`${domain}/invite-codes`, "_self");
103
+ }
104
+ },
105
+ });
106
+ break;
107
+ case api_1.notificationsSchema.IEventType.UserXpIncrement:
108
+ case api_1.notificationsSchema.IEventType.UserXps:
109
+ addNotification({
110
+ icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "XP updated", fallbackSvg: (0, jsx_runtime_1.jsx)(XPIconSvg_1.XpIconSvg, {}) }),
111
+ title: notification.name || "XP updated",
112
+ description: notification.description || "",
113
+ onClick: () => {
114
+ const domain = ludoDomains_1.ludoDomains[NEXT_PUBLIC_ENV_VALUE]["app"];
115
+ if (domain === window.origin) {
116
+ routerPush?.(`/rewards/${userId}`);
117
+ }
118
+ else {
119
+ window.open(`${domain}/rewards/${userId}`, "_self");
120
+ }
121
+ },
122
+ });
123
+ break;
124
+ default:
125
+ addNotification({
126
+ icon: (0, jsx_runtime_1.jsx)(ImageNotification, { src: notification.media || "", title: notification.name || "Ludo updated", fallbackSvg: (0, jsx_runtime_1.jsx)(noContent_1.NoContentSvg, {}) }),
127
+ title: notification.name || "",
128
+ description: notification.description || "",
129
+ onClick: () => {
130
+ if (notification.link) {
131
+ window.open(notification.link, "_blank");
132
+ }
133
+ },
134
+ });
135
+ }
136
+ readNotification({ variables: { notificationId: notification.notificationId } });
137
+ }
138
+ },
139
+ });
140
+ return null;
141
+ };
142
+ exports.Subscription = Subscription;
@@ -66,11 +66,11 @@ export interface PlayerStateTypes {
66
66
  error: boolean;
67
67
  isFullscreenMode: boolean;
68
68
  }
69
- export declare const ReactPlayerWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
69
+ export declare const ReactPlayerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
70
70
  poster: string | null | undefined;
71
71
  playerType: string;
72
72
  isFullscreenMode: boolean;
73
- }, never>;
73
+ }>> & string;
74
74
  export declare class AudioVideoPlayer extends Component<ReactPlayerProps, PlayerStateTypes> {
75
75
  private player;
76
76
  constructor(props: ReactPlayerProps);
@@ -9,4 +9,4 @@ export declare const getFontsLayout: ({ poppinsFont, dmsansFont }: {
9
9
  children: ReactNode;
10
10
  }) => import("react/jsx-runtime").JSX.Element;
11
11
  };
12
- export declare const GlobalFontsFallback: import("styled-components").FlattenSimpleInterpolation;
12
+ export declare const GlobalFontsFallback: import("styled-components").RuleSet<object>;
@@ -1,30 +1,17 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.AppLayout = void 0;
7
4
  const jsx_runtime_1 = require("react/jsx-runtime");
8
5
  const styled_components_1 = require("styled-components");
9
- const browser_1 = __importDefault(require("@marker.io/browser"));
10
- const utils_1 = require("@ludo.ninja/utils");
11
- const react_1 = require("react");
12
6
  const ui_1 = require("../store/ui");
13
7
  const client_1 = require("@apollo/client");
14
8
  const apollo_1 = require("../hooks/apollo");
15
9
  const GlobalLayout_1 = require("./GlobalLayout");
16
10
  const store_1 = require("../modules/user/store");
17
11
  const index_1 = require("../store/index");
18
- const env_1 = require("../store/env");
19
12
  const AppLayout = ({ children, pageProps }) => {
20
13
  const apolloClient = (0, apollo_1.useApollo)(pageProps);
21
14
  const theme = (0, ui_1.useUiStore)((state) => state.theme);
22
- const NODE_ENV = (0, env_1.useEnvStore)(state => state.NODE_ENV);
23
- (0, react_1.useEffect)(() => {
24
- if (!utils_1.isServer && NODE_ENV === "production") {
25
- browser_1.default.loadWidget({ project: "65f2e310e9298c9dca4d4ca9" });
26
- }
27
- }, []);
28
15
  return ((0, jsx_runtime_1.jsx)(index_1.SSRProvider, { initialState: {
29
16
  isMobile: pageProps.isMobile,
30
17
  }, children: (0, jsx_runtime_1.jsx)(client_1.ApolloProvider, { client: apolloClient, children: (0, jsx_runtime_1.jsx)(styled_components_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(store_1.UserProvider, { initialState: {
@@ -1,2 +1,2 @@
1
- export declare const StyledMain: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
2
- export declare const StyledMainForms: import("styled-components").StyledComponent<"main", import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const StyledMain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
2
+ export declare const StyledMainForms: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
@@ -1 +1 @@
1
- export declare const STopSections: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ export declare const STopSections: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,2 +1,2 @@
1
- export declare const rotateReverse: import("styled-components").Keyframes;
2
- export declare const rotate: import("styled-components").Keyframes;
1
+ export declare const rotateReverse: import("styled-components/dist/models/Keyframes").default;
2
+ export declare const rotate: import("styled-components/dist/models/Keyframes").default;
@@ -1,2 +1,2 @@
1
- declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
1
+ declare const GlobalStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
2
2
  export default GlobalStyle;
@@ -1,2 +1,2 @@
1
- declare const BoxShadow: () => import("styled-components").FlattenSimpleInterpolation;
1
+ declare const BoxShadow: () => import("styled-components").RuleSet<object>;
2
2
  export default BoxShadow;
@@ -1,2 +1,2 @@
1
- declare const BoxTransform: () => import("styled-components").FlattenSimpleInterpolation;
1
+ declare const BoxTransform: () => import("styled-components").RuleSet<object>;
2
2
  export default BoxTransform;
@@ -1,4 +1,5 @@
1
- export declare const StyledCardShowMore: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ import React from 'react';
2
+ export declare const StyledCardShowMore: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
3
  declare const CardShowMore: ({ itemId, href }: {
3
4
  itemId: string;
4
5
  href: string;
@@ -1,2 +1,2 @@
1
- declare const StyledContentCard: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ declare const StyledContentCard: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export default StyledContentCard;
@@ -1,2 +1,2 @@
1
- declare const StyledCardHead: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ declare const StyledCardHead: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export default StyledCardHead;
@@ -1,4 +1,4 @@
1
- declare const StyledHeadIcons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
1
+ declare const StyledHeadIcons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
2
  isMobile: boolean;
3
- }, never>;
3
+ }>> & string;
4
4
  export default StyledHeadIcons;
@@ -1,4 +1,4 @@
1
- declare const StyledImg: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
1
+ declare const StyledImg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
2
2
  isLoading: boolean;
3
- }, never>;
3
+ }>> & string;
4
4
  export default StyledImg;
@@ -1,4 +1,4 @@
1
- declare const StyledLikes: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
1
+ declare const StyledLikes: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
2
  isLiked: boolean;
3
- }, never>;
3
+ }>> & string;
4
4
  export default StyledLikes;
@@ -1,2 +1,2 @@
1
- declare const StyledMultiHead: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ declare const StyledMultiHead: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export default StyledMultiHead;
@@ -1,2 +1,2 @@
1
- declare const StyledVideo: import("styled-components").StyledComponent<"video", import("styled-components").DefaultTheme, {}, never>;
1
+ declare const StyledVideo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, never>> & string;
2
2
  export default StyledVideo;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { UseFormRegisterReturn } from 'react-hook-form';
3
3
  import { inputType } from './type';
4
- export declare const StyledInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
4
+ export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
5
5
  status: boolean;
6
- }, never>;
6
+ }>> & string;
7
7
  interface Props {
8
8
  data: inputType;
9
9
  register: UseFormRegisterReturn;
@@ -1,3 +1,4 @@
1
- export declare const StyledModalSidebar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
1
+ import React from 'react';
2
+ export declare const StyledModalSidebar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
3
  declare const ModalSidebar: () => import("react/jsx-runtime").JSX.Element | null;
3
4
  export default ModalSidebar;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TabsNavType } from '../TabsNav/type';
3
- export declare const StyledTabsNavLink: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ export declare const StyledTabsNavLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
4
  isActive: boolean;
5
- }, never>;
5
+ }>> & string;
6
6
  interface Props {
7
7
  tabNavLink: TabsNavType;
8
8
  activeNavLink: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TActiveTab, TabsNavType } from './type';
3
- export declare const StyledTabsNav: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const StyledTabsNav: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
4
  interface Props {
5
5
  tabsData: TabsNavType[];
6
6
  activeTab: TActiveTab;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.1.35",
3
+ "version": "2.1.37",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",