libreria-astro-lefebvre 0.0.124 → 0.0.126

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libreria-astro-lefebvre",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
@@ -208,8 +208,8 @@ export const metadata: ComponentMetadata = {
208
208
  name: 'width',
209
209
  type: 'select',
210
210
  label: 'Ancho del contenido',
211
- options: ['full', 'w-3/5'],
212
- options_labels: ['Ancho completo', 'Ancho 3/5'],
211
+ options: ['full', 'w-3/5', '7xl'],
212
+ options_labels: ['Ancho completo', 'Ancho 3/5', 'Ancho 7xl'],
213
213
  example_value: 'full'
214
214
  },
215
215
  ]
@@ -46,8 +46,8 @@ export const metadata: ComponentMetadata = {
46
46
  name: 'headingType',
47
47
  type: 'select',
48
48
  label: 'Etiqueta del título',
49
- options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span'],
50
- options_labels: ['H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'Span'],
49
+ options: ['h1', 'h2', 'h3', 'h3-center', 'h4', 'h5', 'h6', 'span'],
50
+ options_labels: ['H1', 'H2', 'H3', 'H3 CENTER', 'H4', 'H5', 'H6', 'Span'],
51
51
  example_value: 'h2'
52
52
  },
53
53
  {
@@ -0,0 +1,100 @@
1
+ import type { ComponentMetadata } from '../interfaces/types';
2
+
3
+ export const metadata: ComponentMetadata = {
4
+ component_name: 'Contenido_2026_Menorca',
5
+ category: 'Contenido',
6
+ name: 'Otro repetidor de contenido con icono Genial 2025',
7
+ description: 'Repetidor de contenido con icono para el directorio de Genial en la corporativa de Lefebvre',
8
+ framework: 'Astro',
9
+ priority: 1,
10
+ tags: ['contenido', 'genial', 'icono'],
11
+ fields: [
12
+
13
+ {
14
+ name: 'positionFlex',
15
+ type: 'select',
16
+ label: 'Posición del item',
17
+ options: ['items-start', 'items-center'],
18
+ options_labels: ['Principio', 'Centrado'],
19
+ example_value: 'items-start'
20
+ },
21
+ {
22
+ name: 'positionBtnFlex',
23
+ type: 'select',
24
+ label: 'Posición del botón',
25
+ options: ['justify-center', 'justify-start'],
26
+ options_labels: ['Centrado', 'Principio'],
27
+ example_value: 'justify-center'
28
+ },
29
+ {
30
+ name: 'flexOrientationIcoText',
31
+ type: 'select',
32
+ label: 'Flex del icono del item',
33
+ options: ['flex-row', 'flex-col'],
34
+ options_labels: ['Horizontal', 'Vertical'],
35
+ example_value: 'flex-row'
36
+ },
37
+ {
38
+ name: 'flexOrientationBlockIcoText',
39
+ type: 'select',
40
+ label: 'Flex del item',
41
+ options: ['flex-row', 'flex-col'],
42
+ options_labels: ['Horizontal', 'Vertical'],
43
+ example_value: 'flex-row'
44
+ },
45
+ {
46
+ name: 'headingType',
47
+ type: 'select',
48
+ label: 'Etiqueta del título',
49
+ options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span'],
50
+ options_labels: ['H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'Span'],
51
+ example_value: 'h2'
52
+ },
53
+ {
54
+ name: 'btnLabel',
55
+ type: 'text',
56
+ label: 'Label del botón',
57
+ mandatory: false,
58
+ example_value: 'Texto del botón'
59
+ },
60
+ {
61
+ name: 'buttonUrl',
62
+ type: 'text',
63
+ label: 'Enlace del botón',
64
+ mandatory: false,
65
+ example_value: 'https://www.ejemplo.com'
66
+ },
67
+ {
68
+ name: 'showBtn',
69
+ type: 'boolean',
70
+ label: 'Mostrar botón',
71
+ mandatory: false,
72
+ example_value: true
73
+ },
74
+ {
75
+ name: 'widthArticle',
76
+ type: 'select',
77
+ label: 'Ancho del Article',
78
+ options: ['w-full'],
79
+ options_labels: ['Full'],
80
+ example_value: 'w-full'
81
+ },
82
+ {
83
+ name: 'items',
84
+ type: 'list',
85
+ label: 'Listado de items',
86
+ mandatory: false,
87
+ items: {
88
+ type: 'object',
89
+ fields: [
90
+ { name: 'title', type: 'text', label: 'Título' },
91
+ { name: 'description', type: 'textArea', label: 'Descripción' },
92
+ { name: 'showIco', type: 'boolean', label: '¿Mostrar icon?' },
93
+ { name: 'icon', type: 'text', label: 'Icono' },
94
+ { name: 'widthBlock', type: 'select', label: 'Ancho de Block', options: ['lg:w-1/4 md:w-2/4', 'lg:w-1/3'], options_labels: ['1/4', '1/3'] },
95
+ ]
96
+ }
97
+
98
+ }
99
+ ]
100
+ };
@@ -46,8 +46,8 @@ export const metadata: ComponentMetadata = {
46
46
  name: 'headingType',
47
47
  type: 'select',
48
48
  label: 'Etiqueta del título',
49
- options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'span'],
50
- options_labels: ['H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'Span'],
49
+ options: ['h1', 'h2', 'h3', 'h3-center', 'h4', 'h5', 'h6', 'span'],
50
+ options_labels: ['H1', 'H2', 'H3', 'H3 CENTER', 'H4', 'H5', 'H6', 'Span'],
51
51
  example_value: 'h2'
52
52
  },
53
53
  {
@@ -19,7 +19,7 @@ export const metadata: ComponentMetadata = {
19
19
  fields: [
20
20
  { name: 'title', type: 'text', label: 'Texto del título' },
21
21
  { name: 'description', type: 'text', label: 'Texto de la descripción' },
22
- { name: 'iframeSrc', type: 'video', label: 'URL del vídeo' }
22
+ { name: 'iframeSrc', type: 'text', label: 'URL del vídeo' }
23
23
  ]
24
24
  }
25
25
  }
@@ -0,0 +1,45 @@
1
+ ---
2
+ import Contenido_2025_Granada from "./Contenido_2025_Granada.astro";
3
+ import CTA_2025_Formentera from "./CTA_2025_Formentera.astro";
4
+
5
+
6
+ const {
7
+ flexOrientationBlockIcoText = "flex-row",
8
+ flexOrientationIcoText = "flex-row",
9
+ positionFlex = "items-center",
10
+ positionBtnFlex = "justify-center",
11
+ headingType = 'h3',
12
+ items = [],
13
+ btnLabel = "Ver más",
14
+ buttonUrl = "#",
15
+ showBtn = false,
16
+ widthArticle = "w-full"
17
+ } = Astro.props;
18
+
19
+ ---
20
+
21
+ <article class={`${positionFlex === 'items-center' ? 'items-center' : 'items-start'} ${widthArticle} flex flex-col justify-center mb-4`}>
22
+ <div class={`flex ${flexOrientationBlockIcoText} items-start flex-wrap px-6 md:px-0`}>
23
+ {items.map(item => (
24
+ <Contenido_2025_Granada
25
+ title={item.title}
26
+ tipo={headingType}
27
+ description={item.description}
28
+ flexOrientationBlock={flexOrientationBlockIcoText}
29
+ flexOrientationIcoText={flexOrientationIcoText}
30
+ positionFlex={positionFlex}
31
+ showIco={item.showIco}
32
+ icon={item.icon}
33
+ widthBlock={item.widthBlock}
34
+ />
35
+ ))}
36
+ </div>
37
+ <div class={`${positionBtnFlex === 'justify-center' ? 'justify-center' : 'justify-start'} pl-0 md:pl-4 lg:pl-0 w-full flex`}>
38
+ {showBtn ? (
39
+ <CTA_2025_Formentera buttonText={btnLabel} buttonUrl={buttonUrl} />
40
+ ) : (
41
+ <div class="flex justify-center"></div>
42
+ )}
43
+
44
+ </div>
45
+ </article>
@@ -37,7 +37,7 @@ const structuredData = `<script type="application/ld+json">
37
37
  ---
38
38
 
39
39
  <div class={`w-full flex ${image ? `flex-col ${imagePosition === 'left' ? 'md:flex-row-reverse' : 'md:flex-row'} items-start gap-8` : ''} px-8 md:px-0`}>
40
- <div class={`w-full flex ${flexJustify === 'justify-center' ? 'justify-center' : 'justify-start'} flex-col`}>
40
+ <div class={`w-full flex ${flexJustify === 'justify-center' ? 'justify-center' : 'justify-start'} flex-col order-2 md:order-1`}>
41
41
  {
42
42
  tipo === "h1-blog-categoria" ? <h1 class="font-poppins text-[#262626] text-[40px] mb-4 font-normal text-center leading-[48px] tracking-[-0.5px]" set:html={title}></h1>
43
43
  : tipo === "h1-blog-autor" ? <h1 class="font-poppins text-[#262626] text-[40px] mb-1 font-semibold text-left leading-[48px] tracking-[-0.5px]" set:html={title}></h1>
@@ -84,7 +84,8 @@ const structuredData = `<script type="application/ld+json">
84
84
  )}
85
85
  </div>
86
86
  {image && (
87
- <img src={image} alt={imageAlt} class="w-full md:w-[240px] aspect-square object-cover rounded-lg" loading="lazy" />
87
+ <img src={image} alt={imageAlt} class="order-1 md:order-2 w-[240px] aspect-square object-cover rounded-lg" loading="lazy" />
88
+
88
89
  )}
89
90
  </div>
90
91
 
@@ -13,6 +13,7 @@ import * as Contenido_2025_Malaga from '../carbins/Contenido_2025_Malaga.ts';
13
13
  import * as Contenido_2025_Montevideo from '../carbins/Contenido_2025_Montevideo.ts';
14
14
  import * as Contenido_2026_Leon from '../carbins/Contenido_2026_Leon.ts';
15
15
  import * as Contenido_2026_Mallorca from '../carbins/Contenido_2026_Mallorca.ts';
16
+ import * as Contenido_2026_Menorca from '../carbins/Contenido_2026_Menorca.ts';
16
17
  import * as CorpFooter from '../carbins/CorpFooter.ts';
17
18
  import * as CorpHero from '../carbins/CorpHero.ts';
18
19
  import * as Enlace_2025_Venecia from '../carbins/Enlace_2025_Venecia.ts';
@@ -89,6 +90,7 @@ export const components = [
89
90
  {component: Contenido_2025_Montevideo},
90
91
  {component: Contenido_2026_Leon},
91
92
  {component: Contenido_2026_Mallorca},
93
+ {component: Contenido_2026_Menorca},
92
94
  {component: CorpFooter},
93
95
  {component: CorpHero},
94
96
  {component: Enlace_2025_Venecia},
package/src/index.ts CHANGED
@@ -17,6 +17,7 @@ import Contenido_2025_Malaga from './components/Astro/Contenido_2025_Malaga.astr
17
17
  import Contenido_2025_Montevideo from './components/Astro/Contenido_2025_Montevideo.astro';
18
18
  import Contenido_2026_Leon from './components/Astro/Contenido_2026_Leon.astro';
19
19
  import Contenido_2026_Mallorca from './components/Astro/Contenido_2026_Mallorca.astro';
20
+ import Contenido_2026_Menorca from './components/Astro/Contenido_2026_Menorca.astro';
20
21
  import CorpFooter from './components/Astro/CorpFooter.astro';
21
22
  import CorpHero from './components/Astro/CorpHero.astro';
22
23
  import CorpNavigation from './components/Astro/CorpNavigation.astro';
@@ -84,7 +85,7 @@ import ReactButton from './components/React/ReactButton.jsx';
84
85
  // Exporta todos los componentes uno a uno para que puedan ser usados directamente.
85
86
 
86
87
 
87
- export { VueButton, Author_2025_Algarve, Button, CTA_2025_Formentera, Cabecera_2025_Barcelona, Cabecera_2025_Madrid, Cabecera_2026_Madrid, Card_2025_Malta, Contenido_2025_Alcorcon, Contenido_2025_Granada, Contenido_2025_Malaga, Contenido_2025_Montevideo, Contenido_2026_Leon, Contenido_2026_Mallorca, CorpFooter, CorpHero, CorpNavigation, Enlace_2025_Venecia, FAQ_2025_Hiroshima, FooterCorporativo, Footer_2025_Napoles, Formulario_2025_Nara, Formulario_2025_Seul, Formulario_2025_Teruel, GeometricShape, GeometricShapeCard, HeaderCorporativo, Hero_2025_Benidorm, ImageTextSimple, Imagen_2025_Bogota, Imagen_2025_Fukushima, Indice_2025_Taiwan, Modal_2025_Sagunto, Paginacion_2025_Paris, RRSS_2025_Pisa, Repetidor_2025_Cabra, Repetidor_2025_Cordoba, Repetidor_2025_Dubai, Repetidor_2025_Estocolmo, Repetidor_2025_Jaen, Repetidor_2025_Mallorca, Repetidor_2025_Marruecos, Repetidor_2025_Menorca, Repetidor_2025_Michigan, Repetidor_2025_Mostoles, Repetidor_2025_Orcasitas, Repetidor_2025_Oslo, Repetidor_2025_Quito, Repetidor_2025_Seattle, Repetidor_2025_Sevilla, Repetidor_2025_Tokyo, Repetidor_2025_Ubeda, Repetidor_2025_Yakarta, SEO_Head_Section, Separador_2025_Reinosa, Separador_2025_Toledo, Share_2025_Florencia, SpectrumSeparator, Sumario_2025_Beijing, Tabla_2025_Fuenlabrada, Tag_2025_Bolonia, TestHijo, TestPadre, Test_2026_Gaza, TextBox, TextImageBackground, TextImageBlock, TextImageCard, TextImageHeader, Texto_2025_Kyoto, Tiempo_2025_Londres, Titulo_2025_Algeciras, Titulo_2025_Santorini, VideoAutoplay, Video_2025_Polop, Video_2025_Valencia, ReactButton };
88
+ export { VueButton, Author_2025_Algarve, Button, CTA_2025_Formentera, Cabecera_2025_Barcelona, Cabecera_2025_Madrid, Cabecera_2026_Madrid, Card_2025_Malta, Contenido_2025_Alcorcon, Contenido_2025_Granada, Contenido_2025_Malaga, Contenido_2025_Montevideo, Contenido_2026_Leon, Contenido_2026_Mallorca, Contenido_2026_Menorca, CorpFooter, CorpHero, CorpNavigation, Enlace_2025_Venecia, FAQ_2025_Hiroshima, FooterCorporativo, Footer_2025_Napoles, Formulario_2025_Nara, Formulario_2025_Seul, Formulario_2025_Teruel, GeometricShape, GeometricShapeCard, HeaderCorporativo, Hero_2025_Benidorm, ImageTextSimple, Imagen_2025_Bogota, Imagen_2025_Fukushima, Indice_2025_Taiwan, Modal_2025_Sagunto, Paginacion_2025_Paris, RRSS_2025_Pisa, Repetidor_2025_Cabra, Repetidor_2025_Cordoba, Repetidor_2025_Dubai, Repetidor_2025_Estocolmo, Repetidor_2025_Jaen, Repetidor_2025_Mallorca, Repetidor_2025_Marruecos, Repetidor_2025_Menorca, Repetidor_2025_Michigan, Repetidor_2025_Mostoles, Repetidor_2025_Orcasitas, Repetidor_2025_Oslo, Repetidor_2025_Quito, Repetidor_2025_Seattle, Repetidor_2025_Sevilla, Repetidor_2025_Tokyo, Repetidor_2025_Ubeda, Repetidor_2025_Yakarta, SEO_Head_Section, Separador_2025_Reinosa, Separador_2025_Toledo, Share_2025_Florencia, SpectrumSeparator, Sumario_2025_Beijing, Tabla_2025_Fuenlabrada, Tag_2025_Bolonia, TestHijo, TestPadre, Test_2026_Gaza, TextBox, TextImageBackground, TextImageBlock, TextImageCard, TextImageHeader, Texto_2025_Kyoto, Tiempo_2025_Londres, Titulo_2025_Algeciras, Titulo_2025_Santorini, VideoAutoplay, Video_2025_Polop, Video_2025_Valencia, ReactButton };
88
89
 
89
90
 
90
91
  // Exporta la función listComponents para que sea usado en el Pagebuilder en Vue.
@@ -113,6 +114,7 @@ export const components = {
113
114
  Contenido_2025_Montevideo: Contenido_2025_Montevideo,
114
115
  Contenido_2026_Leon: Contenido_2026_Leon,
115
116
  Contenido_2026_Mallorca: Contenido_2026_Mallorca,
117
+ Contenido_2026_Menorca: Contenido_2026_Menorca,
116
118
  CorpFooter: CorpFooter,
117
119
  CorpHero: CorpHero,
118
120
  CorpNavigation: CorpNavigation,