oraculo-ui 0.1.33 → 0.1.36
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/atoms/OraculoButton/OraculoButton.d.ts +20 -0
- package/dist/atoms/OraculoCarouselDots/OraculoCarouselDots.d.ts +9 -0
- package/dist/atoms/OraculoEvent/OraculoEventDate.d.ts +6 -0
- package/dist/atoms/OraculoEvent/OraculoEventHeader.d.ts +8 -0
- package/dist/atoms/OraculoEvent/OraculoEventLabel.d.ts +6 -0
- package/dist/atoms/OraculoEvent/OraculoEventLeague.d.ts +6 -0
- package/dist/atoms/OraculoEvent/OraculoEventScore.d.ts +7 -0
- package/dist/atoms/OraculoEvent/OraculoEventStatus.d.ts +6 -0
- package/dist/atoms/OraculoEvent/OraculoEventStatusBadge.d.ts +10 -0
- package/dist/atoms/OraculoEvent/OraculoEventTeamInfo.d.ts +7 -0
- package/dist/atoms/OraculoEvent/OraculoEventTitle.d.ts +7 -0
- package/dist/atoms/OraculoGridGroup/OraculoGridGroup.d.ts +14 -0
- package/dist/atoms/OraculoLogo/OraculoLogoMediosPago.d.ts +6 -0
- package/dist/atoms/OraculoSectionTitle/OraculoSectionTitle.d.ts +8 -0
- package/dist/index.cjs.js +37 -189
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +58 -0
- package/dist/index.es.js +4216 -10666
- package/dist/index.es.js.map +1 -1
- package/dist/interfaces/oraculo/InterfaceBanner.d.ts +15 -0
- package/dist/interfaces/oraculo/InterfaceBonos.d.ts +13 -0
- package/dist/interfaces/oraculo/InterfaceCasino.d.ts +10 -0
- package/dist/interfaces/oraculo/InterfaceCasinoEnVivo.d.ts +11 -0
- package/dist/interfaces/oraculo/InterfaceClubOlimpo.d.ts +11 -0
- package/dist/interfaces/oraculo/InterfaceDestacados.d.ts +19 -0
- package/dist/interfaces/oraculo/InterfaceGameItem.d.ts +17 -0
- package/dist/interfaces/oraculo/InterfaceKambi.d.ts +114 -0
- package/dist/interfaces/oraculo/InterfaceTopJuegos.d.ts +7 -0
- package/dist/interfaces/oraculo/InterfaceVirtuales.d.ts +10 -0
- package/dist/molecules/OraculoCarousel/OraculoCarousel.d.ts +42 -0
- package/dist/molecules/OraculoClubOlimpoVisual/OraculoClubOlimpoVisual.d.ts +12 -0
- package/dist/molecules/OraculoEventCard/OraculoEventCombinadasCard.d.ts +3 -0
- package/dist/molecules/OraculoEventCard/OraculoEventEnVivoCard.d.ts +3 -0
- package/dist/molecules/OraculoEventCard/OraculoEventSemanaCard.d.ts +3 -0
- package/dist/molecules/OraculoGameCard/OraculoGameCard.d.ts +9 -0
- package/dist/molecules/OraculoGameRankCard/OraculoGameRankCard.d.ts +19 -0
- package/dist/molecules/OraculoGameSlide/OraculoGameSlide.d.ts +12 -0
- package/dist/molecules/OraculoLiveCasinoCard/OraculoLiveCasinoCard.d.ts +10 -0
- package/dist/molecules/OraculoWelcomeBanner/OraculoWelcomeBanner.d.ts +15 -0
- package/dist/organisms/OraculoSeccionBanners/OraculoSeccionBanners.d.ts +3 -0
- package/dist/organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.d.ts +4 -0
- package/dist/organisms/OraculoSeccionCasino/OraculoSeccionCasino.d.ts +4 -0
- package/dist/organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.d.ts +4 -0
- package/dist/organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.d.ts +15 -0
- package/dist/organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.d.ts +3 -0
- package/dist/organisms/OraculoSeccionEventoCombinadas/OraculoSeccionEventoCombinadas.d.ts +2 -0
- package/dist/organisms/OraculoSeccionEventoEnVivo/OraculoSeccionEventoEnVivo.d.ts +2 -0
- package/dist/organisms/OraculoSeccionEventoSemana/OraculoSeccionEventoSemana.d.ts +2 -0
- package/dist/organisms/OraculoSeccionMediosPago/OraculoSeccionMediosPago.d.ts +11 -0
- package/dist/organisms/OraculoSeccionTopJuegos/OraculoSeccionTopJuegos.d.ts +3 -0
- package/dist/organisms/OraculoSeccionVirtuales/OraculoSeccionVirtuales.d.ts +4 -0
- package/dist/templates/OraculoPageLanding.d.ts +23 -0
- package/dist/templates/OraculoPageLandingPreview.d.ts +43 -0
- package/package.json +7 -11
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface OraculoBannerItem {
|
|
2
|
+
id: number | string;
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
onclick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface OraculoBannerBackgrounds {
|
|
8
|
+
desktopSrc: string;
|
|
9
|
+
mobileSrc: string;
|
|
10
|
+
fallbackSrc: string;
|
|
11
|
+
}
|
|
12
|
+
export interface OraculoSeccionBannersProps {
|
|
13
|
+
backgrounds: OraculoBannerBackgrounds[];
|
|
14
|
+
items: OraculoBannerItem[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface OraculoBonosItem {
|
|
2
|
+
title?: string;
|
|
3
|
+
amount?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
buttonText?: string;
|
|
6
|
+
onButtonClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface OraculoSeccionBonoProps {
|
|
9
|
+
headline?: string;
|
|
10
|
+
headline2?: string;
|
|
11
|
+
items: OraculoBonosItem[];
|
|
12
|
+
backgroundImageUrl?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OraculoGameItem } from './InterfaceGameItem';
|
|
2
|
+
export interface OraculoSeccionCasinoProps {
|
|
3
|
+
items: OraculoGameItem[];
|
|
4
|
+
title?: string;
|
|
5
|
+
iconUrl?: string;
|
|
6
|
+
onItemClick?: (game: OraculoGameItem) => void;
|
|
7
|
+
onViewMore?: () => void;
|
|
8
|
+
mosaicFirst?: boolean;
|
|
9
|
+
gridSize?: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OraculoGameItem } from './InterfaceGameItem';
|
|
2
|
+
export interface OraculoSeccionCasinoEnVivoProps {
|
|
3
|
+
items: OraculoGameItem[];
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
backgroundMobileUrl?: string;
|
|
7
|
+
backgroundDesktopUrl?: string;
|
|
8
|
+
onCardClick?: (juego: OraculoGameItem, index: number) => void;
|
|
9
|
+
onViewMore?: () => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface OraculoSeccionDestacadosItem {
|
|
2
|
+
body: string;
|
|
3
|
+
image: string;
|
|
4
|
+
title: string;
|
|
5
|
+
summary_body: string;
|
|
6
|
+
summary_title: string;
|
|
7
|
+
groups_forbidden: number[];
|
|
8
|
+
groups_allowed: number[];
|
|
9
|
+
promotion: string;
|
|
10
|
+
tags: string;
|
|
11
|
+
summary_image?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface OraculoSeccionDestacadosProps {
|
|
14
|
+
items: OraculoSeccionDestacadosItem[];
|
|
15
|
+
title?: string;
|
|
16
|
+
iconUrl?: string;
|
|
17
|
+
onViewMore?: () => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface OraculoGameItem {
|
|
2
|
+
orden?: number;
|
|
3
|
+
logo?: string;
|
|
4
|
+
machine?: number | string;
|
|
5
|
+
name?: string;
|
|
6
|
+
web_name?: string;
|
|
7
|
+
provider?: string;
|
|
8
|
+
sub_provider?: string;
|
|
9
|
+
external_id?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
tags?: string;
|
|
12
|
+
lobby_tag?: string | null;
|
|
13
|
+
background?: string;
|
|
14
|
+
rtp?: number | null;
|
|
15
|
+
demo_allowed?: boolean;
|
|
16
|
+
gaming_session_required?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export interface EventPath {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
englishName: string;
|
|
5
|
+
termKey: string;
|
|
6
|
+
}
|
|
7
|
+
export interface EventBase {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
nameDelimiter: string;
|
|
11
|
+
englishName: string;
|
|
12
|
+
homeName: string;
|
|
13
|
+
awayName: string;
|
|
14
|
+
start: string;
|
|
15
|
+
group: string;
|
|
16
|
+
groupId: number;
|
|
17
|
+
path: EventPath[];
|
|
18
|
+
nonLiveBoCount?: number;
|
|
19
|
+
liveBoCount?: number;
|
|
20
|
+
sport: string;
|
|
21
|
+
tags: string[];
|
|
22
|
+
state: string;
|
|
23
|
+
groupSortOrder?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface Outcome {
|
|
26
|
+
id: number;
|
|
27
|
+
label: string;
|
|
28
|
+
englishLabel: string;
|
|
29
|
+
odds: number;
|
|
30
|
+
participant?: string;
|
|
31
|
+
type: string;
|
|
32
|
+
betOfferId: number;
|
|
33
|
+
changedDate: string;
|
|
34
|
+
participantId?: number;
|
|
35
|
+
oddsFractional: string;
|
|
36
|
+
oddsAmerican: string;
|
|
37
|
+
status: string;
|
|
38
|
+
cashOutStatus: string;
|
|
39
|
+
line?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface Criterion {
|
|
42
|
+
id: number;
|
|
43
|
+
label: string;
|
|
44
|
+
englishLabel: string;
|
|
45
|
+
order: any[];
|
|
46
|
+
occurrenceType?: string;
|
|
47
|
+
lifetime?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface BetOfferType {
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
englishName: string;
|
|
53
|
+
}
|
|
54
|
+
export interface BetOffer {
|
|
55
|
+
id: number;
|
|
56
|
+
closed?: string;
|
|
57
|
+
criterion: Criterion;
|
|
58
|
+
betOfferType: BetOfferType;
|
|
59
|
+
eventId: number;
|
|
60
|
+
outcomes: Outcome[];
|
|
61
|
+
tags: string[];
|
|
62
|
+
cashOutStatus: string;
|
|
63
|
+
}
|
|
64
|
+
export interface MatchClock {
|
|
65
|
+
minute: string;
|
|
66
|
+
second: number;
|
|
67
|
+
running: boolean;
|
|
68
|
+
version: number;
|
|
69
|
+
}
|
|
70
|
+
export interface LiveScore {
|
|
71
|
+
home: string;
|
|
72
|
+
away: string;
|
|
73
|
+
who: string;
|
|
74
|
+
version: number;
|
|
75
|
+
}
|
|
76
|
+
export interface LiveStatisticsSetData {
|
|
77
|
+
home: number[];
|
|
78
|
+
away: number[];
|
|
79
|
+
homeServe: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface LiveStatistics {
|
|
82
|
+
sets: LiveStatisticsSetData;
|
|
83
|
+
}
|
|
84
|
+
export interface LiveData {
|
|
85
|
+
eventId: number;
|
|
86
|
+
matchClock: MatchClock;
|
|
87
|
+
score: LiveScore;
|
|
88
|
+
statistics?: LiveStatistics;
|
|
89
|
+
liveStatistics: any[];
|
|
90
|
+
}
|
|
91
|
+
export interface LiveEvent {
|
|
92
|
+
event: EventBase;
|
|
93
|
+
liveData: LiveData;
|
|
94
|
+
betOffers: BetOffer;
|
|
95
|
+
}
|
|
96
|
+
export interface CombinadoEventProps {
|
|
97
|
+
event: EventBase & {
|
|
98
|
+
outcomes?: Outcome[];
|
|
99
|
+
betOffers?: BetOffer[];
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface EnVivoEventProps {
|
|
103
|
+
event: EventBase;
|
|
104
|
+
liveData: LiveData | null;
|
|
105
|
+
betOffers?: BetOffer[];
|
|
106
|
+
fondo?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface SemanaEventProps {
|
|
109
|
+
event: EventBase & {
|
|
110
|
+
outcome?: {
|
|
111
|
+
outcomes?: Pick<Outcome, "id" | "label" | "odds">[];
|
|
112
|
+
}[];
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OraculoGameItem } from './InterfaceGameItem';
|
|
2
|
+
export interface OraculoSeccionVirtualesProps {
|
|
3
|
+
items: OraculoGameItem[];
|
|
4
|
+
title?: string;
|
|
5
|
+
iconUrl?: string;
|
|
6
|
+
onItemClick?: (game: OraculoGameItem) => void;
|
|
7
|
+
onViewMore?: () => void;
|
|
8
|
+
mosaicFirst?: boolean;
|
|
9
|
+
gridSize?: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
export interface OraculoCarouselOptions {
|
|
3
|
+
type?: string;
|
|
4
|
+
perPage?: number;
|
|
5
|
+
gap?: string;
|
|
6
|
+
pagination?: boolean;
|
|
7
|
+
arrows?: boolean;
|
|
8
|
+
drag?: boolean;
|
|
9
|
+
focus?: string | "center";
|
|
10
|
+
autoWidth?: boolean;
|
|
11
|
+
trimSpace?: boolean;
|
|
12
|
+
rewind?: boolean;
|
|
13
|
+
padding?: {
|
|
14
|
+
left?: string;
|
|
15
|
+
right?: string;
|
|
16
|
+
};
|
|
17
|
+
breakpoints?: Record<string | number, OraculoCarouselOptions>;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export interface OraculoCarouselRef {
|
|
21
|
+
next: () => void;
|
|
22
|
+
prev: () => void;
|
|
23
|
+
go: (index: number | string) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface OraculoCarouselProps<T = any> {
|
|
26
|
+
items: T[];
|
|
27
|
+
renderItem: (item: T, index: number) => ReactNode;
|
|
28
|
+
perPage?: number;
|
|
29
|
+
gap?: string;
|
|
30
|
+
breakpoints?: Record<string | number, OraculoCarouselOptions>;
|
|
31
|
+
options?: OraculoCarouselOptions;
|
|
32
|
+
className?: string;
|
|
33
|
+
useIndexAsKey?: boolean;
|
|
34
|
+
onMove?: (info: {
|
|
35
|
+
index: number;
|
|
36
|
+
isStart: boolean;
|
|
37
|
+
isEnd: boolean;
|
|
38
|
+
total: number;
|
|
39
|
+
}) => void;
|
|
40
|
+
}
|
|
41
|
+
declare const OraculoCarousel: React.ForwardRefExoticComponent<OraculoCarouselProps<any> & React.RefAttributes<OraculoCarouselRef>>;
|
|
42
|
+
export default OraculoCarousel;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoClubOlimpoVisualProps {
|
|
3
|
+
text: string;
|
|
4
|
+
buttonLabel?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
imgAlt?: string;
|
|
7
|
+
imgSrcMobile: string;
|
|
8
|
+
imgSrcDesktopBg?: string;
|
|
9
|
+
imgSrcDesktopLogo?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const OraculoClubOlimpoVisual: React.FC<OraculoClubOlimpoVisualProps>;
|
|
12
|
+
export default OraculoClubOlimpoVisual;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoGameCardProps {
|
|
3
|
+
imageUrl: string;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
size?: "lg" | "sm";
|
|
6
|
+
fillParent?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const OraculoGameCard: React.FC<OraculoGameCardProps>;
|
|
9
|
+
export default OraculoGameCard;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type SizeOpt = {
|
|
3
|
+
w: number;
|
|
4
|
+
h: number;
|
|
5
|
+
r?: number;
|
|
6
|
+
font?: number;
|
|
7
|
+
};
|
|
8
|
+
export interface OraculoGameRankCardSizes {
|
|
9
|
+
xs: SizeOpt;
|
|
10
|
+
md: SizeOpt;
|
|
11
|
+
}
|
|
12
|
+
export interface OraculoGameRankCardProps {
|
|
13
|
+
imageUrl: string;
|
|
14
|
+
orden?: number;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
sizes?: OraculoGameRankCardSizes;
|
|
17
|
+
}
|
|
18
|
+
export default function OraculoGameRankCard({ imageUrl, orden, onClick, sizes, }: OraculoGameRankCardProps): React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoGameSlideItem {
|
|
3
|
+
id: string | number;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
}
|
|
6
|
+
export interface OraculoGameSlideProps {
|
|
7
|
+
items: OraculoGameSlideItem[];
|
|
8
|
+
layout?: "mosaic" | "grid";
|
|
9
|
+
onClick?: (item: OraculoGameSlideItem, index: number) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const OraculoGameSlide: React.FC<OraculoGameSlideProps>;
|
|
12
|
+
export default OraculoGameSlide;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoLiveCasinoCardProps {
|
|
3
|
+
logo: string;
|
|
4
|
+
provider?: string;
|
|
5
|
+
providerName?: string;
|
|
6
|
+
machine?: number | string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const OraculoLiveCasinoCard: React.FC<OraculoLiveCasinoCardProps>;
|
|
10
|
+
export default OraculoLiveCasinoCard;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoWelcomeBannerProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
amount?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
buttonText?: string;
|
|
7
|
+
onButtonClick?: () => void;
|
|
8
|
+
backgroundImage?: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Tamaño en desktop: "small" (456x272) o "large" (618x346) */
|
|
12
|
+
variant?: "small" | "large";
|
|
13
|
+
}
|
|
14
|
+
declare const OraculoWelcomeBanner: React.FC<OraculoWelcomeBannerProps>;
|
|
15
|
+
export default OraculoWelcomeBanner;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoSeccionClubOlimpoItem } from '../../interfaces/oraculo/InterfaceClubOlimpo';
|
|
3
|
+
export interface OraculoSeccionClubOlimpoItems {
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Si true, hace el efecto full-bleed (100vw centrado) */
|
|
6
|
+
fullBleed?: boolean;
|
|
7
|
+
/** Lista de variantes (puedes pasar 1 o varias). */
|
|
8
|
+
items: OraculoSeccionClubOlimpoItem;
|
|
9
|
+
/** Índice del item a mostrar si pasas varios. */
|
|
10
|
+
selectedIndex?: number;
|
|
11
|
+
/** aria-label de la sección (fallback al imgAlt del item seleccionado). */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const OraculoSeccionClubOlimpo: React.FC<OraculoSeccionClubOlimpoItems>;
|
|
15
|
+
export default OraculoSeccionClubOlimpo;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { OraculoSeccionDestacadosProps } from '../../interfaces/oraculo/InterfaceDestacados';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export default function OraculoSeccionDestacados({ items, title, iconUrl, onViewMore, className, }: OraculoSeccionDestacadosProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type LogoType = {
|
|
3
|
+
src: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
};
|
|
6
|
+
type Props = {
|
|
7
|
+
title?: string;
|
|
8
|
+
rows?: LogoType[][];
|
|
9
|
+
};
|
|
10
|
+
export default function OraculoSeccionMediosPago({ title, rows, }: Props): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoSeccionTopJuegosProps } from '../../interfaces/oraculo/InterfaceTopJuegos';
|
|
3
|
+
export default function OraculoSeccionTopJuegos({ items, title, iconUrl, onCardClick, }: OraculoSeccionTopJuegosProps): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OraculoSeccionBonoProps } from '../interfaces/oraculo/InterfaceBonos';
|
|
2
|
+
import { OraculoSeccionClubOlimpoItem } from '../interfaces/oraculo/InterfaceClubOlimpo';
|
|
3
|
+
import { OraculoSeccionTopJuegosProps } from '../interfaces/oraculo/InterfaceTopJuegos';
|
|
4
|
+
import { OraculoSeccionCasinoProps } from '../interfaces/oraculo/InterfaceCasino';
|
|
5
|
+
import { OraculoSeccionCasinoEnVivoProps } from '../interfaces/oraculo/InterfaceCasinoEnVivo';
|
|
6
|
+
import { OraculoSeccionVirtualesProps } from '../interfaces/oraculo/InterfaceVirtuales';
|
|
7
|
+
import { OraculoSeccionDestacadosProps } from '../interfaces/oraculo/InterfaceDestacados';
|
|
8
|
+
import { default as React } from 'react';
|
|
9
|
+
import { OraculoSeccionBannersProps } from '../interfaces/oraculo/InterfaceBanner';
|
|
10
|
+
interface parametros {
|
|
11
|
+
bonos: OraculoSeccionBonoProps;
|
|
12
|
+
topJuegos: OraculoSeccionTopJuegosProps;
|
|
13
|
+
casino: OraculoSeccionCasinoProps;
|
|
14
|
+
casinoEnVivo: OraculoSeccionCasinoEnVivoProps;
|
|
15
|
+
virtuales: OraculoSeccionVirtualesProps;
|
|
16
|
+
clubOlimpo: OraculoSeccionClubOlimpoItem;
|
|
17
|
+
destacados: OraculoSeccionDestacadosProps;
|
|
18
|
+
banners: OraculoSeccionBannersProps;
|
|
19
|
+
}
|
|
20
|
+
export default function OraculoPageLanding({ props }: {
|
|
21
|
+
props: parametros;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Firestore } from 'firebase/firestore';
|
|
3
|
+
export type LandingComponentMap = Record<string, React.ComponentType<any>>;
|
|
4
|
+
export declare const LandingComponents: LandingComponentMap;
|
|
5
|
+
export type OraculoPageLandingPreviewSection = {
|
|
6
|
+
id: number;
|
|
7
|
+
title: string;
|
|
8
|
+
componentKey: string;
|
|
9
|
+
visible: boolean;
|
|
10
|
+
order: number;
|
|
11
|
+
props?: Record<string, unknown>;
|
|
12
|
+
apiUrl?: string;
|
|
13
|
+
dataMode?: "url" | "manual";
|
|
14
|
+
variableName?: string;
|
|
15
|
+
manualItems?: {
|
|
16
|
+
fields: {
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[];
|
|
21
|
+
}[];
|
|
22
|
+
manualScalarFields?: {
|
|
23
|
+
name: string;
|
|
24
|
+
type: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
apiMethod?: "GET" | "POST";
|
|
28
|
+
apiParams?: {
|
|
29
|
+
id: string;
|
|
30
|
+
key: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
export interface OraculoPageLandingPreviewProps {
|
|
35
|
+
/** Optional override: if provided, renders these sections instead of fetching Firestore */
|
|
36
|
+
sectionsOverride?: OraculoPageLandingPreviewSection[];
|
|
37
|
+
/** Firestore document id (default 'home') */
|
|
38
|
+
docId?: string;
|
|
39
|
+
/** Instancia de Firestore proporcionada por la app que consume el paquete */
|
|
40
|
+
db: Firestore;
|
|
41
|
+
}
|
|
42
|
+
declare const OraculoPageLandingPreview: React.FC<OraculoPageLandingPreviewProps>;
|
|
43
|
+
export default OraculoPageLandingPreview;
|
package/package.json
CHANGED
|
@@ -1,37 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oraculo-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"style": "./dist/index.css",
|
|
8
|
-
|
|
9
8
|
"sideEffects": [
|
|
10
9
|
"./dist/index.css"
|
|
11
10
|
],
|
|
12
|
-
|
|
13
11
|
"files": [
|
|
14
12
|
"dist"
|
|
15
13
|
],
|
|
16
|
-
|
|
17
14
|
"scripts": {
|
|
18
15
|
"build": "vite build"
|
|
19
16
|
},
|
|
20
|
-
|
|
21
17
|
"peerDependencies": {
|
|
22
|
-
"react": "18.x",
|
|
23
|
-
"react-dom": "18.x",
|
|
24
|
-
"@mui/material": "^5.0.0",
|
|
25
18
|
"@mui/icons-material": "^5.0.0",
|
|
19
|
+
"@mui/material": "^5.0.0",
|
|
26
20
|
"@splidejs/react-splide": ">=0.7.0",
|
|
27
|
-
"firebase": ">=10.0.0"
|
|
21
|
+
"firebase": ">=10.0.0",
|
|
22
|
+
"react": "18.x",
|
|
23
|
+
"react-dom": "18.x"
|
|
28
24
|
},
|
|
29
|
-
|
|
30
25
|
"devDependencies": {
|
|
31
26
|
"@types/react": "^18.3.27",
|
|
32
27
|
"@types/react-dom": "^18.3.7",
|
|
33
28
|
"@vitejs/plugin-react": "^4.7.0",
|
|
34
29
|
"typescript": "^5.9.3",
|
|
35
|
-
"vite": "^6.4.1"
|
|
30
|
+
"vite": "^6.4.1",
|
|
31
|
+
"vite-plugin-dts": "^4.5.4"
|
|
36
32
|
}
|
|
37
33
|
}
|