ublo-lib 1.14.2 → 1.14.3
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/es/common/components/editable-map/editable-map.js +2 -0
- package/es/common/components/editable-map/editable-map.module.css +48 -3
- package/es/common/components/editable-map/full-screen-button.js +2 -1
- package/es/common/components/editable-map/full-screen-button.module.css +8 -2
- package/es/common/components/editable-map/marker-list.js +1 -0
- package/es/common/components/editable-map/marker-list.module.css +7 -1
- package/es/common/components/editable-map/slopes-toggle.module.css +2 -2
- package/package.json +1 -1
|
@@ -104,6 +104,8 @@ export default function EditableMap({
|
|
|
104
104
|
setFullScreen: setFullScreen,
|
|
105
105
|
containerRef: containerRef
|
|
106
106
|
}), _jsx(Button, {
|
|
107
|
+
type: "button",
|
|
108
|
+
variant: "secondary",
|
|
107
109
|
className: css.resetCenter,
|
|
108
110
|
onClick: resetCenter,
|
|
109
111
|
children: _jsx(Icons.MdMyLocation, {})
|
|
@@ -13,10 +13,15 @@
|
|
|
13
13
|
|
|
14
14
|
.resetCenter {
|
|
15
15
|
position: absolute;
|
|
16
|
-
|
|
16
|
+
top: 86px;
|
|
17
17
|
left: 10px;
|
|
18
|
-
|
|
18
|
+
background-color: var(--ds-grey-000, #fff);
|
|
19
19
|
box-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.resetCenter:hover {
|
|
24
|
+
background-color: var(--ds-grey-100, #f8f8f8);
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
.map {
|
|
@@ -134,7 +139,6 @@
|
|
|
134
139
|
font-family: inherit;
|
|
135
140
|
text-shadow: -1px 0px 1px white, 0px -1px 1px white, 1px 0px 1px white,
|
|
136
141
|
0px 1px 1px white;
|
|
137
|
-
/* text-shadow: 0px 0px 4px magenta; */
|
|
138
142
|
background-color: transparent;
|
|
139
143
|
box-shadow: none;
|
|
140
144
|
border: 0;
|
|
@@ -153,3 +157,44 @@
|
|
|
153
157
|
display: none !important;
|
|
154
158
|
}
|
|
155
159
|
}
|
|
160
|
+
|
|
161
|
+
.map:global(.leaflet-touch .leaflet-control-layers),
|
|
162
|
+
.map:global(.leaflet-touch .leaflet-bar) {
|
|
163
|
+
border: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.map:global(.leaflet-touch .leaflet-control-layers a),
|
|
167
|
+
.map:global(.leaflet-touch .leaflet-bar a) {
|
|
168
|
+
width: 33px;
|
|
169
|
+
height: 33px;
|
|
170
|
+
box-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
|
|
171
|
+
transition: background-color 160ms
|
|
172
|
+
var(--ds-transition-easing, cubic-bezier(0.4, 0.1, 0.2, 0.9));
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.map:global(.leaflet-touch .leaflet-control-layers a[aria-disabled="true"]),
|
|
176
|
+
.map:global(.leaflet-touch .leaflet-bar a[aria-disabled="true"]) {
|
|
177
|
+
cursor: not-allowed;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.map:global(.leaflet-touch .leaflet-control-layers a:hover),
|
|
181
|
+
.map:global(.leaflet-touch .leaflet-bar a:hover) {
|
|
182
|
+
background-color: var(--ds-grey-100, #f8f8f8);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.map:global(.leaflet-touch .leaflet-control-layers a:first-child),
|
|
186
|
+
.map:global(.leaflet-touch .leaflet-bar a:first-child) {
|
|
187
|
+
border-top-left-radius: var(--ds-radius-200, 8px);
|
|
188
|
+
border-top-right-radius: var(--ds-radius-200, 8px);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.map:global(.leaflet-touch .leaflet-control-layers a:last-child),
|
|
192
|
+
.map:global(.leaflet-touch .leaflet-bar a:last-child) {
|
|
193
|
+
border-bottom-left-radius: var(--ds-radius-200, 8px);
|
|
194
|
+
border-bottom-right-radius: var(--ds-radius-200, 8px);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.map:global(.leaflet-touch .leaflet-control-layers a span),
|
|
198
|
+
.map:global(.leaflet-touch .leaflet-bar a span) {
|
|
199
|
+
font-size: 18px;
|
|
200
|
+
}
|
|
@@ -9,7 +9,7 @@ export default function FullScreenButton({
|
|
|
9
9
|
containerRef
|
|
10
10
|
}) {
|
|
11
11
|
const [fullScreenCompatible, setFullScreenCompatible] = React.useState(true);
|
|
12
|
-
const cleanupFullScreen = React.useCallback(
|
|
12
|
+
const cleanupFullScreen = React.useCallback(() => {
|
|
13
13
|
if (!document.fullscreenElement) {
|
|
14
14
|
setFullScreen(false);
|
|
15
15
|
}
|
|
@@ -34,6 +34,7 @@ export default function FullScreenButton({
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
return _jsx(Button, {
|
|
37
|
+
variant: "secondary",
|
|
37
38
|
type: "button",
|
|
38
39
|
className: css.button,
|
|
39
40
|
onClick: toggleFullScreen,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
.button {
|
|
1
|
+
button.button {
|
|
2
2
|
position: absolute;
|
|
3
|
-
top:
|
|
3
|
+
top: 130px;
|
|
4
4
|
left: 10px;
|
|
5
|
+
background-color: var(--ds-grey-000, #fff);
|
|
6
|
+
box-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
button.button:hover {
|
|
10
|
+
background-color: var(--ds-grey-100, #f8f8f8);
|
|
5
11
|
}
|
|
@@ -34,13 +34,19 @@
|
|
|
34
34
|
opacity: 1;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.toggle {
|
|
37
|
+
button.toggle {
|
|
38
38
|
position: absolute;
|
|
39
39
|
bottom: 8px;
|
|
40
40
|
right: 8px;
|
|
41
|
+
background-color: var(--ds-grey-000, #fff);
|
|
42
|
+
box-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
|
|
41
43
|
user-select: none;
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
button.toggle:hover {
|
|
47
|
+
background-color: var(--ds-grey-100, #f8f8f8);
|
|
48
|
+
}
|
|
49
|
+
|
|
44
50
|
.inner {
|
|
45
51
|
position: relative;
|
|
46
52
|
flex: 1 1 100%;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.slopesToggle {
|
|
2
2
|
position: absolute;
|
|
3
3
|
bottom: 10px;
|
|
4
|
-
left:
|
|
4
|
+
left: 10px;
|
|
5
5
|
width: fit-content;
|
|
6
|
-
padding:
|
|
6
|
+
padding: 10px;
|
|
7
7
|
background-color: var(--ds-grey-000, #fff);
|
|
8
8
|
border-radius: var(--ds-radius-200, 8px);
|
|
9
9
|
box-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
|