@codeplex-sac/feedback 0.1.1

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.
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { DialogProps, DialogTitleProps, DialogContentProps, DialogContentTextProps, DialogActionsProps } from '@mui/material';
3
+ export interface CodeplexDialogoProps extends DialogProps {
4
+ }
5
+ export declare const CodeplexDialogo: React.FC<CodeplexDialogoProps>;
6
+ export interface CodeplexDialogoTituloProps extends DialogTitleProps {
7
+ }
8
+ export declare const CodeplexDialogoTitulo: React.FC<CodeplexDialogoTituloProps>;
9
+ export interface CodeplexDialogoContenidoProps extends DialogContentProps {
10
+ }
11
+ export declare const CodeplexDialogoContenido: React.FC<CodeplexDialogoContenidoProps>;
12
+ export interface CodeplexDialogoTextoProps extends DialogContentTextProps {
13
+ }
14
+ export declare const CodeplexDialogoTexto: React.FC<CodeplexDialogoTextoProps>;
15
+ export interface CodeplexDialogoAccionesProps extends DialogActionsProps {
16
+ }
17
+ export declare const CodeplexDialogoAcciones: React.FC<CodeplexDialogoAccionesProps>;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { TooltipProps } from '@mui/material/Tooltip';
3
+ export type CodeplexTooltipLado = 'arriba' | 'abajo' | 'izquierda' | 'derecha';
4
+ export type CodeplexTooltipColor = 'oscuro' | 'claro' | 'primario' | 'azul';
5
+ export type CodeplexTooltipAnimacion = 'zoom' | 'fade';
6
+ export interface CodeplexMensajeEmergenteProps extends Omit<TooltipProps, 'title' | 'placement' | 'arrow' | 'children'> {
7
+ contenido: React.ReactNode;
8
+ children: React.ReactElement;
9
+ lado?: CodeplexTooltipLado;
10
+ flecha?: boolean;
11
+ color?: CodeplexTooltipColor;
12
+ animacion?: CodeplexTooltipAnimacion;
13
+ retraso?: number;
14
+ }
15
+ export declare const CodeplexMensajeEmergente: ({ contenido, children, lado, flecha, color, animacion, retraso, className, sx, ...props }: CodeplexMensajeEmergenteProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const CodeplexTooltip: ({ contenido, children, lado, flecha, color, animacion, retraso, className, sx, ...props }: CodeplexMensajeEmergenteProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { DialogProps } from '@mui/material';
3
+ export interface CodeplexModalProps extends Omit<DialogProps, 'open' | 'onClose' | 'title' | 'maxWidth' | 'fullScreen'> {
4
+ abierto?: boolean;
5
+ alCerrar?: (event: {}, reason: 'backdropClick' | 'escapeKeyDown' | 'closeIcon') => void;
6
+ titulo?: React.ReactNode;
7
+ subtitulo?: string;
8
+ children: React.ReactNode;
9
+ pie?: React.ReactNode;
10
+ anchoMaximo?: DialogProps['maxWidth'];
11
+ pantallaCompleta?: boolean;
12
+ arrastrable?: boolean;
13
+ redimensionable?: boolean;
14
+ sinFondo?: boolean;
15
+ bloqueado?: boolean;
16
+ mostrarIconoCierre?: boolean;
17
+ }
18
+ export declare const CodeplexModal: ({ abierto, alCerrar, titulo, subtitulo, children, pie, anchoMaximo, pantallaCompleta, arrastrable, redimensionable, sinFondo, bloqueado, mostrarIconoCierre, ...props }: CodeplexModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { SnackbarProps } from '@mui/material/Snackbar';
3
+ export type CodeplexNotificacionVariante = 'info' | 'exito' | 'advertencia' | 'error';
4
+ export type CodeplexNotificacionEstilo = 'solido' | 'suave' | 'cristal' | 'contorno';
5
+ export type CodeplexNotificacionAnimacion = 'slide' | 'grow' | 'fade';
6
+ export type CodeplexNotificacionPosicion = 'arriba-izquierda' | 'arriba-centro' | 'arriba-derecha' | 'abajo-izquierda' | 'abajo-centro' | 'abajo-derecha';
7
+ export interface CodeplexNotificacionProps extends Omit<SnackbarProps, 'open' | 'onClose' | 'anchorOrigin'> {
8
+ abierto: boolean;
9
+ alCerrar?: () => void;
10
+ variante?: CodeplexNotificacionVariante;
11
+ estilo?: CodeplexNotificacionEstilo;
12
+ titulo?: string;
13
+ mensaje: string | React.ReactNode;
14
+ posicion?: CodeplexNotificacionPosicion;
15
+ animacion?: CodeplexNotificacionAnimacion;
16
+ duracion?: number | null;
17
+ mostrarIcono?: boolean;
18
+ mostrarProgreso?: boolean;
19
+ cerrable?: boolean;
20
+ accion?: React.ReactNode;
21
+ }
22
+ export declare const CodeplexNotificacion: ({ abierto, alCerrar, variante, estilo, titulo, mensaje, posicion, animacion, duracion, mostrarIcono, mostrarProgreso, cerrable, accion, className, sx, ...props }: CodeplexNotificacionProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const CodeplexTostada: ({ abierto, alCerrar, variante, estilo, titulo, mensaje, posicion, animacion, duracion, mostrarIcono, mostrarProgreso, cerrable, accion, className, sx, ...props }: CodeplexNotificacionProps) => import("react/jsx-runtime").JSX.Element;
24
+ export declare const CodeplexToast: ({ abierto, alCerrar, variante, estilo, titulo, mensaje, posicion, animacion, duracion, mostrarIcono, mostrarProgreso, cerrable, accion, className, sx, ...props }: CodeplexNotificacionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,55 @@
1
+ import { default as React } from 'react';
2
+ import { PopoverProps as MuiPopoverProps, SxProps, Theme } from '@mui/material';
3
+ export interface CodeplexVentanaEmergenteProps extends Omit<MuiPopoverProps, 'open' | 'anchorEl' | 'onClose' | 'title' | 'anchorOrigin' | 'transformOrigin' | 'children'> {
4
+ /**
5
+ * Contenido que se mostrará dentro de la ventana emergente.
6
+ * Alias de `children`.
7
+ */
8
+ hijos?: React.ReactNode;
9
+ /**
10
+ * Propiedad original de React para el contenido.
11
+ */
12
+ children?: React.ReactNode;
13
+ /**
14
+ * Elemento HTML que sirve de ancla para la posición de la ventana.
15
+ * Alias de `anchorEl`.
16
+ */
17
+ elementoAncla?: MuiPopoverProps['anchorEl'];
18
+ /**
19
+ * Controla si la ventana está visible.
20
+ * Alias de `open`.
21
+ */
22
+ abierto: boolean;
23
+ /**
24
+ * Función que se ejecuta al solicitar cerrar la ventana.
25
+ * Alias de `onClose`.
26
+ */
27
+ alCerrar?: (event: {}, reason: 'backdropClick' | 'escapeKeyDown' | 'closeIcon') => void;
28
+ /**
29
+ * Título de la ventana emergente.
30
+ */
31
+ titulo?: React.ReactNode;
32
+ /**
33
+ * Muestra el botón de cierre en la esquina superior derecha.
34
+ * @default false
35
+ */
36
+ mostrarIconoCierre?: boolean;
37
+ /**
38
+ * Estilos adicionales para el contenedor interno (Box).
39
+ */
40
+ estiloContenido?: SxProps<Theme>;
41
+ /**
42
+ * Punto de origen en el elemento ancla. Define dónde se "engancha" la ventana.
43
+ */
44
+ origenAncla?: MuiPopoverProps['anchorOrigin'];
45
+ /**
46
+ * Punto de origen en la propia ventana para la transformación y posicionamiento.
47
+ */
48
+ origenTransformacion?: MuiPopoverProps['transformOrigin'];
49
+ }
50
+ /**
51
+ * El componente CodeplexVentanaEmergente (Popover) muestra contenido flotante anclado a un elemento.
52
+ * A diferencia del Popper (Posicionador), el Popover bloquea la interacción con el fondo (modal-like)
53
+ * y gestiona su propio estado de foco.
54
+ */
55
+ export declare const CodeplexVentanaEmergente: ({ hijos, children, titulo, mostrarIconoCierre, alCerrar, estiloContenido, elementoAncla, abierto, origenAncla, origenTransformacion, sx, ...props }: CodeplexVentanaEmergenteProps) => import("react/jsx-runtime").JSX.Element;
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@codeplex-sac/feedback",
3
+ "version": "0.1.1",
4
+ "type": "module",
5
+ "main": "./index.js",
6
+ "module": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./index.js",
12
+ "require": "./index.js"
13
+ }
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "peerDependencies": {
19
+ "react": "^19.0.0",
20
+ "react-dom": "^19.0.0"
21
+ },
22
+ "dependencies": {
23
+ "@mui/material": "^7.3.6",
24
+ "@mui/icons-material": "^7.3.6",
25
+ "@mui/system": "^7.3.7",
26
+ "@emotion/react": "^11.14.0",
27
+ "@emotion/styled": "^11.14.1"
28
+ }
29
+ }