corekit-ui 0.1.10 → 0.1.12
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/corekit-ui.css +1 -1
- package/dist/index.d.ts +4010 -12
- package/dist/index.js +5841 -4260
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +24 -25
- package/dist/animations/Transiciones.d.ts +0 -9
- package/dist/animations/index.d.ts +0 -1
- package/dist/boton/Boton.d.ts +0 -2
- package/dist/boton/index.d.ts +0 -2
- package/dist/boton/typesButton.d.ts +0 -31
- package/dist/checkbox/Checkbox.d.ts +0 -18
- package/dist/checkbox/CheckboxGroup.d.ts +0 -3
- package/dist/checkbox/Iconografia.d.ts +0 -0
- package/dist/checkbox/index.d.ts +0 -3
- package/dist/checkbox/types.d.ts +0 -41
- package/dist/firma_manual/FirmaManual.d.ts +0 -3
- package/dist/firma_manual/Iconografia.d.ts +0 -16
- package/dist/firma_manual/TypesFirma.d.ts +0 -22
- package/dist/firma_manual/index.d.ts +0 -2
- package/dist/firma_manual/useFirmaLogica.d.ts +0 -10
- package/dist/hablar_escuchar/BadgeVoz.d.ts +0 -6
- package/dist/hablar_escuchar/Iconografia.d.ts +0 -10
- package/dist/hablar_escuchar/index.d.ts +0 -3
- package/dist/hablar_escuchar/useReconocimientoVoz.d.ts +0 -21
- package/dist/input_date/InputDate.d.ts +0 -339
- package/dist/input_date/funciones.d.ts +0 -27
- package/dist/input_date/index.d.ts +0 -3
- package/dist/input_date/types.d.ts +0 -64
- package/dist/input_numeric/Iconografia.d.ts +0 -5
- package/dist/input_numeric/InputNumeric.d.ts +0 -351
- package/dist/input_numeric/funciones.d.ts +0 -64
- package/dist/input_numeric/index.d.ts +0 -3
- package/dist/input_numeric/types.d.ts +0 -92
- package/dist/input_text/Iconografia.d.ts +0 -9
- package/dist/input_text/InputText.d.ts +0 -345
- package/dist/input_text/index.d.ts +0 -2
- package/dist/input_text/types.d.ts +0 -73
- package/dist/input_types_compartidos/index.d.ts +0 -1
- package/dist/input_types_compartidos/types.d.ts +0 -11
- package/dist/select/Iconografia.d.ts +0 -10
- package/dist/select/Select.d.ts +0 -56
- package/dist/select/SelectNativo.d.ts +0 -57
- package/dist/select/Types.d.ts +0 -543
- package/dist/select/funciones.d.ts +0 -229
- package/dist/select/index.d.ts +0 -4
- package/dist/tabla_datos/TablaDatos.d.ts +0 -80
- package/dist/tabla_datos/components/Iconografia.d.ts +0 -17
- package/dist/tabla_datos/components/TablaCards.d.ts +0 -1
- package/dist/tabla_datos/components/TablaEscritorio.d.ts +0 -1
- package/dist/tabla_datos/components/configuraciones/ConfigColumnas.d.ts +0 -1
- package/dist/tabla_datos/components/configuraciones/ConfigEncabezado.d.ts +0 -6
- package/dist/tabla_datos/components/configuraciones/ConfigFilas.d.ts +0 -1
- package/dist/tabla_datos/components/configuraciones/ConfigOpciones.d.ts +0 -6
- package/dist/tabla_datos/components/configuraciones/MenuConfiguraciones.d.ts +0 -1
- package/dist/tabla_datos/components/skeletons/SkeletonCargando.d.ts +0 -4
- package/dist/tabla_datos/components/skeletons/SkeletonCargandoCards.d.ts +0 -2
- package/dist/tabla_datos/components/tabla/BarraHerramientas.d.ts +0 -1
- package/dist/tabla_datos/components/tabla/BarraSeleccion.d.ts +0 -9
- package/dist/tabla_datos/components/tabla/Paginacion.d.ts +0 -1
- package/dist/tabla_datos/components/tabla/SinDatos.d.ts +0 -1
- package/dist/tabla_datos/components/tabla/tabla_cards/AccionesCards.d.ts +0 -3
- package/dist/tabla_datos/components/tabla/tabla_cards/ContenidoCards.d.ts +0 -3
- package/dist/tabla_datos/components/tabla/tabla_cards/EncabezadoCards.d.ts +0 -3
- package/dist/tabla_datos/constantes/ConstGenerales.d.ts +0 -18
- package/dist/tabla_datos/context/ContextTypes.d.ts +0 -23
- package/dist/tabla_datos/context/TablaDatosContext.d.ts +0 -3
- package/dist/tabla_datos/context/hooks.d.ts +0 -10
- package/dist/tabla_datos/hooks/useClickOutside.d.ts +0 -8
- package/dist/tabla_datos/hooks/useEscapeKey.d.ts +0 -1
- package/dist/tabla_datos/hooks/usePopoverPosition.d.ts +0 -15
- package/dist/tabla_datos/hooks/useScrollLock.d.ts +0 -1
- package/dist/tabla_datos/index.d.ts +0 -5
- package/dist/tabla_datos/types/TablaTypes.d.ts +0 -85
- package/dist/tabla_datos/utils/FuncionesColumnas.d.ts +0 -9
- package/dist/tabla_datos/utils/FuncionesPaginacion.d.ts +0 -12
- package/dist/tabla_datos/utils/FuncionesTabla.d.ts +0 -30
- package/dist/text_area/Iconografia.d.ts +0 -6
- package/dist/text_area/TextArea.d.ts +0 -331
- package/dist/text_area/index.d.ts +0 -2
- package/dist/text_area/types.d.ts +0 -72
- package/dist/texts/Texts.d.ts +0 -19
- package/dist/vite.svg +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corekit-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "CoreKit UI Component Library",
|
|
5
5
|
"author": "Soluciones PC",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,28 +56,6 @@
|
|
|
56
56
|
"access": "public",
|
|
57
57
|
"registry": "https://registry.npmjs.org/"
|
|
58
58
|
},
|
|
59
|
-
"scripts": {
|
|
60
|
-
"dev": "vite --port 3000",
|
|
61
|
-
"build": "vite build",
|
|
62
|
-
"clean": "rimraf dist",
|
|
63
|
-
"prebuild": "pnpm clean",
|
|
64
|
-
"storybook": "storybook dev -p 6006",
|
|
65
|
-
"build:storybook": "storybook build",
|
|
66
|
-
"typecheck": "tsc --noEmit",
|
|
67
|
-
"lint": "eslint . --fix",
|
|
68
|
-
"lint:css": "stylelint \"src/**/*.{css,scss}\" --fix",
|
|
69
|
-
"format": "prettier --write .",
|
|
70
|
-
"test": "vitest run",
|
|
71
|
-
"test:watch": "vitest",
|
|
72
|
-
"test:ui": "vitest --ui",
|
|
73
|
-
"check": "pnpm typecheck && pnpm lint && pnpm lint:css && pnpm test",
|
|
74
|
-
"gen": "plop",
|
|
75
|
-
"prepublishOnly": "pnpm check && pnpm build",
|
|
76
|
-
"release:patch": "pnpm version patch && pnpm publish",
|
|
77
|
-
"release:minor": "pnpm version minor && pnpm publish",
|
|
78
|
-
"release:major": "pnpm version major && pnpm publish",
|
|
79
|
-
"release:dry": "pnpm publish --dry-run"
|
|
80
|
-
},
|
|
81
59
|
"peerDependencies": {
|
|
82
60
|
"react": "^18.3.0 || ^19.0.0",
|
|
83
61
|
"react-dom": "^18.3.0 || ^19.0.0"
|
|
@@ -135,7 +113,28 @@
|
|
|
135
113
|
"typescript": "^5.9.3",
|
|
136
114
|
"typescript-eslint": "^8.18.0",
|
|
137
115
|
"vite": "^6.0.3",
|
|
138
|
-
"vite-plugin-dts": "^4.
|
|
116
|
+
"vite-plugin-dts": "^4.5.4",
|
|
139
117
|
"vitest": "^2.1.8"
|
|
118
|
+
},
|
|
119
|
+
"scripts": {
|
|
120
|
+
"dev": "vite --port 3000",
|
|
121
|
+
"build": "vite build",
|
|
122
|
+
"clean": "rimraf dist",
|
|
123
|
+
"prebuild": "pnpm clean",
|
|
124
|
+
"storybook": "storybook dev -p 6006",
|
|
125
|
+
"build:storybook": "storybook build",
|
|
126
|
+
"typecheck": "tsc --noEmit",
|
|
127
|
+
"lint": "eslint . --fix",
|
|
128
|
+
"lint:css": "stylelint \"src/**/*.{css,scss}\" --fix",
|
|
129
|
+
"format": "prettier --write .",
|
|
130
|
+
"test": "vitest run",
|
|
131
|
+
"test:watch": "vitest",
|
|
132
|
+
"test:ui": "vitest --ui",
|
|
133
|
+
"check": "pnpm typecheck && pnpm lint && pnpm lint:css && pnpm test",
|
|
134
|
+
"gen": "plop",
|
|
135
|
+
"release:patch": "pnpm version patch && pnpm publish",
|
|
136
|
+
"release:minor": "pnpm version minor && pnpm publish",
|
|
137
|
+
"release:major": "pnpm version major && pnpm publish",
|
|
138
|
+
"release:dry": "pnpm publish --dry-run"
|
|
140
139
|
}
|
|
141
|
-
}
|
|
140
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
-
type TipoTransicion = 'desvanecerDeslizar' | 'escalar';
|
|
3
|
-
export type TransicionProps = {
|
|
4
|
-
mostrar: boolean;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
tipo?: TipoTransicion;
|
|
7
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
8
|
-
export declare function Transicion({ mostrar, children, tipo, className, ...resto }: TransicionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Transiciones';
|
package/dist/boton/Boton.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { BotonProps } from './typesButton';
|
|
2
|
-
export declare const Boton: ({ variant, color, size, radius, fullWidth, isLoading, onlyLoading, isDisabled, isIconOnly, disableRipple, disableAnimation, customColor, spinner, spinnerPlacement, children, className, onClick, style, type, "aria-label": ariaLabel, ...props }: BotonProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/boton/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
-
export type BotonProps = {
|
|
3
|
-
/** Estilo visual del botón */
|
|
4
|
-
variant?: 'solid' | 'bordered' | 'ghost' | 'light' | 'faded' | 'shadow';
|
|
5
|
-
/** Color temático del botón */
|
|
6
|
-
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
7
|
-
/** Tamaño del botón */
|
|
8
|
-
size?: 'sm' | 'md' | 'lg';
|
|
9
|
-
/** Radio de borde del botón */
|
|
10
|
-
radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
11
|
-
/** Ancho completo del contenedor */
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
/** Estado de carga del botón */
|
|
14
|
-
isLoading?: boolean;
|
|
15
|
-
/** Si es true, solo muestra el spinner sin el texto (visibility: hidden) */
|
|
16
|
-
onlyLoading?: boolean;
|
|
17
|
-
/** Botón deshabilitado */
|
|
18
|
-
isDisabled?: boolean;
|
|
19
|
-
/** Solo muestra un icono sin texto */
|
|
20
|
-
isIconOnly?: boolean;
|
|
21
|
-
/** Deshabilita el efecto ripple */
|
|
22
|
-
disableRipple?: boolean;
|
|
23
|
-
/** Deshabilita animaciones */
|
|
24
|
-
disableAnimation?: boolean;
|
|
25
|
-
/** Color personalizado (CSS color value) */
|
|
26
|
-
customColor?: string;
|
|
27
|
-
/** Spinner personalizado */
|
|
28
|
-
spinner?: ReactNode;
|
|
29
|
-
/** Posición del spinner */
|
|
30
|
-
spinnerPlacement?: 'start' | 'end';
|
|
31
|
-
} & ComponentPropsWithRef<'button'>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
isSelected?: boolean;
|
|
5
|
-
isIndeterminate?: boolean;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
isReadOnly?: boolean;
|
|
8
|
-
size?: import('./types').CheckboxSize;
|
|
9
|
-
color?: import('./types').CheckboxColor;
|
|
10
|
-
radius?: import('./types').CheckboxRadius;
|
|
11
|
-
lineThrough?: boolean;
|
|
12
|
-
onlyIcon?: boolean;
|
|
13
|
-
disableAnimation?: boolean;
|
|
14
|
-
onChange?: (isSelected: boolean) => void;
|
|
15
|
-
className?: string;
|
|
16
|
-
classNames?: import('./types').CheckboxClassNames;
|
|
17
|
-
value?: string;
|
|
18
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
|
|
File without changes
|
package/dist/checkbox/index.d.ts
DELETED
package/dist/checkbox/types.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
export type CheckboxColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
4
|
-
export type CheckboxRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
5
|
-
export type CheckboxOrientation = 'horizontal' | 'vertical';
|
|
6
|
-
export type CheckboxClassNames = {
|
|
7
|
-
base?: string;
|
|
8
|
-
wrapper?: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
label?: string;
|
|
11
|
-
};
|
|
12
|
-
export type CheckboxProps = {
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
isSelected?: boolean;
|
|
15
|
-
isIndeterminate?: boolean;
|
|
16
|
-
isDisabled?: boolean;
|
|
17
|
-
isReadOnly?: boolean;
|
|
18
|
-
size?: CheckboxSize;
|
|
19
|
-
color?: CheckboxColor;
|
|
20
|
-
radius?: CheckboxRadius;
|
|
21
|
-
lineThrough?: boolean;
|
|
22
|
-
onlyIcon?: boolean;
|
|
23
|
-
disableAnimation?: boolean;
|
|
24
|
-
onChange?: (isSelected: boolean) => void;
|
|
25
|
-
className?: string;
|
|
26
|
-
classNames?: CheckboxClassNames;
|
|
27
|
-
value?: string;
|
|
28
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'>;
|
|
29
|
-
export type CheckboxGroupProps = {
|
|
30
|
-
label?: string;
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
description?: string;
|
|
33
|
-
errorMessage?: string;
|
|
34
|
-
isInvalid?: boolean;
|
|
35
|
-
orientation?: CheckboxOrientation;
|
|
36
|
-
className?: string;
|
|
37
|
-
value?: string[];
|
|
38
|
-
onChange?: (value: string[]) => void;
|
|
39
|
-
isDisabled?: boolean;
|
|
40
|
-
isReadOnly?: boolean;
|
|
41
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
type IconProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const IconUndo: FC<IconProps>;
|
|
7
|
-
export declare const IconTrash: FC<IconProps>;
|
|
8
|
-
export declare const IconUpload: FC<IconProps>;
|
|
9
|
-
export declare const IconClose: FC<IconProps>;
|
|
10
|
-
declare const _default: {
|
|
11
|
-
IconUndo: FC<IconProps>;
|
|
12
|
-
IconTrash: FC<IconProps>;
|
|
13
|
-
IconUpload: FC<IconProps>;
|
|
14
|
-
IconClose: FC<IconProps>;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type FirmaManualProps = {
|
|
2
|
-
isOpen?: boolean;
|
|
3
|
-
onClose?: () => void;
|
|
4
|
-
onConfirm?: (signatureData: string) => void;
|
|
5
|
-
titulo?: string;
|
|
6
|
-
textoGuardar?: string;
|
|
7
|
-
textoModificar?: string;
|
|
8
|
-
textoDeshacer?: string;
|
|
9
|
-
textoLimpiar?: string;
|
|
10
|
-
textoAdjuntar?: string;
|
|
11
|
-
ancho?: number;
|
|
12
|
-
alto?: number;
|
|
13
|
-
className?: string;
|
|
14
|
-
textoConsentimiento?: string;
|
|
15
|
-
mostrarBotonSubir?: boolean;
|
|
16
|
-
cerrarAlGuardar?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export type FirmaManualRef = {
|
|
19
|
-
limpiar: () => void;
|
|
20
|
-
obtenerDatosFirma: () => string | null;
|
|
21
|
-
estaVacio: () => boolean;
|
|
22
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const useFirmaLogica: () => {
|
|
2
|
-
canvasRef: import('react').RefObject<HTMLCanvasElement | null>;
|
|
3
|
-
estaVacio: boolean;
|
|
4
|
-
limpiarCanvas: () => void;
|
|
5
|
-
deshacerUltimoTrazo: () => void;
|
|
6
|
-
puedeDeshacer: boolean;
|
|
7
|
-
obtenerDatosFirma: () => string | null;
|
|
8
|
-
configurarCanvas: (color: string, habilitado?: boolean) => (() => void) | undefined;
|
|
9
|
-
};
|
|
10
|
-
export default useFirmaLogica;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SVGProps } from 'react';
|
|
2
|
-
export declare function MicrofonoIcono(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function SonidoIcono(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function GrabacionIcono(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const _default: {
|
|
6
|
-
MicrofonoIcono: typeof MicrofonoIcono;
|
|
7
|
-
SonidoIcono: typeof SonidoIcono;
|
|
8
|
-
GrabacionIcono: typeof GrabacionIcono;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type Props = {
|
|
2
|
-
value: string;
|
|
3
|
-
onChange: (nuevoTexto: string) => void;
|
|
4
|
-
isDisabled?: boolean;
|
|
5
|
-
isReadOnly?: boolean;
|
|
6
|
-
onDictadoCompleto?: () => void;
|
|
7
|
-
idioma?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function useReconocimientoVoz({ value, onChange, isDisabled, isReadOnly, onDictadoCompleto, idioma, }: Props): {
|
|
10
|
-
puedeHablar: boolean;
|
|
11
|
-
puedeEscuchar: boolean;
|
|
12
|
-
hablando: boolean;
|
|
13
|
-
escuchando: boolean;
|
|
14
|
-
errorDictado: string | null;
|
|
15
|
-
escuchar: () => void;
|
|
16
|
-
detenerHablar: () => void;
|
|
17
|
-
dictar: () => void;
|
|
18
|
-
detenerDictado: () => void;
|
|
19
|
-
};
|
|
20
|
-
export type UseReconocimientoVoz = ReturnType<typeof useReconocimientoVoz>;
|
|
21
|
-
export {};
|