libreria-astro-lefebvre 0.1.3 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libreria-astro-lefebvre",
3
- "version": "0.1.3",
3
+ "version": "0.1.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",
@@ -20,10 +20,10 @@ export const metadata: ComponentMetadata = {
20
20
  {
21
21
  name: 'tipo',
22
22
  type: 'select',
23
- help: 'Controla etiqueta HTML Y tamaño del título (van ligados). Todos los tipos usan Poppins semibold color #262626. "Sin título" NO muestra el título aunque "Texto del título" tenga valor. "H1" → <h1> a 40px / line-height 48px. "H2 32px" → <h2> a 32px / line-height 40px. "H2" → <h2> a 24px / line-height 32px. "H3 24px" → <h3> a 24px / line-height 32px (mismo tamaño visual que "H2" pero etiqueta HTML distinta). "H3" → <h3> a 20px / line-height 28px. "H4" → <h4> a 20px / line-height 28px (mismo tamaño visual que "H3" pero etiqueta HTML distinta)',
23
+ help: 'Controla etiqueta HTML Y tamaño del título (van ligados). Todos los tipos usan Poppins semibold color #262626. "Sin título" NO muestra el título aunque "Texto del título" tenga valor. "H1" → <h1> a 40px / line-height 48px. "H2 32px" → <h2> a 32px / line-height 40px. "H2 32px Normal" → <h2> a 32px / line-height 40px con peso normal. "H2" → <h2> a 24px / line-height 32px. "H3 24px" → <h3> a 24px / line-height 32px (mismo tamaño visual que "H2" pero etiqueta HTML distinta). "H3" → <h3> a 20px / line-height 28px. "H4" → <h4> a 20px / line-height 28px (mismo tamaño visual que "H3" pero etiqueta HTML distinta)',
24
24
  label: 'Etiqueta del título',
25
- options: ['none', 'h1', 'h2-40', 'h2-32', 'h2', 'h3-24', 'h3', 'h4'],
26
- options_labels: ['Sin título', 'H1', 'H2 40px', 'H2 32px', 'H2', 'H3 24px', 'H3', 'H4'],
25
+ options: ['none', 'h1', 'h2-40', 'h2-32', 'h2-32-normal', 'h2', 'h3-24', 'h3', 'h4'],
26
+ options_labels: ['Sin título', 'H1', 'H2 40px', 'H2 32px', 'H2 32px Normal', 'H2', 'H3 24px', 'H3', 'H4'],
27
27
  example_value: 'h2'
28
28
  },
29
29
  {
@@ -14,7 +14,8 @@ const {
14
14
  {title && tipo === "h1" && <h1 class={`font-poppins text-[${color}] text-[40px] font-semibold leading-[48px] mb-4`} set:html={title}></h1>}
15
15
  {title && tipo === "h2-40" && <h2 class={`font-poppins text-[${color}] text-[36px] md:text-[40px] font-normal text-center leading-[48px] my-8`} set:html={title}></h2>}
16
16
  {title && tipo === "h2-32" && <h2 class={`font-poppins text-[${color}] text-[32px] font-semibold leading-10 mb-4`} set:html={title}></h2>}
17
- {title && tipo === "h2" && <h2 class={`font-poppins text-[${color}] text-[24px] font-semibold leading-8 mb-4`} set:html={title}></h2>}
17
+ {title && tipo === "h2-32-normal" && <h2 class={`font-poppins text-[${color}] text-[32px] font-normal leading-10 mb-4`} set:html={title}></h2>}
18
+ {title && tipo === "h2" && <h2 class={`font-poppins text-[${color}] text-[24px] font-normal leading-8 mb-4`} set:html={title}></h2>}
18
19
  {title && tipo === "h3-24" && <h3 class={`font-poppins text-[${color}] text-[24px] font-semibold leading-8 mb-4`} set:html={title}></h3>}
19
20
  {title && tipo === "h3" && <h3 class={`font-poppins text-[${color}] text-[20px] font-semibold leading-7 mb-4`} set:html={title}></h3>}
20
21
  {title && tipo === "h4" && <h4 class={`font-poppins text-[${color}] text-[20px] font-semibold leading-7 mb-4`} set:html={title}></h4>}