@ledvance/group-ui-biz-bundle 1.0.143 → 1.0.145
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/package.json +1 -1
- package/src/modules/energyConsumption/EnergyConsumptionCard.tsx +1 -1
- package/src/modules/energyConsumption/EnergyConsumptionChart/ChartSection.tsx +14 -14
- package/src/modules/energyConsumption/EnergyConsumptionChart/LandscapeView.tsx +1 -1
- package/src/modules/energyConsumption/EnergyConsumptionChart/styles.ts +3 -2
- package/src/modules/energyConsumption/component/NewBarChart.tsx +0 -2
- package/src/modules/sleepWakeUp/SleepWakeUpPage.tsx +5 -4
package/package.json
CHANGED
|
@@ -228,7 +228,7 @@ const EnergyConsumptionCard = (props: EnergyConsumptionProp) => {
|
|
|
228
228
|
backText: energyText
|
|
229
229
|
} as EnergyConsumptionPageProps)}>
|
|
230
230
|
<Spacer height={cx(16)}/>
|
|
231
|
-
<View style={styles.consumedEnergyHeadline}>
|
|
231
|
+
<View accessibilityLabel={'AdvanceCard'} accessibilityHint={energyText} style={styles.consumedEnergyHeadline}>
|
|
232
232
|
<Text
|
|
233
233
|
style={styles.consumedEnergyCardTitle}>{energyText}</Text>
|
|
234
234
|
<Image source={Res.energyChart} style={{ width: cx(24), height: cx(24), tintColor: props.theme?.icon.normal }}/>
|
|
@@ -97,20 +97,20 @@ export const ChartSection = ({ isLandscape, state, actions, params, styles, them
|
|
|
97
97
|
|
|
98
98
|
return (
|
|
99
99
|
<>
|
|
100
|
-
<View style={styles.dateControlsContainer}>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</View>
|
|
100
|
+
{!isLandscape && <View style={styles.dateControlsContainer}>
|
|
101
|
+
<DateTypeItem
|
|
102
|
+
style={styles.dateTypeItem}
|
|
103
|
+
dateType={state.dateType}
|
|
104
|
+
onDateTypeChange={actions.setDateType}
|
|
105
|
+
/>
|
|
106
|
+
<DateSwitch
|
|
107
|
+
style={{ flex: 1 }}
|
|
108
|
+
date={state.date}
|
|
109
|
+
dateType={state.dateType}
|
|
110
|
+
headlineText={state.headlineText}
|
|
111
|
+
onDateChange={actions.setDate}
|
|
112
|
+
/>
|
|
113
|
+
</View>}
|
|
114
114
|
|
|
115
115
|
{isDataEmpty ? (
|
|
116
116
|
<EmptyDataView text={getEmptyDataTip()} theme={theme} styles={styles}/>
|
|
@@ -34,8 +34,8 @@ export const getStyles = (theme: ThemeType | undefined) => StyleSheet.create({
|
|
|
34
34
|
flex: 1,
|
|
35
35
|
backgroundColor: theme?.global.background,
|
|
36
36
|
// width: cx(height + 20),
|
|
37
|
-
paddingVertical: cx(
|
|
38
|
-
paddingHorizontal: cx(
|
|
37
|
+
paddingVertical: cx(20),
|
|
38
|
+
paddingHorizontal: cx(20),
|
|
39
39
|
},
|
|
40
40
|
landscapeHeader: {
|
|
41
41
|
flexDirection: 'row',
|
|
@@ -49,6 +49,7 @@ export const getStyles = (theme: ThemeType | undefined) => StyleSheet.create({
|
|
|
49
49
|
},
|
|
50
50
|
landscapeContent: {
|
|
51
51
|
flex: 1,
|
|
52
|
+
marginTop: cx(-20),
|
|
52
53
|
},
|
|
53
54
|
normalScreenIcon: {
|
|
54
55
|
width: cx(50),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, {useCallback, useEffect, useMemo} from "react";
|
|
2
|
-
import {FlatList, Image, StyleSheet, Text, View} from 'react-native'
|
|
2
|
+
import { FlatList, Image, Platform, StyleSheet, Text, View } from 'react-native'
|
|
3
3
|
import Page from '@ledvance/base/src/components/Page'
|
|
4
4
|
import Tag from '@ledvance/base/src/components/Tag'
|
|
5
5
|
import Spacer from '@ledvance/base/src/components/Spacer'
|
|
@@ -257,8 +257,9 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
|
|
|
257
257
|
addMoodPopover: {
|
|
258
258
|
width: cx(210),
|
|
259
259
|
height: cx(90.5),
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
position: 'absolute',
|
|
261
|
+
right: cx(60),
|
|
262
|
+
top: Platform.OS === 'android' ? cx(90) : cx(130),
|
|
262
263
|
backgroundColor: props.theme?.card.background,
|
|
263
264
|
},
|
|
264
265
|
popoverItem: {
|
|
@@ -434,7 +435,7 @@ const SleepWakeUpPage = (props: { theme?: ThemeType }) => {
|
|
|
434
435
|
keyExtractor={(item, idx) => `${item.isSleep ? 'sleep' : 'wakeUp'}_${idx}`}
|
|
435
436
|
/> :
|
|
436
437
|
<View style={styles.emptyListCon}>
|
|
437
|
-
<Spacer height={cx(
|
|
438
|
+
<Spacer height={cx(50)} />
|
|
438
439
|
<Image
|
|
439
440
|
style={styles.emptyImage}
|
|
440
441
|
source={{ uri: res.schedule_empty}}
|