@mtes-mct/monitor-ui 1.13.0 → 2.0.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/CHANGELOG.md +22 -0
- package/elements/IconBox.d.ts +5 -2
- package/elements/IconButton.d.ts +3 -1
- package/fields/AutoComplete.d.ts +15 -0
- package/fields/MultiSelect.d.ts +1 -1
- package/fields/TextInput.d.ts +1 -4
- package/fields/Textarea.d.ts +0 -3
- package/formiks/FormikAutoComplete.d.ts +3 -0
- package/icons/FilterBis.d.ts +2 -0
- package/icons/index.d.ts +2 -1
- package/index.d.ts +4 -0
- package/index.js +822 -124
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# [1.14.0](https://github.com/MTES-MCT/monitor-ui/compare/v1.13.0...v1.14.0) (2022-12-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **fields:** prefix styled custom props with $ ([#127](https://github.com/MTES-MCT/monitor-ui/issues/127)) ([05d03ba](https://github.com/MTES-MCT/monitor-ui/commit/05d03ba933cf6c3d684b5cb1456a8115c9df5af1))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **elements:** add iconSize prop to IconButton ([#123](https://github.com/MTES-MCT/monitor-ui/issues/123)) ([e6b03ce](https://github.com/MTES-MCT/monitor-ui/commit/e6b03ce389e0f35e0ab3f485d34ec682d7474e0b))
|
|
12
|
+
* **fields:** add AutoComplete ([#125](https://github.com/MTES-MCT/monitor-ui/issues/125)) ([8fb5cef](https://github.com/MTES-MCT/monitor-ui/commit/8fb5cef36ce0d1446ceee7019a27da016736205c))
|
|
13
|
+
* **formiks:** add FormikAutoComplete ([#126](https://github.com/MTES-MCT/monitor-ui/issues/126)) ([644cc2b](https://github.com/MTES-MCT/monitor-ui/commit/644cc2be5aa21c9177ff344e65912834095595d0))
|
|
14
|
+
* **icons:** update ([#124](https://github.com/MTES-MCT/monitor-ui/issues/124)) ([81f3287](https://github.com/MTES-MCT/monitor-ui/commit/81f32875b3d5b7f491b038370d5e868e71e73f6a))
|
|
15
|
+
|
|
16
|
+
# [1.13.0](https://github.com/MTES-MCT/monitor-ui/compare/v1.12.1...v1.13.0) (2022-12-14)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **elements:** add Tag ([#121](https://github.com/MTES-MCT/monitor-ui/issues/121)) ([c9be13e](https://github.com/MTES-MCT/monitor-ui/commit/c9be13e463a8795223e0bafb3287e51aa196495a))
|
|
22
|
+
|
|
1
23
|
## [1.12.1](https://github.com/MTES-MCT/monitor-ui/compare/v1.12.0...v1.12.1) (2022-12-14)
|
|
2
24
|
|
|
3
25
|
|
package/elements/IconBox.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type IconBoxProps = {
|
|
2
|
-
|
|
2
|
+
$color?: string;
|
|
3
|
+
/** In pixels */
|
|
3
4
|
$size?: number;
|
|
4
|
-
color?: string;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Internal component used to wrap SVG icon components
|
|
8
|
+
*/
|
|
6
9
|
export declare const IconBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IconBoxProps, never>;
|
package/elements/IconButton.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type IconButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'chi
|
|
|
5
5
|
Icon: FunctionComponent<IconProps>;
|
|
6
6
|
accent?: Accent;
|
|
7
7
|
color?: string;
|
|
8
|
+
/** In pixels, override `size` prop default values */
|
|
9
|
+
iconSize?: number;
|
|
8
10
|
size?: Size;
|
|
9
11
|
};
|
|
10
|
-
export declare function IconButton({ accent, color, Icon, size, type, ...nativeProps }: IconButtonProps): JSX.Element;
|
|
12
|
+
export declare function IconButton({ accent, color, Icon, iconSize, size, type, ...nativeProps }: IconButtonProps): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Option } from '../types';
|
|
2
|
+
import type { AutoCompleteProps as RsuiteAutoCompleteProps } from 'rsuite';
|
|
3
|
+
import type { Promisable } from 'type-fest';
|
|
4
|
+
export type AutoCompleteProps = Omit<RsuiteAutoCompleteProps, 'as' | 'data' | 'id' | 'onChange' | 'onSelect' | 'value'> & {
|
|
5
|
+
isLabelHidden?: boolean;
|
|
6
|
+
isLight?: boolean;
|
|
7
|
+
label: string;
|
|
8
|
+
name: string;
|
|
9
|
+
onChange?: (nextValue: string | undefined) => Promisable<void>;
|
|
10
|
+
onQuery?: (nextQuery: string | undefined) => Promisable<void>;
|
|
11
|
+
options?: Option[];
|
|
12
|
+
queryMap?: (record: Record<string, any>) => Option;
|
|
13
|
+
queryUrl?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function AutoComplete({ defaultValue, isLabelHidden, isLight, label, onChange, onQuery, options, queryMap, queryUrl, ...originalProps }: AutoCompleteProps): JSX.Element;
|
package/fields/MultiSelect.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { TagPickerProps } from 'rsuite';
|
|
|
3
3
|
import type { Promisable } from 'type-fest';
|
|
4
4
|
export type MultiSelectProps = Omit<TagPickerProps, 'as' | 'data' | 'defaultValue' | 'id' | 'onChange' | 'value'> & {
|
|
5
5
|
defaultValue?: string[];
|
|
6
|
-
/** Width in
|
|
6
|
+
/** Width in pixels */
|
|
7
7
|
fixedWidth?: number;
|
|
8
8
|
isLabelHidden?: boolean;
|
|
9
9
|
isLight?: boolean;
|
package/fields/TextInput.d.ts
CHANGED
|
@@ -8,7 +8,4 @@ export type TextInputProps = Omit<InputProps, 'as' | 'defaultValue' | 'id' | 'on
|
|
|
8
8
|
name: string;
|
|
9
9
|
onChange?: (nextValue: string | undefined) => Promisable<void>;
|
|
10
10
|
};
|
|
11
|
-
export declare function TextInput({ isLabelHidden, label, onChange, ...originalProps }: TextInputProps): JSX.Element;
|
|
12
|
-
export declare const StyledInput: import("styled-components").StyledComponent<import("rsuite/esm/@types/common").RsRefForwardingComponent<"input", InputProps>, import("styled-components").DefaultTheme, {
|
|
13
|
-
isLight: boolean;
|
|
14
|
-
}, never>;
|
|
11
|
+
export declare function TextInput({ isLabelHidden, isLight, label, onChange, ...originalProps }: TextInputProps): JSX.Element;
|
package/fields/Textarea.d.ts
CHANGED
|
@@ -9,6 +9,3 @@ export type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'd
|
|
|
9
9
|
onChange?: (nextValue: string | undefined) => Promisable<void>;
|
|
10
10
|
};
|
|
11
11
|
export declare function Textarea({ isLabelHidden, isLight, label, onChange, rows, ...originalProps }: TextareaProps): JSX.Element;
|
|
12
|
-
export declare const StyledInput: import("styled-components").StyledComponent<import("rsuite/esm/@types/common").RsRefForwardingComponent<"input", import("rsuite").InputProps>, import("styled-components").DefaultTheme, {
|
|
13
|
-
isLight: boolean;
|
|
14
|
-
}, never>;
|
package/icons/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { EditBis } from './EditBis';
|
|
|
21
21
|
import { Favorite } from './Favorite';
|
|
22
22
|
import { FilledArrow } from './FilledArrow';
|
|
23
23
|
import { Filter } from './Filter';
|
|
24
|
+
import { FilterBis } from './FilterBis';
|
|
24
25
|
import { Fishery } from './Fishery';
|
|
25
26
|
import { FishingEngine } from './FishingEngine';
|
|
26
27
|
import { FleetSegment } from './FleetSegment';
|
|
@@ -61,4 +62,4 @@ import { Tag } from './Tag';
|
|
|
61
62
|
import { Unlock } from './Unlock';
|
|
62
63
|
import { Vessel } from './Vessel';
|
|
63
64
|
import { ViewOnMap } from './ViewOnMap';
|
|
64
|
-
export { ActivityFeed, Alert, Anchor, Archive, Attention, Calendar, Check, Chevron, Clock, Close, Confirm, Control, Delete, Display, DoubleChevron, Download, Drapeau, Duplicate, Edit, EditBis, Favorite, FilledArrow, Filter, Fishery, FishingEngine, FleetSegment, Focus, FocusVessel, FocusZones, Hide, Info, Infringement, Landmark, List, MapLayers, MeasureAngle, MeasureBrokenLine, MeasureCircle, MeasureLine, Minus, More, Note, Observation, Pin, Pinpoint, PinpointHide, Plane, Plus, Reject, Save, Search, SelectCircle, SelectPolygon, SelectRectangle, SelectZone, ShowErsMessages, ShowXml, SortingArrows, Summary, Tag, Unlock, Vessel, ViewOnMap };
|
|
65
|
+
export { ActivityFeed, Alert, Anchor, Archive, Attention, Calendar, Check, Chevron, Clock, Close, Confirm, Control, Delete, Display, DoubleChevron, Download, Drapeau, Duplicate, Edit, EditBis, Favorite, FilledArrow, Filter, FilterBis, Fishery, FishingEngine, FleetSegment, Focus, FocusVessel, FocusZones, Hide, Info, Infringement, Landmark, List, MapLayers, MeasureAngle, MeasureBrokenLine, MeasureCircle, MeasureLine, Minus, More, Note, Observation, Pin, Pinpoint, PinpointHide, Plane, Plus, Reject, Save, Search, SelectCircle, SelectPolygon, SelectRectangle, SelectZone, ShowErsMessages, ShowXml, SortingArrows, Summary, Tag, Unlock, Vessel, ViewOnMap };
|
package/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { IconButton } from './elements/IconButton';
|
|
|
10
10
|
export { Label } from './elements/Label';
|
|
11
11
|
export { Legend } from './elements/Legend';
|
|
12
12
|
export { Tag } from './elements/Tag';
|
|
13
|
+
export { AutoComplete } from './fields/AutoComplete';
|
|
13
14
|
export { Checkbox } from './fields/Checkbox';
|
|
14
15
|
export { DateRangePicker } from './fields/DateRangePicker';
|
|
15
16
|
export { DatePicker } from './fields/DatePicker';
|
|
@@ -19,6 +20,7 @@ export { MultiRadio } from './fields/MultiRadio';
|
|
|
19
20
|
export { Select } from './fields/Select';
|
|
20
21
|
export { Textarea } from './fields/Textarea';
|
|
21
22
|
export { TextInput } from './fields/TextInput';
|
|
23
|
+
export { FormikAutoComplete } from './formiks/FormikAutoComplete';
|
|
22
24
|
export { FormikCheckbox } from './formiks/FormikCheckbox';
|
|
23
25
|
export { FormikDatePicker } from './formiks/FormikDatePicker';
|
|
24
26
|
export { FormikDateRangePicker } from './formiks/FormikDateRangePicker';
|
|
@@ -40,6 +42,7 @@ export type { IconButtonProps } from './elements/IconButton';
|
|
|
40
42
|
export type { LabelProps } from './elements/Label';
|
|
41
43
|
export type { LegendProps } from './elements/Legend';
|
|
42
44
|
export type { TagProps } from './elements/Tag';
|
|
45
|
+
export type { AutoCompleteProps } from './fields/AutoComplete';
|
|
43
46
|
export type { CheckboxProps } from './fields/Checkbox';
|
|
44
47
|
export type { DateRangePickerProps } from './fields/DateRangePicker';
|
|
45
48
|
export type { DatePickerProps } from './fields/DatePicker';
|
|
@@ -49,6 +52,7 @@ export type { MultiRadioProps } from './fields/MultiRadio';
|
|
|
49
52
|
export type { SelectProps } from './fields/Select';
|
|
50
53
|
export type { TextareaProps } from './fields/Textarea';
|
|
51
54
|
export type { TextInputProps } from './fields/TextInput';
|
|
55
|
+
export type { FormikAutoCompleteProps } from './formiks/FormikAutoComplete';
|
|
52
56
|
export type { FormikCheckboxProps } from './formiks/FormikCheckbox';
|
|
53
57
|
export type { FormikDatePickerProps } from './formiks/FormikDatePicker';
|
|
54
58
|
export type { FormikDateRangePickerProps } from './formiks/FormikDateRangePicker';
|