@coopdigital/react 0.19.7 → 0.20.1
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,7 +1,12 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
const RootSVG = () => {
|
|
4
|
-
return (jsx("svg", { height: "0",
|
|
4
|
+
return (jsx("svg", { height: "0", style: {
|
|
5
|
+
clip: "rect(0,0,0,0)}",
|
|
6
|
+
clipPath: "inset(50%)",
|
|
7
|
+
overflow: "hidden",
|
|
8
|
+
position: "absolute",
|
|
9
|
+
}, width: "0", xmlns: "http://www.w3.org/2000/svg", children: jsx("defs", { children: jsx("clipPath", { clipPathUnits: "objectBoundingBox", id: "coop-squircle", children: jsx("path", { d: "M0,0.5 C0,0.165,0.165,0,0.5,0 S1,0.165,1,0.5 S0.835,1,0.5,1 S0,0.835,0,0.5" }) }) }) }));
|
|
5
10
|
};
|
|
6
11
|
|
|
7
12
|
export { RootSVG, RootSVG as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coopdigital/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -34,39 +34,38 @@
|
|
|
34
34
|
"test": "vitest run",
|
|
35
35
|
"test:watch": "vitest",
|
|
36
36
|
"test:coverage": "vitest run --coverage",
|
|
37
|
-
"test:
|
|
38
|
-
"test:
|
|
37
|
+
"test:avt": "./test-utils/run-playwright-tests.sh -g avt",
|
|
38
|
+
"test:avt:ui": "npm run test:avt -- --ui",
|
|
39
|
+
"test:vrt": "ENVIRONMENT=docker ./test-utils/run-playwright-tests.sh -g vrt --workers 4 --timeout 5000 --fully-parallel",
|
|
40
|
+
"test:vrt:ui": "npm run test:vrt -- --ui",
|
|
41
|
+
"test:e2e": "./test-utils/run-e2e-tests.sh",
|
|
39
42
|
"test:e2e:ci": "npx playwright test --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL",
|
|
40
43
|
"build": "tsx scripts build",
|
|
41
44
|
"build:docs": "tsx scripts build-docs",
|
|
42
45
|
"build:icons": "tsx scripts build-icons",
|
|
43
46
|
"build:storybook": "storybook build --disable-telemetry && npm run storybook:fix-paths",
|
|
47
|
+
"build:storybook:test": "storybook build --test --disable-telemetry --output-dir storybook-test",
|
|
48
|
+
"serve:storybook:test": "serve -p 9000 ./storybook-test",
|
|
44
49
|
"storybook": "storybook dev -p 6006",
|
|
45
|
-
"storybook:playwright": "storybook dev -p 9000",
|
|
46
50
|
"storybook:fix-paths": "tsx scripts/storybook-fix-paths.ts"
|
|
47
51
|
},
|
|
48
52
|
"author": "",
|
|
49
53
|
"license": "MIT",
|
|
50
54
|
"description": "",
|
|
51
55
|
"devDependencies": {
|
|
52
|
-
"@axe-core/playwright": "^4.10.
|
|
53
|
-
"@coopdigital/styles": "^0.
|
|
54
|
-
"@playwright/test": "^1.
|
|
55
|
-
"@storybook/addon-a11y": "^
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/addon-
|
|
58
|
-
"@storybook/
|
|
59
|
-
"@storybook/blocks": "^8.6.12",
|
|
60
|
-
"@storybook/manager-api": "^8.6.12",
|
|
61
|
-
"@storybook/react": "^8.6.12",
|
|
62
|
-
"@storybook/react-vite": "^8.6.12",
|
|
63
|
-
"@storybook/test": "^8.6.12",
|
|
64
|
-
"@storybook/theming": "^8.6.12",
|
|
56
|
+
"@axe-core/playwright": "^4.10.2",
|
|
57
|
+
"@coopdigital/styles": "^0.18.1",
|
|
58
|
+
"@playwright/test": "^1.53.0",
|
|
59
|
+
"@storybook/addon-a11y": "^9.0.8",
|
|
60
|
+
"@storybook/addon-docs": "^9.0.8",
|
|
61
|
+
"@storybook/addon-onboarding": "^9.0.8",
|
|
62
|
+
"@storybook/react-vite": "^9.0.8",
|
|
65
63
|
"@testing-library/jest-dom": "^6.6.3",
|
|
66
64
|
"@testing-library/react": "^16.3.0",
|
|
67
|
-
"@types/react": "^19.1.
|
|
68
|
-
"@types/react-dom": "^19.1.
|
|
69
|
-
"
|
|
65
|
+
"@types/react": "^19.1.8",
|
|
66
|
+
"@types/react-dom": "^19.1.6",
|
|
67
|
+
"serve": "^14.2.4",
|
|
68
|
+
"storybook": "^9.0.8"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
71
|
"react": "^19.1.0",
|
|
@@ -75,5 +74,8 @@
|
|
|
75
74
|
"dependencies": {
|
|
76
75
|
"clsx": "^2.1.1"
|
|
77
76
|
},
|
|
78
|
-
"
|
|
77
|
+
"overrides": {
|
|
78
|
+
"storybook": "$storybook"
|
|
79
|
+
},
|
|
80
|
+
"gitHead": "90c51960fea71d06d48fcdbc084bfb9245eb0648"
|
|
79
81
|
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
export const RootSVG = () => {
|
|
2
2
|
return (
|
|
3
|
-
<svg
|
|
3
|
+
<svg
|
|
4
|
+
height="0"
|
|
5
|
+
style={{
|
|
6
|
+
clip: "rect(0,0,0,0)}",
|
|
7
|
+
clipPath: "inset(50%)",
|
|
8
|
+
overflow: "hidden",
|
|
9
|
+
position: "absolute",
|
|
10
|
+
}}
|
|
11
|
+
width="0"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
>
|
|
4
14
|
<defs>
|
|
5
15
|
<clipPath clipPathUnits="objectBoundingBox" id="coop-squircle">
|
|
6
16
|
<path d="M0,0.5 C0,0.165,0.165,0,0.5,0 S1,0.165,1,0.5 S0.835,1,0.5,1 S0,0.835,0,0.5"></path>
|