oraculo-ui 0.1.157 → 0.1.159

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 (39) hide show
  1. package/dist/atoms/OraculoBadge/OraculoBadge.d.ts +8 -0
  2. package/dist/atoms/OraculoButton/OraculoButton.d.ts +24 -8
  3. package/dist/atoms/OraculoCarouselDots/OraculoCarouselDots.d.ts +9 -0
  4. package/dist/atoms/OraculoChip/OraculoChip.d.ts +12 -0
  5. package/dist/atoms/OraculoIconButton/OraculoIconButton.d.ts +23 -0
  6. package/dist/atoms/OraculoJersey/BasketballJersey.d.ts +1 -1
  7. package/dist/atoms/OraculoLoader/OraculoLoader.d.ts +10 -0
  8. package/dist/atoms/OraculoQuantityStepper/OraculoQuantityStepper.d.ts +14 -0
  9. package/dist/atoms/OraculoSpinner/OraculoSpinner.d.ts +8 -0
  10. package/dist/atoms/OraculoTabs/OraculoTabs.d.ts +24 -0
  11. package/dist/atoms/OraculoTag/OraculoTag.d.ts +13 -0
  12. package/dist/index.cjs.js +6 -6
  13. package/dist/index.cjs.js.map +1 -1
  14. package/dist/index.css +1 -1
  15. package/dist/index.d.ts +51 -1
  16. package/dist/index.es.js +3762 -2395
  17. package/dist/index.es.js.map +1 -1
  18. package/dist/interfaces/oraculo/InterfaceCasinoEnVivo.d.ts +1 -1
  19. package/dist/interfaces/oraculo/InterfaceGameItem.d.ts +1 -0
  20. package/dist/molecules/OraculoActionField/OraculoActionField.d.ts +18 -0
  21. package/dist/molecules/OraculoAlert/OraculoAlert.d.ts +9 -0
  22. package/dist/molecules/OraculoDeposit/OraculoDeposit.d.ts +36 -0
  23. package/dist/molecules/OraculoDrawer/OraculoDrawer.d.ts +22 -0
  24. package/dist/molecules/OraculoFormControls/OraculoFormControls.d.ts +62 -0
  25. package/dist/molecules/OraculoInput/OraculoField.d.ts +19 -0
  26. package/dist/molecules/OraculoInput/OraculoFieldGroup.d.ts +11 -0
  27. package/dist/molecules/OraculoInput/OraculoInput.d.ts +11 -0
  28. package/dist/molecules/OraculoInput/OraculoPhoneInput.d.ts +15 -0
  29. package/dist/molecules/OraculoInput/OraculoSelect.d.ts +13 -0
  30. package/dist/molecules/OraculoModal/OraculoModal.d.ts +31 -0
  31. package/dist/molecules/OraculoProgress/OraculoBattleBanner.d.ts +16 -0
  32. package/dist/molecules/OraculoProgress/OraculoBattleProgress.d.ts +10 -0
  33. package/dist/molecules/OraculoProgress/OraculoStreakDay.d.ts +18 -0
  34. package/dist/molecules/OraculoProgress/OraculoStreakDays.d.ts +14 -0
  35. package/dist/molecules/OraculoProgress/OraculoStreakProgress.d.ts +8 -0
  36. package/dist/molecules/OraculoProgress/ProgressTrack.d.ts +8 -0
  37. package/dist/molecules/OraculoSnackbar/OraculoSnackbar.d.ts +22 -0
  38. package/dist/molecules/OraculoStepIndicator/OraculoStepIndicator.d.ts +9 -0
  39. package/package.json +10 -5
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface OraculoBadgeProps {
3
+ variant: "hot" | "exclusive" | "new";
4
+ appearance: "light" | "dark";
5
+ children?: string;
6
+ className?: string;
7
+ }
8
+ export default function OraculoBadge({ variant, appearance, children, className }: OraculoBadgeProps): React.JSX.Element;
@@ -1,20 +1,36 @@
1
1
  import { default as React } from 'react';
2
- export interface OraculoButtonProps {
2
+ interface OraculoButtonCommonProps {
3
3
  children?: React.ReactNode;
4
- onClick?: any;
5
- href?: string;
6
- target?: React.HTMLAttributeAnchorTarget;
7
- rel?: string;
8
- type?: "button" | "submit" | "reset";
9
4
  disabled?: boolean;
10
- variant?: "primary" | "secondary" | "tertiary";
5
+ loading?: boolean;
6
+ loadingLabel?: string;
11
7
  size?: "sm" | "md" | "lg";
8
+ /** Figma Device: "mobile" keeps the mobile typography on every viewport. */
9
+ device?: "responsive" | "mobile";
12
10
  fullWidth?: boolean;
13
11
  fullHeight?: boolean;
14
12
  className?: string;
15
13
  ariaLabel?: string;
14
+ ariaPressed?: boolean;
16
15
  leftIcon?: React.ReactNode;
17
16
  rightIcon?: React.ReactNode;
18
17
  iconOnly?: boolean;
19
18
  }
20
- export default function OraculoButton({ children, onClick, href, target, rel, type, disabled, variant, size, fullWidth, fullHeight, className, ariaLabel, leftIcon, rightIcon, iconOnly, }: OraculoButtonProps): React.JSX.Element;
19
+ type OraculoButtonVariantProps = {
20
+ appearance?: "legacy" | "light" | "dark";
21
+ variant?: "primary" | "secondary" | "tertiary";
22
+ } | {
23
+ appearance: "dark";
24
+ variant: "row";
25
+ };
26
+ type ButtonAttributes = Omit<React.ComponentPropsWithoutRef<"button">, keyof OraculoButtonCommonProps | "appearance" | "variant">;
27
+ type LinkAttributes = Omit<React.ComponentPropsWithoutRef<"a">, keyof OraculoButtonCommonProps | "appearance" | "variant" | "href">;
28
+ export type OraculoButtonProps = OraculoButtonCommonProps & OraculoButtonVariantProps & ((ButtonAttributes & {
29
+ href?: undefined;
30
+ target?: never;
31
+ rel?: never;
32
+ }) | (LinkAttributes & {
33
+ href: string;
34
+ }));
35
+ declare const OraculoButton: React.ForwardRefExoticComponent<OraculoButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
36
+ export default OraculoButton;
@@ -1,9 +1,18 @@
1
1
  import { default as React } from 'react';
2
+ type CarouselDataAttributes = {
3
+ [attribute in `data-${string}`]?: string | number | boolean;
4
+ };
5
+ export type OraculoCarouselDotProps = React.ButtonHTMLAttributes<HTMLButtonElement> & CarouselDataAttributes;
2
6
  export interface OraculoCarouselDotsProps {
3
7
  total: number;
4
8
  active: number;
5
9
  onSelect?: (index: number) => void;
6
10
  className?: string;
11
+ appearance?: "legacy" | "dark" | "light";
12
+ label?: string;
13
+ getItemLabel?: (index: number) => string;
14
+ variant?: "progress" | "default" | "compact" | "gallery";
15
+ getItemProps?: (index: number) => OraculoCarouselDotProps;
7
16
  /** tiempo del autoplay/progreso (ms) */
8
17
  durationMs?: number;
9
18
  }
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export interface OraculoChipProps {
3
+ children: React.ReactNode;
4
+ appearance: "dark" | "light";
5
+ className?: string;
6
+ selected?: boolean;
7
+ disabled?: boolean;
8
+ onClick?: () => void;
9
+ onRemove?: () => void;
10
+ removeLabel?: string;
11
+ }
12
+ export default function OraculoChip({ children, appearance, className, selected, disabled, onClick, onRemove, removeLabel, }: OraculoChipProps): React.JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ type IconButtonDataAttributes = {
3
+ [attribute in `data-${string}`]?: string | number | boolean;
4
+ };
5
+ export type OraculoIconButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & IconButtonDataAttributes & {
6
+ icon: React.ReactNode;
7
+ ariaLabel: string;
8
+ size?: "xs" | "sm" | "md";
9
+ appearance: "dark" | "light";
10
+ surface?: "transparent" | "soft";
11
+ selected?: boolean;
12
+ loading?: boolean;
13
+ };
14
+ declare const OraculoIconButton: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> & IconButtonDataAttributes & {
15
+ icon: React.ReactNode;
16
+ ariaLabel: string;
17
+ size?: "xs" | "sm" | "md";
18
+ appearance: "dark" | "light";
19
+ surface?: "transparent" | "soft";
20
+ selected?: boolean;
21
+ loading?: boolean;
22
+ } & React.RefAttributes<HTMLButtonElement>>;
23
+ export default OraculoIconButton;
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { TemplateProps } from './jerseysInterface';
3
- export declare function BasketballMenPaths({ base, sleeve, stripes, sleevelong }: TemplateProps): React.JSX.Element;
3
+ export declare function BasketballMenPaths({ base, sleeve }: TemplateProps): React.JSX.Element;
4
4
  export declare function BasketballWomenPaths({ base, sleeve, stripes, sleevelong }: TemplateProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface OraculoLoaderProps {
3
+ label?: string;
4
+ ariaLabel?: string;
5
+ logoSrc: string;
6
+ logoAlt?: string;
7
+ className?: string;
8
+ variant?: "page" | "inline";
9
+ }
10
+ export default function OraculoLoader({ label, ariaLabel, logoSrc, logoAlt, className, variant, }: OraculoLoaderProps): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ export interface OraculoQuantityStepperProps {
3
+ value: number;
4
+ max: number;
5
+ onChange: (value: number) => void;
6
+ min?: number;
7
+ label: string;
8
+ decreaseLabel: string;
9
+ increaseLabel: string;
10
+ disabled?: boolean;
11
+ size?: "regular" | "compact";
12
+ appearance: "dark" | "light";
13
+ }
14
+ export default function OraculoQuantityStepper({ value, max, onChange, min, label, decreaseLabel, increaseLabel, disabled, size, appearance, }: OraculoQuantityStepperProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface OraculoSpinnerProps {
3
+ label: string;
4
+ size?: number;
5
+ appearance: "dark" | "light";
6
+ className?: string;
7
+ }
8
+ export default function OraculoSpinner({ label, size, appearance, className, }: OraculoSpinnerProps): React.JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ type TabsDataAttributes = {
3
+ [attribute in `data-${string}`]?: string | number | boolean;
4
+ };
5
+ export type OraculoTabButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & TabsDataAttributes;
6
+ export interface OraculoTabItem {
7
+ id: string;
8
+ label: React.ReactNode;
9
+ panelId?: string;
10
+ buttonId?: string;
11
+ disabled?: boolean;
12
+ }
13
+ export interface OraculoTabsProps {
14
+ label: string;
15
+ value: string;
16
+ items: readonly OraculoTabItem[];
17
+ onChange: (id: string) => void;
18
+ variant?: "pill" | "underline";
19
+ appearance: "dark" | "light";
20
+ className?: string;
21
+ getItemProps?: (index: number, item: OraculoTabItem) => OraculoTabButtonProps;
22
+ }
23
+ export default function OraculoTabs({ label, value, items, onChange, variant, appearance, className, getItemProps, }: OraculoTabsProps): React.JSX.Element;
24
+ export {};
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export interface OraculoTagProps {
3
+ children: string;
4
+ appearance: "light" | "dark";
5
+ variant?: "primary" | "secondary" | "tertiary";
6
+ icon?: React.ReactNode;
7
+ selected?: boolean;
8
+ disabled?: boolean;
9
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
10
+ ariaLabel?: string;
11
+ className?: string;
12
+ }
13
+ export default function OraculoTag({ children, appearance, variant, icon, selected, disabled, onClick, ariaLabel, className, }: OraculoTagProps): React.JSX.Element;