@mtes-mct/monitor-ui 13.1.0 → 13.2.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [13.1.0](https://github.com/MTES-MCT/monitor-ui/compare/v13.0.0...v13.1.0) (2024-03-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * **fields:** add isRequired prop and update label color on error ([88b1bd1](https://github.com/MTES-MCT/monitor-ui/commit/88b1bd10c6c989bffab5125994775c5d0ca23139))
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **components:** fix Dropdown border-radius ([77afbd1](https://github.com/MTES-MCT/monitor-ui/commit/77afbd15abc0cbc4297fdebb8079be80107f8775))
12
+
1
13
  ## [13.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v12.4.0...v13.0.0) (2024-03-01)
2
14
 
3
15
 
package/index.js CHANGED
@@ -76065,13 +76065,13 @@ function humanizePastDate(missionUpdatedAtUtc) {
76065
76065
  const updatedTime = updatedDate.format('HH[h]mm');
76066
76066
  const today = customDayjs().utc();
76067
76067
  if (updatedDate.isSame(today, 'day')) {
76068
- return `aujourdhui à ${updatedTime} (UTC)`;
76068
+ return `aujourdhui à ${updatedTime}`;
76069
76069
  }
76070
76070
  const yesterday = customDayjs().utc().subtract(1, 'day');
76071
76071
  if (updatedDate.isSame(yesterday, 'day')) {
76072
- return `hier à ${updatedTime} (UTC)`;
76072
+ return `hier à ${updatedTime}`;
76073
76073
  }
76074
- return `le ${updatedDate.format('DD/MM/YYYY')} à ${updatedTime} (UTC)`;
76074
+ return `le ${updatedDate.format('DD/MM/YYYY')} à ${updatedTime}`;
76075
76075
  }
76076
76076
 
76077
76077
  function isArray(value) {
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": "13.1.0",
4
+ "version": "13.2.0",
5
5
  "license": "AGPL-3.0",
6
6
  "type": "module",
7
7
  "engines": {