libreria-astro-lefebvre 0.0.5 → 0.0.6

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 (33) hide show
  1. package/package.json +1 -1
  2. package/src/carbins/AstroButton.ts +24 -0
  3. package/src/carbins/CorpFooter.ts +13 -0
  4. package/src/carbins/CorpHero.ts +20 -0
  5. package/src/carbins/FooterCorporativo.ts +13 -0
  6. package/src/carbins/GeometricShapeCard.ts +19 -8
  7. package/src/carbins/HeaderCorporativo.ts +34 -0
  8. package/src/carbins/ImageTextSimple.ts +45 -0
  9. package/src/carbins/ReactButton.ts +24 -0
  10. package/src/carbins/SpectrumSeparator.ts +12 -0
  11. package/src/carbins/TextBox.ts +27 -0
  12. package/src/carbins/TextImageBackground.ts +47 -0
  13. package/src/carbins/TextImageBlock.ts +62 -0
  14. package/src/carbins/TextImageCard.ts +44 -0
  15. package/src/carbins/TextImageHeader.ts +68 -0
  16. package/src/carbins/VideoAutoplay.ts +36 -0
  17. package/src/carbins/VueButton.ts +24 -0
  18. package/src/components/Astro/CorpFooter.astro +107 -0
  19. package/src/components/Astro/CorpHero.astro +21 -0
  20. package/src/components/Astro/CorpNavigation.astro +87 -0
  21. package/src/components/Astro/FooterCorporativo.astro +82 -0
  22. package/src/components/Astro/HeaderCorporativo.astro +26 -0
  23. package/src/components/Astro/ImageTextSimple.astro +56 -0
  24. package/src/components/Astro/SpectrumSeparator.astro +11 -0
  25. package/src/components/Astro/TextBox.astro +11 -0
  26. package/src/components/Astro/TextImageBackground.astro +18 -0
  27. package/src/components/Astro/TextImageBlock.astro +29 -0
  28. package/src/components/Astro/TextImageCard.astro +25 -0
  29. package/src/components/Astro/TextImageHeader.astro +31 -0
  30. package/src/components/Astro/VideoAutoplay.astro +20 -0
  31. package/src/generated/componentRegistry.ts +25 -1
  32. package/src/index.ts +60 -4
  33. package/src/interfaces/types.ts +3 -0
package/src/index.ts CHANGED
@@ -1,5 +1,61 @@
1
- export { default as Button } from './components/Astro/Button.astro';
2
- export { default as GeometricShapeCard } from './components/Astro/GeometricShapeCard.astro';
3
- export { default as Button2 } from './components/React/ReactButton.jsx';
4
- export { default as Button3 } from './components/Vue/VueButton.vue';
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 CorpFooter from './components/Astro/CorpFooter.astro';
9
+ import CorpHero from './components/Astro/CorpHero.astro';
10
+ import CorpNavigation from './components/Astro/CorpNavigation.astro';
11
+ import FooterCorporativo from './components/Astro/FooterCorporativo.astro';
12
+ import GeometricShape from './components/Astro/GeometricShape.astro';
13
+ import GeometricShapeCard from './components/Astro/GeometricShapeCard.astro';
14
+ import HeaderCorporativo from './components/Astro/HeaderCorporativo.astro';
15
+ import ImageTextSimple from './components/Astro/ImageTextSimple.astro';
16
+ import SpectrumSeparator from './components/Astro/SpectrumSeparator.astro';
17
+ import TextBox from './components/Astro/TextBox.astro';
18
+ import TextImageBackground from './components/Astro/TextImageBackground.astro';
19
+ import TextImageBlock from './components/Astro/TextImageBlock.astro';
20
+ import TextImageCard from './components/Astro/TextImageCard.astro';
21
+ import TextImageHeader from './components/Astro/TextImageHeader.astro';
22
+ import VideoAutoplay from './components/Astro/VideoAutoplay.astro';
23
+ import ReactButton from './components/React/ReactButton.jsx';
24
+
25
+ // Exporta todos los componentes uno a uno para que puedan ser usados directamente.
26
+
27
+
28
+ export { VueButton, Button, CorpFooter, CorpHero, CorpNavigation, FooterCorporativo, GeometricShape, GeometricShapeCard, HeaderCorporativo, ImageTextSimple, SpectrumSeparator, TextBox, TextImageBackground, TextImageBlock, TextImageCard, TextImageHeader, VideoAutoplay, ReactButton };
29
+
30
+
31
+ // Exporta la función listComponents para que sea usado en el Pagebuilder en Vue.
32
+ // Esto está puesto a pelo, si hubiera más funciones habría que automatizarlo en el script
33
+ // que ha generado este fichero: generateRegistry.js
34
+
35
+
5
36
  export { listComponents } from './lib/functions.js';
37
+
38
+
39
+ // Se crea un objeto de nuevo con todos los componentes, el motivo es para que puedan ser llamados dinámicamente en el PageBuilder
40
+
41
+
42
+ export const components = {
43
+ VueButton: VueButton,
44
+ Button: Button,
45
+ CorpFooter: CorpFooter,
46
+ CorpHero: CorpHero,
47
+ CorpNavigation: CorpNavigation,
48
+ FooterCorporativo: FooterCorporativo,
49
+ GeometricShape: GeometricShape,
50
+ GeometricShapeCard: GeometricShapeCard,
51
+ HeaderCorporativo: HeaderCorporativo,
52
+ ImageTextSimple: ImageTextSimple,
53
+ SpectrumSeparator: SpectrumSeparator,
54
+ TextBox: TextBox,
55
+ TextImageBackground: TextImageBackground,
56
+ TextImageBlock: TextImageBlock,
57
+ TextImageCard: TextImageCard,
58
+ TextImageHeader: TextImageHeader,
59
+ VideoAutoplay: VideoAutoplay,
60
+ ReactButton: ReactButton
61
+ };
@@ -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';
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
  }