@coopdigital/react 0.0.7 → 0.0.9

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/README.md ADDED
@@ -0,0 +1,109 @@
1
+ <img src="https://files.smartsurvey.io/3/0/DPL0KB0D/Coop_Cloverleaf_Blue_RGB.png" alt="CI pipeline status" width="100"/>
2
+
3
+ # Experience Kit for React
4
+
5
+ <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
6
+ [![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
7
+ <!-- ALL-CONTRIBUTORS-BADGE:END -->
8
+
9
+
10
+
11
+ ## Contributors ✨
12
+
13
+ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
14
+
15
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
16
+ <!-- prettier-ignore-start -->
17
+ <!-- markdownlint-disable -->
18
+ <table>
19
+ <tbody>
20
+ <tr>
21
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/aaronrleslie">
22
+ <div><img src="https://ca.slack-edge.com/T0C9E3ZF0-UKMP0F917-34a22da610d8-150" width="200px;" alt=""/></div>
23
+ <small>Aaron Leslie</small>
24
+ <div><a href="#infra-aaronrleslie" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></div>
25
+ </a></td>
26
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/catia.costa1">
27
+ <div><img src="https://gitlab.com/uploads/-/system/user/avatar/25728410/avatar.png" width="200px;" alt=""/></div>
28
+ <small>Catia Costa</small>
29
+ <div><a href="#a11y-catia.costa1" title="Accessibility">️️️️♿️</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Code">💻</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Documentation">📖</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Tests">⚠️</a></div>
30
+ </a></td>
31
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/chris.latimer">
32
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/chrisl.jpg" width="200px;" alt=""/></div>
33
+ <small>Chris Latimer</small>
34
+ <div><a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Code">💻</a> <a href="#infra-chris.latimer" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></div>
35
+ </a></td>
36
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/craig.mckay">
37
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/blank.jpg" width="200px;" alt=""/></div>
38
+ <small>Craig Mckay</small>
39
+ <div><a href="#projectManagement-craig.mckay" title="Project Management">📆</a></div>
40
+ </a></td>
41
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/daniel.lippross">
42
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/blank.jpg" width="200px;" alt=""/></div>
43
+ <small>Daniel Lippross</small>
44
+ <div><a href="#platform-daniel.lippross" title="Packaging/porting to new platform">📦</a></div>
45
+ </a></td>
46
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/emalin.matthews">
47
+ <div><img src="https://ca.slack-edge.com/T0C9E3ZF0-UMGDXU8JH-ade541a7f09e-150" width="200px;" alt=""/></div>
48
+ <small>Emalin Matthews</small>
49
+ <div><a href="#a11y-emalin.matthews" title="Accessibility">️️️️♿️</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Code">💻</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Documentation">📖</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Tests">⚠️</a></div>
50
+ </a></td>
51
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/jelena.milosevic">
52
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/blank.jpg" width="200px;" alt=""/></div>
53
+ <small>Jelena Milosevic</small>
54
+ <div><a href="#infra-jelena.milosevic" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></div>
55
+ </a></td>
56
+ </tr><br />
57
+ <tr>
58
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/kamini.pagare">
59
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/blank.jpg" width="200px;" alt=""/></div>
60
+ <small>Kamini Pagare</small>
61
+ <div><a href="#a11y-kamini.pagare" title="Accessibility">️️️️♿️</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Code">💻</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Documentation">📖</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Tests">⚠️</a></div>
62
+ </a></td>
63
+ <td align="center" valign="top" width="14.28%"><a href="">
64
+ <div><img src="https://ca.slack-edge.com/T0C9E3ZF0-U3AJ40BGS-ec515dc443cb-150" width="200px;" alt=""/></div>
65
+ <small>Lee Connolly</small>
66
+ <div><a href="#projectManagement-lee.connolly" title="Project Management">📆</a></div>
67
+ </a></td>
68
+ <td align="center" valign="top" width="14.28%"><a href="">
69
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/blank.jpg" width="200px;" alt=""/></div>
70
+ <small>Liam Hall</small>
71
+ <div><a href="#projectManagement-liam.hall" title="Project Management">📆</a></div>
72
+ </a></td>
73
+ <td align="center" valign="top" width="14.28%"><a href="">
74
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/meg.jpg" width="200px;" alt=""/></div>
75
+ <small>Meg White</small>
76
+ <div><a href="#projectManagement-meg.white" title="Project Management">📆</a></div>
77
+ </a></td>
78
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/omid.kashan">
79
+ <div><img src="https://secure.gravatar.com/avatar/faf90b70d749cf9460eb603fa1700add94fd7d3a32645b4be6fa12eb45c4ffa3?s=80&d=identicon" width="200px;" alt=""/></div>
80
+ <small>Omid Kashan</small>
81
+ <div><a href="#a11y-omid.kashan" title="Accessibility">️️️️♿️</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Code">💻</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Documentation">📖</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Tests">⚠️</a></div>
82
+ </a></td>
83
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/sam.harden">
84
+ <div><img src="https://ca.slack-edge.com/T0C9E3ZF0-U03NT7D39L6-2fc82e7f7c6e-150" width="200px;" alt=""/></div>
85
+ <small>Sam Harden</small>
86
+ <div><a href="#a11y-sam.harden" title="Accessibility">️️️️♿️</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Code">💻</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Documentation">📖</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Tests">⚠️</a></div>
87
+ </a></td>
88
+ <td align="center" valign="top" width="14.28%"><a href="">
89
+ <div><img src="https://s3.eu-west-1.amazonaws.com/assets.digital.coop.co.uk/oneweb/blank.jpg" width="200px;" alt=""/></div>
90
+ <small>Shweta Jaju</small>
91
+ <div><a href="#userTesting-shweta.jaju" title="User Testing">📓</a></div>
92
+ </a></td>
93
+ </tr><br />
94
+ <tr>
95
+ <td align="center" valign="top" width="14.28%"><a href="https://gitlab.com/theodore.kouzelis">
96
+ <div><img src="https://secure.gravatar.com/avatar/3988f940029d9053174ac68e7f5bfa8fd61f184872d46281f44e2e698711d37d?s=80&d=identicon" width="200px;" alt=""/></div>
97
+ <small>Theo Kouzelis</small>
98
+ <div><a href="#a11y-theodore.kouzelis" title="Accessibility">️️️️♿️</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Code">💻</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Documentation">📖</a> <a href="https://gitlab.com/coopeng/sds/oneweb/experience-kit/commits/master" title="Tests">⚠️</a></div>
99
+ </a></td>
100
+ </tr>
101
+ </tbody></table>
102
+
103
+
104
+ <!-- markdownlint-restore -->
105
+ <!-- prettier-ignore-end -->
106
+
107
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
108
+
109
+ This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
1
  {
2
2
  "name": "@coopdigital/react",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "main": "src/index.ts",
6
6
  "private": false,
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
10
  "files": [
11
- "dist/*"
11
+ "dist/*",
12
+ "src/*",
13
+ "README.md"
12
14
  ],
13
15
  "scripts": {
14
16
  "test": "vitest run",
15
17
  "test:coverage": "vitest run --coverage",
16
- "build-storybook": "storybook build",
17
18
  "build": "tsx scripts build",
19
+ "build:storybook": "storybook build --disable-telemetry && npm run storybook:fix-paths",
18
20
  "test:e2e": "npx playwright test",
19
21
  "test:e2e:ui": "npx playwright test --ui",
20
22
  "storybook": "storybook dev -p 6006",
21
- "storybook:playwright": "storybook dev -p 9000"
23
+ "storybook:playwright": "storybook dev -p 9000",
24
+ "storybook:fix-paths": "tsx scripts/storybook-fix-paths.ts"
22
25
  },
23
26
  "author": "",
24
27
  "license": "ISC",
@@ -49,5 +52,5 @@
49
52
  "react": "^19.0.0",
50
53
  "react-dom": "^19.0.0"
51
54
  },
52
- "gitHead": "1776684e8e7f87ba4cfaa907a07814800bed2004"
55
+ "gitHead": "12d26bdddc66ca95c7de5e6fa69f748b19b0f1b7"
53
56
  }
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from "@storybook/react"
2
+
3
+ import Button from "./Button"
4
+
5
+ const meta = {
6
+ component: Button,
7
+ } satisfies Meta<typeof Button>
8
+
9
+ export default meta
10
+
11
+ type Story = StoryObj<typeof meta>
12
+
13
+ export const Primary: Story = {}
@@ -0,0 +1,10 @@
1
+ export const Button = () => {
2
+ const a = "test"
3
+
4
+ return (
5
+ <button data-testid="react-button-id" className={a}>
6
+ Add to basket
7
+ </button>
8
+ )
9
+ }
10
+ export default Button
@@ -0,0 +1,5 @@
1
+ import Button from "./Button"
2
+
3
+ export default Button
4
+ export { Button }
5
+ export * from "./Button"