corekit-ui 0.1.21 → 0.1.24
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/README.md +41 -39
- package/dist/corekit-ui.css +1 -1
- package/dist/index.d.ts +4231 -21
- package/dist/index.js +5649 -5149
- 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 +143 -132
- package/dist/animations/Transiciones.d.ts +0 -9
- package/dist/animations/index.d.ts +0 -1
- package/dist/badge/Badge.d.ts +0 -3
- package/dist/badge/index.d.ts +0 -2
- package/dist/badge/types.d.ts +0 -62
- package/dist/boton/Boton.d.ts +0 -2
- package/dist/boton/index.d.ts +0 -2
- package/dist/boton/typesButton.d.ts +0 -35
- package/dist/checkbox/Checkbox.d.ts +0 -25
- package/dist/checkbox/CheckboxContext.d.ts +0 -3
- package/dist/checkbox/CheckboxGroup.d.ts +0 -11
- package/dist/checkbox/index.d.ts +0 -4
- package/dist/checkbox/types.d.ts +0 -108
- package/dist/drawer/Drawer.d.ts +0 -2
- package/dist/drawer/index.d.ts +0 -2
- package/dist/drawer/types.d.ts +0 -140
- package/dist/dropdown/ContextMenu.d.ts +0 -12
- package/dist/dropdown/DropdownContext.d.ts +0 -29
- package/dist/dropdown/DropdownMenu.d.ts +0 -3
- package/dist/dropdown/MenuItem.d.ts +0 -8
- package/dist/dropdown/Submenu.d.ts +0 -23
- package/dist/dropdown/index.d.ts +0 -11
- package/dist/dropdown/types.d.ts +0 -168
- 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 -342
- 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 -70
- package/dist/input_numeric/Iconografia.d.ts +0 -5
- package/dist/input_numeric/InputNumeric.d.ts +0 -353
- 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 -96
- package/dist/input_text/Iconografia.d.ts +0 -9
- package/dist/input_text/InputText.d.ts +0 -347
- package/dist/input_text/index.d.ts +0 -2
- package/dist/input_text/types.d.ts +0 -77
- package/dist/input_types_compartidos/index.d.ts +0 -1
- package/dist/input_types_compartidos/types.d.ts +0 -11
- package/dist/modal/Modal.d.ts +0 -2
- package/dist/modal/index.d.ts +0 -2
- package/dist/modal/types.d.ts +0 -115
- package/dist/modal_stack/ModalStack.d.ts +0 -14
- package/dist/modal_stack/index.d.ts +0 -2
- package/dist/panel_filtros/Iconografia.d.ts +0 -5
- package/dist/panel_filtros/PanelFiltros.d.ts +0 -49
- package/dist/panel_filtros/index.d.ts +0 -3
- package/dist/radio/Radio.d.ts +0 -16
- package/dist/radio/RadioContext.d.ts +0 -3
- package/dist/radio/RadioGroup.d.ts +0 -11
- package/dist/radio/index.d.ts +0 -3
- package/dist/radio/types.d.ts +0 -195
- package/dist/select/Iconografia.d.ts +0 -10
- package/dist/select/Select.d.ts +0 -42
- package/dist/select/SelectBase.d.ts +0 -17
- package/dist/select/SelectNativo.d.ts +0 -57
- package/dist/select/Types.d.ts +0 -629
- package/dist/select/funciones.d.ts +0 -244
- 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/types/tanstack-table.d.ts +0 -8
- 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 -54
- package/dist/text_area/Iconografia.d.ts +0 -6
- package/dist/text_area/TextArea.d.ts +0 -333
- package/dist/text_area/index.d.ts +0 -2
- package/dist/text_area/types.d.ts +0 -76
- package/dist/texts/Texts.d.ts +0 -19
- package/dist/toggle/Toggle.d.ts +0 -21
- package/dist/toggle/index.d.ts +0 -2
- package/dist/toggle/types.d.ts +0 -90
- package/dist/tooltip/Tooltip.d.ts +0 -2
- package/dist/tooltip/index.d.ts +0 -2
- package/dist/tooltip/types.d.ts +0 -83
package/package.json
CHANGED
|
@@ -1,132 +1,143 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "corekit-ui",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "CoreKit UI
|
|
5
|
-
"author": "Soluciones PC",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"private": false,
|
|
9
|
-
"homepage": "https://corekit-ui
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"@
|
|
87
|
-
"@storybook/
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "corekit-ui",
|
|
3
|
+
"version": "0.1.24",
|
|
4
|
+
"description": "CoreKit UI - Una biblioteca de componentes React moderna, accesible y de alto rendimiento para aplicaciones empresariales.",
|
|
5
|
+
"author": "Soluciones PC <info@pcsoluciones.com.co>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"private": false,
|
|
9
|
+
"homepage": "https://soluciones-pc.github.io/corekit-ui/",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/soluciones-pc/corekit-ui.git"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/soluciones-pc/corekit-ui/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"react",
|
|
19
|
+
"components",
|
|
20
|
+
"ui",
|
|
21
|
+
"design-system",
|
|
22
|
+
"typescript",
|
|
23
|
+
"css-modules",
|
|
24
|
+
"accessible",
|
|
25
|
+
"enterprise",
|
|
26
|
+
"voice-recognition",
|
|
27
|
+
"digital-signature",
|
|
28
|
+
"vite",
|
|
29
|
+
"react-19"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0",
|
|
33
|
+
"pnpm": ">=9.0.0"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"README.md",
|
|
38
|
+
"CHANGELOG.md",
|
|
39
|
+
"LICENSE"
|
|
40
|
+
],
|
|
41
|
+
"main": "./dist/index.umd.cjs",
|
|
42
|
+
"module": "./dist/index.js",
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"style": "./dist/corekit-ui.css",
|
|
45
|
+
"sideEffects": [
|
|
46
|
+
"**/*.css"
|
|
47
|
+
],
|
|
48
|
+
"exports": {
|
|
49
|
+
".": {
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
51
|
+
"import": "./dist/index.js",
|
|
52
|
+
"require": "./dist/index.umd.cjs"
|
|
53
|
+
},
|
|
54
|
+
"./styles.css": "./dist/corekit-ui.css",
|
|
55
|
+
"./package.json": "./package.json"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public",
|
|
59
|
+
"registry": "https://registry.npmjs.org/"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"react": "^18.3.0 || ^19.0.0",
|
|
63
|
+
"react-dom": "^18.3.0 || ^19.0.0"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@floating-ui/react": "^0.27.16",
|
|
67
|
+
"@tanstack/react-router": "^1.139.7",
|
|
68
|
+
"@tanstack/react-table": "^8.21.3",
|
|
69
|
+
"@tanstack/react-virtual": "^3.13.12",
|
|
70
|
+
"@uidotdev/usehooks": "^2.4.1",
|
|
71
|
+
"class-variance-authority": "^0.7.1",
|
|
72
|
+
"clsx": "^2.1.1",
|
|
73
|
+
"nanoid": "^5.1.6"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@eslint/js": "^9.14.0",
|
|
77
|
+
"@storybook/addon-a11y": "^8.6.0",
|
|
78
|
+
"@storybook/addon-docs": "^8.6.0",
|
|
79
|
+
"@storybook/addon-essentials": "^8.6.0",
|
|
80
|
+
"@storybook/addon-interactions": "^8.6.0",
|
|
81
|
+
"@storybook/addon-themes": "^8.6.0",
|
|
82
|
+
"@storybook/blocks": "^8.6.0",
|
|
83
|
+
"@storybook/manager-api": "^8.6.14",
|
|
84
|
+
"@storybook/react": "^8.6.0",
|
|
85
|
+
"@storybook/react-vite": "^8.6.0",
|
|
86
|
+
"@storybook/test": "^8.6.0",
|
|
87
|
+
"@storybook/theming": "^8.6.14",
|
|
88
|
+
"@testing-library/dom": "^10.4.0",
|
|
89
|
+
"@testing-library/jest-dom": "^6.6.0",
|
|
90
|
+
"@testing-library/react": "^16.1.0",
|
|
91
|
+
"@types/react": "^19.0.0",
|
|
92
|
+
"@types/react-dom": "^19.0.0",
|
|
93
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
94
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
95
|
+
"@vitest/ui": "^2.1.8",
|
|
96
|
+
"eslint": "^9.17.0",
|
|
97
|
+
"eslint-config-prettier": "^9.1.0",
|
|
98
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
99
|
+
"eslint-plugin-import": "^2.31.0",
|
|
100
|
+
"eslint-plugin-react": "^7.37.2",
|
|
101
|
+
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
102
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
103
|
+
"globals": "^15.14.0",
|
|
104
|
+
"jsdom": "^25.0.1",
|
|
105
|
+
"plop": "^4.0.1",
|
|
106
|
+
"postcss": "^8.4.49",
|
|
107
|
+
"postcss-preset-env": "^10.1.1",
|
|
108
|
+
"prettier": "^3.4.2",
|
|
109
|
+
"react": "^19.0.0",
|
|
110
|
+
"react-dom": "^19.0.0",
|
|
111
|
+
"rimraf": "^6.1.2",
|
|
112
|
+
"storybook": "^8.6.0",
|
|
113
|
+
"stylelint": "^16.12.0",
|
|
114
|
+
"stylelint-config-standard": "^36.0.1",
|
|
115
|
+
"stylelint-order": "^6.0.4",
|
|
116
|
+
"typescript": "^5.9.3",
|
|
117
|
+
"typescript-eslint": "^8.18.0",
|
|
118
|
+
"vite": "^6.0.3",
|
|
119
|
+
"vite-plugin-dts": "^4.5.4",
|
|
120
|
+
"vitest": "^2.1.8"
|
|
121
|
+
},
|
|
122
|
+
"scripts": {
|
|
123
|
+
"dev": "vite --port 3000",
|
|
124
|
+
"build": "vite build",
|
|
125
|
+
"clean": "rimraf dist",
|
|
126
|
+
"prebuild": "pnpm clean",
|
|
127
|
+
"storybook": "storybook dev -p 6006",
|
|
128
|
+
"build:storybook": "storybook build",
|
|
129
|
+
"typecheck": "tsc --noEmit",
|
|
130
|
+
"lint": "eslint . --fix",
|
|
131
|
+
"lint:css": "stylelint \"src/**/*.{css,scss}\" --fix",
|
|
132
|
+
"format": "prettier --write .",
|
|
133
|
+
"test": "vitest run",
|
|
134
|
+
"test:watch": "vitest",
|
|
135
|
+
"test:ui": "vitest --ui",
|
|
136
|
+
"check": "pnpm typecheck && pnpm lint && pnpm lint:css && pnpm test",
|
|
137
|
+
"gen": "plop",
|
|
138
|
+
"release:patch": "pnpm version patch && pnpm publish",
|
|
139
|
+
"release:minor": "pnpm version minor && pnpm publish",
|
|
140
|
+
"release:major": "pnpm version major && pnpm publish",
|
|
141
|
+
"release:dry": "pnpm publish --dry-run"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -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/badge/Badge.d.ts
DELETED
package/dist/badge/index.d.ts
DELETED
package/dist/badge/types.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export type BadgeVariant = 'solid' | 'subtle' | 'outline' | 'soft';
|
|
2
|
-
export type BadgeColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'brand';
|
|
3
|
-
export type BadgeSize = 'sm' | 'md' | 'lg';
|
|
4
|
-
export type BadgeRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
5
|
-
export type BadgeProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Variante visual del badge
|
|
8
|
-
* @default 'solid'
|
|
9
|
-
*/
|
|
10
|
-
variant?: BadgeVariant;
|
|
11
|
-
/**
|
|
12
|
-
* Color del badge
|
|
13
|
-
* @default 'default'
|
|
14
|
-
*/
|
|
15
|
-
color?: BadgeColor;
|
|
16
|
-
/**
|
|
17
|
-
* Tamaño del badge
|
|
18
|
-
* @default 'md'
|
|
19
|
-
*/
|
|
20
|
-
size?: BadgeSize;
|
|
21
|
-
/**
|
|
22
|
-
* Radio de bordes
|
|
23
|
-
* @default 'md'
|
|
24
|
-
*/
|
|
25
|
-
radius?: BadgeRadius;
|
|
26
|
-
/**
|
|
27
|
-
* Contenido del badge
|
|
28
|
-
*/
|
|
29
|
-
children: React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Icono al inicio
|
|
32
|
-
*/
|
|
33
|
-
startIcon?: React.ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Icono al final
|
|
36
|
-
*/
|
|
37
|
-
endIcon?: React.ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* Si tiene un punto de estado
|
|
40
|
-
*/
|
|
41
|
-
dot?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Si puede ser removido (muestra X)
|
|
44
|
-
*/
|
|
45
|
-
dismissible?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Callback al hacer click en eliminar
|
|
48
|
-
*/
|
|
49
|
-
onDismiss?: () => void;
|
|
50
|
-
/**
|
|
51
|
-
* Color personalizado
|
|
52
|
-
*/
|
|
53
|
-
customColor?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Clase CSS adicional
|
|
56
|
-
*/
|
|
57
|
-
className?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Callback al hacer click
|
|
60
|
-
*/
|
|
61
|
-
onClick?: () => void;
|
|
62
|
-
};
|
package/dist/boton/Boton.d.ts
DELETED
package/dist/boton/index.d.ts
DELETED
|
@@ -1,35 +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
|
-
/** Lista de permisos del usuario actual */
|
|
32
|
-
permisos?: string[];
|
|
33
|
-
/** Permiso requerido para habilitar este botón */
|
|
34
|
-
permiso?: string;
|
|
35
|
-
} & ComponentPropsWithRef<'button'>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
hint?: React.ReactNode;
|
|
6
|
-
isSelected?: boolean;
|
|
7
|
-
isIndeterminate?: boolean;
|
|
8
|
-
isDisabled?: boolean;
|
|
9
|
-
isReadOnly?: boolean;
|
|
10
|
-
isRequired?: boolean;
|
|
11
|
-
size?: import('./types').CheckboxSize;
|
|
12
|
-
color?: import('./types').CheckboxColor;
|
|
13
|
-
customColor?: string;
|
|
14
|
-
radius?: import('./types').CheckboxRadius;
|
|
15
|
-
variant?: import('./types').CheckboxVariant;
|
|
16
|
-
lineThrough?: boolean;
|
|
17
|
-
onlyIcon?: boolean;
|
|
18
|
-
disableAnimation?: boolean;
|
|
19
|
-
customCheckIcon?: React.ReactNode;
|
|
20
|
-
onChange?: (isSelected: boolean) => void;
|
|
21
|
-
className?: string;
|
|
22
|
-
classNames?: import('./types').CheckboxClassNames;
|
|
23
|
-
value?: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CheckboxGroupProps, CheckboxOptionBase } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente CheckboxGroup genérico con soporte para opciones tipadas.
|
|
4
|
-
* La coma <T,> es necesaria en arrow functions .tsx para que no se confunda con un tag HTML.
|
|
5
|
-
*
|
|
6
|
-
* @template T - Tipo de las opciones (string, number u objeto)
|
|
7
|
-
*/
|
|
8
|
-
export declare const CheckboxGroup: {
|
|
9
|
-
<T extends CheckboxOptionBase>({ label, children, description, errorMessage, isInvalid, orientation, className, value: controlledValue, defaultValue, onChange, isDisabled, isReadOnly, isRequired, name, options, optionValueKey, optionLabelKey, optionDisabledKey, optionDescriptionKey, }: CheckboxGroupProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
package/dist/checkbox/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { Checkbox } from './Checkbox';
|
|
2
|
-
export { CheckboxGroup } from './CheckboxGroup';
|
|
3
|
-
export { useCheckboxGroupContext } from './CheckboxContext';
|
|
4
|
-
export type { CheckboxProps, CheckboxGroupProps, CheckboxSize, CheckboxColor, CheckboxRadius, CheckboxVariant, CheckboxOrientation, } from './types';
|
package/dist/checkbox/types.d.ts
DELETED
|
@@ -1,108 +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 CheckboxVariant = 'solid' | 'outline';
|
|
7
|
-
export type CheckboxClassNames = {
|
|
8
|
-
base?: string;
|
|
9
|
-
wrapper?: string;
|
|
10
|
-
icon?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
};
|
|
13
|
-
export type CheckboxProps = {
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
label?: ReactNode;
|
|
16
|
-
hint?: ReactNode;
|
|
17
|
-
isSelected?: boolean;
|
|
18
|
-
isIndeterminate?: boolean;
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
isReadOnly?: boolean;
|
|
21
|
-
isRequired?: boolean;
|
|
22
|
-
size?: CheckboxSize;
|
|
23
|
-
color?: CheckboxColor;
|
|
24
|
-
customColor?: string;
|
|
25
|
-
radius?: CheckboxRadius;
|
|
26
|
-
variant?: CheckboxVariant;
|
|
27
|
-
lineThrough?: boolean;
|
|
28
|
-
onlyIcon?: boolean;
|
|
29
|
-
disableAnimation?: boolean;
|
|
30
|
-
customCheckIcon?: ReactNode;
|
|
31
|
-
onChange?: (isSelected: boolean) => void;
|
|
32
|
-
className?: string;
|
|
33
|
-
classNames?: CheckboxClassNames;
|
|
34
|
-
value?: string;
|
|
35
|
-
name?: string;
|
|
36
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'>;
|
|
37
|
-
export type CheckboxGroupContextValue = {
|
|
38
|
-
value: string[];
|
|
39
|
-
onChange: (value: string) => void;
|
|
40
|
-
isDisabled?: boolean;
|
|
41
|
-
isReadOnly?: boolean;
|
|
42
|
-
isRequired?: boolean;
|
|
43
|
-
name?: string;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Tipo auxiliar para opciones primitivas u objetos.
|
|
47
|
-
* Usado como constraint para el genérico T en CheckboxGroupProps.
|
|
48
|
-
*/
|
|
49
|
-
export type CheckboxOptionBase = string | number | Record<string, unknown>;
|
|
50
|
-
/**
|
|
51
|
-
* Props del componente CheckboxGroup con soporte genérico.
|
|
52
|
-
* @template T - Tipo de las opciones (string, number u objeto)
|
|
53
|
-
*/
|
|
54
|
-
export type CheckboxGroupProps<T extends CheckboxOptionBase = string> = {
|
|
55
|
-
/** Label del grupo */
|
|
56
|
-
label?: ReactNode;
|
|
57
|
-
/** Children (Checkbox individuales). Si se pasa `options`, children se ignora */
|
|
58
|
-
children?: ReactNode;
|
|
59
|
-
/** Descripción del grupo */
|
|
60
|
-
description?: ReactNode;
|
|
61
|
-
/** Mensaje de error */
|
|
62
|
-
errorMessage?: ReactNode;
|
|
63
|
-
/** Si el grupo tiene error de validación */
|
|
64
|
-
isInvalid?: boolean;
|
|
65
|
-
/** Orientación del grupo */
|
|
66
|
-
orientation?: CheckboxOrientation;
|
|
67
|
-
/** Clase CSS adicional */
|
|
68
|
-
className?: string;
|
|
69
|
-
/** Valores seleccionados (modo controlado) */
|
|
70
|
-
value?: string[];
|
|
71
|
-
/** Valores por defecto (modo no controlado) */
|
|
72
|
-
defaultValue?: string[];
|
|
73
|
-
/** Callback cuando cambian los valores seleccionados */
|
|
74
|
-
onChange?: (value: string[]) => void;
|
|
75
|
-
/** Si el grupo está deshabilitado */
|
|
76
|
-
isDisabled?: boolean;
|
|
77
|
-
/** Si el grupo está en modo solo lectura */
|
|
78
|
-
isReadOnly?: boolean;
|
|
79
|
-
/** Si el grupo es requerido */
|
|
80
|
-
isRequired?: boolean;
|
|
81
|
-
/** Nombre del grupo para formularios */
|
|
82
|
-
name?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Array de opciones para generar checkboxes automáticamente.
|
|
85
|
-
* Puede ser un array de strings/numbers o un array de objetos.
|
|
86
|
-
*/
|
|
87
|
-
options?: T[];
|
|
88
|
-
/**
|
|
89
|
-
* Campo del objeto a usar como valor único (key).
|
|
90
|
-
* @default 'value'
|
|
91
|
-
*/
|
|
92
|
-
optionValueKey?: keyof T;
|
|
93
|
-
/**
|
|
94
|
-
* Campo del objeto a usar como etiqueta visible.
|
|
95
|
-
* @default 'label'
|
|
96
|
-
*/
|
|
97
|
-
optionLabelKey?: keyof T;
|
|
98
|
-
/**
|
|
99
|
-
* Campo del objeto a usar para determinar si está deshabilitada.
|
|
100
|
-
* @default 'isDisabled'
|
|
101
|
-
*/
|
|
102
|
-
optionDisabledKey?: keyof T;
|
|
103
|
-
/**
|
|
104
|
-
* Campo del objeto a usar como descripción/hint.
|
|
105
|
-
* @default 'description'
|
|
106
|
-
*/
|
|
107
|
-
optionDescriptionKey?: keyof T;
|
|
108
|
-
};
|
package/dist/drawer/Drawer.d.ts
DELETED
package/dist/drawer/index.d.ts
DELETED