@maptiler/geocoding-control 0.0.88 → 0.0.89

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/style.css CHANGED
@@ -1 +1 @@
1
- div.svelte-7cmwmc{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;display:flex;align-items:center}svg.svelte-7cmwmc{animation:svelte-7cmwmc-rotate .8s infinite cubic-bezier(.45,.05,.55,.95)}@keyframes svelte-7cmwmc-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}svg.svelte-en2qvf{display:block;fill:var(--color-icon-button)}form.svelte-p509gh.svelte-p509gh.svelte-p509gh{font-family:Open Sans,Ubuntu,Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;background-color:#fff;z-index:10;border-radius:4px;transition:max-width .25s;--color-text:#444952;--color-icon-button:#444952}form.svelte-p509gh.svelte-p509gh.svelte-p509gh,form.svelte-p509gh .svelte-p509gh.svelte-p509gh,form.svelte-p509gh .svelte-p509gh.svelte-p509gh:after,form.svelte-p509gh .svelte-p509gh.svelte-p509gh:before{box-sizing:border-box}form.can-collapse.svelte-p509gh.svelte-p509gh.svelte-p509gh{max-width:30px}form.can-collapse.svelte-p509gh .input-group.svelte-p509gh.svelte-p509gh{padding-inline:5px;transition:padding-inline .25s}form.can-collapse.svelte-p509gh:focus-within .input-group.svelte-p509gh.svelte-p509gh,form.can-collapse.svelte-p509gh:hover .input-group.svelte-p509gh.svelte-p509gh{padding-inline:8px}form.svelte-p509gh.svelte-p509gh.svelte-p509gh,form.svelte-p509gh.svelte-p509gh.svelte-p509gh:focus-within,form.svelte-p509gh.svelte-p509gh.svelte-p509gh:hover{width:240px;max-width:240px}input.svelte-p509gh.svelte-p509gh.svelte-p509gh{font:inherit;font-size:14px;width:100%;min-height:28px;border:0;background-color:transparent;margin:0;color:#444952;white-space:nowrap;overflow:hidden;padding:0}input.svelte-p509gh.svelte-p509gh.svelte-p509gh:focus{color:#444952;outline:0;outline:none;box-shadow:none}ul.svelte-p509gh.svelte-p509gh.svelte-p509gh,div.error.svelte-p509gh.svelte-p509gh.svelte-p509gh,div.no-results.svelte-p509gh.svelte-p509gh.svelte-p509gh{background-color:#fff;border-radius:4px;left:0;list-style:none;margin:0;padding:0;position:absolute;width:100%;top:calc(100% + 6px);font-size:14px;box-shadow:0 2px 8px #33335926;line-height:16px;overflow:hidden}.maplibregl-ctrl-bottom-left ul.svelte-p509gh.svelte-p509gh.svelte-p509gh,.maplibregl-ctrl-bottom-right ul.svelte-p509gh.svelte-p509gh.svelte-p509gh{top:auto;bottom:100%}li.svelte-p509gh.svelte-p509gh.svelte-p509gh{text-align:left;cursor:default;display:grid;grid-template-columns:1fr;color:var(--color-text);padding:8px 0;font-size:14px;line-height:18px}li.svelte-p509gh.svelte-p509gh.svelte-p509gh:first-child{padding-top:10px}li.svelte-p509gh.svelte-p509gh.svelte-p509gh:last-child{padding-bottom:10px}li.selected.svelte-p509gh.svelte-p509gh.svelte-p509gh{background-color:#f3f6ff}li.selected.svelte-p509gh .texts.svelte-p509gh>.svelte-p509gh{animation:svelte-p509gh-backAndForth 5s linear infinite}li.selected.svelte-p509gh .primary.svelte-p509gh.svelte-p509gh{color:#2b8bfb}.texts.svelte-p509gh.svelte-p509gh.svelte-p509gh{padding:0 17px}.texts.svelte-p509gh>.svelte-p509gh.svelte-p509gh{white-space:nowrap;display:block;min-width:fit-content}.primary.svelte-p509gh.svelte-p509gh.svelte-p509gh{font-weight:600}.secondary.svelte-p509gh.svelte-p509gh.svelte-p509gh{color:#aeb6c7;padding-left:4px}.line2.svelte-p509gh.svelte-p509gh.svelte-p509gh{color:#aeb6c7}button.svelte-p509gh.svelte-p509gh.svelte-p509gh{padding:0;margin:0;border:0;background-color:transparent;width:auto}button.svelte-p509gh.svelte-p509gh.svelte-p509gh:hover{background-color:transparent}button.svelte-p509gh:hover svg,button.active.svelte-p509gh svg{fill:#2b8bfb}.input-group.svelte-p509gh.svelte-p509gh.svelte-p509gh{display:flex;align-items:stretch;gap:7px;padding-inline:8px;border-radius:4px;overflow:hidden}.input-group.svelte-p509gh.svelte-p509gh.svelte-p509gh:focus-within{outline:#2b8bfb solid 2px}.clear-button-container.displayable.svelte-p509gh.svelte-p509gh.svelte-p509gh{display:flex}div.error.svelte-p509gh.svelte-p509gh.svelte-p509gh,div.no-results.svelte-p509gh.svelte-p509gh.svelte-p509gh{font:inherit;font-size:14px;padding:6px 10px}div.error.svelte-p509gh.svelte-p509gh.svelte-p509gh{color:#e25041}div.no-results.svelte-p509gh.svelte-p509gh.svelte-p509gh{color:var(--color-text)}.clear-button-container.svelte-p509gh.svelte-p509gh.svelte-p509gh{display:none;position:relative;align-items:stretch}@keyframes svelte-p509gh-backAndForth{0%{transform:translate(0)}10%{transform:translate(0)}45%{transform:translate(calc(-100% + 206px))}55%{transform:translate(calc(-100% + 206px))}90%{transform:translate(0)}to{transform:translate(0)}}.maplibregl-ctrl-geocoder{position:relative;z-index:3}.maptiler-ctrl .input-group.svelte-p509gh.svelte-p509gh.svelte-p509gh:focus-within{outline:#2b8bfb solid 1.5px}.maptiler-ctrl form.can-collapse.svelte-p509gh.svelte-p509gh.svelte-p509gh{max-width:34px}.maptiler-ctrl form.can-collapse.svelte-p509gh .input-group.svelte-p509gh.svelte-p509gh{padding-inline:7px}.maptiler-ctrl form.svelte-p509gh.svelte-p509gh.svelte-p509gh,.maptiler-ctrl form.svelte-p509gh.svelte-p509gh.svelte-p509gh:focus-within,.maptiler-ctrl form.svelte-p509gh.svelte-p509gh.svelte-p509gh:hover{width:240px;max-width:240px}svg.svelte-1k1cmht.svelte-1k1cmht{display:block;fill:#6b7c93;stroke:#6b7c93}.list-icon.svelte-1k1cmht.svelte-1k1cmht{grid-row:1/3;align-self:center;margin:8px}.in-map.svelte-1k1cmht.svelte-1k1cmht{height:30px}.maplibregl-canvas-container .marker-selected{z-index:1}.maplibregl-canvas-container svg.svelte-1k1cmht path.svelte-1k1cmht,.leaflet-map-pane svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#3170fe;stroke:#3170fe}.marker-selected svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#98b7ff;stroke:#3170fe}.marker-reverse svg.svelte-1k1cmht path.svelte-1k1cmht{fill:silver;stroke:gray}.marker-interactive{cursor:pointer!important}.marker-fuzzy svg.svelte-1k1cmht path.svelte-1k1cmht{fill:silver;stroke:gray}.marker-fuzzy.marker-selected svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#ddd;stroke:silver}.maptiler-gc-popup>.maplibregl-popup-content{padding:2px 8px}
1
+ svg.svelte-d2loi5{display:block;fill:#e15042}li.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4{text-align:left;cursor:default;display:grid;grid-template-columns:1fr;color:var(--color-text);padding:8px 0;font-size:14px;line-height:18px}li.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4:first-child{padding-top:10px}li.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4:last-child{padding-bottom:10px}li.selected.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4{background-color:#f3f6ff}li.selected.svelte-ewziy4 .texts.svelte-ewziy4>.svelte-ewziy4{animation:svelte-ewziy4-backAndForth 5s linear infinite}li.selected.svelte-ewziy4 .primary.svelte-ewziy4.svelte-ewziy4{color:#2b8bfb}.texts.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4{padding:0 17px}.texts.svelte-ewziy4>.svelte-ewziy4.svelte-ewziy4{white-space:nowrap;display:block;min-width:fit-content}.primary.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4{font-weight:600}.secondary.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4{color:#aeb6c7;padding-left:4px}.line2.svelte-ewziy4.svelte-ewziy4.svelte-ewziy4{color:#aeb6c7}@keyframes svelte-ewziy4-backAndForth{0%{transform:translate(0)}10%{transform:translate(0)}45%{transform:translate(calc(-100% + 236px))}55%{transform:translate(calc(-100% + 236px))}90%{transform:translate(0)}to{transform:translate(0)}}div.svelte-7cmwmc{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;display:flex;align-items:center}svg.svelte-7cmwmc{animation:svelte-7cmwmc-rotate .8s infinite cubic-bezier(.45,.05,.55,.95)}@keyframes svelte-7cmwmc-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}svg.svelte-en2qvf{display:block;fill:var(--color-icon-button)}form.svelte-1r7dvt7.svelte-1r7dvt7{font-family:Open Sans,Ubuntu,Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;background-color:#fff;z-index:10;border-radius:4px;transition:max-width .25s;box-shadow:0 2px 5px #33335926;--color-text:#444952;--color-icon-button:#444952}form.svelte-1r7dvt7.svelte-1r7dvt7,form.svelte-1r7dvt7 .svelte-1r7dvt7,form.svelte-1r7dvt7 .svelte-1r7dvt7:after,form.svelte-1r7dvt7 .svelte-1r7dvt7:before{box-sizing:border-box}form.can-collapse.svelte-1r7dvt7.svelte-1r7dvt7{max-width:29px}form.svelte-1r7dvt7.svelte-1r7dvt7,form.svelte-1r7dvt7.svelte-1r7dvt7:focus-within,form.svelte-1r7dvt7.svelte-1r7dvt7:hover{width:270px;max-width:270px}input.svelte-1r7dvt7.svelte-1r7dvt7{font:inherit;font-size:14px;flex-grow:1;min-height:29px;background-color:transparent;color:#444952;white-space:nowrap;overflow:hidden;border:0;margin:0;padding:0}input.svelte-1r7dvt7.svelte-1r7dvt7:focus{color:#444952;outline:0;outline:none;box-shadow:none}ul.svelte-1r7dvt7.svelte-1r7dvt7,div.error.svelte-1r7dvt7.svelte-1r7dvt7,div.no-results.svelte-1r7dvt7.svelte-1r7dvt7{background-color:#fff;border-radius:4px;left:0;list-style:none;margin:0;padding:0;position:absolute;width:100%;top:calc(100% + 6px);overflow:hidden}ul.svelte-1r7dvt7.svelte-1r7dvt7{font-size:14px;line-height:16px;box-shadow:0 5px 10px #33335926}div.error.svelte-1r7dvt7.svelte-1r7dvt7,div.no-results.svelte-1r7dvt7.svelte-1r7dvt7{font:inherit;line-height:18px;font-size:12px;display:flex;gap:16px}div.error.svelte-1r7dvt7.svelte-1r7dvt7{padding:16px;font-weight:600;color:#e25041;background-color:#fbeae8}div.error.svelte-1r7dvt7 div.svelte-1r7dvt7{flex-grow:1}div.error.svelte-1r7dvt7 svg{flex-shrink:0;width:20px;height:20px}div.error.svelte-1r7dvt7 button.svelte-1r7dvt7{flex-shrink:0}div.error.svelte-1r7dvt7 button.svelte-1r7dvt7>svg{width:13px;fill:#e25041}div.error.svelte-1r7dvt7 button.svelte-1r7dvt7:hover svg,div.error.svelte-1r7dvt7 button.svelte-1r7dvt7:active svg{fill:#444952}div.no-results.svelte-1r7dvt7.svelte-1r7dvt7{padding:14px 24px 14px 16px;font-weight:400;color:#6b7c93;box-shadow:0 5px 10px #33335926}div.no-results.svelte-1r7dvt7 svg{margin-top:4px;flex-shrink:0;width:20px;height:20px;width:30px;height:30px}.maplibregl-ctrl-bottom-left ul.svelte-1r7dvt7.svelte-1r7dvt7,.maplibregl-ctrl-bottom-right ul.svelte-1r7dvt7.svelte-1r7dvt7{top:auto;bottom:100%}button.svelte-1r7dvt7.svelte-1r7dvt7{padding:0;margin:0;border:0;background-color:transparent;height:auto;width:auto}button.svelte-1r7dvt7.svelte-1r7dvt7:hover{background-color:transparent}button.svelte-1r7dvt7:hover svg,button.svelte-1r7dvt7:active svg{fill:#2b8bfb}.input-group.svelte-1r7dvt7.svelte-1r7dvt7{display:flex;align-items:stretch;gap:7px;padding-inline:8px;border-radius:4px;overflow:hidden}.input-group.svelte-1r7dvt7.svelte-1r7dvt7:focus-within{outline:#2b8bfb solid 2px}.search-button.svelte-1r7dvt7.svelte-1r7dvt7{flex-shrink:0}.clear-button-container.svelte-1r7dvt7.svelte-1r7dvt7{display:flex;display:none;position:relative;align-items:stretch}.clear-button-container.displayable.svelte-1r7dvt7.svelte-1r7dvt7{display:flex;flex-shrink:0}.maplibregl-ctrl-geocoder{position:relative;z-index:3}.maptiler-ctrl:not(:empty){box-shadow:none}.maptiler-ctrl .input-group.svelte-1r7dvt7.svelte-1r7dvt7{padding-inline:8px;border:white solid 2px}.maptiler-ctrl .input-group.svelte-1r7dvt7.svelte-1r7dvt7:focus-within{border:#2b8bfb solid 2px;outline:0;outline:none}.maptiler-ctrl form.can-collapse.svelte-1r7dvt7.svelte-1r7dvt7{max-width:34px}.maptiler-ctrl form.svelte-1r7dvt7.svelte-1r7dvt7,.maptiler-ctrl form.svelte-1r7dvt7.svelte-1r7dvt7:focus-within,.maptiler-ctrl form.svelte-1r7dvt7.svelte-1r7dvt7:hover{width:270px;max-width:270px}svg.svelte-1k1cmht.svelte-1k1cmht{display:block;fill:#6b7c93;stroke:#6b7c93}.list-icon.svelte-1k1cmht.svelte-1k1cmht{grid-row:1/3;align-self:center;margin:8px}.in-map.svelte-1k1cmht.svelte-1k1cmht{height:30px}.maplibregl-canvas-container .marker-selected{z-index:1}.maplibregl-canvas-container svg.svelte-1k1cmht path.svelte-1k1cmht,.leaflet-map-pane svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#3170fe;stroke:#3170fe}.marker-selected svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#98b7ff;stroke:#3170fe}.marker-reverse svg.svelte-1k1cmht path.svelte-1k1cmht{fill:silver;stroke:gray}.marker-interactive{cursor:pointer!important}.marker-fuzzy svg.svelte-1k1cmht path.svelte-1k1cmht{fill:silver;stroke:gray}.marker-fuzzy.marker-selected svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#ddd;stroke:silver}.maptiler-gc-popup>.maplibregl-popup-content{padding:2px 8px}
package/types.d.ts CHANGED
@@ -65,13 +65,13 @@ export type ControlOptions = {
65
65
  /**
66
66
  * Override the default error message.
67
67
  *
68
- * @default "Searching failed"
68
+ * @default "Something went wrong…"
69
69
  */
70
70
  errorMessage?: string;
71
71
  /**
72
72
  * Override the default message if no results are found.
73
73
  *
74
- * @default "No results found"
74
+ * @default "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"
75
75
  */
76
76
  noResultsMessage?: string;
77
77
  /**