@mtes-mct/monitor-ui 24.4.0 → 24.6.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,36 @@
1
+ ## [24.5.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.4.0...v24.5.0) (2024-11-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * **icons:** modify icons for selection [scare and polygons] ([1d9b566](https://github.com/MTES-MCT/monitor-ui/commit/1d9b566ade9c0d638484853e547056d738477841))
7
+
8
+
9
+ ### Buid System & Dependencies
10
+
11
+ * **dev-deps:** bump the all-non-major-dependencies group ([69cb9ab](https://github.com/MTES-MCT/monitor-ui/commit/69cb9abfe8cde9a158f6a1d756e0f6fb2d440c63))
12
+
13
+ ## [24.4.0](https://github.com/MTES-MCT/monitor-ui/compare/v24.3.1...v24.4.0) (2024-10-29)
14
+
15
+
16
+ ### Features
17
+
18
+ * **icons:** add vigilanceAreas icon ([d1976a5](https://github.com/MTES-MCT/monitor-ui/commit/d1976a56a9ed7e0c91c87c333a7eb4522cd689b5))
19
+
20
+
21
+ ### Reverts
22
+
23
+ * Revert "build(deps): update yarn.lock" ([e357f23](https://github.com/MTES-MCT/monitor-ui/commit/e357f2376e055edb98c98211a896bb2fffce5d8f))
24
+
25
+
26
+ ### Buid System & Dependencies
27
+
28
+ * **deps:** bump @babel/runtime in the non-major-dependencies group ([5062609](https://github.com/MTES-MCT/monitor-ui/commit/50626095b1b496b77c69d0738b8b34dbbb468ff0))
29
+ * **deps:** update yarn.lock ([acab8f3](https://github.com/MTES-MCT/monitor-ui/commit/acab8f337b25e1028408909879116c66f5f4b0a3))
30
+ * **dev-deps:** bump the all-non-major-dependencies group ([a782d08](https://github.com/MTES-MCT/monitor-ui/commit/a782d08c19659e9b4e6742f1ceae1b78ace9df9b))
31
+ * **dev-deps:** bump the non-major-dev-dependencies group with 15 updates ([b19357f](https://github.com/MTES-MCT/monitor-ui/commit/b19357f1b483d533488beccca8ec72bb29eb7b46))
32
+ * **dev-deps:** bump vite-tsconfig-paths from 4.3.2 to 5.0.1 ([a7fe2c2](https://github.com/MTES-MCT/monitor-ui/commit/a7fe2c2fad7f21af812757f0b21eb2b4a89ef0fd))
33
+
1
34
  ## [24.3.1](https://github.com/MTES-MCT/monitor-ui/compare/v24.3.0...v24.3.1) (2024-10-24)
2
35
 
3
36
 
package/cypress/index.js CHANGED
@@ -62,12 +62,27 @@ function findButton(label, preSelector, { index, prevSubjectElement }) {
62
62
  if (buttonElementByTitle) {
63
63
  return buttonElementByTitle;
64
64
  }
65
- const menuItemElement = findElementByText(`${preSelector}[role="menuitem"]`, label, {
65
+ const buttonRoleElement = findElementByText(`${preSelector}[role="button"]`, label, {
66
66
  index,
67
67
  inElement: prevSubjectElement
68
68
  });
69
- if (menuItemElement) {
70
- return menuItemElement;
69
+ if (buttonRoleElement) {
70
+ return buttonRoleElement;
71
+ }
72
+ const buttonRoleElementByAriaLabel = prevSubjectElement ? prevSubjectElement.querySelectorAll(`${preSelector}[role="button"][aria-label="${label}"]`)[index] : Cypress.$(`${preSelector}[role="button"][aria-label="${label}"]`).get(index);
73
+ if (buttonRoleElementByAriaLabel) {
74
+ return buttonRoleElementByAriaLabel;
75
+ }
76
+ const buttonRoleElementByTitle = prevSubjectElement ? prevSubjectElement.querySelectorAll(`${preSelector}[role="button"][title="${label}"]`)[index] : Cypress.$(`${preSelector}[role="button"][title="${label}"]`).get(index);
77
+ if (buttonRoleElementByTitle) {
78
+ return buttonRoleElementByTitle;
79
+ }
80
+ const menuItemRoleElement = findElementByText(`${preSelector}[role="menuitem"]`, label, {
81
+ index,
82
+ inElement: prevSubjectElement
83
+ });
84
+ if (menuItemRoleElement) {
85
+ return menuItemRoleElement;
71
86
  }
72
87
  return undefined;
73
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SelectPolygon.d.ts","sourceRoot":"","sources":["../../src/icons/SelectPolygon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,EAAE,SAAS,2CAgC9E"}
1
+ {"version":3,"file":"SelectPolygon.d.ts","sourceRoot":"","sources":["../../src/icons/SelectPolygon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,EAAE,SAAS,2CAiB9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectRectangle.d.ts","sourceRoot":"","sources":["../../src/icons/SelectRectangle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,EAAE,SAAS,2CA4EhF"}
1
+ {"version":3,"file":"SelectRectangle.d.ts","sourceRoot":"","sources":["../../src/icons/SelectRectangle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,EAAE,SAAS,2CAsBhF"}
package/index.js CHANGED
@@ -20708,74 +20708,45 @@ function SelectPolygon({ color, size, title, ...nativeProps }) {
20708
20708
  $color: color,
20709
20709
  $size: size,
20710
20710
  title: title,
20711
- children: /*#__PURE__*/ jsx("svg", {
20711
+ children: /*#__PURE__*/ jsxs("svg", {
20712
20712
  height: "20",
20713
20713
  viewBox: "0 0 20 20",
20714
20714
  width: "20",
20715
20715
  ...nativeProps,
20716
- children: /*#__PURE__*/ jsxs("g", {
20717
- transform: "translate(120 -41)",
20718
- children: [
20719
- /*#__PURE__*/ jsxs("g", {
20716
+ children: [
20717
+ /*#__PURE__*/ jsx("rect", {
20718
+ fill: "none",
20719
+ height: "20",
20720
+ width: "20"
20721
+ }),
20722
+ /*#__PURE__*/ jsx("g", {
20723
+ transform: "translate(-0.1 -0.081)",
20724
+ children: /*#__PURE__*/ jsxs("g", {
20720
20725
  children: [
20721
20726
  /*#__PURE__*/ jsx("path", {
20722
- d: "M-114.675,45.646l-1.875-.7,1.113-2.994h3.2v2h-1.8Z",
20727
+ d: "M13.989,5.345,12.036,2.576l-3.354.479L8.4,1.075,12.964.424l2.66,3.767Z",
20723
20728
  fill: "currentColor"
20724
20729
  }),
20725
- /*#__PURE__*/ jsx("rect", {
20726
- fill: "currentColor",
20727
- height: "2",
20728
- transform: "translate(-117.788 48.28) rotate(-69.601)",
20729
- width: "2.539"
20730
- }),
20731
20730
  /*#__PURE__*/ jsx("path", {
20732
- d: "M-116.974,54.383l-2.266-2.192,1.1-2.956,1.875.7-.643,1.731,1.326,1.284Z",
20731
+ d: "M3,7H1V2.133l4.818-.688L6.1,3.425,3,3.867Z",
20733
20732
  fill: "currentColor"
20734
20733
  }),
20735
- /*#__PURE__*/ jsx("rect", {
20736
- fill: "currentColor",
20737
- height: "2.664",
20738
- transform: "matrix(0.695, -0.719, 0.719, 0.695, -116.207, 55.124)",
20739
- width: "2"
20740
- }),
20741
20734
  /*#__PURE__*/ jsx("path", {
20742
- d: "M-111.067,60.1l-2.459-2.379,1.391-1.437,1.135,1.1,1.185-1.041,1.32,1.5Z",
20735
+ d: "M5.237,16.554,1,14.646V10H3v3.354l3.058,1.376Z",
20743
20736
  fill: "currentColor"
20744
20737
  }),
20745
20738
  /*#__PURE__*/ jsx("path", {
20746
- d: "M-107.521,56.983l-1.318-1.5,1.4-1.174,1.559-.7.822,1.822-1.423.643Z",
20739
+ d: "M12.312,19.737l-4.37-1.967.82-1.824,2.925,1.316,1.948-2.548,1.588,1.215Z",
20747
20740
  fill: "currentColor"
20748
20741
  }),
20749
20742
  /*#__PURE__*/ jsx("path", {
20750
- d: "M-103.869,54.893l-.82-1.824,1.57-.707-.3-1.7,1.971-.346.565,3.229Z",
20751
- fill: "currentColor"
20752
- }),
20753
- /*#__PURE__*/ jsx("rect", {
20754
- fill: "currentColor",
20755
- height: "2.862",
20756
- transform: "translate(-104.11 46.717) rotate(-9.96)",
20757
- width: "2.001"
20758
- }),
20759
- /*#__PURE__*/ jsx("path", {
20760
- d: "M-104.308,45.589l-.287-1.635h-1.66v-2h3.34l.578,3.289Z",
20743
+ d: "M16.864,13.785,15.276,12.57l1.982-2.594L15.376,7.31l1.635-1.154,2.73,3.868Z",
20761
20744
  fill: "currentColor"
20762
- }),
20763
- /*#__PURE__*/ jsx("rect", {
20764
- fill: "currentColor",
20765
- height: "2",
20766
- transform: "translate(-110.911 41.954)",
20767
- width: "3.326"
20768
20745
  })
20769
20746
  ]
20770
- }),
20771
- /*#__PURE__*/ jsx("rect", {
20772
- fill: "none",
20773
- height: "20",
20774
- transform: "translate(-120 41)",
20775
- width: "20"
20776
20747
  })
20777
- ]
20778
- })
20748
+ })
20749
+ ]
20779
20750
  })
20780
20751
  });
20781
20752
  }
@@ -20785,174 +20756,71 @@ function SelectRectangle({ color, size, title, ...nativeProps }) {
20785
20756
  $color: color,
20786
20757
  $size: size,
20787
20758
  title: title,
20788
- children: /*#__PURE__*/ jsx("svg", {
20759
+ children: /*#__PURE__*/ jsxs("svg", {
20789
20760
  height: "20",
20790
20761
  viewBox: "0 0 20 20",
20791
20762
  width: "20",
20792
20763
  ...nativeProps,
20793
- children: /*#__PURE__*/ jsxs("g", {
20794
- transform: "translate(160 -41)",
20795
- children: [
20796
- /*#__PURE__*/ jsxs("g", {
20797
- children: [
20798
- /*#__PURE__*/ jsxs("g", {
20799
- fill: "none",
20800
- stroke: "currentColor",
20801
- strokeMiterlimit: "10",
20802
- strokeWidth: "2",
20803
- transform: "translate(-152 44) rotate(-90)",
20804
- children: [
20805
- /*#__PURE__*/ jsx("rect", {
20806
- height: "4",
20807
- stroke: "none",
20808
- width: "2"
20809
- }),
20810
- /*#__PURE__*/ jsx("rect", {
20811
- fill: "none",
20812
- height: "2",
20813
- x: "1",
20814
- y: "1"
20815
- })
20816
- ]
20817
- }),
20818
- /*#__PURE__*/ jsxs("g", {
20819
- fill: "none",
20820
- stroke: "currentColor",
20821
- strokeMiterlimit: "10",
20822
- strokeWidth: "2",
20823
- transform: "translate(-152 60) rotate(-90)",
20824
- children: [
20825
- /*#__PURE__*/ jsx("rect", {
20826
- height: "4",
20827
- stroke: "none",
20828
- width: "2"
20829
- }),
20830
- /*#__PURE__*/ jsx("rect", {
20831
- fill: "none",
20832
- height: "2",
20833
- x: "1",
20834
- y: "1"
20835
- })
20836
- ]
20837
- }),
20838
- /*#__PURE__*/ jsxs("g", {
20839
- fill: "none",
20840
- stroke: "currentColor",
20841
- strokeMiterlimit: "10",
20842
- strokeWidth: "2",
20843
- transform: "translate(-159 49)",
20844
- children: [
20845
- /*#__PURE__*/ jsx("rect", {
20846
- height: "4",
20847
- stroke: "none",
20848
- width: "2"
20849
- }),
20850
- /*#__PURE__*/ jsx("rect", {
20851
- fill: "none",
20852
- height: "2",
20853
- x: "1",
20854
- y: "1"
20855
- })
20856
- ]
20857
- }),
20858
- /*#__PURE__*/ jsxs("g", {
20859
- fill: "none",
20860
- stroke: "currentColor",
20861
- strokeMiterlimit: "10",
20862
- strokeWidth: "2",
20863
- transform: "translate(-143 49)",
20864
- children: [
20865
- /*#__PURE__*/ jsx("rect", {
20866
- height: "4",
20867
- stroke: "none",
20868
- width: "2"
20869
- }),
20870
- /*#__PURE__*/ jsx("rect", {
20871
- fill: "none",
20872
- height: "2",
20873
- x: "1",
20874
- y: "1"
20875
- })
20876
- ]
20877
- }),
20878
- /*#__PURE__*/ jsxs("g", {
20879
- children: [
20880
- /*#__PURE__*/ jsxs("g", {
20881
- fill: "none",
20882
- strokeMiterlimit: "10",
20883
- children: [
20884
- /*#__PURE__*/ jsx("path", {
20885
- d: "M-159,42v5h2V44h3V42Z",
20886
- stroke: "none"
20887
- }),
20888
- /*#__PURE__*/ jsx("path", {
20889
- d: "M -159 42 L -154 42 L -154 44 L -157 44 L -157 47 L -159 47 L -159 42 Z",
20890
- fill: "currentColor",
20891
- stroke: "none"
20892
- })
20893
- ]
20894
- }),
20895
- /*#__PURE__*/ jsxs("g", {
20896
- fill: "none",
20897
- strokeMiterlimit: "10",
20898
- children: [
20899
- /*#__PURE__*/ jsx("path", {
20900
- d: "M-146,42v2h3v3h2V42Z",
20901
- stroke: "none"
20902
- }),
20903
- /*#__PURE__*/ jsx("path", {
20904
- d: "M -146 42 L -141 42 L -141 47 L -143 47 L -143 44 L -146 44 L -146 42 Z",
20905
- fill: "currentColor",
20906
- stroke: "none"
20907
- })
20908
- ]
20909
- })
20910
- ]
20911
- }),
20912
- /*#__PURE__*/ jsxs("g", {
20913
- children: [
20914
- /*#__PURE__*/ jsxs("g", {
20915
- fill: "none",
20916
- strokeMiterlimit: "10",
20917
- children: [
20918
- /*#__PURE__*/ jsx("path", {
20919
- d: "M-157,55h-2v5h5V58h-3Z",
20920
- stroke: "none"
20921
- }),
20922
- /*#__PURE__*/ jsx("path", {
20923
- d: "M -159 55 L -157 55 L -157 58 L -154 58 L -154 60 L -159 60 L -159 55 Z",
20924
- fill: "currentColor",
20925
- stroke: "none"
20926
- })
20927
- ]
20928
- }),
20929
- /*#__PURE__*/ jsxs("g", {
20930
- fill: "none",
20931
- strokeMiterlimit: "10",
20932
- children: [
20933
- /*#__PURE__*/ jsx("path", {
20934
- d: "M-143,55v3h-3v2h5V55Z",
20935
- stroke: "none"
20936
- }),
20937
- /*#__PURE__*/ jsx("path", {
20938
- d: "M -143 55 L -141 55 L -141 60 L -146 60 L -146 58 L -143 58 L -143 55 Z",
20939
- fill: "currentColor",
20940
- stroke: "none"
20941
- })
20942
- ]
20943
- })
20944
- ]
20945
- })
20946
- ]
20947
- }),
20948
- /*#__PURE__*/ jsx("rect", {
20949
- fill: "none",
20950
- height: "20",
20951
- transform: "translate(-160 41)",
20952
- width: "20"
20953
- })
20954
- ]
20955
- })
20764
+ children: [
20765
+ /*#__PURE__*/ jsxs("g", {
20766
+ transform: "translate(160 -41)",
20767
+ children: [
20768
+ /*#__PURE__*/ jsx("rect", {
20769
+ fill: "currentColor",
20770
+ height: "4",
20771
+ transform: "translate(-152 44) rotate(-90)",
20772
+ width: "2"
20773
+ }),
20774
+ /*#__PURE__*/ jsx("rect", {
20775
+ fill: "currentColor",
20776
+ height: "4",
20777
+ transform: "translate(-152 60) rotate(-90)",
20778
+ width: "2"
20779
+ }),
20780
+ /*#__PURE__*/ jsx("rect", {
20781
+ fill: "currentColor",
20782
+ height: "4",
20783
+ transform: "translate(-159 49)",
20784
+ width: "2"
20785
+ }),
20786
+ /*#__PURE__*/ jsx("rect", {
20787
+ fill: "currentColor",
20788
+ height: "4",
20789
+ transform: "translate(-143 49)",
20790
+ width: "2"
20791
+ }),
20792
+ /*#__PURE__*/ jsxs("g", {
20793
+ children: [
20794
+ /*#__PURE__*/ jsx("path", {
20795
+ d: "M-159,42v5h2V44h3V42Z",
20796
+ fill: "currentColor"
20797
+ }),
20798
+ /*#__PURE__*/ jsx("path", {
20799
+ d: "M-146,42v2h3v3h2V42Z",
20800
+ fill: "currentColor"
20801
+ })
20802
+ ]
20803
+ }),
20804
+ /*#__PURE__*/ jsxs("g", {
20805
+ children: [
20806
+ /*#__PURE__*/ jsx("path", {
20807
+ d: "M-157,55h-2v5h5V58h-3Z",
20808
+ fill: "currentColor"
20809
+ }),
20810
+ /*#__PURE__*/ jsx("path", {
20811
+ d: "M-143,55v3h-3v2h5V55Z",
20812
+ fill: "currentColor"
20813
+ })
20814
+ ]
20815
+ })
20816
+ ]
20817
+ }),
20818
+ /*#__PURE__*/ jsx("rect", {
20819
+ fill: "none",
20820
+ height: "20",
20821
+ width: "20"
20822
+ })
20823
+ ]
20956
20824
  })
20957
20825
  });
20958
20826
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mtes-mct/monitor-ui",
3
3
  "description": "Common React components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
4
- "version": "24.4.0",
4
+ "version": "24.6.0",
5
5
  "license": "AGPL-3.0",
6
6
  "type": "module",
7
7
  "engines": {
@@ -12,7 +12,7 @@
12
12
  "@tanstack/react-table": "8.20.5",
13
13
  "@tanstack/react-virtual": "beta",
14
14
  "prop-types": "15.8.1",
15
- "tslib": "2.8.0"
15
+ "tslib": "2.8.1"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "@sentry/react": "^7.0.0 || ^8.0.0",