@mtes-mct/monitor-ui 2.1.1 → 2.2.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 +7 -0
- package/elements/Label.d.ts +1 -1
- package/elements/TagGroup.d.ts +3 -0
- package/index.d.ts +2 -0
- package/index.js +10 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.1.1](https://github.com/MTES-MCT/monitor-ui/compare/v2.1.0...v2.1.1) (2022-12-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **formiks:** remove set undefined on destruction ([#137](https://github.com/MTES-MCT/monitor-ui/issues/137)) ([fd375ae](https://github.com/MTES-MCT/monitor-ui/commit/fd375aec5047ba3aad31237bec4863f56fb1043f))
|
|
7
|
+
|
|
1
8
|
# [2.1.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.0.0...v2.1.0) (2022-12-15)
|
|
2
9
|
|
|
3
10
|
|
package/elements/Label.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LabelHTMLAttributes } from 'react';
|
|
2
2
|
export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
3
|
-
isHidden
|
|
3
|
+
isHidden?: boolean;
|
|
4
4
|
};
|
|
5
5
|
export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
|
|
6
6
|
isHidden?: boolean | undefined;
|
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 { TagGroup } from './elements/TagGroup';
|
|
13
14
|
export { AutoComplete } from './fields/AutoComplete';
|
|
14
15
|
export { Checkbox } from './fields/Checkbox';
|
|
15
16
|
export { DateRangePicker } from './fields/DateRangePicker';
|
|
@@ -43,6 +44,7 @@ export type { IconButtonProps } from './elements/IconButton';
|
|
|
43
44
|
export type { LabelProps } from './elements/Label';
|
|
44
45
|
export type { LegendProps } from './elements/Legend';
|
|
45
46
|
export type { TagProps } from './elements/Tag';
|
|
47
|
+
export type { TagGroupProps } from './elements/TagGroup';
|
|
46
48
|
export type { AutoCompleteProps } from './fields/AutoComplete';
|
|
47
49
|
export type { CheckboxProps } from './fields/Checkbox';
|
|
48
50
|
export type { DateRangePickerProps } from './fields/DateRangePicker';
|
package/index.js
CHANGED
|
@@ -1679,6 +1679,7 @@ const Box$7 = styled.span `
|
|
|
1679
1679
|
color: ${p => (p.$color ? p.$color : p.theme.color.gunMetal)};
|
|
1680
1680
|
display: inline-flex;
|
|
1681
1681
|
font-size: 13px;
|
|
1682
|
+
line-height: 1.4;
|
|
1682
1683
|
padding: 1px 8px 3px 8px;
|
|
1683
1684
|
|
|
1684
1685
|
/* Bullet components are a span */
|
|
@@ -1707,6 +1708,14 @@ const TertiaryTag = styled(Box$7) `
|
|
|
1707
1708
|
color: ${p => p.theme.color.white};
|
|
1708
1709
|
`;
|
|
1709
1710
|
|
|
1711
|
+
const TagGroup = styled.div `
|
|
1712
|
+
display: flex;
|
|
1713
|
+
|
|
1714
|
+
> span:not(:first-child) {
|
|
1715
|
+
margin-left: 8px;
|
|
1716
|
+
}
|
|
1717
|
+
`;
|
|
1718
|
+
|
|
1710
1719
|
// eslint-lint-disable-next-line @typescript-eslint/naming-convention
|
|
1711
1720
|
class HTTPError extends Error {
|
|
1712
1721
|
constructor(response, request, options) {
|
|
@@ -4925,5 +4934,5 @@ function FormikTextInput({ name, ...originalProps }) {
|
|
|
4925
4934
|
return jsx(TextInput, { defaultValue: defaultValue, name: name, onChange: helpers.setValue, ...originalProps });
|
|
4926
4935
|
}
|
|
4927
4936
|
|
|
4928
|
-
export { Accent, AutoComplete, Button, Checkbox, DatePicker, DateRangePicker, Dropdown, Field$2 as Field, Fieldset, FormikAutoComplete, FormikCheckbox, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, Select, Size, THEME, Tag$1 as Tag, TextInput, Textarea, ThemeProvider };
|
|
4937
|
+
export { Accent, AutoComplete, Button, Checkbox, DatePicker, DateRangePicker, Dropdown, Field$2 as Field, Fieldset, FormikAutoComplete, FormikCheckbox, FormikDatePicker, FormikDateRangePicker, FormikEffect, FormikMultiCheckbox, FormikMultiRadio, FormikMultiSelect, FormikSelect, FormikTextInput, FormikTextarea, GlobalStyle, index as Icon, IconButton, Label, Legend, MultiCheckbox, MultiRadio, MultiSelect, MultiZoneEditor, Select, Size, THEME, Tag$1 as Tag, TagGroup, TextInput, Textarea, ThemeProvider };
|
|
4929
4938
|
//# sourceMappingURL=index.js.map
|