@economist/web-apple-pay 1.2.0 → 1.3.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/README.md +21 -0
- package/dist/src/apple-pay-button.stories.js +1276 -0
- package/dist/src/apple-pay-modal.stories.js +1118 -0
- package/dist/src/stories/fixtures/offer.d.ts +2 -0
- package/dist/src/stories/fixtures/offer.js +28 -0
- package/dist/src/stories/utils/story-env.d.ts +11 -0
- package/dist/src/stories/utils/story-env.js +141 -0
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -142,3 +142,24 @@ Then in a consuming app:
|
|
|
142
142
|
```sh
|
|
143
143
|
yalc add @economist/web-apple-pay
|
|
144
144
|
```
|
|
145
|
+
|
|
146
|
+
## Storybook
|
|
147
|
+
|
|
148
|
+
Run Storybook locally:
|
|
149
|
+
|
|
150
|
+
```sh
|
|
151
|
+
npm run storybook --workspace @economist/web-apple-pay
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Build static Storybook output:
|
|
155
|
+
|
|
156
|
+
```sh
|
|
157
|
+
npm run build-storybook --workspace @economist/web-apple-pay
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Story coverage matrix:
|
|
161
|
+
|
|
162
|
+
- `ApplePayButton` docs page shows the stable default example.
|
|
163
|
+
- `ApplePayButton` behavior and state variants are available as individual canvas stories in Storybook.
|
|
164
|
+
- `ApplePayModal` docs page shows the stable default example.
|
|
165
|
+
- `ApplePayModal` behavior and state variants are available as individual canvas stories in Storybook.
|