@xetwa/design-system 1.0.14 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xetwa/design-system",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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.miniLeft}>
172
- <Typography variant="h1" color="#51332d" style={{ marginBottom: scale(2) }}>
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="bodySm" color="#9a8478">
176
- {tierLabel}
175
+ <Typography variant="display1" color="#51332d" numberOfLines={1} adjustsFontSizeToFit>
176
+ {priceText}
177
177
  </Typography>
178
178
  </View>
179
- <View style={styles.miniRight}>
180
- <Typography variant="display1" color="#51332d">
181
- {priceText}
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={{ marginTop: scale(2), textAlign: 'right' }}>
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: 'center',
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,