oraculo-ui 0.1.7 → 0.1.9

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 (34) hide show
  1. package/dist/OraculoSeccionBonoBienvenida-EDS6UQVL.mjs +9 -0
  2. package/dist/OraculoSeccionBonoBienvenida-MGMLDCRG.css +220 -0
  3. package/dist/OraculoSeccionCasino-GXRRODCJ.mjs +11 -0
  4. package/dist/OraculoSeccionCasino-Q2VV44XD.css +216 -0
  5. package/dist/OraculoSeccionCasinoEnVivo-ISYMJSUN.mjs +8 -0
  6. package/dist/OraculoSeccionCasinoEnVivo-MMXETHJA.css +156 -0
  7. package/dist/OraculoSeccionClubOlimpo-APZYPQ5V.css +116 -0
  8. package/dist/OraculoSeccionClubOlimpo-MYTRV5IN.css +273 -0
  9. package/dist/OraculoSeccionClubOlimpo-TV3LABJ5.mjs +9 -0
  10. package/dist/OraculoSeccionClubOlimpo-XGB4KUKX.mjs +7 -0
  11. package/dist/OraculoSeccionDestacados-QU6BT2NM.mjs +18 -0
  12. package/dist/OraculoSeccionDestacados-WQX2GQNY.css +397 -0
  13. package/dist/OraculoSeccionTopJuegos-3AR4L7SZ.css +59 -0
  14. package/dist/OraculoSeccionTopJuegos-FZUYQEMC.mjs +8 -0
  15. package/dist/OraculoSeccionVirtuales-MGW5X23B.mjs +11 -0
  16. package/dist/OraculoSeccionVirtuales-OP2CSKUP.css +216 -0
  17. package/dist/chunk-2D7ZJMJV.mjs +118 -0
  18. package/dist/chunk-5GTDKE3I.mjs +30 -0
  19. package/dist/chunk-AFPCFXMZ.mjs +174 -0
  20. package/dist/chunk-AIT7B2J3.mjs +192 -0
  21. package/dist/chunk-DKP3HTEP.mjs +183 -0
  22. package/dist/chunk-IJQLK4NO.mjs +73 -0
  23. package/dist/chunk-PVY5Z3JS.mjs +249 -0
  24. package/dist/chunk-PXIOKT7L.mjs +39177 -0
  25. package/dist/chunk-PZJSZNXJ.mjs +6 -0
  26. package/dist/chunk-VHW77D2M.mjs +91 -0
  27. package/dist/chunk-VIPLL6XT.mjs +43 -0
  28. package/dist/chunk-WPLILXPP.mjs +389 -0
  29. package/dist/chunk-YY5T37WR.mjs +175 -0
  30. package/dist/index.d.mts +45 -2
  31. package/dist/index.d.ts +45 -2
  32. package/dist/index.js +39897 -1277
  33. package/dist/index.mjs +41 -1812
  34. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ // src/atoms/OraculoButton/OraculoButton.tsx
2
+ import { Link as MuiLink } from "@mui/material";
3
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
+ function OraculoButton({
5
+ children,
6
+ onClick,
7
+ href,
8
+ target,
9
+ rel,
10
+ type = "button",
11
+ disabled = false,
12
+ variant = "primary",
13
+ size,
14
+ fullWidth = false,
15
+ fullHeight = false,
16
+ className = "",
17
+ ariaLabel,
18
+ leftIcon,
19
+ rightIcon,
20
+ iconOnly
21
+ }) {
22
+ const hasText = !!children && children !== true;
23
+ const hasLeft = !!leftIcon;
24
+ const hasRight = !!rightIcon;
25
+ const onlyOneIcon = (hasLeft ? 1 : 0) + (hasRight ? 1 : 0) === 1;
26
+ const isIconOnly = iconOnly != null ? iconOnly : onlyOneIcon && !hasText;
27
+ const cls = [
28
+ "orc-btn",
29
+ variant === "secondary" ? "orc-btn--secondary" : variant === "tertiary" ? "orc-btn--tertiary" : "orc-btn--primary",
30
+ size ? `orc-btn--${size}` : "",
31
+ fullWidth ? "orc-btn--full" : "",
32
+ fullHeight ? "orc-btn--fullHeight" : "",
33
+ isIconOnly ? "orc-btn--iconOnly" : "",
34
+ className
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
+ ] });
41
+ const ariaDisabled = disabled ? true : void 0;
42
+ if (href) {
43
+ return /* @__PURE__ */ jsx(
44
+ MuiLink,
45
+ {
46
+ href,
47
+ target,
48
+ rel,
49
+ "aria-label": ariaLabel,
50
+ "aria-disabled": ariaDisabled,
51
+ tabIndex: ariaDisabled ? -1 : void 0,
52
+ className: cls,
53
+ onClick: ariaDisabled ? (e) => e.preventDefault() : onClick,
54
+ children: content
55
+ }
56
+ );
57
+ }
58
+ return /* @__PURE__ */ jsx(
59
+ "button",
60
+ {
61
+ type,
62
+ onClick,
63
+ disabled: !!ariaDisabled,
64
+ "aria-label": ariaLabel,
65
+ className: cls,
66
+ children: content
67
+ }
68
+ );
69
+ }
70
+
71
+ export {
72
+ OraculoButton
73
+ };
@@ -0,0 +1,249 @@
1
+ import {
2
+ OraculoButton
3
+ } from "./chunk-IJQLK4NO.mjs";
4
+
5
+ // src/organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.tsx
6
+ import Box2 from "@mui/material/Box";
7
+ import Stack from "@mui/material/Stack";
8
+ import Typography2 from "@mui/material/Typography";
9
+
10
+ // src/molecules/OraculoLiveCasinoCard/OraculoLiveCasinoCard.tsx
11
+ import Box from "@mui/material/Box";
12
+ import Typography from "@mui/material/Typography";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ var OraculoLiveCasinoCard = ({
15
+ logo,
16
+ provider,
17
+ providerName,
18
+ machine,
19
+ onClick
20
+ }) => {
21
+ var _a;
22
+ return /* @__PURE__ */ jsxs(
23
+ Box,
24
+ {
25
+ onClick,
26
+ sx: {
27
+ flex: "0 0 auto",
28
+ position: "relative",
29
+ borderRadius: "20px",
30
+ overflow: "hidden",
31
+ width: { xs: 100, md: 180 },
32
+ height: { xs: 200, md: 380 },
33
+ transition: "width .50s ease, transform .28s ease",
34
+ willChange: "width, transform",
35
+ cursor: "pointer",
36
+ zIndex: 0,
37
+ "&:hover": {
38
+ zIndex: 2,
39
+ width: { md: 260, xs: 110 }
40
+ },
41
+ "&:hover .orc-live-provider-label": {
42
+ opacity: 1
43
+ }
44
+ },
45
+ children: [
46
+ /* @__PURE__ */ jsx(
47
+ Box,
48
+ {
49
+ component: "img",
50
+ src: logo,
51
+ alt: `Juego ${machine != null ? machine : ""}`,
52
+ sx: {
53
+ position: "absolute",
54
+ inset: 0,
55
+ width: "100%",
56
+ height: "100%",
57
+ objectFit: "cover",
58
+ display: "block"
59
+ }
60
+ }
61
+ ),
62
+ /* @__PURE__ */ jsx(
63
+ Box,
64
+ {
65
+ className: "orc-live-provider-label",
66
+ sx: {
67
+ position: "absolute",
68
+ left: "50%",
69
+ top: { xs: "75%", md: "80%" },
70
+ transform: "translate(-50%, -50%)",
71
+ zIndex: 3,
72
+ opacity: 0,
73
+ transition: "opacity .25s ease",
74
+ pointerEvents: "none"
75
+ },
76
+ children: /* @__PURE__ */ jsx(
77
+ Typography,
78
+ {
79
+ sx: {
80
+ color: "#fff",
81
+ fontWeight: 700,
82
+ fontSize: { xs: 11, md: 14 },
83
+ textTransform: "capitalize"
84
+ },
85
+ children: (_a = provider != null ? provider : providerName) != null ? _a : ""
86
+ }
87
+ )
88
+ }
89
+ )
90
+ ]
91
+ }
92
+ );
93
+ };
94
+ var OraculoLiveCasinoCard_default = OraculoLiveCasinoCard;
95
+
96
+ // src/organisms/OraculoSeccionCasinoEnVivo/OraculoSeccionCasinoEnVivo.tsx
97
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
98
+ var OraculoSeccionCasinoEnVivo = ({
99
+ items,
100
+ title = "Casino en vivo",
101
+ subtitle = "Disfruta la emoci\xF3n en tus juegos favoritos y gana en tiempo real.",
102
+ backgroundMobileUrl = "/assets/img/home/CasinoEnVivo/FondoMobile3.png",
103
+ backgroundDesktopUrl = "/assets/img/home/CasinoEnVivo/FondoDesktop3.png",
104
+ onCardClick,
105
+ onViewMore,
106
+ className
107
+ }) => {
108
+ return /* @__PURE__ */ jsxs2(
109
+ Box2,
110
+ {
111
+ className,
112
+ sx: {
113
+ position: "relative",
114
+ width: "100vw",
115
+ left: "50%",
116
+ right: "50%",
117
+ transform: "translateX(-50%)",
118
+ color: "white",
119
+ overflow: "hidden"
120
+ },
121
+ children: [
122
+ /* @__PURE__ */ jsx2(
123
+ Box2,
124
+ {
125
+ sx: {
126
+ position: "absolute",
127
+ inset: 0,
128
+ backgroundImage: {
129
+ xs: `
130
+ linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
131
+ linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
132
+ url('${backgroundMobileUrl}')
133
+ `,
134
+ md: `
135
+ linear-gradient(to bottom, #121212 0%, rgba(18,18,18,0) 10%),
136
+ linear-gradient(to top, #121212 0%, rgba(18,18,18,0) 10%),
137
+ url('${backgroundDesktopUrl}')
138
+ `
139
+ },
140
+ backgroundSize: "cover",
141
+ backgroundPosition: "center",
142
+ backgroundRepeat: "no-repeat",
143
+ zIndex: 0
144
+ }
145
+ }
146
+ ),
147
+ /* @__PURE__ */ jsxs2(
148
+ Box2,
149
+ {
150
+ sx: {
151
+ position: "relative",
152
+ zIndex: 1,
153
+ maxWidth: 1200,
154
+ height: { xs: "450px", md: "550px" },
155
+ mx: "auto",
156
+ px: { xs: 2.5, md: 6 },
157
+ display: "flex",
158
+ flexDirection: { xs: "column", md: "row" },
159
+ alignItems: { xs: "center", md: "center" },
160
+ justifyContent: "center",
161
+ gap: { xs: 0, md: 15 },
162
+ textAlign: { xs: "center", md: "left" }
163
+ },
164
+ children: [
165
+ /* @__PURE__ */ jsxs2(Stack, { spacing: 3, sx: { maxWidth: { md: 280 } }, children: [
166
+ /* @__PURE__ */ jsx2(
167
+ Typography2,
168
+ {
169
+ variant: "h4",
170
+ sx: {
171
+ fontWeight: 800,
172
+ fontSize: { xs: 24, md: 40 },
173
+ WebkitTextStroke: "0.5px rgba(255, 255, 255, .5)",
174
+ textShadow: "0 0 2px rgba(255, 255, 255, .95),0 0 4px rgba(255, 255, 255, .6),0 1px 0 #898989"
175
+ },
176
+ children: title
177
+ }
178
+ ),
179
+ /* @__PURE__ */ jsx2(
180
+ Typography2,
181
+ {
182
+ sx: {
183
+ fontSize: { xs: 14, md: 18 },
184
+ color: "rgba(255,255,255,0.9)",
185
+ marginX: { xs: 4, md: 0 },
186
+ lineHeight: 1.5
187
+ },
188
+ children: subtitle
189
+ }
190
+ ),
191
+ /* @__PURE__ */ jsx2(Box2, { sx: { display: { xs: "none", md: "block" } }, children: /* @__PURE__ */ jsx2(
192
+ OraculoButton,
193
+ {
194
+ variant: "primary",
195
+ size: "md",
196
+ onClick: () => onViewMore == null ? void 0 : onViewMore(),
197
+ children: "Ver m\xE1s"
198
+ }
199
+ ) })
200
+ ] }),
201
+ /* @__PURE__ */ jsx2(
202
+ Box2,
203
+ {
204
+ sx: {
205
+ display: "flex",
206
+ gap: { xs: 2, md: 3 },
207
+ justifyContent: "center",
208
+ overflowX: { xs: "auto", md: "visible" },
209
+ py: { xs: 3, md: 0 },
210
+ alignItems: "center"
211
+ },
212
+ children: (items != null ? items : []).slice(0, 3).map((juego, idx) => {
213
+ var _a, _b;
214
+ return /* @__PURE__ */ jsx2(
215
+ OraculoLiveCasinoCard_default,
216
+ {
217
+ logo: `https://olimpo.bet${(_b = juego.logo) != null ? _b : ""}`,
218
+ provider: juego.provider,
219
+ providerName: juego.web_name,
220
+ machine: juego.machine,
221
+ onClick: () => onCardClick == null ? void 0 : onCardClick(juego, idx)
222
+ },
223
+ (_a = juego.orden) != null ? _a : idx
224
+ );
225
+ })
226
+ }
227
+ ),
228
+ /* @__PURE__ */ jsx2(Box2, { sx: { display: { xs: "block", md: "none" } }, children: /* @__PURE__ */ jsx2(
229
+ OraculoButton,
230
+ {
231
+ variant: "primary",
232
+ size: "lg",
233
+ onClick: () => onViewMore == null ? void 0 : onViewMore(),
234
+ children: "Ver m\xE1s"
235
+ }
236
+ ) })
237
+ ]
238
+ }
239
+ )
240
+ ]
241
+ }
242
+ );
243
+ };
244
+ var OraculoSeccionCasinoEnVivo_default = OraculoSeccionCasinoEnVivo;
245
+
246
+ export {
247
+ OraculoLiveCasinoCard_default,
248
+ OraculoSeccionCasinoEnVivo_default
249
+ };