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.
@@ -1,7 +1,9 @@
1
+ @use "../../themes/default/variables";
2
+
1
3
  .rs-geolocation {
2
4
  cursor: pointer;
3
- height: $btn-size-base;
4
- width: $btn-size-base;
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: $btn-primary-color;
14
+ background-color: variables.$btn-primary-color;
13
15
  transition: background-color 0.5s ease;
14
16
 
15
17
  &:hover {
16
- background-color: $btn-primary-color-hover;
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: $btn-primary-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 $brand-primary;
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: $brand-primary;
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($box-shadow);
9
+ filter: drop-shadow(variables.$box-shadow);
8
10
  bottom: 12px;
9
11
  left: -50px;
10
12
  min-width: 220px;
@@ -1,5 +1,7 @@
1
+ @use "../../themes/default/variables";
2
+
1
3
  .rt-route-schedule-example {
2
- font-family: $font-family;
4
+ font-family: variables.$font-family;
3
5
  position: relative;
4
6
  display: flex;
5
7
 
@@ -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: $brand-secondary;
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 $gray;
5
+ border-color: 1px solid variables.$gray;
4
6
  border-style: solid;
5
- padding: $padding-base;
6
- font-size: $font-size-small;
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: $btn-secondary-color;
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: $btn-size-base;
14
- width: $btn-size-base;
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 $brand-secondary;
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: $brand-secondary;
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.1",
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.3",
10
- "@mui/icons-material": "^6.0.0",
11
- "@mui/material": "^6.0.0",
12
- "re-resizable": "6.9.17",
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.25.4",
26
- "@babel/preset-react": "7.24.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.4.1",
29
- "@commitlint/config-conventional": "19.4.1",
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.5.0",
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.3",
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.23.1",
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.29.1",
47
- "eslint-plugin-jsx-a11y": "^6.9.0",
48
- "eslint-plugin-perfectionist": "^3.3.0",
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.35.0",
51
- "eslint-plugin-react-hooks": "4.6.2",
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.5",
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.11.3",
67
- "lint-staged": "15.2.9",
66
+ "jsts": "2.12.1",
67
+ "lint-staged": "15.2.10",
68
68
  "mapbox-gl": "1.13.1",
69
- "maplibre-gl": "4.6.0",
69
+ "maplibre-gl": "4.7.1",
70
70
  "mobility-toolbox-js": "2.4.2",
71
- "ol": "10.1.0",
72
- "postcss": "^8.4.41",
71
+ "ol": "10.2.1",
72
+ "postcss": "^8.4.49",
73
73
  "prettier": "3.3.3",
74
- "proj4": "2.12.0",
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.77.8",
82
- "sass-loader": "16.0.1",
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.9.0",
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.5.1",
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.0",
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
- @import '../../components/BaseLayerSwitcher/BaseLayerSwitcher';
5
- @import '../../components/Geolocation/Geolocation';
6
- @import '../../components/LayerTree/LayerTree';
7
- @import '../../components/NorthArrow/NorthArrow';
8
- @import '../../components/Popup/Popup';
9
- @import '../../components/ScaleLine/ScaleLine';
10
- @import '../../components/Zoom/Zoom';
11
- @import '../../components/RouteSchedule/RouteSchedule';
12
- @import '../../components/Overlay/Overlay';
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
- @import './index';
5
- @import '../../components/BaseLayerSwitcher/BaseLayerSwitcher.md';
6
- @import '../../components/BasicMap/BasicMap.md';
7
- @import '../../components/CanvasSaveButton/CanvasSaveButton.md';
8
- @import '../../components/FeatureExportButton/FeatureExportButton.md';
9
- @import '../../components/FitExtent/FitExtent.md';
10
- @import '../../components/Geolocation/Geolocation.md';
11
- @import '../../components/LayerTree/LayerTree.md';
12
- @import '../../components/MousePosition/MousePosition.md';
13
- @import '../../components/Permalink/Permalink.md';
14
- @import '../../components/Popup/Popup.md';
15
- @import '../../components/Zoom/Zoom.md';
16
- @import '../../components/RouteSchedule/RouteSchedule.md';
17
- @import '../../components/Copyright/Copyright.md';
18
- @import '../../components/Overlay/Overlay.md';
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: $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
- @import './variables';
5
- @import './mixins';
6
- @import './components';
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: $link-color;
11
- text-decoration: $link-decoration;
12
+ color: variables.$link-color;
13
+ text-decoration: variables.$link-decoration;
12
14
 
13
15
  &:hover {
14
- color: $link-color-hover;
15
- text-decoration: $link-decoration-hover;
16
+ color: variables.$link-color-hover;
17
+ text-decoration: variables.$link-decoration-hover;
16
18
  }
17
19
 
18
20
  &:active {
19
- color: $link-color-active;
21
+ color: variables.$link-color-active;
20
22
  }
21
23
 
22
24
  &.rs-selected {