decathlon-ui 0.3.20 → 0.3.22

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.
@@ -1 +1 @@
1
- {"version":3,"file":"badge.component.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAwDhD,eAAO,MAAM,KAAK,6FA1Cf,UAAU,6CA0CkC,CAAC"}
1
+ {"version":3,"file":"badge.component.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAkEhD,eAAO,MAAM,KAAK,6FApDf,UAAU,6CAoDkC,CAAC"}
@@ -6,7 +6,7 @@ import { useBadgeStyles } from "./badge.styles";
6
6
  * Badge - Componente para exibição de etiquetas ou marcadores
7
7
  * Suporta ícones SVG
8
8
  */
9
- const BadgeComponent = ({ text, variant = "default", size = "medium", style, textStyle, icon, iconPosition = "left", }) => {
9
+ const BadgeComponent = ({ text, variant, size = "medium", style, textStyle, icon, iconPosition = "left", }) => {
10
10
  const styles = useBadgeStyles(variant, size);
11
11
  const renderIcon = () => {
12
12
  if (!icon) {
@@ -26,7 +26,15 @@ const BadgeComponent = ({ text, variant = "default", size = "medium", style, tex
26
26
  return styles.medium;
27
27
  }
28
28
  };
29
- return (_jsxs(View, { style: [!variant && style ? style : styles.container, styles[variant]], children: [icon && iconPosition === "left" && renderIcon(), _jsx(Text, { style: [styles.text, getSizeStyle(), styles[variant], textStyle], children: text }), icon && iconPosition === "right" && renderIcon()] }));
29
+ return (_jsxs(View, { style: [
30
+ !variant && style ? style : styles.container,
31
+ variant && styles[variant],
32
+ ], children: [icon && iconPosition === "left" && renderIcon(), _jsx(Text, { style: [
33
+ styles.text,
34
+ getSizeStyle(),
35
+ variant && styles[variant],
36
+ textStyle,
37
+ ], children: text }), icon && iconPosition === "right" && renderIcon()] }));
30
38
  };
31
39
  export const Badge = React.memo(BadgeComponent);
32
40
  Badge.displayName = "Badge";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decathlon-ui",
3
- "version": "0.3.20",
3
+ "version": "0.3.22",
4
4
  "description": "Biblioteca de componentes React Native com Storybook e documentação via GitHub Pages.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",