oraculo-ui 0.1.23 → 0.1.25

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/index.d.ts DELETED
@@ -1,513 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { Firestore } from 'firebase/firestore';
3
-
4
- interface OraculoButtonProps {
5
- children?: React.ReactNode;
6
- onClick?: any;
7
- href?: string;
8
- target?: React.HTMLAttributeAnchorTarget;
9
- rel?: string;
10
- type?: "button" | "submit" | "reset";
11
- disabled?: boolean;
12
- variant?: "primary" | "secondary" | "tertiary";
13
- size?: "sm" | "md" | "lg";
14
- fullWidth?: boolean;
15
- fullHeight?: boolean;
16
- className?: string;
17
- ariaLabel?: string;
18
- leftIcon?: React.ReactNode;
19
- rightIcon?: React.ReactNode;
20
- iconOnly?: boolean;
21
- }
22
- declare function OraculoButton({ children, onClick, href, target, rel, type, disabled, variant, size, fullWidth, fullHeight, className, ariaLabel, leftIcon, rightIcon, iconOnly, }: OraculoButtonProps): React.JSX.Element;
23
-
24
- interface OraculoSectionTitleProps {
25
- title: string;
26
- iconUrl?: string;
27
- size?: "xs" | "sm" | "md" | "lg";
28
- className?: string;
29
- }
30
- declare function OraculoSectionTitle({ title, iconUrl, size, className, }: OraculoSectionTitleProps): React.JSX.Element;
31
-
32
- interface OraculoCarouselDotsProps {
33
- total: number;
34
- active: number;
35
- onSelect?: (index: number) => void;
36
- className?: string;
37
- }
38
- declare const OraculoCarouselDots: React.FC<OraculoCarouselDotsProps>;
39
-
40
- interface OraculoGridGroupProps {
41
- /** Children inside the grid */
42
- children: ReactNode;
43
- /** Minimum width (in px) for auto-fit columns */
44
- minWidth?: number;
45
- /** Gap spacing: number → multiplier of 8px, or string → custom CSS value */
46
- spacing?: number | string;
47
- /** Horizontal alignment of grid items */
48
- justify?: "start" | "center" | "end" | "stretch";
49
- /** Custom grid template definition (overrides auto-fit/minmax behavior) */
50
- columns?: string | null;
51
- }
52
- declare function OraculoGridGroup({ children, minWidth, spacing, justify, columns, }: OraculoGridGroupProps): React.JSX.Element;
53
-
54
- type Logo = {
55
- src: string;
56
- alt: string;
57
- };
58
- declare function OraculoLogoMediosPago({ src, alt }: Logo): React.JSX.Element;
59
-
60
- interface OraculoMatchHeaderProps {
61
- title: string;
62
- subtitle?: string;
63
- live?: boolean;
64
- time?: string;
65
- }
66
- declare function OraculoMatchHeader({ title, subtitle, live, time }: OraculoMatchHeaderProps): React.JSX.Element;
67
-
68
- interface OraculoEventLabelProps {
69
- text: string;
70
- }
71
- declare function OraculoEventLabel({ text }: OraculoEventLabelProps): React.JSX.Element;
72
-
73
- interface EventLeague {
74
- title: string;
75
- }
76
- declare function OraculoEventLeague({ title }: EventLeague): React.JSX.Element;
77
-
78
- interface OraculoEventScoreProps {
79
- text: string | number;
80
- name?: string;
81
- size?: "normal" | "small";
82
- }
83
- declare function OraculoEventScore({ text, name, size }: OraculoEventScoreProps): React.JSX.Element;
84
-
85
- interface OraculoEventStatusProps {
86
- live?: boolean;
87
- time?: string;
88
- }
89
- declare function OraculoEventStatus({ live, time }: OraculoEventStatusProps): React.JSX.Element;
90
-
91
- interface OraculoEventStatusBadgeProps {
92
- /** Text inside the badge */
93
- text: string;
94
- /** Background color of the badge */
95
- color?: string;
96
- /** Text color */
97
- textColor?: string;
98
- }
99
- declare function OraculoEventStatusBadge({ text, color, textColor }: OraculoEventStatusBadgeProps): React.JSX.Element;
100
-
101
- interface OraculoEventTeamInfoProps {
102
- name: string;
103
- logo: string;
104
- size?: "regular" | "compact";
105
- }
106
- declare function OraculoEventTeamInfo({ name, logo, size }: OraculoEventTeamInfoProps): React.JSX.Element;
107
-
108
- interface OraculoCarouselOptions {
109
- type?: string;
110
- perPage?: number;
111
- gap?: string;
112
- pagination?: boolean;
113
- arrows?: boolean;
114
- drag?: boolean;
115
- focus?: string | "center";
116
- autoWidth?: boolean;
117
- trimSpace?: boolean;
118
- rewind?: boolean;
119
- padding?: {
120
- left?: string;
121
- right?: string;
122
- };
123
- breakpoints?: Record<string | number, OraculoCarouselOptions>;
124
- [key: string]: any;
125
- }
126
- interface OraculoCarouselRef {
127
- next: () => void;
128
- prev: () => void;
129
- go: (index: number | string) => void;
130
- }
131
- interface OraculoCarouselProps<T = any> {
132
- items: T[];
133
- renderItem: (item: T, index: number) => ReactNode;
134
- perPage?: number;
135
- gap?: string;
136
- breakpoints?: Record<string | number, OraculoCarouselOptions>;
137
- options?: OraculoCarouselOptions;
138
- className?: string;
139
- useIndexAsKey?: boolean;
140
- onMove?: (info: {
141
- index: number;
142
- isStart: boolean;
143
- isEnd: boolean;
144
- total: number;
145
- }) => void;
146
- }
147
- declare const OraculoCarousel: React.ForwardRefExoticComponent<OraculoCarouselProps<any> & React.RefAttributes<OraculoCarouselRef>>;
148
-
149
- type SizeOpt = {
150
- w: number;
151
- h: number;
152
- r?: number;
153
- font?: number;
154
- };
155
- interface OraculoGameRankCardSizes {
156
- xs: SizeOpt;
157
- md: SizeOpt;
158
- }
159
- interface OraculoGameRankCardProps {
160
- imageUrl: string;
161
- orden?: number;
162
- onClick?: () => void;
163
- sizes?: OraculoGameRankCardSizes;
164
- }
165
- declare function OraculoGameRankCard({ imageUrl, orden, onClick, sizes, }: OraculoGameRankCardProps): React.JSX.Element;
166
-
167
- interface OraculoLiveCasinoCardProps {
168
- logo: string;
169
- provider?: string;
170
- providerName?: string;
171
- machine?: number | string;
172
- onClick?: () => void;
173
- }
174
- declare const OraculoLiveCasinoCard: React.FC<OraculoLiveCasinoCardProps>;
175
-
176
- interface OraculoGameCardProps {
177
- imageUrl: string;
178
- onClick?: () => void;
179
- size?: "lg" | "sm";
180
- fillParent?: boolean;
181
- }
182
- declare const OraculoGameCard: React.FC<OraculoGameCardProps>;
183
-
184
- interface OraculoGameSlideItem {
185
- id: string | number;
186
- imageUrl: string;
187
- }
188
- interface OraculoGameSlideProps {
189
- items: OraculoGameSlideItem[];
190
- layout?: "mosaic" | "grid";
191
- onClick?: (item: OraculoGameSlideItem, index: number) => void;
192
- }
193
- declare const OraculoGameSlide: React.FC<OraculoGameSlideProps>;
194
-
195
- interface OraculoWelcomeBannerProps {
196
- title?: string;
197
- amount?: string;
198
- subtitle?: string;
199
- buttonText?: string;
200
- onButtonClick?: () => void;
201
- backgroundImage?: string;
202
- alt?: string;
203
- className?: string;
204
- /** Tamaño en desktop: "small" (456x272) o "large" (618x346) */
205
- variant?: "small" | "large";
206
- }
207
- declare const OraculoWelcomeBanner: React.FC<OraculoWelcomeBannerProps>;
208
-
209
- interface OraculoClubOlimpoVisualProps {
210
- text: string;
211
- buttonLabel?: string;
212
- onClick?: () => void;
213
- imgAlt?: string;
214
- imgSrcMobile: string;
215
- imgSrcDesktopBg?: string;
216
- imgSrcDesktopLogo?: string;
217
- }
218
- declare const OraculoClubOlimpoVisual: React.FC<OraculoClubOlimpoVisualProps>;
219
-
220
- interface EventPath {
221
- id: number;
222
- name: string;
223
- englishName: string;
224
- termKey: string;
225
- }
226
- interface EventBase {
227
- id: number;
228
- name: string;
229
- nameDelimiter: string;
230
- englishName: string;
231
- homeName: string;
232
- awayName: string;
233
- start: string;
234
- group: string;
235
- groupId: number;
236
- path: EventPath[];
237
- nonLiveBoCount?: number;
238
- liveBoCount?: number;
239
- sport: string;
240
- tags: string[];
241
- state: string;
242
- groupSortOrder?: number;
243
- }
244
- interface Outcome {
245
- id: number;
246
- label: string;
247
- englishLabel: string;
248
- odds: number;
249
- participant?: string;
250
- type: string;
251
- betOfferId: number;
252
- changedDate: string;
253
- participantId?: number;
254
- oddsFractional: string;
255
- oddsAmerican: string;
256
- status: string;
257
- cashOutStatus: string;
258
- line?: number;
259
- }
260
- interface Criterion {
261
- id: number;
262
- label: string;
263
- englishLabel: string;
264
- order: any[];
265
- occurrenceType?: string;
266
- lifetime?: string;
267
- }
268
- interface BetOfferType {
269
- id: number;
270
- name: string;
271
- englishName: string;
272
- }
273
- interface BetOffer {
274
- id: number;
275
- closed?: string;
276
- criterion: Criterion;
277
- betOfferType: BetOfferType;
278
- eventId: number;
279
- outcomes: Outcome[];
280
- tags: string[];
281
- cashOutStatus: string;
282
- }
283
- interface MatchClock {
284
- minute: string;
285
- second: number;
286
- running: boolean;
287
- version: number;
288
- }
289
- interface LiveScore {
290
- home: string;
291
- away: string;
292
- who: string;
293
- version: number;
294
- }
295
- interface LiveStatisticsSetData {
296
- home: number[];
297
- away: number[];
298
- homeServe: boolean;
299
- }
300
- interface LiveStatistics {
301
- sets: LiveStatisticsSetData;
302
- }
303
- interface LiveData {
304
- eventId: number;
305
- matchClock: MatchClock;
306
- score: LiveScore;
307
- statistics?: LiveStatistics;
308
- liveStatistics: any[];
309
- }
310
- interface LiveEvent {
311
- event: EventBase;
312
- liveData: LiveData;
313
- betOffers: BetOffer;
314
- }
315
- interface CombinadoEventProps {
316
- event: EventBase & {
317
- outcomes?: Outcome[];
318
- betOffers?: BetOffer[];
319
- };
320
- }
321
- interface EnVivoEventProps {
322
- event: EventBase;
323
- liveData: LiveData | null;
324
- betOffers?: BetOffer[];
325
- fondo?: string;
326
- }
327
- interface SemanaEventProps {
328
- event: EventBase & {
329
- outcome?: {
330
- outcomes?: Pick<Outcome, "id" | "label" | "odds">[];
331
- }[];
332
- };
333
- }
334
-
335
- declare function OraculoEventCombinadosCard({ event }: CombinadoEventProps): React.JSX.Element;
336
-
337
- declare function OraculoEventEnVivoCard({ event, liveData, betOffers, fondo }: EnVivoEventProps): React.JSX.Element;
338
-
339
- declare function OraculoEventSemanaCard({ event }: SemanaEventProps): React.JSX.Element;
340
-
341
- interface OraculoSeccionDestacadosItem {
342
- body: string;
343
- image: string;
344
- title: string;
345
- summary_body: string;
346
- summary_title: string;
347
- groups_forbidden: number[];
348
- groups_allowed: number[];
349
- promotion: string;
350
- tags: string;
351
- summary_image?: string;
352
- }
353
- interface OraculoSeccionDestacadosProps {
354
- items: OraculoSeccionDestacadosItem[];
355
- title?: string;
356
- iconUrl?: string;
357
- onViewMore?: () => void;
358
- className?: string;
359
- }
360
-
361
- declare function OraculoSeccionDestacados({ items, title, iconUrl, onViewMore, className, }: OraculoSeccionDestacadosProps): React.JSX.Element;
362
-
363
- interface OraculoGameItem {
364
- orden?: number;
365
- logo?: string;
366
- machine?: number | string;
367
- name?: string;
368
- web_name?: string;
369
- provider?: string;
370
- sub_provider?: string;
371
- external_id?: string;
372
- type?: string;
373
- tags?: string;
374
- lobby_tag?: string | null;
375
- background?: string;
376
- rtp?: number | null;
377
- demo_allowed?: boolean;
378
- gaming_session_required?: boolean;
379
- }
380
-
381
- interface OraculoSeccionTopJuegosProps {
382
- items: OraculoGameItem[];
383
- title?: string;
384
- iconUrl?: string;
385
- onCardClick?: (item: OraculoGameItem) => void;
386
- }
387
-
388
- declare function OraculoSeccionTopJuegos({ items, title, iconUrl, onCardClick, }: OraculoSeccionTopJuegosProps): React.JSX.Element;
389
-
390
- interface OraculoSeccionCasinoEnVivoProps {
391
- items: OraculoGameItem[];
392
- title?: string;
393
- subtitle?: string;
394
- backgroundMobileUrl?: string;
395
- backgroundDesktopUrl?: string;
396
- onCardClick?: (juego: OraculoGameItem, index: number) => void;
397
- onViewMore?: () => void;
398
- className?: string;
399
- }
400
-
401
- declare const OraculoSeccionCasinoEnVivo: React.FC<OraculoSeccionCasinoEnVivoProps>;
402
-
403
- interface OraculoSeccionCasinoProps {
404
- items: OraculoGameItem[];
405
- title?: string;
406
- iconUrl?: string;
407
- onItemClick?: (game: OraculoGameItem) => void;
408
- onViewMore?: () => void;
409
- mosaicFirst?: boolean;
410
- gridSize?: number;
411
- }
412
-
413
- declare const OraculoSeccionCasino: React.FC<OraculoSeccionCasinoProps>;
414
-
415
- interface OraculoSeccionVirtualesProps {
416
- items: OraculoGameItem[];
417
- title?: string;
418
- iconUrl?: string;
419
- onItemClick?: (game: OraculoGameItem) => void;
420
- onViewMore?: () => void;
421
- mosaicFirst?: boolean;
422
- gridSize?: number;
423
- }
424
-
425
- declare const OraculoSeccionVirtuales: React.FC<OraculoSeccionVirtualesProps>;
426
-
427
- interface OraculoBonosItem {
428
- title?: string;
429
- amount?: string;
430
- subtitle?: string;
431
- buttonText?: string;
432
- onButtonClick?: () => void;
433
- }
434
- interface OraculoSeccionBonoProps {
435
- headline?: string;
436
- headline2?: string;
437
- items: OraculoBonosItem[];
438
- backgroundImageUrl?: string;
439
- }
440
-
441
- declare const OraculoSeccionBonoBienvenida: React.FC<OraculoSeccionBonoProps>;
442
-
443
- interface OraculoSeccionClubOlimpoItem {
444
- text: string;
445
- buttonLabel?: string;
446
- imgAlt?: string;
447
- images: {
448
- mobile: string;
449
- desktopBg?: string;
450
- desktopLogo?: string;
451
- };
452
- onClick?: () => void;
453
- }
454
-
455
- interface OraculoSeccionClubOlimpoItems {
456
- className?: string;
457
- /** Si true, hace el efecto full-bleed (100vw centrado) */
458
- fullBleed?: boolean;
459
- /** Lista de variantes (puedes pasar 1 o varias). */
460
- items: OraculoSeccionClubOlimpoItem;
461
- /** Índice del item a mostrar si pasas varios. */
462
- selectedIndex?: number;
463
- /** aria-label de la sección (fallback al imgAlt del item seleccionado). */
464
- ariaLabel?: string;
465
- }
466
- declare const OraculoSeccionClubOlimpo: React.FC<OraculoSeccionClubOlimpoItems>;
467
-
468
- declare function OraculoSeccionEventoCombinadas({ items, title, iconUrl, onViewMore, className, }: any): React.JSX.Element;
469
-
470
- declare function OraculoSeccionEventoEnVivo({ items, title, iconUrl, onViewMore, className, }: any): React.JSX.Element;
471
-
472
- declare function OraculoSeccionEventoSemana({ items, title, iconUrl, onViewMore, className, }: any): React.JSX.Element;
473
-
474
- type OraculoPageLandingPreviewSection = {
475
- id: number;
476
- title: string;
477
- componentKey: string;
478
- visible: boolean;
479
- order: number;
480
- props?: Record<string, unknown>;
481
- apiUrl?: string;
482
- dataMode?: "url" | "manual";
483
- variableName?: string;
484
- manualItems?: {
485
- fields: {
486
- name: string;
487
- type: string;
488
- value: string;
489
- }[];
490
- }[];
491
- manualScalarFields?: {
492
- name: string;
493
- type: string;
494
- value: string;
495
- }[];
496
- apiMethod?: "GET" | "POST";
497
- apiParams?: {
498
- id: string;
499
- key: string;
500
- value: string;
501
- }[];
502
- };
503
- interface OraculoPageLandingPreviewProps {
504
- /** Optional override: if provided, renders these sections instead of fetching Firestore */
505
- sectionsOverride?: OraculoPageLandingPreviewSection[];
506
- /** Firestore document id (default 'home') */
507
- docId?: string;
508
- /** Instancia de Firestore proporcionada por la app que consume el paquete */
509
- db: Firestore;
510
- }
511
- declare const OraculoPageLandingPreview: React.FC<OraculoPageLandingPreviewProps>;
512
-
513
- export { type BetOffer, type BetOfferType, type CombinadoEventProps, type Criterion, type EnVivoEventProps, type EventBase, type EventPath, type LiveData, type LiveEvent, type LiveScore, type LiveStatistics, type LiveStatisticsSetData, type MatchClock, type OraculoBonosItem, OraculoButton, type OraculoButtonProps, OraculoCarousel, OraculoCarouselDots, type OraculoCarouselDotsProps, type OraculoCarouselOptions, type OraculoCarouselProps, type OraculoCarouselRef, OraculoClubOlimpoVisual, type OraculoClubOlimpoVisualProps, OraculoEventCombinadosCard as OraculoEventCombinadasCard, OraculoEventEnVivoCard, OraculoMatchHeader as OraculoEventHeader, OraculoEventLabel, OraculoEventLeague, OraculoEventScore, OraculoEventSemanaCard, OraculoEventStatus, OraculoEventStatusBadge, OraculoEventTeamInfo, OraculoGameCard, type OraculoGameCardProps, type OraculoGameItem, OraculoGameRankCard, type OraculoGameRankCardProps, type OraculoGameRankCardSizes, OraculoGameSlide, type OraculoGameSlideItem, type OraculoGameSlideProps, OraculoGridGroup, OraculoLiveCasinoCard, type OraculoLiveCasinoCardProps, OraculoLogoMediosPago, OraculoPageLandingPreview, type OraculoPageLandingPreviewProps, type OraculoPageLandingPreviewSection, OraculoSeccionBonoBienvenida, type OraculoSeccionBonoProps, OraculoSeccionCasino, OraculoSeccionCasinoEnVivo, type OraculoSeccionCasinoEnVivoProps, type OraculoSeccionCasinoProps, OraculoSeccionClubOlimpo, type OraculoSeccionClubOlimpoItem, OraculoSeccionDestacados, type OraculoSeccionDestacadosItem, type OraculoSeccionDestacadosProps, OraculoSeccionEventoCombinadas, OraculoSeccionEventoEnVivo, OraculoSeccionEventoSemana, OraculoSeccionTopJuegos, type OraculoSeccionTopJuegosProps, OraculoSeccionVirtuales, type OraculoSeccionVirtualesProps, OraculoSectionTitle, type OraculoSectionTitleProps, OraculoSeccionTopJuegos as OraculoTopJuegoItem, OraculoWelcomeBanner, type OraculoWelcomeBannerProps, type Outcome, type SemanaEventProps, OraculoPageLandingPreview as default };