@swr-data-lab/components 1.13.11 → 1.13.12

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.
@@ -72,20 +72,146 @@ $effect(() => {
72
72
  {/if}
73
73
  </div>
74
74
 
75
- <style>
76
- .container {
77
- width: 100%;
78
- height: 100%;
79
- }
75
+ <style>.container {
76
+ width: 100%;
77
+ height: 100%;
78
+ }
79
+
80
+ .debug {
81
+ position: absolute;
82
+ top: 0;
83
+ right: 0;
84
+ background: rgba(0, 0, 0, 0.9);
85
+ color: white;
86
+ z-index: 1000;
87
+ padding: 2px;
88
+ font-family: monospace;
89
+ }
80
90
 
81
- .debug {
82
- position: absolute;
83
- top: 0;
84
- right: 0;
85
- background: rgba(0, 0, 0, 0.9);
86
- color: white;
87
- z-index: 1000;
88
- padding: 2px;
89
- font-family: monospace;
90
- }
91
- </style>
91
+ :global(.maplibregl-map) {
92
+ overflow: hidden;
93
+ position: relative;
94
+ }
95
+ :global(.maplibregl-canvas) {
96
+ left: 0;
97
+ position: absolute;
98
+ top: 0;
99
+ }
100
+ :global(.maplibregl-map:fullscreen) {
101
+ height: 100%;
102
+ width: 100%;
103
+ }
104
+ :global(.maplibregl-canvas-container.maplibregl-interactive) {
105
+ cursor: grab;
106
+ user-select: none;
107
+ }
108
+ :global(.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer) {
109
+ cursor: pointer;
110
+ }
111
+ :global(.maplibregl-canvas-container.maplibregl-interactive:active) {
112
+ cursor: grabbing;
113
+ }
114
+ :global(.maplibregl-canvas-container.maplibregl-touch-zoom-rotate),
115
+ :global(.maplibregl-canvas-container.maplibregl-touch-zoom-rotate) :global(.maplibregl-canvas) {
116
+ touch-action: pan-x pan-y;
117
+ }
118
+ :global(.maplibregl-canvas-container.maplibregl-touch-drag-pan),
119
+ :global(.maplibregl-canvas-container.maplibregl-touch-drag-pan) :global(.maplibregl-canvas) {
120
+ touch-action: pinch-zoom;
121
+ }
122
+ :global(.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan),
123
+ :global(.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan) :global(.maplibregl-canvas) {
124
+ touch-action: none;
125
+ }
126
+ :global(.maplibregl-ctrl-bottom-left),
127
+ :global(.maplibregl-ctrl-bottom-right),
128
+ :global(.maplibregl-ctrl-top-left),
129
+ :global(.maplibregl-ctrl-top-right) {
130
+ position: absolute;
131
+ z-index: 2;
132
+ display: flex;
133
+ flex-flow: column;
134
+ gap: 0.75em;
135
+ align-items: flex-start;
136
+ }
137
+ :global(.maplibregl-ctrl-top-left) {
138
+ left: 0.5em;
139
+ top: 0.5em;
140
+ }
141
+ :global(.maplibregl-ctrl-top-right) {
142
+ right: 0;
143
+ top: 0;
144
+ }
145
+ :global(.maplibregl-ctrl-bottom-left) {
146
+ bottom: 0.5em;
147
+ left: 0.5em;
148
+ }
149
+ :global(.maplibregl-ctrl-bottom-right) {
150
+ bottom: 0.5em;
151
+ right: 0.5em;
152
+ }
153
+ :global(.maplibregl-ctrl) {
154
+ pointer-events: auto;
155
+ transform: translate(0);
156
+ }
157
+ :global(.maplibregl-ctrl-group) {
158
+ background: white;
159
+ border: 1px solid rgba(0, 0, 0, 0.75);
160
+ box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.075);
161
+ border-radius: var(--br-small);
162
+ overflow: hidden;
163
+ }
164
+ :global(.maplibregl-ctrl-group) :global(button) {
165
+ background-color: transparent;
166
+ border: 0;
167
+ box-sizing: border-box;
168
+ cursor: pointer;
169
+ display: block;
170
+ height: 29px;
171
+ outline: none;
172
+ padding: 0;
173
+ width: 29px;
174
+ }
175
+ :global(.maplibregl-ctrl-group) :global(button) + :global(button) {
176
+ border-top: 1px solid rgba(0, 0, 0, 0.35);
177
+ }
178
+ :global(.maplibregl-ctrl) :global(button) :global(.maplibregl-ctrl-icon) {
179
+ background-position: 50%;
180
+ background-repeat: no-repeat;
181
+ display: block;
182
+ height: 100%;
183
+ width: 100%;
184
+ }
185
+ :global(.maplibregl-ctrl) :global(button:disabled) {
186
+ cursor: not-allowed;
187
+ }
188
+ :global(.maplibregl-ctrl) :global(button:disabled) :global(.maplibregl-ctrl-icon) {
189
+ opacity: 0.5;
190
+ }
191
+ :global(.maplibregl-ctrl) :global(button:not(:disabled):hover) {
192
+ background-color: var(--gray-light-5);
193
+ }
194
+ :global(.maplibregl-ctrl-group) :global(button:focus:focus-visible) {
195
+ box-shadow: 0 0 2px 2px #0096ff;
196
+ }
197
+ :global(.maplibregl-ctrl-group) :global(button:focus:not(:focus-visible)) {
198
+ box-shadow: none;
199
+ }
200
+ :global(.maplibregl-ctrl-group) :global(button:focus:first-child) {
201
+ border-radius: 4px 4px 0 0;
202
+ }
203
+ :global(.maplibregl-ctrl-group) :global(button:focus:last-child) {
204
+ border-radius: 0 0 4px 4px;
205
+ }
206
+ :global(.maplibregl-ctrl-group) :global(button:focus:only-child) {
207
+ border-radius: inherit;
208
+ }
209
+ :global(.maplibregl-marker) {
210
+ left: 0;
211
+ top: 0;
212
+ position: absolute;
213
+ will-change: transform;
214
+ }
215
+ :global(.maplibregl-marker) :global(path) {
216
+ fill: var(--violet-dark-5);
217
+ }</style>
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.11",
4
+ "version": "1.13.12",
5
5
  "author": "SWR Data Lab",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",