@ledvance/group-ui-biz-bundle 1.0.94 → 1.0.95

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.94",
7
+ "version": "1.0.95",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -97,6 +97,7 @@ export function useMoodScene(params: MoodPageParams): [SceneDataType, (value: Sc
97
97
  if(params.isCeilingLight){
98
98
  dps[params.mainWorkMode] = WorkMode.White
99
99
  dps[params.secondaryWorkMode!] = WorkMode.Colour
100
+ dps[params.secondarySwitch!] = false
100
101
  }else{
101
102
  if (params.isFanLight || params.isUVCFan){
102
103
  dps[params.mainWorkMode] = WorkMode.Control
@@ -41,7 +41,7 @@ const RemoteSwitchPage = (props: { theme?: ThemeType }) => {
41
41
  paddingVertical: cx(16),
42
42
  },
43
43
  shadow: {
44
- shadowColor: props.theme?.card.shadow,
44
+ shadowColor: props.theme?.card.shadowColor,
45
45
  shadowOpacity: 0.2,
46
46
  shadowRadius: 8,
47
47
  elevation:8,
@@ -282,12 +282,22 @@ function ManualSettings(props: ManualSettingProps) {
282
282
 
283
283
  const stripLightCard = useMemo(() => {
284
284
  const deviceData = state.deviceData as StripLightData
285
+ const getBlockColor = () => {
286
+ if (deviceData.activeKey === 1) {
287
+ const s = Math.round(mapFloatToRange(state.deviceData.s / 100, 30, 100))
288
+ return hsv2Hex(state.deviceData.h, s, 100)
289
+ }
290
+ if (deviceData.activeKey === 0) {
291
+ return cctToColor(state.deviceData.temperature)
292
+ }
293
+ return props.theme?.card.background
294
+ }
285
295
  return (
286
296
  <View>
287
297
  <Card style={{ marginHorizontal: cx(24) }}>
288
298
  <LdvSwitch
289
299
  title={I18n.getLang('light_sources_tile_tw_lighting_headline')}
290
- color={props.theme?.card.background}
300
+ color={getBlockColor()}
291
301
  colorAlpha={1}
292
302
  enable={state.applyForList[0]?.enable}
293
303
  setEnable={(enable: boolean) => {