jclib-ui 0.0.88 → 0.0.90

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.
@@ -1,5 +1,6 @@
1
- export default function Alerta({ onConfirm, children }: {
1
+ export default function Alerta({ onConfirm, text, children }: {
2
2
  onConfirm: any;
3
+ text?: string | undefined;
3
4
  children: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
5
6
  import { Aviso } from './Aviso';
@@ -1,4 +1,5 @@
1
- export function Aviso({ onConfirm, children }: {
1
+ export function Aviso({ onConfirm, text, children }: {
2
2
  onConfirm: any;
3
+ text?: string | undefined;
3
4
  children: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
- export function Confirma({ onConfirm, onCancel, children, defaultBtn }: {
1
+ export function Confirma({ onConfirm, onCancel, text, children, defaultBtn, }: {
2
2
  onConfirm: any;
3
3
  onCancel: any;
4
+ text?: string | undefined;
4
5
  children: any;
5
6
  defaultBtn?: undefined;
6
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,13 @@
1
- export function JCAlert({ type, onConfirm, onCancel, title, children, defaultBtn, }: {
2
- type?: number | undefined;
3
- onConfirm: any;
4
- onCancel: any;
5
- title: any;
6
- children: any;
7
- defaultBtn?: number | undefined;
8
- }): import("react/jsx-runtime").JSX.Element;
1
+ import { ReactNode } from 'react'
2
+
3
+ type Props = {
4
+ type: number
5
+ onConfirm: () => void
6
+ onCancel: () => void
7
+ title?: string
8
+ text?: string
9
+ children?: ReactNode
10
+ defaultBtn?: number
11
+ }
12
+
13
+ export function JCAlert(props: Props): ReactNode