@codeplex-sac/superposiciones 0.1.2

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,9 @@
1
+ import { default as React } from 'react';
2
+ export interface CodeplexDetectorClicFueraProps {
3
+ children: React.ReactElement;
4
+ alClicFuera: (event: MouseEvent | TouchEvent) => void;
5
+ eventoMouse?: 'onClick' | 'onMouseDown' | 'onMouseUp' | false;
6
+ eventoToque?: 'onTouchEnd' | 'onTouchStart' | false;
7
+ deshabilitarArbolReact?: boolean;
8
+ }
9
+ export declare const CodeplexDetectorClicFuera: ({ children, alClicFuera, eventoMouse, eventoToque, deshabilitarArbolReact }: CodeplexDetectorClicFueraProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { PortalProps as MuiPortalProps } from '@mui/material';
3
+ export interface CodeplexPortalProps extends Omit<MuiPortalProps, 'container'> {
4
+ contenedor?: MuiPortalProps['container'];
5
+ container?: MuiPortalProps['container'];
6
+ idContenedor?: string;
7
+ containerId?: string;
8
+ children: React.ReactNode;
9
+ deshabilitarPortal?: boolean;
10
+ disablePortal?: boolean;
11
+ }
12
+ export declare const CodeplexPortal: ({ contenedor, container, idContenedor, containerId, children, deshabilitarPortal, disablePortal, ...props }: CodeplexPortalProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { PopperProps as MuiPopperProps, SxProps, Theme } from '@mui/material';
3
+ export interface CodeplexPosicionadorProps extends Omit<MuiPopperProps, 'children' | 'title' | 'open' | 'placement' | 'anchorEl'> {
4
+ hijos?: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ titulo?: React.ReactNode;
7
+ estiloContenido?: SxProps<Theme>;
8
+ conFondo?: boolean;
9
+ cerrarAlClicFuera?: boolean;
10
+ alCerrar?: (event: MouseEvent | TouchEvent) => void;
11
+ transicion?: boolean;
12
+ abierto: boolean;
13
+ colocacion?: MuiPopperProps['placement'];
14
+ placement?: MuiPopperProps['placement'];
15
+ elementoAncla?: MuiPopperProps['anchorEl'];
16
+ anchorEl?: MuiPopperProps['anchorEl'];
17
+ distancia?: number;
18
+ }
19
+ export declare const CodeplexPosicionador: ({ hijos, children, titulo, estiloContenido, conFondo, cerrarAlClicFuera, alCerrar, transicion, abierto, colocacion, placement, elementoAncla, anchorEl, distancia, ...props }: CodeplexPosicionadorProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,52 @@
1
+ import { default as React } from 'react';
2
+ import { CollapseProps as MuiCollapseProps, FadeProps as MuiFadeProps, GrowProps as MuiGrowProps, SlideProps as MuiSlideProps, ZoomProps as MuiZoomProps } from '@mui/material';
3
+ type DuracionMui = number | {
4
+ enter?: number;
5
+ exit?: number;
6
+ } | undefined;
7
+ type DuracionColapso = DuracionMui | 'auto';
8
+ export interface CodeplexColapsoProps extends Omit<MuiCollapseProps, 'timeout' | 'in'> {
9
+ duracion?: DuracionColapso;
10
+ visible?: boolean;
11
+ activo?: boolean;
12
+ in?: boolean;
13
+ }
14
+ export declare const CodeplexColapso: React.ForwardRefExoticComponent<Omit<CodeplexColapsoProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ export interface CodeplexDesvanecimientoProps extends Omit<MuiFadeProps, 'timeout' | 'in'> {
16
+ duracion?: DuracionMui;
17
+ entrada?: number;
18
+ salida?: number;
19
+ visible?: boolean;
20
+ activo?: boolean;
21
+ in?: boolean;
22
+ }
23
+ export declare const CodeplexDesvanecimiento: React.ForwardRefExoticComponent<Omit<CodeplexDesvanecimientoProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
24
+ export interface CodeplexCrecimientoProps extends Omit<MuiGrowProps, 'timeout' | 'in'> {
25
+ duracion?: DuracionMui;
26
+ entrada?: number;
27
+ salida?: number;
28
+ visible?: boolean;
29
+ activo?: boolean;
30
+ in?: boolean;
31
+ }
32
+ export declare const CodeplexCrecimiento: React.ForwardRefExoticComponent<Omit<CodeplexCrecimientoProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ export interface CodeplexDeslizamientoProps extends Omit<MuiSlideProps, 'timeout' | 'direction' | 'in'> {
34
+ duracion?: DuracionMui;
35
+ entrada?: number;
36
+ salida?: number;
37
+ direccion?: 'abajo' | 'arriba' | 'izquierda' | 'derecha';
38
+ visible?: boolean;
39
+ activo?: boolean;
40
+ in?: boolean;
41
+ }
42
+ export declare const CodeplexDeslizamiento: React.ForwardRefExoticComponent<Omit<CodeplexDeslizamientoProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
43
+ export interface CodeplexZoomProps extends Omit<MuiZoomProps, 'timeout' | 'in'> {
44
+ duracion?: DuracionMui;
45
+ entrada?: number;
46
+ salida?: number;
47
+ visible?: boolean;
48
+ activo?: boolean;
49
+ in?: boolean;
50
+ }
51
+ export declare const CodeplexZoom: React.ForwardRefExoticComponent<Omit<CodeplexZoomProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
52
+ export {};
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@codeplex-sac/superposiciones",
3
+ "version": "0.1.2",
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/system": "^7.3.7",
25
+ "@emotion/react": "^11.14.0",
26
+ "@emotion/styled": "^11.14.1"
27
+ }
28
+ }