@ledvance/group-ui-biz-bundle 1.0.163 → 1.0.165

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/group-ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.0.163",
7
+ "version": "1.0.165",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -0,0 +1,38 @@
1
+ import React from 'react'
2
+ import { Image, StyleSheet, Text, View } from 'react-native'
3
+ import { Utils } from 'tuya-panel-kit'
4
+ import ThemeType from '../../../base/src/config/themeType'
5
+ import { useUAGroupInfo } from "../../../base/src/models/modules/NativePropsSlice";
6
+ import IconList from '../modules/biorhythm/iconListData'
7
+
8
+ const cx = Utils.RatioUtils.convertX
9
+ const {withTheme} = Utils.ThemeUtils
10
+
11
+ interface LdvGroupTitleProps {
12
+ theme?: ThemeType
13
+ }
14
+
15
+ const LdvGroupTitle = (props: LdvGroupTitleProps) => {
16
+ const uaGroupInfo = useUAGroupInfo()
17
+ const styles = StyleSheet.create({
18
+ title: {
19
+ color: props.theme?.global.brand,
20
+ fontSize: cx(24),
21
+ },
22
+ headlineIcon: {
23
+ width: cx(24),
24
+ height: cx(24),
25
+ marginRight: cx(5),
26
+ tintColor: props.theme?.global.brand
27
+ },
28
+ })
29
+ const defaultIcon = IconList[uaGroupInfo.icon ?? 10] ?? IconList[10]
30
+ return (
31
+ <View style={{flexDirection: 'row', alignItems: 'center', flex: 1}}>
32
+ <Image source={{uri: defaultIcon.icon}} style={styles.headlineIcon}/>
33
+ <Text style={[styles.title, {flex: 1}]}>{uaGroupInfo.name}</Text>
34
+ </View>
35
+ )
36
+ }
37
+
38
+ export default withTheme(LdvGroupTitle)
@@ -25,6 +25,14 @@ const iconList = [
25
25
  {id: 22, icon: res.biorhythom_icon22, selectStatus: false, disabled: false},
26
26
  {id: 23, icon: res.biorhythom_icon23, selectStatus: false, disabled: false},
27
27
  {id: 24, icon: res.biorhythom_icon24, selectStatus: false, disabled: false},
28
+ {id: 25, icon: res.biorhythom_icon25, selectStatus: false, disabled: false},
29
+ {id: 26, icon: res.biorhythom_icon26, selectStatus: false, disabled: false},
30
+ {id: 27, icon: res.biorhythom_icon27, selectStatus: false, disabled: false},
31
+ {id: 28, icon: res.biorhythom_icon28, selectStatus: false, disabled: false},
32
+ {id: 29, icon: res.biorhythom_icon29, selectStatus: false, disabled: false},
33
+ {id: 30, icon: res.biorhythom_icon30, selectStatus: false, disabled: false},
34
+ {id: 31, icon: res.biorhythom_icon31, selectStatus: false, disabled: false},
35
+ {id: 32, icon: res.biorhythom_icon32, selectStatus: false, disabled: false},
28
36
  ]
29
37
 
30
38
  export default iconList
@@ -242,7 +242,7 @@ const BarChartWithTouch = (props: BarChartProps) => {
242
242
 
243
243
  const option = useMemo(
244
244
  () => ({
245
- tooltip: { show: true, triggerOn: 'click', trigger: 'axis' },
245
+ tooltip: {show: true, triggerOn: 'click', trigger: 'axis', position: [50, 100]},
246
246
  legend: {
247
247
  show: true,
248
248
  data: legendData,