oraculo-ui 0.1.26 → 0.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/atoms/OraculoButton/OraculoButton.d.ts +21 -0
  2. package/dist/atoms/OraculoCarouselDots/OraculoCarouselDots.d.ts +10 -0
  3. package/dist/atoms/OraculoEvent/OraculoEventDate.d.ts +5 -0
  4. package/dist/atoms/OraculoEvent/OraculoEventHeader.d.ts +7 -0
  5. package/dist/atoms/OraculoEvent/OraculoEventLabel.d.ts +5 -0
  6. package/dist/atoms/OraculoEvent/OraculoEventLeague.d.ts +5 -0
  7. package/dist/atoms/OraculoEvent/OraculoEventScore.d.ts +6 -0
  8. package/dist/atoms/OraculoEvent/OraculoEventStatus.d.ts +5 -0
  9. package/dist/atoms/OraculoEvent/OraculoEventStatusBadge.d.ts +9 -0
  10. package/dist/atoms/OraculoEvent/OraculoEventTeamInfo.d.ts +6 -0
  11. package/dist/atoms/OraculoEvent/OraculoEventTitle.d.ts +6 -0
  12. package/dist/atoms/OraculoGridGroup/OraculoGridGroup.d.ts +14 -0
  13. package/dist/atoms/OraculoLogo/OraculoLogoMediosPago.d.ts +5 -0
  14. package/dist/atoms/OraculoSectionTitle/OraculoSectionTitle.d.ts +8 -0
  15. package/dist/index.cjs.js +99 -99
  16. package/dist/index.cjs.js.map +1 -1
  17. package/dist/index.css +1 -1
  18. package/dist/index.d.ts +59 -0
  19. package/dist/index.es.js +12354 -10994
  20. package/dist/index.es.js.map +1 -1
  21. package/dist/interfaces/oraculo/InterfaceBanner.d.ts +17 -0
  22. package/dist/interfaces/oraculo/InterfaceBonos.d.ts +13 -0
  23. package/dist/interfaces/oraculo/InterfaceCasino.d.ts +10 -0
  24. package/dist/interfaces/oraculo/InterfaceCasinoEnVivo.d.ts +11 -0
  25. package/dist/interfaces/oraculo/InterfaceClubOlimpo.d.ts +11 -0
  26. package/dist/interfaces/oraculo/InterfaceDestacados.d.ts +19 -0
  27. package/dist/interfaces/oraculo/InterfaceGameItem.d.ts +17 -0
  28. package/dist/interfaces/oraculo/InterfaceKambi.d.ts +114 -0
  29. package/dist/interfaces/oraculo/InterfaceTopJuegos.d.ts +7 -0
  30. package/dist/interfaces/oraculo/InterfaceVirtuales.d.ts +10 -0
  31. package/dist/molecules/OraculoCarousel/OraculoCarousel.d.ts +42 -0
  32. package/dist/molecules/OraculoClubOlimpoVisual/OraculoClubOlimpoVisual.d.ts +13 -0
  33. package/dist/molecules/OraculoEventCard/OraculoEventCombinadasCard.d.ts +2 -0
  34. package/dist/molecules/OraculoEventCard/OraculoEventEnVivoCard.d.ts +2 -0
  35. package/dist/molecules/OraculoEventCard/OraculoEventSemanaCard.d.ts +2 -0
  36. package/dist/molecules/OraculoGameCard/OraculoGameCard.d.ts +9 -0
  37. package/dist/molecules/OraculoGameRankCard/OraculoGameRankCard.d.ts +18 -0
  38. package/dist/molecules/OraculoGameSlide/OraculoGameSlide.d.ts +12 -0
  39. package/dist/molecules/OraculoLiveCasinoCard/OraculoLiveCasinoCard.d.ts +10 -0
  40. package/dist/molecules/OraculoWelcomeBanner/OraculoWelcomeBanner.d.ts +15 -0
  41. package/dist/organisms/OraculoSeccionBanners/OraculoSeccionBanners.d.ts +2 -0
  42. package/dist/organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.d.ts +4 -0
  43. package/dist/organisms/OraculoSeccionCasino/OraculoSeccionCasino.d.ts +4 -0
  44. package/dist/organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.d.ts +4 -0
  45. package/dist/organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.d.ts +16 -0
  46. package/dist/organisms/OraculoSeccionDestacados/OraculoSeccionDestacados.d.ts +2 -0
  47. package/dist/organisms/OraculoSeccionEventoCombinadas/OraculoSeccionEventoCombinadas.d.ts +1 -0
  48. package/dist/organisms/OraculoSeccionEventoEnVivo/OraculoSeccionEventoEnVivo.d.ts +1 -0
  49. package/dist/organisms/OraculoSeccionEventoSemana/OraculoSeccionEventoSemana.d.ts +1 -0
  50. package/dist/organisms/OraculoSeccionMediosPago/OraculoSeccionMediosPago.d.ts +10 -0
  51. package/dist/organisms/OraculoSeccionTopJuegos/OraculoSeccionTopJuegos.d.ts +2 -0
  52. package/dist/organisms/OraculoSeccionVirtuales/OraculoSeccionVirtuales.d.ts +4 -0
  53. package/dist/templates/OraculoPageLanding.d.ts +22 -0
  54. package/dist/templates/OraculoPageLandingPreview.d.ts +43 -0
  55. package/package.json +10 -6
@@ -0,0 +1,17 @@
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
+ leftIconSrc?: string;
16
+ rightIconSrc?: string;
17
+ }
@@ -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,11 @@
1
+ export interface OraculoSeccionClubOlimpoItem {
2
+ text: string;
3
+ buttonLabel?: string;
4
+ imgAlt?: string;
5
+ images: {
6
+ mobile: string;
7
+ desktopBg?: string;
8
+ desktopLogo?: string;
9
+ };
10
+ onClick?: () => void;
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,7 @@
1
+ import { OraculoGameItem } from "./InterfaceGameItem";
2
+ export interface OraculoSeccionTopJuegosProps {
3
+ items: OraculoGameItem[];
4
+ title?: string;
5
+ iconUrl?: string;
6
+ onCardClick?: (item: OraculoGameItem) => void;
7
+ }
@@ -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 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,13 @@
1
+ import React from "react";
2
+ import "../../organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.css";
3
+ export interface OraculoClubOlimpoVisualProps {
4
+ text: string;
5
+ buttonLabel?: string;
6
+ onClick?: () => void;
7
+ imgAlt?: string;
8
+ imgSrcMobile: string;
9
+ imgSrcDesktopBg?: string;
10
+ imgSrcDesktopLogo?: string;
11
+ }
12
+ declare const OraculoClubOlimpoVisual: React.FC<OraculoClubOlimpoVisualProps>;
13
+ export default OraculoClubOlimpoVisual;
@@ -0,0 +1,2 @@
1
+ import { CombinadoEventProps } from "../../interfaces/oraculo/InterfaceKambi";
2
+ export default function OraculoEventCombinadosCard({ event }: CombinadoEventProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { EnVivoEventProps } from "../../interfaces/oraculo/InterfaceKambi";
2
+ export default function OraculoEventEnVivoCard({ event, liveData, betOffers, fondo }: EnVivoEventProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SemanaEventProps } from "../../interfaces/oraculo/InterfaceKambi";
2
+ export default function OraculoEventSemanaCard({ event }: SemanaEventProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import 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,18 @@
1
+ type SizeOpt = {
2
+ w: number;
3
+ h: number;
4
+ r?: number;
5
+ font?: number;
6
+ };
7
+ export interface OraculoGameRankCardSizes {
8
+ xs: SizeOpt;
9
+ md: SizeOpt;
10
+ }
11
+ export interface OraculoGameRankCardProps {
12
+ imageUrl: string;
13
+ orden?: number;
14
+ onClick?: () => void;
15
+ sizes?: OraculoGameRankCardSizes;
16
+ }
17
+ export default function OraculoGameRankCard({ imageUrl, orden, onClick, sizes, }: OraculoGameRankCardProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,12 @@
1
+ import 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 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 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,2 @@
1
+ import { OraculoSeccionBannersProps } from "../../interfaces/oraculo/InterfaceBanner";
2
+ export default function OraculoSeccionBanners({ backgrounds, items, }: OraculoSeccionBannersProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { OraculoSeccionBonoProps } from "../../interfaces/oraculo/InterfaceBonos";
3
+ declare const OraculoSeccionBonoBienvenida: React.FC<OraculoSeccionBonoProps>;
4
+ export default OraculoSeccionBonoBienvenida;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { OraculoSeccionCasinoProps } from "../../interfaces/oraculo/InterfaceCasino";
3
+ declare const OraculoSeccionCasino: React.FC<OraculoSeccionCasinoProps>;
4
+ export default OraculoSeccionCasino;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { OraculoSeccionCasinoEnVivoProps } from "../../interfaces/oraculo/InterfaceCasinoEnVivo";
3
+ declare const OraculoSeccionCasinoEnVivo: React.FC<OraculoSeccionCasinoEnVivoProps>;
4
+ export default OraculoSeccionCasinoEnVivo;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import "./OraculoSeccionClubOlimpo.css";
3
+ import { OraculoSeccionClubOlimpoItem } from "../../interfaces/oraculo/InterfaceClubOlimpo";
4
+ export interface OraculoSeccionClubOlimpoItems {
5
+ className?: string;
6
+ /** Si true, hace el efecto full-bleed (100vw centrado) */
7
+ fullBleed?: boolean;
8
+ /** Lista de variantes (puedes pasar 1 o varias). */
9
+ items: OraculoSeccionClubOlimpoItem;
10
+ /** Índice del item a mostrar si pasas varios. */
11
+ selectedIndex?: number;
12
+ /** aria-label de la sección (fallback al imgAlt del item seleccionado). */
13
+ ariaLabel?: string;
14
+ }
15
+ declare const OraculoSeccionClubOlimpo: React.FC<OraculoSeccionClubOlimpoItems>;
16
+ export default OraculoSeccionClubOlimpo;
@@ -0,0 +1,2 @@
1
+ import { OraculoSeccionDestacadosProps } from "../../interfaces/oraculo/InterfaceDestacados";
2
+ export default function OraculoSeccionDestacados({ items, title, iconUrl, onViewMore, className, }: OraculoSeccionDestacadosProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function OraculoSeccionEventoCombinadas({ items, title, iconUrl, onViewMore, className, }: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function OraculoSeccionEventoEnVivo({ items, title, iconUrl, onViewMore, className, }: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function OraculoSeccionEventoSemana({ items, title, iconUrl, onViewMore, className, }: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ type LogoType = {
2
+ src: string;
3
+ alt: string;
4
+ };
5
+ type Props = {
6
+ title?: string;
7
+ rows?: LogoType[][];
8
+ };
9
+ export default function OraculoSeccionMediosPago({ title, rows, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { OraculoSeccionTopJuegosProps } from "../../interfaces/oraculo/InterfaceTopJuegos";
2
+ export default function OraculoSeccionTopJuegos({ items, title, iconUrl, onCardClick, }: OraculoSeccionTopJuegosProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { OraculoSeccionVirtualesProps } from "../../interfaces/oraculo/InterfaceVirtuales";
3
+ declare const OraculoSeccionVirtuales: React.FC<OraculoSeccionVirtualesProps>;
4
+ export default OraculoSeccionVirtuales;
@@ -0,0 +1,22 @@
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 { OraculoSeccionBannersProps } from "../interfaces/oraculo/InterfaceBanner";
9
+ interface parametros {
10
+ bonos: OraculoSeccionBonoProps;
11
+ topJuegos: OraculoSeccionTopJuegosProps;
12
+ casino: OraculoSeccionCasinoProps;
13
+ casinoEnVivo: OraculoSeccionCasinoEnVivoProps;
14
+ virtuales: OraculoSeccionVirtualesProps;
15
+ clubOlimpo: OraculoSeccionClubOlimpoItem;
16
+ destacados: OraculoSeccionDestacadosProps;
17
+ banners: OraculoSeccionBannersProps;
18
+ }
19
+ export default function OraculoPageLanding({ props }: {
20
+ props: parametros;
21
+ }): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,43 @@
1
+ import 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,6 +1,6 @@
1
1
  {
2
2
  "name": "oraculo-ui",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,20 +13,24 @@
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
+
16
17
  "scripts": {
17
- "build": "vite build"
18
+ "build": "vite build && tsc -p tsconfig.json --emitDeclarationOnly --outDir dist"
18
19
  },
20
+
19
21
  "peerDependencies": {
20
- "@mui/material": ">=5",
22
+ "react": "18.x",
23
+ "react-dom": "18.x",
24
+ "@mui/material": "^5.0.0",
25
+ "@mui/icons-material": "^5.0.0",
21
26
  "@splidejs/react-splide": ">=0.7.0",
22
- "react": ">=18",
23
- "react-dom": ">=18"
27
+ "firebase": ">=10.0.0"
24
28
  },
29
+
25
30
  "devDependencies": {
26
31
  "@types/react": "^18.3.27",
27
32
  "@types/react-dom": "^18.3.7",
28
33
  "@vitejs/plugin-react": "^4.7.0",
29
- "tsup": "^8.5.1",
30
34
  "typescript": "^5.9.3",
31
35
  "vite": "^6.4.1"
32
36
  }