oraculo-ui 0.1.14 → 0.1.16

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 (35) hide show
  1. package/dist/index.css +2 -397
  2. package/dist/index.css.map +1 -0
  3. package/dist/index.js +11 -39533
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +22 -53
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +2 -2
  8. package/dist/OraculoSeccionBonoBienvenida-EG5U752J.mjs +0 -8
  9. package/dist/OraculoSeccionBonoBienvenida-MGMLDCRG.css +0 -220
  10. package/dist/OraculoSeccionCasino-NSM2LPDZ.mjs +0 -12
  11. package/dist/OraculoSeccionCasino-RFXPS2MW.css +0 -397
  12. package/dist/OraculoSeccionCasino-TFMAW7DD.mjs +0 -12
  13. package/dist/OraculoSeccionCasinoEnVivo-DSHBIQFL.mjs +0 -8
  14. package/dist/OraculoSeccionCasinoEnVivo-MMXETHJA.css +0 -156
  15. package/dist/OraculoSeccionClubOlimpo-2EZ3LMIL.mjs +0 -9
  16. package/dist/OraculoSeccionClubOlimpo-APZYPQ5V.css +0 -116
  17. package/dist/OraculoSeccionClubOlimpo-MYTRV5IN.css +0 -273
  18. package/dist/OraculoSeccionClubOlimpo-XGB4KUKX.mjs +0 -7
  19. package/dist/OraculoSeccionDestacados-JNMBNCDQ.mjs +0 -12
  20. package/dist/OraculoSeccionDestacados-TFPJSEHF.mjs +0 -12
  21. package/dist/OraculoSeccionDestacados-WQX2GQNY.css +0 -397
  22. package/dist/OraculoSeccionTopJuegos-55R5XMSK.mjs +0 -12
  23. package/dist/OraculoSeccionTopJuegos-FMFAEVQK.css +0 -397
  24. package/dist/OraculoSeccionTopJuegos-R2K6COO2.mjs +0 -12
  25. package/dist/OraculoSeccionVirtuales-6RBECPDW.css +0 -397
  26. package/dist/OraculoSeccionVirtuales-HZ4BACB3.mjs +0 -12
  27. package/dist/OraculoSeccionVirtuales-Y7YXRA6S.mjs +0 -12
  28. package/dist/chunk-3MSTKPDC.mjs +0 -38928
  29. package/dist/chunk-DHENVY2Z.mjs +0 -69
  30. package/dist/chunk-JSQWAWJ2.mjs +0 -103
  31. package/dist/chunk-NPAHCXJM.mjs +0 -239
  32. package/dist/chunk-PZJSZNXJ.mjs +0 -6
  33. package/dist/chunk-VIPLL6XT.mjs +0 -43
  34. package/dist/chunk-WKDAILVP.mjs +0 -38929
  35. package/dist/chunk-YWS57247.mjs +0 -449
@@ -1,449 +0,0 @@
1
- import {
2
- OraculoButton
3
- } from "./chunk-DHENVY2Z.mjs";
4
-
5
- // src/organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.tsx
6
- import React4, { useRef as useRef2, useState } from "react";
7
- import Box2 from "@mui/material/Box";
8
- import Typography2 from "@mui/material/Typography";
9
- import useMediaQuery from "@mui/material/useMediaQuery";
10
-
11
- // src/molecules/OraculoCarousel/OraculoCarousel.tsx
12
- import React, {
13
- forwardRef,
14
- useCallback,
15
- useImperativeHandle,
16
- useRef
17
- } from "react";
18
- import {
19
- Splide as SplideRaw,
20
- SplideSlide as SplideSlideRaw
21
- } from "@splidejs/react-splide";
22
- var Splide = SplideRaw;
23
- var SplideSlide = SplideSlideRaw;
24
- var OraculoCarousel = forwardRef(
25
- ({
26
- items = [],
27
- renderItem,
28
- perPage = 1,
29
- gap = "0px",
30
- breakpoints,
31
- options = {},
32
- className = "",
33
- onMove
34
- }, ref) => {
35
- const splideRef = useRef(null);
36
- useImperativeHandle(ref, () => ({
37
- next: () => {
38
- var _a;
39
- return (_a = splideRef.current) == null ? void 0 : _a.go(">");
40
- },
41
- prev: () => {
42
- var _a;
43
- return (_a = splideRef.current) == null ? void 0 : _a.go("<");
44
- },
45
- go: (index) => {
46
- var _a;
47
- return (_a = splideRef.current) == null ? void 0 : _a.go(index);
48
- }
49
- }));
50
- const handleMove = useCallback(
51
- (splide) => {
52
- const index = splide.index;
53
- const total = splide.length;
54
- const currentPerPage = splide.options.perPage || 1;
55
- const isStart = index === 0;
56
- const isEnd = index >= total - currentPerPage;
57
- onMove == null ? void 0 : onMove({ index, isStart, isEnd, total });
58
- },
59
- [onMove]
60
- );
61
- const handleMounted = useCallback(
62
- (splide) => {
63
- handleMove(splide);
64
- },
65
- [handleMove]
66
- );
67
- const mergedOptions = {
68
- type: "slide",
69
- trimSpace: false,
70
- drag: true,
71
- pagination: false,
72
- arrows: false,
73
- rewind: false,
74
- focus: "start",
75
- autoWidth: false,
76
- perPage,
77
- gap,
78
- breakpoints,
79
- ...options
80
- };
81
- return /* @__PURE__ */ React.createElement("div", { className, style: { width: "100%" } }, /* @__PURE__ */ React.createElement(
82
- Splide,
83
- {
84
- ref: splideRef,
85
- options: mergedOptions,
86
- onMove: handleMove,
87
- onMounted: handleMounted
88
- },
89
- items.map((item, index) => {
90
- var _a;
91
- return /* @__PURE__ */ React.createElement(SplideSlide, { key: (_a = item.id) != null ? _a : index }, renderItem(item, index));
92
- })
93
- ));
94
- }
95
- );
96
- var OraculoCarousel_default = OraculoCarousel;
97
-
98
- // src/molecules/OraculoWelcomeBanner/OraculoWelcomeBanner.tsx
99
- import React2 from "react";
100
- import Box from "@mui/material/Box";
101
- import Typography from "@mui/material/Typography";
102
- var OraculoWelcomeBanner = ({
103
- title,
104
- amount,
105
- subtitle,
106
- buttonText,
107
- onButtonClick,
108
- backgroundImage,
109
- alt,
110
- className = "",
111
- variant = "small"
112
- }) => {
113
- const symbol = amount ? amount.slice(0, 2) : "";
114
- const value = amount ? amount.slice(2) : "";
115
- const isLarge = variant === "large";
116
- return /* @__PURE__ */ React2.createElement(
117
- Box,
118
- {
119
- className,
120
- sx: {
121
- position: "relative",
122
- width: "100%",
123
- maxWidth: {
124
- xs: 328,
125
- lg: isLarge ? 618 : 456
126
- },
127
- mx: "auto"
128
- }
129
- },
130
- backgroundImage && /* @__PURE__ */ React2.createElement(
131
- Box,
132
- {
133
- sx: {
134
- position: "relative",
135
- width: "100%",
136
- aspectRatio: {
137
- xs: "328 / 188",
138
- lg: isLarge ? "618 / 346" : "456 / 272"
139
- },
140
- borderRadius: "14px",
141
- overflow: "hidden"
142
- }
143
- },
144
- /* @__PURE__ */ React2.createElement(
145
- Box,
146
- {
147
- component: "img",
148
- src: backgroundImage,
149
- alt: alt != null ? alt : "Fondo promocional",
150
- sx: {
151
- width: "100%",
152
- height: "100%",
153
- objectFit: "cover",
154
- objectPosition: {
155
- xs: "50% 0%",
156
- lg: "45% 0%"
157
- },
158
- display: "block"
159
- }
160
- }
161
- )
162
- ),
163
- /* @__PURE__ */ React2.createElement(
164
- Box,
165
- {
166
- sx: {
167
- position: "absolute",
168
- inset: 0,
169
- display: "flex",
170
- alignItems: "center",
171
- justifyContent: "flex-end",
172
- color: "#e7f8ff",
173
- textAlign: "center",
174
- pl: "14%",
175
- pr: { xs: "14%", lg: "15%" }
176
- }
177
- },
178
- /* @__PURE__ */ React2.createElement(
179
- Box,
180
- {
181
- sx: {
182
- maxWidth: "60%",
183
- display: "flex",
184
- flexDirection: "column",
185
- alignItems: "center"
186
- }
187
- },
188
- title && /* @__PURE__ */ React2.createElement(
189
- Typography,
190
- {
191
- sx: {
192
- fontSize: { xs: 12, lg: 20 },
193
- fontWeight: 400,
194
- color: "#e7f8ff"
195
- }
196
- },
197
- title
198
- ),
199
- amount && /* @__PURE__ */ React2.createElement(
200
- Box,
201
- {
202
- component: "p",
203
- sx: {
204
- fontFamily: '"secondary", sans-serif',
205
- lineHeight: { xs: 0.9, lg: 0.87 },
206
- m: "4px 0",
207
- background: "linear-gradient(175deg, #EDC421 -12.56%, #FFFABF 17.99%, #EDC421 49.74%)",
208
- WebkitBackgroundClip: "text",
209
- WebkitTextFillColor: "transparent",
210
- WebkitTextStroke: "0.5px #fff8c1",
211
- filter: "drop-shadow(0px 4px 0px #8D4406) drop-shadow(0px 4px 4px rgba(28, 28, 28, 0.4))",
212
- display: "flex",
213
- alignItems: "baseline",
214
- justifyContent: "center"
215
- }
216
- },
217
- /* @__PURE__ */ React2.createElement(
218
- Box,
219
- {
220
- component: "span",
221
- sx: { fontSize: { xs: 35, lg: 48 }, mr: 0.5 }
222
- },
223
- symbol
224
- ),
225
- /* @__PURE__ */ React2.createElement(
226
- Box,
227
- {
228
- component: "span",
229
- sx: { fontSize: { xs: 52, lg: 77 } }
230
- },
231
- value
232
- )
233
- ),
234
- subtitle && /* @__PURE__ */ React2.createElement(
235
- Typography,
236
- {
237
- sx: {
238
- pb: "20px",
239
- fontSize: 14,
240
- fontWeight: 600,
241
- color: "#e7f8ff"
242
- }
243
- },
244
- subtitle
245
- ),
246
- buttonText && /* @__PURE__ */ React2.createElement(OraculoButton, { onClick: onButtonClick }, buttonText)
247
- )
248
- )
249
- );
250
- };
251
- var OraculoWelcomeBanner_default = OraculoWelcomeBanner;
252
-
253
- // src/atoms/OraculoCarouselDots/OraculoCarouselDots.tsx
254
- import React3 from "react";
255
- var OraculoCarouselDots = ({
256
- total,
257
- active,
258
- onSelect,
259
- className = ""
260
- }) => {
261
- if (total <= 1) return null;
262
- const rootClass = ["orc-dots", className].filter(Boolean).join(" ");
263
- return /* @__PURE__ */ React3.createElement("div", { className: rootClass, role: "tablist" }, Array.from({ length: total }).map((_, i) => /* @__PURE__ */ React3.createElement("span", { key: i, className: "orc-dots__cell" }, /* @__PURE__ */ React3.createElement(
264
- "button",
265
- {
266
- type: "button",
267
- role: "tab",
268
- "aria-selected": i === active,
269
- "aria-label": `Ir al slide ${i + 1}`,
270
- className: "orc-dots__dot" + (i === active ? " orc-dots__dot--active" : ""),
271
- onClick: () => onSelect == null ? void 0 : onSelect(i)
272
- }
273
- ))));
274
- };
275
- var OraculoCarouselDots_default = OraculoCarouselDots;
276
-
277
- // src/organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.tsx
278
- var buildSectionSx = (bgUrl) => ({
279
- width: "100vw",
280
- position: "relative",
281
- left: "50%",
282
- right: "50%",
283
- marginLeft: "-50vw",
284
- marginRight: "-50vw",
285
- py: 8,
286
- color: "#fff",
287
- backgroundImage: `
288
- linear-gradient(to bottom,#121212 0%, rgba(18,18,18,0) 10%),
289
- linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
290
- linear-gradient(to left, #121212 0%, rgba(18,18,18,0) 10%),
291
- linear-gradient(to right, #121212 0%, rgba(18,18,18,0) 10%),
292
- url("${bgUrl}")
293
- `,
294
- backgroundRepeat: "no-repeat",
295
- backgroundPosition: "center",
296
- backgroundSize: "cover"
297
- });
298
- var headlineBaseSx = {
299
- textAlign: "center",
300
- lineHeight: 1.1,
301
- mb: 1.5
302
- };
303
- var hlTopSx = {
304
- display: "inline-block",
305
- fontWeight: 600,
306
- fontSize: 24
307
- };
308
- var hlBottomSx = {
309
- display: "inline-block",
310
- fontSize: 24,
311
- lineHeight: 1.1,
312
- WebkitTextStroke: "0.3px rgba(255, 255, 255, .5)",
313
- textShadow: `
314
- 0 0 2px rgba(255, 255, 255, .95),
315
- 0 0 6px rgba(255, 255, 255, .6),
316
- 0 1px 0 rgba(137, 137, 137, .85)
317
- `
318
- };
319
- var OraculoSeccionBonoBienvenida = ({
320
- headline,
321
- items,
322
- backgroundImageUrl
323
- }) => {
324
- const [hl1 = "", hl2 = ""] = (headline || "").split("\n");
325
- const isMobile = useMediaQuery("(max-width: 767px)");
326
- const showDots = items.length > 1;
327
- const bgUrl = backgroundImageUrl != null ? backgroundImageUrl : "/assets/img/home/BonoBienvenida/Fondobg.png";
328
- const sectionSx = buildSectionSx(bgUrl);
329
- const carouselRef = useRef2(null);
330
- const [navState, setNavState] = useState({ isStart: true, isEnd: false });
331
- const [activeIndex, setActiveIndex] = useState(0);
332
- if (isMobile) {
333
- return /* @__PURE__ */ React4.createElement(
334
- Box2,
335
- {
336
- component: "section",
337
- sx: {
338
- ...sectionSx,
339
- textAlign: "center"
340
- }
341
- },
342
- (hl1 || hl2) && /* @__PURE__ */ React4.createElement(Box2, { sx: headlineBaseSx }, hl1 && /* @__PURE__ */ React4.createElement(Typography2, { component: "span", sx: hlTopSx }, hl1), hl2 && /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement("br", null), /* @__PURE__ */ React4.createElement(Typography2, { component: "span", sx: hlBottomSx }, hl2))),
343
- /* @__PURE__ */ React4.createElement(Box2, null, /* @__PURE__ */ React4.createElement(
344
- OraculoCarousel_default,
345
- {
346
- ref: carouselRef,
347
- items,
348
- perPage: 1,
349
- gap: "12px",
350
- breakpoints: {
351
- 480: {
352
- perPage: 1,
353
- gap: "8px",
354
- padding: { left: "8px", right: "8px" }
355
- },
356
- 768: {
357
- perPage: 1,
358
- gap: "12px",
359
- padding: { left: "8px", right: "8px" }
360
- }
361
- },
362
- options: {
363
- autoWidth: false
364
- },
365
- renderItem: (it) => /* @__PURE__ */ React4.createElement(OraculoWelcomeBanner_default, { ...it, onButtonClick: items[0].onButtonClick }),
366
- onMove: ({ index, isStart, isEnd }) => {
367
- setNavState({ isStart, isEnd });
368
- setActiveIndex(index);
369
- }
370
- }
371
- ), showDots && /* @__PURE__ */ React4.createElement(
372
- OraculoCarouselDots_default,
373
- {
374
- total: items.length,
375
- active: activeIndex,
376
- onSelect: (i) => {
377
- var _a;
378
- setActiveIndex(i);
379
- (_a = carouselRef.current) == null ? void 0 : _a.go(i);
380
- }
381
- }
382
- ))
383
- );
384
- }
385
- return /* @__PURE__ */ React4.createElement(Box2, { component: "section", sx: sectionSx }, /* @__PURE__ */ React4.createElement(
386
- Box2,
387
- {
388
- sx: {
389
- maxWidth: 1200,
390
- mx: 5,
391
- px: 2,
392
- display: "grid",
393
- gridTemplateColumns: "200px auto",
394
- alignItems: "center"
395
- }
396
- },
397
- (hl1 || hl2) && /* @__PURE__ */ React4.createElement(
398
- Box2,
399
- {
400
- sx: {
401
- display: "flex",
402
- alignItems: "center",
403
- justifyContent: "flex-start",
404
- minHeight: "100%"
405
- }
406
- },
407
- /* @__PURE__ */ React4.createElement(
408
- Box2,
409
- {
410
- sx: {
411
- ...headlineBaseSx,
412
- textAlign: "left",
413
- mb: 0
414
- }
415
- },
416
- hl1 && /* @__PURE__ */ React4.createElement(Typography2, { component: "span", sx: hlTopSx }, hl1),
417
- hl2 && /* @__PURE__ */ React4.createElement(React4.Fragment, null, /* @__PURE__ */ React4.createElement("br", null), /* @__PURE__ */ React4.createElement(Typography2, { component: "span", sx: hlBottomSx }, hl2))
418
- )
419
- ),
420
- /* @__PURE__ */ React4.createElement(
421
- Box2,
422
- {
423
- sx: {
424
- display: "flex",
425
- justifyContent: "center",
426
- alignItems: "center",
427
- flexWrap: "nowrap",
428
- gap: 4
429
- }
430
- },
431
- items.map((it, idx) => /* @__PURE__ */ React4.createElement(
432
- OraculoWelcomeBanner_default,
433
- {
434
- key: idx,
435
- onButtonClick: it.onButtonClick,
436
- ...it
437
- }
438
- ))
439
- )
440
- ));
441
- };
442
- var OraculoSeccionBonoBienvenida_default = OraculoSeccionBonoBienvenida;
443
-
444
- export {
445
- OraculoCarouselDots_default,
446
- OraculoCarousel_default,
447
- OraculoWelcomeBanner_default,
448
- OraculoSeccionBonoBienvenida_default
449
- };