@mtes-mct/monitor-ui 2.18.1 → 2.19.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/index.js +8 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/fields/CoordinatesInput/index.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.18.1](https://github.com/MTES-MCT/monitor-ui/compare/v2.18.0...v2.18.1) (2023-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **elements:** center Button horizontally ([69004ea](https://github.com/MTES-MCT/monitor-ui/commit/69004eacf73d2cab3318653f769ca01d0521ffea))
|
|
7
|
+
|
|
1
8
|
# [2.18.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.17.0...v2.18.0) (2023-02-17)
|
|
2
9
|
|
|
3
10
|
|
package/index.js
CHANGED
|
@@ -5614,6 +5614,7 @@ const DDInput = styled.input `
|
|
|
5614
5614
|
`;
|
|
5615
5615
|
const CoordinatesType$2 = styled.span `
|
|
5616
5616
|
margin-left: 7px;
|
|
5617
|
+
color: ${p => p.theme.color.slateGray};
|
|
5617
5618
|
`;
|
|
5618
5619
|
const Error$2 = styled.span `
|
|
5619
5620
|
color: red;
|
|
@@ -15616,6 +15617,7 @@ function DMDCoordinatesInput({ coordinates, coordinatesFormat, onChange }) {
|
|
|
15616
15617
|
}
|
|
15617
15618
|
const CoordinatesType$1 = styled.span `
|
|
15618
15619
|
margin-left: 7px;
|
|
15620
|
+
color: ${p => p.theme.color.slateGray};
|
|
15619
15621
|
`;
|
|
15620
15622
|
const Error$1 = styled.span `
|
|
15621
15623
|
color: ${p => p.theme.color.maximumRed};
|
|
@@ -15641,13 +15643,14 @@ function DMSCoordinatesInput({ coordinates, coordinatesFormat, onChange }) {
|
|
|
15641
15643
|
}
|
|
15642
15644
|
const CoordinatesType = styled.span `
|
|
15643
15645
|
margin-left: 7px;
|
|
15646
|
+
color: ${p => p.theme.color.slateGray};
|
|
15644
15647
|
`;
|
|
15645
15648
|
const Box$2 = styled.div `
|
|
15646
15649
|
font-size: 13px;
|
|
15647
15650
|
text-align: left;
|
|
15648
15651
|
`;
|
|
15649
15652
|
|
|
15650
|
-
function CoordinatesInput({ coordinatesFormat, defaultValue, onChange }) {
|
|
15653
|
+
function CoordinatesInput({ coordinatesFormat, defaultValue, isLight = false, onChange }) {
|
|
15651
15654
|
const getCoordinatesInput = useCallback(() => {
|
|
15652
15655
|
switch (coordinatesFormat) {
|
|
15653
15656
|
case CoordinatesFormat.DEGREES_MINUTES_SECONDS:
|
|
@@ -15660,7 +15663,7 @@ function CoordinatesInput({ coordinatesFormat, defaultValue, onChange }) {
|
|
|
15660
15663
|
return undefined;
|
|
15661
15664
|
}
|
|
15662
15665
|
}, [defaultValue, onChange, coordinatesFormat]);
|
|
15663
|
-
return jsx(Box$1, { children: getCoordinatesInput() });
|
|
15666
|
+
return jsx(Box$1, { "$isLight": isLight, children: getCoordinatesInput() });
|
|
15664
15667
|
}
|
|
15665
15668
|
const Box$1 = styled.div `
|
|
15666
15669
|
color: ${p => p.theme.color.lightGray};
|
|
@@ -15668,12 +15671,11 @@ const Box$1 = styled.div `
|
|
|
15668
15671
|
text-align: left;
|
|
15669
15672
|
|
|
15670
15673
|
input {
|
|
15671
|
-
background: ${p => p.theme.color.gainsboro};
|
|
15674
|
+
background-color: ${p => (p.$isLight ? p.theme.color.white : p.theme.color.gainsboro)};
|
|
15672
15675
|
border: none;
|
|
15673
15676
|
color: ${p => p.theme.color.gunMetal};
|
|
15674
|
-
height:
|
|
15675
|
-
|
|
15676
|
-
padding-left: 8px;
|
|
15677
|
+
height: 33px;
|
|
15678
|
+
padding: 7px 11px;
|
|
15677
15679
|
}
|
|
15678
15680
|
`;
|
|
15679
15681
|
|