@stackshift-ui/stats-card 6.0.12-beta.2 → 7.0.0-beta.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/stats-card",
3
3
  "description": "",
4
- "version": "6.0.12-beta.2",
4
+ "version": "7.0.0-beta.0",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,21 +29,21 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/eslint-config": "6.0.10-beta.2",
33
- "@stackshift-ui/typescript-config": "6.0.10-beta.2"
32
+ "@stackshift-ui/typescript-config": "6.0.10",
33
+ "@stackshift-ui/eslint-config": "6.0.10"
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.0.10-beta.2",
38
- "@stackshift-ui/text": "6.0.11-beta.2",
39
- "@stackshift-ui/system": "6.0.11-beta.2"
37
+ "@stackshift-ui/scripts": "6.1.0-beta.0",
38
+ "@stackshift-ui/system": "6.1.0-beta.0",
39
+ "@stackshift-ui/text": "7.0.0-beta.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@types/react": "16.8 - 19",
43
43
  "next": "10 - 14",
44
44
  "react": "16.8 - 19",
45
45
  "react-dom": "16.8 - 19",
46
- "@stackshift-ui/system": ">=6.0.11-beta.2"
46
+ "@stackshift-ui/system": ">=6.1.0-beta.0"
47
47
  },
48
48
  "peerDependenciesMeta": {
49
49
  "next": {
@@ -13,7 +13,15 @@ describe.concurrent("stats-card", () => {
13
13
 
14
14
  test("Common: Stats Card - test if renders without errors", ({ expect }) => {
15
15
  const clx = "statscard-class";
16
- render(<StatsCard className={clx} icon={ARGS.ICON} value={ARGS.VALUE} label={ARGS.LABEL} />);
16
+ render(
17
+ <StatsCard
18
+ data-testid="div"
19
+ className={clx}
20
+ icon={ARGS.ICON}
21
+ value={ARGS.VALUE}
22
+ label={ARGS.LABEL}
23
+ />,
24
+ );
17
25
  expect(screen.getByTestId("div").classList).toContain(clx);
18
26
  });
19
27
  });
@@ -46,7 +46,7 @@ export const StatsCard: React.FC<StatsCardProps> = ({
46
46
  const imageClasses = imageVariantClass[variant] ?? imageVariantClass["inline"];
47
47
 
48
48
  return (
49
- <Component as={as} className={cn(classes, className)} {...props} data-testid={displayName}>
49
+ <Component as={as} className={cn(classes, className)} {...props}>
50
50
  {icon && (
51
51
  <div className={imageClasses}>
52
52
  <img src={icon} width={24} height={24} alt={alt ?? "statistics-icon"} />