@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 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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.3.110",
7
+ "version": "1.3.112",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback, useMemo } from 'react'
2
- import { StyleSheet, Text } from 'react-native'
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
- <Text style={[styles.content, value <= middleValue ? styles.low : null]}>{value}%</Text>
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
  }
@@ -51,6 +51,7 @@ const OptionGroup = (props: OptionGroupProps) => {
51
51
  alignItems: 'center',
52
52
  paddingHorizontal: cx(12),
53
53
  paddingBottom: cx(8),
54
+ minHeight:cx(40),
54
55
  },
55
56
  itemTextGroup: {
56
57
  flex: 1,