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,69 +0,0 @@
1
- // src/atoms/OraculoButton/OraculoButton.tsx
2
- import React from "react";
3
- import { Link as MuiLink } from "@mui/material";
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__ */ 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));
37
- const ariaDisabled = disabled ? true : void 0;
38
- if (href) {
39
- return /* @__PURE__ */ React.createElement(
40
- MuiLink,
41
- {
42
- href,
43
- target,
44
- rel,
45
- "aria-label": ariaLabel,
46
- "aria-disabled": ariaDisabled,
47
- tabIndex: ariaDisabled ? -1 : void 0,
48
- className: cls,
49
- onClick: ariaDisabled ? (e) => e.preventDefault() : onClick
50
- },
51
- content
52
- );
53
- }
54
- return /* @__PURE__ */ React.createElement(
55
- "button",
56
- {
57
- type,
58
- onClick,
59
- disabled: !!ariaDisabled,
60
- "aria-label": ariaLabel,
61
- className: cls
62
- },
63
- content
64
- );
65
- }
66
-
67
- export {
68
- OraculoButton
69
- };
@@ -1,103 +0,0 @@
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
- };
@@ -1,239 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- // src/organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.css
2
- var OraculoSeccionClubOlimpo_default = {};
3
-
4
- export {
5
- OraculoSeccionClubOlimpo_default
6
- };
@@ -1,43 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __glob = (map) => (path) => {
14
- var fn = map[path];
15
- if (fn) return fn();
16
- throw new Error("Module not found in bundle: " + path);
17
- };
18
- var __commonJS = (cb, mod) => function __require2() {
19
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
20
- };
21
- var __copyProps = (to, from, except, desc) => {
22
- if (from && typeof from === "object" || typeof from === "function") {
23
- for (let key of __getOwnPropNames(from))
24
- if (!__hasOwnProp.call(to, key) && key !== except)
25
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
- }
27
- return to;
28
- };
29
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
30
- // If the importer is in node compatibility mode or this is not an ESM
31
- // file that has been converted to a CommonJS file using a Babel-
32
- // compatible transform (i.e. "__esModule" has not been set), then set
33
- // "default" to the CommonJS "module.exports" for node compatibility.
34
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
35
- mod
36
- ));
37
-
38
- export {
39
- __require,
40
- __glob,
41
- __commonJS,
42
- __toESM
43
- };