@mtes-mct/monitor-ui 3.0.1 → 3.1.1

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": "3.0.1",
4
+ "version": "3.1.1",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
@@ -3,10 +3,18 @@ export declare enum Accent {
3
3
  SECONDARY = "SECONDARY",
4
4
  TERTIARY = "TERTIARY"
5
5
  }
6
+ export declare enum CoordinatesFormat {
7
+ DECIMAL_DEGREES = "DD",
8
+ DEGREES_MINUTES_DECIMALS = "DMD",
9
+ DEGREES_MINUTES_SECONDS = "DMS"
10
+ }
6
11
  export declare enum Size {
7
12
  LARGE = "LARGE",
8
13
  NORMAL = "NORMAL",
9
14
  SMALL = "SMALL"
10
15
  }
16
+ export declare enum TagBullet {
17
+ DISK = "DISK"
18
+ }
11
19
  export declare const WSG84_PROJECTION = "EPSG:4326";
12
20
  export declare const OPENLAYERS_PROJECTION = "EPSG:3857";
@@ -1,29 +1,28 @@
1
1
  import { FunctionComponent, HTMLAttributes } from 'react';
2
- import { Accent } from '../../constants';
3
- import { TagBullet } from './constants';
2
+ import { Accent, TagBullet } from '../../constants';
4
3
  import type { IconProps } from '../../types';
5
4
  export type TagProps = HTMLAttributes<HTMLSpanElement> & {
6
- Icon?: FunctionComponent<IconProps>;
7
- accent?: Accent;
8
- bullet?: TagBullet;
9
- color?: string;
10
- isLight?: boolean;
5
+ Icon?: FunctionComponent<IconProps> | undefined;
6
+ accent?: Accent | undefined;
7
+ bullet?: TagBullet | undefined;
8
+ bulletColor?: string | undefined;
9
+ isLight?: boolean | undefined;
11
10
  };
12
- export declare function Tag({ accent, bullet, children, color, Icon, isLight, ...nativeProps }: TagProps): JSX.Element;
11
+ export declare function Tag({ accent, bullet, bulletColor, children, color, Icon, isLight, ...nativeProps }: TagProps): JSX.Element;
13
12
  export declare const PrimaryTag: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
14
- $color?: string;
13
+ $color?: string | undefined;
15
14
  $isLight: boolean;
16
15
  } & {
17
16
  $isLight: boolean;
18
17
  }, never>;
19
18
  export declare const SecondaryTag: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
20
- $color?: string;
19
+ $color?: string | undefined;
21
20
  $isLight: boolean;
22
21
  } & {
23
22
  $isLight: boolean;
24
23
  }, never>;
25
24
  export declare const TertiaryTag: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
26
- $color?: string;
25
+ $color?: string | undefined;
27
26
  $isLight: boolean;
28
27
  } & {
29
28
  $isLight: boolean;
@@ -1,4 +1,4 @@
1
- import { CoordinatesFormat } from './constants';
1
+ import { CoordinatesFormat } from '../../constants';
2
2
  import type { Coordinates } from '../../types';
3
3
  type DMDCoordinatesInputProps = {
4
4
  coordinates: Coordinates | undefined;
@@ -1,5 +1,5 @@
1
+ import type { CoordinatesFormat } from '../../constants';
1
2
  import type { Coordinates } from '../../types';
2
- import type { CoordinatesFormat } from './constants';
3
3
  type DMSCoordinatesInputProps = {
4
4
  coordinates: Coordinates | undefined;
5
5
  coordinatesFormat: CoordinatesFormat;
@@ -1,4 +1,4 @@
1
- import { CoordinatesFormat } from './constants';
1
+ import { CoordinatesFormat } from '../../constants';
2
2
  import type { FieldsetProps } from '../../elements/Fieldset';
3
3
  import type { Coordinates } from '../../types';
4
4
  import type { Promisable } from 'type-fest';
package/src/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- export { Accent, Size, OPENLAYERS_PROJECTION, WSG84_PROJECTION } from './constants';
1
+ export { Accent, CoordinatesFormat, Size, OPENLAYERS_PROJECTION, TagBullet, WSG84_PROJECTION } from './constants';
2
2
  export { GlobalStyle } from './GlobalStyle';
3
3
  export { OnlyFontGlobalStyle } from './OnlyFontGlobalStyle';
4
4
  export { THEME } from './theme';
5
5
  export { ThemeProvider } from './ThemeProvider';
6
- export { CoordinatesFormat } from './fields/CoordinatesInput/constants';
7
6
  export { Dropdown } from './components/Dropdown';
8
7
  export { SingleTag } from './components/SingleTag';
9
8
  export { Button } from './elements/Button';
@@ -1,3 +0,0 @@
1
- export declare enum TagBullet {
2
- DISK = "DISK"
3
- }
@@ -1,5 +0,0 @@
1
- export declare enum CoordinatesFormat {
2
- DECIMAL_DEGREES = "DD",
3
- DEGREES_MINUTES_DECIMALS = "DMD",
4
- DEGREES_MINUTES_SECONDS = "DMS"
5
- }