oraculo-ui 0.1.9 → 0.1.10
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/{OraculoSeccionBonoBienvenida-EDS6UQVL.mjs → OraculoSeccionBonoBienvenida-2APXZQQA.mjs} +1 -2
- package/dist/{OraculoSeccionVirtuales-OP2CSKUP.css → OraculoSeccionCasino-RFXPS2MW.css} +181 -0
- package/dist/{OraculoSeccionCasino-GXRRODCJ.mjs → OraculoSeccionCasino-WBPCNYC5.mjs} +5 -4
- package/dist/OraculoSeccionDestacados-IMREYQ6W.mjs +12 -0
- package/dist/OraculoSeccionTopJuegos-DWEO36ND.mjs +12 -0
- package/dist/{OraculoSeccionCasino-Q2VV44XD.css → OraculoSeccionTopJuegos-FMFAEVQK.css} +181 -0
- package/dist/OraculoSeccionVirtuales-6RBECPDW.css +397 -0
- package/dist/{OraculoSeccionVirtuales-MGW5X23B.mjs → OraculoSeccionVirtuales-IBYOMEJV.mjs} +5 -4
- package/dist/{chunk-WPLILXPP.mjs → chunk-4LBAYKDQ.mjs} +116 -30
- package/dist/{chunk-PXIOKT7L.mjs → chunk-VYYKDD5L.mjs} +817 -95
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +192 -158
- package/dist/index.mjs +11 -23
- package/package.json +1 -1
- package/dist/OraculoSeccionDestacados-QU6BT2NM.mjs +0 -18
- package/dist/OraculoSeccionTopJuegos-3AR4L7SZ.css +0 -59
- package/dist/OraculoSeccionTopJuegos-FZUYQEMC.mjs +0 -8
- package/dist/chunk-5GTDKE3I.mjs +0 -30
- package/dist/chunk-AFPCFXMZ.mjs +0 -174
- package/dist/chunk-AIT7B2J3.mjs +0 -192
- package/dist/chunk-DKP3HTEP.mjs +0 -183
- package/dist/chunk-VHW77D2M.mjs +0 -91
- package/dist/chunk-YY5T37WR.mjs +0 -175
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
/* src/atoms/OraculoSectionTitle/OraculoSectionTitle.css */
|
|
2
|
+
.orc-section-title {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
}
|
|
7
|
+
.orc-section-title__icon {
|
|
8
|
+
width: 40px;
|
|
9
|
+
height: 40px;
|
|
10
|
+
object-fit: none;
|
|
11
|
+
}
|
|
12
|
+
.orc-section-title__title {
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
letter-spacing: 0;
|
|
16
|
+
color: #ffffff;
|
|
17
|
+
}
|
|
18
|
+
.orc-section-title--xs .orc-section-title__title {
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
line-height: 18px;
|
|
21
|
+
}
|
|
22
|
+
.orc-section-title--sm .orc-section-title__title {
|
|
23
|
+
font-size: 18px;
|
|
24
|
+
line-height: 24px;
|
|
25
|
+
}
|
|
26
|
+
.orc-section-title--md .orc-section-title__title {
|
|
27
|
+
font-size: 32px;
|
|
28
|
+
line-height: 48px;
|
|
29
|
+
}
|
|
30
|
+
.orc-section-title--lg .orc-section-title__title {
|
|
31
|
+
font-size: 22px;
|
|
32
|
+
line-height: 30px;
|
|
33
|
+
}
|
|
34
|
+
.orc-section-title--xs .orc-section-title__icon {
|
|
35
|
+
width: 24px;
|
|
36
|
+
height: 24px;
|
|
37
|
+
}
|
|
38
|
+
@media (max-width: 768px) {
|
|
39
|
+
.orc-section-title__icon {
|
|
40
|
+
width: 24px;
|
|
41
|
+
height: 24px;
|
|
42
|
+
}
|
|
43
|
+
.orc-section-title--xs .orc-section-title__title {
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
line-height: 18px;
|
|
46
|
+
}
|
|
47
|
+
.orc-section-title--sm .orc-section-title__title {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
line-height: 22px;
|
|
50
|
+
}
|
|
51
|
+
.orc-section-title--md .orc-section-title__title {
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
line-height: 24px;
|
|
54
|
+
}
|
|
55
|
+
.orc-section-title--lg .orc-section-title__title {
|
|
56
|
+
font-size: 20px;
|
|
57
|
+
line-height: 26px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* src/atoms/OraculoButton/OraculoButton.css */
|
|
62
|
+
.orc-btn {
|
|
63
|
+
--nl-green: #9EE86E;
|
|
64
|
+
--nl-hover-hex: #D9F6C6;
|
|
65
|
+
--nl-hover-alpha: .22;
|
|
66
|
+
--nl-press: #254B0C;
|
|
67
|
+
--nl-disabled-border: #4a5542;
|
|
68
|
+
--nl-disabled-fg: #4a5542;
|
|
69
|
+
--stroke-w: 1.5px;
|
|
70
|
+
--h: 32px;
|
|
71
|
+
--pad-x: 12px;
|
|
72
|
+
--pad-y: 8px;
|
|
73
|
+
--radius: 12px;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
height: var(--h);
|
|
76
|
+
font-family: var(--clmc-font);
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
gap: 8px;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
text-decoration: none;
|
|
83
|
+
border-radius: var(--radius);
|
|
84
|
+
outline: none;
|
|
85
|
+
position: relative;
|
|
86
|
+
padding: var(--pad-y) var(--pad-x);
|
|
87
|
+
border: 0;
|
|
88
|
+
}
|
|
89
|
+
.orc-btn__label {
|
|
90
|
+
color: currentColor;
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
}
|
|
93
|
+
.orc-btn__icon {
|
|
94
|
+
color: currentColor;
|
|
95
|
+
display: inline-flex;
|
|
96
|
+
line-height: 0;
|
|
97
|
+
font-size: 18px;
|
|
98
|
+
}
|
|
99
|
+
.orc-btn--primary {
|
|
100
|
+
background: var(--nl-green);
|
|
101
|
+
color: #1C1C1C;
|
|
102
|
+
box-shadow: inset 0 0 0 var(--stroke-w) transparent;
|
|
103
|
+
}
|
|
104
|
+
.orc-btn--primary:hover {
|
|
105
|
+
background: var(--nl-hover-hex);
|
|
106
|
+
color: #1C1C1C;
|
|
107
|
+
}
|
|
108
|
+
.orc-btn--primary:active {
|
|
109
|
+
background: var(--nl-press);
|
|
110
|
+
color: #FFFFFF;
|
|
111
|
+
transform: translateY(1px);
|
|
112
|
+
}
|
|
113
|
+
.orc-btn--primary:disabled,
|
|
114
|
+
.orc-btn--primary[aria-disabled=true] {
|
|
115
|
+
background: transparent;
|
|
116
|
+
color: var(--nl-disabled-fg);
|
|
117
|
+
box-shadow: inset 0 0 0 var(--stroke-w) var(--nl-disabled-border);
|
|
118
|
+
cursor: not-allowed;
|
|
119
|
+
transform: none;
|
|
120
|
+
opacity: 1;
|
|
121
|
+
}
|
|
122
|
+
.orc-btn--secondary {
|
|
123
|
+
background: transparent;
|
|
124
|
+
color: var(--nl-green);
|
|
125
|
+
box-shadow: inset 0 0 0 var(--stroke-w) var(--nl-green);
|
|
126
|
+
}
|
|
127
|
+
.orc-btn--secondary:hover {
|
|
128
|
+
background: rgba(229, 244, 219, var(--nl-hover-alpha)) !important;
|
|
129
|
+
color: var(--nl-hover-hex);
|
|
130
|
+
box-shadow: inset 0 0 0 var(--stroke-w) var(--nl-hover-hex);
|
|
131
|
+
}
|
|
132
|
+
.orc-btn--secondary:active {
|
|
133
|
+
transform: translateY(1px);
|
|
134
|
+
color: var(--nl-press);
|
|
135
|
+
box-shadow: inset 0 0 0 var(--stroke-w) var(--nl-press);
|
|
136
|
+
background: rgba(37, 75, 12, 0.10);
|
|
137
|
+
}
|
|
138
|
+
.orc-btn--secondary:focus-visible {
|
|
139
|
+
box-shadow: inset 0 0 0 var(--stroke-w) var(--nl-green), 0 0 0 3px rgba(197, 228, 177, .45);
|
|
140
|
+
}
|
|
141
|
+
.orc-btn--secondary:disabled,
|
|
142
|
+
.orc-btn--secondary[aria-disabled=true] {
|
|
143
|
+
background: transparent;
|
|
144
|
+
color: var(--nl-disabled-fg);
|
|
145
|
+
box-shadow: inset 0 0 0 var(--stroke-w) var(--nl-disabled-border);
|
|
146
|
+
cursor: not-allowed;
|
|
147
|
+
}
|
|
148
|
+
.orc-btn--tertiary {
|
|
149
|
+
background: transparent;
|
|
150
|
+
color: var(--nl-green);
|
|
151
|
+
box-shadow: none;
|
|
152
|
+
}
|
|
153
|
+
.orc-btn--tertiary:hover {
|
|
154
|
+
color: var(--nl-hover-hex);
|
|
155
|
+
}
|
|
156
|
+
.orc-btn--tertiary:active {
|
|
157
|
+
color: var(--nl-press);
|
|
158
|
+
background: rgba(37, 75, 12, 0.08);
|
|
159
|
+
transform: translateY(1px);
|
|
160
|
+
}
|
|
161
|
+
.orc-btn--tertiary:focus-visible {
|
|
162
|
+
box-shadow: 0 0 0 3px rgba(197, 228, 177, .45);
|
|
163
|
+
}
|
|
164
|
+
.orc-btn--tertiary:disabled,
|
|
165
|
+
.orc-btn--tertiary[aria-disabled=true] {
|
|
166
|
+
color: var(--nl-disabled-fg);
|
|
167
|
+
background: transparent;
|
|
168
|
+
box-shadow: none;
|
|
169
|
+
cursor: not-allowed;
|
|
170
|
+
}
|
|
171
|
+
.orc-btn--sm {
|
|
172
|
+
--h: 32px;
|
|
173
|
+
--pad-y: 8px;
|
|
174
|
+
--pad-x: 12px;
|
|
175
|
+
--radius: 12px;
|
|
176
|
+
}
|
|
177
|
+
.orc-btn--md {
|
|
178
|
+
--h: 40px;
|
|
179
|
+
--pad-y: 10px;
|
|
180
|
+
--pad-x: 16px;
|
|
181
|
+
--radius: 12px;
|
|
182
|
+
}
|
|
183
|
+
.orc-btn--lg {
|
|
184
|
+
--h: 48px;
|
|
185
|
+
--pad-y: 12px;
|
|
186
|
+
--pad-x: 20px;
|
|
187
|
+
--radius: 16px;
|
|
188
|
+
}
|
|
189
|
+
.orc-btn--sm .orc-btn__label,
|
|
190
|
+
.orc-btn--md .orc-btn__label,
|
|
191
|
+
.orc-btn--lg .orc-btn__label {
|
|
192
|
+
font-size: 14px !important;
|
|
193
|
+
}
|
|
194
|
+
.orc-btn--iconOnly {
|
|
195
|
+
width: 40px;
|
|
196
|
+
min-width: 40px;
|
|
197
|
+
padding: 0;
|
|
198
|
+
}
|
|
199
|
+
.orc-btn--sm.orc-btn--iconOnly {
|
|
200
|
+
width: 32px;
|
|
201
|
+
min-width: 32px;
|
|
202
|
+
}
|
|
203
|
+
.orc-btn--md.orc-btn--iconOnly {
|
|
204
|
+
width: 40px;
|
|
205
|
+
min-width: 40px;
|
|
206
|
+
}
|
|
207
|
+
.orc-btn--lg.orc-btn--iconOnly {
|
|
208
|
+
width: 48px;
|
|
209
|
+
min-width: 48px;
|
|
210
|
+
}
|
|
211
|
+
.orc-btn--full {
|
|
212
|
+
width: 100%;
|
|
213
|
+
}
|
|
214
|
+
.orc-btn--fullHeight {
|
|
215
|
+
height: 100%;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* src/atoms/OraculoCarouselDots/OraculoCarouselDots.css */
|
|
219
|
+
.orc-dots {
|
|
220
|
+
--dot-size: 8px;
|
|
221
|
+
--dot-cell: 20px;
|
|
222
|
+
--dot-active-h: 8px;
|
|
223
|
+
--dot-active-w: 20px;
|
|
224
|
+
--dot-bg: #ffffff;
|
|
225
|
+
--dot-surface: #ffffff;
|
|
226
|
+
--dot-accent: #9EE86E;
|
|
227
|
+
display: flex;
|
|
228
|
+
gap: 0px;
|
|
229
|
+
justify-content: center;
|
|
230
|
+
margin-top: 10px;
|
|
231
|
+
}
|
|
232
|
+
.orc-dots__cell {
|
|
233
|
+
width: var(--dot-cell);
|
|
234
|
+
display: inline-flex;
|
|
235
|
+
justify-content: center;
|
|
236
|
+
}
|
|
237
|
+
.orc-dots__dot {
|
|
238
|
+
width: var(--dot-size);
|
|
239
|
+
height: var(--dot-size);
|
|
240
|
+
border-radius: 9999px;
|
|
241
|
+
background: var(--dot-bg);
|
|
242
|
+
border: 0;
|
|
243
|
+
padding: 0;
|
|
244
|
+
cursor: pointer;
|
|
245
|
+
position: relative;
|
|
246
|
+
transition:
|
|
247
|
+
transform .15s ease,
|
|
248
|
+
background .15s ease,
|
|
249
|
+
width .2s ease,
|
|
250
|
+
height .2s ease;
|
|
251
|
+
}
|
|
252
|
+
.orc-dots__dot:hover {
|
|
253
|
+
transform: scale(1.06);
|
|
254
|
+
}
|
|
255
|
+
.orc-dots__dot--active {
|
|
256
|
+
width: var(--dot-active-w);
|
|
257
|
+
height: var(--dot-active-h);
|
|
258
|
+
border-radius: 9999px;
|
|
259
|
+
background: #fff;
|
|
260
|
+
position: relative;
|
|
261
|
+
overflow: hidden;
|
|
262
|
+
}
|
|
263
|
+
.orc-dots__dot--active::after {
|
|
264
|
+
content: "";
|
|
265
|
+
position: absolute;
|
|
266
|
+
top: 0;
|
|
267
|
+
bottom: 0;
|
|
268
|
+
left: 0;
|
|
269
|
+
width: 40%;
|
|
270
|
+
background: var(--dot-accent);
|
|
271
|
+
border-radius: inherit;
|
|
272
|
+
}
|
|
273
|
+
.orc-dots__dot--active {
|
|
274
|
+
outline: 0;
|
|
275
|
+
outline-offset: 0;
|
|
276
|
+
}
|
|
277
|
+
.orc-dots__dot:focus-visible {
|
|
278
|
+
outline: 2px solid var(--dot-accent);
|
|
279
|
+
outline-offset: 2px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* src/organisms/OraculoSeccionClubOlimpo/OraculoSeccionClubOlimpo.css */
|
|
283
|
+
.orc-co-wrap {
|
|
284
|
+
--orc-co-art-w: 887px;
|
|
285
|
+
--orc-co-art-h: 510px;
|
|
286
|
+
--orc-co-text: #ffffff;
|
|
287
|
+
--orc-co-art-left: clamp(120px, 18vw, 280px);
|
|
288
|
+
--orc-co-art-top: 20px;
|
|
289
|
+
--orc-co-logo-left: 163px;
|
|
290
|
+
--orc-co-logo-top: 120px;
|
|
291
|
+
--orc-co-logo-w: 220px;
|
|
292
|
+
--orc-co-content-left: 120px;
|
|
293
|
+
--orc-co-content-top: 290px;
|
|
294
|
+
min-height: var(--orc-co-minH, 520px);
|
|
295
|
+
position: relative;
|
|
296
|
+
}
|
|
297
|
+
.orc-co-fullBleed {
|
|
298
|
+
width: 100vw;
|
|
299
|
+
margin-left: 50%;
|
|
300
|
+
transform: translateX(-50%);
|
|
301
|
+
}
|
|
302
|
+
.orc-co-bottom {
|
|
303
|
+
position: absolute;
|
|
304
|
+
left: 50%;
|
|
305
|
+
transform: translateX(-50%);
|
|
306
|
+
bottom: 20px;
|
|
307
|
+
z-index: 2;
|
|
308
|
+
display: grid;
|
|
309
|
+
justify-items: center;
|
|
310
|
+
gap: 12px;
|
|
311
|
+
border-radius: 12px;
|
|
312
|
+
}
|
|
313
|
+
.orc-co-caption {
|
|
314
|
+
color: var(--orc-co-text);
|
|
315
|
+
font-size: 14px;
|
|
316
|
+
text-align: center;
|
|
317
|
+
font-weight: 400;
|
|
318
|
+
text-wrap: balance;
|
|
319
|
+
line-height: 1.4;
|
|
320
|
+
}
|
|
321
|
+
.orc-co-bgMobile {
|
|
322
|
+
position: relative;
|
|
323
|
+
width: 100%;
|
|
324
|
+
min-height: 360px;
|
|
325
|
+
overflow: hidden;
|
|
326
|
+
}
|
|
327
|
+
.orc-co-bgMobileImg {
|
|
328
|
+
width: 100%;
|
|
329
|
+
height: 100%;
|
|
330
|
+
object-fit: cover;
|
|
331
|
+
}
|
|
332
|
+
.orc-co-bgDesktop,
|
|
333
|
+
.orc-co-logo,
|
|
334
|
+
.orc-co-desktopContent {
|
|
335
|
+
display: none;
|
|
336
|
+
}
|
|
337
|
+
@media (min-width: 1024px) {
|
|
338
|
+
.orc-co-bgMobile {
|
|
339
|
+
display: none;
|
|
340
|
+
}
|
|
341
|
+
.orc-co-bottom {
|
|
342
|
+
display: none;
|
|
343
|
+
}
|
|
344
|
+
.orc-co-bgDesktop {
|
|
345
|
+
position: absolute;
|
|
346
|
+
inset: 0;
|
|
347
|
+
z-index: 0;
|
|
348
|
+
display: block;
|
|
349
|
+
}
|
|
350
|
+
.orc-co-bgDesktop > .orc-co-fillHost {
|
|
351
|
+
position: absolute;
|
|
352
|
+
width: var(--orc-co-art-w);
|
|
353
|
+
height: var(--orc-co-art-h);
|
|
354
|
+
top: var(--orc-co-art-top);
|
|
355
|
+
left: var(--orc-co-art-left);
|
|
356
|
+
}
|
|
357
|
+
.orc-co-bgDesktopImg {
|
|
358
|
+
width: 100%;
|
|
359
|
+
height: 100%;
|
|
360
|
+
object-fit: cover;
|
|
361
|
+
display: block;
|
|
362
|
+
}
|
|
363
|
+
.orc-co-logo {
|
|
364
|
+
display: block;
|
|
365
|
+
position: absolute;
|
|
366
|
+
left: var(--orc-co-logo-left);
|
|
367
|
+
top: var(--orc-co-logo-top);
|
|
368
|
+
width: var(--orc-co-logo-w);
|
|
369
|
+
aspect-ratio: 3 / 2;
|
|
370
|
+
z-index: 2;
|
|
371
|
+
}
|
|
372
|
+
.orc-co-logoImg {
|
|
373
|
+
width: 100%;
|
|
374
|
+
height: 100%;
|
|
375
|
+
object-fit: contain;
|
|
376
|
+
display: block;
|
|
377
|
+
}
|
|
378
|
+
.orc-co-desktopContent {
|
|
379
|
+
display: grid;
|
|
380
|
+
position: absolute;
|
|
381
|
+
left: var(--orc-co-content-left);
|
|
382
|
+
top: var(--orc-co-content-top);
|
|
383
|
+
gap: 16px;
|
|
384
|
+
justify-items: center;
|
|
385
|
+
text-align: center;
|
|
386
|
+
z-index: 2;
|
|
387
|
+
}
|
|
388
|
+
.orc-co-captionDesktop {
|
|
389
|
+
margin: 0;
|
|
390
|
+
color: var(--orc-co-text);
|
|
391
|
+
font-family: var(--clmc-font, inherit);
|
|
392
|
+
font-weight: 400;
|
|
393
|
+
font-size: clamp(14px, 1.5vw, 18px);
|
|
394
|
+
max-width: 28ch;
|
|
395
|
+
text-wrap: balance;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OraculoSeccionVirtuales_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VYYKDD5L.mjs";
|
|
4
|
+
import "./chunk-2D7ZJMJV.mjs";
|
|
5
|
+
import "./chunk-PZJSZNXJ.mjs";
|
|
6
|
+
import "./chunk-PVY5Z3JS.mjs";
|
|
7
|
+
import "./chunk-4LBAYKDQ.mjs";
|
|
7
8
|
import "./chunk-IJQLK4NO.mjs";
|
|
8
9
|
import "./chunk-VIPLL6XT.mjs";
|
|
9
10
|
export {
|
|
@@ -1,20 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OraculoCarousel_default
|
|
3
|
-
} from "./chunk-VHW77D2M.mjs";
|
|
4
1
|
import {
|
|
5
2
|
OraculoButton
|
|
6
3
|
} from "./chunk-IJQLK4NO.mjs";
|
|
7
4
|
|
|
8
5
|
// src/organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.tsx
|
|
9
|
-
import { useRef, useState } from "react";
|
|
6
|
+
import { useRef as useRef2, useState } from "react";
|
|
10
7
|
import Box2 from "@mui/material/Box";
|
|
11
8
|
import Typography2 from "@mui/material/Typography";
|
|
12
9
|
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
13
10
|
|
|
11
|
+
// src/molecules/OraculoCarousel/OraculoCarousel.tsx
|
|
12
|
+
import {
|
|
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
|
+
import { jsx } from "react/jsx-runtime";
|
|
23
|
+
var Splide = SplideRaw;
|
|
24
|
+
var SplideSlide = SplideSlideRaw;
|
|
25
|
+
var OraculoCarousel = forwardRef(
|
|
26
|
+
({
|
|
27
|
+
items = [],
|
|
28
|
+
renderItem,
|
|
29
|
+
perPage = 1,
|
|
30
|
+
gap = "0px",
|
|
31
|
+
breakpoints,
|
|
32
|
+
options = {},
|
|
33
|
+
className = "",
|
|
34
|
+
onMove
|
|
35
|
+
}, ref) => {
|
|
36
|
+
const splideRef = useRef(null);
|
|
37
|
+
useImperativeHandle(ref, () => ({
|
|
38
|
+
next: () => {
|
|
39
|
+
var _a;
|
|
40
|
+
return (_a = splideRef.current) == null ? void 0 : _a.go(">");
|
|
41
|
+
},
|
|
42
|
+
prev: () => {
|
|
43
|
+
var _a;
|
|
44
|
+
return (_a = splideRef.current) == null ? void 0 : _a.go("<");
|
|
45
|
+
},
|
|
46
|
+
go: (index) => {
|
|
47
|
+
var _a;
|
|
48
|
+
return (_a = splideRef.current) == null ? void 0 : _a.go(index);
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
const handleMove = useCallback(
|
|
52
|
+
(splide) => {
|
|
53
|
+
const index = splide.index;
|
|
54
|
+
const total = splide.length;
|
|
55
|
+
const currentPerPage = splide.options.perPage || 1;
|
|
56
|
+
const isStart = index === 0;
|
|
57
|
+
const isEnd = index >= total - currentPerPage;
|
|
58
|
+
onMove == null ? void 0 : onMove({ index, isStart, isEnd, total });
|
|
59
|
+
},
|
|
60
|
+
[onMove]
|
|
61
|
+
);
|
|
62
|
+
const handleMounted = useCallback(
|
|
63
|
+
(splide) => {
|
|
64
|
+
handleMove(splide);
|
|
65
|
+
},
|
|
66
|
+
[handleMove]
|
|
67
|
+
);
|
|
68
|
+
const mergedOptions = {
|
|
69
|
+
type: "slide",
|
|
70
|
+
trimSpace: false,
|
|
71
|
+
drag: true,
|
|
72
|
+
pagination: false,
|
|
73
|
+
arrows: false,
|
|
74
|
+
rewind: false,
|
|
75
|
+
focus: "start",
|
|
76
|
+
autoWidth: false,
|
|
77
|
+
perPage,
|
|
78
|
+
gap,
|
|
79
|
+
breakpoints,
|
|
80
|
+
...options
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ jsx("div", { className, style: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
83
|
+
Splide,
|
|
84
|
+
{
|
|
85
|
+
ref: splideRef,
|
|
86
|
+
options: mergedOptions,
|
|
87
|
+
onMove: handleMove,
|
|
88
|
+
onMounted: handleMounted,
|
|
89
|
+
children: items.map((item, index) => {
|
|
90
|
+
var _a;
|
|
91
|
+
return /* @__PURE__ */ jsx(SplideSlide, { children: renderItem(item, index) }, (_a = item.id) != null ? _a : index);
|
|
92
|
+
})
|
|
93
|
+
}
|
|
94
|
+
) });
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
var OraculoCarousel_default = OraculoCarousel;
|
|
98
|
+
|
|
14
99
|
// src/molecules/OraculoWelcomeBanner/OraculoWelcomeBanner.tsx
|
|
15
100
|
import Box from "@mui/material/Box";
|
|
16
101
|
import Typography from "@mui/material/Typography";
|
|
17
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
102
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
18
103
|
var OraculoWelcomeBanner = ({
|
|
19
104
|
title,
|
|
20
105
|
amount,
|
|
@@ -43,7 +128,7 @@ var OraculoWelcomeBanner = ({
|
|
|
43
128
|
mx: "auto"
|
|
44
129
|
},
|
|
45
130
|
children: [
|
|
46
|
-
backgroundImage && /* @__PURE__ */
|
|
131
|
+
backgroundImage && /* @__PURE__ */ jsx2(
|
|
47
132
|
Box,
|
|
48
133
|
{
|
|
49
134
|
sx: {
|
|
@@ -56,7 +141,7 @@ var OraculoWelcomeBanner = ({
|
|
|
56
141
|
borderRadius: "14px",
|
|
57
142
|
overflow: "hidden"
|
|
58
143
|
},
|
|
59
|
-
children: /* @__PURE__ */
|
|
144
|
+
children: /* @__PURE__ */ jsx2(
|
|
60
145
|
Box,
|
|
61
146
|
{
|
|
62
147
|
component: "img",
|
|
@@ -76,7 +161,7 @@ var OraculoWelcomeBanner = ({
|
|
|
76
161
|
)
|
|
77
162
|
}
|
|
78
163
|
),
|
|
79
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ jsx2(
|
|
80
165
|
Box,
|
|
81
166
|
{
|
|
82
167
|
sx: {
|
|
@@ -100,7 +185,7 @@ var OraculoWelcomeBanner = ({
|
|
|
100
185
|
alignItems: "center"
|
|
101
186
|
},
|
|
102
187
|
children: [
|
|
103
|
-
title && /* @__PURE__ */
|
|
188
|
+
title && /* @__PURE__ */ jsx2(
|
|
104
189
|
Typography,
|
|
105
190
|
{
|
|
106
191
|
sx: {
|
|
@@ -129,7 +214,7 @@ var OraculoWelcomeBanner = ({
|
|
|
129
214
|
justifyContent: "center"
|
|
130
215
|
},
|
|
131
216
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ jsx2(
|
|
133
218
|
Box,
|
|
134
219
|
{
|
|
135
220
|
component: "span",
|
|
@@ -137,7 +222,7 @@ var OraculoWelcomeBanner = ({
|
|
|
137
222
|
children: symbol
|
|
138
223
|
}
|
|
139
224
|
),
|
|
140
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ jsx2(
|
|
141
226
|
Box,
|
|
142
227
|
{
|
|
143
228
|
component: "span",
|
|
@@ -148,7 +233,7 @@ var OraculoWelcomeBanner = ({
|
|
|
148
233
|
]
|
|
149
234
|
}
|
|
150
235
|
),
|
|
151
|
-
subtitle && /* @__PURE__ */
|
|
236
|
+
subtitle && /* @__PURE__ */ jsx2(
|
|
152
237
|
Typography,
|
|
153
238
|
{
|
|
154
239
|
sx: {
|
|
@@ -160,7 +245,7 @@ var OraculoWelcomeBanner = ({
|
|
|
160
245
|
children: subtitle
|
|
161
246
|
}
|
|
162
247
|
),
|
|
163
|
-
buttonText && /* @__PURE__ */
|
|
248
|
+
buttonText && /* @__PURE__ */ jsx2(OraculoButton, { onClick: onButtonClick, children: buttonText })
|
|
164
249
|
]
|
|
165
250
|
}
|
|
166
251
|
)
|
|
@@ -173,7 +258,7 @@ var OraculoWelcomeBanner = ({
|
|
|
173
258
|
var OraculoWelcomeBanner_default = OraculoWelcomeBanner;
|
|
174
259
|
|
|
175
260
|
// src/atoms/OraculoCarouselDots/OraculoCarouselDots.tsx
|
|
176
|
-
import { jsx as
|
|
261
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
177
262
|
var OraculoCarouselDots = ({
|
|
178
263
|
total,
|
|
179
264
|
active,
|
|
@@ -182,7 +267,7 @@ var OraculoCarouselDots = ({
|
|
|
182
267
|
}) => {
|
|
183
268
|
if (total <= 1) return null;
|
|
184
269
|
const rootClass = ["orc-dots", className].filter(Boolean).join(" ");
|
|
185
|
-
return /* @__PURE__ */
|
|
270
|
+
return /* @__PURE__ */ jsx3("div", { className: rootClass, role: "tablist", children: Array.from({ length: total }).map((_, i) => /* @__PURE__ */ jsx3("span", { className: "orc-dots__cell", children: /* @__PURE__ */ jsx3(
|
|
186
271
|
"button",
|
|
187
272
|
{
|
|
188
273
|
type: "button",
|
|
@@ -197,7 +282,7 @@ var OraculoCarouselDots = ({
|
|
|
197
282
|
var OraculoCarouselDots_default = OraculoCarouselDots;
|
|
198
283
|
|
|
199
284
|
// src/organisms/OraculoSeccionBonoBienvenida/OraculoSeccionBonoBienvenida.tsx
|
|
200
|
-
import { Fragment, jsx as
|
|
285
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
201
286
|
var buildSectionSx = (bgUrl) => ({
|
|
202
287
|
width: "100vw",
|
|
203
288
|
position: "relative",
|
|
@@ -249,7 +334,7 @@ var OraculoSeccionBonoBienvenida = ({
|
|
|
249
334
|
const showDots = items.length > 1;
|
|
250
335
|
const bgUrl = backgroundImageUrl != null ? backgroundImageUrl : "/assets/img/home/BonoBienvenida/Fondobg.png";
|
|
251
336
|
const sectionSx = buildSectionSx(bgUrl);
|
|
252
|
-
const carouselRef =
|
|
337
|
+
const carouselRef = useRef2(null);
|
|
253
338
|
const [navState, setNavState] = useState({ isStart: true, isEnd: false });
|
|
254
339
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
255
340
|
if (isMobile) {
|
|
@@ -263,14 +348,14 @@ var OraculoSeccionBonoBienvenida = ({
|
|
|
263
348
|
},
|
|
264
349
|
children: [
|
|
265
350
|
(hl1 || hl2) && /* @__PURE__ */ jsxs2(Box2, { sx: headlineBaseSx, children: [
|
|
266
|
-
hl1 && /* @__PURE__ */
|
|
351
|
+
hl1 && /* @__PURE__ */ jsx4(Typography2, { component: "span", sx: hlTopSx, children: hl1 }),
|
|
267
352
|
hl2 && /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ jsx4("br", {}),
|
|
354
|
+
/* @__PURE__ */ jsx4(Typography2, { component: "span", sx: hlBottomSx, children: hl2 })
|
|
270
355
|
] })
|
|
271
356
|
] }),
|
|
272
357
|
/* @__PURE__ */ jsxs2(Box2, { children: [
|
|
273
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ jsx4(
|
|
274
359
|
OraculoCarousel_default,
|
|
275
360
|
{
|
|
276
361
|
ref: carouselRef,
|
|
@@ -292,14 +377,14 @@ var OraculoSeccionBonoBienvenida = ({
|
|
|
292
377
|
options: {
|
|
293
378
|
autoWidth: false
|
|
294
379
|
},
|
|
295
|
-
renderItem: (it) => /* @__PURE__ */
|
|
380
|
+
renderItem: (it) => /* @__PURE__ */ jsx4(OraculoWelcomeBanner_default, { ...it, onButtonClick: items[0].onButtonClick }),
|
|
296
381
|
onMove: ({ index, isStart, isEnd }) => {
|
|
297
382
|
setNavState({ isStart, isEnd });
|
|
298
383
|
setActiveIndex(index);
|
|
299
384
|
}
|
|
300
385
|
}
|
|
301
386
|
),
|
|
302
|
-
showDots && /* @__PURE__ */
|
|
387
|
+
showDots && /* @__PURE__ */ jsx4(
|
|
303
388
|
OraculoCarouselDots_default,
|
|
304
389
|
{
|
|
305
390
|
total: items.length,
|
|
@@ -316,7 +401,7 @@ var OraculoSeccionBonoBienvenida = ({
|
|
|
316
401
|
}
|
|
317
402
|
);
|
|
318
403
|
}
|
|
319
|
-
return /* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */ jsx4(Box2, { component: "section", sx: sectionSx, children: /* @__PURE__ */ jsxs2(
|
|
320
405
|
Box2,
|
|
321
406
|
{
|
|
322
407
|
sx: {
|
|
@@ -328,7 +413,7 @@ var OraculoSeccionBonoBienvenida = ({
|
|
|
328
413
|
alignItems: "center"
|
|
329
414
|
},
|
|
330
415
|
children: [
|
|
331
|
-
(hl1 || hl2) && /* @__PURE__ */
|
|
416
|
+
(hl1 || hl2) && /* @__PURE__ */ jsx4(
|
|
332
417
|
Box2,
|
|
333
418
|
{
|
|
334
419
|
sx: {
|
|
@@ -346,17 +431,17 @@ var OraculoSeccionBonoBienvenida = ({
|
|
|
346
431
|
mb: 0
|
|
347
432
|
},
|
|
348
433
|
children: [
|
|
349
|
-
hl1 && /* @__PURE__ */
|
|
434
|
+
hl1 && /* @__PURE__ */ jsx4(Typography2, { component: "span", sx: hlTopSx, children: hl1 }),
|
|
350
435
|
hl2 && /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ jsx4("br", {}),
|
|
437
|
+
/* @__PURE__ */ jsx4(Typography2, { component: "span", sx: hlBottomSx, children: hl2 })
|
|
353
438
|
] })
|
|
354
439
|
]
|
|
355
440
|
}
|
|
356
441
|
)
|
|
357
442
|
}
|
|
358
443
|
),
|
|
359
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ jsx4(
|
|
360
445
|
Box2,
|
|
361
446
|
{
|
|
362
447
|
sx: {
|
|
@@ -366,7 +451,7 @@ var OraculoSeccionBonoBienvenida = ({
|
|
|
366
451
|
flexWrap: "nowrap",
|
|
367
452
|
gap: 4
|
|
368
453
|
},
|
|
369
|
-
children: items.map((it, idx) => /* @__PURE__ */
|
|
454
|
+
children: items.map((it, idx) => /* @__PURE__ */ jsx4(
|
|
370
455
|
OraculoWelcomeBanner_default,
|
|
371
456
|
{
|
|
372
457
|
onButtonClick: it.onButtonClick,
|
|
@@ -384,6 +469,7 @@ var OraculoSeccionBonoBienvenida_default = OraculoSeccionBonoBienvenida;
|
|
|
384
469
|
|
|
385
470
|
export {
|
|
386
471
|
OraculoCarouselDots_default,
|
|
472
|
+
OraculoCarousel_default,
|
|
387
473
|
OraculoWelcomeBanner_default,
|
|
388
474
|
OraculoSeccionBonoBienvenida_default
|
|
389
475
|
};
|