@mtes-mct/monitor-ui 1.7.4 → 1.9.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 (76) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/GlobalStyle.d.ts +1 -0
  3. package/assets/fonts/04639b624be79623.woff2 +0 -0
  4. package/assets/fonts/0dde8bf21b805f48.woff2 +0 -0
  5. package/assets/fonts/4cc35a5f882145ec.woff2 +0 -0
  6. package/assets/fonts/6299dc189e426ddc.woff2 +0 -0
  7. package/assets/fonts/777bdf972910d740.woff2 +0 -0
  8. package/assets/fonts/a7d48cd4c9af2970.woff2 +0 -0
  9. package/assets/fonts/caf80cdb0cce3a53.woff2 +0 -0
  10. package/assets/fonts/f8b1684c8481e046.woff2 +0 -0
  11. package/assets/{rsuite-override.css → stylesheets/rsuite-override.css} +0 -0
  12. package/contants.d.ts +10 -0
  13. package/elements/Button.d.ts +10 -0
  14. package/elements/IconBox.d.ts +6 -0
  15. package/icons/ActivityFeed.d.ts +2 -0
  16. package/icons/Alert.d.ts +2 -0
  17. package/icons/Archive.d.ts +2 -0
  18. package/icons/Attention.d.ts +2 -0
  19. package/icons/Calendar.d.ts +2 -0
  20. package/icons/Check.d.ts +2 -0
  21. package/icons/Chevron.d.ts +2 -0
  22. package/icons/Clock.d.ts +2 -0
  23. package/icons/Close.d.ts +2 -0
  24. package/icons/Confirm.d.ts +2 -0
  25. package/icons/Control.d.ts +2 -0
  26. package/icons/Delete.d.ts +2 -0
  27. package/icons/Display.d.ts +2 -0
  28. package/icons/DoubleChevron.d.ts +2 -0
  29. package/icons/Download.d.ts +2 -0
  30. package/icons/Duplicate.d.ts +2 -0
  31. package/icons/Edit.d.ts +2 -0
  32. package/icons/Favorite.d.ts +2 -0
  33. package/icons/FilledArrow.d.ts +2 -0
  34. package/icons/Filter.d.ts +2 -0
  35. package/icons/Fishery.d.ts +2 -0
  36. package/icons/FishingEngine.d.ts +2 -0
  37. package/icons/FleetSegment.d.ts +2 -0
  38. package/icons/Focus.d.ts +2 -0
  39. package/icons/FocusVessel.d.ts +2 -0
  40. package/icons/FocusZones.d.ts +2 -0
  41. package/icons/Hide.d.ts +2 -0
  42. package/icons/Info.d.ts +2 -0
  43. package/icons/Infringement.d.ts +2 -0
  44. package/icons/Landmark.d.ts +2 -0
  45. package/icons/List.d.ts +2 -0
  46. package/icons/MeasureAngle.d.ts +2 -0
  47. package/icons/MeasureBrokenLine.d.ts +2 -0
  48. package/icons/MeasureCircle.d.ts +2 -0
  49. package/icons/MeasureLine.d.ts +2 -0
  50. package/icons/Minus.d.ts +2 -0
  51. package/icons/More.d.ts +2 -0
  52. package/icons/Observation.d.ts +2 -0
  53. package/icons/Pin.d.ts +2 -0
  54. package/icons/Pinpoint.d.ts +2 -0
  55. package/icons/PinpointHide.d.ts +2 -0
  56. package/icons/Plus.d.ts +2 -0
  57. package/icons/Reject.d.ts +2 -0
  58. package/icons/Save.d.ts +2 -0
  59. package/icons/Search.d.ts +2 -0
  60. package/icons/SelectPolygon.d.ts +2 -0
  61. package/icons/SelectRectangle.d.ts +2 -0
  62. package/icons/SelectZone.d.ts +2 -0
  63. package/icons/ShowErsMessages.d.ts +2 -0
  64. package/icons/ShowXml.d.ts +2 -0
  65. package/icons/SortingArrows.d.ts +2 -0
  66. package/icons/Summary.d.ts +2 -0
  67. package/icons/Tag.d.ts +2 -0
  68. package/icons/Vessel.d.ts +2 -0
  69. package/icons/ViewOnMap.d.ts +2 -0
  70. package/icons/index.d.ts +56 -0
  71. package/index.d.ts +7 -2
  72. package/index.js +3179 -2681
  73. package/index.js.map +1 -1
  74. package/package.json +1 -1
  75. package/{types/index.d.ts → types.d.ts} +3 -0
  76. package/constants.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # [1.8.0](https://github.com/MTES-MCT/monitor-ui/compare/v1.7.4...v1.8.0) (2022-11-30)
2
+
3
+
4
+ ### Features
5
+
6
+ * **icons:** add size prop ([#84](https://github.com/MTES-MCT/monitor-ui/issues/84)) ([5eec53c](https://github.com/MTES-MCT/monitor-ui/commit/5eec53c5afbbb44ef82fea9b36cf0da598e2188c))
7
+ * **icons:** integrate normalized icons as React components ([#83](https://github.com/MTES-MCT/monitor-ui/issues/83)) ([5606ba4](https://github.com/MTES-MCT/monitor-ui/commit/5606ba4cd7dad570039f3246a94b3dee6501e177))
8
+
9
+ ## [1.7.4](https://github.com/MTES-MCT/monitor-ui/compare/v1.7.3...v1.7.4) (2022-11-30)
10
+
1
11
  ## [1.7.3](https://github.com/MTES-MCT/monitor-ui/compare/v1.7.2...v1.7.3) (2022-11-30)
2
12
 
3
13
 
@@ -0,0 +1 @@
1
+ export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
package/contants.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export declare enum Accent {
2
+ PRIMARY = "PRIMARY",
3
+ SECONDARY = "SECONDARY",
4
+ TERTIARY = "TERTIARY"
5
+ }
6
+ export declare enum Size {
7
+ LARGE = "LARGE",
8
+ NORMAL = "NORMAL",
9
+ SMALL = "SMALL"
10
+ }
@@ -0,0 +1,10 @@
1
+ import { Accent, Size } from '../contants';
2
+ import type { IconProps } from '../types';
3
+ import type { ButtonHTMLAttributes, FunctionComponent } from 'react';
4
+ export declare type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
5
+ Icon?: FunctionComponent<IconProps>;
6
+ accent?: Accent;
7
+ isFullWidth?: boolean;
8
+ size?: Size;
9
+ };
10
+ export declare function Button({ accent, children, Icon, isFullWidth, size, type, ...nativeProps }: ButtonProps): JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare type IconBoxProps = {
2
+ color?: string;
3
+ /** In REM */
4
+ size?: number;
5
+ };
6
+ export declare const IconBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IconBoxProps, never>;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function ActivityFeed({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Alert({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Archive({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Attention({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Calendar({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Check({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Chevron({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Clock({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Close({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Confirm({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Control({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Delete({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Display({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function DoubleChevron({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Download({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Duplicate({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Edit({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Favorite({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function FilledArrow({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Filter({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Fishery({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function FishingEngine({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function FleetSegment({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Focus({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function FocusVessel({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function FocusZones({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Hide({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Info({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Infringement({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Landmark({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function List({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function MeasureAngle({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function MeasureBrokenLine({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function MeasureCircle({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function MeasureLine({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Minus({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function More({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Observation({ color, size, ...nativeProps }: IconProps): JSX.Element;
package/icons/Pin.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Pin({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Pinpoint({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function PinpointHide({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Plus({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Reject({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Save({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Search({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function SelectPolygon({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function SelectRectangle({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function SelectZone({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function ShowErsMessages({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function ShowXml({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function SortingArrows({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Summary({ color, size, ...nativeProps }: IconProps): JSX.Element;
package/icons/Tag.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Tag({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function Vessel({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function ViewOnMap({ color, size, ...nativeProps }: IconProps): JSX.Element;
@@ -0,0 +1,56 @@
1
+ import { ActivityFeed } from './ActivityFeed';
2
+ import { Alert } from './Alert';
3
+ import { Archive } from './Archive';
4
+ import { Attention } from './Attention';
5
+ import { Calendar } from './Calendar';
6
+ import { Check } from './Check';
7
+ import { Chevron } from './Chevron';
8
+ import { Clock } from './Clock';
9
+ import { Close } from './Close';
10
+ import { Confirm } from './Confirm';
11
+ import { Control } from './Control';
12
+ import { Delete } from './Delete';
13
+ import { Display } from './Display';
14
+ import { DoubleChevron } from './DoubleChevron';
15
+ import { Download } from './Download';
16
+ import { Duplicate } from './Duplicate';
17
+ import { Edit } from './Edit';
18
+ import { Favorite } from './Favorite';
19
+ import { FilledArrow } from './FilledArrow';
20
+ import { Filter } from './Filter';
21
+ import { Fishery } from './Fishery';
22
+ import { FishingEngine } from './FishingEngine';
23
+ import { FleetSegment } from './FleetSegment';
24
+ import { Focus } from './Focus';
25
+ import { FocusVessel } from './FocusVessel';
26
+ import { FocusZones } from './FocusZones';
27
+ import { Hide } from './Hide';
28
+ import { Info } from './Info';
29
+ import { Infringement } from './Infringement';
30
+ import { Landmark } from './Landmark';
31
+ import { List } from './List';
32
+ import { MeasureAngle } from './MeasureAngle';
33
+ import { MeasureBrokenLine } from './MeasureBrokenLine';
34
+ import { MeasureCircle } from './MeasureCircle';
35
+ import { MeasureLine } from './MeasureLine';
36
+ import { Minus } from './Minus';
37
+ import { More } from './More';
38
+ import { Observation } from './Observation';
39
+ import { Pin } from './Pin';
40
+ import { Pinpoint } from './Pinpoint';
41
+ import { PinpointHide } from './PinpointHide';
42
+ import { Plus } from './Plus';
43
+ import { Reject } from './Reject';
44
+ import { Save } from './Save';
45
+ import { Search } from './Search';
46
+ import { SelectPolygon } from './SelectPolygon';
47
+ import { SelectRectangle } from './SelectRectangle';
48
+ import { SelectZone } from './SelectZone';
49
+ import { ShowErsMessages } from './ShowErsMessages';
50
+ import { ShowXml } from './ShowXml';
51
+ import { SortingArrows } from './SortingArrows';
52
+ import { Summary } from './Summary';
53
+ import { Tag } from './Tag';
54
+ import { Vessel } from './Vessel';
55
+ import { ViewOnMap } from './ViewOnMap';
56
+ export { ActivityFeed, Alert, Archive, Attention, Calendar, Check, Chevron, Clock, Close, Confirm, Control, Delete, Display, DoubleChevron, Download, Duplicate, Edit, Favorite, FilledArrow, Filter, Fishery, FishingEngine, FleetSegment, Focus, FocusVessel, FocusZones, Hide, Info, Infringement, Landmark, List, MeasureAngle, MeasureBrokenLine, MeasureCircle, MeasureLine, Minus, More, Observation, Pin, Pinpoint, PinpointHide, Plus, Reject, Save, Search, SelectPolygon, SelectRectangle, SelectZone, ShowErsMessages, ShowXml, SortingArrows, Summary, Tag, Vessel, ViewOnMap };
package/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- export * as MUI from './constants';
1
+ export { GlobalStyle } from './GlobalStyle';
2
2
  export { THEME } from './theme';
3
+ export { ThemeProvider } from './ThemeProvider';
4
+ export { Button } from './elements/Button';
3
5
  export { Field } from './elements/Field';
4
6
  export { Fieldset } from './elements/Fieldset';
5
7
  export { Label } from './elements/Label';
@@ -23,8 +25,11 @@ export { FormikMultiRadio } from './formiks/FormikMultiRadio';
23
25
  export { FormikSelect } from './formiks/FormikSelect';
24
26
  export { FormikTextarea } from './formiks/FormikTextarea';
25
27
  export { FormikTextInput } from './formiks/FormikTextInput';
26
- export { ThemeProvider } from './ThemeProvider';
28
+ export * as Icon from './icons';
29
+ export { Accent, Size } from './contants';
30
+ export type { DateRange, IconProps, Option } from './types';
27
31
  export type { PartialTheme, Theme } from './theme';
32
+ export type { ButtonProps } from './elements/Button';
28
33
  export type { FieldProps } from './elements/Field';
29
34
  export type { FieldsetProps } from './elements/Fieldset';
30
35
  export type { LabelProps } from './elements/Label';