@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/calendar",
3
- "version": "0.0.55-beta.4",
3
+ "version": "0.0.55-beta.5",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {
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: 'white' }}>
423
- {!isHiddenSwitch && this.renderSwitchReturnSelection()}
424
- {!isHideHeaderPanel && this.renderHeaderPanel()}
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}
@@ -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: { paddingHorizontal: 12 },
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: { flex: 1, backgroundColor: 'white', marginTop: 20 },
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%',