@r2digisolutions/components 0.24.8 → 0.24.10
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.
|
@@ -260,6 +260,12 @@
|
|
|
260
260
|
onselect?.(item);
|
|
261
261
|
const row = listEl?.querySelector(`[data-map-item="${item.id}"]`);
|
|
262
262
|
row?.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
|
|
263
|
+
|
|
264
|
+
if (map && Number.isFinite(item.lat) && Number.isFinite(item.lng) && item.lat !== 0 && item.lng !== 0) {
|
|
265
|
+
skipNextMove = true;
|
|
266
|
+
const targetZoom = Math.max(map.getZoom(), 13);
|
|
267
|
+
map.flyTo([item.lat, item.lng], targetZoom, { duration: 0.8 });
|
|
268
|
+
}
|
|
263
269
|
}
|
|
264
270
|
|
|
265
271
|
function closeDetail() {
|
|
@@ -174,10 +174,10 @@
|
|
|
174
174
|
aria-label="{copy.trigger}{unreadCount > 0 ? withCount(copy.unreadSuffix, unreadCount) : ''}"
|
|
175
175
|
aria-expanded={open}
|
|
176
176
|
aria-controls={popoverId}
|
|
177
|
-
class="relative flex h-
|
|
177
|
+
class="relative inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-xl border border-border bg-surface-elevated text-primary shadow-sm transition-all duration-200 hover:border-border-strong hover:bg-surface-overlay focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2"
|
|
178
178
|
>
|
|
179
179
|
<svg
|
|
180
|
-
class="h-
|
|
180
|
+
class="h-4 w-4"
|
|
181
181
|
viewBox="0 0 24 24"
|
|
182
182
|
fill="none"
|
|
183
183
|
stroke="currentColor"
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
</svg>
|
|
193
193
|
{#if unreadCount > 0}
|
|
194
194
|
<span
|
|
195
|
-
class="absolute -
|
|
195
|
+
class="pointer-events-none absolute -top-1 -right-1 flex min-w-5 items-center justify-center rounded-full bg-brand-500 px-1 py-0.5 text-[10px] font-bold leading-none text-white shadow-sm"
|
|
196
196
|
>
|
|
197
197
|
{unreadCount > 9 ? '9+' : unreadCount}
|
|
198
198
|
</span>
|
package/dist/styles.css
CHANGED
|
@@ -256,6 +256,15 @@
|
|
|
256
256
|
.bg-surface-overlay {
|
|
257
257
|
background-color: var(--surface-overlay);
|
|
258
258
|
}
|
|
259
|
+
.border-surface {
|
|
260
|
+
border-color: var(--surface);
|
|
261
|
+
}
|
|
262
|
+
.border-surface-elevated {
|
|
263
|
+
border-color: var(--surface-elevated);
|
|
264
|
+
}
|
|
265
|
+
.border-surface-overlay {
|
|
266
|
+
border-color: var(--surface-overlay);
|
|
267
|
+
}
|
|
259
268
|
.border-border {
|
|
260
269
|
border-color: var(--border);
|
|
261
270
|
}
|