@ledvance/ui-biz-bundle 1.1.59 → 1.1.61
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 +1 -1
- package/src/modules/flags/FlagEditPage.tsx +22 -14
- package/src/modules/flags/FlagPage.tsx +7 -18
- package/src/modules/mood/DynamicMoodEditorPage.tsx +12 -14
- package/src/modules/mood/FantasyMoodEditPage.tsx +12 -14
- package/src/modules/mood/StaticMoodEditorPage.tsx +12 -13
- package/src/modules/timer/TimerPage.tsx +58 -56
- package/src/newModules/biorhythm/BiorhythmActions.ts +374 -0
- package/src/newModules/biorhythm/BiorhythmBean.ts +230 -0
- package/src/newModules/biorhythm/BiorhythmEditPage.tsx +267 -0
- package/src/newModules/biorhythm/BiorhythmPage.tsx +638 -0
- package/src/newModules/biorhythm/IconSelect.tsx +85 -0
- package/src/newModules/biorhythm/Router.ts +34 -0
- package/src/newModules/biorhythm/circular/ItemIcon.d.ts +22 -0
- package/src/newModules/biorhythm/circular/ItemIcon.tsx +173 -0
- package/src/newModules/biorhythm/circular/Progress.d.ts +24 -0
- package/src/newModules/biorhythm/circular/Progress.tsx +372 -0
- package/src/newModules/biorhythm/circular/TimeCircular.d.ts +11 -0
- package/src/newModules/biorhythm/circular/TimeCircular.tsx +64 -0
- package/src/newModules/biorhythm/circular/biorhythm_plantimer.png +0 -0
- package/src/newModules/biorhythm/circular/rhythm_icon.png +0 -0
- package/src/newModules/biorhythm/iconListData.ts +30 -0
- package/src/newModules/biorhythm/pIdList.ts +36 -0
- package/src/newModules/biorhythm/res/BiologicalRes.d.ts +43 -0
- package/src/newModules/biorhythm/res/BiologicalRes.ts +42 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_12.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_new.png +0 -0
- package/src/newModules/biorhythm/res/Biological_Rhythm_new_12.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedAccountGroups@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavAdd@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedBuildingsHome@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedEditorFavoriteBorder@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBed@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherBusinessCenter@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherChair@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherCoffee@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherDirectionsCar@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherFitnessCenter@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherHeadphones@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMenuBook@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherMusicNote@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherNotificationsNone@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherPottedPlant@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherRestaurant@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSentimentSatisfied@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherSportsEsports@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedOtherTv@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedTimeAccessAlarm@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherBedtime@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherPartlyCloudyDay@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherStarOutline@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbSunny@3x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@2x.png +0 -0
- package/src/newModules/biorhythm/res/iconsMaterialOutlinedWheatherWbTwilight@3x.png +0 -0
- package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +84 -83
- package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +133 -132
- package/src/newModules/energyConsumption/component/EnergyModal.tsx +119 -117
- package/src/newModules/energyConsumption/component/Overview.tsx +38 -36
- package/src/newModules/mood/AddMoodPage.tsx +37 -21
- package/src/newModules/mood/DynamicMoodEditorPage.tsx +7 -2
- package/src/newModules/mood/MixDynamicMoodEditor.tsx +8 -2
- package/src/newModules/mood/StaticMoodEditorPage.tsx +9 -2
- package/src/newModules/timeSchedule/Interface.ts +1 -0
- package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +203 -202
- package/src/newModules/timeSchedule/TimeSchedulePage.tsx +35 -34
- package/src/newModules/timeSchedule/components/ManuaSettings.tsx +11 -10
- package/src/newModules/timeSchedule/components/ScheduleCard.tsx +63 -60
|
@@ -21,7 +21,8 @@ import ScheduleCard from './components/ScheduleCard';
|
|
|
21
21
|
import { ui_biz_routerKey } from '../../navigation/Routers';
|
|
22
22
|
|
|
23
23
|
const { convertX: cx } = Utils.RatioUtils;
|
|
24
|
-
const
|
|
24
|
+
const { withTheme } = Utils.ThemeUtils
|
|
25
|
+
const MAX_NUM = 30
|
|
25
26
|
|
|
26
27
|
export interface TimeSchedulePageParams {
|
|
27
28
|
isSupportColor: boolean;
|
|
@@ -52,7 +53,7 @@ export interface TimeSchedulePageParams {
|
|
|
52
53
|
drawToolDataCode?: string;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
const TimeSchedulePage = () => {
|
|
56
|
+
const TimeSchedulePage = (props: {theme?: any}) => {
|
|
56
57
|
const deviceInfo = useDeviceInfo();
|
|
57
58
|
const devId = useDeviceId();
|
|
58
59
|
const navigation = useNavigation();
|
|
@@ -90,11 +91,11 @@ const TimeSchedulePage = () => {
|
|
|
90
91
|
state.timeScheduleList =
|
|
91
92
|
mode === 'update'
|
|
92
93
|
? state.timeScheduleList.map(item => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
if (item.id === timeSchedule.id) {
|
|
95
|
+
return timeSchedule;
|
|
96
|
+
}
|
|
97
|
+
return item;
|
|
98
|
+
})
|
|
98
99
|
: state.timeScheduleList.filter(item => item.id !== timeSchedule.id);
|
|
99
100
|
}
|
|
100
101
|
return {
|
|
@@ -118,6 +119,28 @@ const TimeSchedulePage = () => {
|
|
|
118
119
|
});
|
|
119
120
|
}, []);
|
|
120
121
|
|
|
122
|
+
const styles = StyleSheet.create({
|
|
123
|
+
overviewDescription: {
|
|
124
|
+
color: props.theme.global.fontColor,
|
|
125
|
+
marginHorizontal: cx(24),
|
|
126
|
+
},
|
|
127
|
+
emptyImage: {
|
|
128
|
+
width: cx(225),
|
|
129
|
+
height: cx(198),
|
|
130
|
+
},
|
|
131
|
+
emptyContainer: {
|
|
132
|
+
marginHorizontal: cx(24),
|
|
133
|
+
alignItems: 'center',
|
|
134
|
+
},
|
|
135
|
+
addBtn: {
|
|
136
|
+
height: cx(40),
|
|
137
|
+
width: 'auto',
|
|
138
|
+
minWidth: cx(150),
|
|
139
|
+
paddingHorizontal: cx(16),
|
|
140
|
+
backgroundColor: props.theme.button.active,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
|
|
121
144
|
return (
|
|
122
145
|
<Page
|
|
123
146
|
backText={deviceInfo.name}
|
|
@@ -139,8 +162,8 @@ const TimeSchedulePage = () => {
|
|
|
139
162
|
text={I18n.getLang('motion_detection_time_schedule_notifications_warning_text')}
|
|
140
163
|
icon={res.ic_warning_amber}
|
|
141
164
|
style={{ marginHorizontal: cx(24) }}
|
|
142
|
-
textStyle={{ color:
|
|
143
|
-
iconStyle={{ tintColor:
|
|
165
|
+
textStyle={{ color: props.theme.global.fontColor }}
|
|
166
|
+
iconStyle={{ tintColor: props.theme.global.warning }}
|
|
144
167
|
/>
|
|
145
168
|
)}
|
|
146
169
|
<FlatList
|
|
@@ -174,8 +197,8 @@ const TimeSchedulePage = () => {
|
|
|
174
197
|
icon={res.device_panel_schedule_alert}
|
|
175
198
|
text={I18n.getLang('timeschedule_overview_empty_information_text')}
|
|
176
199
|
style={{ width: 'auto', alignItems: 'center' }}
|
|
177
|
-
textStyle={{ color:
|
|
178
|
-
iconStyle={{ tintColor:
|
|
200
|
+
textStyle={{ color: props.theme.global.fontColor, flex: undefined }}
|
|
201
|
+
iconStyle={{ tintColor: props.theme.global.fontColor }}
|
|
179
202
|
/>
|
|
180
203
|
<Spacer height={cx(16)} />
|
|
181
204
|
<DeleteButton
|
|
@@ -197,26 +220,4 @@ const TimeSchedulePage = () => {
|
|
|
197
220
|
);
|
|
198
221
|
};
|
|
199
222
|
|
|
200
|
-
|
|
201
|
-
overviewDescription: {
|
|
202
|
-
color: '#000',
|
|
203
|
-
marginHorizontal: cx(24),
|
|
204
|
-
},
|
|
205
|
-
emptyImage: {
|
|
206
|
-
width: cx(225),
|
|
207
|
-
height: cx(198),
|
|
208
|
-
},
|
|
209
|
-
emptyContainer: {
|
|
210
|
-
marginHorizontal: cx(24),
|
|
211
|
-
alignItems: 'center',
|
|
212
|
-
},
|
|
213
|
-
addBtn: {
|
|
214
|
-
height: cx(40),
|
|
215
|
-
width: 'auto',
|
|
216
|
-
minWidth: cx(150),
|
|
217
|
-
paddingHorizontal: cx(16),
|
|
218
|
-
backgroundColor: '#f60',
|
|
219
|
-
},
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
export default TimeSchedulePage;
|
|
223
|
+
export default withTheme(TimeSchedulePage)
|
|
@@ -12,6 +12,7 @@ import I18n from '@ledvance/base/src/i18n';
|
|
|
12
12
|
import StripAdjustView from '@ledvance/base/src/components/StripAdjustView';
|
|
13
13
|
import Spacer from '@ledvance/base/src/components/Spacer';
|
|
14
14
|
const { convertX: cx } = Utils.RatioUtils;
|
|
15
|
+
const { withTheme } = Utils.ThemeUtils
|
|
15
16
|
|
|
16
17
|
function ManualSettings(props: ManualSettingProps) {
|
|
17
18
|
const state = useReactive({
|
|
@@ -64,7 +65,7 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
64
65
|
<Card style={{ marginHorizontal: cx(24) }}>
|
|
65
66
|
<LdvSwitch
|
|
66
67
|
title={item.key}
|
|
67
|
-
color={
|
|
68
|
+
color={props.theme.card.background}
|
|
68
69
|
colorAlpha={1}
|
|
69
70
|
enable={item.enable}
|
|
70
71
|
setEnable={(enable: boolean) => {
|
|
@@ -130,7 +131,7 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
130
131
|
))}
|
|
131
132
|
</View>
|
|
132
133
|
);
|
|
133
|
-
}, [state.deviceData, state.applyForList]);
|
|
134
|
+
}, [state.deviceData, state.applyForList, props.theme.type]);
|
|
134
135
|
|
|
135
136
|
const mixLightCard = useMemo(() => {
|
|
136
137
|
return (
|
|
@@ -140,7 +141,7 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
140
141
|
<Card style={{ marginHorizontal: cx(24) }}>
|
|
141
142
|
<LdvSwitch
|
|
142
143
|
title={item.key}
|
|
143
|
-
color={
|
|
144
|
+
color={props.theme.card.background}
|
|
144
145
|
colorAlpha={1}
|
|
145
146
|
enable={item.enable}
|
|
146
147
|
setEnable={(enable: boolean) => {
|
|
@@ -191,7 +192,7 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
191
192
|
))}
|
|
192
193
|
</View>
|
|
193
194
|
);
|
|
194
|
-
}, [state.deviceData, state.applyForList]);
|
|
195
|
+
}, [state.deviceData, state.applyForList, props.theme.type]);
|
|
195
196
|
|
|
196
197
|
const stripLightCard = useMemo(() => {
|
|
197
198
|
return (
|
|
@@ -199,7 +200,7 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
199
200
|
<Card>
|
|
200
201
|
<LdvSwitch
|
|
201
202
|
title={I18n.getLang('light_sources_tile_tw_lighting_headline')}
|
|
202
|
-
color={
|
|
203
|
+
color={props.theme.card.background}
|
|
203
204
|
colorAlpha={1}
|
|
204
205
|
enable={state.applyForList[0]?.enable}
|
|
205
206
|
setEnable={(enable: boolean) => {
|
|
@@ -240,20 +241,20 @@ function ManualSettings(props: ManualSettingProps) {
|
|
|
240
241
|
<Spacer />
|
|
241
242
|
</View>
|
|
242
243
|
);
|
|
243
|
-
}, [state.deviceData, state.applyForList]);
|
|
244
|
+
}, [state.deviceData, state.applyForList, props.theme.type]);
|
|
244
245
|
|
|
245
246
|
const componentRender = useMemo(() => {
|
|
246
247
|
const component =
|
|
247
248
|
props.manualData.type === DeviceType.MixLight
|
|
248
249
|
? mixLightCard
|
|
249
250
|
: props.manualData.type === DeviceType.StripLight
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
? stripLightCard
|
|
252
|
+
: lightSourceCard;
|
|
252
253
|
return component;
|
|
253
|
-
}, [props.manualData, state.applyForList, state.deviceData]);
|
|
254
|
+
}, [props.manualData, state.applyForList, state.deviceData, props.theme.type]);
|
|
254
255
|
|
|
255
256
|
|
|
256
257
|
return <View>{componentRender}</View>;
|
|
257
258
|
}
|
|
258
259
|
|
|
259
|
-
export default memo(ManualSettings)
|
|
260
|
+
export default memo(withTheme(ManualSettings))
|
|
@@ -3,11 +3,13 @@ import { ViewStyle, View, Text, StyleSheet } from "react-native";
|
|
|
3
3
|
import Card from "@ledvance/base/src/components/Card";
|
|
4
4
|
import { SwitchButton, Utils } from 'tuya-panel-kit';
|
|
5
5
|
import { convertTo12HourFormat, loopText } from '@ledvance/base/src/utils/common';
|
|
6
|
-
import { Timer } from "
|
|
6
|
+
import { Timer } from "../Interface";
|
|
7
7
|
import { useSystemTimeFormate } from "@ledvance/base/src/models/modules/NativePropsSlice";
|
|
8
8
|
const { convertX: cx } = Utils.RatioUtils;
|
|
9
|
+
const { withTheme } = Utils.ThemeUtils
|
|
9
10
|
|
|
10
11
|
interface ScheduleCardProps {
|
|
12
|
+
theme?: any
|
|
11
13
|
item: Timer
|
|
12
14
|
style?: ViewStyle
|
|
13
15
|
onEnableChange: (enable: boolean) => void
|
|
@@ -17,6 +19,64 @@ interface ScheduleCardProps {
|
|
|
17
19
|
const ScheduleCard = (props: ScheduleCardProps) => {
|
|
18
20
|
const { item, style, onEnableChange, onPress } = props;
|
|
19
21
|
const is24HourClock = useSystemTimeFormate()
|
|
22
|
+
|
|
23
|
+
const styles = StyleSheet.create({
|
|
24
|
+
card: {
|
|
25
|
+
marginHorizontal: cx(24),
|
|
26
|
+
borderRadius: cx(8),
|
|
27
|
+
},
|
|
28
|
+
container: {
|
|
29
|
+
flexDirection: 'row',
|
|
30
|
+
justifyContent: 'space-between',
|
|
31
|
+
},
|
|
32
|
+
infoContainer: {
|
|
33
|
+
flex: 1,
|
|
34
|
+
marginTop: cx(16),
|
|
35
|
+
marginBottom: cx(16),
|
|
36
|
+
flexDirection: 'column',
|
|
37
|
+
marginLeft: cx(16),
|
|
38
|
+
},
|
|
39
|
+
time: {
|
|
40
|
+
color: props.theme.global.fontColor,
|
|
41
|
+
marginBottom: cx(5),
|
|
42
|
+
fontSize: 16,
|
|
43
|
+
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
44
|
+
fontWeight: 'bold',
|
|
45
|
+
},
|
|
46
|
+
loop: {
|
|
47
|
+
color: props.theme.global.fontColor,
|
|
48
|
+
fontSize: cx(14),
|
|
49
|
+
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
50
|
+
marginTop: cx(8),
|
|
51
|
+
},
|
|
52
|
+
name: {
|
|
53
|
+
color: props.theme.global.fontColor,
|
|
54
|
+
fontSize: cx(14),
|
|
55
|
+
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
56
|
+
marginTop: cx(8),
|
|
57
|
+
},
|
|
58
|
+
switchContainer: {
|
|
59
|
+
marginRight: cx(16),
|
|
60
|
+
// backgroundColor: 'red',
|
|
61
|
+
marginTop: cx(16),
|
|
62
|
+
},
|
|
63
|
+
switch: {},
|
|
64
|
+
typeContainer: {
|
|
65
|
+
flexDirection: 'row',
|
|
66
|
+
marginTop: cx(8),
|
|
67
|
+
},
|
|
68
|
+
typeWrap: {
|
|
69
|
+
backgroundColor: props.theme.card.head,
|
|
70
|
+
marginRight: cx(10),
|
|
71
|
+
borderRadius: cx(10),
|
|
72
|
+
},
|
|
73
|
+
typeText: {
|
|
74
|
+
fontSize: cx(12),
|
|
75
|
+
color: props.theme.global.fontColor,
|
|
76
|
+
paddingHorizontal: cx(8),
|
|
77
|
+
paddingVertical: cx(2)
|
|
78
|
+
}
|
|
79
|
+
});
|
|
20
80
|
return (
|
|
21
81
|
<Card
|
|
22
82
|
style={styles.card}
|
|
@@ -24,7 +84,7 @@ const ScheduleCard = (props: ScheduleCardProps) => {
|
|
|
24
84
|
onPress={() => {
|
|
25
85
|
onPress(item);
|
|
26
86
|
}}
|
|
27
|
-
|
|
87
|
+
>
|
|
28
88
|
<View style={styles.infoContainer}>
|
|
29
89
|
<Text style={styles.time}>{is24HourClock ? item.time : convertTo12HourFormat(item.time)}</Text>
|
|
30
90
|
<Text style={styles.loop}>
|
|
@@ -49,61 +109,4 @@ const ScheduleCard = (props: ScheduleCardProps) => {
|
|
|
49
109
|
|
|
50
110
|
}
|
|
51
111
|
|
|
52
|
-
|
|
53
|
-
card: {
|
|
54
|
-
marginHorizontal: cx(24),
|
|
55
|
-
borderRadius: cx(8),
|
|
56
|
-
},
|
|
57
|
-
container: {
|
|
58
|
-
flexDirection: 'row',
|
|
59
|
-
justifyContent: 'space-between',
|
|
60
|
-
},
|
|
61
|
-
infoContainer: {
|
|
62
|
-
flex: 1,
|
|
63
|
-
marginTop: cx(16),
|
|
64
|
-
marginBottom: cx(16),
|
|
65
|
-
flexDirection: 'column',
|
|
66
|
-
marginLeft: cx(16),
|
|
67
|
-
},
|
|
68
|
-
time: {
|
|
69
|
-
marginBottom: cx(5),
|
|
70
|
-
fontSize: 16,
|
|
71
|
-
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
72
|
-
fontWeight: 'bold',
|
|
73
|
-
},
|
|
74
|
-
loop: {
|
|
75
|
-
color: '#000',
|
|
76
|
-
fontSize: cx(14),
|
|
77
|
-
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
78
|
-
marginTop: cx(8),
|
|
79
|
-
},
|
|
80
|
-
name: {
|
|
81
|
-
color: '#000',
|
|
82
|
-
fontSize: cx(14),
|
|
83
|
-
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
84
|
-
marginTop: cx(8),
|
|
85
|
-
},
|
|
86
|
-
switchContainer: {
|
|
87
|
-
marginRight: cx(16),
|
|
88
|
-
// backgroundColor: 'red',
|
|
89
|
-
marginTop: cx(16),
|
|
90
|
-
},
|
|
91
|
-
switch: {},
|
|
92
|
-
typeContainer: {
|
|
93
|
-
flexDirection: 'row',
|
|
94
|
-
marginTop: cx(8),
|
|
95
|
-
},
|
|
96
|
-
typeWrap: {
|
|
97
|
-
backgroundColor: '#E6E7E8',
|
|
98
|
-
marginRight: cx(10),
|
|
99
|
-
borderRadius: cx(10),
|
|
100
|
-
},
|
|
101
|
-
typeText: {
|
|
102
|
-
fontSize: cx(12),
|
|
103
|
-
color: '#000',
|
|
104
|
-
paddingHorizontal: cx(8),
|
|
105
|
-
paddingVertical: cx(2)
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
export default ScheduleCard
|
|
112
|
+
export default withTheme(ScheduleCard)
|