@mtes-mct/monitor-ui 8.6.1 → 8.8.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mtes-mct/monitor-ui",
3
3
  "description": "Common React UI components and styles for Monitorfish and Monitorenv.",
4
- "version": "8.6.1",
4
+ "version": "8.8.0",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Reset({ color, size, ...nativeProps }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function SortSelectedDown({ color, size, ...nativeProps }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function SortSelectedUp({ color, size, ...nativeProps }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function SortingChevrons({ color, size, ...nativeProps }: IconProps): import("react/jsx-runtime").JSX.Element;
@@ -52,6 +52,7 @@ import { Plane } from './Plane';
52
52
  import { Plus } from './Plus';
53
53
  import { Reject } from './Reject';
54
54
  import { Report } from './Report';
55
+ import { Reset } from './Reset';
55
56
  import { Save } from './Save';
56
57
  import { Search } from './Search';
57
58
  import { SelectCircle } from './SelectCircle';
@@ -62,6 +63,9 @@ import { Semaphore } from './Semaphore';
62
63
  import { ShowErsMessages } from './ShowErsMessages';
63
64
  import { ShowXml } from './ShowXml';
64
65
  import { SortingArrows } from './SortingArrows';
66
+ import { SortingChevrons } from './SortingChevrons';
67
+ import { SortSelectedDown } from './SortSelectedDown';
68
+ import { SortSelectedUp } from './SortSelectedUp';
65
69
  import { Summary } from './Summary';
66
70
  import { Tag } from './Tag';
67
71
  import { Target } from './Target';
@@ -69,4 +73,4 @@ import { Unlock } from './Unlock';
69
73
  import { Vessel } from './Vessel';
70
74
  import { ViewOnMap } from './ViewOnMap';
71
75
  import { Vms } from './Vms';
72
- export { ActivityFeed, Alert, Anchor, Archive, Attention, Calendar, Check, Chevron, Clock, Close, Confirm, Control, Delete, Display, DoubleChevron, Download, Drapeau, Duplicate, Edit, EditBis, Expand, Favorite, FilledArrow, Filter, FilterBis, Fishery, FishingEngine, FleetSegment, Focus, FocusVessel, FocusZones, Hide, Info, Infringement, Landmark, List, MapLayers, MeasureAngle, MeasureBrokenLine, MeasureCircle, MeasureLine, Minus, MissionAction, More, Note, Observation, Pin, PinFilled, Pinpoint, PinpointHide, Plane, Plus, Reject, Report, Save, Search, SelectCircle, SelectPolygon, SelectRectangle, SelectZone, Semaphore, ShowErsMessages, ShowXml, SortingArrows, Summary, Tag, Target, Unlock, Vessel, ViewOnMap, Vms };
76
+ export { ActivityFeed, Alert, Anchor, Archive, Attention, Calendar, Check, Chevron, Clock, Close, Confirm, Control, Delete, Display, DoubleChevron, Download, Drapeau, Duplicate, Edit, EditBis, Expand, Favorite, FilledArrow, Filter, FilterBis, Fishery, FishingEngine, FleetSegment, Focus, FocusVessel, FocusZones, Hide, Info, Infringement, Landmark, List, MapLayers, MeasureAngle, MeasureBrokenLine, MeasureCircle, MeasureLine, Minus, MissionAction, More, Note, Observation, Pin, PinFilled, Pinpoint, PinpointHide, Plane, Plus, Reject, Report, Reset, Save, Search, SelectCircle, SelectPolygon, SelectRectangle, SelectZone, Semaphore, ShowErsMessages, ShowXml, SortSelectedDown, SortSelectedUp, SortingArrows, SortingChevrons, Summary, Tag, Target, Unlock, Vessel, ViewOnMap, Vms };
package/src/index.d.ts CHANGED
@@ -62,6 +62,7 @@ export { useKey } from './hooks/useKey';
62
62
  export { NewWindowContext, useNewWindow } from './hooks/useNewWindow';
63
63
  export { usePrevious } from './hooks/usePrevious';
64
64
  export { CustomSearch } from './libs/CustomSearch';
65
+ export { cleanString } from './utils/cleanString';
65
66
  export { customDayjs } from './utils/customDayjs';
66
67
  export { getCoordinates, coordinatesAreDistinct } from './utils/coordinates';
67
68
  export { getLocalizedDayjs } from './utils/getLocalizedDayjs';
@@ -74,7 +75,9 @@ export { isDefined } from './utils/isDefined';
74
75
  export { isNumeric } from './utils/isNumeric';
75
76
  export { isObject } from './utils/isObject';
76
77
  export { logSoftError } from './utils/logSoftError';
78
+ export { normalizeString } from './utils/normalizeString';
77
79
  export { nullify } from './utils/nullify';
80
+ export { pluralize } from './utils/pluralize';
78
81
  export { stopMouseEventPropagation } from './utils/stopMouseEventPropagation';
79
82
  export { undefine } from './utils/undefine';
80
83
  export type { PartialTheme, Theme } from './theme';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Pluralize a given lowercase string.
3
+ */
4
+ export declare function pluralize(text: string, count: number): string;