playbook_ui 14.11.1.pre.alpha.hfhbrakemanplaybook5370 → 14.11.1.pre.alpha.play1724darkmodeauditmap5413
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_map/_map.scss +3 -0
- data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +4 -4
- data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +7 -7
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +5 -5
- data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +6 -5
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeb62659dd5909212f6884bc3c17258eae8aec3c5f3ce074e1255429d46127e3
|
4
|
+
data.tar.gz: 2b9d43a06eff55f565ba9d5c3aad9a3607ec1e09d0968050776dcd1cc94df63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a1c1a038c8eec7b772f339c64e84ee10135f271e8b582ccd4826452fdfe32f8ea0cd4d4f1f0601f7fd01ca4308346877447e29292ce755677cfb6c6d14e41ef
|
7
|
+
data.tar.gz: 5899242c413795a37b955155d0cdda3b6d8356f84118ddc344456a97a5e535f8831085da5b1a0e1d39e0c12ef8f521cb250384d0c002e89d76dc21045681cf27
|
@@ -3,6 +3,7 @@
|
|
3
3
|
@import "../tokens/shadows";
|
4
4
|
@import "../tokens/border_radius";
|
5
5
|
@import "./_pb_map_button_mixin.scss";
|
6
|
+
@import "../tokens/titles";
|
6
7
|
|
7
8
|
[class*="pb_map"] {
|
8
9
|
.pb_map-custom-button {
|
@@ -159,6 +160,7 @@
|
|
159
160
|
}
|
160
161
|
|
161
162
|
.maplibregl-popup-content {
|
163
|
+
@include pb_title_4;
|
162
164
|
padding: $space_sm;
|
163
165
|
background-color: $card_light;
|
164
166
|
box-shadow: $shadow_deeper;
|
@@ -194,6 +196,7 @@
|
|
194
196
|
}
|
195
197
|
|
196
198
|
.maplibregl-popup-content {
|
199
|
+
@include pb_title_4;
|
197
200
|
background-color: $bg_dark;
|
198
201
|
color: $text_dk_default;
|
199
202
|
}
|
@@ -25,12 +25,12 @@ const MapDefault = (props) => {
|
|
25
25
|
new maplibregl.Marker({
|
26
26
|
color: mapTheme.marker,
|
27
27
|
}).setLngLat(defaultPosition)
|
28
|
-
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML(
|
28
|
+
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML('Hello World!')) // add popup
|
29
29
|
.addTo(map);
|
30
30
|
|
31
31
|
// disable map zoom when using scroll
|
32
32
|
map.scrollZoom.disable();
|
33
|
-
|
33
|
+
|
34
34
|
//add attributioncontrols
|
35
35
|
map.addControl(new maplibregl.AttributionControl({
|
36
36
|
compact: true
|
@@ -49,7 +49,7 @@ const MapDefault = (props) => {
|
|
49
49
|
|
50
50
|
}, [])
|
51
51
|
|
52
|
-
return (
|
52
|
+
return (
|
53
53
|
<Map flyTo
|
54
54
|
flyToClick={()=> {handleFlyTo(mapInstance)}}
|
55
55
|
zoomBtns
|
@@ -63,7 +63,7 @@ return (
|
|
63
63
|
position: 'absolute',
|
64
64
|
left: 0,
|
65
65
|
right: 0,
|
66
|
-
top: 0,
|
66
|
+
top: 0,
|
67
67
|
bottom: 0,
|
68
68
|
}}
|
69
69
|
/>
|
@@ -25,12 +25,12 @@ const MapWithCustomButton = (props) => {
|
|
25
25
|
new maplibregl.Marker({
|
26
26
|
color: mapTheme.marker,
|
27
27
|
}).setLngLat(defaultPosition)
|
28
|
-
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML(
|
28
|
+
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML('Hello World!')) // add popup
|
29
29
|
.addTo(map);
|
30
30
|
|
31
31
|
// disable map zoom when using scroll
|
32
32
|
map.scrollZoom.disable();
|
33
|
-
|
33
|
+
|
34
34
|
//add attributioncontrols
|
35
35
|
map.addControl(new maplibregl.AttributionControl({
|
36
36
|
compact: true
|
@@ -49,8 +49,8 @@ const MapWithCustomButton = (props) => {
|
|
49
49
|
|
50
50
|
}, [])
|
51
51
|
|
52
|
-
return (
|
53
|
-
<Map
|
52
|
+
return (
|
53
|
+
<Map
|
54
54
|
{...props}
|
55
55
|
>
|
56
56
|
<Map.Controls flyTo
|
@@ -59,10 +59,10 @@ return (
|
|
59
59
|
zoomInClick={() => {handleZoomIn(mapInstance)}}
|
60
60
|
zoomOutClick={()=> {handleZoomOut(mapInstance)}}
|
61
61
|
>
|
62
|
-
<MapCustomButton icon="home"
|
62
|
+
<MapCustomButton icon="home"
|
63
63
|
onClick={() => alert("button clicked!")}
|
64
64
|
/>
|
65
|
-
<MapCustomButton icon="search"
|
65
|
+
<MapCustomButton icon="search"
|
66
66
|
onClick={() => alert("button clicked!")}
|
67
67
|
/>
|
68
68
|
</Map.Controls>
|
@@ -72,7 +72,7 @@ return (
|
|
72
72
|
position: 'absolute',
|
73
73
|
left: 0,
|
74
74
|
right: 0,
|
75
|
-
top: 0,
|
75
|
+
top: 0,
|
76
76
|
bottom: 0,
|
77
77
|
}}
|
78
78
|
/>
|
@@ -25,7 +25,7 @@ const MapWithPlugin = (props) => {
|
|
25
25
|
new maplibregl.Marker({
|
26
26
|
color: mapTheme.marker,
|
27
27
|
}).setLngLat(defaultPosition)
|
28
|
-
.setPopup(new maplibregl.Popup({className: 'map_popup', closeButton: false}).setHTML(
|
28
|
+
.setPopup(new maplibregl.Popup({className: 'map_popup', closeButton: false}).setHTML('Hello World!')) // add popup
|
29
29
|
.addTo(map);
|
30
30
|
|
31
31
|
//add maplibre default zoom controls
|
@@ -48,7 +48,7 @@ const MapWithPlugin = (props) => {
|
|
48
48
|
map.addControl(new maplibregl.AttributionControl({
|
49
49
|
compact: true
|
50
50
|
}));
|
51
|
-
|
51
|
+
|
52
52
|
//set map instance
|
53
53
|
setMapInstance(map)
|
54
54
|
}
|
@@ -62,8 +62,8 @@ const MapWithPlugin = (props) => {
|
|
62
62
|
}, [])
|
63
63
|
|
64
64
|
|
65
|
-
|
66
|
-
return (
|
65
|
+
|
66
|
+
return (
|
67
67
|
<Map flyTo
|
68
68
|
flyToClick={()=> {handleFlyTo(mapInstance)}}
|
69
69
|
zoomBtns
|
@@ -77,7 +77,7 @@ return (
|
|
77
77
|
position: 'absolute',
|
78
78
|
left: 0,
|
79
79
|
right: 0,
|
80
|
-
top: 0,
|
80
|
+
top: 0,
|
81
81
|
bottom: 0,
|
82
82
|
}}
|
83
83
|
/>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
@import "../../tokens/screen_sizes";
|
2
|
+
@import "../../tokens/border_radius";
|
2
3
|
|
3
4
|
.table-responsive-scroll {
|
4
|
-
display: block;
|
5
5
|
overflow-x: scroll;
|
6
6
|
|
7
7
|
// hides duplicate scroll bar for those that see two (byproduct of repeated table-responsive-scroll class
|
@@ -27,11 +27,12 @@
|
|
27
27
|
// Responsive Styles
|
28
28
|
@media (max-width: 1600px) {
|
29
29
|
&[class*="table-responsive-scroll"] {
|
30
|
-
|
31
|
-
|
30
|
+
&:has(> table.table-card) {
|
31
|
+
border-radius: $border_rad_light;
|
32
|
+
box-shadow: 1px 0 0 0px $border_light,
|
32
33
|
-1px 0 0 0px $border_light
|
33
|
-
|
34
|
-
|
34
|
+
}
|
35
|
+
}
|
35
36
|
&[class^=pb_table].table-sm.table-card thead tr th:first-child,
|
36
37
|
&[class^=pb_table].table-sm:not(.no-hover).table-card tbody tr td:first-child {
|
37
38
|
border-left-width: 0px;
|