@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 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
 
@@ -1,6 +1,6 @@
1
1
  import type { LabelHTMLAttributes } from 'react';
2
2
  export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
3
- isHidden: boolean;
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;
@@ -0,0 +1,3 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ export type TagGroupProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const TagGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
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