@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 +2 -1
- package/package.json +1 -1
- package/src/components/AdvanceCard.tsx +1 -1
- package/src/components/ApplyForDeviceItem.tsx +2 -2
- package/src/components/ApplyForText.tsx +1 -1
- package/src/components/BatteryStateView.tsx +2 -2
- package/src/components/Cell.tsx +2 -2
- package/src/components/DeleteButton.tsx +1 -1
- package/src/components/DiySceneItem.tsx +2 -2
- package/src/components/DrawToolView.tsx +1 -1
- package/src/components/HybridSwitchView.tsx +1 -1
- package/src/components/InfoText.tsx +1 -1
- package/src/components/OptionGroup.tsx +3 -3
- package/src/components/Page.tsx +16 -15
- package/src/components/SocketItem.tsx +2 -2
- package/src/components/Summary.tsx +1 -1
- package/src/components/Tag.tsx +1 -1
- package/src/components/TextButton.tsx +1 -1
- package/src/components/TextField.tsx +2 -2
- package/src/components/TextFieldStyleButton.tsx +2 -2
- package/src/components/UATabTitle.tsx +1 -1
- package/src/components/UATabs.tsx +1 -1
- package/src/components/ldvSlider.tsx +2 -2
- package/src/components/ldvTemperatureSlider.tsx +2 -2
- package/src/components/ldvTopBar.tsx +1 -1
- package/src/components/segmentControl.tsx +2 -2
- package/src/i18n/strings.ts +192 -162
- package/translateKey.txt +2 -1
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
|
@@ -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
|
});
|
package/src/components/Cell.tsx
CHANGED
|
@@ -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),
|
|
@@ -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
|
|
package/src/components/Page.tsx
CHANGED
|
@@ -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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
|
package/src/components/Tag.tsx
CHANGED
|
@@ -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,
|
|
@@ -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}
|