@ledvance/base 1.3.110 → 1.3.112
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/localazy.json +10 -1
- package/package.json +1 -1
- package/src/components/BatteryPercentageView.tsx +9 -2
- package/src/components/OptionGroup.tsx +1 -0
- package/src/i18n/strings.ts +302 -32
- package/src/models/modules/NativePropsSlice.tsx +5 -0
- package/src/res/index.ts +2 -0
- package/src/utils/interface.ts +9 -1
- package/translateKey.txt +10 -1
package/localazy.json
CHANGED
|
@@ -1301,7 +1301,16 @@
|
|
|
1301
1301
|
"MATCH:country_north_macedonia",
|
|
1302
1302
|
"MATCH:country_werder_bremen",
|
|
1303
1303
|
"MATCH:reset_energy",
|
|
1304
|
-
"MATCH:thermostat_infotempcurve"
|
|
1304
|
+
"MATCH:thermostat_infotempcurve",
|
|
1305
|
+
"MATCH:latam_groups",
|
|
1306
|
+
"MATCH:latam_group_format",
|
|
1307
|
+
"MATCH:country_KR",
|
|
1308
|
+
"MATCH:country_HT",
|
|
1309
|
+
"MATCH:country_CW",
|
|
1310
|
+
"MATCH:country_SN",
|
|
1311
|
+
"MATCH:country_DZ",
|
|
1312
|
+
"MATCH:country_UZ",
|
|
1313
|
+
"MATCH:timeschedule_preset_format"
|
|
1305
1314
|
],
|
|
1306
1315
|
"replacements": {
|
|
1307
1316
|
"REGEX:% %1\\$s.*?\\)%": "{0}",
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import {StyleSheet, Text, View} from 'react-native'
|
|
3
3
|
import { Utils } from 'tuya-panel-kit'
|
|
4
4
|
import ThemeType from '../config/themeType'
|
|
5
5
|
import I18n from '../i18n'
|
|
@@ -15,6 +15,7 @@ type BatteryProps = {
|
|
|
15
15
|
middleValue?: number
|
|
16
16
|
highValue?: number
|
|
17
17
|
charging?: boolean
|
|
18
|
+
hideValue?: boolean
|
|
18
19
|
theme?: ThemeType
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -50,6 +51,9 @@ const BatteryPercentageView = (props: BatteryProps) => {
|
|
|
50
51
|
textAlign: 'right',
|
|
51
52
|
fontSize: cx(14),
|
|
52
53
|
},
|
|
54
|
+
end: {
|
|
55
|
+
marginEnd: cx(24),
|
|
56
|
+
},
|
|
53
57
|
low: {
|
|
54
58
|
color: props.theme?.global.error
|
|
55
59
|
}
|
|
@@ -77,7 +81,10 @@ const BatteryPercentageView = (props: BatteryProps) => {
|
|
|
77
81
|
middleColor="#999999"
|
|
78
82
|
batteryRotation={90}
|
|
79
83
|
/>
|
|
80
|
-
|
|
84
|
+
{props.hideValue !== true ?
|
|
85
|
+
<Text style={[styles.content, value <= middleValue ? styles.low : null]}>{value}%</Text>
|
|
86
|
+
: <View style={styles.end}/>
|
|
87
|
+
}
|
|
81
88
|
</Card>
|
|
82
89
|
)
|
|
83
90
|
}
|