@coopdigital/react 0.0.7

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.
@@ -0,0 +1,2 @@
1
+ export declare const Button: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Button;
@@ -0,0 +1,8 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+
3
+ const Button = () => {
4
+ const a = "test";
5
+ return (jsx("button", { "data-testid": "react-button-id", className: a, children: "Add to basket" }));
6
+ };
7
+
8
+ export { Button, Button as default };
@@ -0,0 +1,4 @@
1
+ import Button from "./Button";
2
+ export default Button;
3
+ export { Button };
4
+ export * from "./Button";
@@ -0,0 +1 @@
1
+ export * from "@/components/Button";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { Button } from './components/Button/Button.js';
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@coopdigital/react",
3
+ "type": "module",
4
+ "version": "0.0.7",
5
+ "main": "src/index.ts",
6
+ "private": false,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "files": [
11
+ "dist/*"
12
+ ],
13
+ "scripts": {
14
+ "test": "vitest run",
15
+ "test:coverage": "vitest run --coverage",
16
+ "build-storybook": "storybook build",
17
+ "build": "tsx scripts build",
18
+ "test:e2e": "npx playwright test",
19
+ "test:e2e:ui": "npx playwright test --ui",
20
+ "storybook": "storybook dev -p 6006",
21
+ "storybook:playwright": "storybook dev -p 9000"
22
+ },
23
+ "author": "",
24
+ "license": "ISC",
25
+ "description": "",
26
+ "devDependencies": {
27
+ "@axe-core/playwright": "^4.10.1",
28
+ "@chromatic-com/storybook": "^3.2.4",
29
+ "@playwright/test": "^1.50.0",
30
+ "@rollup/plugin-node-resolve": "^16.0.0",
31
+ "@rollup/plugin-typescript": "^12.1.2",
32
+ "@storybook/addon-essentials": "^8.5.2",
33
+ "@storybook/addon-interactions": "^8.5.2",
34
+ "@storybook/addon-onboarding": "^8.5.2",
35
+ "@storybook/blocks": "^8.5.2",
36
+ "@storybook/manager-api": "^8.5.2",
37
+ "@storybook/react": "^8.5.2",
38
+ "@storybook/react-vite": "^8.5.2",
39
+ "@storybook/test": "^8.5.2",
40
+ "@storybook/theming": "^8.5.2",
41
+ "@testing-library/jest-dom": "^6.6.3",
42
+ "@testing-library/react": "^16.2.0",
43
+ "@types/react": "^19.0.8",
44
+ "@types/react-dom": "^19.0.3",
45
+ "rollup": "^4.32.1",
46
+ "storybook": "^8.5.2"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^19.0.0",
50
+ "react-dom": "^19.0.0"
51
+ },
52
+ "gitHead": "1776684e8e7f87ba4cfaa907a07814800bed2004"
53
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "@/components/Button"