@mtes-mct/monitor-ui 2.18.0 → 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 +14 -0
- package/index.js +9 -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,17 @@
|
|
|
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
|
+
|
|
8
|
+
# [2.18.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.17.0...v2.18.0) (2023-02-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **elements:** add ellipsis to long Button labels ([287a56b](https://github.com/MTES-MCT/monitor-ui/commit/287a56bd1c598da0cd25feae50c466062cafc725))
|
|
14
|
+
|
|
1
15
|
# [2.17.0](https://github.com/MTES-MCT/monitor-ui/compare/v2.16.0...v2.17.0) (2023-02-17)
|
|
2
16
|
|
|
3
17
|
|
package/index.js
CHANGED
|
@@ -2115,6 +2115,7 @@ const StyledButton$1 = styled.button `
|
|
|
2115
2115
|
align-items: center;
|
|
2116
2116
|
display: inline-flex;
|
|
2117
2117
|
font-size: ${p => FONT_SIZE[p.size]};
|
|
2118
|
+
justify-content: center;
|
|
2118
2119
|
max-width: 100%;
|
|
2119
2120
|
padding: ${p => PADDING$1[p.size]};
|
|
2120
2121
|
width: ${p => (p.isFullWidth ? '100%' : 'auto')};
|
|
@@ -5613,6 +5614,7 @@ const DDInput = styled.input `
|
|
|
5613
5614
|
`;
|
|
5614
5615
|
const CoordinatesType$2 = styled.span `
|
|
5615
5616
|
margin-left: 7px;
|
|
5617
|
+
color: ${p => p.theme.color.slateGray};
|
|
5616
5618
|
`;
|
|
5617
5619
|
const Error$2 = styled.span `
|
|
5618
5620
|
color: red;
|
|
@@ -15615,6 +15617,7 @@ function DMDCoordinatesInput({ coordinates, coordinatesFormat, onChange }) {
|
|
|
15615
15617
|
}
|
|
15616
15618
|
const CoordinatesType$1 = styled.span `
|
|
15617
15619
|
margin-left: 7px;
|
|
15620
|
+
color: ${p => p.theme.color.slateGray};
|
|
15618
15621
|
`;
|
|
15619
15622
|
const Error$1 = styled.span `
|
|
15620
15623
|
color: ${p => p.theme.color.maximumRed};
|
|
@@ -15640,13 +15643,14 @@ function DMSCoordinatesInput({ coordinates, coordinatesFormat, onChange }) {
|
|
|
15640
15643
|
}
|
|
15641
15644
|
const CoordinatesType = styled.span `
|
|
15642
15645
|
margin-left: 7px;
|
|
15646
|
+
color: ${p => p.theme.color.slateGray};
|
|
15643
15647
|
`;
|
|
15644
15648
|
const Box$2 = styled.div `
|
|
15645
15649
|
font-size: 13px;
|
|
15646
15650
|
text-align: left;
|
|
15647
15651
|
`;
|
|
15648
15652
|
|
|
15649
|
-
function CoordinatesInput({ coordinatesFormat, defaultValue, onChange }) {
|
|
15653
|
+
function CoordinatesInput({ coordinatesFormat, defaultValue, isLight = false, onChange }) {
|
|
15650
15654
|
const getCoordinatesInput = useCallback(() => {
|
|
15651
15655
|
switch (coordinatesFormat) {
|
|
15652
15656
|
case CoordinatesFormat.DEGREES_MINUTES_SECONDS:
|
|
@@ -15659,7 +15663,7 @@ function CoordinatesInput({ coordinatesFormat, defaultValue, onChange }) {
|
|
|
15659
15663
|
return undefined;
|
|
15660
15664
|
}
|
|
15661
15665
|
}, [defaultValue, onChange, coordinatesFormat]);
|
|
15662
|
-
return jsx(Box$1, { children: getCoordinatesInput() });
|
|
15666
|
+
return jsx(Box$1, { "$isLight": isLight, children: getCoordinatesInput() });
|
|
15663
15667
|
}
|
|
15664
15668
|
const Box$1 = styled.div `
|
|
15665
15669
|
color: ${p => p.theme.color.lightGray};
|
|
@@ -15667,12 +15671,11 @@ const Box$1 = styled.div `
|
|
|
15667
15671
|
text-align: left;
|
|
15668
15672
|
|
|
15669
15673
|
input {
|
|
15670
|
-
background: ${p => p.theme.color.gainsboro};
|
|
15674
|
+
background-color: ${p => (p.$isLight ? p.theme.color.white : p.theme.color.gainsboro)};
|
|
15671
15675
|
border: none;
|
|
15672
15676
|
color: ${p => p.theme.color.gunMetal};
|
|
15673
|
-
height:
|
|
15674
|
-
|
|
15675
|
-
padding-left: 8px;
|
|
15677
|
+
height: 33px;
|
|
15678
|
+
padding: 7px 11px;
|
|
15676
15679
|
}
|
|
15677
15680
|
`;
|
|
15678
15681
|
|