@xetwa/design-system 1.0.6 → 1.0.7

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.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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>