@ledvance/base 1.2.82 → 1.2.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/.babelrc +31 -31
- package/.eslintignore +5 -5
- package/.eslintrc.js +27 -27
- package/.prettierrc.js +1 -1
- package/.versionrc +5 -5
- package/localazy.json +848 -848
- package/localazy.keys.json +4 -4
- package/package.json +74 -74
- package/rn-cli.config.js +8 -8
- package/src/api/native.d.ts +71 -71
- package/src/api/native.ts +423 -423
- package/src/api/nativeEventEmitter.d.ts +3 -3
- package/src/api/nativeEventEmitter.ts +125 -125
- package/src/components/AdvanceCard.d.ts +25 -25
- package/src/components/AdvanceCard.tsx +117 -117
- package/src/components/AdvanceList.d.ts +9 -9
- package/src/components/AdvanceList.tsx +69 -69
- package/src/components/ApplyForDeviceItem.d.ts +6 -6
- package/src/components/ApplyForDeviceItem.tsx +83 -83
- package/src/components/ApplyForDeviceList.d.ts +7 -7
- package/src/components/ApplyForDeviceList.tsx +61 -61
- package/src/components/ApplyForText.d.ts +6 -6
- package/src/components/ApplyForText.tsx +52 -52
- package/src/components/Card.d.ts +10 -10
- package/src/components/Card.tsx +40 -40
- package/src/components/Cell.d.ts +21 -21
- package/src/components/Cell.tsx +69 -69
- package/src/components/CircularProgress.d.ts +8 -8
- package/src/components/CircularProgress.tsx +42 -42
- package/src/components/ColorAdjustView.d.ts +12 -12
- package/src/components/ColorAdjustView.tsx +64 -64
- package/src/components/ColorExtractor.d.ts +73 -73
- package/src/components/ColorExtractor.tsx +374 -374
- package/src/components/ColorTempAdjustView.d.ts +13 -13
- package/src/components/ColorTempAdjustView.tsx +57 -57
- package/src/components/ColorsLine.d.ts +7 -7
- package/src/components/ColorsLine.tsx +47 -47
- package/src/components/CustomListDialog.d.ts +15 -15
- package/src/components/CustomListDialog.tsx +66 -65
- package/src/components/DeleteButton.d.ts +10 -10
- package/src/components/DeleteButton.tsx +40 -40
- package/src/components/Dialog.d.ts +10 -10
- package/src/components/Dialog.tsx +38 -38
- package/src/components/DrawToolView.d.ts +46 -46
- package/src/components/DrawToolView.tsx +262 -262
- package/src/components/FanAdjustView.d.ts +23 -23
- package/src/components/FanAdjustView.tsx +141 -141
- package/src/components/InfoText.d.ts +11 -11
- package/src/components/InfoText.tsx +45 -45
- package/src/components/LampAdjustView.d.ts +10 -10
- package/src/components/LampAdjustView.tsx +75 -75
- package/src/components/LampAdjustView2.d.ts +24 -24
- package/src/components/LampAdjustView2.tsx +104 -104
- package/src/components/LinearGradientLine.d.ts +9 -9
- package/src/components/LinearGradientLine.tsx +63 -63
- package/src/components/LoadingView.tsx +39 -39
- package/src/components/MoodColorsLine.d.ts +9 -9
- package/src/components/MoodColorsLine.tsx +38 -38
- package/src/components/Page.d.ts +21 -21
- package/src/components/Page.tsx +104 -104
- package/src/components/Popup.d.ts +7 -7
- package/src/components/Popup.tsx +71 -71
- package/src/components/Segmented.d.ts +14 -14
- package/src/components/Segmented.tsx +76 -76
- package/src/components/ShowSelect.d.ts +1 -1
- package/src/components/ShowSelect.tsx +158 -158
- package/src/components/SocketItem.d.ts +13 -13
- package/src/components/SocketItem.tsx +87 -87
- package/src/components/Spacer.d.ts +7 -7
- package/src/components/Spacer.tsx +13 -13
- package/src/components/Stepper.d.ts +19 -19
- package/src/components/Stepper.tsx +130 -130
- package/src/components/StripAdjustView.d.ts +16 -16
- package/src/components/StripAdjustView.tsx +129 -129
- package/src/components/StripLightView.d.ts +14 -14
- package/src/components/StripLightView.tsx +24 -24
- package/src/components/Summary.tsx +116 -116
- package/src/components/Tag.d.ts +8 -8
- package/src/components/Tag.tsx +56 -56
- package/src/components/TextButton.d.ts +9 -9
- package/src/components/TextButton.tsx +31 -31
- package/src/components/TextField.d.ts +9 -9
- package/src/components/TextField.tsx +92 -92
- package/src/components/TextFieldStyleButton.d.ts +8 -8
- package/src/components/TextFieldStyleButton.tsx +85 -85
- package/src/components/UATabTitle.d.ts +6 -6
- package/src/components/UATabTitle.tsx +31 -31
- package/src/components/UATabs.d.ts +12 -12
- package/src/components/UATabs.tsx +77 -77
- package/src/components/connect.d.ts +10 -10
- package/src/components/connect.tsx +20 -20
- package/src/components/ldvColorBrightness.d.ts +1 -1
- package/src/components/ldvColorBrightness.tsx +18 -18
- package/src/components/ldvColorSlider.d.ts +14 -14
- package/src/components/ldvColorSlider.tsx +131 -131
- package/src/components/ldvItemView.d.ts +12 -12
- package/src/components/ldvItemView.tsx +43 -43
- package/src/components/ldvPickerView.d.ts +13 -13
- package/src/components/ldvPickerView.tsx +97 -97
- package/src/components/ldvPresetView.d.ts +2 -2
- package/src/components/ldvPresetView.tsx +86 -86
- package/src/components/ldvSaturation.d.ts +2 -2
- package/src/components/ldvSaturation.tsx +22 -22
- package/src/components/ldvSlider.d.ts +15 -15
- package/src/components/ldvSlider.tsx +103 -103
- package/src/components/ldvSwitch.d.ts +10 -10
- package/src/components/ldvSwitch.tsx +52 -52
- package/src/components/ldvTemperatureSlider.d.ts +13 -13
- package/src/components/ldvTemperatureSlider.tsx +139 -139
- package/src/components/ldvTopBar.d.ts +10 -10
- package/src/components/ldvTopBar.tsx +76 -76
- package/src/components/ldvTopName.d.ts +9 -9
- package/src/components/ldvTopName.tsx +63 -63
- package/src/components/segmentControl.d.ts +1 -1
- package/src/components/segmentControl.tsx +65 -65
- package/src/components/weekSelect.d.ts +7 -7
- package/src/components/weekSelect.tsx +98 -98
- package/src/composeLayout.d.ts +30 -30
- package/src/composeLayout.tsx +261 -261
- package/src/config/dark-theme.ts +61 -61
- package/src/config/light-theme.ts +61 -61
- package/src/hooks/Hooks.d.ts +2 -2
- package/src/hooks/Hooks.ts +8 -8
- package/src/i18n/index.d.ts +16 -16
- package/src/i18n/index.ts +37 -37
- package/src/i18n/strings.d.ts +15953 -15953
- package/src/i18n/strings.ts +23723 -23723
- package/src/main.tsx +9 -9
- package/src/models/GlobalParams.d.ts +14 -14
- package/src/models/GlobalParams.ts +14 -14
- package/src/models/TuyaApi.d.ts +29 -29
- package/src/models/TuyaApi.ts +92 -92
- package/src/models/combine.d.ts +26 -26
- package/src/models/combine.ts +17 -17
- package/src/models/configureStore.d.ts +9 -9
- package/src/models/configureStore.ts +33 -33
- package/src/models/index.d.ts +31 -31
- package/src/models/index.ts +22 -22
- package/src/models/modules/NativePropsSlice.d.ts +61 -61
- package/src/models/modules/NativePropsSlice.tsx +467 -467
- package/src/models/modules/Result.d.ts +14 -14
- package/src/models/modules/Result.ts +15 -15
- package/src/models/modules/common.d.ts +44 -44
- package/src/models/modules/common.ts +161 -161
- package/src/res/index.d.ts +70 -70
- package/src/res/index.ts +73 -73
- package/src/utils/ColorParser.d.ts +66 -66
- package/src/utils/ColorParser.ts +189 -189
- package/src/utils/ColorUtils.d.ts +71 -71
- package/src/utils/ColorUtils.tsx +448 -448
- package/src/utils/Support.d.ts +13 -13
- package/src/utils/Support.ts +108 -108
- package/src/utils/TypeUtils.d.ts +3 -3
- package/src/utils/cctUtils.d.ts +1 -1
- package/src/utils/cctUtils.ts +110 -110
- package/src/utils/common.d.ts +35 -35
- package/src/utils/common.ts +379 -379
- package/src/utils/index.d.ts +26 -26
- package/src/utils/index.ts +191 -191
- package/src/utils/interface.d.ts +6 -6
- package/src/utils/interface.ts +50 -11
- package/src/utils/loopsCompare.d.ts +1 -1
- package/src/utils/loopsCompare.ts +62 -62
- package/tsconfig.json +50 -50
- package/update-localazy.py +52 -52
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import {Text, TouchableOpacity, View} from 'react-native'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import {Utils} from 'tuya-panel-kit'
|
|
4
|
-
|
|
5
|
-
const {convertX} = Utils.RatioUtils
|
|
6
|
-
|
|
7
|
-
export default function SegmentControl(props) {
|
|
8
|
-
|
|
9
|
-
const {title1, title2, isFirst, setIsFirst, style} = props
|
|
10
|
-
|
|
11
|
-
return (<View style={{}}>
|
|
12
|
-
<View style={[{
|
|
13
|
-
backgroundColor: '#eeeeef',
|
|
14
|
-
marginHorizontal: convertX(24),
|
|
15
|
-
marginVertical: convertX(0),
|
|
16
|
-
borderRadius: convertX(8.9),
|
|
17
|
-
flexDirection: 'row',
|
|
18
|
-
}, style]}>
|
|
19
|
-
<TouchableOpacity style={
|
|
20
|
-
[{
|
|
21
|
-
flex: 1,
|
|
22
|
-
justifyContent: 'center',
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
margin: convertX(2),
|
|
25
|
-
borderRadius: convertX(6.9),
|
|
26
|
-
}, isFirst ?
|
|
27
|
-
{backgroundColor: '#fff', margin: convertX(2), borderRadius: 6.9} :
|
|
28
|
-
{backgroundColor: '#eeeeef'}]
|
|
29
|
-
} onPress={() => setIsFirst(true)}>
|
|
30
|
-
<Text
|
|
31
|
-
style={{
|
|
32
|
-
color: '#000',
|
|
33
|
-
fontSize: convertX(12),
|
|
34
|
-
fontFamily: isFirst ? 'helvetica_neue_lt_std_bd' : 'helvetica_neue_lt_std_roman',
|
|
35
|
-
marginVertical: convertX(10),
|
|
36
|
-
}}>
|
|
37
|
-
{title1}
|
|
38
|
-
</Text>
|
|
39
|
-
</TouchableOpacity>
|
|
40
|
-
<TouchableOpacity
|
|
41
|
-
style={
|
|
42
|
-
[{
|
|
43
|
-
flex: 1,
|
|
44
|
-
justifyContent: 'center',
|
|
45
|
-
alignItems: 'center',
|
|
46
|
-
margin: convertX(2),
|
|
47
|
-
borderRadius: convertX(6.9),
|
|
48
|
-
},
|
|
49
|
-
!isFirst ?
|
|
50
|
-
{backgroundColor: '#fff'} :
|
|
51
|
-
{backgroundColor: '#eeeeef'}]
|
|
52
|
-
}
|
|
53
|
-
onPress={() => setIsFirst(false)}>
|
|
54
|
-
<Text
|
|
55
|
-
style={{
|
|
56
|
-
color: '#000',
|
|
57
|
-
fontSize: convertX(12),
|
|
58
|
-
fontFamily: isFirst ? 'helvetica_neue_lt_std_roman' : 'helvetica_neue_lt_std_bd',
|
|
59
|
-
marginVertical: convertX(10),
|
|
60
|
-
}}>
|
|
61
|
-
{title2}
|
|
62
|
-
</Text>
|
|
63
|
-
</TouchableOpacity>
|
|
64
|
-
</View>
|
|
65
|
-
</View>)
|
|
1
|
+
import {Text, TouchableOpacity, View} from 'react-native'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import {Utils} from 'tuya-panel-kit'
|
|
4
|
+
|
|
5
|
+
const {convertX} = Utils.RatioUtils
|
|
6
|
+
|
|
7
|
+
export default function SegmentControl(props) {
|
|
8
|
+
|
|
9
|
+
const {title1, title2, isFirst, setIsFirst, style} = props
|
|
10
|
+
|
|
11
|
+
return (<View style={{}}>
|
|
12
|
+
<View style={[{
|
|
13
|
+
backgroundColor: '#eeeeef',
|
|
14
|
+
marginHorizontal: convertX(24),
|
|
15
|
+
marginVertical: convertX(0),
|
|
16
|
+
borderRadius: convertX(8.9),
|
|
17
|
+
flexDirection: 'row',
|
|
18
|
+
}, style]}>
|
|
19
|
+
<TouchableOpacity style={
|
|
20
|
+
[{
|
|
21
|
+
flex: 1,
|
|
22
|
+
justifyContent: 'center',
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
margin: convertX(2),
|
|
25
|
+
borderRadius: convertX(6.9),
|
|
26
|
+
}, isFirst ?
|
|
27
|
+
{backgroundColor: '#fff', margin: convertX(2), borderRadius: 6.9} :
|
|
28
|
+
{backgroundColor: '#eeeeef'}]
|
|
29
|
+
} onPress={() => setIsFirst(true)}>
|
|
30
|
+
<Text
|
|
31
|
+
style={{
|
|
32
|
+
color: '#000',
|
|
33
|
+
fontSize: convertX(12),
|
|
34
|
+
fontFamily: isFirst ? 'helvetica_neue_lt_std_bd' : 'helvetica_neue_lt_std_roman',
|
|
35
|
+
marginVertical: convertX(10),
|
|
36
|
+
}}>
|
|
37
|
+
{title1}
|
|
38
|
+
</Text>
|
|
39
|
+
</TouchableOpacity>
|
|
40
|
+
<TouchableOpacity
|
|
41
|
+
style={
|
|
42
|
+
[{
|
|
43
|
+
flex: 1,
|
|
44
|
+
justifyContent: 'center',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
margin: convertX(2),
|
|
47
|
+
borderRadius: convertX(6.9),
|
|
48
|
+
},
|
|
49
|
+
!isFirst ?
|
|
50
|
+
{backgroundColor: '#fff'} :
|
|
51
|
+
{backgroundColor: '#eeeeef'}]
|
|
52
|
+
}
|
|
53
|
+
onPress={() => setIsFirst(false)}>
|
|
54
|
+
<Text
|
|
55
|
+
style={{
|
|
56
|
+
color: '#000',
|
|
57
|
+
fontSize: convertX(12),
|
|
58
|
+
fontFamily: isFirst ? 'helvetica_neue_lt_std_roman' : 'helvetica_neue_lt_std_bd',
|
|
59
|
+
marginVertical: convertX(10),
|
|
60
|
+
}}>
|
|
61
|
+
{title2}
|
|
62
|
+
</Text>
|
|
63
|
+
</TouchableOpacity>
|
|
64
|
+
</View>
|
|
65
|
+
</View>)
|
|
66
66
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const setDataSource: (loop: any) => {
|
|
2
|
-
enabled: boolean;
|
|
3
|
-
index: number;
|
|
4
|
-
title: string;
|
|
5
|
-
}[];
|
|
6
|
-
declare const _default: (props: any) => JSX.Element;
|
|
7
|
-
export default _default;
|
|
1
|
+
export declare const setDataSource: (loop: any) => {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
index: number;
|
|
4
|
+
title: string;
|
|
5
|
+
}[];
|
|
6
|
+
declare const _default: (props: any) => JSX.Element;
|
|
7
|
+
export default _default;
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import {Text, TouchableOpacity, View} from 'react-native'
|
|
3
|
-
import {Utils} from 'tuya-panel-kit'
|
|
4
|
-
import I18n from '../i18n/index'
|
|
5
|
-
|
|
6
|
-
const cx = Utils.RatioUtils.convertX
|
|
7
|
-
const { withTheme } = Utils.ThemeUtils
|
|
8
|
-
|
|
9
|
-
const repeatPeriod = [
|
|
10
|
-
{
|
|
11
|
-
index: 1,
|
|
12
|
-
title: I18n.getLang('timeschedule_add_schedule_weekday7_text'),
|
|
13
|
-
enabled: false,
|
|
14
|
-
}, {
|
|
15
|
-
index: 2,
|
|
16
|
-
title: I18n.getLang('timeschedule_add_schedule_weekday1_text'),
|
|
17
|
-
enabled: false,
|
|
18
|
-
}, {
|
|
19
|
-
index: 3,
|
|
20
|
-
title: I18n.getLang('timeschedule_add_schedule_weekday2_text'),
|
|
21
|
-
enabled: false,
|
|
22
|
-
}, {
|
|
23
|
-
index: 4,
|
|
24
|
-
title: I18n.getLang('timeschedule_add_schedule_weekday3_text'),
|
|
25
|
-
enabled: false,
|
|
26
|
-
}, {
|
|
27
|
-
index: 5,
|
|
28
|
-
title: I18n.getLang('timeschedule_add_schedule_weekday4_text'),
|
|
29
|
-
enabled: false,
|
|
30
|
-
}, {
|
|
31
|
-
index: 6,
|
|
32
|
-
title: I18n.getLang('timeschedule_add_schedule_weekday5_text'),
|
|
33
|
-
enabled: false,
|
|
34
|
-
}, {
|
|
35
|
-
index: 7,
|
|
36
|
-
title: I18n.getLang('timeschedule_add_schedule_weekday6_text'),
|
|
37
|
-
enabled: false,
|
|
38
|
-
},
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
export const setDataSource = (loop) => {
|
|
42
|
-
return repeatPeriod.map((item, index) => {
|
|
43
|
-
return {
|
|
44
|
-
...item,
|
|
45
|
-
enabled: loop[index] === 1,
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const WeekSelect = (props) => {
|
|
51
|
-
|
|
52
|
-
const {value, onSelect, style} = props
|
|
53
|
-
const dataSource = setDataSource(value)
|
|
54
|
-
|
|
55
|
-
return (<View style={{
|
|
56
|
-
height: 40,
|
|
57
|
-
}}>
|
|
58
|
-
<View
|
|
59
|
-
style={[{
|
|
60
|
-
flexDirection: 'row',
|
|
61
|
-
justifyContent: 'space-between',
|
|
62
|
-
marginHorizontal: cx(20),
|
|
63
|
-
}, style]}>
|
|
64
|
-
{dataSource.map(period => {
|
|
65
|
-
return (
|
|
66
|
-
<TouchableOpacity
|
|
67
|
-
key={period.index}
|
|
68
|
-
onPress={() => {
|
|
69
|
-
onSelect(period.index)
|
|
70
|
-
}}>
|
|
71
|
-
<View
|
|
72
|
-
style={{
|
|
73
|
-
width: cx(40),
|
|
74
|
-
height: cx(40),
|
|
75
|
-
justifyContent: 'center',
|
|
76
|
-
alignItems: 'center',
|
|
77
|
-
borderRadius: cx(20),
|
|
78
|
-
backgroundColor: period.enabled ? props.theme.global.thirdBrand : props.theme.global.background,
|
|
79
|
-
borderWidth: cx(1),
|
|
80
|
-
// borderColor: period.enabled ? "#fff" : 'rgba(120, 120, 128, 0.2)'
|
|
81
|
-
borderColor: props.theme.global.brand,
|
|
82
|
-
}}>
|
|
83
|
-
|
|
84
|
-
<Text
|
|
85
|
-
style={{
|
|
86
|
-
color: props.theme.global.brand,
|
|
87
|
-
textAlign: 'center',
|
|
88
|
-
}}>{period.title}</Text>
|
|
89
|
-
</View>
|
|
90
|
-
</TouchableOpacity>
|
|
91
|
-
)
|
|
92
|
-
})}
|
|
93
|
-
</View>
|
|
94
|
-
|
|
95
|
-
</View>)
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export default withTheme(WeekSelect)
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {Text, TouchableOpacity, View} from 'react-native'
|
|
3
|
+
import {Utils} from 'tuya-panel-kit'
|
|
4
|
+
import I18n from '../i18n/index'
|
|
5
|
+
|
|
6
|
+
const cx = Utils.RatioUtils.convertX
|
|
7
|
+
const { withTheme } = Utils.ThemeUtils
|
|
8
|
+
|
|
9
|
+
const repeatPeriod = [
|
|
10
|
+
{
|
|
11
|
+
index: 1,
|
|
12
|
+
title: I18n.getLang('timeschedule_add_schedule_weekday7_text'),
|
|
13
|
+
enabled: false,
|
|
14
|
+
}, {
|
|
15
|
+
index: 2,
|
|
16
|
+
title: I18n.getLang('timeschedule_add_schedule_weekday1_text'),
|
|
17
|
+
enabled: false,
|
|
18
|
+
}, {
|
|
19
|
+
index: 3,
|
|
20
|
+
title: I18n.getLang('timeschedule_add_schedule_weekday2_text'),
|
|
21
|
+
enabled: false,
|
|
22
|
+
}, {
|
|
23
|
+
index: 4,
|
|
24
|
+
title: I18n.getLang('timeschedule_add_schedule_weekday3_text'),
|
|
25
|
+
enabled: false,
|
|
26
|
+
}, {
|
|
27
|
+
index: 5,
|
|
28
|
+
title: I18n.getLang('timeschedule_add_schedule_weekday4_text'),
|
|
29
|
+
enabled: false,
|
|
30
|
+
}, {
|
|
31
|
+
index: 6,
|
|
32
|
+
title: I18n.getLang('timeschedule_add_schedule_weekday5_text'),
|
|
33
|
+
enabled: false,
|
|
34
|
+
}, {
|
|
35
|
+
index: 7,
|
|
36
|
+
title: I18n.getLang('timeschedule_add_schedule_weekday6_text'),
|
|
37
|
+
enabled: false,
|
|
38
|
+
},
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
export const setDataSource = (loop) => {
|
|
42
|
+
return repeatPeriod.map((item, index) => {
|
|
43
|
+
return {
|
|
44
|
+
...item,
|
|
45
|
+
enabled: loop[index] === 1,
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const WeekSelect = (props) => {
|
|
51
|
+
|
|
52
|
+
const {value, onSelect, style} = props
|
|
53
|
+
const dataSource = setDataSource(value)
|
|
54
|
+
|
|
55
|
+
return (<View style={{
|
|
56
|
+
height: 40,
|
|
57
|
+
}}>
|
|
58
|
+
<View
|
|
59
|
+
style={[{
|
|
60
|
+
flexDirection: 'row',
|
|
61
|
+
justifyContent: 'space-between',
|
|
62
|
+
marginHorizontal: cx(20),
|
|
63
|
+
}, style]}>
|
|
64
|
+
{dataSource.map(period => {
|
|
65
|
+
return (
|
|
66
|
+
<TouchableOpacity
|
|
67
|
+
key={period.index}
|
|
68
|
+
onPress={() => {
|
|
69
|
+
onSelect(period.index)
|
|
70
|
+
}}>
|
|
71
|
+
<View
|
|
72
|
+
style={{
|
|
73
|
+
width: cx(40),
|
|
74
|
+
height: cx(40),
|
|
75
|
+
justifyContent: 'center',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
borderRadius: cx(20),
|
|
78
|
+
backgroundColor: period.enabled ? props.theme.global.thirdBrand : props.theme.global.background,
|
|
79
|
+
borderWidth: cx(1),
|
|
80
|
+
// borderColor: period.enabled ? "#fff" : 'rgba(120, 120, 128, 0.2)'
|
|
81
|
+
borderColor: props.theme.global.brand,
|
|
82
|
+
}}>
|
|
83
|
+
|
|
84
|
+
<Text
|
|
85
|
+
style={{
|
|
86
|
+
color: props.theme.global.brand,
|
|
87
|
+
textAlign: 'center',
|
|
88
|
+
}}>{period.title}</Text>
|
|
89
|
+
</View>
|
|
90
|
+
</TouchableOpacity>
|
|
91
|
+
)
|
|
92
|
+
})}
|
|
93
|
+
</View>
|
|
94
|
+
|
|
95
|
+
</View>)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default withTheme(WeekSelect)
|
package/src/composeLayout.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { DevInfo } from 'tuya-panel-kit';
|
|
2
|
-
import { DeviceInfo, UAGroupInfo } from './models/modules/NativePropsSlice';
|
|
3
|
-
interface Props {
|
|
4
|
-
devInfo: DevInfo;
|
|
5
|
-
preload?: boolean;
|
|
6
|
-
ldvDevInfo: LdvDevInfo;
|
|
7
|
-
uaGroupInfo: UAGroupInfoProps;
|
|
8
|
-
}
|
|
9
|
-
interface LdvDevInfo extends DeviceInfo {
|
|
10
|
-
schema: any;
|
|
11
|
-
familyName: string;
|
|
12
|
-
}
|
|
13
|
-
interface UAGroupInfoProps extends UAGroupInfo {
|
|
14
|
-
schema: any;
|
|
15
|
-
familyName: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @param {} component - 需要连接到redux store的组件,通常为即为main
|
|
20
|
-
*/
|
|
21
|
-
declare const composeLayout: (component: React.ComponentType) => {
|
|
22
|
-
new (props: Props): {
|
|
23
|
-
initReduxDeviceNativeProps(ldvDevInfo: LdvDevInfo): void;
|
|
24
|
-
initReduxGroupNativeProps(uaGroupInfo: UAGroupInfoProps): void;
|
|
25
|
-
setDpSchemaMap(schema: string): any;
|
|
26
|
-
render(): any;
|
|
27
|
-
componentWillUnmount(): void;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export default composeLayout;
|
|
1
|
+
import { DevInfo } from 'tuya-panel-kit';
|
|
2
|
+
import { DeviceInfo, UAGroupInfo } from './models/modules/NativePropsSlice';
|
|
3
|
+
interface Props {
|
|
4
|
+
devInfo: DevInfo;
|
|
5
|
+
preload?: boolean;
|
|
6
|
+
ldvDevInfo: LdvDevInfo;
|
|
7
|
+
uaGroupInfo: UAGroupInfoProps;
|
|
8
|
+
}
|
|
9
|
+
interface LdvDevInfo extends DeviceInfo {
|
|
10
|
+
schema: any;
|
|
11
|
+
familyName: string;
|
|
12
|
+
}
|
|
13
|
+
interface UAGroupInfoProps extends UAGroupInfo {
|
|
14
|
+
schema: any;
|
|
15
|
+
familyName: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param {} component - 需要连接到redux store的组件,通常为即为main
|
|
20
|
+
*/
|
|
21
|
+
declare const composeLayout: (component: React.ComponentType) => {
|
|
22
|
+
new (props: Props): {
|
|
23
|
+
initReduxDeviceNativeProps(ldvDevInfo: LdvDevInfo): void;
|
|
24
|
+
initReduxGroupNativeProps(uaGroupInfo: UAGroupInfoProps): void;
|
|
25
|
+
setDpSchemaMap(schema: string): any;
|
|
26
|
+
render(): any;
|
|
27
|
+
componentWillUnmount(): void;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default composeLayout;
|