@ledvance/group-ui-biz-bundle 1.0.140 → 1.0.142

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.
Files changed (22) hide show
  1. package/package.json +1 -1
  2. package/src/modules/biorhythm/IconSelect.tsx +92 -29
  3. package/src/modules/energyConsumption/EnergyConsumptionActions.ts +42 -16
  4. package/src/modules/energyConsumption/EnergyConsumptionCard.tsx +3 -3
  5. package/src/modules/energyConsumption/EnergyConsumptionChart/ChartSection.tsx +103 -15
  6. package/src/modules/energyConsumption/EnergyConsumptionChart/LandscapeView.tsx +1 -0
  7. package/src/modules/energyConsumption/EnergyConsumptionChart/PortraitView.tsx +3 -27
  8. package/src/modules/energyConsumption/EnergyConsumptionChart/styles.ts +13 -4
  9. package/src/modules/energyConsumption/EnergyConsumptionChart/useEnergyData.ts +28 -12
  10. package/src/modules/energyConsumption/EnergyConsumptionChart.tsx +4 -0
  11. package/src/modules/energyConsumption/EnergyConsumptionDetail.tsx +41 -31
  12. package/src/modules/energyConsumption/EnergyConsumptionPage.tsx +52 -3
  13. package/src/modules/energyConsumption/component/DateSelectedItem.tsx +1 -1
  14. package/src/modules/energyConsumption/component/DateSwitch.tsx +10 -8
  15. package/src/modules/energyConsumption/component/DateTypeItem.tsx +1 -1
  16. package/src/modules/energyConsumption/component/EnergyModal.tsx +2 -2
  17. package/src/modules/energyConsumption/component/NewBarChart.tsx +221 -153
  18. package/src/modules/energyConsumption/component/Overview.tsx +1 -1
  19. package/src/modules/flags/FlagInfo.tsx +1204 -1054
  20. package/src/modules/flags/FlagItem.tsx +1 -2
  21. package/src/modules/flags/FlagPage.tsx +19 -15
  22. package/src/modules/mood_new/MoodItem.tsx +0 -1
@@ -46,7 +46,6 @@ const FlagItem = (props: RecommendMoodItemProps) => {
46
46
  height: cx(45),
47
47
  marginTop: cx(-5),
48
48
  marginBottom: cx(-10),
49
- fontWeight: 'bold',
50
49
  },
51
50
  gradientItem: {
52
51
  alignItems: 'center',
@@ -60,7 +59,7 @@ const FlagItem = (props: RecommendMoodItemProps) => {
60
59
  <Card
61
60
  style={[styles.card, props.style]}
62
61
  onPress={props.onPress}>
63
- <View>
62
+ <View accessibilityLabel={'FlagItem'} accessibilityHint={`${props.title}`}>
64
63
  <Spacer height={cx(16)} />
65
64
  <View style={styles.headline}>
66
65
  <View style={{ flexDirection: 'row', flex: 1, paddingRight: cx(5), justifyContent: 'flex-start' }}>
@@ -158,22 +158,26 @@ const FlagPage = (props: { theme?: ThemeType }) => {
158
158
  placeholder={I18n.getLang('country_selection_textfield_headline_search')}
159
159
  style={{ marginHorizontal: cx(24), flex: 1 }}
160
160
  />
161
- <TouchableOpacity style={{paddingRight: cx(24)}}
162
- onPress={() =>{
163
- showDialog({
164
- method: 'confirm',
165
- title: I18n.getLang('flag_resetbutton'),
166
- subTitle: I18n.getLang('flag_resetdescription'),
167
- onConfirm: async (_, {close}) =>{
168
- close()
169
- state.loading = true
170
- await getRemoteFlagInfo(true)
171
- state.loading = false
172
- }
173
- })
174
- }}
161
+ <TouchableOpacity
162
+ style={{ paddingRight: cx(24) }}
163
+ accessibilityLabel={'RefreshButton'}
164
+ accessibilityHint={'RefreshButton'}
165
+ onPress={() => {
166
+ showDialog({
167
+ method: 'confirm',
168
+ title: I18n.getLang('flag_resetbutton'),
169
+ subTitle: I18n.getLang('flag_resetdescription'),
170
+ onConfirm: async (_, { close }) => {
171
+ close()
172
+ state.loading = true
173
+ await getRemoteFlagInfo(true)
174
+ state.loading = false
175
+ }
176
+ })
177
+ }}
175
178
  >
176
- <Image source={{uri: res.ic_refresh}} style={{width: cx(24), height: cx(24), tintColor: props.theme?.global.fontColor}}/>
179
+ <Image source={{ uri: res.ic_refresh }}
180
+ style={{ width: cx(24), height: cx(24), tintColor: props.theme?.global.fontColor }}/>
177
181
  </TouchableOpacity>
178
182
  </View>
179
183
  <FlatList
@@ -64,7 +64,6 @@ const MoodItem = (props: MoodItemProps) => {
64
64
  height: cx(45),
65
65
  marginTop: cx(-5),
66
66
  marginBottom: cx(-10),
67
- fontWeight: 'bold',
68
67
  },
69
68
  moodTypeItem: {
70
69
  flexDirection: 'row',