react-spatial 1.12.1 → 1.12.2
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/components/Geolocation/Geolocation.scss +7 -5
- package/components/LayerTree/LayerTree.scss +4 -2
- package/components/Popup/Popup.scss +3 -1
- package/components/RouteSchedule/RouteSchedule.md.scss +3 -1
- package/components/RouteSchedule/RouteSchedule.scss +3 -1
- package/components/ScaleLine/ScaleLine.scss +5 -3
- package/components/Zoom/Zoom.md.scss +3 -1
- package/components/Zoom/Zoom.scss +6 -4
- package/package.json +30 -29
- package/themes/default/components.scss +9 -9
- package/themes/default/examples.scss +19 -17
- package/themes/default/index.scss +3 -3
- package/themes/default/mixins.scss +7 -5
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@use "../../themes/default/variables";
|
|
2
|
+
|
|
1
3
|
.rs-geolocation {
|
|
2
4
|
cursor: pointer;
|
|
3
|
-
height:
|
|
4
|
-
width:
|
|
5
|
+
height: variables.$btn-size-base;
|
|
6
|
+
width: variables.$btn-size-base;
|
|
5
7
|
display: flex;
|
|
6
8
|
justify-content: center;
|
|
7
9
|
align-items: center;
|
|
@@ -9,11 +11,11 @@
|
|
|
9
11
|
text-align: center;
|
|
10
12
|
font-size: 20px;
|
|
11
13
|
color: white;
|
|
12
|
-
background-color:
|
|
14
|
+
background-color: variables.$btn-primary-color;
|
|
13
15
|
transition: background-color 0.5s ease;
|
|
14
16
|
|
|
15
17
|
&:hover {
|
|
16
|
-
background-color:
|
|
18
|
+
background-color: variables.$btn-primary-color-hover;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
&.rs-active {
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
50% {
|
|
32
|
-
color:
|
|
34
|
+
color: variables.$btn-primary-color;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
100% {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../themes/default/variables";
|
|
2
|
+
|
|
1
3
|
.rs-layer-tree {
|
|
2
4
|
width: 100%;
|
|
3
5
|
overflow-y: auto;
|
|
@@ -111,7 +113,7 @@
|
|
|
111
113
|
top: 1px;
|
|
112
114
|
width: 5px;
|
|
113
115
|
height: 10px;
|
|
114
|
-
border: solid
|
|
116
|
+
border: solid variables.$brand-primary;
|
|
115
117
|
border-width: 0 1px 1px 0;
|
|
116
118
|
transform: rotate(45deg);
|
|
117
119
|
}
|
|
@@ -123,7 +125,7 @@
|
|
|
123
125
|
width: 12px;
|
|
124
126
|
height: 12px;
|
|
125
127
|
border-radius: 50%;
|
|
126
|
-
background:
|
|
128
|
+
background: variables.$brand-primary;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
label input:checked ~ span::after {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
@use "../../themes/default/variables";
|
|
2
|
+
|
|
1
3
|
.rs-popup {
|
|
2
4
|
position: absolute;
|
|
3
5
|
|
|
4
6
|
.rs-popup-container {
|
|
5
7
|
position: absolute;
|
|
6
8
|
background-color: white;
|
|
7
|
-
filter: drop-shadow(
|
|
9
|
+
filter: drop-shadow(variables.$box-shadow);
|
|
8
10
|
bottom: 12px;
|
|
9
11
|
left: -50px;
|
|
10
12
|
min-width: 220px;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../themes/default/variables";
|
|
2
|
+
|
|
1
3
|
.rt-route-schedule {
|
|
2
4
|
background-color: white;
|
|
3
5
|
width: 350px;
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
|
|
76
78
|
&:hover {
|
|
77
79
|
color: white;
|
|
78
|
-
background-color:
|
|
80
|
+
background-color: variables.$brand-secondary;
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
.rt-route-times,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@use "../../themes/default/variables";
|
|
2
|
+
|
|
1
3
|
.rs-scale-line .ol-scale-line-inner {
|
|
2
4
|
border-width: 0 1px 1px;
|
|
3
|
-
border-color: 1px solid
|
|
5
|
+
border-color: 1px solid variables.$gray;
|
|
4
6
|
border-style: solid;
|
|
5
|
-
padding:
|
|
6
|
-
font-size:
|
|
7
|
+
padding: variables.$padding-base;
|
|
8
|
+
font-size: variables.$font-size-small;
|
|
7
9
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../../themes/default/variables';
|
|
2
|
+
|
|
1
3
|
.rs-zoom-example {
|
|
2
4
|
position: relative;
|
|
3
5
|
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
|
|
13
15
|
.rs-zoom-in,
|
|
14
16
|
.rs-zoom-out {
|
|
15
|
-
background:
|
|
17
|
+
background: variables.$btn-secondary-color;
|
|
16
18
|
border-radius: 50%;
|
|
17
19
|
color: white;
|
|
18
20
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../../themes/default/variables";
|
|
2
|
+
|
|
1
3
|
.rs-zooms-bar {
|
|
2
4
|
position: absolute;
|
|
3
5
|
top: 0;
|
|
@@ -10,8 +12,8 @@
|
|
|
10
12
|
.rs-zoom-in,
|
|
11
13
|
.rs-zoom-out {
|
|
12
14
|
cursor: pointer;
|
|
13
|
-
height:
|
|
14
|
-
width:
|
|
15
|
+
height: variables.$btn-size-base;
|
|
16
|
+
width: variables.$btn-size-base;
|
|
15
17
|
display: flex;
|
|
16
18
|
justify-content: center;
|
|
17
19
|
align-items: center;
|
|
@@ -34,7 +36,7 @@
|
|
|
34
36
|
left: 0;
|
|
35
37
|
user-select: none;
|
|
36
38
|
background-color: rgb(255 255 255 / 40%);
|
|
37
|
-
border: 1px solid
|
|
39
|
+
border: 1px solid variables.$brand-secondary;
|
|
38
40
|
border-radius: 3px;
|
|
39
41
|
outline: none;
|
|
40
42
|
overflow: hidden;
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
user-select: none;
|
|
47
49
|
position: relative;
|
|
48
50
|
display: block;
|
|
49
|
-
background:
|
|
51
|
+
background: variables.$brand-secondary;
|
|
50
52
|
outline: none;
|
|
51
53
|
overflow: hidden;
|
|
52
54
|
cursor: pointer;
|
package/package.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"name": "react-spatial",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"description": "Components to build React map apps.",
|
|
5
|
-
"version": "1.12.
|
|
5
|
+
"version": "1.12.2",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/react": "^11.13.3",
|
|
8
8
|
"@emotion/styled": "^11.13.0",
|
|
9
|
-
"@geops/geops-ui": "0.3.
|
|
10
|
-
"@mui/icons-material": "^6.
|
|
11
|
-
"@mui/material": "^6.
|
|
12
|
-
"re-resizable": "6.
|
|
9
|
+
"@geops/geops-ui": "0.3.4",
|
|
10
|
+
"@mui/icons-material": "^6.1.7",
|
|
11
|
+
"@mui/material": "^6.1.7",
|
|
12
|
+
"re-resizable": "6.10.1",
|
|
13
13
|
"react-icons": "5.3.0",
|
|
14
14
|
"resize-observer-polyfill": "1.5.1"
|
|
15
15
|
},
|
|
@@ -22,37 +22,37 @@
|
|
|
22
22
|
"react-dom": "^18"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@babel/preset-env": "7.
|
|
26
|
-
"@babel/preset-react": "7.
|
|
25
|
+
"@babel/preset-env": "7.26.0",
|
|
26
|
+
"@babel/preset-react": "7.25.9",
|
|
27
27
|
"@cfaester/enzyme-adapter-react-18": "0.8.0",
|
|
28
|
-
"@commitlint/cli": "19.
|
|
29
|
-
"@commitlint/config-conventional": "19.
|
|
28
|
+
"@commitlint/cli": "19.5.0",
|
|
29
|
+
"@commitlint/config-conventional": "19.5.0",
|
|
30
30
|
"@svgr/plugin-jsx": "^8.1.0",
|
|
31
31
|
"@svgr/webpack": "8.1.0",
|
|
32
32
|
"@testing-library/dom": "^10.4.0",
|
|
33
|
-
"@testing-library/jest-dom": "6.
|
|
33
|
+
"@testing-library/jest-dom": "6.6.3",
|
|
34
34
|
"@testing-library/react": "16.0.1",
|
|
35
35
|
"@testing-library/user-event": "14.5.2",
|
|
36
36
|
"babel-jest": "29.7.0",
|
|
37
|
-
"babel-loader": "9.1
|
|
37
|
+
"babel-loader": "9.2.1",
|
|
38
38
|
"canvas": "2.11.2",
|
|
39
39
|
"css-loader": "7.1.2",
|
|
40
40
|
"enzyme": "3.11.0",
|
|
41
|
-
"esbuild": "^0.
|
|
41
|
+
"esbuild": "^0.24.0",
|
|
42
42
|
"esbuild-loader": "^4.2.2",
|
|
43
43
|
"eslint": "8",
|
|
44
44
|
"eslint-config-airbnb": "19.0.4",
|
|
45
45
|
"eslint-config-prettier": "9.1.0",
|
|
46
|
-
"eslint-plugin-import": "2.
|
|
47
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
48
|
-
"eslint-plugin-perfectionist": "^3.
|
|
46
|
+
"eslint-plugin-import": "2.31.0",
|
|
47
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
48
|
+
"eslint-plugin-perfectionist": "^3.9.1",
|
|
49
49
|
"eslint-plugin-prettier": "5.2.1",
|
|
50
|
-
"eslint-plugin-react": "7.
|
|
51
|
-
"eslint-plugin-react-hooks": "
|
|
50
|
+
"eslint-plugin-react": "7.37.2",
|
|
51
|
+
"eslint-plugin-react-hooks": "5.0.0",
|
|
52
52
|
"file-loader": "6.2.0",
|
|
53
53
|
"fixpack": "4.0.0",
|
|
54
54
|
"generact": "0.4.0",
|
|
55
|
-
"husky": "9.1.
|
|
55
|
+
"husky": "9.1.6",
|
|
56
56
|
"identity-obj-proxy": "^3.0.0",
|
|
57
57
|
"is-ci": "3.0.1",
|
|
58
58
|
"jest": "29.7.0",
|
|
@@ -63,34 +63,35 @@
|
|
|
63
63
|
"jest-serializer-html": "7.1.0",
|
|
64
64
|
"jest-transform-file": "1.1.1",
|
|
65
65
|
"jest-transformer-svg": "^2.0.2",
|
|
66
|
-
"jsts": "2.
|
|
67
|
-
"lint-staged": "15.2.
|
|
66
|
+
"jsts": "2.12.1",
|
|
67
|
+
"lint-staged": "15.2.10",
|
|
68
68
|
"mapbox-gl": "1.13.1",
|
|
69
|
-
"maplibre-gl": "4.
|
|
69
|
+
"maplibre-gl": "4.7.1",
|
|
70
70
|
"mobility-toolbox-js": "2.4.2",
|
|
71
|
-
"ol": "10.1
|
|
72
|
-
"postcss": "^8.4.
|
|
71
|
+
"ol": "10.2.1",
|
|
72
|
+
"postcss": "^8.4.49",
|
|
73
73
|
"prettier": "3.3.3",
|
|
74
|
-
"proj4": "2.
|
|
74
|
+
"proj4": "2.14.0",
|
|
75
75
|
"prop-types": "15.8.1",
|
|
76
76
|
"react": "18.3.1",
|
|
77
77
|
"react-dom": "18.3.1",
|
|
78
78
|
"react-styleguidist": "13.1.3",
|
|
79
79
|
"react-svg-loader": "3.0.3",
|
|
80
80
|
"react-test-renderer": "18.3.1",
|
|
81
|
-
"sass": "1.
|
|
82
|
-
"sass-loader": "16.0.
|
|
81
|
+
"sass": "1.81.0",
|
|
82
|
+
"sass-loader": "16.0.3",
|
|
83
|
+
"sass-migrator": "^2.2.1",
|
|
83
84
|
"standard-version": "9.5.0",
|
|
84
85
|
"stream-array": "1.1.2",
|
|
85
86
|
"style-loader": "4.0.0",
|
|
86
|
-
"stylelint": "16.
|
|
87
|
+
"stylelint": "16.10.0",
|
|
87
88
|
"stylelint-config-recommended-scss": "14.1.0",
|
|
88
89
|
"stylelint-config-standard": "36.0.1",
|
|
89
|
-
"stylelint-scss": "6.
|
|
90
|
+
"stylelint-scss": "6.9.0",
|
|
90
91
|
"terser-webpack-plugin": "^5.3.10",
|
|
91
92
|
"url-loader": "4.1.1",
|
|
92
93
|
"vinyl-fs": "4.0.0",
|
|
93
|
-
"webpack": "^5.
|
|
94
|
+
"webpack": "^5.96.1",
|
|
94
95
|
"xml-beautifier": "0.5.0"
|
|
95
96
|
},
|
|
96
97
|
"scripts": {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file load the css of components.
|
|
3
3
|
*/
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
4
|
+
@use '../../components/BaseLayerSwitcher/BaseLayerSwitcher';
|
|
5
|
+
@use '../../components/Geolocation/Geolocation';
|
|
6
|
+
@use '../../components/LayerTree/LayerTree';
|
|
7
|
+
@use '../../components/NorthArrow/NorthArrow';
|
|
8
|
+
@use '../../components/Popup/Popup';
|
|
9
|
+
@use '../../components/ScaleLine/ScaleLine';
|
|
10
|
+
@use '../../components/Zoom/Zoom';
|
|
11
|
+
@use '../../components/RouteSchedule/RouteSchedule';
|
|
12
|
+
@use '../../components/Overlay/Overlay';
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file is loaded by the styleguide and provide additionnal css for all examples.
|
|
3
3
|
*/
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
4
|
+
@use 'index';
|
|
5
|
+
@use 'variables';
|
|
6
|
+
@use 'mixins';
|
|
7
|
+
@use '../../components/BaseLayerSwitcher/BaseLayerSwitcher.md';
|
|
8
|
+
@use '../../components/BasicMap/BasicMap.md';
|
|
9
|
+
@use '../../components/CanvasSaveButton/CanvasSaveButton.md';
|
|
10
|
+
@use '../../components/FeatureExportButton/FeatureExportButton.md';
|
|
11
|
+
@use '../../components/FitExtent/FitExtent.md';
|
|
12
|
+
@use '../../components/Geolocation/Geolocation.md';
|
|
13
|
+
@use '../../components/LayerTree/LayerTree.md';
|
|
14
|
+
@use '../../components/MousePosition/MousePosition.md';
|
|
15
|
+
@use '../../components/Permalink/Permalink.md';
|
|
16
|
+
@use '../../components/Popup/Popup.md';
|
|
17
|
+
@use '../../components/Zoom/Zoom.md';
|
|
18
|
+
@use '../../components/RouteSchedule/RouteSchedule.md';
|
|
19
|
+
@use '../../components/Copyright/Copyright.md';
|
|
20
|
+
@use '../../components/Overlay/Overlay.md';
|
|
19
21
|
|
|
20
22
|
$link-color: #000;
|
|
21
23
|
$link-color-hover: #000;
|
|
22
24
|
|
|
23
25
|
/* Load 'a' mixin */
|
|
24
|
-
@include a;
|
|
26
|
+
@include mixins.a();
|
|
25
27
|
|
|
26
28
|
a {
|
|
27
29
|
font-size: 11px;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
body {
|
|
31
|
-
font-family:
|
|
33
|
+
font-family: variables.$font-family;
|
|
32
34
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file load the default theme, for all the components.
|
|
3
3
|
*/
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
4
|
+
@use 'variables';
|
|
5
|
+
@use 'mixins';
|
|
6
|
+
@use 'components';
|
|
7
7
|
|
|
8
8
|
[role='button']:not([disabled]),
|
|
9
9
|
button:not([disabled]),
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "variables";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* This file defines mixins.
|
|
3
5
|
*/
|
|
@@ -7,16 +9,16 @@
|
|
|
7
9
|
*/
|
|
8
10
|
@mixin a() {
|
|
9
11
|
a {
|
|
10
|
-
color:
|
|
11
|
-
text-decoration:
|
|
12
|
+
color: variables.$link-color;
|
|
13
|
+
text-decoration: variables.$link-decoration;
|
|
12
14
|
|
|
13
15
|
&:hover {
|
|
14
|
-
color:
|
|
15
|
-
text-decoration:
|
|
16
|
+
color: variables.$link-color-hover;
|
|
17
|
+
text-decoration: variables.$link-decoration-hover;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
&:active {
|
|
19
|
-
color:
|
|
21
|
+
color: variables.$link-color-active;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
&.rs-selected {
|