@mtes-mct/monitor-ui 3.0.0 → 3.0.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,19 @@
1
+ # [3.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.19.2...v3.0.0) (2023-02-21)
2
+
3
+
4
+ * feat(fields)!: add disabled, error & label props to CoordinatesInput ([556de36](https://github.com/MTES-MCT/monitor-ui/commit/556de362cbaf0250523ea710f2d753712a13cf21))
5
+
6
+
7
+ ### Features
8
+
9
+ * **formiks:** add FormikCoordinatesInput ([89d5455](https://github.com/MTES-MCT/monitor-ui/commit/89d54554ce6a6f90b608b0d8c37a089f4b934b99))
10
+
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * CoordinatesInput onChange can now send undefined params
15
+ * label is now mandatory in CoordinatesInput
16
+
1
17
  ## [2.19.2](https://github.com/MTES-MCT/monitor-ui/compare/v2.19.1...v2.19.2) (2023-02-20)
2
18
 
3
19
 
package/index.js CHANGED
@@ -16046,10 +16046,8 @@ function FormikMultiCheckbox({ name, ...originalProps }) {
16046
16046
  function FormikMultiSelect({ name, ...originalProps }) {
16047
16047
  const [field, meta, helpers] = useField(name);
16048
16048
  // eslint-disable-next-line react-hooks/exhaustive-deps
16049
- const defaultValue = useMemo(() => field.value, []);
16050
- // eslint-disable-next-line react-hooks/exhaustive-deps
16051
16049
  const handleChange = useMemo(() => helpers.setValue, []);
16052
- return (jsx(MultiSelect, { defaultValue: defaultValue, error: meta.error, name: name, onChange: handleChange, ...originalProps }));
16050
+ return (jsx(MultiSelect, { defaultValue: field.value, error: meta.error, name: name, onChange: handleChange, ...originalProps }));
16053
16051
  }
16054
16052
 
16055
16053
  function FormikMultiRadio({ name, ...originalProps }) {