@mtes-mct/monitor-ui 2.3.0 → 2.3.2

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 (132) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/config/playwright.config.d.ts +3 -0
  3. package/e2e/fields.spec.d.ts +1 -0
  4. package/index.js +28 -37
  5. package/index.js.map +1 -1
  6. package/package.json +6 -3
  7. package/{GlobalStyle.d.ts → src/GlobalStyle.d.ts} +0 -0
  8. package/{ThemeProvider.d.ts → src/ThemeProvider.d.ts} +0 -0
  9. package/{components → src/components}/Dropdown/Item.d.ts +0 -0
  10. package/{components → src/components}/Dropdown/index.d.ts +0 -0
  11. package/{constants.d.ts → src/constants.d.ts} +0 -0
  12. package/{elements → src/elements}/Button.d.ts +0 -0
  13. package/{elements → src/elements}/Field.d.ts +0 -0
  14. package/{elements → src/elements}/Fieldset.d.ts +0 -0
  15. package/{elements → src/elements}/IconBox.d.ts +0 -0
  16. package/{elements → src/elements}/IconButton.d.ts +0 -0
  17. package/{elements → src/elements}/Label.d.ts +0 -0
  18. package/{elements → src/elements}/Legend.d.ts +0 -0
  19. package/{elements → src/elements}/Tag/Disk.d.ts +0 -0
  20. package/{elements → src/elements}/Tag/constants.d.ts +0 -0
  21. package/{elements → src/elements}/Tag/index.d.ts +0 -0
  22. package/{elements → src/elements}/TagGroup.d.ts +0 -0
  23. package/{fields → src/fields}/AutoComplete.d.ts +0 -0
  24. package/{fields → src/fields}/Checkbox.d.ts +0 -0
  25. package/{fields → src/fields}/DatePicker/CalendarPicker.d.ts +2 -0
  26. package/{fields → src/fields}/DatePicker/index.d.ts +3 -2
  27. package/{fields → src/fields}/DateRangePicker/DateInput.d.ts +0 -0
  28. package/{fields → src/fields}/DateRangePicker/NumberInput.d.ts +0 -0
  29. package/{fields → src/fields}/DateRangePicker/RangeCalendarPicker.d.ts +0 -0
  30. package/{fields → src/fields}/DateRangePicker/RangedTimePicker.d.ts +0 -0
  31. package/{fields → src/fields}/DateRangePicker/TimeInput.d.ts +2 -0
  32. package/{fields → src/fields}/DateRangePicker/constants.d.ts +0 -0
  33. package/{fields → src/fields}/DateRangePicker/index.d.ts +3 -2
  34. /package/{fields → src/fields}/DateRangePicker/types.d.ts +0 -0
  35. /package/{fields → src/fields}/DateRangePicker/utils.d.ts +0 -0
  36. /package/{fields → src/fields}/MultiCheckbox.d.ts +0 -0
  37. /package/{fields → src/fields}/MultiRadio.d.ts +0 -0
  38. /package/{fields → src/fields}/MultiSelect.d.ts +0 -0
  39. /package/{fields → src/fields}/MultiZoneEditor/index.d.ts +0 -0
  40. /package/{fields → src/fields}/NumberInput.d.ts +0 -0
  41. /package/{fields → src/fields}/Select.d.ts +0 -0
  42. /package/{fields → src/fields}/TextInput.d.ts +0 -0
  43. /package/{fields → src/fields}/Textarea.d.ts +0 -0
  44. /package/{formiks → src/formiks}/FormikAutoComplete.d.ts +0 -0
  45. /package/{formiks → src/formiks}/FormikCheckbox.d.ts +0 -0
  46. /package/{formiks → src/formiks}/FormikDatePicker.d.ts +0 -0
  47. /package/{formiks → src/formiks}/FormikDateRangePicker.d.ts +0 -0
  48. /package/{formiks → src/formiks}/FormikEffect.d.ts +0 -0
  49. /package/{formiks → src/formiks}/FormikMultiCheckbox.d.ts +0 -0
  50. /package/{formiks → src/formiks}/FormikMultiRadio.d.ts +0 -0
  51. /package/{formiks → src/formiks}/FormikMultiSelect.d.ts +0 -0
  52. /package/{formiks → src/formiks}/FormikNumberInput.d.ts +0 -0
  53. /package/{formiks → src/formiks}/FormikSelect.d.ts +0 -0
  54. /package/{formiks → src/formiks}/FormikTextInput.d.ts +0 -0
  55. /package/{formiks → src/formiks}/FormikTextarea.d.ts +0 -0
  56. /package/{hooks → src/hooks}/useForceUpdate.d.ts +0 -0
  57. /package/{icons → src/icons}/ActivityFeed.d.ts +0 -0
  58. /package/{icons → src/icons}/Alert.d.ts +0 -0
  59. /package/{icons → src/icons}/Anchor.d.ts +0 -0
  60. /package/{icons → src/icons}/Archive.d.ts +0 -0
  61. /package/{icons → src/icons}/Attention.d.ts +0 -0
  62. /package/{icons → src/icons}/Calendar.d.ts +0 -0
  63. /package/{icons → src/icons}/Check.d.ts +0 -0
  64. /package/{icons → src/icons}/Chevron.d.ts +0 -0
  65. /package/{icons → src/icons}/Clock.d.ts +0 -0
  66. /package/{icons → src/icons}/Close.d.ts +0 -0
  67. /package/{icons → src/icons}/Confirm.d.ts +0 -0
  68. /package/{icons → src/icons}/Control.d.ts +0 -0
  69. /package/{icons → src/icons}/Delete.d.ts +0 -0
  70. /package/{icons → src/icons}/Display.d.ts +0 -0
  71. /package/{icons → src/icons}/DoubleChevron.d.ts +0 -0
  72. /package/{icons → src/icons}/Download.d.ts +0 -0
  73. /package/{icons → src/icons}/Drapeau.d.ts +0 -0
  74. /package/{icons → src/icons}/Duplicate.d.ts +0 -0
  75. /package/{icons → src/icons}/Edit.d.ts +0 -0
  76. /package/{icons → src/icons}/EditBis.d.ts +0 -0
  77. /package/{icons → src/icons}/Favorite.d.ts +0 -0
  78. /package/{icons → src/icons}/FilledArrow.d.ts +0 -0
  79. /package/{icons → src/icons}/Filter.d.ts +0 -0
  80. /package/{icons → src/icons}/FilterBis.d.ts +0 -0
  81. /package/{icons → src/icons}/Fishery.d.ts +0 -0
  82. /package/{icons → src/icons}/FishingEngine.d.ts +0 -0
  83. /package/{icons → src/icons}/FleetSegment.d.ts +0 -0
  84. /package/{icons → src/icons}/Focus.d.ts +0 -0
  85. /package/{icons → src/icons}/FocusVessel.d.ts +0 -0
  86. /package/{icons → src/icons}/FocusZones.d.ts +0 -0
  87. /package/{icons → src/icons}/Hide.d.ts +0 -0
  88. /package/{icons → src/icons}/Info.d.ts +0 -0
  89. /package/{icons → src/icons}/Infringement.d.ts +0 -0
  90. /package/{icons → src/icons}/Landmark.d.ts +0 -0
  91. /package/{icons → src/icons}/List.d.ts +0 -0
  92. /package/{icons → src/icons}/MapLayers.d.ts +0 -0
  93. /package/{icons → src/icons}/MeasureAngle.d.ts +0 -0
  94. /package/{icons → src/icons}/MeasureBrokenLine.d.ts +0 -0
  95. /package/{icons → src/icons}/MeasureCircle.d.ts +0 -0
  96. /package/{icons → src/icons}/MeasureLine.d.ts +0 -0
  97. /package/{icons → src/icons}/Minus.d.ts +0 -0
  98. /package/{icons → src/icons}/More.d.ts +0 -0
  99. /package/{icons → src/icons}/Note.d.ts +0 -0
  100. /package/{icons → src/icons}/Observation.d.ts +0 -0
  101. /package/{icons → src/icons}/Pin.d.ts +0 -0
  102. /package/{icons → src/icons}/Pinpoint.d.ts +0 -0
  103. /package/{icons → src/icons}/PinpointHide.d.ts +0 -0
  104. /package/{icons → src/icons}/Plane.d.ts +0 -0
  105. /package/{icons → src/icons}/Plus.d.ts +0 -0
  106. /package/{icons → src/icons}/Reject.d.ts +0 -0
  107. /package/{icons → src/icons}/Save.d.ts +0 -0
  108. /package/{icons → src/icons}/Search.d.ts +0 -0
  109. /package/{icons → src/icons}/SelectCircle.d.ts +0 -0
  110. /package/{icons → src/icons}/SelectPolygon.d.ts +0 -0
  111. /package/{icons → src/icons}/SelectRectangle.d.ts +0 -0
  112. /package/{icons → src/icons}/SelectZone.d.ts +0 -0
  113. /package/{icons → src/icons}/ShowErsMessages.d.ts +0 -0
  114. /package/{icons → src/icons}/ShowXml.d.ts +0 -0
  115. /package/{icons → src/icons}/SortingArrows.d.ts +0 -0
  116. /package/{icons → src/icons}/Summary.d.ts +0 -0
  117. /package/{icons → src/icons}/Tag.d.ts +0 -0
  118. /package/{icons → src/icons}/Unlock.d.ts +0 -0
  119. /package/{icons → src/icons}/Vessel.d.ts +0 -0
  120. /package/{icons → src/icons}/ViewOnMap.d.ts +0 -0
  121. /package/{icons → src/icons}/index.d.ts +0 -0
  122. /package/{index.d.ts → src/index.d.ts} +0 -0
  123. /package/{theme.d.ts → src/theme.d.ts} +0 -0
  124. /package/{types.d.ts → src/types.d.ts} +0 -0
  125. /package/{utils → src/utils}/capitalizeFirstLetter.d.ts +0 -0
  126. /package/{utils → src/utils}/cleanInputString.d.ts +0 -0
  127. /package/{utils → src/utils}/dayjs.d.ts +0 -0
  128. /package/{utils → src/utils}/getLocalizedDayjs.d.ts +0 -0
  129. /package/{utils → src/utils}/getUtcDayjs.d.ts +0 -0
  130. /package/{utils → src/utils}/getUtcizedDayjs.d.ts +0 -0
  131. /package/{utils → src/utils}/sortDates.d.ts +0 -0
  132. /package/{utils → src/utils}/stopMouseEventPropagation.d.ts +0 -0
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": "2.3.0",
4
+ "version": "2.3.2",
5
5
  "license": "AGPL-3.0",
6
6
  "engines": {
7
7
  "node": "18",
@@ -31,7 +31,10 @@
31
31
  "bugs": {
32
32
  "url": "https://github.com/MTES-MCT/monitor-ui/issues"
33
33
  },
34
- "exports": "./index.js",
34
+ "exports": {
35
+ ".": "./index.js",
36
+ "./assets/": "./assets/"
37
+ },
35
38
  "homepage": "https://mtes-mct.github.io/monitor-ui/",
36
39
  "publishConfig": {
37
40
  "access": "public",
@@ -43,5 +46,5 @@
43
46
  },
44
47
  "sideEffects": false,
45
48
  "type": "module",
46
- "types": "./index.d.ts"
49
+ "types": "./src/index.d.ts"
47
50
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,4 +6,6 @@ type CalendarPickerProps = {
6
6
  onChange: (nextDateTuple: DateTuple) => Promisable<void>;
7
7
  };
8
8
  export declare function CalendarPicker({ defaultValue, isHistorical, onChange }: CalendarPickerProps): JSX.Element;
9
+ export declare const RsuiteCalendarPickerModalGlobalStyle: any;
10
+ export declare const Box: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
11
  export {};
@@ -1,5 +1,6 @@
1
+ import type { HTMLAttributes } from 'react';
1
2
  import type { Promisable } from 'type-fest';
2
- export type DatePickerProps = {
3
+ export type DatePickerProps = Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> & {
3
4
  defaultValue?: Date;
4
5
  /** Only allow past dates until today. */
5
6
  isHistorical?: boolean;
@@ -21,4 +22,4 @@ export type DatePickerProps = {
21
22
  onChange?: (nextUtcDate: Date) => Promisable<void>;
22
23
  withTime?: boolean;
23
24
  };
24
- export declare function DatePicker({ defaultValue, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime }: DatePickerProps): JSX.Element;
25
+ export declare function DatePicker({ defaultValue, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime, ...nativeProps }: DatePickerProps): JSX.Element;
@@ -4,6 +4,7 @@ import type { DateOrTimeInputRef, TimeTuple } from './types';
4
4
  import type { Promisable } from 'type-fest';
5
5
  export type TimeInputProps = Pick<NumberInputProps, 'onBack' | 'onPrevious' | 'onNext'> & {
6
6
  defaultValue?: TimeTuple;
7
+ isEndDate?: boolean;
7
8
  isLight: boolean;
8
9
  isStartDate?: boolean;
9
10
  minutesRange?: number;
@@ -15,6 +16,7 @@ export type TimeInputProps = Pick<NumberInputProps, 'onBack' | 'onPrevious' | 'o
15
16
  };
16
17
  export declare const TimeInput: import("react").ForwardRefExoticComponent<Pick<NumberInputProps, "onBack" | "onNext" | "onPrevious"> & {
17
18
  defaultValue?: TimeTuple | undefined;
19
+ isEndDate?: boolean | undefined;
18
20
  isLight: boolean;
19
21
  isStartDate?: boolean | undefined;
20
22
  minutesRange?: number | undefined;
@@ -1,6 +1,7 @@
1
1
  import type { DateRange } from '../../types';
2
+ import type { HTMLAttributes } from 'react';
2
3
  import type { Promisable } from 'type-fest';
3
- export type DateRangePickerProps = {
4
+ export type DateRangePickerProps = Omit<HTMLAttributes<HTMLFieldSetElement>, 'defaultValue' | 'onChange'> & {
4
5
  defaultValue?: DateRange;
5
6
  /** Only allow past dates until today. */
6
7
  isHistorical?: boolean;
@@ -22,4 +23,4 @@ export type DateRangePickerProps = {
22
23
  onChange?: (nextUtcDateRange: DateRange) => Promisable<void>;
23
24
  withTime?: boolean;
24
25
  };
25
- export declare function DateRangePicker({ defaultValue, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime }: DateRangePickerProps): JSX.Element;
26
+ export declare function DateRangePicker({ defaultValue, isHistorical, isLabelHidden, isLight, label, minutesRange, onChange, withTime, ...nativeProps }: DateRangePickerProps): JSX.Element;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes