@codeplex-sac/ui 0.0.3 → 0.0.5
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/index.js +44 -44
- package/index.mjs +549 -526
- package/lib/boton/boton.d.ts +5 -2
- package/lib/grupo-botones/grupo-botones.d.ts +3 -3
- package/package.json +1 -1
package/lib/boton/boton.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ButtonProps } from '@mui/material/Button';
|
|
3
|
-
export type CodeplexBotonVariante = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success';
|
|
3
|
+
export type CodeplexBotonVariante = 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success' | 'contenido' | 'texto' | 'borde';
|
|
4
4
|
export type CodeplexBotonTamano = 'xs' | 'sm' | 'md' | 'lg';
|
|
5
|
-
export interface CodeplexBotonProps extends Omit<ButtonProps, 'variant' | 'size' | 'onClick'> {
|
|
5
|
+
export interface CodeplexBotonProps extends Omit<ButtonProps, 'variant' | 'size' | 'onClick' | 'color'> {
|
|
6
6
|
variante?: CodeplexBotonVariante;
|
|
7
7
|
tamano?: CodeplexBotonTamano;
|
|
8
8
|
cargando?: boolean;
|
|
9
9
|
alHacerClick?: ButtonProps['onClick'];
|
|
10
|
+
color?: ButtonProps['color'] | 'primario' | 'secundario' | 'exito' | 'error' | 'info' | 'advertencia';
|
|
10
11
|
iconoIzquierda?: React.ReactNode;
|
|
11
12
|
iconoDerecha?: React.ReactNode;
|
|
13
|
+
texto?: React.ReactNode;
|
|
12
14
|
component?: React.ElementType;
|
|
13
15
|
to?: string;
|
|
14
16
|
href?: string;
|
|
17
|
+
fullWidth?: boolean;
|
|
15
18
|
}
|
|
16
19
|
export declare const EntradaOcultaVisualmente: React.ComponentType<React.ComponentProps<"input">>;
|
|
17
20
|
export declare const CodeplexBoton: React.ForwardRefExoticComponent<Omit<CodeplexBotonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ButtonGroupProps } from '@mui/material/ButtonGroup';
|
|
2
|
-
export interface CodeplexGrupoBotonesProps extends ButtonGroupProps {
|
|
3
|
-
variante?: ButtonGroupProps['variant'];
|
|
2
|
+
export interface CodeplexGrupoBotonesProps extends Omit<ButtonGroupProps, 'variant' | 'color'> {
|
|
3
|
+
variante?: ButtonGroupProps['variant'] | 'contenido' | 'texto' | 'borde';
|
|
4
4
|
tamano?: ButtonGroupProps['size'];
|
|
5
|
-
color?: ButtonGroupProps['color'];
|
|
5
|
+
color?: ButtonGroupProps['color'] | 'primario' | 'secundario' | 'exito' | 'error' | 'info' | 'advertencia';
|
|
6
6
|
}
|
|
7
7
|
export declare const CodeplexGrupoBotones: ({ children, tamano, variante, color, ...props }: CodeplexGrupoBotonesProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const CodeplexButtonGroup: ({ children, tamano, variante, color, ...props }: CodeplexGrupoBotonesProps) => import("react/jsx-runtime").JSX.Element;
|