@xetwa/design-system 1.0.6 → 1.0.8
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
|
@@ -27,6 +27,8 @@ export interface MainButtonProps {
|
|
|
27
27
|
bgColor?: string;
|
|
28
28
|
/** Cor do texto customizada (sobrepõe a cor da variante) */
|
|
29
29
|
textColor?: string;
|
|
30
|
+
/** Peso da fonte customizada (sobrepõe o padrão do botão) */
|
|
31
|
+
weight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
30
32
|
/** Cor da sombra customizada (sobrepõe a cor da variante) */
|
|
31
33
|
shadowColor?: string;
|
|
32
34
|
/** Cor de fundo no hover (opcional) */
|
|
@@ -47,6 +49,7 @@ export const MainButton = React.forwardRef<React.ElementRef<typeof Pressable>, M
|
|
|
47
49
|
onPress,
|
|
48
50
|
bgColor,
|
|
49
51
|
textColor,
|
|
52
|
+
weight,
|
|
50
53
|
shadowColor,
|
|
51
54
|
hoverColor,
|
|
52
55
|
...props
|
|
@@ -209,7 +212,7 @@ export const MainButton = React.forwardRef<React.ElementRef<typeof Pressable>, M
|
|
|
209
212
|
/>
|
|
210
213
|
)}
|
|
211
214
|
|
|
212
|
-
<Typography style={textStyles}>
|
|
215
|
+
<Typography style={textStyles} weight={weight}>
|
|
213
216
|
{children}
|
|
214
217
|
</Typography>
|
|
215
218
|
</Pressable>
|
|
@@ -228,7 +228,7 @@ export const Vava: React.FC<VavaProps> = ({ variant = 'original', size = 200, av
|
|
|
228
228
|
<Svg
|
|
229
229
|
width={size}
|
|
230
230
|
height={size}
|
|
231
|
-
viewBox={avatarOnly ? "35
|
|
231
|
+
viewBox={avatarOnly ? "35 30 130 140" : "0 0 200 200"}
|
|
232
232
|
role="img"
|
|
233
233
|
aria-label={`Mascote Vava: ${variant}`}
|
|
234
234
|
>
|