decathlon-ui 0.3.30 → 0.3.31

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;AAgEhD,eAAO,MAAM,KAAK,6FAlDf,UAAU,6CAkDkC,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;AA8DhD,eAAO,MAAM,KAAK,6FAhDf,UAAU,6CAgDkC,CAAC"}
@@ -26,12 +26,12 @@ const BadgeComponent = ({ text, variant, size = "medium", style, textStyle, icon
26
26
  return styles.medium;
27
27
  }
28
28
  };
29
- return (_jsxs(View, { style: [styles.container, !style && variant && styles[variant], style], children: [icon && iconPosition === "left" && renderIcon(), _jsx(View, { style: styles.textContainer, children: _jsx(Text, { style: [
30
- styles.text,
31
- getSizeStyle(),
32
- variant && styles[variant],
33
- textStyle,
34
- ], children: text }) }), icon && iconPosition === "right" && renderIcon()] }));
29
+ return (_jsxs(View, { style: [styles.container, !style && variant && styles[variant], style], children: [icon && iconPosition === "left" && renderIcon(), _jsx(Text, { style: [
30
+ styles.text,
31
+ getSizeStyle(),
32
+ variant && styles[variant],
33
+ textStyle,
34
+ ], children: text }), icon && iconPosition === "right" && renderIcon()] }));
35
35
  };
36
36
  export const Badge = React.memo(BadgeComponent);
37
37
  Badge.displayName = "Badge";
@@ -7,9 +7,6 @@ export declare const useBadgeStyles: (variant?: BadgeVariant, size?: BadgeSize)
7
7
  justifyContent: "center";
8
8
  gap: 8;
9
9
  };
10
- textContainer: {
11
- flex: number;
12
- };
13
10
  text: {
14
11
  color: "#101010";
15
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7D,eAAO,MAAM,cAAc,GACzB,UAAS,YAAwB,EACjC,OAAM,SAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4F3B,CAAC"}
1
+ {"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7D,eAAO,MAAM,cAAc,GACzB,UAAS,YAAwB,EACjC,OAAM,SAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyF3B,CAAC"}
@@ -23,9 +23,6 @@ export const useBadgeStyles = (variant = "default", size = "medium") => {
23
23
  justifyContent: "center",
24
24
  gap: theme.spacing.xs,
25
25
  },
26
- textContainer: {
27
- flex: 1,
28
- },
29
26
  text: {
30
27
  color: theme.colors.textPrimary,
31
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decathlon-ui",
3
- "version": "0.3.30",
3
+ "version": "0.3.31",
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",