@xetwa/design-system 1.0.37 → 1.0.38
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
|
@@ -226,18 +226,7 @@ export const ModuleCard = ({
|
|
|
226
226
|
|
|
227
227
|
const subtitleVariant = size === 'xl' ? 'bodyLg' : size === 'lg' ? 'bodyMd' : 'bodySm';
|
|
228
228
|
|
|
229
|
-
|
|
230
|
-
if (status === 'active-dark') {
|
|
231
|
-
if (subtext) {
|
|
232
|
-
if (subtext.trim().startsWith('•')) {
|
|
233
|
-
displaySubtext = `Aula de revisão ${subtext.trim()}`;
|
|
234
|
-
} else {
|
|
235
|
-
displaySubtext = `Aula de revisão • ${subtext}`;
|
|
236
|
-
}
|
|
237
|
-
} else {
|
|
238
|
-
displaySubtext = 'Aula de revisão';
|
|
239
|
-
}
|
|
240
|
-
}
|
|
229
|
+
|
|
241
230
|
|
|
242
231
|
return (
|
|
243
232
|
<Animated.View style={[{ transform: [{ scale: scaleAnim }] }, style]}>
|
|
@@ -276,7 +265,7 @@ export const ModuleCard = ({
|
|
|
276
265
|
{title}
|
|
277
266
|
</Typography>
|
|
278
267
|
|
|
279
|
-
{(subtitle || subtext
|
|
268
|
+
{(subtitle || subtext) && (
|
|
280
269
|
<View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginTop: scale(2) }}>
|
|
281
270
|
<Typography variant={subtitleVariant} style={[
|
|
282
271
|
styles.subtitle,
|
|
@@ -285,9 +274,9 @@ export const ModuleCard = ({
|
|
|
285
274
|
flexShrink: 1, // Para o texto encolher se a tag ocupar espaço
|
|
286
275
|
}
|
|
287
276
|
]}>
|
|
288
|
-
{
|
|
289
|
-
{
|
|
290
|
-
{
|
|
277
|
+
{subtitle}
|
|
278
|
+
{subtitle && subtext && ' '}
|
|
279
|
+
{subtext && <Typography variant={subtitleVariant} style={styles.subtext}>{subtext}</Typography>}
|
|
291
280
|
</Typography>
|
|
292
281
|
{tagLabel && (status === 'active-dark' || status === 'active') && (
|
|
293
282
|
<Tag
|