@eldrajs/theme-cli 0.2.7 → 0.2.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/CHANGELOG.md +2 -0
- package/package.json +3 -3
- package/template/.eldra/block-types.d.ts +28 -7
- package/template/.eldra/manifest.json +1152 -445
- package/template/.eldra/previews.json +35 -35
- package/template/README.md +32 -0
- package/template/app/assets/main.css +23 -0
- package/template/app/plugins/eldra-storefront.ts +3 -0
- package/template/app/storefront/demo.ts +75 -24
- package/template/app/storefront/gateway.ts +16 -2
- package/template/blocks/announcement-bar/preview.png +0 -0
- package/template/blocks/article/preview.json +4 -4
- package/template/blocks/article/preview.png +0 -0
- package/template/blocks/article-list/Block.vue +48 -19
- package/template/blocks/article-list/__tests__/Block.spec.ts +15 -0
- package/template/blocks/article-list/preview.json +43 -43
- package/template/blocks/article-list/preview.png +0 -0
- package/template/blocks/breadcrumbs/preview.png +0 -0
- package/template/blocks/cart/preview.png +0 -0
- package/template/blocks/collection-grid/Block.vue +260 -9
- package/template/blocks/collection-grid/__tests__/Block.spec.ts +202 -0
- package/template/blocks/collection-grid/block.json +3 -3
- package/template/blocks/collection-grid/preview.png +0 -0
- package/template/blocks/collection-header/Block.vue +65 -52
- package/template/blocks/collection-header/preview.json +4 -4
- package/template/blocks/collection-header/preview.png +0 -0
- package/template/blocks/contact/preview.png +0 -0
- package/template/blocks/cta/preview.json +4 -4
- package/template/blocks/cta/preview.png +0 -0
- package/template/blocks/faq/preview.png +0 -0
- package/template/blocks/feature-grid/Block.vue +73 -4
- package/template/blocks/feature-grid/__tests__/Block.spec.ts +43 -1
- package/template/blocks/feature-grid/block.json +2 -2
- package/template/blocks/feature-grid/preview.json +49 -24
- package/template/blocks/feature-grid/preview.png +0 -0
- package/template/blocks/footer/Block.vue +186 -71
- package/template/blocks/footer/__tests__/Block.spec.ts +127 -32
- package/template/blocks/footer/block.json +42 -4
- package/template/blocks/footer/mock.json +31 -34
- package/template/blocks/footer/preview.png +0 -0
- package/template/blocks/form/preview.png +0 -0
- package/template/blocks/gallery/preview.json +24 -24
- package/template/blocks/gallery/preview.png +0 -0
- package/template/blocks/hero/Block.vue +117 -19
- package/template/blocks/hero/__tests__/Block.spec.ts +46 -0
- package/template/blocks/hero/block.json +36 -1
- package/template/blocks/hero/preview.json +33 -25
- package/template/blocks/hero/preview.png +0 -0
- package/template/blocks/image/preview.json +4 -4
- package/template/blocks/image/preview.png +0 -0
- package/template/blocks/logo-cloud/preview.png +0 -0
- package/template/blocks/navigation/Block.vue +665 -184
- package/template/blocks/navigation/__tests__/Block.spec.ts +496 -75
- package/template/blocks/navigation/__tests__/fixtures/menu.json +182 -0
- package/template/blocks/navigation/block.json +110 -6
- package/template/blocks/navigation/mock.json +372 -140
- package/template/blocks/navigation/preview.json +311 -0
- package/template/blocks/navigation/preview.png +0 -0
- package/template/blocks/newsletter/Block.vue +248 -144
- package/template/blocks/newsletter/__tests__/Block.spec.ts +42 -0
- package/template/blocks/newsletter/block.json +61 -2
- package/template/blocks/newsletter/preview.json +35 -0
- package/template/blocks/newsletter/preview.png +0 -0
- package/template/blocks/order-status/preview.png +0 -0
- package/template/blocks/pricing-table/preview.png +0 -0
- package/template/blocks/product-carousel/Block.vue +272 -26
- package/template/blocks/product-carousel/__tests__/Block.spec.ts +90 -0
- package/template/blocks/product-carousel/block.json +61 -0
- package/template/blocks/product-carousel/preview.json +12 -0
- package/template/blocks/product-carousel/preview.png +0 -0
- package/template/blocks/product-detail/Block.vue +148 -96
- package/template/blocks/product-detail/__tests__/Block.spec.ts +98 -74
- package/template/blocks/product-detail/block.json +11 -4
- package/template/blocks/product-detail/mock.json +53 -22
- package/template/blocks/product-detail/parts/Gallery.vue +52 -103
- package/template/blocks/product-detail/preview.png +0 -0
- package/template/blocks/quote/preview.png +0 -0
- package/template/blocks/rich-text/preview.png +0 -0
- package/template/blocks/search/Block.vue +1 -0
- package/template/blocks/search/TypeSection.vue +1 -0
- package/template/blocks/search/__tests__/Block.spec.ts +23 -0
- package/template/blocks/search/preview.png +0 -0
- package/template/blocks/split-content/Block.vue +98 -20
- package/template/blocks/split-content/__tests__/Block.spec.ts +57 -18
- package/template/blocks/split-content/block.json +72 -6
- package/template/blocks/split-content/preview.json +34 -13
- package/template/blocks/split-content/preview.png +0 -0
- package/template/blocks/stats/preview.png +0 -0
- package/template/blocks/tabs/preview.json +16 -16
- package/template/blocks/tabs/preview.png +0 -0
- package/template/blocks/team/preview.png +0 -0
- package/template/blocks/testimonials/preview.png +0 -0
- package/template/blocks/timeline/preview.png +0 -0
- package/template/blocks/trust-strip/Block.vue +67 -1
- package/template/blocks/trust-strip/__tests__/Block.spec.ts +30 -1
- package/template/blocks/trust-strip/block.json +4 -4
- package/template/blocks/trust-strip/preview.json +21 -0
- package/template/blocks/trust-strip/preview.png +0 -0
- package/template/blocks/video-embed/preview.png +0 -0
- package/template/blocks/wishlist/preview.png +0 -0
- package/template/i18n/en-US.json +16 -9
- package/template/i18n/is-IS.json +16 -9
- package/template/package.json +1 -1
- package/template/pages/article.page.json +19 -18
- package/template/pages/cart.page.json +3 -13
- package/template/pages/category.page.json +15 -7
- package/template/pages/collection.page.json +15 -14
- package/template/pages/home.page.json +217 -182
- package/template/pages/product.page.json +46 -36
- package/template/pages/products.page.json +3 -13
- package/template/pages/search.page.json +3 -13
- package/template/pages/wishlist.page.json +3 -13
- package/template/public/images/CREDITS.md +28 -0
- package/template/public/images/bowl.webp +0 -0
- package/template/public/images/clay-hands.webp +0 -0
- package/template/public/images/coffee-table.webp +0 -0
- package/template/public/images/cup.webp +0 -0
- package/template/public/images/enamel-cups.webp +0 -0
- package/template/public/images/hero.webp +0 -0
- package/template/public/images/kitchen.webp +0 -0
- package/template/public/images/mug.webp +0 -0
- package/template/public/images/northwind-mark.svg +1 -0
- package/template/public/images/planters.webp +0 -0
- package/template/public/images/plates.webp +0 -0
- package/template/public/images/reading.webp +0 -0
- package/template/public/images/sweater.webp +0 -0
- package/template/public/images/terracotta.webp +0 -0
- package/template/public/images/throws.webp +0 -0
- package/template/public/images/vase.webp +0 -0
- package/template/public/images/wheel.webp +0 -0
- package/template/public/images/yarn-tools.webp +0 -0
- package/template/public/images/yarn.webp +0 -0
- package/template/stories/generated/collection-grid.stories.ts +6 -0
- package/template/stories/generated/feature-grid.stories.ts +6 -0
- package/template/stories/generated/footer.stories.ts +4 -4
- package/template/stories/generated/hero.stories.ts +6 -0
- package/template/stories/generated/navigation.stories.ts +14 -1
- package/template/stories/generated/newsletter.stories.ts +2 -1
- package/template/stories/generated/product-carousel.stories.ts +12 -0
- package/template/stories/generated/split-content.stories.ts +12 -0
- package/template/stories/generated/trust-strip.stories.ts +8 -1
- package/template/stories/pages/article.stories.ts +2 -1
- package/template/stories/pages/cart.stories.ts +2 -1
- package/template/stories/pages/category.stories.ts +2 -1
- package/template/stories/pages/collection.stories.ts +2 -1
- package/template/stories/pages/home.stories.ts +2 -1
- package/template/stories/pages/product.stories.ts +2 -1
- package/template/stories/pages/products.stories.ts +2 -1
- package/template/stories/pages/search.stories.ts +2 -1
- package/template/stories/pages/wishlist.stories.ts +2 -1
- package/template/stories/support/demoChrome.ts +32 -0
- package/template/stories/support/pageBlocks.ts +2 -4
- package/template/test/countPill.browser.spec.ts +21 -13
- package/template/test/localePrefix.spec.ts +11 -6
- package/template/test/pages/article.spec.ts +1 -1
- package/template/test/pages/category.spec.ts +34 -11
- package/template/test/pages/collection.spec.ts +182 -148
- package/template/test/pages/home.spec.ts +35 -40
- package/template/test/pages/hydration.spec.ts +4 -4
- package/template/test/pages/product.spec.ts +17 -14
- package/template/test/pages/seededPages.spec.ts +11 -6
- package/template/test/prerenderFailure.spec.ts +4 -3
- package/template/test/prerenderRefresh.browser.spec.ts +36 -15
- package/template/test/previewParity.browser.spec.ts +1152 -0
- package/template/test/starter.spec.ts +37 -16
- package/template/test/storefront/gatewayPrerender.spec.ts +26 -0
- package/template/test/support/previewParity.ts +302 -0
- package/template/test/support/previewParityContent.ts +726 -0
- package/template/tokens.json +13 -13
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
"template": "product",
|
|
3
3
|
"title": "Product",
|
|
4
4
|
"blocks": [
|
|
5
|
-
{
|
|
6
|
-
"apiId": "announcement-bar",
|
|
7
|
-
"id": "product-announcement",
|
|
8
|
-
"data": {
|
|
9
|
-
"variant": "primary",
|
|
10
|
-
"message": "Free shipping on orders over $80",
|
|
11
|
-
"linkLabel": "Details",
|
|
12
|
-
"linkHref": "/pages/shipping",
|
|
13
|
-
"dismissable": true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
5
|
{
|
|
17
6
|
"apiId": "navigation",
|
|
18
7
|
"id": "product-navigation",
|
|
@@ -20,8 +9,9 @@
|
|
|
20
9
|
"variant": "default",
|
|
21
10
|
"brandText": "Northwind Goods",
|
|
22
11
|
"links": [],
|
|
12
|
+
"drawerLayout": "accordion",
|
|
23
13
|
"showSearch": true,
|
|
24
|
-
"searchStyle": "
|
|
14
|
+
"searchStyle": "field",
|
|
25
15
|
"sticky": true,
|
|
26
16
|
"transparentOverHero": false
|
|
27
17
|
}
|
|
@@ -36,7 +26,7 @@
|
|
|
36
26
|
"fromProduct": true,
|
|
37
27
|
"currentTitle": "Merino crew sweater",
|
|
38
28
|
"showCurrent": true,
|
|
39
|
-
"container": "
|
|
29
|
+
"container": "wide"
|
|
40
30
|
}
|
|
41
31
|
},
|
|
42
32
|
{
|
|
@@ -52,13 +42,18 @@
|
|
|
52
42
|
"perks": [
|
|
53
43
|
{
|
|
54
44
|
"icon": "truck",
|
|
55
|
-
"title": "Free delivery
|
|
56
|
-
"text": "
|
|
45
|
+
"title": "Free delivery",
|
|
46
|
+
"text": "on orders over $80"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"icon": "building-store",
|
|
50
|
+
"title": "Collect for free",
|
|
51
|
+
"text": "from our Portland studio, usually the next day"
|
|
57
52
|
},
|
|
58
53
|
{
|
|
59
54
|
"icon": "arrow-back-up",
|
|
60
|
-
"title": "
|
|
61
|
-
"text": "
|
|
55
|
+
"title": "30-day returns",
|
|
56
|
+
"text": "on unworn items, with tags"
|
|
62
57
|
}
|
|
63
58
|
],
|
|
64
59
|
"tabs": [
|
|
@@ -67,15 +62,6 @@
|
|
|
67
62
|
"body": {
|
|
68
63
|
"type": "doc",
|
|
69
64
|
"content": [
|
|
70
|
-
{
|
|
71
|
-
"type": "paragraph",
|
|
72
|
-
"content": [
|
|
73
|
-
{
|
|
74
|
-
"type": "text",
|
|
75
|
-
"text": "A relaxed crew knitted from extra-fine Merino in a family mill in Biella. Soft enough to wear next to skin, warm without the bulk."
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
65
|
{
|
|
80
66
|
"type": "bulletList",
|
|
81
67
|
"content": [
|
|
@@ -101,7 +87,7 @@
|
|
|
101
87
|
"content": [
|
|
102
88
|
{
|
|
103
89
|
"type": "text",
|
|
104
|
-
"text": "
|
|
90
|
+
"text": "Knitted in a family mill in Biella, Italy"
|
|
105
91
|
}
|
|
106
92
|
]
|
|
107
93
|
}
|
|
@@ -115,7 +101,7 @@
|
|
|
115
101
|
"content": [
|
|
116
102
|
{
|
|
117
103
|
"type": "text",
|
|
118
|
-
"text": "
|
|
104
|
+
"text": "Relaxed fit; the model is 180 cm and wears size M"
|
|
119
105
|
}
|
|
120
106
|
]
|
|
121
107
|
}
|
|
@@ -127,16 +113,40 @@
|
|
|
127
113
|
}
|
|
128
114
|
},
|
|
129
115
|
{
|
|
130
|
-
"label": "
|
|
116
|
+
"label": "Care",
|
|
131
117
|
"body": {
|
|
132
118
|
"type": "doc",
|
|
133
119
|
"content": [
|
|
134
120
|
{
|
|
135
|
-
"type": "
|
|
121
|
+
"type": "bulletList",
|
|
136
122
|
"content": [
|
|
137
123
|
{
|
|
138
|
-
"type": "
|
|
139
|
-
"
|
|
124
|
+
"type": "listItem",
|
|
125
|
+
"content": [
|
|
126
|
+
{
|
|
127
|
+
"type": "paragraph",
|
|
128
|
+
"content": [
|
|
129
|
+
{
|
|
130
|
+
"type": "text",
|
|
131
|
+
"text": "Hand wash cold or use a wool cycle"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "listItem",
|
|
139
|
+
"content": [
|
|
140
|
+
{
|
|
141
|
+
"type": "paragraph",
|
|
142
|
+
"content": [
|
|
143
|
+
{
|
|
144
|
+
"type": "text",
|
|
145
|
+
"text": "Dry flat, away from direct heat"
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
]
|
|
140
150
|
}
|
|
141
151
|
]
|
|
142
152
|
}
|
|
@@ -144,7 +154,7 @@
|
|
|
144
154
|
}
|
|
145
155
|
},
|
|
146
156
|
{
|
|
147
|
-
"label": "
|
|
157
|
+
"label": "Delivery and returns",
|
|
148
158
|
"body": {
|
|
149
159
|
"type": "doc",
|
|
150
160
|
"content": [
|
|
@@ -153,7 +163,7 @@
|
|
|
153
163
|
"content": [
|
|
154
164
|
{
|
|
155
165
|
"type": "text",
|
|
156
|
-
"text": "
|
|
166
|
+
"text": "US orders leave our Portland studio within 2 business days and arrive 2 to 4 days later; delivery costs are shown before you pay. Send anything unworn back within 30 days with the prepaid label in your parcel."
|
|
157
167
|
}
|
|
158
168
|
]
|
|
159
169
|
}
|
|
@@ -304,12 +314,12 @@
|
|
|
304
314
|
"id": "product-footer",
|
|
305
315
|
"data": {
|
|
306
316
|
"variant": "default",
|
|
307
|
-
"background": "
|
|
317
|
+
"background": "primary",
|
|
308
318
|
"brandText": "Northwind Goods",
|
|
309
319
|
"description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
|
|
310
320
|
"groups": [],
|
|
311
321
|
"links": [],
|
|
312
|
-
"showNewsletter":
|
|
322
|
+
"showNewsletter": false,
|
|
313
323
|
"newsletterTitle": "Letters from the workshop",
|
|
314
324
|
"newsletterText": "New pieces, maker stories and the occasional early sale. Once a month.",
|
|
315
325
|
"social": [],
|
|
@@ -4,17 +4,6 @@
|
|
|
4
4
|
},
|
|
5
5
|
"title": "All products",
|
|
6
6
|
"blocks": [
|
|
7
|
-
{
|
|
8
|
-
"apiId": "announcement-bar",
|
|
9
|
-
"id": "products-announcement",
|
|
10
|
-
"data": {
|
|
11
|
-
"variant": "primary",
|
|
12
|
-
"message": "Free shipping on orders over $80",
|
|
13
|
-
"linkLabel": "Details",
|
|
14
|
-
"linkHref": "/pages/shipping",
|
|
15
|
-
"dismissable": true
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
7
|
{
|
|
19
8
|
"apiId": "navigation",
|
|
20
9
|
"id": "products-navigation",
|
|
@@ -22,8 +11,9 @@
|
|
|
22
11
|
"variant": "default",
|
|
23
12
|
"brandText": "Northwind Goods",
|
|
24
13
|
"links": [],
|
|
14
|
+
"drawerLayout": "accordion",
|
|
25
15
|
"showSearch": true,
|
|
26
|
-
"searchStyle": "
|
|
16
|
+
"searchStyle": "field",
|
|
27
17
|
"sticky": true,
|
|
28
18
|
"transparentOverHero": false
|
|
29
19
|
}
|
|
@@ -125,7 +115,7 @@
|
|
|
125
115
|
"id": "products-footer",
|
|
126
116
|
"data": {
|
|
127
117
|
"variant": "default",
|
|
128
|
-
"background": "
|
|
118
|
+
"background": "primary",
|
|
129
119
|
"brandText": "Northwind Goods",
|
|
130
120
|
"description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
|
|
131
121
|
"groups": [],
|
|
@@ -4,17 +4,6 @@
|
|
|
4
4
|
},
|
|
5
5
|
"title": "Search",
|
|
6
6
|
"blocks": [
|
|
7
|
-
{
|
|
8
|
-
"apiId": "announcement-bar",
|
|
9
|
-
"id": "search-announcement",
|
|
10
|
-
"data": {
|
|
11
|
-
"variant": "primary",
|
|
12
|
-
"message": "Free shipping on orders over $80",
|
|
13
|
-
"linkLabel": "Details",
|
|
14
|
-
"linkHref": "/pages/shipping",
|
|
15
|
-
"dismissable": true
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
7
|
{
|
|
19
8
|
"apiId": "navigation",
|
|
20
9
|
"id": "search-navigation",
|
|
@@ -22,8 +11,9 @@
|
|
|
22
11
|
"variant": "default",
|
|
23
12
|
"brandText": "Northwind Goods",
|
|
24
13
|
"links": [],
|
|
14
|
+
"drawerLayout": "accordion",
|
|
25
15
|
"showSearch": true,
|
|
26
|
-
"searchStyle": "
|
|
16
|
+
"searchStyle": "field",
|
|
27
17
|
"sticky": true,
|
|
28
18
|
"transparentOverHero": false
|
|
29
19
|
}
|
|
@@ -64,7 +54,7 @@
|
|
|
64
54
|
"id": "search-footer",
|
|
65
55
|
"data": {
|
|
66
56
|
"variant": "default",
|
|
67
|
-
"background": "
|
|
57
|
+
"background": "primary",
|
|
68
58
|
"brandText": "Northwind Goods",
|
|
69
59
|
"description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
|
|
70
60
|
"groups": [],
|
|
@@ -4,17 +4,6 @@
|
|
|
4
4
|
},
|
|
5
5
|
"title": "Your wishlist",
|
|
6
6
|
"blocks": [
|
|
7
|
-
{
|
|
8
|
-
"apiId": "announcement-bar",
|
|
9
|
-
"id": "wishlist-announcement",
|
|
10
|
-
"data": {
|
|
11
|
-
"variant": "primary",
|
|
12
|
-
"message": "Free shipping on orders over $80",
|
|
13
|
-
"linkLabel": "Details",
|
|
14
|
-
"linkHref": "/pages/shipping",
|
|
15
|
-
"dismissable": true
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
7
|
{
|
|
19
8
|
"apiId": "navigation",
|
|
20
9
|
"id": "wishlist-navigation",
|
|
@@ -22,8 +11,9 @@
|
|
|
22
11
|
"variant": "default",
|
|
23
12
|
"brandText": "Northwind Goods",
|
|
24
13
|
"links": [],
|
|
14
|
+
"drawerLayout": "accordion",
|
|
25
15
|
"showSearch": true,
|
|
26
|
-
"searchStyle": "
|
|
16
|
+
"searchStyle": "field",
|
|
27
17
|
"sticky": true,
|
|
28
18
|
"transparentOverHero": false
|
|
29
19
|
}
|
|
@@ -69,7 +59,7 @@
|
|
|
69
59
|
"id": "wishlist-footer",
|
|
70
60
|
"data": {
|
|
71
61
|
"variant": "default",
|
|
72
|
-
"background": "
|
|
62
|
+
"background": "primary",
|
|
73
63
|
"brandText": "Northwind Goods",
|
|
74
64
|
"description": "Knitwear, ceramics and kitchen goods from small workshops, made to be used every day. Studio and shop in Portland, Oregon.",
|
|
75
65
|
"groups": [],
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Image credits
|
|
2
|
+
|
|
3
|
+
The demo photos in this folder are real photographs, all released under [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) (public domain dedication): free to use, change and redistribute, commercially too, with no attribution required. They are credited here anyway.
|
|
4
|
+
|
|
5
|
+
Each was taken from Wikimedia Commons, where the photographer published it as CC0 through Unsplash, resized to 1400px on the long side and saved as WebP.
|
|
6
|
+
|
|
7
|
+
Replace them with the store's own photos before going live.
|
|
8
|
+
|
|
9
|
+
| File | Photo | Author | Licence |
|
|
10
|
+
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | ------- |
|
|
11
|
+
| `bowl.webp` | [Bowl of Eggs (Unsplash)](<https://commons.wikimedia.org/wiki/File:Bowl_of_Eggs_(Unsplash).jpg>) | Cory Seward (Unsplash: cseward15) | CC0 1.0 |
|
|
12
|
+
| `clay-hands.webp` | [Pottery and craft (Unsplash)](<https://commons.wikimedia.org/wiki/File:Pottery_and_craft_(Unsplash).jpg>) | Alex Jones (Unsplash: alexjones) | CC0 1.0 |
|
|
13
|
+
| `coffee-table.webp` | [Polka-dot mug (Unsplash)](<https://commons.wikimedia.org/wiki/File:Polka-dot_mug_(Unsplash).jpg>) | andrea di (Unsplash: anddante) | CC0 1.0 |
|
|
14
|
+
| `cup.webp` | [Teal mug over gingham cloth (Unsplash)](<https://commons.wikimedia.org/wiki/File:Teal_mug_over_gingham_cloth_(Unsplash).jpg>) | Alejandra Parejo (Unsplash: lady_smirnoff) | CC0 1.0 |
|
|
15
|
+
| `enamel-cups.webp` | [Enamel cups on a table (Unsplash)](<https://commons.wikimedia.org/wiki/File:Enamel_cups_on_a_table_(Unsplash).jpg>) | André Freitas (Unsplash: andrekerygma) | CC0 1.0 |
|
|
16
|
+
| `hero.webp` | [Large ceramic bottles (Unsplash)](<https://commons.wikimedia.org/wiki/File:Large_ceramic_bottles_(Unsplash).jpg>) | Jessica Ruscello (Unsplash: jruscello) | CC0 1.0 |
|
|
17
|
+
| `kitchen.webp` | [Kitchen table (Unsplash)](<https://commons.wikimedia.org/wiki/File:Kitchen_table_(Unsplash).jpg>) | Clem Onojeghuo (Unsplash: clemono2) | CC0 1.0 |
|
|
18
|
+
| `mug.webp` | [Joanna Kosinska 2016-10-30 (Unsplash)](<https://commons.wikimedia.org/wiki/File:Joanna_Kosinska_2016-10-30_(Unsplash).jpg>) | Joanna Kosinska (Unsplash: joannakosinska) | CC0 1.0 |
|
|
19
|
+
| `planters.webp` | [Ceramic pots (Unsplash)](<https://commons.wikimedia.org/wiki/File:Ceramic_pots_(Unsplash).jpg>) | Annie Spratt (Unsplash: anniespratt) | CC0 1.0 |
|
|
20
|
+
| `plates.webp` | [Dinnerware setup (Unsplash)](<https://commons.wikimedia.org/wiki/File:Dinnerware_setup_(Unsplash).jpg>) | pepe nero (Unsplash: pepe_nero) | CC0 1.0 |
|
|
21
|
+
| `reading.webp` | [Getting cozy with a book (Unsplash)](<https://commons.wikimedia.org/wiki/File:Getting_cozy_with_a_book_(Unsplash).jpg>) | Alice Hampson (Unsplash: alice_hampson) | CC0 1.0 |
|
|
22
|
+
| `sweater.webp` | [Sweater (Unsplash)](<https://commons.wikimedia.org/wiki/File:Sweater_(Unsplash).jpg>) | Victoria Bilsborough (Unsplash: vicbils) | CC0 1.0 |
|
|
23
|
+
| `terracotta.webp` | [Handmade Terracotta Ceramics (Unsplash)](<https://commons.wikimedia.org/wiki/File:Handmade_Terracotta_Ceramics_(Unsplash).jpg>) | Igor Ovsyannykov (Unsplash: igorovsyannykov) | CC0 1.0 |
|
|
24
|
+
| `throws.webp` | [Kelly Sikkema 2016-03-09 (Unsplash)](<https://commons.wikimedia.org/wiki/File:Kelly_Sikkema_2016-03-09_(Unsplash).jpg>) | Kelly Sikkema (Unsplash: kelsikkema) | CC0 1.0 |
|
|
25
|
+
| `vase.webp` | [Minimal flower vase (Unsplash)](<https://commons.wikimedia.org/wiki/File:Minimal_flower_vase_(Unsplash).jpg>) | Imani Clovis (Unsplash: imaniclovis) | CC0 1.0 |
|
|
26
|
+
| `wheel.webp` | [Making pottery (Unsplash)](<https://commons.wikimedia.org/wiki/File:Making_pottery_(Unsplash).jpg>) | Jared Sluyter (Unsplash: jaredsluyter) | CC0 1.0 |
|
|
27
|
+
| `yarn.webp` | [Ball of orange yarn (Unsplash)](<https://commons.wikimedia.org/wiki/File:Ball_of_orange_yarn_(Unsplash).jpg>) | Philip Estrada (Unsplash: philipestrada) | CC0 1.0 |
|
|
28
|
+
| `yarn-tools.webp` | [Giulia Bertelli 2017-02-03 (Unsplash)](<https://commons.wikimedia.org/wiki/File:Giulia_Bertelli_2017-02-03_(Unsplash).jpg>) | Giulia Bertelli (Unsplash: unpeusauvage) | CC0 1.0 |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64"><circle cx="32" cy="32" r="32" fill="#1e4646"/><path d="M23 43V21l18 22V21" fill="none" stroke="#f7f4ee" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -56,6 +56,12 @@ export const VariantDrawerOnly: Story = {
|
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
export const VariantFilterBar: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
entry: { id: "collection-grid", data: { ...base, "variant": "filter-bar" } },
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
59
65
|
export const Columns2: Story = {
|
|
60
66
|
args: {
|
|
61
67
|
entry: { id: "collection-grid", data: { ...base, "columns": "2" } },
|
|
@@ -38,6 +38,12 @@ export const VariantPlain: Story = {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
export const VariantArched: Story = {
|
|
42
|
+
args: {
|
|
43
|
+
entry: { id: "feature-grid", data: { ...base, "variant": "arched" } },
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
41
47
|
export const Columns2: Story = {
|
|
42
48
|
args: {
|
|
43
49
|
entry: { id: "feature-grid", data: { ...base, "columns": "2" } },
|
|
@@ -37,14 +37,14 @@ export const VariantMinimal: Story = {
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
export const
|
|
40
|
+
export const BackgroundPrimary: Story = {
|
|
41
41
|
args: {
|
|
42
|
-
entry: { id: "footer", data: { ...base, "background": "
|
|
42
|
+
entry: { id: "footer", data: { ...base, "background": "primary" } },
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
export const
|
|
46
|
+
export const BackgroundSurfaceStrong: Story = {
|
|
47
47
|
args: {
|
|
48
|
-
entry: { id: "footer", data: { ...base, "background": "
|
|
48
|
+
entry: { id: "footer", data: { ...base, "background": "surface-strong" } },
|
|
49
49
|
},
|
|
50
50
|
};
|
|
@@ -56,6 +56,12 @@ export const VariantSplitCarousel: Story = {
|
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
export const VariantCard: Story = {
|
|
60
|
+
args: {
|
|
61
|
+
entry: { id: "hero", data: { ...base, "variant": "card" } },
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
59
65
|
export const SpacingMd: Story = {
|
|
60
66
|
args: {
|
|
61
67
|
entry: { id: "hero", data: { ...base, "spacing": "md" } },
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
7
7
|
import Block from '../../blocks/navigation/Block.vue';
|
|
8
8
|
import mock from '../../blocks/navigation/mock.json';
|
|
9
|
+
import preview from '../../blocks/navigation/preview.json';
|
|
9
10
|
|
|
10
11
|
const meta: Meta<typeof Block> = {
|
|
11
12
|
title: "Blocks/navigation",
|
|
@@ -15,7 +16,7 @@ export default meta;
|
|
|
15
16
|
|
|
16
17
|
type Story = StoryObj<typeof Block>;
|
|
17
18
|
|
|
18
|
-
const base = mock;
|
|
19
|
+
const base = { ...mock, ...preview };
|
|
19
20
|
|
|
20
21
|
export const Default: Story = {
|
|
21
22
|
args: { entry: { id: "navigation", data: base } },
|
|
@@ -43,6 +44,18 @@ export const VariantMinimal: Story = {
|
|
|
43
44
|
},
|
|
44
45
|
};
|
|
45
46
|
|
|
47
|
+
export const DrawerLayoutAccordion: Story = {
|
|
48
|
+
args: {
|
|
49
|
+
entry: { id: "navigation", data: { ...base, "drawerLayout": "accordion" } },
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const DrawerLayoutSections: Story = {
|
|
54
|
+
args: {
|
|
55
|
+
entry: { id: "navigation", data: { ...base, "drawerLayout": "sections" } },
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
46
59
|
export const SearchStyleIcon: Story = {
|
|
47
60
|
args: {
|
|
48
61
|
entry: { id: "navigation", data: { ...base, "searchStyle": "icon" } },
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
7
7
|
import Block from '../../blocks/newsletter/Block.vue';
|
|
8
8
|
import mock from '../../blocks/newsletter/mock.json';
|
|
9
|
+
import preview from '../../blocks/newsletter/preview.json';
|
|
9
10
|
|
|
10
11
|
const meta: Meta<typeof Block> = {
|
|
11
12
|
title: "Blocks/newsletter",
|
|
@@ -15,7 +16,7 @@ export default meta;
|
|
|
15
16
|
|
|
16
17
|
type Story = StoryObj<typeof Block>;
|
|
17
18
|
|
|
18
|
-
const base = mock;
|
|
19
|
+
const base = { ...mock, ...preview };
|
|
19
20
|
|
|
20
21
|
export const Default: Story = {
|
|
21
22
|
args: { entry: { id: "newsletter", data: base } },
|
|
@@ -62,6 +62,18 @@ export const Limit12: Story = {
|
|
|
62
62
|
},
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
export const LayoutCarousel: Story = {
|
|
66
|
+
args: {
|
|
67
|
+
entry: { id: "product-carousel", data: { ...base, "layout": "carousel" } },
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const LayoutGrid: Story = {
|
|
72
|
+
args: {
|
|
73
|
+
entry: { id: "product-carousel", data: { ...base, "layout": "grid" } },
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
|
|
65
77
|
export const BackgroundNone: Story = {
|
|
66
78
|
args: {
|
|
67
79
|
entry: { id: "product-carousel", data: { ...base, "background": "none" } },
|
|
@@ -37,3 +37,15 @@ export const StartWithImageRight: Story = {
|
|
|
37
37
|
entry: { id: "split-content", data: { ...base, "startWith": "image-right" } },
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
|
+
|
|
41
|
+
export const BackgroundNone: Story = {
|
|
42
|
+
args: {
|
|
43
|
+
entry: { id: "split-content", data: { ...base, "background": "none" } },
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const BackgroundSurface: Story = {
|
|
48
|
+
args: {
|
|
49
|
+
entry: { id: "split-content", data: { ...base, "background": "surface" } },
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
7
7
|
import Block from '../../blocks/trust-strip/Block.vue';
|
|
8
8
|
import mock from '../../blocks/trust-strip/mock.json';
|
|
9
|
+
import preview from '../../blocks/trust-strip/preview.json';
|
|
9
10
|
|
|
10
11
|
const meta: Meta<typeof Block> = {
|
|
11
12
|
title: "Blocks/trust-strip",
|
|
@@ -15,7 +16,7 @@ export default meta;
|
|
|
15
16
|
|
|
16
17
|
type Story = StoryObj<typeof Block>;
|
|
17
18
|
|
|
18
|
-
const base = mock;
|
|
19
|
+
const base = { ...mock, ...preview };
|
|
19
20
|
|
|
20
21
|
export const Default: Story = {
|
|
21
22
|
args: { entry: { id: "trust-strip", data: base } },
|
|
@@ -37,6 +38,12 @@ export const VariantInline: Story = {
|
|
|
37
38
|
},
|
|
38
39
|
};
|
|
39
40
|
|
|
41
|
+
export const VariantNumbered: Story = {
|
|
42
|
+
args: {
|
|
43
|
+
entry: { id: "trust-strip", data: { ...base, "variant": "numbered" } },
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
40
47
|
export const MobileLayoutGrid: Story = {
|
|
41
48
|
args: {
|
|
42
49
|
entry: { id: "trust-strip", data: { ...base, "mobileLayout": "grid" } },
|
|
@@ -5,6 +5,7 @@ import EldraRouterLink from '../../app/components/EldraRouterLink.vue';
|
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
6
6
|
import fixture from '../../pages/article.page.json';
|
|
7
7
|
import { renderPageFixtureRegions, type PageFixture } from '../support/pageBlocks';
|
|
8
|
+
import { withDemoChrome } from '../support/demoChrome';
|
|
8
9
|
|
|
9
10
|
const page = fixture as unknown as PageFixture;
|
|
10
11
|
|
|
@@ -34,7 +35,7 @@ const ArticlePage = defineComponent({
|
|
|
34
35
|
},
|
|
35
36
|
{ default: () => t('nav.skipToContent') }
|
|
36
37
|
),
|
|
37
|
-
...renderPageFixtureRegions(page, 'Pages/Article story'),
|
|
38
|
+
...renderPageFixtureRegions(withDemoChrome(page), 'Pages/Article story'),
|
|
38
39
|
]);
|
|
39
40
|
},
|
|
40
41
|
});
|
|
@@ -5,6 +5,7 @@ import EldraRouterLink from '../../app/components/EldraRouterLink.vue';
|
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
6
6
|
import page from '../../pages/cart.page.json';
|
|
7
7
|
import { renderPageFixtureRegions, type PageFixture } from '../support/pageBlocks';
|
|
8
|
+
import { withDemoChrome } from '../support/demoChrome';
|
|
8
9
|
|
|
9
10
|
const fixture = page as unknown as PageFixture;
|
|
10
11
|
|
|
@@ -39,7 +40,7 @@ const CartPage = defineComponent({
|
|
|
39
40
|
},
|
|
40
41
|
() => t('nav.skipToContent')
|
|
41
42
|
),
|
|
42
|
-
...renderPageFixtureRegions(fixture, 'Pages/Cart story'),
|
|
43
|
+
...renderPageFixtureRegions(withDemoChrome(fixture), 'Pages/Cart story'),
|
|
43
44
|
];
|
|
44
45
|
},
|
|
45
46
|
});
|
|
@@ -5,6 +5,7 @@ import EldraRouterLink from '../../app/components/EldraRouterLink.vue';
|
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
6
6
|
import fixture from '../../pages/category.page.json';
|
|
7
7
|
import { renderPageFixtureRegions, type PageFixture } from '../support/pageBlocks';
|
|
8
|
+
import { withDemoChrome } from '../support/demoChrome';
|
|
8
9
|
|
|
9
10
|
const page = fixture as unknown as PageFixture;
|
|
10
11
|
|
|
@@ -39,7 +40,7 @@ const CategoryPage = defineComponent({
|
|
|
39
40
|
},
|
|
40
41
|
{ default: () => t('nav.skipToContent') }
|
|
41
42
|
),
|
|
42
|
-
...renderPageFixtureRegions(page, 'Pages/Category story'),
|
|
43
|
+
...renderPageFixtureRegions(withDemoChrome(page), 'Pages/Category story'),
|
|
43
44
|
]);
|
|
44
45
|
},
|
|
45
46
|
});
|
|
@@ -5,6 +5,7 @@ import EldraRouterLink from '../../app/components/EldraRouterLink.vue';
|
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
6
6
|
import fixture from '../../pages/collection.page.json';
|
|
7
7
|
import { renderPageFixtureRegions, type PageFixture } from '../support/pageBlocks';
|
|
8
|
+
import { withDemoChrome } from '../support/demoChrome';
|
|
8
9
|
|
|
9
10
|
const page = fixture as unknown as PageFixture;
|
|
10
11
|
|
|
@@ -34,7 +35,7 @@ const CollectionPage = defineComponent({
|
|
|
34
35
|
},
|
|
35
36
|
{ default: () => t('nav.skipToContent') }
|
|
36
37
|
),
|
|
37
|
-
...renderPageFixtureRegions(page, 'Pages/Collection story'),
|
|
38
|
+
...renderPageFixtureRegions(withDemoChrome(page), 'Pages/Collection story'),
|
|
38
39
|
]);
|
|
39
40
|
},
|
|
40
41
|
});
|
|
@@ -5,6 +5,7 @@ import EldraRouterLink from '../../app/components/EldraRouterLink.vue';
|
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
6
6
|
import homePage from '../../pages/home.page.json';
|
|
7
7
|
import { renderPageFixtureRegions, type PageFixture } from '../support/pageBlocks';
|
|
8
|
+
import { withDemoChrome } from '../support/demoChrome';
|
|
8
9
|
|
|
9
10
|
const fixture = homePage as unknown as PageFixture;
|
|
10
11
|
|
|
@@ -34,7 +35,7 @@ const HomePage = defineComponent({
|
|
|
34
35
|
},
|
|
35
36
|
() => t('nav.skipToContent')
|
|
36
37
|
),
|
|
37
|
-
...renderPageFixtureRegions(fixture, 'Pages/Home story'),
|
|
38
|
+
...renderPageFixtureRegions(withDemoChrome(fixture), 'Pages/Home story'),
|
|
38
39
|
];
|
|
39
40
|
},
|
|
40
41
|
});
|
|
@@ -14,6 +14,7 @@ import EldraRouterLink from '../../app/components/EldraRouterLink.vue';
|
|
|
14
14
|
import { useI18n } from 'vue-i18n';
|
|
15
15
|
import productPage from '../../pages/product.page.json';
|
|
16
16
|
import { renderPageFixtureRegions, type PageFixture } from '../support/pageBlocks';
|
|
17
|
+
import { withDemoChrome } from '../support/demoChrome';
|
|
17
18
|
|
|
18
19
|
const fixture = productPage as unknown as PageFixture;
|
|
19
20
|
|
|
@@ -30,7 +31,7 @@ const ProductPage = defineComponent({
|
|
|
30
31
|
{ href: '#main', as: EldraRouterLink, variant: 'standalone', class: SKIP_LINK_CLASS },
|
|
31
32
|
{ default: () => t('nav.skipToContent') }
|
|
32
33
|
),
|
|
33
|
-
...renderPageFixtureRegions(fixture, 'Pages/Product story'),
|
|
34
|
+
...renderPageFixtureRegions(withDemoChrome(fixture), 'Pages/Product story'),
|
|
34
35
|
];
|
|
35
36
|
},
|
|
36
37
|
});
|