libreria-astro-lefebvre 0.2.32 → 0.2.34

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.2.32",
3
+ "version": "0.2.34",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
@@ -100,7 +100,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
100
100
  ---
101
101
 
102
102
  <header class="sticky top-0 w-full font-body bg-[rgba(250,250,245,0.80)] backdrop-blur-lg z-50 flex flex-col justify-center align-center items-center p-0">
103
- <div class="px-4 md:px-8 py-3 md:py-1 w-full">
103
+ <div class="px-4 [@media(min-width:992px)]:px-8 py-3 [@media(min-width:992px)]:py-1 w-full">
104
104
 
105
105
  <div class="max-w-[1376px] flex items-center justify-between gap-2 mx-auto">
106
106
  <div class="flex items-center gap-3 min-w-0">
@@ -108,17 +108,17 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
108
108
  <img src="https://assets.lefebvre.es/media/logos-2/svg/lefebvre.svg" class="h-7 w-auto" alt="Lefebvre" width="104" height="28" loading={loading}>
109
109
  </a>
110
110
  {firstItem && (
111
- <a href={firstItem.link} target={firstItem.target ?? '_self'} class={`${firstItemClass} min-w-0 truncate md:hidden`}>{firstItem.name}</a>
111
+ <a href={firstItem.link} target={firstItem.target ?? '_self'} class={`${firstItemClass} min-w-0 truncate [@media(min-width:992px)]:hidden`}>{firstItem.name}</a>
112
112
  )}
113
113
  </div>
114
- <div class="flex items-center gap-2 shrink-0 lg:hidden">
114
+ <div class="flex items-center gap-2 shrink-0 [@media(min-width:992px)]:hidden">
115
115
  {label && (
116
116
  <div class="flex items-center gap-4">
117
117
  <a href={url} class={ctaClass}>{label}</a>
118
118
  </div>
119
119
  )}
120
120
  <button onclick="document.getElementById('navbar-default').classList.toggle('hidden'); event.target.classList.toggle('bg-[#fafaf5]');"
121
- type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-[#6d5e52] rounded-lg md:hidden hover:bg-[#ebe7da]
121
+ type="button" class="font-body inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-[#6d5e52] rounded-lg hover:bg-[#ebe7da]
122
122
  focus:outline-none focus:ring-2 focus:ring-[#e1c8b4] dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
123
123
  aria-controls="navbar-default" aria-expanded="false">
124
124
  <span class="sr-only pointer-events-none">Abrir menú</span>
@@ -131,7 +131,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
131
131
 
132
132
  </div>
133
133
  </div>
134
- <nav class="hidden md:block w-full px-8">
134
+ <nav class="hidden [@media(min-width:992px)]:block w-full px-8">
135
135
  <div class="max-w-[1376px] flex items-center gap-6 mx-auto">
136
136
  <ul class="flex items-center justify-start">
137
137
  {categories.map((category, index) => {
@@ -176,17 +176,17 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
176
176
  )})}
177
177
  </ul>
178
178
  {label && (
179
- <div class="ml-auto hidden lg:flex items-center">
179
+ <div class="ml-auto flex items-center">
180
180
  <a href={url} class={ctaClass}>{label}</a>
181
181
  </div>
182
182
  )}
183
183
  </div>
184
184
  </nav>
185
185
 
186
- <nav class="hidden w-full bg-white border-[#e1c8b4]" id="navbar-default">
186
+ <nav class="hidden [@media(min-width:992px)]:hidden w-full bg-white border-[#e1c8b4]" id="navbar-default">
187
187
  <div class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto">
188
188
 
189
- <div class="w-full md:flex md:w-auto">
189
+ <div class="w-full">
190
190
  <ul>
191
191
  {categories.map((category, index) => {
192
192
  const isActive = currentPath.includes(category.link) ||
@@ -218,7 +218,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
218
218
  {hasSub && (
219
219
  <ul
220
220
  id={submenuId}
221
- class={`${identifier}-submenu absolute left-0 top-full bg-white border border-[#e1c8b4] hidden z-10 w-full md:w-auto min-w-[230px]`}
221
+ class={`${identifier}-submenu absolute left-0 top-full bg-white border border-[#e1c8b4] hidden z-10 w-full min-w-[230px]`}
222
222
  >
223
223
  {category.subcategories?.map(sub => (
224
224
  <li class="hover:text-[#d71635] hover:font-semibold">