@stackshift-ui/statistics 6.0.13-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 +13 -13
- package/src/statistics.test.tsx +2 -2
- package/src/statistics_a.tsx +9 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/statistics",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0-beta.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,27 +29,27 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
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/
|
|
38
|
-
"@stackshift-ui/card": "
|
|
39
|
-
"@stackshift-ui/button": "6.0
|
|
40
|
-
"@stackshift-ui/
|
|
41
|
-
"@stackshift-ui/
|
|
42
|
-
"@stackshift-ui/section": "
|
|
43
|
-
"@stackshift-ui/container": "
|
|
44
|
-
"@stackshift-ui/flex": "
|
|
45
|
-
"@stackshift-ui/
|
|
37
|
+
"@stackshift-ui/scripts": "6.1.0-beta.0",
|
|
38
|
+
"@stackshift-ui/stats-card": "7.0.0-beta.0",
|
|
39
|
+
"@stackshift-ui/button": "6.1.0-beta.0",
|
|
40
|
+
"@stackshift-ui/card": "7.0.0-beta.0",
|
|
41
|
+
"@stackshift-ui/text": "7.0.0-beta.0",
|
|
42
|
+
"@stackshift-ui/section": "7.0.0-beta.0",
|
|
43
|
+
"@stackshift-ui/container": "7.0.0-beta.0",
|
|
44
|
+
"@stackshift-ui/flex": "7.0.0-beta.0",
|
|
45
|
+
"@stackshift-ui/system": "6.1.0-beta.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@types/react": "16.8 - 19",
|
|
49
49
|
"next": "10 - 14",
|
|
50
50
|
"react": "16.8 - 19",
|
|
51
51
|
"react-dom": "16.8 - 19",
|
|
52
|
-
"@stackshift-ui/system": ">=6.0
|
|
52
|
+
"@stackshift-ui/system": ">=6.1.0-beta.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"next": {
|
package/src/statistics.test.tsx
CHANGED
|
@@ -7,7 +7,7 @@ describe.concurrent("statistics", () => {
|
|
|
7
7
|
|
|
8
8
|
test.skip("Dummy test - test if renders without errors", ({ expect }) => {
|
|
9
9
|
const clx = "my-class";
|
|
10
|
-
render(<Statistics />);
|
|
11
|
-
expect(screen.getByTestId("
|
|
10
|
+
render(<Statistics data-testid="statistics" />);
|
|
11
|
+
expect(screen.getByTestId("statistics").classList).toContain(clx);
|
|
12
12
|
});
|
|
13
13
|
});
|
package/src/statistics_a.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Card } from "@stackshift-ui/card";
|
|
1
|
+
import { Card, CardContent } from "@stackshift-ui/card";
|
|
2
2
|
import { Container } from "@stackshift-ui/container";
|
|
3
3
|
import { Flex } from "@stackshift-ui/flex";
|
|
4
4
|
import { Section } from "@stackshift-ui/section";
|
|
@@ -27,12 +27,14 @@ function StatisticsItems({ stats }: { stats?: StatItems[] }) {
|
|
|
27
27
|
{stats.map((items, index) => (
|
|
28
28
|
<div className="w-full px-4 my-8 sm:w-1/4 lg:w-1/4" key={index}>
|
|
29
29
|
<Card className="relative py-10 shadow-md bg-white">
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
<CardContent>
|
|
31
|
+
<Text className="mb-1 text-primary overflow-ellipsis overflow-clip">
|
|
32
|
+
{items?.label}
|
|
33
|
+
</Text>
|
|
34
|
+
<p className="text-xl text-gray-500 font-bold lg:text-2xl overflow-ellipsis overflow-clip">
|
|
35
|
+
{items?.value}
|
|
36
|
+
</p>
|
|
37
|
+
</CardContent>
|
|
36
38
|
</Card>
|
|
37
39
|
</div>
|
|
38
40
|
))}
|