@eturnity/eturnity_reusable_components 1.2.20-3d-master.0 → 1.2.20-3d-master.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/package.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
<svg fill="none" height="16" viewbox="12 12 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<rect
|
|
8
|
-
<rect fill="#FF5656" height="1.55556" transform="rotate(-45 11.1777 26.0269)" width="21" x="11.1777" y="26.0269"></rect>
|
|
9
|
-
<rect fill="#FF5656" height="1.55556" transform="rotate(-45 13.3774 28.2266)" width="21" x="13.3774" y="28.2266"></rect>
|
|
10
|
-
<rect fill="#FF5656" height="1.55556" transform="rotate(-45 15.5771 30.4265)" width="21" x="15.5771" y="30.4265"></rect>
|
|
11
|
-
<rect fill="#FF5656" height="1.55556" transform="rotate(-45 17.7773 32.6262)" width="21" x="17.7773" y="32.6262"></rect>
|
|
2
|
+
<defs>
|
|
3
|
+
<pattern id="pattern_Z6wSY" patternUnits="userSpaceOnUse" width="4" height="4" patternTransform="rotate(45)">
|
|
4
|
+
<path d="M0 0 L 0 16Z" stroke="red" stroke-width="3"></path>
|
|
5
|
+
</pattern>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="32" height="32" fill="url(#pattern_Z6wSY)" :opacity="1" />
|
|
12
8
|
</g>
|
|
13
9
|
</svg>
|
|
@@ -34,12 +34,14 @@ const IconImage = styled('div', IconImageProps)`
|
|
|
34
34
|
width: 100%;
|
|
35
35
|
height: 100%;
|
|
36
36
|
}
|
|
37
|
-
svg
|
|
37
|
+
svg path {
|
|
38
38
|
${(props) =>
|
|
39
|
-
props.color && `fill: ${props.theme.colors[props.color] || props.color}
|
|
39
|
+
props.color && `fill: ${props.theme.colors[props.color] || props.color};
|
|
40
|
+
stroke: ${props.theme.colors[props.color] || props.color};`}
|
|
40
41
|
}
|
|
41
|
-
&:hover > svg
|
|
42
|
-
${(props) => props.hoveredColor && `fill: ${props.hoveredColor}
|
|
42
|
+
&:hover > svg path {
|
|
43
|
+
${(props) => props.hoveredColor && `fill: ${props.hoveredColor};
|
|
44
|
+
stroke: ${props.theme.colors[props.color] || props.color};`}
|
|
43
45
|
}
|
|
44
46
|
`
|
|
45
47
|
|
|
@@ -94,6 +94,7 @@ export const numberToString = ({ value, numberPrecision }) => {
|
|
|
94
94
|
? 'fr-fr'
|
|
95
95
|
: localStorage.getItem('lang')
|
|
96
96
|
: 'en-US'
|
|
97
|
+
if(selectedLang=="null"){selectedLang='en-US'}
|
|
97
98
|
value=parseFloat(value)
|
|
98
99
|
return value.toLocaleString(selectedLang, {
|
|
99
100
|
minimumFractionDigits: numberPrecision,
|