@ledvance/base 1.3.96 → 1.3.98

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
@@ -1278,7 +1278,11 @@
1278
1278
  "MATCH:siren_alarm_open",
1279
1279
  "MATCH:siren_alarm_close",
1280
1280
  "MATCH:siren_muffling_on",
1281
- "MATCH:siren_muffling_off"
1281
+ "MATCH:siren_muffling_off",
1282
+ "MATCH:contact_sensor_battery",
1283
+ "MATCH:siren_settings_antidismantle",
1284
+ "MATCH:motion_detection_no_safe_mode_subheadline_text",
1285
+ "MATCH:app_navigation_bottom_msg"
1282
1286
  ],
1283
1287
  "replacements": {
1284
1288
  "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.96",
7
+ "version": "1.3.98",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -4,6 +4,7 @@ import {
4
4
  ImageSourcePropType,
5
5
  ImageStyle,
6
6
  StyleProp,
7
+ StyleSheet,
7
8
  Text,
8
9
  TextStyle,
9
10
  TouchableOpacity,
@@ -32,16 +33,19 @@ interface CellProps {
32
33
  }
33
34
 
34
35
  export default withTheme(function Cell(props: CellProps) {
36
+ const styles = StyleSheet.create({
37
+ container: {
38
+ height: cx(50),
39
+ paddingHorizontal: cx(24),
40
+ justifyContent: 'center',
41
+ backgroundColor: props.theme?.card.background,
42
+ },
43
+ })
35
44
  return (
36
45
  <TouchableOpacity
37
46
  accessibilityLabel={'Cell'}
38
47
  accessibilityHint={props.value}
39
- style={[{
40
- height: cx(50),
41
- paddingHorizontal: cx(24),
42
- justifyContent: 'center',
43
- backgroundColor: props.theme?.card.background,
44
- }, props.style]}
48
+ style={[styles.container, props.style]}
45
49
  onPress={() => {
46
50
  props.onPress && props.onPress()
47
51
  }}>
@@ -75,13 +79,31 @@ interface CellContentProps {
75
79
  }
76
80
 
77
81
  const CellContentBase = (props: CellContentProps) => {
82
+ const styles = StyleSheet.create({
83
+ content: {
84
+ flexDirection: 'row',
85
+ justifyContent: 'space-between',
86
+ alignItems: 'center'
87
+ },
88
+ left: {
89
+ flexDirection: 'row',
90
+ alignItems: 'center',
91
+ flex: 1
92
+ },
93
+ right: {
94
+ flexDirection: 'row',
95
+ alignItems: 'center',
96
+ flex: 1,
97
+ justifyContent: 'flex-end'
98
+ }
99
+ })
78
100
  return (
79
101
  <View
80
102
  style={[
81
- { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' },
103
+ styles.content,
82
104
  props.style,
83
105
  ]}>
84
- <View style={{ flexDirection: 'row', alignItems: 'center' }}>
106
+ <View style={styles.left}>
85
107
  {props.icon && (<Image source={props.icon}
86
108
  style={[{ width: cx(24), height: cx(24), marginRight: cx(10) }, props.iconStyle]}/>)}
87
109
  <Text
@@ -96,7 +118,7 @@ const CellContentBase = (props: CellContentProps) => {
96
118
  </View>
97
119
  {
98
120
  props.rightContent !== undefined ? props.rightContent : (
99
- <View style={{ flexDirection: 'row', alignItems: 'center' }}>
121
+ <View style={styles.right}>
100
122
  <Text style={[
101
123
  {
102
124
  fontSize: cx(14),