@mtes-mct/monitor-ui 1.13.0 → 1.14.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.13.0](https://github.com/MTES-MCT/monitor-ui/compare/v1.12.1...v1.13.0) (2022-12-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * **elements:** add Tag ([#121](https://github.com/MTES-MCT/monitor-ui/issues/121)) ([c9be13e](https://github.com/MTES-MCT/monitor-ui/commit/c9be13e463a8795223e0bafb3287e51aa196495a))
7
+
1
8
  ## [1.12.1](https://github.com/MTES-MCT/monitor-ui/compare/v1.12.0...v1.12.1) (2022-12-14)
2
9
 
3
10
 
@@ -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 REM, 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;
@@ -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;
@@ -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>;
@@ -0,0 +1,3 @@
1
+ import type { AutoCompleteProps } from '../fields/AutoComplete';
2
+ export type FormikAutoCompleteProps = Omit<AutoCompleteProps, 'defaultValue' | 'onChange'>;
3
+ export declare function FormikAutoComplete({ name, ...originalProps }: FormikAutoCompleteProps): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from '../types';
2
+ export declare function FilterBis({ color, size, ...nativeProps }: IconProps): JSX.Element;
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';