libreria-astro-lefebvre 0.0.5 → 0.0.7
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 +46 -46
- package/package.json +30 -30
- package/src/carbins/AstroButton.ts +34 -10
- package/src/carbins/CTA_2025_Formentera.ts +48 -0
- package/src/carbins/Cabecera_2025_Barcelona.ts +34 -0
- package/src/carbins/Cabecera_2025_Madrid.ts +34 -0
- package/src/carbins/Contenido_2025_Alcorcon.ts +76 -0
- package/src/carbins/Contenido_2025_Granada.ts +59 -0
- package/src/carbins/Contenido_2025_Malaga.ts +100 -0
- package/src/carbins/CorpFooter.ts +13 -0
- package/src/carbins/CorpHero.ts +20 -0
- package/src/carbins/FooterCorporativo.ts +13 -0
- package/src/carbins/Footer_2025_Napoles.ts +12 -0
- package/src/carbins/Formulario_2025_Seul.ts +56 -0
- package/src/carbins/GeometricShapeCard.ts +19 -8
- package/src/carbins/HeaderCorporativo.ts +34 -0
- package/src/carbins/ImageTextSimple.ts +45 -0
- package/src/carbins/Imagen_2025_Bogota.ts +69 -0
- package/src/carbins/ReactButton.ts +32 -8
- package/src/carbins/Repetidor_2025_Cabra.ts +12 -0
- package/src/carbins/Repetidor_2025_Dubai.ts +48 -0
- package/src/carbins/Repetidor_2025_Estocolmo.ts +12 -0
- package/src/carbins/Repetidor_2025_Menorca.ts +75 -0
- package/src/carbins/Repetidor_2025_Michigan.ts +21 -0
- package/src/carbins/Repetidor_2025_Orcasitas.ts +34 -0
- package/src/carbins/Repetidor_2025_Oslo.ts +12 -0
- package/src/carbins/Repetidor_2025_Quito.ts +20 -0
- package/src/carbins/Repetidor_2025_Seatle.ts +12 -0
- package/src/carbins/Repetidor_2025_Tokyo.ts +48 -0
- package/src/carbins/Repetidor_2025_Ubeda.ts +12 -0
- package/src/carbins/Repetidor_2025_Yakarta.ts +12 -0
- package/src/carbins/Separador_2025_Reinosa.ts +12 -0
- package/src/carbins/SpectrumSeparator.ts +12 -0
- package/src/carbins/TestPadre.ts +20 -0
- package/src/carbins/TextBox.ts +27 -0
- package/src/carbins/TextImageBackground.ts +47 -0
- package/src/carbins/TextImageBlock.ts +62 -0
- package/src/carbins/TextImageCard.ts +44 -0
- package/src/carbins/TextImageHeader.ts +68 -0
- package/src/carbins/Titulo_2025_Algeciras.ts +43 -0
- package/src/carbins/Titulo_2025_Santorini.ts +20 -0
- package/src/carbins/VideoAutoplay.ts +36 -0
- package/src/carbins/VueButton.ts +35 -11
- package/src/components/Astro/Button.astro +5 -5
- package/src/components/Astro/CTA_2025_Formentera.astro +20 -0
- package/src/components/Astro/Cabecera_2025_Barcelona.astro +17 -0
- package/src/components/Astro/Cabecera_2025_Madrid.astro +147 -0
- package/src/components/Astro/Contenido_2025_Alcorcon.astro +46 -0
- package/src/components/Astro/Contenido_2025_Granada.astro +67 -0
- package/src/components/Astro/Contenido_2025_Malaga.astro +125 -0
- package/src/components/Astro/CorpFooter.astro +107 -0
- package/src/components/Astro/CorpHero.astro +21 -0
- package/src/components/Astro/CorpNavigation.astro +87 -0
- package/src/components/Astro/FooterCorporativo.astro +82 -0
- package/src/components/Astro/Footer_2025_Napoles.astro +128 -0
- package/src/components/Astro/Formulario_2025_Seul.astro +63 -0
- package/src/components/Astro/GeometricShape.astro +0 -0
- package/src/components/Astro/GeometricShapeCard.astro +0 -0
- package/src/components/Astro/HeaderCorporativo.astro +26 -0
- package/src/components/Astro/ImageTextSimple.astro +56 -0
- package/src/components/Astro/Imagen_2025_Bogota.astro +43 -0
- package/src/components/Astro/Repetidor_2025_Cabra.astro +121 -0
- package/src/components/Astro/Repetidor_2025_Dubai.astro +30 -0
- package/src/components/Astro/Repetidor_2025_Estocolmo.astro +34 -0
- package/src/components/Astro/Repetidor_2025_Menorca.astro +42 -0
- package/src/components/Astro/Repetidor_2025_Michigan.astro +24 -0
- package/src/components/Astro/Repetidor_2025_Orcasitas.astro +189 -0
- package/src/components/Astro/Repetidor_2025_Oslo.astro +54 -0
- package/src/components/Astro/Repetidor_2025_Quito.astro +43 -0
- package/src/components/Astro/Repetidor_2025_Seatle.astro +32 -0
- package/src/components/Astro/Repetidor_2025_Tokyo.astro +55 -0
- package/src/components/Astro/Repetidor_2025_Ubeda.astro +19 -0
- package/src/components/Astro/Repetidor_2025_Yakarta.astro +136 -0
- package/src/components/Astro/Separador_2025_Reinosa.astro +4 -0
- package/src/components/Astro/SpectrumSeparator.astro +11 -0
- package/src/components/Astro/TestHijo.astro +5 -0
- package/src/components/Astro/TestPadre.astro +7 -0
- package/src/components/Astro/TextBox.astro +11 -0
- package/src/components/Astro/TextImageBackground.astro +18 -0
- package/src/components/Astro/TextImageBlock.astro +29 -0
- package/src/components/Astro/TextImageCard.astro +25 -0
- package/src/components/Astro/TextImageHeader.astro +31 -0
- package/src/components/Astro/Titulo_2025_Algeciras.astro +27 -0
- package/src/components/Astro/Titulo_2025_Santorini.astro +9 -0
- package/src/components/Astro/VideoAutoplay.astro +20 -0
- package/src/components/React/ReactButton.jsx +0 -0
- package/src/components/Vue/VueButton.vue +0 -0
- package/src/generated/componentRegistry.ts +86 -12
- package/src/index.ts +113 -5
- package/src/interfaces/types.ts +3 -0
- package/src/lib/functions.js +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
const {
|
|
3
|
+
title,
|
|
4
|
+
description,
|
|
5
|
+
image,
|
|
6
|
+
orientation = 'left',
|
|
7
|
+
} = Astro.props;
|
|
8
|
+
---
|
|
9
|
+
<article class={`flex ${orientation === 'left' ? 'flex-row' : 'flex-row-reverse'} items-center gap-4 w-full rounded-xl overflow-hidden border border-slate-300 shadow-lg bg-white`}>
|
|
10
|
+
<div class="w-2/3 p-8 flex flex-col flex-wrap justify-center items-start">
|
|
11
|
+
<h2 class="text-[2.5em] leading-[47px] mb-[23px] text-[#262626] font-semibold not-italic">{title}</h2>
|
|
12
|
+
<div
|
|
13
|
+
class="text-[#363942] font-inter font-normal text-[1.125em] not-italic leading-[28px] flex flex-col gap-4 mb-8"
|
|
14
|
+
set:html={description}
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<div class={`w-1/3 aspect-square flex items-center ${orientation === 'left' ? 'justify-end' : 'justify-start'}`}>
|
|
18
|
+
<div
|
|
19
|
+
class="w-full h-full bg-center bg-cover"
|
|
20
|
+
style={`background-image: url('${image}');`}
|
|
21
|
+
aria-label={title}
|
|
22
|
+
role="img"
|
|
23
|
+
></div>
|
|
24
|
+
</div>
|
|
25
|
+
</article>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
const {
|
|
3
|
+
image,
|
|
4
|
+
pretitle,
|
|
5
|
+
title,
|
|
6
|
+
description,
|
|
7
|
+
orientation = "left",
|
|
8
|
+
buttonText,
|
|
9
|
+
buttonUrl,
|
|
10
|
+
} = Astro.props;
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<div class={`bg-[100%_0] bg-cover h-[570px] w-full ${orientation === "right" ? "rotate-y-180" : ""} `} style={`background-image: url('${image}');`} >
|
|
14
|
+
<div class="w-full lg:w-[70%] h-full transition duration-900 ease-in-out bg-gradient-to-r from-indigo-900 via-blue-600 to-pink-500 hover:from-pink-500 hover:via-blue-600 hover:to-indigo-900 lg:[clip-path:polygon(0_0,100%_0,88%_86%,68%_100%,0_100%)]">
|
|
15
|
+
<div class="flex flex-row w-4/5 center mx-auto pt-20 sm:pt-30">
|
|
16
|
+
<div class={`w-full ${orientation === "right" ? "rotate-y-180" : ""}`}>
|
|
17
|
+
<h1 class="my-3 text-4xl text-white">
|
|
18
|
+
{pretitle}
|
|
19
|
+
</h1>
|
|
20
|
+
<div class="font-bold text-5xl xl:text-6xl text-white mt-3 mb-9">{title}</div>
|
|
21
|
+
<div class="font-bold text-md text-white mt-3 mb-9" set:html={description}>
|
|
22
|
+
</div>
|
|
23
|
+
<div class={`flex ${orientation === "right" ? "flex-row-reverse" : "flex-row"} gap-2 mb-5`}>
|
|
24
|
+
<a href={buttonUrl} class="btn btn-primary-blue btn-lg px-6 py-3 bg-blue-700 transition duration-700 ease-in-out hover:bg-blue-800 text-white rounded-lg shadow">
|
|
25
|
+
{buttonText}
|
|
26
|
+
</a>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
|
|
3
|
+
const {
|
|
4
|
+
title,
|
|
5
|
+
description = "",
|
|
6
|
+
tipo = "",
|
|
7
|
+
flexJustify = "justify-center"
|
|
8
|
+
} = Astro.props;
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<div class={`w-full md:w-3/5 max-w-auto md:w-full flex ${flexJustify === 'justify-center' ? 'justify-center' : 'justify-start'} flex-col px-4`}>
|
|
13
|
+
{
|
|
14
|
+
tipo === "h1" ? <h1 class="font-poppins text-[36px] md:text-[56px] font-normal text-center leading-[44px] md:leading-[64px] px-6 my-4 md:my-[48px]" set:html={title}></h1>
|
|
15
|
+
: tipo === "h2" ? <h2 class="font-poppins text-[40px] font-normal text-center leading-[48px] mb-[0] md:mb-[32px]" set:html={title}></h2>
|
|
16
|
+
: tipo === "h2-mb64" ? <h2 class="font-poppins text-[40px] font-normal text-center leading-[48px] p-6 mb-[0]" set:html={title}></h2>
|
|
17
|
+
: tipo === "h3" ? <h3 class="font-poppins text-[24px] font-semibold text-center leading-[32px] mb-[8px]" set:html={title}></h3>
|
|
18
|
+
: tipo === "h3-mb32" ? <h3 class="font-poppins text-[32px] font-normal text-left leading-[40px] mb-[32px]" set:html={title}></h3>
|
|
19
|
+
: tipo === "h4" ? <h4 class="font-poppins text-center" set:html={title}></h4>
|
|
20
|
+
: tipo === "h5" ? <h5 class="font-poppins text-center" set:html={title}></h5>
|
|
21
|
+
: tipo === "h6" ? <h6 class="font-poppins text-center" set:html={title}></h6>
|
|
22
|
+
: <p>{title}</p>
|
|
23
|
+
}
|
|
24
|
+
{description && description.trim() !== "" && (
|
|
25
|
+
<div class="w-full md:w-2/5 text-[#363942] mx-auto font-inter text-xl font-normal leading-[28px] mb-8 text-center" set:html={description}></div>
|
|
26
|
+
)}
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
const {
|
|
3
|
+
title,
|
|
4
|
+
description,
|
|
5
|
+
iframeSrc,
|
|
6
|
+
} = Astro.props;
|
|
7
|
+
---
|
|
8
|
+
<section class="w-full flex items-center justify-center">
|
|
9
|
+
<article class="w-3/5 flex flex-col items-center justify-center p-12 mb-12">
|
|
10
|
+
<h2 class="text-[#262626] font-poppins font-sans text-[2.625em] not-italic font-semibold leading-[46px] text-center mb-8">
|
|
11
|
+
{title}
|
|
12
|
+
</h2>
|
|
13
|
+
<p class="text-[#363942] font-inter font-sans text-[1.625em] not-italic font-normal leading-[39px] mb-[71px] text-center mb-8">
|
|
14
|
+
{description}
|
|
15
|
+
</p>
|
|
16
|
+
<div class="w-4/5 h-full aspect-video relative">
|
|
17
|
+
<iframe src={iframeSrc} frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media" class="w-full h-full" title={title}></iframe>
|
|
18
|
+
</div>
|
|
19
|
+
</article>
|
|
20
|
+
</section>
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,86 @@
|
|
|
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.ts';
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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.ts';
|
|
3
|
+
import * as CTA_2025_Formentera from '../carbins/CTA_2025_Formentera.ts';
|
|
4
|
+
import * as Cabecera_2025_Barcelona from '../carbins/Cabecera_2025_Barcelona.ts';
|
|
5
|
+
import * as Cabecera_2025_Madrid from '../carbins/Cabecera_2025_Madrid.ts';
|
|
6
|
+
import * as Contenido_2025_Alcorcon from '../carbins/Contenido_2025_Alcorcon.ts';
|
|
7
|
+
import * as Contenido_2025_Granada from '../carbins/Contenido_2025_Granada.ts';
|
|
8
|
+
import * as Contenido_2025_Malaga from '../carbins/Contenido_2025_Malaga.ts';
|
|
9
|
+
import * as CorpFooter from '../carbins/CorpFooter.ts';
|
|
10
|
+
import * as CorpHero from '../carbins/CorpHero.ts';
|
|
11
|
+
import * as FooterCorporativo from '../carbins/FooterCorporativo.ts';
|
|
12
|
+
import * as Footer_2025_Napoles from '../carbins/Footer_2025_Napoles.ts';
|
|
13
|
+
import * as Formulario_2025_Seul from '../carbins/Formulario_2025_Seul.ts';
|
|
14
|
+
import * as GeometricShapeCard from '../carbins/GeometricShapeCard.ts';
|
|
15
|
+
import * as HeaderCorporativo from '../carbins/HeaderCorporativo.ts';
|
|
16
|
+
import * as ImageTextSimple from '../carbins/ImageTextSimple.ts';
|
|
17
|
+
import * as Imagen_2025_Bogota from '../carbins/Imagen_2025_Bogota.ts';
|
|
18
|
+
import * as ReactButton from '../carbins/ReactButton.ts';
|
|
19
|
+
import * as Repetidor_2025_Cabra from '../carbins/Repetidor_2025_Cabra.ts';
|
|
20
|
+
import * as Repetidor_2025_Dubai from '../carbins/Repetidor_2025_Dubai.ts';
|
|
21
|
+
import * as Repetidor_2025_Estocolmo from '../carbins/Repetidor_2025_Estocolmo.ts';
|
|
22
|
+
import * as Repetidor_2025_Menorca from '../carbins/Repetidor_2025_Menorca.ts';
|
|
23
|
+
import * as Repetidor_2025_Michigan from '../carbins/Repetidor_2025_Michigan.ts';
|
|
24
|
+
import * as Repetidor_2025_Orcasitas from '../carbins/Repetidor_2025_Orcasitas.ts';
|
|
25
|
+
import * as Repetidor_2025_Oslo from '../carbins/Repetidor_2025_Oslo.ts';
|
|
26
|
+
import * as Repetidor_2025_Quito from '../carbins/Repetidor_2025_Quito.ts';
|
|
27
|
+
import * as Repetidor_2025_Seatle from '../carbins/Repetidor_2025_Seatle.ts';
|
|
28
|
+
import * as Repetidor_2025_Tokyo from '../carbins/Repetidor_2025_Tokyo.ts';
|
|
29
|
+
import * as Repetidor_2025_Ubeda from '../carbins/Repetidor_2025_Ubeda.ts';
|
|
30
|
+
import * as Repetidor_2025_Yakarta from '../carbins/Repetidor_2025_Yakarta.ts';
|
|
31
|
+
import * as Separador_2025_Reinosa from '../carbins/Separador_2025_Reinosa.ts';
|
|
32
|
+
import * as SpectrumSeparator from '../carbins/SpectrumSeparator.ts';
|
|
33
|
+
import * as TestPadre from '../carbins/TestPadre.ts';
|
|
34
|
+
import * as TextBox from '../carbins/TextBox.ts';
|
|
35
|
+
import * as TextImageBackground from '../carbins/TextImageBackground.ts';
|
|
36
|
+
import * as TextImageBlock from '../carbins/TextImageBlock.ts';
|
|
37
|
+
import * as TextImageCard from '../carbins/TextImageCard.ts';
|
|
38
|
+
import * as TextImageHeader from '../carbins/TextImageHeader.ts';
|
|
39
|
+
import * as Titulo_2025_Algeciras from '../carbins/Titulo_2025_Algeciras.ts';
|
|
40
|
+
import * as Titulo_2025_Santorini from '../carbins/Titulo_2025_Santorini.ts';
|
|
41
|
+
import * as VideoAutoplay from '../carbins/VideoAutoplay.ts';
|
|
42
|
+
import * as VueButton from '../carbins/VueButton.ts';
|
|
43
|
+
|
|
44
|
+
export const components = [
|
|
45
|
+
{component: AstroButton},
|
|
46
|
+
{component: CTA_2025_Formentera},
|
|
47
|
+
{component: Cabecera_2025_Barcelona},
|
|
48
|
+
{component: Cabecera_2025_Madrid},
|
|
49
|
+
{component: Contenido_2025_Alcorcon},
|
|
50
|
+
{component: Contenido_2025_Granada},
|
|
51
|
+
{component: Contenido_2025_Malaga},
|
|
52
|
+
{component: CorpFooter},
|
|
53
|
+
{component: CorpHero},
|
|
54
|
+
{component: FooterCorporativo},
|
|
55
|
+
{component: Footer_2025_Napoles},
|
|
56
|
+
{component: Formulario_2025_Seul},
|
|
57
|
+
{component: GeometricShapeCard},
|
|
58
|
+
{component: HeaderCorporativo},
|
|
59
|
+
{component: ImageTextSimple},
|
|
60
|
+
{component: Imagen_2025_Bogota},
|
|
61
|
+
{component: ReactButton},
|
|
62
|
+
{component: Repetidor_2025_Cabra},
|
|
63
|
+
{component: Repetidor_2025_Dubai},
|
|
64
|
+
{component: Repetidor_2025_Estocolmo},
|
|
65
|
+
{component: Repetidor_2025_Menorca},
|
|
66
|
+
{component: Repetidor_2025_Michigan},
|
|
67
|
+
{component: Repetidor_2025_Orcasitas},
|
|
68
|
+
{component: Repetidor_2025_Oslo},
|
|
69
|
+
{component: Repetidor_2025_Quito},
|
|
70
|
+
{component: Repetidor_2025_Seatle},
|
|
71
|
+
{component: Repetidor_2025_Tokyo},
|
|
72
|
+
{component: Repetidor_2025_Ubeda},
|
|
73
|
+
{component: Repetidor_2025_Yakarta},
|
|
74
|
+
{component: Separador_2025_Reinosa},
|
|
75
|
+
{component: SpectrumSeparator},
|
|
76
|
+
{component: TestPadre},
|
|
77
|
+
{component: TextBox},
|
|
78
|
+
{component: TextImageBackground},
|
|
79
|
+
{component: TextImageBlock},
|
|
80
|
+
{component: TextImageCard},
|
|
81
|
+
{component: TextImageHeader},
|
|
82
|
+
{component: Titulo_2025_Algeciras},
|
|
83
|
+
{component: Titulo_2025_Santorini},
|
|
84
|
+
{component: VideoAutoplay},
|
|
85
|
+
{component: VueButton},
|
|
86
|
+
];
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,113 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
// FICHERO GENERADO AUTOMÁTICAMENTE usando esto: "npm run generate:registry" ==> NO TOCAR ESTO A MANO (o sus crujo) !!.
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// Esta parte importa todos los componentes en las carpetas de componentes
|
|
5
|
+
|
|
6
|
+
import VueButton from './components/Vue/VueButton.vue';
|
|
7
|
+
import Button from './components/Astro/Button.astro';
|
|
8
|
+
import CTA_2025_Formentera from './components/Astro/CTA_2025_Formentera.astro';
|
|
9
|
+
import Cabecera_2025_Barcelona from './components/Astro/Cabecera_2025_Barcelona.astro';
|
|
10
|
+
import Cabecera_2025_Madrid from './components/Astro/Cabecera_2025_Madrid.astro';
|
|
11
|
+
import Contenido_2025_Alcorcon from './components/Astro/Contenido_2025_Alcorcon.astro';
|
|
12
|
+
import Contenido_2025_Granada from './components/Astro/Contenido_2025_Granada.astro';
|
|
13
|
+
import Contenido_2025_Malaga from './components/Astro/Contenido_2025_Malaga.astro';
|
|
14
|
+
import CorpFooter from './components/Astro/CorpFooter.astro';
|
|
15
|
+
import CorpHero from './components/Astro/CorpHero.astro';
|
|
16
|
+
import CorpNavigation from './components/Astro/CorpNavigation.astro';
|
|
17
|
+
import FooterCorporativo from './components/Astro/FooterCorporativo.astro';
|
|
18
|
+
import Footer_2025_Napoles from './components/Astro/Footer_2025_Napoles.astro';
|
|
19
|
+
import Formulario_2025_Seul from './components/Astro/Formulario_2025_Seul.astro';
|
|
20
|
+
import GeometricShape from './components/Astro/GeometricShape.astro';
|
|
21
|
+
import GeometricShapeCard from './components/Astro/GeometricShapeCard.astro';
|
|
22
|
+
import HeaderCorporativo from './components/Astro/HeaderCorporativo.astro';
|
|
23
|
+
import ImageTextSimple from './components/Astro/ImageTextSimple.astro';
|
|
24
|
+
import Imagen_2025_Bogota from './components/Astro/Imagen_2025_Bogota.astro';
|
|
25
|
+
import Repetidor_2025_Cabra from './components/Astro/Repetidor_2025_Cabra.astro';
|
|
26
|
+
import Repetidor_2025_Dubai from './components/Astro/Repetidor_2025_Dubai.astro';
|
|
27
|
+
import Repetidor_2025_Estocolmo from './components/Astro/Repetidor_2025_Estocolmo.astro';
|
|
28
|
+
import Repetidor_2025_Menorca from './components/Astro/Repetidor_2025_Menorca.astro';
|
|
29
|
+
import Repetidor_2025_Michigan from './components/Astro/Repetidor_2025_Michigan.astro';
|
|
30
|
+
import Repetidor_2025_Orcasitas from './components/Astro/Repetidor_2025_Orcasitas.astro';
|
|
31
|
+
import Repetidor_2025_Oslo from './components/Astro/Repetidor_2025_Oslo.astro';
|
|
32
|
+
import Repetidor_2025_Quito from './components/Astro/Repetidor_2025_Quito.astro';
|
|
33
|
+
import Repetidor_2025_Seatle from './components/Astro/Repetidor_2025_Seatle.astro';
|
|
34
|
+
import Repetidor_2025_Tokyo from './components/Astro/Repetidor_2025_Tokyo.astro';
|
|
35
|
+
import Repetidor_2025_Ubeda from './components/Astro/Repetidor_2025_Ubeda.astro';
|
|
36
|
+
import Repetidor_2025_Yakarta from './components/Astro/Repetidor_2025_Yakarta.astro';
|
|
37
|
+
import Separador_2025_Reinosa from './components/Astro/Separador_2025_Reinosa.astro';
|
|
38
|
+
import SpectrumSeparator from './components/Astro/SpectrumSeparator.astro';
|
|
39
|
+
import TestHijo from './components/Astro/TestHijo.astro';
|
|
40
|
+
import TestPadre from './components/Astro/TestPadre.astro';
|
|
41
|
+
import TextBox from './components/Astro/TextBox.astro';
|
|
42
|
+
import TextImageBackground from './components/Astro/TextImageBackground.astro';
|
|
43
|
+
import TextImageBlock from './components/Astro/TextImageBlock.astro';
|
|
44
|
+
import TextImageCard from './components/Astro/TextImageCard.astro';
|
|
45
|
+
import TextImageHeader from './components/Astro/TextImageHeader.astro';
|
|
46
|
+
import Titulo_2025_Algeciras from './components/Astro/Titulo_2025_Algeciras.astro';
|
|
47
|
+
import Titulo_2025_Santorini from './components/Astro/Titulo_2025_Santorini.astro';
|
|
48
|
+
import VideoAutoplay from './components/Astro/VideoAutoplay.astro';
|
|
49
|
+
import ReactButton from './components/React/ReactButton.jsx';
|
|
50
|
+
|
|
51
|
+
// Exporta todos los componentes uno a uno para que puedan ser usados directamente.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
export { VueButton, Button, CTA_2025_Formentera, Cabecera_2025_Barcelona, Cabecera_2025_Madrid, Contenido_2025_Alcorcon, Contenido_2025_Granada, Contenido_2025_Malaga, CorpFooter, CorpHero, CorpNavigation, FooterCorporativo, Footer_2025_Napoles, Formulario_2025_Seul, GeometricShape, GeometricShapeCard, HeaderCorporativo, ImageTextSimple, Imagen_2025_Bogota, Repetidor_2025_Cabra, Repetidor_2025_Dubai, Repetidor_2025_Estocolmo, Repetidor_2025_Menorca, Repetidor_2025_Michigan, Repetidor_2025_Orcasitas, Repetidor_2025_Oslo, Repetidor_2025_Quito, Repetidor_2025_Seatle, Repetidor_2025_Tokyo, Repetidor_2025_Ubeda, Repetidor_2025_Yakarta, Separador_2025_Reinosa, SpectrumSeparator, TestHijo, TestPadre, TextBox, TextImageBackground, TextImageBlock, TextImageCard, TextImageHeader, Titulo_2025_Algeciras, Titulo_2025_Santorini, VideoAutoplay, ReactButton };
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
// Exporta la función listComponents para que sea usado en el Pagebuilder en Vue.
|
|
58
|
+
// Esto está puesto a pelo, si hubiera más funciones habría que automatizarlo en el script
|
|
59
|
+
// que ha generado este fichero: generateRegistry.js
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export { listComponents } from './lib/functions.js';
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// Se crea un objeto de nuevo con todos los componentes, el motivo es para que puedan ser llamados dinámicamente en el PageBuilder
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export const components = {
|
|
69
|
+
VueButton: VueButton,
|
|
70
|
+
Button: Button,
|
|
71
|
+
CTA_2025_Formentera: CTA_2025_Formentera,
|
|
72
|
+
Cabecera_2025_Barcelona: Cabecera_2025_Barcelona,
|
|
73
|
+
Cabecera_2025_Madrid: Cabecera_2025_Madrid,
|
|
74
|
+
Contenido_2025_Alcorcon: Contenido_2025_Alcorcon,
|
|
75
|
+
Contenido_2025_Granada: Contenido_2025_Granada,
|
|
76
|
+
Contenido_2025_Malaga: Contenido_2025_Malaga,
|
|
77
|
+
CorpFooter: CorpFooter,
|
|
78
|
+
CorpHero: CorpHero,
|
|
79
|
+
CorpNavigation: CorpNavigation,
|
|
80
|
+
FooterCorporativo: FooterCorporativo,
|
|
81
|
+
Footer_2025_Napoles: Footer_2025_Napoles,
|
|
82
|
+
Formulario_2025_Seul: Formulario_2025_Seul,
|
|
83
|
+
GeometricShape: GeometricShape,
|
|
84
|
+
GeometricShapeCard: GeometricShapeCard,
|
|
85
|
+
HeaderCorporativo: HeaderCorporativo,
|
|
86
|
+
ImageTextSimple: ImageTextSimple,
|
|
87
|
+
Imagen_2025_Bogota: Imagen_2025_Bogota,
|
|
88
|
+
Repetidor_2025_Cabra: Repetidor_2025_Cabra,
|
|
89
|
+
Repetidor_2025_Dubai: Repetidor_2025_Dubai,
|
|
90
|
+
Repetidor_2025_Estocolmo: Repetidor_2025_Estocolmo,
|
|
91
|
+
Repetidor_2025_Menorca: Repetidor_2025_Menorca,
|
|
92
|
+
Repetidor_2025_Michigan: Repetidor_2025_Michigan,
|
|
93
|
+
Repetidor_2025_Orcasitas: Repetidor_2025_Orcasitas,
|
|
94
|
+
Repetidor_2025_Oslo: Repetidor_2025_Oslo,
|
|
95
|
+
Repetidor_2025_Quito: Repetidor_2025_Quito,
|
|
96
|
+
Repetidor_2025_Seatle: Repetidor_2025_Seatle,
|
|
97
|
+
Repetidor_2025_Tokyo: Repetidor_2025_Tokyo,
|
|
98
|
+
Repetidor_2025_Ubeda: Repetidor_2025_Ubeda,
|
|
99
|
+
Repetidor_2025_Yakarta: Repetidor_2025_Yakarta,
|
|
100
|
+
Separador_2025_Reinosa: Separador_2025_Reinosa,
|
|
101
|
+
SpectrumSeparator: SpectrumSeparator,
|
|
102
|
+
TestHijo: TestHijo,
|
|
103
|
+
TestPadre: TestPadre,
|
|
104
|
+
TextBox: TextBox,
|
|
105
|
+
TextImageBackground: TextImageBackground,
|
|
106
|
+
TextImageBlock: TextImageBlock,
|
|
107
|
+
TextImageCard: TextImageCard,
|
|
108
|
+
TextImageHeader: TextImageHeader,
|
|
109
|
+
Titulo_2025_Algeciras: Titulo_2025_Algeciras,
|
|
110
|
+
Titulo_2025_Santorini: Titulo_2025_Santorini,
|
|
111
|
+
VideoAutoplay: VideoAutoplay,
|
|
112
|
+
ReactButton: ReactButton
|
|
113
|
+
};
|
package/src/interfaces/types.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface ComponentMetadata {
|
|
2
2
|
name: string;
|
|
3
3
|
description: string;
|
|
4
|
+
category: 'Call to Action' | 'Contenido' | 'Separador' | 'Texto' | 'Cabecera' | 'Footer' | 'Imagen' | 'Repetidor' | 'Formulario' | 'Título';
|
|
4
5
|
framework: 'Astro' | 'Vue' | 'React';
|
|
5
6
|
component_name: string,
|
|
6
7
|
priority?: number;
|
|
@@ -13,5 +14,7 @@ export interface ComponentMetadata {
|
|
|
13
14
|
mandatory?: boolean;
|
|
14
15
|
options?: (string | number)[];
|
|
15
16
|
options_labels?: string[];
|
|
17
|
+
example_value?: string | number | boolean;
|
|
16
18
|
}>;
|
|
19
|
+
view?: string;
|
|
17
20
|
}
|
package/src/lib/functions.js
CHANGED
|
File without changes
|