libreria-astro-lefebvre 0.0.4 → 0.0.5

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 CHANGED
@@ -36,3 +36,11 @@ Correr aplicación node:
36
36
  Compilar:
37
37
  ```npm run build```
38
38
 
39
+
40
+ Para importar en proyecto astro y usar componentes:
41
+
42
+ ```import { Button, Button2, Button3} from 'libreria-astro-lefebvre';```
43
+
44
+ Para listar componentes en Vue:
45
+
46
+ ```import { listComponents} from 'libreria-astro-lefebvre/list';```
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "libreria-astro-lefebvre",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
7
7
  "exports": {
8
- ".": "./src/index.ts"
8
+ ".": "./src/index.ts",
9
+ "./list": "./src/list.ts"
9
10
  },
10
11
  "files": [
11
12
  "src"
@@ -22,5 +23,8 @@
22
23
  },
23
24
  "scripts": {
24
25
  "generate:registry": "node scripts/generateRegistry.js"
26
+ },
27
+ "devDependencies": {
28
+ "typescript": "^5.8.3"
25
29
  }
26
30
  }
@@ -1,4 +1,3 @@
1
- ---
2
1
  import type { ComponentMetadata } from '../interfaces/types';
3
2
 
4
3
  export const metadata: ComponentMetadata = {
@@ -1,4 +1,3 @@
1
- ---
2
1
  import type { ComponentMetadata } from '../interfaces/types';
3
2
 
4
3
  export const metadata: ComponentMetadata = {
@@ -1,4 +1,3 @@
1
- ---
2
1
  import type { ComponentMetadata } from '../interfaces/types';
3
2
 
4
3
  export const metadata: ComponentMetadata = {
@@ -1,4 +1,4 @@
1
- ---
1
+
2
2
  import type { ComponentMetadata } from '../interfaces/types';
3
3
 
4
4
  export const metadata: ComponentMetadata = {
File without changes
File without changes
File without changes
File without changes
@@ -1,8 +1,8 @@
1
1
  // FICHERO GENERADO AUTOMÁTICAMENTE usando esto: "npm run generate:registry" ==> NO TOCAR ESTO A MANO (o sus crujo) !!
2
- import * as AstroButton from '../carbins/AstroButton.astro';
3
- import * as GeometricShapeCard from '../carbins/GeometricShapeCard.astro';
4
- import * as ReactButton from '../carbins/ReactButton.astro';
5
- import * as VueButton from '../carbins/VueButton.astro';
2
+ import * as AstroButton from '../carbins/AstroButton.ts';
3
+ import * as GeometricShapeCard from '../carbins/GeometricShapeCard.ts';
4
+ import * as ReactButton from '../carbins/ReactButton.ts';
5
+ import * as VueButton from '../carbins/VueButton.ts';
6
6
 
7
7
  export const components = [
8
8
  {component: AstroButton},
@@ -11,7 +11,7 @@ export interface ComponentMetadata {
11
11
  type: string;
12
12
  label: string;
13
13
  mandatory?: boolean;
14
- options?: string[];
14
+ options?: (string | number)[];
15
15
  options_labels?: string[];
16
16
  }>;
17
17
  }
File without changes
package/src/list.ts ADDED
@@ -0,0 +1 @@
1
+ export { listComponents } from './lib/functions.js';