@ledvance/base 1.3.105 → 1.3.107

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
@@ -1299,7 +1299,8 @@
1299
1299
  "MATCH:country_wales",
1300
1300
  "MATCH:country_BA",
1301
1301
  "MATCH:country_north_macedonia",
1302
- "MATCH:country_werder_bremen"
1302
+ "MATCH:country_werder_bremen",
1303
+ "MATCH:reset_energy"
1303
1304
  ],
1304
1305
  "replacements": {
1305
1306
  "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.105",
7
+ "version": "1.3.107",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -102,7 +102,7 @@ const styles = StyleSheet.create({
102
102
  marginHorizontal: cx(16),
103
103
  fontSize: cx(14),
104
104
  textAlign: 'center',
105
- fontFamily: 'helvetica_neue_lt_std_roman',
105
+ // fontFamily: 'helvetica_neue_lt_std_roman',
106
106
  },
107
107
  subtitle: {
108
108
  fontSize: cx(10),
@@ -48,7 +48,7 @@ const ApplyForDeviceItem = (props: ApplyForDeviceItemProps) => {
48
48
  marginStart: cx(8),
49
49
  color: props.theme?.global.fontColor,
50
50
  fontSize: cx(16),
51
- fontFamily: 'helvetica_neue_lt_std_roman',
51
+ // fontFamily: 'helvetica_neue_lt_std_roman',
52
52
  },
53
53
  deviceRoomInfo: {
54
54
  marginStart: cx(38),
@@ -65,7 +65,7 @@ const ApplyForDeviceItem = (props: ApplyForDeviceItemProps) => {
65
65
  marginHorizontal: cx(12),
66
66
  color: props.theme?.tag.fontColor,
67
67
  fontSize: cx(10),
68
- fontFamily: 'helvetica_neue_lt_std_roman',
68
+ // fontFamily: 'helvetica_neue_lt_std_roman',
69
69
  },
70
70
  offlineIcon: {
71
71
  minWidth: cx(24),
@@ -25,7 +25,7 @@ const ApplyForText = (props: ApplyForTextProps) => {
25
25
  color: props.theme?.global.secondFontColor,
26
26
  fontSize: cx(16),
27
27
  letterSpacing: cx(0.12),
28
- fontFamily: 'helvetica_neue_lt_std_bd',
28
+ // fontFamily: 'helvetica_neue_lt_std_bd',
29
29
  },
30
30
  icon: {
31
31
  tintColor: props.theme?.global.secondFontColor,
@@ -69,7 +69,7 @@ const styles = StyleSheet.create({
69
69
  marginVertical: cx(18),
70
70
  color: '#000',
71
71
  fontSize: cx(16),
72
- fontFamily: 'helvetica_neue_lt_std_bd',
72
+ // fontFamily: 'helvetica_neue_lt_std_bd',
73
73
  },
74
74
 
75
75
  batteryRotate: {
@@ -82,6 +82,6 @@ const styles = StyleSheet.create({
82
82
  marginEnd: cx(16),
83
83
  color: '#000',
84
84
  fontSize: cx(14),
85
- fontFamily: 'helvetica_neue_lt_std_roman',
85
+ // fontFamily: 'helvetica_neue_lt_std_roman',
86
86
  },
87
87
  });
@@ -111,7 +111,7 @@ const CellContentBase = (props: CellContentProps) => {
111
111
  {
112
112
  fontSize: cx(14),
113
113
  color: props.theme?.global.secondFontColor,
114
- fontFamily: 'helvetica_neue_lt_std_roman',
114
+ // fontFamily: 'helvetica_neue_lt_std_roman',
115
115
  },
116
116
  props.titleStyle,
117
117
  ]}>{props.title}</Text>
@@ -123,7 +123,7 @@ const CellContentBase = (props: CellContentProps) => {
123
123
  {
124
124
  fontSize: cx(14),
125
125
  color: props.theme?.global.secondFontColor,
126
- fontFamily: 'helvetica_neue_lt_std_roman',
126
+ // fontFamily: 'helvetica_neue_lt_std_roman',
127
127
  },
128
128
  props.valueStyle,
129
129
  ]}>{props.value}</Text>
@@ -35,7 +35,7 @@ const DeleteButton = (props: DeleteButtonProps) => {
35
35
  <Text style={[{
36
36
  color: props.theme?.button.fontColor,
37
37
  fontSize: cx(16),
38
- fontFamily: 'helvetica_neue_lt_std_bd',
38
+ // fontFamily: 'helvetica_neue_lt_std_bd',
39
39
  }, textStyle]}>{text}</Text>
40
40
  </TouchableOpacity>
41
41
  )
@@ -44,7 +44,7 @@ const DiySceneItem = (props: DiySceneItemProps) => {
44
44
  flex: 1,
45
45
  color: props.theme?.global.fontColor,
46
46
  fontSize: cx(16),
47
- fontFamily: 'helvetica_neue_lt_std_bd',
47
+ // fontFamily: 'helvetica_neue_lt_std_bd',
48
48
  lineHeight: cx(20),
49
49
  },
50
50
  checkbox: {
@@ -67,7 +67,7 @@ const DiySceneItem = (props: DiySceneItemProps) => {
67
67
  color: props.theme?.tag.fontColor,
68
68
  fontSize: cx(10),
69
69
  textAlignVertical: 'center',
70
- fontFamily: 'helvetica_neue_lt_std_roman',
70
+ // fontFamily: 'helvetica_neue_lt_std_roman',
71
71
  lineHeight: cx(16),
72
72
  },
73
73
  })
@@ -127,7 +127,7 @@ const DrawToolView = (props: DrawToolViewProps) => {
127
127
  color: props.theme?.global.fontColor,
128
128
  fontSize: cx(16),
129
129
  marginLeft: cx(10),
130
- fontFamily: 'helvetica_neue_lt_std_bd',
130
+ // fontFamily: 'helvetica_neue_lt_std_bd',
131
131
  fontWeight: 'bold',
132
132
  },
133
133
  adjustButtons: {
@@ -31,7 +31,7 @@ const HybridSwitchView = (props: HybridSwitchViewProps) => {
31
31
  color: props.theme?.global.fontColor,
32
32
  fontSize: cx(16),
33
33
  fontWeight: 'bold',
34
- fontFamily: 'helvetica_neue_lt_std_bd',
34
+ // fontFamily: 'helvetica_neue_lt_std_bd',
35
35
  },
36
36
  switchPanel: {
37
37
  width: cx(120),
@@ -42,7 +42,7 @@ const styles = StyleSheet.create({
42
42
  flex: 1,
43
43
  marginTop: cx(2.5),
44
44
  fontSize: cx(12),
45
- fontFamily: 'helvetica_neue_lt_std_roman',
45
+ // fontFamily: 'helvetica_neue_lt_std_roman',
46
46
  },
47
47
  })
48
48
 
@@ -36,7 +36,7 @@ const OptionGroup = (props: OptionGroupProps) => {
36
36
  color: props.theme?.global.fontColor,
37
37
  fontSize: cx(14),
38
38
  fontWeight: 'bold',
39
- fontFamily: 'helvetica_neue_lt_std_bd',
39
+ // fontFamily: 'helvetica_neue_lt_std_bd',
40
40
  },
41
41
  modeSelectCard: {
42
42
  marginHorizontal: cx(8),
@@ -60,12 +60,12 @@ const OptionGroup = (props: OptionGroupProps) => {
60
60
  itemTitle: {
61
61
  color: props.theme?.global.fontColor,
62
62
  fontSize: cx(14),
63
- fontFamily: 'helvetica_neue_lt_std_roman',
63
+ // fontFamily: 'helvetica_neue_lt_std_roman',
64
64
  },
65
65
  itemContent: {
66
66
  color: props.theme?.global.secondFontColor,
67
67
  fontSize: cx(14),
68
- fontFamily: 'helvetica_neue_lt_std_roman',
68
+ // fontFamily: 'helvetica_neue_lt_std_roman',
69
69
  },
70
70
  })
71
71
 
@@ -30,6 +30,7 @@ interface PageProps extends PropsWithChildren<ViewProps> {
30
30
  greeneryIcon?: string | undefined | number
31
31
  loading?: boolean
32
32
  info?: React.ReactNode
33
+ accessibilityHint?: string
33
34
  }
34
35
 
35
36
  const Page = (props: PageProps) => {
@@ -73,7 +74,7 @@ const Page = (props: PageProps) => {
73
74
  <>
74
75
  <View
75
76
  accessibilityLabel='Page'
76
- accessibilityHint={props.headlineText}
77
+ accessibilityHint={props.accessibilityHint || props.headlineText}
77
78
  style={[{ flex: 1, position: 'relative', backgroundColor: props.theme?.global.background }, props.style]}
78
79
  >
79
80
  <LDVTopBar
@@ -89,25 +90,25 @@ const Page = (props: PageProps) => {
89
90
  onRightButtonPress={props.rightButtonIconClick}
90
91
  rightButtonDisabled={disabled}/>
91
92
  {(!!props.headlineText || !!props.headlineContent) &&
92
- <LdvTopName
93
- title={props.headlineText}
94
- rightIcon={props.headlineIcon}
95
- rightIconClick={props.onHeadlineIconClick}
96
- showGreenery={props.showGreenery}
97
- greeneryIcon={props.greeneryIcon}
98
- headlineIconContent={props.headlineIconContent}
99
- headlineTopContent={props.headlineTopContent}
100
- headlineContent={props.headlineContent}
101
- info={props.info}
93
+ <LdvTopName
94
+ title={props.headlineText}
95
+ rightIcon={props.headlineIcon}
96
+ rightIconClick={props.onHeadlineIconClick}
97
+ showGreenery={props.showGreenery}
98
+ greeneryIcon={props.greeneryIcon}
99
+ headlineIconContent={props.headlineIconContent}
100
+ headlineTopContent={props.headlineTopContent}
101
+ headlineContent={props.headlineContent}
102
+ info={props.info}
102
103
  />}
103
104
  {props.children}
104
105
  </View>
105
106
  {!!props.loading && <Toast.Loading
106
- style={{ zIndex: 999, elevation: 10 }}
107
- show={props.loading}
108
- onFinish={() => {
107
+ style={{ zIndex: 999, elevation: 10 }}
108
+ show={props.loading}
109
+ onFinish={() => {
109
110
 
110
- }}/>}
111
+ }}/>}
111
112
  </>
112
113
  )
113
114
  }
@@ -32,7 +32,7 @@ function SocketItem(props: SocketItemProps) {
32
32
  title: {
33
33
  fontSize: cx(16),
34
34
  color: props.theme?.global.fontColor,
35
- fontFamily: 'helvetica_neue_lt_std_bd',
35
+ // fontFamily: 'helvetica_neue_lt_std_bd',
36
36
  fontWeight: 'bold',
37
37
  },
38
38
  icon: {
@@ -46,7 +46,7 @@ function SocketItem(props: SocketItemProps) {
46
46
  name: {
47
47
  fontSize: cx(14),
48
48
  color: props.theme?.global.fontColor,
49
- fontFamily: 'helvetica_neue_lt_std_roman',
49
+ // fontFamily: 'helvetica_neue_lt_std_roman',
50
50
  },
51
51
  })
52
52
 
@@ -29,7 +29,7 @@ const Summary = (props: SummaryProps) => {
29
29
  color: props.theme?.global.fontColor,
30
30
  fontSize: cx(16),
31
31
  fontWeight: 'bold',
32
- fontFamily: 'helvetica_neue_lt_std_bd',
32
+ // fontFamily: 'helvetica_neue_lt_std_bd',
33
33
  },
34
34
  summaryContainer: {
35
35
  flex: 1,
@@ -30,7 +30,7 @@ const Tag = (props: TagProps) => {
30
30
  marginStart: cx(12),
31
31
  color: props.theme?.filter.fontColor,
32
32
  fontSize: cx(14),
33
- fontFamily: 'helvetica_neue_lt_std_roman',
33
+ // fontFamily: 'helvetica_neue_lt_std_roman',
34
34
  },
35
35
  icon: {
36
36
  width: cx(12),
@@ -27,7 +27,7 @@ export default function TextButton(props: TextButtonProps) {
27
27
  <Text style={[{
28
28
  color: '#f60',
29
29
  fontSize: cx(14),
30
- fontFamily: 'helvetica_neue_lt_std_roman',
30
+ // fontFamily: 'helvetica_neue_lt_std_roman',
31
31
  }, props.textStyle]}>{props.text}</Text>
32
32
  </TouchableOpacity>
33
33
  )
@@ -27,7 +27,7 @@ const TextField = (props: TextFieldProps) => {
27
27
  fontSize: cx(12),
28
28
  marginStart: cx(13),
29
29
  color: props.theme?.global.secondFontColor,
30
- fontFamily: 'helvetica_neue_lt_std_bd',
30
+ // fontFamily: 'helvetica_neue_lt_std_bd',
31
31
  },
32
32
  textInputGroup: {
33
33
  flexDirection: 'row',
@@ -42,7 +42,7 @@ const TextField = (props: TextFieldProps) => {
42
42
  marginEnd: cx(6),
43
43
  fontSize: cx(16),
44
44
  color: props.theme?.textInput.fontColor,
45
- fontFamily: 'helvetica_neue_lt_std_roman',
45
+ // fontFamily: 'helvetica_neue_lt_std_roman',
46
46
  },
47
47
  iconTouchable: {
48
48
  marginEnd: cx(18),
@@ -23,7 +23,7 @@ const TextFieldStyleButton = (props: TextFieldStyleButtonProps) => {
23
23
  fontSize: cx(12),
24
24
  marginStart: cx(13),
25
25
  color: props.theme?.global.secondFontColor,
26
- fontFamily: 'helvetica_neue_lt_std_bd',
26
+ // fontFamily: 'helvetica_neue_lt_std_bd',
27
27
  },
28
28
  textGroup: {
29
29
  flexDirection: 'row',
@@ -41,7 +41,7 @@ const TextFieldStyleButton = (props: TextFieldStyleButtonProps) => {
41
41
  marginEnd: cx(6),
42
42
  fontSize: cx(16),
43
43
  color: props.theme?.textInput.fontColor,
44
- fontFamily: 'helvetica_neue_lt_std_roman',
44
+ // fontFamily: 'helvetica_neue_lt_std_roman',
45
45
  },
46
46
  line: {
47
47
  height: 1,
@@ -19,7 +19,7 @@ const UATabTitle = (props: UATabTitleProps) => {
19
19
  tabsTitle: {
20
20
  color: props.theme?.global.fontColor,
21
21
  fontSize: cx(14),
22
- fontFamily: 'helvetica_neue_lt_std_roman',
22
+ // fontFamily: 'helvetica_neue_lt_std_roman',
23
23
  },
24
24
  })
25
25
 
@@ -42,7 +42,7 @@ const UATabs = (props: UATabsProps) => {
42
42
  },
43
43
  tabText: {
44
44
  fontSize: cx(14),
45
- fontFamily: 'helvetica_neue_lt_std_roman',
45
+ // fontFamily: 'helvetica_neue_lt_std_roman',
46
46
  },
47
47
  })
48
48
 
@@ -46,13 +46,13 @@ const LdvSlider = (props: LdvSliderProps) => {
46
46
  marginTop: cx(10),
47
47
  fontSize: cx(14),
48
48
  color: props.theme?.global.fontColor,
49
- fontFamily: 'helvetica_neue_lt_std_roman',
49
+ // fontFamily: 'helvetica_neue_lt_std_roman',
50
50
  },
51
51
  title: {
52
52
  marginTop: cx(10),
53
53
  fontSize: cx(14),
54
54
  color: props.theme?.global.fontColor,
55
- fontFamily: 'helvetica_neue_lt_std_roman',
55
+ // fontFamily: 'helvetica_neue_lt_std_roman',
56
56
  },
57
57
  slider: {
58
58
  marginTop: cx(8),
@@ -99,13 +99,13 @@ const styles = StyleSheet.create({
99
99
  marginTop: cx(10),
100
100
  fontSize: cx(14),
101
101
  color: '#000',
102
- fontFamily: 'helvetica_neue_lt_std_roman',
102
+ // fontFamily: 'helvetica_neue_lt_std_roman',
103
103
  },
104
104
  title: {
105
105
  marginTop: cx(4),
106
106
  fontSize: cx(14),
107
107
  color: '#000',
108
- fontFamily: 'helvetica_neue_lt_std_roman',
108
+ // fontFamily: 'helvetica_neue_lt_std_roman',
109
109
  },
110
110
  shadeSlider: {
111
111
  marginTop: cx(8),
@@ -46,7 +46,7 @@ const LDVTopBar = (props: TopBarProps) => {
46
46
  maxWidth: cx(290),
47
47
  color: props.theme?.global.brand,
48
48
  fontSize: cx(16),
49
- fontFamily: 'helvetica_neue_lt_std_roman',
49
+ // fontFamily: 'helvetica_neue_lt_std_roman',
50
50
  }}>{props.title}</Text>
51
51
  </View>
52
52
  </TouchableOpacity>
@@ -36,7 +36,7 @@ const SegmentControl = (props) => {
36
36
  style={{
37
37
  color: props.theme?.segment.fontColor,
38
38
  fontSize: convertX(12),
39
- fontFamily: isFirst ? 'helvetica_neue_lt_std_bd' : 'helvetica_neue_lt_std_roman',
39
+ // fontFamily: isFirst ? 'helvetica_neue_lt_std_bd' : 'helvetica_neue_lt_std_roman',
40
40
  marginVertical: convertX(10),
41
41
  }}>
42
42
  {title1}
@@ -63,7 +63,7 @@ const SegmentControl = (props) => {
63
63
  style={{
64
64
  color: props.theme?.segment.fontColor,
65
65
  fontSize: convertX(12),
66
- fontFamily: isFirst ? 'helvetica_neue_lt_std_roman' : 'helvetica_neue_lt_std_bd',
66
+ // fontFamily: isFirst ? 'helvetica_neue_lt_std_roman' : 'helvetica_neue_lt_std_bd',
67
67
  marginVertical: convertX(10),
68
68
  }}>
69
69
  {title2}