libreria-astro-lefebvre 0.0.28 → 0.0.30

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 (66) hide show
  1. package/README.md +46 -46
  2. package/package.json +30 -30
  3. package/src/carbins/AstroButton.ts +34 -34
  4. package/src/carbins/CTA_2025_Formentera.ts +47 -47
  5. package/src/carbins/Cabecera_2025_Barcelona.ts +34 -34
  6. package/src/carbins/Cabecera_2025_Madrid.ts +34 -34
  7. package/src/carbins/Contenido_2025_Alcorcon.ts +76 -76
  8. package/src/carbins/Contenido_2025_Cordoba.ts +59 -59
  9. package/src/carbins/Contenido_2025_Granada.ts +67 -67
  10. package/src/carbins/Contenido_2025_Malaga.ts +100 -100
  11. package/src/carbins/Contenido_2025_Montevideo.ts +56 -56
  12. package/src/carbins/Footer_2025_Napoles.ts +12 -12
  13. package/src/carbins/Formulario_2025_Seul.ts +56 -56
  14. package/src/carbins/Imagen_2025_Bogota.ts +76 -76
  15. package/src/carbins/ReactButton.ts +32 -32
  16. package/src/carbins/Repetidor_2025_Cabra.ts +12 -12
  17. package/src/carbins/Repetidor_2025_Dubai.ts +48 -48
  18. package/src/carbins/Repetidor_2025_Estocolmo.ts +12 -12
  19. package/src/carbins/Repetidor_2025_Mallorca.ts +75 -75
  20. package/src/carbins/Repetidor_2025_Menorca.ts +75 -75
  21. package/src/carbins/Repetidor_2025_Michigan.ts +21 -21
  22. package/src/carbins/Repetidor_2025_Orcasitas.ts +34 -34
  23. package/src/carbins/Repetidor_2025_Oslo.ts +12 -12
  24. package/src/carbins/Repetidor_2025_Quito.ts +20 -20
  25. package/src/carbins/Repetidor_2025_Seattle.ts +12 -12
  26. package/src/carbins/Repetidor_2025_Tokyo.ts +48 -48
  27. package/src/carbins/Repetidor_2025_Ubeda.ts +12 -12
  28. package/src/carbins/Repetidor_2025_Yakarta.ts +12 -12
  29. package/src/carbins/SEO_Head_Section.ts +49 -49
  30. package/src/carbins/Separador_2025_Reinosa.ts +12 -12
  31. package/src/carbins/Titulo_2025_Algeciras.ts +51 -51
  32. package/src/carbins/Titulo_2025_Santorini.ts +20 -20
  33. package/src/carbins/Video_2025_Valencia.ts +12 -12
  34. package/src/carbins/VueButton.ts +35 -35
  35. package/src/components/Astro/Button.astro +5 -5
  36. package/src/components/Astro/CTA_2025_Formentera.astro +38 -38
  37. package/src/components/Astro/Cabecera_2025_Barcelona.astro +55 -55
  38. package/src/components/Astro/Cabecera_2025_Madrid.astro +176 -176
  39. package/src/components/Astro/Contenido_2025_Alcorcon.astro +48 -78
  40. package/src/components/Astro/Contenido_2025_Granada.astro +239 -239
  41. package/src/components/Astro/Contenido_2025_Malaga.astro +162 -162
  42. package/src/components/Astro/Contenido_2025_Montevideo.astro +35 -35
  43. package/src/components/Astro/Footer_2025_Napoles.astro +134 -134
  44. package/src/components/Astro/Formulario_2025_Seul.astro +91 -91
  45. package/src/components/Astro/Imagen_2025_Bogota.astro +61 -61
  46. package/src/components/Astro/Repetidor_2025_Cabra.astro +152 -152
  47. package/src/components/Astro/Repetidor_2025_Cordoba.astro +132 -132
  48. package/src/components/Astro/Repetidor_2025_Dubai.astro +29 -29
  49. package/src/components/Astro/Repetidor_2025_Estocolmo.astro +22 -22
  50. package/src/components/Astro/Repetidor_2025_Mallorca.astro +42 -42
  51. package/src/components/Astro/Repetidor_2025_Menorca.astro +43 -43
  52. package/src/components/Astro/Repetidor_2025_Michigan.astro +45 -45
  53. package/src/components/Astro/Repetidor_2025_Orcasitas.astro +2 -0
  54. package/src/components/Astro/Repetidor_2025_Oslo.astro +76 -76
  55. package/src/components/Astro/Repetidor_2025_Quito.astro +61 -61
  56. package/src/components/Astro/Repetidor_2025_Seattle.astro +22 -22
  57. package/src/components/Astro/Repetidor_2025_Tokyo.astro +56 -56
  58. package/src/components/Astro/Repetidor_2025_Ubeda.astro +39 -39
  59. package/src/components/Astro/Repetidor_2025_Yakarta.astro +203 -203
  60. package/src/components/Astro/SEO_Head_Section.astro +32 -32
  61. package/src/components/Astro/Separador_2025_Reinosa.astro +3 -3
  62. package/src/components/Astro/Titulo_2025_Algeciras.astro +57 -57
  63. package/src/components/Astro/Titulo_2025_Santorini.astro +8 -8
  64. package/src/components/Astro/Video_2025_Valencia.astro +0 -1
  65. package/src/generated/componentRegistry.ts +96 -96
  66. package/src/index.ts +123 -123
package/README.md CHANGED
@@ -1,46 +1,46 @@
1
- # libreria-astro-lefebvre
2
-
3
- Instrucciones:
4
-
5
- - La libreria en npm está en: https://www.npmjs.com/package/libreria-astro-lefebvre
6
- - Para instalar:
7
- ```
8
- npm i libreria-astro-lefebvre
9
- ```
10
-
11
-
12
- Hacer un link en librería local:
13
- ``` npm link ```
14
-
15
- Usar librería local:
16
- ``` npm link nombre-librería ```
17
-
18
- Dejar de usar librería local:
19
- ```npm unlink --no-save nombre-librería```
20
-
21
- Login en npm:
22
- ```npm login --auth-type=legacy```
23
-
24
- Publicar en npm:
25
- ```npm publish --access public```
26
-
27
- Cuenta nodejs:
28
- dretamal
29
- P...a
30
-
31
- Hay que hacer npm install y reiniciar server
32
-
33
- Correr aplicación node:
34
- ``` npm run dev ```
35
-
36
- Compilar:
37
- ```npm run build```
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';```
1
+ # libreria-astro-lefebvre
2
+
3
+ Instrucciones:
4
+
5
+ - La libreria en npm está en: https://www.npmjs.com/package/libreria-astro-lefebvre
6
+ - Para instalar:
7
+ ```
8
+ npm i libreria-astro-lefebvre
9
+ ```
10
+
11
+
12
+ Hacer un link en librería local:
13
+ ``` npm link ```
14
+
15
+ Usar librería local:
16
+ ``` npm link nombre-librería ```
17
+
18
+ Dejar de usar librería local:
19
+ ```npm unlink --no-save nombre-librería```
20
+
21
+ Login en npm:
22
+ ```npm login --auth-type=legacy```
23
+
24
+ Publicar en npm:
25
+ ```npm publish --access public```
26
+
27
+ Cuenta nodejs:
28
+ dretamal
29
+ P...a
30
+
31
+ Hay que hacer npm install y reiniciar server
32
+
33
+ Correr aplicación node:
34
+ ``` npm run dev ```
35
+
36
+ Compilar:
37
+ ```npm run build```
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,30 +1,30 @@
1
- {
2
- "name": "libreria-astro-lefebvre",
3
- "version": "0.0.28",
4
- "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
- "author": "Equipo web desarrollo Lefebvre",
6
- "type": "module",
7
- "exports": {
8
- ".": "./src/index.ts",
9
- "./list": "./src/list.ts"
10
- },
11
- "files": [
12
- "src"
13
- ],
14
- "keywords": [
15
- "astro",
16
- "astro-components",
17
- "ui",
18
- "component-library",
19
- "design-system"
20
- ],
21
- "peerDependencies": {
22
- "astro": "^5.11.0"
23
- },
24
- "scripts": {
25
- "generate:registry": "node scripts/generateRegistry.js"
26
- },
27
- "devDependencies": {
28
- "typescript": "^5.8.3"
29
- }
30
- }
1
+ {
2
+ "name": "libreria-astro-lefebvre",
3
+ "version": "0.0.30",
4
+ "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
+ "author": "Equipo web desarrollo Lefebvre",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": "./src/index.ts",
9
+ "./list": "./src/list.ts"
10
+ },
11
+ "files": [
12
+ "src"
13
+ ],
14
+ "keywords": [
15
+ "astro",
16
+ "astro-components",
17
+ "ui",
18
+ "component-library",
19
+ "design-system"
20
+ ],
21
+ "peerDependencies": {
22
+ "astro": "^5.11.0"
23
+ },
24
+ "scripts": {
25
+ "generate:registry": "node scripts/generateRegistry.js"
26
+ },
27
+ "devDependencies": {
28
+ "typescript": "^5.8.3"
29
+ }
30
+ }
@@ -1,34 +1,34 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Button',
5
- category: 'Call to Action',
6
- name: 'Botón en Astro',
7
- description: 'Botón de prueba en Astro',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['boton', 'interactivo', 'ejemplo'],
11
- fields: [
12
- {
13
- name: 'label',
14
- type: 'text',
15
- label: 'Texto del botón',
16
- mandatory: true,
17
- example_value: 'Botón en Astro'
18
- },
19
- {
20
- name: 'href',
21
- type: 'text',
22
- label: 'Url de destino',
23
- mandatory: true,
24
- example_value: 'https://lefebvre.es'
25
- },
26
- {
27
- name: 'target',
28
- type: 'text',
29
- label: 'Indicar si se abre en la misma ventana o en una nueva (_blank)',
30
- mandatory: false,
31
- example_value: '_blank'
32
- },
33
- ],
34
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Button',
5
+ category: 'Call to Action',
6
+ name: 'Botón en Astro',
7
+ description: 'Botón de prueba en Astro',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['boton', 'interactivo', 'ejemplo'],
11
+ fields: [
12
+ {
13
+ name: 'label',
14
+ type: 'text',
15
+ label: 'Texto del botón',
16
+ mandatory: true,
17
+ example_value: 'Botón en Astro'
18
+ },
19
+ {
20
+ name: 'href',
21
+ type: 'text',
22
+ label: 'Url de destino',
23
+ mandatory: true,
24
+ example_value: 'https://lefebvre.es'
25
+ },
26
+ {
27
+ name: 'target',
28
+ type: 'text',
29
+ label: 'Indicar si se abre en la misma ventana o en una nueva (_blank)',
30
+ mandatory: false,
31
+ example_value: '_blank'
32
+ },
33
+ ],
34
+ };
@@ -1,48 +1,48 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'CTA_2025_Formentera',
5
- category: 'Call to Action',
6
- name: 'Botón primario Genial 2025',
7
- description: 'Botón primario para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['boton', 'genial'],
11
- fields: [
12
- {
13
- name: 'buttonText',
14
- type: 'text',
15
- label: 'Label del botón',
16
- mandatory: false,
17
- example_value: 'Texto del botón'
18
- },
19
- {
20
- name: 'buttonUrl',
21
- type: 'text',
22
- label: 'Enlace del botón',
23
- mandatory: false,
24
- example_value: 'https://www.ejemplo.com'
25
- },
26
- {
27
- name: 'frontColor',
28
- type: 'text',
29
- label: 'Color frontal',
30
- mandatory: false,
31
- example_value: 'white'
32
- },
33
- {
34
- name: 'backColor',
35
- type: 'text',
36
- label: 'Color de fondo',
37
- mandatory: false,
38
- example_value: '#2134F1'
39
- },
40
- {
41
- name: 'borderColor',
42
- type: 'text',
43
- label: 'Color del borde',
44
- mandatory: false,
45
- example_value: '#2134F1'
46
- },
47
- ]
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'CTA_2025_Formentera',
5
+ category: 'Call to Action',
6
+ name: 'Botón primario Genial 2025',
7
+ description: 'Botón primario para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['boton', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'buttonText',
14
+ type: 'text',
15
+ label: 'Label del botón',
16
+ mandatory: false,
17
+ example_value: 'Texto del botón'
18
+ },
19
+ {
20
+ name: 'buttonUrl',
21
+ type: 'text',
22
+ label: 'Enlace del botón',
23
+ mandatory: false,
24
+ example_value: 'https://www.ejemplo.com'
25
+ },
26
+ {
27
+ name: 'frontColor',
28
+ type: 'text',
29
+ label: 'Color frontal',
30
+ mandatory: false,
31
+ example_value: 'white'
32
+ },
33
+ {
34
+ name: 'backColor',
35
+ type: 'text',
36
+ label: 'Color de fondo',
37
+ mandatory: false,
38
+ example_value: '#2134F1'
39
+ },
40
+ {
41
+ name: 'borderColor',
42
+ type: 'text',
43
+ label: 'Color del borde',
44
+ mandatory: false,
45
+ example_value: '#2134F1'
46
+ },
47
+ ]
48
48
  };
@@ -1,34 +1,34 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Cabecera_2025_Barcelona',
5
- category: 'Cabecera',
6
- name: 'Breadcrumb Genial 2025',
7
- description: 'Breadcrumb para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['breadcrumb', 'genial'],
11
- fields: [
12
- {
13
- name: 'text',
14
- type: 'text',
15
- label: 'Texto del breadcrumb',
16
- mandatory: false,
17
- example_value: 'Test'
18
- },
19
- {
20
- name: 'subdirectory',
21
- type: 'text',
22
- label: 'Subdirectorio',
23
- mandatory: false,
24
- example_value: '/genia-l'
25
- },
26
- {
27
- name: 'link',
28
- type: 'text',
29
- label: 'Enlace del breadcrumb',
30
- mandatory: false,
31
- example_value: '#'
32
- }
33
- ]
34
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Cabecera_2025_Barcelona',
5
+ category: 'Cabecera',
6
+ name: 'Breadcrumb Genial 2025',
7
+ description: 'Breadcrumb para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['breadcrumb', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'text',
14
+ type: 'text',
15
+ label: 'Texto del breadcrumb',
16
+ mandatory: false,
17
+ example_value: 'Test'
18
+ },
19
+ {
20
+ name: 'subdirectory',
21
+ type: 'text',
22
+ label: 'Subdirectorio',
23
+ mandatory: false,
24
+ example_value: '/genia-l'
25
+ },
26
+ {
27
+ name: 'link',
28
+ type: 'text',
29
+ label: 'Enlace del breadcrumb',
30
+ mandatory: false,
31
+ example_value: '#'
32
+ }
33
+ ]
34
+ };
@@ -1,34 +1,34 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Cabecera_2025_Madrid',
5
- category: 'Cabecera',
6
- name: 'Header Genial 2025',
7
- description: 'Header para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['header', 'navegación'],
11
- fields: [
12
- {
13
- name: 'label',
14
- type: 'text',
15
- label: 'Texto del botón',
16
- mandatory: false,
17
- example_value: 'Pruébalo ya'
18
- },
19
- {
20
- name: 'subdirectory',
21
- type: 'text',
22
- label: 'Subdirectorio',
23
- mandatory: false,
24
- example_value: '/genia-l'
25
- },
26
- {
27
- name: 'url',
28
- type: 'text',
29
- label: 'Enlace del botón',
30
- mandatory: false,
31
- example_value: '#'
32
- }
33
- ]
34
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Cabecera_2025_Madrid',
5
+ category: 'Cabecera',
6
+ name: 'Header Genial 2025',
7
+ description: 'Header para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['header', 'navegación'],
11
+ fields: [
12
+ {
13
+ name: 'label',
14
+ type: 'text',
15
+ label: 'Texto del botón',
16
+ mandatory: false,
17
+ example_value: 'Pruébalo ya'
18
+ },
19
+ {
20
+ name: 'subdirectory',
21
+ type: 'text',
22
+ label: 'Subdirectorio',
23
+ mandatory: false,
24
+ example_value: '/genia-l'
25
+ },
26
+ {
27
+ name: 'url',
28
+ type: 'text',
29
+ label: 'Enlace del botón',
30
+ mandatory: false,
31
+ example_value: '#'
32
+ }
33
+ ]
34
+ };
@@ -1,76 +1,76 @@
1
- import type { ComponentMetadata } from '../interfaces/types';
2
-
3
- export const metadata: ComponentMetadata = {
4
- component_name: 'Contenido_2025_Alcorcon',
5
- category: 'Contenido',
6
- name: 'Contenido de vídeo Genial 2025',
7
- description: 'Contenido de vídeo para el directorio de Genial en la corporativa de Lefebvre',
8
- framework: 'Astro',
9
- priority: 1,
10
- tags: ['contenido', 'video', 'genial'],
11
- fields: [
12
- {
13
- name: 'title',
14
- type: 'text',
15
- label: 'Texto del título',
16
- mandatory: false,
17
- example_value: 'Pruébalo ya'
18
- },
19
- {
20
- name: 'subtitle',
21
- type: 'text',
22
- label: 'Texto del subtítulo',
23
- mandatory: false,
24
- example_value: 'Subtítulo del título'
25
- },
26
- {
27
- name: 'description',
28
- type: 'text',
29
- label: 'Texto de la descripción',
30
- mandatory: false,
31
- example_value: 'Texto descriptivo del título'
32
- },
33
- {
34
- name: 'txtBtn',
35
- type: 'text',
36
- label: 'Label del botón',
37
- mandatory: false,
38
- example_value: 'Texto del botón'
39
- },
40
- {
41
- name: 'linkBtn',
42
- type: 'text',
43
- label: 'Enlace del botón',
44
- mandatory: false,
45
- example_value: 'https://www.ejemplo.com'
46
- },
47
- {
48
- name: 'alt',
49
- type: 'text',
50
- label: 'Texto alternativo del botón',
51
- mandatory: false,
52
- example_value: 'Texto alternativo del botón'
53
- },
54
- {
55
- name: 'src',
56
- type: 'text',
57
- label: 'Src del vídeo',
58
- mandatory: false,
59
- example_value: 'https://www.ejemplo.com/video.mp4'
60
- },
61
- {
62
- name: 'iframeSrc',
63
- type: 'text',
64
- label: 'Src del iframe',
65
- mandatory: false,
66
- example_value: 'https://www.ejemplo.com/video.mp4'
67
- },
68
- {
69
- name: 'showBtn',
70
- type: 'boolean',
71
- label: 'Mostrar botón',
72
- mandatory: false,
73
- example_value: true
74
- }
75
- ]
76
- };
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Contenido_2025_Alcorcon',
5
+ category: 'Contenido',
6
+ name: 'Contenido de vídeo Genial 2025',
7
+ description: 'Contenido de vídeo para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['contenido', 'video', 'genial'],
11
+ fields: [
12
+ {
13
+ name: 'title',
14
+ type: 'text',
15
+ label: 'Texto del título',
16
+ mandatory: false,
17
+ example_value: 'Pruébalo ya'
18
+ },
19
+ {
20
+ name: 'subtitle',
21
+ type: 'text',
22
+ label: 'Texto del subtítulo',
23
+ mandatory: false,
24
+ example_value: 'Subtítulo del título'
25
+ },
26
+ {
27
+ name: 'description',
28
+ type: 'text',
29
+ label: 'Texto de la descripción',
30
+ mandatory: false,
31
+ example_value: 'Texto descriptivo del título'
32
+ },
33
+ {
34
+ name: 'txtBtn',
35
+ type: 'text',
36
+ label: 'Label del botón',
37
+ mandatory: false,
38
+ example_value: 'Texto del botón'
39
+ },
40
+ {
41
+ name: 'linkBtn',
42
+ type: 'text',
43
+ label: 'Enlace del botón',
44
+ mandatory: false,
45
+ example_value: 'https://www.ejemplo.com'
46
+ },
47
+ {
48
+ name: 'alt',
49
+ type: 'text',
50
+ label: 'Texto alternativo del botón',
51
+ mandatory: false,
52
+ example_value: 'Texto alternativo del botón'
53
+ },
54
+ {
55
+ name: 'src',
56
+ type: 'text',
57
+ label: 'Src del vídeo',
58
+ mandatory: false,
59
+ example_value: 'https://www.ejemplo.com/video.mp4'
60
+ },
61
+ {
62
+ name: 'iframeSrc',
63
+ type: 'text',
64
+ label: 'Src del iframe',
65
+ mandatory: false,
66
+ example_value: 'https://www.ejemplo.com/video.mp4'
67
+ },
68
+ {
69
+ name: 'showBtn',
70
+ type: 'boolean',
71
+ label: 'Mostrar botón',
72
+ mandatory: false,
73
+ example_value: true
74
+ }
75
+ ]
76
+ };