@mtes-mct/monitor-ui 10.3.1 → 10.5.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 components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
4
- "version": "10.3.1",
4
+ "version": "10.5.0",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
@@ -0,0 +1,7 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ import { Level } from '../constants';
3
+ export type MessageProps = HTMLAttributes<HTMLDivElement> & {
4
+ children?: string | undefined;
5
+ level?: Level | undefined;
6
+ };
7
+ export declare function Message({ children, level, ...nativeProps }: MessageProps): import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,12 @@ export declare enum Accent {
3
3
  SECONDARY = "SECONDARY",
4
4
  TERTIARY = "TERTIARY"
5
5
  }
6
+ export declare enum Level {
7
+ ERROR = "ERROR",
8
+ INFO = "INFO",
9
+ SUCCESS = "SUCCESS",
10
+ WARNING = "WARNING"
11
+ }
6
12
  export declare enum CoordinatesFormat {
7
13
  DECIMAL_DEGREES = "DD",
8
14
  DEGREES_MINUTES_DECIMALS = "DMD",
package/src/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import 'dayjs/plugin/quarterOfYear';
5
5
  import 'dayjs/plugin/timezone';
6
6
  import 'dayjs/plugin/updateLocale';
7
7
  import 'dayjs/plugin/utc';
8
- export { Accent, CoordinatesFormat, Size, OPENLAYERS_PROJECTION, TagBullet, WSG84_PROJECTION } from './constants';
8
+ export { Accent, Level, CoordinatesFormat, Size, OPENLAYERS_PROJECTION, TagBullet, WSG84_PROJECTION } from './constants';
9
9
  export { GlobalStyle } from './GlobalStyle';
10
10
  export { OnlyFontGlobalStyle } from './OnlyFontGlobalStyle';
11
11
  export { THEME } from './theme';
@@ -15,8 +15,9 @@ export { Dropdown } from './components/Dropdown';
15
15
  export { NewWindow } from './components/NewWindow';
16
16
  export { NotificationEvent, Notifier } from './components/Notifier';
17
17
  export { SideMenu } from './components/SideMenu';
18
- export { SingleTag } from './components/SingleTag';
18
+ export { SingleTag } from './elements/SingleTag';
19
19
  export { MapMenuDialog } from './components/MapMenuDialog';
20
+ export { Message } from './components/Message';
20
21
  export { Button } from './elements/Button';
21
22
  export { Field } from './elements/Field';
22
23
  export { Fieldset } from './elements/Fieldset';
@@ -53,6 +54,7 @@ export { FormikSelect } from './formiks/FormikSelect';
53
54
  export { FormikTextarea } from './formiks/FormikTextarea';
54
55
  export { FormikTextInput } from './formiks/FormikTextInput';
55
56
  export * as Icon from './icons';
57
+ export { ExclamationPoint } from './symbols/ExclamationPoint';
56
58
  export { useClickOutsideEffect } from './hooks/useClickOutsideEffect';
57
59
  export { useFieldControl } from './hooks/useFieldControl';
58
60
  export { useForceUpdate } from './hooks/useForceUpdate';
@@ -88,7 +90,8 @@ export type { DropdownProps, DropdownItemProps } from './components/Dropdown';
88
90
  export type { NewWindowProps } from './components/NewWindow';
89
91
  export type { NotifierProps } from './components/Notifier';
90
92
  export type { SideMenuProps } from './components/SideMenu';
91
- export type { SingleTagProps } from './components/SingleTag';
93
+ export type { SingleTagProps } from './elements/SingleTag';
94
+ export type { MessageProps } from './components/Message';
92
95
  export type { ButtonProps } from './elements/Button';
93
96
  export type { FieldProps } from './elements/Field';
94
97
  export type { FieldsetProps } from './elements/Fieldset';
@@ -98,6 +101,7 @@ export type { LabelProps } from './elements/Label';
98
101
  export type { LegendProps } from './elements/Legend';
99
102
  export type { TagProps } from './elements/Tag';
100
103
  export type { TagGroupProps } from './elements/TagGroup';
104
+ export type { ExclamationPointProps } from './symbols/ExclamationPoint';
101
105
  export type { SearchProps } from './fields/Search';
102
106
  export type { CheckboxProps } from './fields/Checkbox';
103
107
  export type { DatePickerWithDateDateProps, DatePickerWithStringDateProps } from './fields/DatePicker';
@@ -0,0 +1,9 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export type ExclamationPointProps = HTMLAttributes<HTMLSpanElement> & {
3
+ backgroundColor?: string | undefined;
4
+ color?: string | undefined;
5
+ };
6
+ export declare const ExclamationPoint: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, HTMLAttributes<HTMLSpanElement> & {
7
+ backgroundColor?: string | undefined;
8
+ color?: string | undefined;
9
+ }, never>;
File without changes