oraculo-ui 0.1.12 → 0.1.14

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 (76) hide show
  1. package/dist/{OraculoSeccionBonoBienvenida-2APXZQQA.mjs → OraculoSeccionBonoBienvenida-EG5U752J.mjs} +2 -2
  2. package/dist/{OraculoSeccionCasino-ORWFZCMV.mjs → OraculoSeccionCasino-NSM2LPDZ.mjs} +5 -5
  3. package/dist/OraculoSeccionCasino-TFMAW7DD.mjs +12 -0
  4. package/dist/{OraculoSeccionCasinoEnVivo-ISYMJSUN.mjs → OraculoSeccionCasinoEnVivo-DSHBIQFL.mjs} +2 -2
  5. package/dist/{OraculoSeccionClubOlimpo-TV3LABJ5.mjs → OraculoSeccionClubOlimpo-2EZ3LMIL.mjs} +2 -2
  6. package/dist/OraculoSeccionDestacados-JNMBNCDQ.mjs +12 -0
  7. package/dist/OraculoSeccionDestacados-TFPJSEHF.mjs +12 -0
  8. package/dist/OraculoSeccionTopJuegos-55R5XMSK.mjs +12 -0
  9. package/dist/OraculoSeccionTopJuegos-R2K6COO2.mjs +12 -0
  10. package/dist/{OraculoSeccionVirtuales-FKHGLEVT.mjs → OraculoSeccionVirtuales-HZ4BACB3.mjs} +5 -5
  11. package/dist/OraculoSeccionVirtuales-Y7YXRA6S.mjs +12 -0
  12. package/dist/chunk-3MSTKPDC.mjs +38928 -0
  13. package/dist/{chunk-IJQLK4NO.mjs → chunk-DHENVY2Z.mjs} +10 -14
  14. package/dist/chunk-JSQWAWJ2.mjs +103 -0
  15. package/dist/chunk-NPAHCXJM.mjs +239 -0
  16. package/dist/{chunk-FROEVP3X.mjs → chunk-WKDAILVP.mjs} +472 -640
  17. package/dist/chunk-YWS57247.mjs +449 -0
  18. package/dist/index.d.mts +6 -20
  19. package/dist/index.d.ts +6 -20
  20. package/dist/index.js +937 -1165
  21. package/dist/index.mjs +9 -9
  22. package/package.json +1 -1
  23. package/dist/OraculoSeccionBonoBienvenida-4ZHLRFV2.css +0 -221
  24. package/dist/OraculoSeccionBonoBienvenida-4ZHLRFV2.css.map +0 -1
  25. package/dist/OraculoSeccionBonoBienvenida-6L54EBL3.mjs +0 -9
  26. package/dist/OraculoSeccionBonoBienvenida-6L54EBL3.mjs.map +0 -1
  27. package/dist/OraculoSeccionCasino-CPSKAAFH.css +0 -398
  28. package/dist/OraculoSeccionCasino-CPSKAAFH.css.map +0 -1
  29. package/dist/OraculoSeccionCasino-FHD2WBDU.mjs +0 -13
  30. package/dist/OraculoSeccionCasino-FHD2WBDU.mjs.map +0 -1
  31. package/dist/OraculoSeccionCasinoEnVivo-7W64K4YQ.css +0 -157
  32. package/dist/OraculoSeccionCasinoEnVivo-7W64K4YQ.css.map +0 -1
  33. package/dist/OraculoSeccionCasinoEnVivo-EPVIACRV.mjs +0 -9
  34. package/dist/OraculoSeccionCasinoEnVivo-EPVIACRV.mjs.map +0 -1
  35. package/dist/OraculoSeccionClubOlimpo-63QCT4A2.mjs +0 -10
  36. package/dist/OraculoSeccionClubOlimpo-63QCT4A2.mjs.map +0 -1
  37. package/dist/OraculoSeccionClubOlimpo-BLUJXLUC.mjs +0 -8
  38. package/dist/OraculoSeccionClubOlimpo-BLUJXLUC.mjs.map +0 -1
  39. package/dist/OraculoSeccionClubOlimpo-F2AFK4G3.css +0 -274
  40. package/dist/OraculoSeccionClubOlimpo-F2AFK4G3.css.map +0 -1
  41. package/dist/OraculoSeccionClubOlimpo-ZCBMTUL3.css +0 -117
  42. package/dist/OraculoSeccionClubOlimpo-ZCBMTUL3.css.map +0 -1
  43. package/dist/OraculoSeccionDestacados-5RFVEBFL.mjs +0 -13
  44. package/dist/OraculoSeccionDestacados-5RFVEBFL.mjs.map +0 -1
  45. package/dist/OraculoSeccionDestacados-6D4LKX4H.mjs +0 -12
  46. package/dist/OraculoSeccionDestacados-AMMYUK67.css +0 -398
  47. package/dist/OraculoSeccionDestacados-AMMYUK67.css.map +0 -1
  48. package/dist/OraculoSeccionTopJuegos-K6CHEKEP.mjs +0 -13
  49. package/dist/OraculoSeccionTopJuegos-K6CHEKEP.mjs.map +0 -1
  50. package/dist/OraculoSeccionTopJuegos-LEFQWP7T.mjs +0 -12
  51. package/dist/OraculoSeccionTopJuegos-XBGNNR6G.css +0 -398
  52. package/dist/OraculoSeccionTopJuegos-XBGNNR6G.css.map +0 -1
  53. package/dist/OraculoSeccionVirtuales-NEIWD2BT.mjs +0 -13
  54. package/dist/OraculoSeccionVirtuales-NEIWD2BT.mjs.map +0 -1
  55. package/dist/OraculoSeccionVirtuales-SSM6EDST.css +0 -398
  56. package/dist/OraculoSeccionVirtuales-SSM6EDST.css.map +0 -1
  57. package/dist/chunk-2D7ZJMJV.mjs +0 -118
  58. package/dist/chunk-4LBAYKDQ.mjs +0 -475
  59. package/dist/chunk-FIOWVLJP.mjs +0 -7
  60. package/dist/chunk-FIOWVLJP.mjs.map +0 -1
  61. package/dist/chunk-IGAIIVJZ.mjs +0 -74
  62. package/dist/chunk-IGAIIVJZ.mjs.map +0 -1
  63. package/dist/chunk-MC4XEBI3.mjs +0 -1277
  64. package/dist/chunk-MC4XEBI3.mjs.map +0 -1
  65. package/dist/chunk-PVY5Z3JS.mjs +0 -249
  66. package/dist/chunk-PYHDJZX3.mjs +0 -476
  67. package/dist/chunk-PYHDJZX3.mjs.map +0 -1
  68. package/dist/chunk-THUJNRMX.mjs +0 -119
  69. package/dist/chunk-THUJNRMX.mjs.map +0 -1
  70. package/dist/chunk-WTK2IT5O.mjs +0 -250
  71. package/dist/chunk-WTK2IT5O.mjs.map +0 -1
  72. package/dist/chunk-XNMUIY72.mjs +0 -10
  73. package/dist/chunk-XNMUIY72.mjs.map +0 -1
  74. package/dist/index.css.map +0 -1
  75. package/dist/index.js.map +0 -1
  76. package/dist/index.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  // src/atoms/OraculoButton/OraculoButton.tsx
2
+ import React from "react";
2
3
  import { Link as MuiLink } from "@mui/material";
3
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  function OraculoButton({
5
5
  children,
6
6
  onClick,
@@ -33,14 +33,10 @@ function OraculoButton({
33
33
  isIconOnly ? "orc-btn--iconOnly" : "",
34
34
  className
35
35
  ].filter(Boolean).join(" ");
36
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [
37
- leftIcon && /* @__PURE__ */ jsx("span", { className: "orc-btn__icon", children: leftIcon }),
38
- !isIconOnly && /* @__PURE__ */ jsx("span", { className: "orc-btn__label", children }),
39
- rightIcon && /* @__PURE__ */ jsx("span", { className: "orc-btn__icon", children: rightIcon })
40
- ] });
36
+ const content = /* @__PURE__ */ React.createElement(React.Fragment, null, leftIcon && /* @__PURE__ */ React.createElement("span", { className: "orc-btn__icon" }, leftIcon), !isIconOnly && /* @__PURE__ */ React.createElement("span", { className: "orc-btn__label" }, children), rightIcon && /* @__PURE__ */ React.createElement("span", { className: "orc-btn__icon" }, rightIcon));
41
37
  const ariaDisabled = disabled ? true : void 0;
42
38
  if (href) {
43
- return /* @__PURE__ */ jsx(
39
+ return /* @__PURE__ */ React.createElement(
44
40
  MuiLink,
45
41
  {
46
42
  href,
@@ -50,21 +46,21 @@ function OraculoButton({
50
46
  "aria-disabled": ariaDisabled,
51
47
  tabIndex: ariaDisabled ? -1 : void 0,
52
48
  className: cls,
53
- onClick: ariaDisabled ? (e) => e.preventDefault() : onClick,
54
- children: content
55
- }
49
+ onClick: ariaDisabled ? (e) => e.preventDefault() : onClick
50
+ },
51
+ content
56
52
  );
57
53
  }
58
- return /* @__PURE__ */ jsx(
54
+ return /* @__PURE__ */ React.createElement(
59
55
  "button",
60
56
  {
61
57
  type,
62
58
  onClick,
63
59
  disabled: !!ariaDisabled,
64
60
  "aria-label": ariaLabel,
65
- className: cls,
66
- children: content
67
- }
61
+ className: cls
62
+ },
63
+ content
68
64
  );
69
65
  }
70
66
 
@@ -0,0 +1,103 @@
1
+ import {
2
+ OraculoButton
3
+ } from "./chunk-DHENVY2Z.mjs";
4
+
5
+ // src/organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.tsx
6
+ import React2, { useLayoutEffect, useRef } from "react";
7
+
8
+ // src/molecules/OraculoClubOlimpoVisual/OraculoClubOlimpoVisual.tsx
9
+ import React from "react";
10
+ var OraculoClubOlimpoVisual = ({
11
+ text,
12
+ buttonLabel = "Conoce m\xE1s",
13
+ onClick,
14
+ imgAlt = "Club Olimpo",
15
+ imgSrcMobile,
16
+ imgSrcDesktopBg,
17
+ imgSrcDesktopLogo
18
+ }) => {
19
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "orc-co-bgMobile" }, /* @__PURE__ */ React.createElement(
20
+ "img",
21
+ {
22
+ src: imgSrcMobile,
23
+ alt: imgAlt,
24
+ className: "orc-co-bgMobileImg"
25
+ }
26
+ )), /* @__PURE__ */ React.createElement("div", { className: "orc-co-bgDesktop" }, imgSrcDesktopBg && /* @__PURE__ */ React.createElement("div", { className: "orc-co-fillHost" }, /* @__PURE__ */ React.createElement(
27
+ "img",
28
+ {
29
+ src: imgSrcDesktopBg,
30
+ alt: `${imgAlt} fondo`,
31
+ className: "orc-co-bgDesktopImg"
32
+ }
33
+ )), imgSrcDesktopLogo && /* @__PURE__ */ React.createElement("div", { className: "orc-co-logo" }, /* @__PURE__ */ React.createElement(
34
+ "img",
35
+ {
36
+ src: imgSrcDesktopLogo,
37
+ alt: `${imgAlt} logo`,
38
+ className: "orc-co-logoImg"
39
+ }
40
+ )), /* @__PURE__ */ React.createElement("div", { className: "orc-co-desktopContent" }, /* @__PURE__ */ React.createElement("p", { className: "orc-co-captionDesktop" }, text), /* @__PURE__ */ React.createElement(OraculoButton, { onClick, variant: "primary", size: "md" }, buttonLabel))), /* @__PURE__ */ React.createElement("div", { className: "orc-co-bottom" }, /* @__PURE__ */ React.createElement("p", { className: "orc-co-caption" }, text), /* @__PURE__ */ React.createElement(OraculoButton, { onClick, variant: "primary", size: "md" }, buttonLabel)));
41
+ };
42
+ var OraculoClubOlimpoVisual_default = OraculoClubOlimpoVisual;
43
+
44
+ // src/organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.tsx
45
+ var OraculoSeccionClubOlimpo = ({
46
+ className = "",
47
+ fullBleed = true,
48
+ items,
49
+ selectedIndex = 0,
50
+ ariaLabel
51
+ }) => {
52
+ const rootRef = useRef(null);
53
+ const bottomRef = useRef(null);
54
+ if (!items) return null;
55
+ const safeIndex = Math.min(Math.max(selectedIndex, 0), 1);
56
+ const item = items;
57
+ useLayoutEffect(() => {
58
+ if (!rootRef.current || !bottomRef.current) return;
59
+ if (typeof ResizeObserver === "undefined") return;
60
+ const root = rootRef.current;
61
+ const bottom = bottomRef.current;
62
+ const update = () => {
63
+ root.style.setProperty(
64
+ "--orc-co-bottomH",
65
+ `${bottom.offsetHeight + 16}px`
66
+ );
67
+ };
68
+ const ro = new ResizeObserver(update);
69
+ ro.observe(bottom);
70
+ update();
71
+ return () => ro.disconnect();
72
+ }, []);
73
+ const rootClass = [
74
+ "orc-co-wrap",
75
+ fullBleed ? "orc-co-fullBleed" : "",
76
+ className
77
+ ].filter(Boolean).join(" ");
78
+ return /* @__PURE__ */ React2.createElement(
79
+ "section",
80
+ {
81
+ ref: rootRef,
82
+ className: rootClass,
83
+ "aria-label": ariaLabel || item.imgAlt || "Club Olimpo"
84
+ },
85
+ /* @__PURE__ */ React2.createElement("div", { ref: bottomRef }, /* @__PURE__ */ React2.createElement(
86
+ OraculoClubOlimpoVisual_default,
87
+ {
88
+ text: item.text,
89
+ onClick: item.onClick,
90
+ imgAlt: item.imgAlt,
91
+ imgSrcMobile: item.images.mobile,
92
+ imgSrcDesktopBg: item.images.desktopBg,
93
+ imgSrcDesktopLogo: item.images.desktopLogo
94
+ }
95
+ ))
96
+ );
97
+ };
98
+ var OraculoSeccionClubOlimpo_default = OraculoSeccionClubOlimpo;
99
+
100
+ export {
101
+ OraculoClubOlimpoVisual_default,
102
+ OraculoSeccionClubOlimpo_default
103
+ };
@@ -0,0 +1,239 @@
1
+ import {
2
+ OraculoButton
3
+ } from "./chunk-DHENVY2Z.mjs";
4
+
5
+ // src/organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.tsx
6
+ import React2 from "react";
7
+ import Box2 from "@mui/material/Box";
8
+ import Stack from "@mui/material/Stack";
9
+ import Typography2 from "@mui/material/Typography";
10
+
11
+ // src/molecules/OraculoLiveCasinoCard/OraculoLiveCasinoCard.tsx
12
+ import React from "react";
13
+ import Box from "@mui/material/Box";
14
+ import Typography from "@mui/material/Typography";
15
+ var OraculoLiveCasinoCard = ({
16
+ logo,
17
+ provider,
18
+ providerName,
19
+ machine,
20
+ onClick
21
+ }) => {
22
+ var _a;
23
+ return /* @__PURE__ */ React.createElement(
24
+ Box,
25
+ {
26
+ onClick,
27
+ sx: {
28
+ flex: "0 0 auto",
29
+ position: "relative",
30
+ borderRadius: "20px",
31
+ overflow: "hidden",
32
+ width: { xs: 100, md: 180 },
33
+ height: { xs: 200, md: 380 },
34
+ transition: "width .50s ease, transform .28s ease",
35
+ willChange: "width, transform",
36
+ cursor: "pointer",
37
+ zIndex: 0,
38
+ "&:hover": {
39
+ zIndex: 2,
40
+ width: { md: 260, xs: 110 }
41
+ },
42
+ "&:hover .orc-live-provider-label": {
43
+ opacity: 1
44
+ }
45
+ }
46
+ },
47
+ /* @__PURE__ */ React.createElement(
48
+ Box,
49
+ {
50
+ component: "img",
51
+ src: logo,
52
+ alt: `Juego ${machine != null ? machine : ""}`,
53
+ sx: {
54
+ position: "absolute",
55
+ inset: 0,
56
+ width: "100%",
57
+ height: "100%",
58
+ objectFit: "cover",
59
+ display: "block"
60
+ }
61
+ }
62
+ ),
63
+ /* @__PURE__ */ React.createElement(
64
+ Box,
65
+ {
66
+ className: "orc-live-provider-label",
67
+ sx: {
68
+ position: "absolute",
69
+ left: "50%",
70
+ top: { xs: "75%", md: "80%" },
71
+ transform: "translate(-50%, -50%)",
72
+ zIndex: 3,
73
+ opacity: 0,
74
+ transition: "opacity .25s ease",
75
+ pointerEvents: "none"
76
+ }
77
+ },
78
+ /* @__PURE__ */ React.createElement(
79
+ Typography,
80
+ {
81
+ sx: {
82
+ color: "#fff",
83
+ fontWeight: 700,
84
+ fontSize: { xs: 11, md: 14 },
85
+ textTransform: "capitalize"
86
+ }
87
+ },
88
+ (_a = provider != null ? provider : providerName) != null ? _a : ""
89
+ )
90
+ )
91
+ );
92
+ };
93
+ var OraculoLiveCasinoCard_default = OraculoLiveCasinoCard;
94
+
95
+ // src/organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.tsx
96
+ var OraculoSeccionCasinoEnVivo = ({
97
+ items,
98
+ title = "Casino en vivo",
99
+ subtitle = "Disfruta la emoci\xF3n en tus juegos favoritos y gana en tiempo real.",
100
+ backgroundMobileUrl = "/assets/img/home/CasinoEnVivo/FondoMobile3.png",
101
+ backgroundDesktopUrl = "/assets/img/home/CasinoEnVivo/FondoDesktop3.png",
102
+ onCardClick,
103
+ onViewMore,
104
+ className
105
+ }) => {
106
+ return /* @__PURE__ */ React2.createElement(
107
+ Box2,
108
+ {
109
+ className,
110
+ sx: {
111
+ position: "relative",
112
+ width: "100vw",
113
+ left: "50%",
114
+ right: "50%",
115
+ transform: "translateX(-50%)",
116
+ color: "white",
117
+ overflow: "hidden"
118
+ }
119
+ },
120
+ /* @__PURE__ */ React2.createElement(
121
+ Box2,
122
+ {
123
+ sx: {
124
+ position: "absolute",
125
+ inset: 0,
126
+ backgroundImage: {
127
+ xs: `
128
+ linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
129
+ linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
130
+ url('${backgroundMobileUrl}')
131
+ `,
132
+ md: `
133
+ linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
134
+ linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
135
+ url('${backgroundDesktopUrl}')
136
+ `
137
+ },
138
+ backgroundSize: "cover",
139
+ backgroundPosition: "center",
140
+ backgroundRepeat: "no-repeat",
141
+ zIndex: 0
142
+ }
143
+ }
144
+ ),
145
+ /* @__PURE__ */ React2.createElement(
146
+ Box2,
147
+ {
148
+ sx: {
149
+ position: "relative",
150
+ zIndex: 1,
151
+ maxWidth: 1200,
152
+ height: { xs: "450px", md: "550px" },
153
+ mx: "auto",
154
+ px: { xs: 2.5, md: 6 },
155
+ display: "flex",
156
+ flexDirection: { xs: "column", md: "row" },
157
+ alignItems: { xs: "center", md: "center" },
158
+ justifyContent: "center",
159
+ gap: { xs: 0, md: 15 },
160
+ textAlign: { xs: "center", md: "left" }
161
+ }
162
+ },
163
+ /* @__PURE__ */ React2.createElement(Stack, { spacing: 3, sx: { maxWidth: { md: 280 } } }, /* @__PURE__ */ React2.createElement(
164
+ Typography2,
165
+ {
166
+ variant: "h4",
167
+ sx: {
168
+ fontWeight: 800,
169
+ fontSize: { xs: 24, md: 40 },
170
+ WebkitTextStroke: "0.5px rgba(255, 255, 255, .5)",
171
+ textShadow: "0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"
172
+ }
173
+ },
174
+ title
175
+ ), /* @__PURE__ */ React2.createElement(
176
+ Typography2,
177
+ {
178
+ sx: {
179
+ fontSize: { xs: 14, md: 18 },
180
+ color: "rgba(255,255,255,0.9)",
181
+ marginX: { xs: 4, md: 0 },
182
+ lineHeight: 1.5
183
+ }
184
+ },
185
+ subtitle
186
+ ), /* @__PURE__ */ React2.createElement(Box2, { sx: { display: { xs: "none", md: "block" } } }, /* @__PURE__ */ React2.createElement(
187
+ OraculoButton,
188
+ {
189
+ variant: "primary",
190
+ size: "md",
191
+ onClick: () => onViewMore == null ? void 0 : onViewMore()
192
+ },
193
+ "Ver m\xE1s"
194
+ ))),
195
+ /* @__PURE__ */ React2.createElement(
196
+ Box2,
197
+ {
198
+ sx: {
199
+ display: "flex",
200
+ gap: { xs: 2, md: 3 },
201
+ justifyContent: "center",
202
+ overflowX: { xs: "auto", md: "visible" },
203
+ py: { xs: 3, md: 0 },
204
+ alignItems: "center"
205
+ }
206
+ },
207
+ (items != null ? items : []).slice(0, 3).map((juego, idx) => {
208
+ var _a, _b;
209
+ return /* @__PURE__ */ React2.createElement(
210
+ OraculoLiveCasinoCard_default,
211
+ {
212
+ key: (_a = juego.orden) != null ? _a : idx,
213
+ logo: `https://olimpo.bet${(_b = juego.logo) != null ? _b : ""}`,
214
+ provider: juego.provider,
215
+ providerName: juego.web_name,
216
+ machine: juego.machine,
217
+ onClick: () => onCardClick == null ? void 0 : onCardClick(juego, idx)
218
+ }
219
+ );
220
+ })
221
+ ),
222
+ /* @__PURE__ */ React2.createElement(Box2, { sx: { display: { xs: "block", md: "none" } } }, /* @__PURE__ */ React2.createElement(
223
+ OraculoButton,
224
+ {
225
+ variant: "primary",
226
+ size: "lg",
227
+ onClick: () => onViewMore == null ? void 0 : onViewMore()
228
+ },
229
+ "Ver m\xE1s"
230
+ ))
231
+ )
232
+ );
233
+ };
234
+ var OraculoSeccionCasinoEnVivo_default = OraculoSeccionCasinoEnVivo;
235
+
236
+ export {
237
+ OraculoLiveCasinoCard_default,
238
+ OraculoSeccionCasinoEnVivo_default
239
+ };