@ledvance/base 1.3.82 → 1.3.83
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
|
@@ -35,6 +35,7 @@ const NewColorTempPicker = React.memo((props: ColorTempAdjustViewProps) => {
|
|
|
35
35
|
brightness = 100,
|
|
36
36
|
minBrightness,
|
|
37
37
|
isSupportTemperature,
|
|
38
|
+
isSupportBrightness,
|
|
38
39
|
onCCTChange,
|
|
39
40
|
onCCTChangeComplete,
|
|
40
41
|
onBrightnessChange,
|
|
@@ -78,15 +79,16 @@ const NewColorTempPicker = React.memo((props: ColorTempAdjustViewProps) => {
|
|
|
78
79
|
const { temperature, brightness: stateBrightness } = state
|
|
79
80
|
const white = { temperature, brightness: stateBrightness }
|
|
80
81
|
const minBrightnessValue = minBrightness ?? 1
|
|
81
|
-
|
|
82
|
+
const height = cx(isSupportTemperature? 200 : (isSupportBrightness ? 45 : 0))
|
|
83
|
+
const borderWidth = (isSupportTemperature || isSupportBrightness) ? 1 : 0
|
|
82
84
|
return (
|
|
83
85
|
<View style={{justifyContent: 'center', alignItems: 'center'}}>
|
|
84
86
|
<View style={{
|
|
85
87
|
width: width,
|
|
86
|
-
height:
|
|
88
|
+
height: height,
|
|
87
89
|
borderRadius: cx(10),
|
|
88
90
|
borderColor: '#eeeeef',
|
|
89
|
-
borderWidth:
|
|
91
|
+
borderWidth: borderWidth,
|
|
90
92
|
overflow: 'hidden'
|
|
91
93
|
}}>
|
|
92
94
|
{
|
|
@@ -97,7 +99,7 @@ const NewColorTempPicker = React.memo((props: ColorTempAdjustViewProps) => {
|
|
|
97
99
|
onMove={handleMove}
|
|
98
100
|
onRelease={handleComplete}
|
|
99
101
|
onPress={handleComplete}
|
|
100
|
-
/> : <RectColorAndBrightPicker.BrightnessSlider
|
|
102
|
+
/> : isSupportBrightness ? <RectColorAndBrightPicker.BrightnessSlider
|
|
101
103
|
value={stateBrightness}
|
|
102
104
|
min={scaleUp(minBrightnessValue)}
|
|
103
105
|
minPercent={minBrightnessValue ? minBrightnessValue : 0}
|
|
@@ -106,7 +108,7 @@ const NewColorTempPicker = React.memo((props: ColorTempAdjustViewProps) => {
|
|
|
106
108
|
onMove={handleBrightnessMove}
|
|
107
109
|
onRelease={handleBrightnessComplete}
|
|
108
110
|
onPress={handleBrightnessComplete}
|
|
109
|
-
/>
|
|
111
|
+
/> : <></>
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
</View>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, {ReactNode} from 'react'
|
|
2
|
-
import {StyleSheet, Text, TouchableOpacity, View, ViewStyle} from 'react-native'
|
|
2
|
+
import {ScrollView, StyleSheet, Text, TouchableOpacity, View, ViewStyle} from 'react-native'
|
|
3
3
|
import {Utils} from 'tuya-panel-kit'
|
|
4
4
|
import ThemeType from '../config/themeType'
|
|
5
5
|
|
|
@@ -27,6 +27,7 @@ const Segmented = (props: SegmentedProps) => {
|
|
|
27
27
|
backgroundColor: props.theme?.segment.background,
|
|
28
28
|
padding: cx(2),
|
|
29
29
|
borderRadius: cx(8),
|
|
30
|
+
flexGrow: 1,
|
|
30
31
|
},
|
|
31
32
|
segmented_item: {
|
|
32
33
|
flex: 1,
|
|
@@ -45,6 +46,9 @@ const Segmented = (props: SegmentedProps) => {
|
|
|
45
46
|
segmented_item_check: {
|
|
46
47
|
backgroundColor: props.theme?.button.primary,
|
|
47
48
|
},
|
|
49
|
+
segmented_item_min_width: {
|
|
50
|
+
minWidth: cx(120),
|
|
51
|
+
},
|
|
48
52
|
segmented_text: {
|
|
49
53
|
fontSize: cx(16),
|
|
50
54
|
color: props.theme?.global.secondFontColor,
|
|
@@ -54,7 +58,11 @@ const Segmented = (props: SegmentedProps) => {
|
|
|
54
58
|
},
|
|
55
59
|
})
|
|
56
60
|
return (
|
|
57
|
-
<
|
|
61
|
+
<ScrollView
|
|
62
|
+
horizontal
|
|
63
|
+
showsHorizontalScrollIndicator={false}
|
|
64
|
+
contentContainerStyle={[styles.wrap_container]}
|
|
65
|
+
style={[props.style, {flex: 1 }]}>
|
|
58
66
|
{props.options && props.options.map((item, idx) => (
|
|
59
67
|
<TouchableOpacity
|
|
60
68
|
accessibilityLabel={"Segmented"}
|
|
@@ -62,6 +70,7 @@ const Segmented = (props: SegmentedProps) => {
|
|
|
62
70
|
accessibilityState={{checked: item.value === props.value}}
|
|
63
71
|
style={[
|
|
64
72
|
styles.segmented_item,
|
|
73
|
+
(props.options?.length || 0) > 2 ? styles.segmented_item_min_width : {},
|
|
65
74
|
idx === 0 && styles.segmented_item_first,
|
|
66
75
|
idx + 1 === props.options?.length && styles.segmented_item_last,
|
|
67
76
|
item.value === props.value && styles.segmented_item_check,
|
|
@@ -75,7 +84,7 @@ const Segmented = (props: SegmentedProps) => {
|
|
|
75
84
|
]}>{item.label}</Text>
|
|
76
85
|
</TouchableOpacity>
|
|
77
86
|
))}
|
|
78
|
-
</
|
|
87
|
+
</ScrollView>
|
|
79
88
|
)
|
|
80
89
|
}
|
|
81
90
|
|
package/src/i18n/strings.ts
CHANGED
|
@@ -6093,7 +6093,7 @@ export default {
|
|
|
6093
6093
|
"camera_settings_onvif_set_password_tips": "Das Gerätekennwort unterstützt 8-32 Zeichen und muss Groß- und Kleinbuchstaben sowie Ziffern enthalten.",
|
|
6094
6094
|
"camera_settings_onvif_switch_topic": "Onvif-Schalter",
|
|
6095
6095
|
"camera_settings_onvif_topic": "Onvif",
|
|
6096
|
-
"camera_settings_power_management_settings_topic": "
|
|
6096
|
+
"camera_settings_power_management_settings_topic": "Energieverwaltung",
|
|
6097
6097
|
"camera_settings_recording_mode_firstbox_topic1": "Bewegungsauslöser",
|
|
6098
6098
|
"camera_settings_recording_mode_firstbox_topic1_description": "Nimmt nur auf, wenn eine Bewegung erkannt wird",
|
|
6099
6099
|
"camera_settings_recording_mode_firstbox_topic2": "Fortlaufend",
|
|
@@ -6116,7 +6116,7 @@ export default {
|
|
|
6116
6116
|
"camera_site_overview_empty_button_add_text": "Standort hinzufügen",
|
|
6117
6117
|
"camera_site_overview_empty_information_text": "Du hast noch keinen Ort hinzugefügt",
|
|
6118
6118
|
"camera_site_overview_warning_max_number_text": "Die maximale Anzahl an Orte wurde erreicht.",
|
|
6119
|
-
"camera_status_indicator": "LED-
|
|
6119
|
+
"camera_status_indicator": "LED-Indikator",
|
|
6120
6120
|
"camera_tile_camera_button_label_photo": "Foto aufnehmen",
|
|
6121
6121
|
"camera_tile_camera_button_label_video": "Video aufzeichnen",
|
|
6122
6122
|
"camera_tile_camera_headline": "Kamera",
|
|
@@ -6604,7 +6604,7 @@ export default {
|
|
|
6604
6604
|
"matter_gradient_light_on_description_text": "Stelle eine Zeit im Bereich von 0 bis 60 Sekunden ein, um die Helligkeit beim Einschalten der Lampe schrittweise zu erhöhen",
|
|
6605
6605
|
"matter_gradient_light_on_title": "Einblenden (s)",
|
|
6606
6606
|
"matter_gradient_overview_headline_text": "Ein-/Ausblenden",
|
|
6607
|
-
"matterplug_LED": "LED-
|
|
6607
|
+
"matterplug_LED": "LED-Indikator",
|
|
6608
6608
|
"matterplug_description": "Konfiguration der Status-LED nach dem Ein-/Ausschalten",
|
|
6609
6609
|
"matterplug_heading": "Status-LED",
|
|
6610
6610
|
"matterplug_option1description": "Der Status des Schalters entspricht der Status-LED: Die Steckdose ist eingeschaltet, wenn die LED an ist, und ausgeschaltet, wenn die LED aus ist.",
|