@mtes-mct/monitor-ui 8.1.1 → 8.3.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.1.1",
4
+ "version": "8.3.0",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": ">=18"
@@ -1,7 +1,9 @@
1
+ import { Accent } from '../../constants';
1
2
  import type { IconProps } from '../../types';
2
3
  import type { FunctionComponent } from 'react';
3
4
  import type { DropdownMenuItemProps as RsuiteDropdownMenuItemProps } from 'rsuite';
4
5
  export type DropdownItemProps = Omit<RsuiteDropdownMenuItemProps, 'as' | 'icon'> & {
5
6
  Icon?: FunctionComponent<IconProps>;
7
+ accent?: Accent | undefined;
6
8
  };
7
- export declare function Item({ Icon, ...originalProps }: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function Item({ accent, Icon, ...originalProps }: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,11 @@
1
+ import { Accent } from '../../constants';
1
2
  import type { DropdownItemProps } from './Item';
2
3
  import type { IconProps } from '../../types';
3
4
  import type { FunctionComponent } from 'react';
4
5
  import type { DropdownProps as RsuiteDropdownProps } from 'rsuite';
5
6
  export type DropdownProps = Omit<RsuiteDropdownProps, 'as' | 'icon'> & {
6
7
  Icon?: FunctionComponent<IconProps>;
8
+ accent?: Accent | undefined;
7
9
  };
8
10
  export declare const Dropdown: FunctionComponent<DropdownProps> & {
9
11
  Item: FunctionComponent<DropdownItemProps>;
@@ -0,0 +1,10 @@
1
+ import { IconButton } from '../../elements/IconButton';
2
+ export declare const MapMenuModal: {
3
+ Body: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ CloseButton: import("styled-components").StyledComponent<typeof IconButton, import("styled-components").DefaultTheme, {}, never>;
5
+ Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ Footer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ Title: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
9
+ VisibilityButton: import("styled-components").StyledComponent<typeof IconButton, import("styled-components").DefaultTheme, {}, never>;
10
+ };
@@ -1,7 +1,9 @@
1
1
  import { type HTMLAttributes } from 'react';
2
+ import { Accent } from '../constants';
2
3
  import type { Promisable } from 'type-fest';
3
4
  export type SingleTagProps = HTMLAttributes<HTMLDivElement> & {
5
+ accent?: Accent | undefined;
4
6
  children: string;
5
7
  onDelete: () => Promisable<void>;
6
8
  };
7
- export declare function SingleTag({ children, className, onDelete, ...nativeProps }: SingleTagProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function SingleTag({ accent, children, className, onDelete, ...nativeProps }: SingleTagProps): import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,8 @@ export declare const TableWithSelectableRows: {
8
8
  Table: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
9
9
  Td: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {
10
10
  $isCenter: boolean;
11
+ } & {
12
+ $hasRightBorder: boolean;
11
13
  }, never>;
12
14
  Th: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {}, never>;
13
15
  };
package/src/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { NewWindow } from './components/NewWindow';
16
16
  export { NotificationEvent, Notifier } from './components/Notifier';
17
17
  export { SideMenu } from './components/SideMenu';
18
18
  export { SingleTag } from './components/SingleTag';
19
+ export { MapMenuModal } from './components/MapMenuModal';
19
20
  export { Button } from './elements/Button';
20
21
  export { Field } from './elements/Field';
21
22
  export { Fieldset } from './elements/Fieldset';