@mtes-mct/monitor-ui 2.7.1 → 2.7.2
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/index.js +3 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.7.1](https://github.com/MTES-MCT/monitor-ui/compare/v2.7.0...v2.7.1) (2023-01-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **fields:** handle detached click outside for time in DatePicker & DateRangePicker ([afa0a13](https://github.com/MTES-MCT/monitor-ui/commit/afa0a13394f650b0d26a5cf868a325cc79335dcb))
|
|
7
|
+
|
|
1
8
|
# [2.7.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.6.0...v2.7.0) (2023-01-12)
|
|
2
9
|
|
|
3
10
|
|
package/index.js
CHANGED
|
@@ -1955,9 +1955,9 @@ const Dropdown = Object.assign(RawDropdown, {
|
|
|
1955
1955
|
});
|
|
1956
1956
|
|
|
1957
1957
|
const ICON_SIZE = {
|
|
1958
|
-
[Size.LARGE]:
|
|
1959
|
-
[Size.NORMAL]:
|
|
1960
|
-
[Size.SMALL]:
|
|
1958
|
+
[Size.LARGE]: 20,
|
|
1959
|
+
[Size.NORMAL]: 20,
|
|
1960
|
+
[Size.SMALL]: 12
|
|
1961
1961
|
};
|
|
1962
1962
|
function Button({ accent = Accent.PRIMARY, children, Icon, isFullWidth = false, size = Size.NORMAL, type = 'button', ...nativeProps }) {
|
|
1963
1963
|
const commonChildren = useMemo(() => (jsxs(Fragment, { children: [Icon && jsx(Icon, { size: ICON_SIZE[size] }), children] })), [children, Icon, size]);
|