-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
foxy-experimental-add-to-cart-builder
element
- Loading branch information
Showing
22 changed files
with
2,810 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/elements/public/ExperimentalAddToCartBuilder/ExperimentalAddToCartBuilder.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import './index'; | ||
|
||
import { Summary } from '../../../storygen/Summary'; | ||
import { getMeta } from '../../../storygen/getMeta'; | ||
import { getStory } from '../../../storygen/getStory'; | ||
|
||
const summary: Summary = { | ||
href: 'https://demo.api/hapi/experimental_add_to_cart_snippets/0', | ||
parent: 'https://demo.api/hapi/experimental_add_to_cart_snippets', | ||
nucleon: true, | ||
localName: 'foxy-experimental-add-to-cart-builder', | ||
translatable: true, | ||
configurable: {}, | ||
}; | ||
|
||
export default getMeta(summary); | ||
|
||
const ext = ` | ||
default-domain="foxycart.com" | ||
encode-helper="https://demo.api/virtual/encode" | ||
locale-codes="https://demo.api/hapi/property_helpers/7" | ||
store="https://demo.api/hapi/stores/0" | ||
`; | ||
|
||
export const WithData = getStory({ ...summary, ext, code: true }); | ||
export const Empty = getStory({ ...summary, ext }); | ||
|
||
Empty.args.href = ''; |
Oops, something went wrong.