@xetwa/design-system 1.0.13 → 1.0.15
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
|
@@ -168,19 +168,19 @@ export const PlanCard = ({
|
|
|
168
168
|
|
|
169
169
|
{isMini ? (
|
|
170
170
|
<View style={[styles.miniHeader, { marginTop: scale(8), marginBottom: scale(4) }]}>
|
|
171
|
-
<View style={styles.
|
|
172
|
-
<Typography variant="h1" color="#51332d" style={{
|
|
171
|
+
<View style={styles.miniRow}>
|
|
172
|
+
<Typography variant="h1" color="#51332d" numberOfLines={1} adjustsFontSizeToFit style={{ flex: 1, marginRight: scale(8) }}>
|
|
173
173
|
{planName}
|
|
174
174
|
</Typography>
|
|
175
|
-
<Typography variant="
|
|
176
|
-
{
|
|
175
|
+
<Typography variant="display1" color="#51332d" numberOfLines={1} adjustsFontSizeToFit>
|
|
176
|
+
{priceText}
|
|
177
177
|
</Typography>
|
|
178
178
|
</View>
|
|
179
|
-
<View style={styles.
|
|
180
|
-
<Typography variant="
|
|
181
|
-
{
|
|
179
|
+
<View style={[styles.miniRow, { marginTop: scale(2) }]}>
|
|
180
|
+
<Typography variant="bodySm" color="#9a8478" numberOfLines={1} adjustsFontSizeToFit style={{ flex: 1, marginRight: scale(8) }}>
|
|
181
|
+
{tierLabel}
|
|
182
182
|
</Typography>
|
|
183
|
-
<Typography variant="bodySm" color="#9a8478" style={{
|
|
183
|
+
<Typography variant="bodySm" color="#9a8478" numberOfLines={1} adjustsFontSizeToFit style={{ textAlign: 'right' }}>
|
|
184
184
|
{pricePeriod}
|
|
185
185
|
</Typography>
|
|
186
186
|
</View>
|
|
@@ -276,19 +276,14 @@ const styles = StyleSheet.create({
|
|
|
276
276
|
marginTop: 8,
|
|
277
277
|
},
|
|
278
278
|
miniHeader: {
|
|
279
|
+
width: '100%',
|
|
280
|
+
},
|
|
281
|
+
miniRow: {
|
|
279
282
|
flexDirection: 'row',
|
|
280
283
|
justifyContent: 'space-between',
|
|
281
|
-
alignItems: '
|
|
284
|
+
alignItems: 'baseline',
|
|
282
285
|
width: '100%',
|
|
283
286
|
},
|
|
284
|
-
miniLeft: {
|
|
285
|
-
alignItems: 'flex-start',
|
|
286
|
-
flex: 1,
|
|
287
|
-
},
|
|
288
|
-
miniRight: {
|
|
289
|
-
alignItems: 'flex-end',
|
|
290
|
-
justifyContent: 'center',
|
|
291
|
-
},
|
|
292
287
|
labelTier: {
|
|
293
288
|
|
|
294
289
|
fontSize: 10,
|
package/src/styles/theme.ts
CHANGED
|
@@ -198,7 +198,7 @@ export const theme = {
|
|
|
198
198
|
label: {
|
|
199
199
|
...font('Nunito-ExtraBold', '800'),
|
|
200
200
|
fontSize: 10,
|
|
201
|
-
lineHeight:
|
|
201
|
+
lineHeight: 14,
|
|
202
202
|
letterSpacing: 1.2,
|
|
203
203
|
},
|
|
204
204
|
bodyLg: {
|
|
@@ -224,18 +224,19 @@ export const theme = {
|
|
|
224
224
|
btnLg: {
|
|
225
225
|
...font('Nunito-ExtraBold', '800'),
|
|
226
226
|
fontSize: 16,
|
|
227
|
+
lineHeight: 22,
|
|
227
228
|
letterSpacing: 0.64,
|
|
228
229
|
},
|
|
229
230
|
btnMd: {
|
|
230
|
-
|
|
231
|
+
...font('Nunito-ExtraBold', '800'),
|
|
231
232
|
fontSize: 14,
|
|
232
|
-
|
|
233
|
+
lineHeight: 20,
|
|
233
234
|
letterSpacing: 0.56,
|
|
234
235
|
},
|
|
235
236
|
btnSm: {
|
|
236
|
-
|
|
237
|
+
...font('Nunito-ExtraBold', '800'),
|
|
237
238
|
fontSize: 12,
|
|
238
|
-
|
|
239
|
+
lineHeight: 16,
|
|
239
240
|
letterSpacing: 0.48,
|
|
240
241
|
},
|
|
241
242
|
},
|