@mtes-mct/monitor-ui 2.1.1 → 2.2.1
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 +14 -0
- package/elements/Label.d.ts +1 -1
- package/elements/TagGroup.d.ts +3 -0
- package/index.d.ts +2 -0
- package/index.js +9 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.2.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.1.1...v2.2.0) (2022-12-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **elements:** add TagGroup ([#139](https://github.com/MTES-MCT/monitor-ui/issues/139)) ([f12aadb](https://github.com/MTES-MCT/monitor-ui/commit/f12aadb9bdbc684116e19f7c867483d6dc69955a))
|
|
7
|
+
|
|
8
|
+
## [2.1.1](https://github.com/MTES-MCT/monitor-ui/compare/v2.1.0...v2.1.1) (2022-12-15)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **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))
|
|
14
|
+
|
|
1
15
|
# [2.1.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.0.0...v2.1.0) (2022-12-15)
|
|
2
16
|
|
|
3
17
|
|
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,13 @@ const TertiaryTag = styled(Box$7) `
|
|
|
1707
1708
|
color: ${p => p.theme.color.white};
|
|
1708
1709
|
`;
|
|
1709
1710
|
|
|
1711
|
+
const TagGroup = styled.div `
|
|
1712
|
+
align-items: center;
|
|
1713
|
+
display: flex;
|
|
1714
|
+
flex-wrap: wrap;
|
|
1715
|
+
gap: 8px;
|
|
1716
|
+
`;
|
|
1717
|
+
|
|
1710
1718
|
// eslint-lint-disable-next-line @typescript-eslint/naming-convention
|
|
1711
1719
|
class HTTPError extends Error {
|
|
1712
1720
|
constructor(response, request, options) {
|
|
@@ -4925,5 +4933,5 @@ function FormikTextInput({ name, ...originalProps }) {
|
|
|
4925
4933
|
return jsx(TextInput, { defaultValue: defaultValue, name: name, onChange: helpers.setValue, ...originalProps });
|
|
4926
4934
|
}
|
|
4927
4935
|
|
|
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 };
|
|
4936
|
+
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
4937
|
//# sourceMappingURL=index.js.map
|