oraculo-ui 0.1.156 → 0.1.158
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/atoms/OraculoBadge/OraculoBadge.d.ts +8 -0
- package/dist/atoms/OraculoButton/OraculoButton.d.ts +24 -8
- package/dist/atoms/OraculoCarouselDots/OraculoCarouselDots.d.ts +9 -0
- package/dist/atoms/OraculoChip/OraculoChip.d.ts +12 -0
- package/dist/atoms/OraculoIconButton/OraculoIconButton.d.ts +23 -0
- package/dist/atoms/OraculoJersey/BasketballJersey.d.ts +1 -1
- package/dist/atoms/OraculoLoader/OraculoLoader.d.ts +10 -0
- package/dist/atoms/OraculoQuantityStepper/OraculoQuantityStepper.d.ts +14 -0
- package/dist/atoms/OraculoSpinner/OraculoSpinner.d.ts +8 -0
- package/dist/atoms/OraculoTabs/OraculoTabs.d.ts +24 -0
- package/dist/atoms/OraculoTag/OraculoTag.d.ts +13 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +49 -1
- package/dist/index.es.js +3717 -2392
- package/dist/index.es.js.map +1 -1
- package/dist/interfaces/oraculo/InterfaceCasinoEnVivo.d.ts +1 -1
- package/dist/interfaces/oraculo/InterfaceGameItem.d.ts +1 -0
- package/dist/molecules/OraculoActionField/OraculoActionField.d.ts +18 -0
- package/dist/molecules/OraculoAlert/OraculoAlert.d.ts +9 -0
- package/dist/molecules/OraculoDeposit/OraculoDeposit.d.ts +36 -0
- package/dist/molecules/OraculoDrawer/OraculoDrawer.d.ts +22 -0
- package/dist/molecules/OraculoFormControls/OraculoFormControls.d.ts +62 -0
- package/dist/molecules/OraculoInput/OraculoField.d.ts +19 -0
- package/dist/molecules/OraculoInput/OraculoFieldGroup.d.ts +11 -0
- package/dist/molecules/OraculoInput/OraculoInput.d.ts +11 -0
- package/dist/molecules/OraculoInput/OraculoPhoneInput.d.ts +15 -0
- package/dist/molecules/OraculoInput/OraculoSelect.d.ts +13 -0
- package/dist/molecules/OraculoModal/OraculoModal.d.ts +31 -0
- package/dist/molecules/OraculoProgress/OraculoBattleBanner.d.ts +16 -0
- package/dist/molecules/OraculoProgress/OraculoBattleProgress.d.ts +10 -0
- package/dist/molecules/OraculoProgress/OraculoStreakDay.d.ts +18 -0
- package/dist/molecules/OraculoProgress/OraculoStreakDays.d.ts +14 -0
- package/dist/molecules/OraculoProgress/OraculoStreakProgress.d.ts +8 -0
- package/dist/molecules/OraculoProgress/ProgressTrack.d.ts +8 -0
- package/dist/molecules/OraculoSnackbar/OraculoSnackbar.d.ts +22 -0
- package/package.json +10 -5
|
@@ -10,6 +10,6 @@ export interface OraculoSeccionCasinoEnVivoProps {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
isPersonalize?: boolean;
|
|
12
12
|
isCasino?: boolean;
|
|
13
|
-
onToggleFavorite?: (next: boolean) => void;
|
|
13
|
+
onToggleFavorite?: (game: OraculoGameItem, next: boolean) => void;
|
|
14
14
|
isLoggedIn?: boolean;
|
|
15
15
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type SharedProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
appearance: "light" | "dark";
|
|
5
|
+
inputLabel: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
successMessage?: string;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
};
|
|
10
|
+
export type OraculoActionFieldProps = SharedProps & ({
|
|
11
|
+
action: "copy";
|
|
12
|
+
} | {
|
|
13
|
+
action: "apply";
|
|
14
|
+
onValueChange: (value: string) => void;
|
|
15
|
+
onApply: (value: string) => boolean | Promise<boolean>;
|
|
16
|
+
});
|
|
17
|
+
export default function OraculoActionField(props: OraculoActionFieldProps): React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoAlertProps {
|
|
3
|
+
appearance: "light" | "dark";
|
|
4
|
+
severity: "error" | "warning" | "success" | "info";
|
|
5
|
+
variant?: "default" | "notice";
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function OraculoAlert({ appearance, severity, variant, children }: OraculoAlertProps): React.JSX.Element;
|
|
9
|
+
export default OraculoAlert;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface DepositMethodDetails {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
logoSrc?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface OraculoPaymentMethodButtonProps extends DepositMethodDetails {
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onSelect: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function OraculoPaymentMethodButton({ label, description, logoSrc, selected, disabled, onSelect, }: OraculoPaymentMethodButtonProps): React.JSX.Element;
|
|
13
|
+
export interface OraculoDepositLimitMessageProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
id?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function OraculoDepositLimitMessage({ children, id }: OraculoDepositLimitMessageProps): React.JSX.Element;
|
|
18
|
+
export interface OraculoDepositAmountCardProps {
|
|
19
|
+
amountLabel?: string;
|
|
20
|
+
actionLabel?: string;
|
|
21
|
+
currencySymbol?: string;
|
|
22
|
+
value: string;
|
|
23
|
+
onValueChange: (value: string) => void;
|
|
24
|
+
limits?: React.ReactNode;
|
|
25
|
+
error?: string;
|
|
26
|
+
method?: DepositMethodDetails;
|
|
27
|
+
presets?: readonly {
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
}[];
|
|
31
|
+
selectedPreset?: string;
|
|
32
|
+
onDeposit: () => void;
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function OraculoDepositAmountCard({ amountLabel, actionLabel, currencySymbol, value, onValueChange, limits, error, method, presets, selectedPreset, onDeposit, disabled, }: OraculoDepositAmountCardProps): React.JSX.Element;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DrawerProps } from '@mui/material/Drawer';
|
|
3
|
+
type DrawerDataAttributes = {
|
|
4
|
+
[attribute in `data-${string}`]?: string | number | boolean;
|
|
5
|
+
};
|
|
6
|
+
export type OraculoDrawerProps = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onExited?: () => void;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
anchor?: NonNullable<DrawerProps["anchor"]>;
|
|
12
|
+
width?: number | string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
ariaLabelledBy?: string;
|
|
15
|
+
rootRef?: (element: HTMLDivElement | null) => void;
|
|
16
|
+
onRef?: (element: HTMLDivElement | null) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
paperClassName?: string;
|
|
19
|
+
onClickCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
20
|
+
} & DrawerDataAttributes;
|
|
21
|
+
export default function OraculoDrawer({ open, onClose, onExited, children, anchor, width, ariaLabel, ariaLabelledBy, rootRef, onRef, className, paperClassName, onClickCapture, ...dataAttributes }: OraculoDrawerProps): React.JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type NativeFormControlProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size">;
|
|
3
|
+
interface OraculoChoiceProps extends NativeFormControlProps {
|
|
4
|
+
appearance: "dark" | "light";
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface OraculoCheckboxProps extends OraculoChoiceProps {
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
}
|
|
10
|
+
export interface OraculoRadioProps extends OraculoChoiceProps {
|
|
11
|
+
controlPosition?: "start" | "end";
|
|
12
|
+
}
|
|
13
|
+
export interface OraculoSwitchProps extends OraculoChoiceProps {
|
|
14
|
+
}
|
|
15
|
+
export declare function OraculoCheckbox({ size, className, ...props }: OraculoCheckboxProps): React.JSX.Element;
|
|
16
|
+
export declare function OraculoRadio(props: OraculoRadioProps): React.JSX.Element;
|
|
17
|
+
export declare function OraculoSwitch({ appearance, children, className, disabled, ...inputProps }: OraculoSwitchProps): React.JSX.Element;
|
|
18
|
+
export interface OraculoRadioGroupProps {
|
|
19
|
+
label: string;
|
|
20
|
+
name: string;
|
|
21
|
+
value: string;
|
|
22
|
+
options: readonly {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}[];
|
|
27
|
+
onChange: (value: string) => void;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function OraculoRadioGroup({ label, name, value, options, onChange, disabled }: OraculoRadioGroupProps): React.JSX.Element;
|
|
31
|
+
export interface OraculoRemovableTagProps {
|
|
32
|
+
children: string;
|
|
33
|
+
onRemove?: () => void;
|
|
34
|
+
removeLabel?: string;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare function OraculoRemovableTag({ children, onRemove, removeLabel, disabled }: OraculoRemovableTagProps): React.JSX.Element;
|
|
38
|
+
export interface OraculoRangeFieldProps {
|
|
39
|
+
label: string;
|
|
40
|
+
value: number;
|
|
41
|
+
onChange: (value: number) => void;
|
|
42
|
+
onRemove?: () => void;
|
|
43
|
+
removeLabel?: string;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare function OraculoRangeField({ label, value, onChange, onRemove, removeLabel, disabled }: OraculoRangeFieldProps): React.JSX.Element;
|
|
47
|
+
export interface OraculoDistributionProps {
|
|
48
|
+
title: string;
|
|
49
|
+
items: readonly {
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
value: string;
|
|
53
|
+
}[];
|
|
54
|
+
defaultOpen?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export declare function OraculoDistribution({ title, items, defaultOpen }: OraculoDistributionProps): React.JSX.Element;
|
|
57
|
+
export declare function OraculoFormNote({ children, id }: {
|
|
58
|
+
children: React.ReactNode;
|
|
59
|
+
id?: string;
|
|
60
|
+
}): React.JSX.Element;
|
|
61
|
+
export declare function OraculoFormAddAction({ children, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
appearance: "light" | "dark";
|
|
5
|
+
layout?: "standard" | "compact";
|
|
6
|
+
hideLabel?: boolean;
|
|
7
|
+
hint?: React.ReactNode;
|
|
8
|
+
error?: string;
|
|
9
|
+
info?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
interface FieldProps extends OraculoFieldProps {
|
|
14
|
+
id: string;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function fieldDescription(id: string, describedBy?: string, hasHint?: boolean): string | undefined;
|
|
18
|
+
export declare function OraculoField({ id, label, appearance, layout, hideLabel, hint, error, info, disabled, className, children, }: FieldProps): React.JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoInputProps } from './OraculoInput';
|
|
3
|
+
import { OraculoSelectProps } from './OraculoSelect';
|
|
4
|
+
export interface OraculoFieldGroupProps extends OraculoInputProps {
|
|
5
|
+
selector: Pick<OraculoSelectProps, "options" | "value" | "defaultValue" | "onChange" | "onBlur" | "name" | "required"> & {
|
|
6
|
+
label: string;
|
|
7
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare const OraculoFieldGroup: React.ForwardRefExoticComponent<OraculoFieldGroupProps & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export default OraculoFieldGroup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoFieldProps } from './OraculoField';
|
|
3
|
+
export interface OraculoInputProps extends OraculoFieldProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "className" | "disabled"> {
|
|
4
|
+
onClear?: () => void;
|
|
5
|
+
clearLabel?: string;
|
|
6
|
+
showPasswordLabel?: string;
|
|
7
|
+
hidePasswordLabel?: string;
|
|
8
|
+
leadingControl?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const OraculoInput: React.ForwardRefExoticComponent<OraculoInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
11
|
+
export default OraculoInput;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoInputProps } from './OraculoInput';
|
|
3
|
+
import { OraculoSelectOption } from './OraculoSelect';
|
|
4
|
+
export interface OraculoCountryOption extends OraculoSelectOption {
|
|
5
|
+
flagSrc?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface OraculoPhoneInputProps extends Omit<OraculoInputProps, "type" | "leadingControl"> {
|
|
8
|
+
countries: readonly OraculoCountryOption[];
|
|
9
|
+
country: string;
|
|
10
|
+
countryLabel: string;
|
|
11
|
+
countryName?: string;
|
|
12
|
+
onCountryChange: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const OraculoPhoneInput: React.ForwardRefExoticComponent<OraculoPhoneInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export default OraculoPhoneInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoFieldProps } from './OraculoField';
|
|
3
|
+
export interface OraculoSelectOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface OraculoSelectProps extends OraculoFieldProps, Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size" | "className" | "disabled" | "multiple" | "children"> {
|
|
9
|
+
options: readonly OraculoSelectOption[];
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const OraculoSelect: React.ForwardRefExoticComponent<OraculoSelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
13
|
+
export default OraculoSelect;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ModalDataAttributes = {
|
|
3
|
+
[attribute in `data-${string}`]?: string | number | boolean;
|
|
4
|
+
};
|
|
5
|
+
export type OraculoModalCloseButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & ModalDataAttributes;
|
|
6
|
+
export type OraculoModalProps = {
|
|
7
|
+
open: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
title: string;
|
|
10
|
+
closeLabel?: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
busy?: boolean;
|
|
13
|
+
wide?: boolean;
|
|
14
|
+
confirmation?: boolean;
|
|
15
|
+
confirmationImage?: {
|
|
16
|
+
src: string;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
19
|
+
alt?: string;
|
|
20
|
+
fit?: "contain";
|
|
21
|
+
};
|
|
22
|
+
onEntered?: () => void;
|
|
23
|
+
className?: string;
|
|
24
|
+
contentClassName?: string;
|
|
25
|
+
onClickCapture?: React.MouseEventHandler<HTMLDivElement>;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
ariaDescribedBy?: string;
|
|
28
|
+
closeButtonProps?: OraculoModalCloseButtonProps;
|
|
29
|
+
} & ModalDataAttributes;
|
|
30
|
+
export default function OraculoModal({ open, onClose, title, closeLabel, children, busy, wide, confirmation, confirmationImage, onEntered, className, contentClassName, onClickCapture, ariaLabel, ariaDescribedBy, closeButtonProps, ...dataAttributes }: OraculoModalProps): React.JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoBattleProgressProps } from './OraculoBattleProgress';
|
|
3
|
+
type BattleBannerAction = {
|
|
4
|
+
href: string;
|
|
5
|
+
onClick?: never;
|
|
6
|
+
} | {
|
|
7
|
+
href?: never;
|
|
8
|
+
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
};
|
|
10
|
+
export type OraculoBattleBannerProps = Omit<OraculoBattleProgressProps, "layout"> & BattleBannerAction & {
|
|
11
|
+
message: string;
|
|
12
|
+
actionLabel: string;
|
|
13
|
+
variant?: "participating" | "invitation";
|
|
14
|
+
};
|
|
15
|
+
export default function OraculoBattleBanner(props: OraculoBattleBannerProps): React.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoBattleProgressProps {
|
|
3
|
+
label: string;
|
|
4
|
+
leftName: string;
|
|
5
|
+
rightName: string;
|
|
6
|
+
leftPercent: number;
|
|
7
|
+
layout?: "responsive" | "compact";
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function OraculoBattleProgress({ label, leftName, rightName, leftPercent, layout, className, }: OraculoBattleProgressProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface StreakDayBase {
|
|
3
|
+
label: string;
|
|
4
|
+
statusLabel?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export type OraculoStreakDayProps = StreakDayBase & ({
|
|
8
|
+
state: "idle" | "completed" | "waiting";
|
|
9
|
+
remainingMinutes?: never;
|
|
10
|
+
} | {
|
|
11
|
+
state: "countdown" | "expired";
|
|
12
|
+
remainingMinutes: number;
|
|
13
|
+
hoursLabel?: string;
|
|
14
|
+
minutesLabel?: string;
|
|
15
|
+
expiredLabel?: string;
|
|
16
|
+
});
|
|
17
|
+
export default function OraculoStreakDay(props: OraculoStreakDayProps): React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { OraculoStreakDayProps } from './OraculoStreakDay';
|
|
3
|
+
export interface OraculoStreakDaysProps {
|
|
4
|
+
label: string;
|
|
5
|
+
days: readonly (OraculoStreakDayProps & {
|
|
6
|
+
id: string;
|
|
7
|
+
})[];
|
|
8
|
+
onPrevious?: React.MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
onNext?: React.MouseEventHandler<HTMLButtonElement>;
|
|
10
|
+
previousLabel?: string;
|
|
11
|
+
nextLabel?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export default function OraculoStreakDays({ label, days, onPrevious, onNext, previousLabel, nextLabel, className, }: OraculoStreakDaysProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OraculoStreakProgressProps {
|
|
3
|
+
label: string;
|
|
4
|
+
totalDays: 3 | 7;
|
|
5
|
+
completedDays: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export default function OraculoStreakProgress({ label, totalDays, completedDays, className }: OraculoStreakProgressProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function assertProgressRange(value: number, maximum: number, name: string): void;
|
|
3
|
+
export declare function assertProgressCount(value: number, maximum: number, name: string): void;
|
|
4
|
+
export declare function ProgressTrack({ value, children, className }: {
|
|
5
|
+
value: number;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PortalProps } from '@mui/material/Portal';
|
|
3
|
+
import { SnackbarProps } from '@mui/material/Snackbar';
|
|
4
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
5
|
+
type SnackbarDataAttributes = {
|
|
6
|
+
[attribute in `data-${string}`]?: string | number | boolean;
|
|
7
|
+
};
|
|
8
|
+
export type OraculoSnackbarProps = {
|
|
9
|
+
open: boolean;
|
|
10
|
+
severity: "success" | "error" | "warning" | "info";
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onExited?: () => void;
|
|
14
|
+
closeLabel?: string;
|
|
15
|
+
autoHideDuration?: number | null;
|
|
16
|
+
anchorOrigin?: SnackbarProps["anchorOrigin"];
|
|
17
|
+
container?: PortalProps["container"];
|
|
18
|
+
className?: string;
|
|
19
|
+
sx?: SxProps<Theme>;
|
|
20
|
+
} & SnackbarDataAttributes;
|
|
21
|
+
export default function OraculoSnackbar({ open, severity, children, onClose, onExited, closeLabel, autoHideDuration, anchorOrigin, container, className, sx, ...dataAttributes }: OraculoSnackbarProps): React.JSX.Element;
|
|
22
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oraculo-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.158",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,22 +16,27 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "vite build"
|
|
19
|
+
"build": "vite build",
|
|
20
|
+
"typecheck": "tsc --noEmit",
|
|
21
|
+
"test": "npm run build && npm run typecheck && node --test tests/*.test.cjs"
|
|
20
22
|
},
|
|
21
23
|
"peerDependencies": {
|
|
22
24
|
"@mui/icons-material": ">=5",
|
|
23
|
-
"@mui/material": ">=5",
|
|
25
|
+
"@mui/material": ">=5 <8",
|
|
24
26
|
"@olimpo/capture-client": ">=1.0.0",
|
|
25
27
|
"@splidejs/react-splide": ">=0.7.0",
|
|
26
28
|
"firebase": ">=11.0.0",
|
|
27
|
-
"react": "^18.2.0",
|
|
28
|
-
"react-dom": "^18.2.0"
|
|
29
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
30
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
33
|
+
"@emotion/react": "^11.14.0",
|
|
34
|
+
"@emotion/styled": "^11.14.1",
|
|
31
35
|
"@types/react": "^18.3.27",
|
|
32
36
|
"@types/react-dom": "^18.3.7",
|
|
33
37
|
"@vitejs/plugin-react": "^4.7.0",
|
|
34
38
|
"autoprefixer": "^10.4.23",
|
|
39
|
+
"jsdom": "^26.1.0",
|
|
35
40
|
"postcss": "^8.5.6",
|
|
36
41
|
"typescript": "^5.9.3",
|
|
37
42
|
"vite": "^6.4.1",
|