oraculo-ui 0.1.3 → 0.1.4

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/index.d.mts CHANGED
@@ -139,7 +139,6 @@ interface OraculoClubOlimpoVisualProps {
139
139
  imgSrcMobile: string;
140
140
  imgSrcDesktopBg?: string;
141
141
  imgSrcDesktopLogo?: string;
142
- priority?: boolean;
143
142
  }
144
143
  declare const OraculoClubOlimpoVisual: React.FC<OraculoClubOlimpoVisualProps>;
145
144
 
@@ -261,28 +260,29 @@ interface OraculoSeccionBonoBienvenidaProps {
261
260
  }
262
261
  declare const OraculoSeccionBonoBienvenida: React.FC<OraculoSeccionBonoBienvenidaProps>;
263
262
 
264
- type OraculoClubOlimpoItem = {
263
+ interface OraculoSeccionClubOlimpoItem {
265
264
  text: string;
266
- imgAlt: string;
265
+ buttonLabel?: string;
266
+ imgAlt?: string;
267
267
  images: {
268
268
  mobile: string;
269
- desktopBg: string;
270
- desktopLogo: string;
269
+ desktopBg?: string;
270
+ desktopLogo?: string;
271
271
  };
272
272
  onClick?: () => void;
273
- priority?: boolean;
274
- };
275
- interface OraculoSeccionClubOlimpoProps {
273
+ }
274
+
275
+ interface OraculoSeccionClubOlimpoItems {
276
276
  className?: string;
277
277
  /** Si true, hace el efecto full-bleed (100vw centrado) */
278
278
  fullBleed?: boolean;
279
279
  /** Lista de variantes (puedes pasar 1 o varias). */
280
- items: OraculoClubOlimpoItem[];
280
+ items: OraculoSeccionClubOlimpoItem;
281
281
  /** Índice del item a mostrar si pasas varios. */
282
282
  selectedIndex?: number;
283
283
  /** aria-label de la sección (fallback al imgAlt del item seleccionado). */
284
284
  ariaLabel?: string;
285
285
  }
286
- declare const OraculoSeccionClubOlimpo: React.FC<OraculoSeccionClubOlimpoProps>;
286
+ declare const OraculoSeccionClubOlimpo: React.FC<OraculoSeccionClubOlimpoItems>;
287
287
 
288
- export { OraculoButton, type OraculoButtonProps, OraculoCarousel, OraculoCarouselDots, type OraculoCarouselDotsProps, type OraculoCarouselOptions, type OraculoCarouselProps, type OraculoCarouselRef, type OraculoClubOlimpoItem, OraculoClubOlimpoVisual, type OraculoClubOlimpoVisualProps, type OraculoDestacadoItem, OraculoGameCard, type OraculoGameCardProps, type OraculoGameItem, OraculoGameRankCard, type OraculoGameRankCardProps, type OraculoGameRankCardSizes, OraculoGameSlide, type OraculoGameSlideItem, type OraculoGameSlideProps, OraculoLiveCasinoCard, type OraculoLiveCasinoCardProps, type OraculoLiveCasinoItem, OraculoSeccionBonoBienvenida, type OraculoSeccionBonoBienvenidaProps, OraculoSeccionCasino, OraculoSeccionCasinoEnVivo, type OraculoSeccionCasinoEnVivoProps, type OraculoSeccionCasinoProps, OraculoSeccionClubOlimpo, type OraculoSeccionClubOlimpoProps, OraculoSeccionDestacados, type OraculoSeccionDestacadosProps, OraculoSeccionTopJuegos, type OraculoSeccionTopJuegosProps, OraculoSeccionVirtuales, type OraculoSeccionVirtualesProps, OraculoSectionTitle, type OraculoSectionTitleProps, type OraculoTopJuegoItem, OraculoWelcomeBanner, type OraculoWelcomeBannerProps };
288
+ export { OraculoButton, type OraculoButtonProps, OraculoCarousel, OraculoCarouselDots, type OraculoCarouselDotsProps, type OraculoCarouselOptions, type OraculoCarouselProps, type OraculoCarouselRef, OraculoClubOlimpoVisual, type OraculoClubOlimpoVisualProps, type OraculoDestacadoItem, OraculoGameCard, type OraculoGameCardProps, type OraculoGameItem, OraculoGameRankCard, type OraculoGameRankCardProps, type OraculoGameRankCardSizes, OraculoGameSlide, type OraculoGameSlideItem, type OraculoGameSlideProps, OraculoLiveCasinoCard, type OraculoLiveCasinoCardProps, type OraculoLiveCasinoItem, OraculoSeccionBonoBienvenida, type OraculoSeccionBonoBienvenidaProps, OraculoSeccionCasino, OraculoSeccionCasinoEnVivo, type OraculoSeccionCasinoEnVivoProps, type OraculoSeccionCasinoProps, OraculoSeccionClubOlimpo, OraculoSeccionDestacados, type OraculoSeccionDestacadosProps, OraculoSeccionTopJuegos, type OraculoSeccionTopJuegosProps, OraculoSeccionVirtuales, type OraculoSeccionVirtualesProps, OraculoSectionTitle, type OraculoSectionTitleProps, type OraculoTopJuegoItem, OraculoWelcomeBanner, type OraculoWelcomeBannerProps };
package/dist/index.d.ts CHANGED
@@ -139,7 +139,6 @@ interface OraculoClubOlimpoVisualProps {
139
139
  imgSrcMobile: string;
140
140
  imgSrcDesktopBg?: string;
141
141
  imgSrcDesktopLogo?: string;
142
- priority?: boolean;
143
142
  }
144
143
  declare const OraculoClubOlimpoVisual: React.FC<OraculoClubOlimpoVisualProps>;
145
144
 
@@ -261,28 +260,29 @@ interface OraculoSeccionBonoBienvenidaProps {
261
260
  }
262
261
  declare const OraculoSeccionBonoBienvenida: React.FC<OraculoSeccionBonoBienvenidaProps>;
263
262
 
264
- type OraculoClubOlimpoItem = {
263
+ interface OraculoSeccionClubOlimpoItem {
265
264
  text: string;
266
- imgAlt: string;
265
+ buttonLabel?: string;
266
+ imgAlt?: string;
267
267
  images: {
268
268
  mobile: string;
269
- desktopBg: string;
270
- desktopLogo: string;
269
+ desktopBg?: string;
270
+ desktopLogo?: string;
271
271
  };
272
272
  onClick?: () => void;
273
- priority?: boolean;
274
- };
275
- interface OraculoSeccionClubOlimpoProps {
273
+ }
274
+
275
+ interface OraculoSeccionClubOlimpoItems {
276
276
  className?: string;
277
277
  /** Si true, hace el efecto full-bleed (100vw centrado) */
278
278
  fullBleed?: boolean;
279
279
  /** Lista de variantes (puedes pasar 1 o varias). */
280
- items: OraculoClubOlimpoItem[];
280
+ items: OraculoSeccionClubOlimpoItem;
281
281
  /** Índice del item a mostrar si pasas varios. */
282
282
  selectedIndex?: number;
283
283
  /** aria-label de la sección (fallback al imgAlt del item seleccionado). */
284
284
  ariaLabel?: string;
285
285
  }
286
- declare const OraculoSeccionClubOlimpo: React.FC<OraculoSeccionClubOlimpoProps>;
286
+ declare const OraculoSeccionClubOlimpo: React.FC<OraculoSeccionClubOlimpoItems>;
287
287
 
288
- export { OraculoButton, type OraculoButtonProps, OraculoCarousel, OraculoCarouselDots, type OraculoCarouselDotsProps, type OraculoCarouselOptions, type OraculoCarouselProps, type OraculoCarouselRef, type OraculoClubOlimpoItem, OraculoClubOlimpoVisual, type OraculoClubOlimpoVisualProps, type OraculoDestacadoItem, OraculoGameCard, type OraculoGameCardProps, type OraculoGameItem, OraculoGameRankCard, type OraculoGameRankCardProps, type OraculoGameRankCardSizes, OraculoGameSlide, type OraculoGameSlideItem, type OraculoGameSlideProps, OraculoLiveCasinoCard, type OraculoLiveCasinoCardProps, type OraculoLiveCasinoItem, OraculoSeccionBonoBienvenida, type OraculoSeccionBonoBienvenidaProps, OraculoSeccionCasino, OraculoSeccionCasinoEnVivo, type OraculoSeccionCasinoEnVivoProps, type OraculoSeccionCasinoProps, OraculoSeccionClubOlimpo, type OraculoSeccionClubOlimpoProps, OraculoSeccionDestacados, type OraculoSeccionDestacadosProps, OraculoSeccionTopJuegos, type OraculoSeccionTopJuegosProps, OraculoSeccionVirtuales, type OraculoSeccionVirtualesProps, OraculoSectionTitle, type OraculoSectionTitleProps, type OraculoTopJuegoItem, OraculoWelcomeBanner, type OraculoWelcomeBannerProps };
288
+ export { OraculoButton, type OraculoButtonProps, OraculoCarousel, OraculoCarouselDots, type OraculoCarouselDotsProps, type OraculoCarouselOptions, type OraculoCarouselProps, type OraculoCarouselRef, OraculoClubOlimpoVisual, type OraculoClubOlimpoVisualProps, type OraculoDestacadoItem, OraculoGameCard, type OraculoGameCardProps, type OraculoGameItem, OraculoGameRankCard, type OraculoGameRankCardProps, type OraculoGameRankCardSizes, OraculoGameSlide, type OraculoGameSlideItem, type OraculoGameSlideProps, OraculoLiveCasinoCard, type OraculoLiveCasinoCardProps, type OraculoLiveCasinoItem, OraculoSeccionBonoBienvenida, type OraculoSeccionBonoBienvenidaProps, OraculoSeccionCasino, OraculoSeccionCasinoEnVivo, type OraculoSeccionCasinoEnVivoProps, type OraculoSeccionCasinoProps, OraculoSeccionClubOlimpo, OraculoSeccionDestacados, type OraculoSeccionDestacadosProps, OraculoSeccionTopJuegos, type OraculoSeccionTopJuegosProps, OraculoSeccionVirtuales, type OraculoSeccionVirtualesProps, OraculoSectionTitle, type OraculoSectionTitleProps, type OraculoTopJuegoItem, OraculoWelcomeBanner, type OraculoWelcomeBannerProps };
package/dist/index.js CHANGED
@@ -1685,9 +1685,9 @@ var OraculoSeccionClubOlimpo = ({
1685
1685
  }) => {
1686
1686
  const rootRef = (0, import_react6.useRef)(null);
1687
1687
  const bottomRef = (0, import_react6.useRef)(null);
1688
- if (!items || items.length === 0) return null;
1689
- const safeIndex = Math.min(Math.max(selectedIndex, 0), items.length - 1);
1690
- const item = items[safeIndex];
1688
+ if (!items) return null;
1689
+ const safeIndex = Math.min(Math.max(selectedIndex, 0), 1);
1690
+ const item = items;
1691
1691
  (0, import_react6.useLayoutEffect)(() => {
1692
1692
  if (!rootRef.current || !bottomRef.current) return;
1693
1693
  if (typeof ResizeObserver === "undefined") return;
@@ -1723,8 +1723,7 @@ var OraculoSeccionClubOlimpo = ({
1723
1723
  imgAlt: item.imgAlt,
1724
1724
  imgSrcMobile: item.images.mobile,
1725
1725
  imgSrcDesktopBg: item.images.desktopBg,
1726
- imgSrcDesktopLogo: item.images.desktopLogo,
1727
- priority: item.priority
1726
+ imgSrcDesktopLogo: item.images.desktopLogo
1728
1727
  }
1729
1728
  ) })
1730
1729
  }
package/dist/index.mjs CHANGED
@@ -1641,9 +1641,9 @@ var OraculoSeccionClubOlimpo = ({
1641
1641
  }) => {
1642
1642
  const rootRef = useRef6(null);
1643
1643
  const bottomRef = useRef6(null);
1644
- if (!items || items.length === 0) return null;
1645
- const safeIndex = Math.min(Math.max(selectedIndex, 0), items.length - 1);
1646
- const item = items[safeIndex];
1644
+ if (!items) return null;
1645
+ const safeIndex = Math.min(Math.max(selectedIndex, 0), 1);
1646
+ const item = items;
1647
1647
  useLayoutEffect(() => {
1648
1648
  if (!rootRef.current || !bottomRef.current) return;
1649
1649
  if (typeof ResizeObserver === "undefined") return;
@@ -1679,8 +1679,7 @@ var OraculoSeccionClubOlimpo = ({
1679
1679
  imgAlt: item.imgAlt,
1680
1680
  imgSrcMobile: item.images.mobile,
1681
1681
  imgSrcDesktopBg: item.images.desktopBg,
1682
- imgSrcDesktopLogo: item.images.desktopLogo,
1683
- priority: item.priority
1682
+ imgSrcDesktopLogo: item.images.desktopLogo
1684
1683
  }
1685
1684
  ) })
1686
1685
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oraculo-ui",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",