@sjvair/monitor-map 3.2.0 → 3.2.1

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.
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { onDestroy } from "svelte";
3
3
  import { Marker } from "@maptiler/sdk";
4
- import { SearchIcon } from "@lucide/svelte";
4
+ import { MapPinIcon, SearchIcon } from "@lucide/svelte";
5
5
  import { useMonitorMapRouter } from "../router-context";
6
6
  import { mapManager } from "../map/map.svelte";
7
7
  import { debounce } from "../utils";
@@ -169,9 +169,9 @@
169
169
  {@const comma = result.feature.place_name.indexOf(",")}
170
170
  <button
171
171
  onclick={() => selectGeocode(result)}
172
- class="flex h-12 w-full items-center bg-white px-4 text-left hover:brightness-95"
172
+ class="flex h-12 w-full items-center gap-3 bg-white px-4 text-left hover:brightness-95"
173
173
  >
174
- <span class="svg-icon location-on bg-brand mr-3 h-6 w-6 shrink-0"></span>
174
+ <MapPinIcon class="text-brand h-6 w-6 shrink-0" />
175
175
  <div class="min-w-0">
176
176
  <p class="truncate text-sm font-medium">
177
177
  {result.feature.place_name.substring(0, comma < 0 ? undefined : comma)}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sjvair/monitor-map",
3
3
  "description": "SJVAir's interactive monitor map",
4
- "version": "3.2.0",
4
+ "version": "3.2.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SJVAir/monitor-map"
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { onDestroy } from "svelte";
3
3
  import { Marker } from "@maptiler/sdk";
4
- import { SearchIcon } from "@lucide/svelte";
4
+ import { MapPinIcon, SearchIcon } from "@lucide/svelte";
5
5
  import { useMonitorMapRouter } from "../router-context";
6
6
  import { mapManager } from "$lib/map/map.svelte";
7
7
  import { debounce } from "$lib/utils";
@@ -169,9 +169,9 @@
169
169
  {@const comma = result.feature.place_name.indexOf(",")}
170
170
  <button
171
171
  onclick={() => selectGeocode(result)}
172
- class="flex h-12 w-full items-center bg-white px-4 text-left hover:brightness-95"
172
+ class="flex h-12 w-full items-center gap-3 bg-white px-4 text-left hover:brightness-95"
173
173
  >
174
- <span class="svg-icon location-on bg-brand mr-3 h-6 w-6 shrink-0"></span>
174
+ <MapPinIcon class="text-brand h-6 w-6 shrink-0" />
175
175
  <div class="min-w-0">
176
176
  <p class="truncate text-sm font-medium">
177
177
  {result.feature.place_name.substring(0, comma < 0 ? undefined : comma)}