@swr-data-lab/components 1.13.4 → 1.13.6

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.
@@ -34,64 +34,70 @@ let { project, charts, baseUrl } = $props();
34
34
  </div>
35
35
  </main>
36
36
 
37
- <style>
38
- main {
39
- display: flex;
40
- justify-content: center;
41
- align-items: center;
42
- flex-flow: column;
43
- font-family: var(--swr-sans);
44
- font-size: var(--fs-small-1);
45
- max-width: 60rem;
46
- margin: 0 auto;
47
- }
48
- .inner {
49
- width: 100%;
50
- border: 1px solid rgb(0, 0, 0);
51
- }
52
- h1 {
53
- font-size: var(--fs-small-1);
54
- width: 100%;
55
- border-bottom: 1px solid black;
56
- padding-bottom: 0.2em;
57
- background-color: rgb(233, 238, 245);
58
- }
59
- table {
60
- border-collapse: collapse;
61
- border-spacing: 0;
62
- width: 100%;
63
- }
64
- a {
65
- display: block;
66
- text-decoration: none;
67
- }
68
- th,
69
- td,
70
- h1 {
71
- padding: 0.2em 0.4em;
72
- text-align: left;
73
- }
74
- th {
75
- border-bottom: 1px solid black;
76
- }
77
- tr {
78
- border-bottom: 1px solid black;
79
- &:last-child {
80
- border-bottom: 0;
81
- }
82
- }
37
+ <style>main {
38
+ display: flex;
39
+ justify-content: center;
40
+ align-items: center;
41
+ flex-flow: column;
42
+ font-family: var(--swr-sans);
43
+ font-size: var(--fs-small-1);
44
+ max-width: 60rem;
45
+ margin: 0 auto;
46
+ }
83
47
 
84
- input {
85
- display: block;
86
- width: 100%;
87
- padding: 0.1em 0.3em;
88
- }
48
+ .inner {
49
+ width: 100%;
50
+ border: 1px solid rgb(0, 0, 0);
51
+ }
89
52
 
90
- a:hover,
91
- a:focus-visible {
92
- text-decoration: underline;
93
- }
94
- a:last-child {
95
- border-bottom: 0;
96
- }
97
- </style>
53
+ h1 {
54
+ font-size: var(--fs-small-1);
55
+ width: 100%;
56
+ border-bottom: 1px solid black;
57
+ padding-bottom: 0.2em;
58
+ background-color: rgb(233, 238, 245);
59
+ }
60
+
61
+ table {
62
+ border-collapse: collapse;
63
+ border-spacing: 0;
64
+ width: 100%;
65
+ }
66
+
67
+ a {
68
+ display: block;
69
+ text-decoration: none;
70
+ }
71
+
72
+ th,
73
+ td,
74
+ h1 {
75
+ padding: 0.2em 0.4em;
76
+ text-align: left;
77
+ }
78
+
79
+ th {
80
+ border-bottom: 1px solid black;
81
+ }
82
+
83
+ tr {
84
+ border-bottom: 1px solid black;
85
+ }
86
+ tr:last-child {
87
+ border-bottom: 0;
88
+ }
89
+
90
+ input {
91
+ display: block;
92
+ width: 100%;
93
+ padding: 0.1em 0.3em;
94
+ }
95
+
96
+ a:hover,
97
+ a:focus-visible {
98
+ text-decoration: underline;
99
+ }
100
+
101
+ a:last-child {
102
+ border-bottom: 0;
103
+ }</style>
@@ -14,6 +14,7 @@ const geocoder = new MaplibreGeocoder(geocoderAPI, {
14
14
  countries: countriesArr.join(','),
15
15
  showResultsWhileTyping: true,
16
16
  showResultMarkers: false,
17
+ debounceSearch: 25,
17
18
  placeholder,
18
19
  limit
19
20
  });
@@ -38,7 +39,7 @@ const geocoder = new MaplibreGeocoder(geocoderAPI, {
38
39
  padding: 0.4em 0.65em;
39
40
  }
40
41
  :global(.maplibregl-ctrl-geocoder--input) {
41
- width: 100%;
42
+ width: calc(100% - 3.7em);
42
43
  height: 100%;
43
44
  font-family: inherit;
44
45
  font-size: inherit;
@@ -117,9 +118,6 @@ const geocoder = new MaplibreGeocoder(geocoderAPI, {
117
118
  display: flex;
118
119
  flex-direction: column;
119
120
  }
120
- :global(.maplibregl-ctrl-geocoder--suggestion-match) {
121
- font-weight: bold;
122
- }
123
121
  :global(.maplibregl-ctrl-geocoder--suggestion-title),
124
122
  :global(.maplibregl-ctrl-geocoder--suggestion-address),
125
123
  :global(.maplibregl-ctrl-geocoder--result-address) {
@@ -6,7 +6,7 @@ interface GeocoderControlProps {
6
6
  */
7
7
  key: string;
8
8
  /**
9
- * Maximum number of suggestions to display
9
+ * Limit the number of returned suggestions
10
10
  */
11
11
  limit?: number;
12
12
  /**
@@ -18,7 +18,7 @@ interface GeocoderControlProps {
18
18
  */
19
19
  languages?: GeocodingLanguage | GeocodingLanguage[];
20
20
  /**
21
- * Overwrite the default input placeholder text
21
+ * Overwrite the default input placeholder
22
22
  */
23
23
  placeholder?: string;
24
24
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swr-data-lab/components",
3
3
  "description": "SWR Data Lab component library",
4
- "version": "1.13.4",
4
+ "version": "1.13.6",
5
5
  "author": "SWR Data Lab",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",