@ledvance/group-ui-biz-bundle 1.0.13 → 1.0.14

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.13",
7
+ "version": "1.0.14",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -300,7 +300,7 @@ export const defFlagList: FlagUiInfo[] = [
300
300
  version: 0,
301
301
  mode: SceneNodeTransitionMode.Jump,
302
302
  speed: 70,
303
- name: I18n.getLang('flag_leverkusen'),
303
+ name: '',
304
304
  icon: res.leverkusen_icon,
305
305
  whiteColors: [
306
306
  { brightness: 100, colorTemp: 0},
@@ -28,8 +28,8 @@ export default function FlagItem(props: RecommendMoodItemProps) {
28
28
  <Spacer height={cx(16)} />
29
29
  <View style={styles.headline}>
30
30
  <View style={{ flexDirection: 'row', flex: 1, paddingRight: cx(5), justifyContent: 'flex-start' }}>
31
- <Text style={styles.headText}>{props.title}</Text>
32
- {props.icon && <Image source={icon} style={{ width: cx(60), aspectRatio: 2.14, marginRight: cx(10) }} />}
31
+ {props.title ? <Text style={styles.headText}>{props.title}</Text> : undefined}
32
+ {props.icon ? <Image source={icon} style={{ width: cx(60), aspectRatio: 2.14, marginRight: cx(10) }} /> : undefined}
33
33
  </View>
34
34
  <SwitchButton
35
35
  thumbStyle={{ elevation: 0 }}
@@ -63,9 +63,12 @@ const StaticMoodEditorPage = () => {
63
63
  if (state.currentNode.isColorNode) {
64
64
  return hsv2Hex(state.currentNode.h, s, 100)
65
65
  }
66
- if (moduleParams.isSupportTemperature) {
67
- return cctToColor(state.currentNode.colorTemp.toFixed())
66
+ if (moduleParams.isSupportColor) {
67
+ return hsv2Hex(state.currentNode.h, s, 100)
68
+ } else if (moduleParams.isSupportTemperature) {
69
+ return cctToColor(state.currentNode.colorTemp.toFixed());
68
70
  }
71
+ return '#fff'
69
72
  }, [state.currentNode.colorTemp])
70
73
 
71
74
  const getButtonStatus = () => {