@isai_dev/data_table_lib 0.1.1 → 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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +18 -6
  3. package/package.json +2 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jaziel Isaí
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -4,24 +4,36 @@ Tablas React para mostrar, explorar, seleccionar y editar datos. Incluye `Table`
4
4
 
5
5
  Creada por [Jaziel Isaí](https://isai-dev.com).
6
6
 
7
+ Licencia [MIT](./LICENSE). Puedes usar, modificar y distribuir la librería conservando el aviso de copyright y la licencia.
8
+
7
9
  ## Instalar y ejecutar
8
10
 
9
- Requiere React y React DOM 18 o 19 en la aplicación. Para desarrollar o compilar este repositorio se recomienda Node.js 22.12+ (también 24 o 26 LTS); [Vite 8 admite Node 20.19+ o 22.12+](https://vite.dev/guide/). El nombre para npm es `@isai_dev/data_table_lib`; hasta su primera publicación puedes generar un archivo instalable desde este repositorio.
11
+ Requiere React y React DOM 18 o 19 en la aplicación. Para desarrollar o compilar este repositorio se recomienda Node.js 22.12+ (también 24 o 26 LTS); [Vite 8 admite Node 20.19+ o 22.12+](https://vite.dev/guide/). La librería está publicada en npm como [`@isai_dev/data_table_lib`](https://www.npmjs.com/package/@isai_dev/data_table_lib).
12
+
13
+ En tu proyecto:
10
14
 
11
15
  ```bash
12
- npm install
13
- npm start # demo local
14
- npm test # compila y ejecuta las pruebas
15
- npm pack # crea el archivo instalable .tgz
16
+ npm install @isai_dev/data_table_lib
16
17
  ```
17
18
 
18
- En otro proyecto, instala el archivo generado con `npm install /ruta/al/archivo.tgz`. Cuando el paquete esté publicado en npm, usa `npm install @isai_dev/data_table_lib`. Después carga el CSS:
19
+ Después importa los componentes y el CSS:
19
20
 
20
21
  ```jsx
21
22
  import { Table, TableEdit } from '@isai_dev/data_table_lib';
22
23
  import '@isai_dev/data_table_lib/style.css';
23
24
  ```
24
25
 
26
+ Para desarrollar este repositorio:
27
+
28
+ ```bash
29
+ npm install
30
+ npm start # demo local
31
+ npm test # compila y ejecuta las pruebas
32
+ npm pack # crea el archivo instalable .tgz
33
+ ```
34
+
35
+ También puedes instalar el archivo generado con `npm install /ruta/al/archivo.tgz` si necesitas probar una compilación local.
36
+
25
37
  ## Ejemplos ejecutables
26
38
 
27
39
  `npm run examples` compila la librería y sirve [tres ejemplos independientes](./examples/README.md) en `http://localhost:5173/examples/`: tabla local, edición con validación y consulta simulada del servidor. Cada ejemplo importa las entradas públicas del paquete, igual que una aplicación consumidora.
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@isai_dev/data_table_lib",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Accessible React tables with editable cells and row actions",
5
5
  "author": {
6
6
  "name": "Jaziel Isaí",
7
7
  "url": "https://isai-dev.com"
8
8
  },
9
+ "license": "MIT",
9
10
  "homepage": "https://jazielisai.github.io/data_table_lib/",
10
11
  "repository": {
11
12
  "type": "git",