@momo-kits/calendar 0.89.4 → 0.89.6
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/Day.tsx +5 -5
- package/package.json +1 -1
- package/styles.ts +6 -2
package/Day.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, {Component} from 'react';
|
|
2
2
|
|
|
3
|
-
import {TouchableOpacity, View} from 'react-native';
|
|
3
|
+
import {TouchableOpacity, View, Text as RNText} from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
ApplicationContext,
|
|
6
6
|
Colors,
|
|
@@ -185,18 +185,18 @@ class Day extends Component<DayProps> {
|
|
|
185
185
|
disabled={!(this.isValid && this.isInScope)}
|
|
186
186
|
onPress={this.chooseDay}>
|
|
187
187
|
{this.lunarDate && this.showLunar && !!text && (
|
|
188
|
-
<
|
|
188
|
+
<RNText
|
|
189
189
|
style={{
|
|
190
190
|
position: 'absolute',
|
|
191
191
|
top: Spacing.XS,
|
|
192
192
|
right: Spacing.XS,
|
|
193
|
+
color: lunarTextColor
|
|
193
194
|
}}
|
|
194
|
-
|
|
195
|
-
color={lunarTextColor}>
|
|
195
|
+
>
|
|
196
196
|
{this.lunarDate.lunarDay === 1
|
|
197
197
|
? `${this.lunarDate.lunarDay}/${this.lunarDate.lunarMonth}`
|
|
198
198
|
: this.lunarDate.lunarDay}
|
|
199
|
-
</
|
|
199
|
+
</RNText>
|
|
200
200
|
)}
|
|
201
201
|
<Text typography={'header_s_semibold'} color={textColor}>
|
|
202
202
|
{text}
|
package/package.json
CHANGED
package/styles.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {StyleSheet} from 'react-native';
|
|
2
|
-
import {Colors, Radius, Spacing} from '@momo-kits/foundation';
|
|
2
|
+
import {Colors, Radius, scaleSize, Spacing} from '@momo-kits/foundation';
|
|
3
3
|
|
|
4
4
|
export default StyleSheet.create({
|
|
5
5
|
//calendar
|
|
@@ -112,7 +112,6 @@ export default StyleSheet.create({
|
|
|
112
112
|
borderTopRightRadius: Radius.XS,
|
|
113
113
|
borderBottomRightRadius: Radius.XS,
|
|
114
114
|
},
|
|
115
|
-
|
|
116
115
|
invisible: {
|
|
117
116
|
height: 0,
|
|
118
117
|
width: 0,
|
|
@@ -120,4 +119,9 @@ export default StyleSheet.create({
|
|
|
120
119
|
marginBottom: 0,
|
|
121
120
|
overflow: 'hidden',
|
|
122
121
|
},
|
|
122
|
+
lunarText: {
|
|
123
|
+
fontSize: scaleSize(8),
|
|
124
|
+
lineHeight: scaleSize(12),
|
|
125
|
+
fontWeight: "500",
|
|
126
|
+
}
|
|
123
127
|
});
|