@momo-kits/calendar 0.0.55-beta.4 → 0.0.55-beta.5
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/Calendar.js +10 -4
- package/src/CalendarPro.js +8 -2
package/package.json
CHANGED
package/src/Calendar.js
CHANGED
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import { View, ScrollView, Platform, StyleSheet } from 'react-native';
|
|
4
4
|
import moment from 'moment';
|
|
5
|
-
import { Text, SwitchLanguage, Colors, Spacing } from '@momo-kits/core';
|
|
5
|
+
import { Text, SwitchLanguage, Colors, Spacing, Radius } from '@momo-kits/core';
|
|
6
6
|
import Switch from '@momo-kits/switch';
|
|
7
7
|
import CalendarPro from './CalendarPro';
|
|
8
8
|
import TabHeader from './TabHeader';
|
|
@@ -419,9 +419,15 @@ class Calendar extends Component {
|
|
|
419
419
|
} = this.props;
|
|
420
420
|
const { isDoubleDateMode } = this.state;
|
|
421
421
|
return (
|
|
422
|
-
<ScrollView style={{ flex: 1, backgroundColor: '
|
|
423
|
-
|
|
424
|
-
|
|
422
|
+
<ScrollView style={{ flex: 1, backgroundColor: 'transparent' }}>
|
|
423
|
+
<View
|
|
424
|
+
style={{
|
|
425
|
+
backgroundColor: Colors.black_01,
|
|
426
|
+
borderRadius: Radius.XS,
|
|
427
|
+
}}>
|
|
428
|
+
{!isHiddenSwitch && this.renderSwitchReturnSelection()}
|
|
429
|
+
{!isHideHeaderPanel && this.renderHeaderPanel()}
|
|
430
|
+
</View>
|
|
425
431
|
<CalendarPro
|
|
426
432
|
ref={this.calendarPicker}
|
|
427
433
|
startDate={doubleDate?.first}
|
package/src/CalendarPro.js
CHANGED
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
Image,
|
|
19
19
|
IconSource,
|
|
20
20
|
Spacing,
|
|
21
|
+
Radius,
|
|
21
22
|
} from '@momo-kits/core';
|
|
22
23
|
import MonthList from './MonthList';
|
|
23
24
|
import HeaderControl from './HeaderControl';
|
|
@@ -409,7 +410,7 @@ const styles = StyleSheet.create({
|
|
|
409
410
|
borderStyle: 'solid',
|
|
410
411
|
borderColor: '#c7c7cd',
|
|
411
412
|
},
|
|
412
|
-
viewDate: {
|
|
413
|
+
viewDate: {},
|
|
413
414
|
textDay: {
|
|
414
415
|
// fontSize: 14,
|
|
415
416
|
lineHeight: 16,
|
|
@@ -424,7 +425,12 @@ const styles = StyleSheet.create({
|
|
|
424
425
|
paddingTop: 15,
|
|
425
426
|
paddingBottom: 10,
|
|
426
427
|
},
|
|
427
|
-
container: {
|
|
428
|
+
container: {
|
|
429
|
+
flex: 1,
|
|
430
|
+
backgroundColor: 'white',
|
|
431
|
+
marginTop: Spacing.S,
|
|
432
|
+
borderRadius: Radius.XS,
|
|
433
|
+
},
|
|
428
434
|
blueSeperator: {
|
|
429
435
|
height: 1,
|
|
430
436
|
width: '100%',
|