@runwell/shopify-toolkit 0.1.0 → 0.2.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.
Files changed (40) hide show
  1. package/modules/_shared/css-tokens/assets/runwell-tokens.css +14 -0
  2. package/modules/_shared/css-tokens/module.json +13 -0
  3. package/modules/cart-cross-sell/README.md +32 -0
  4. package/modules/cart-cross-sell/module.json +15 -0
  5. package/modules/cart-cross-sell/snippets/runwell-cart-xsell.liquid +40 -0
  6. package/modules/cart-freeship-progress/README.md +29 -0
  7. package/modules/cart-freeship-progress/module.json +16 -0
  8. package/modules/cart-freeship-progress/snippets/runwell-cart-freeship.liquid +27 -0
  9. package/modules/cart-usps/README.md +22 -0
  10. package/modules/cart-usps/module.json +17 -0
  11. package/modules/cart-usps/snippets/runwell-cart-usps.liquid +11 -0
  12. package/modules/editorial-hero/sections/runwell-video-hero.liquid +9 -3
  13. package/modules/gift-with-purchase/README.md +36 -0
  14. package/modules/gift-with-purchase/assets/runwell-gwp.js +42 -0
  15. package/modules/gift-with-purchase/module.json +32 -0
  16. package/modules/gift-with-purchase/snippets/runwell-gwp.liquid +30 -0
  17. package/modules/loyalty-tiers/README.md +45 -0
  18. package/modules/loyalty-tiers/module.json +40 -0
  19. package/modules/loyalty-tiers/sections/runwell-tier-card.liquid +86 -0
  20. package/modules/product-badges/README.md +35 -0
  21. package/modules/product-badges/module.json +16 -0
  22. package/modules/product-badges/snippets/runwell-product-badges.liquid +19 -0
  23. package/modules/quantity-breaks/README.md +33 -0
  24. package/modules/quantity-breaks/module.json +35 -0
  25. package/modules/quantity-breaks/snippets/runwell-quantity-breaks.liquid +28 -0
  26. package/modules/quick-view/README.md +36 -0
  27. package/modules/quick-view/assets/runwell-quickview.js +153 -0
  28. package/modules/quick-view/module.json +14 -0
  29. package/modules/quick-view/snippets/runwell-quickview-modal.liquid +14 -0
  30. package/modules/quick-view/snippets/runwell-quickview-trigger.liquid +19 -0
  31. package/modules/subscriptions/README.md +37 -0
  32. package/modules/subscriptions/module.json +36 -0
  33. package/modules/subscriptions/snippets/runwell-subscription-picker.liquid +35 -0
  34. package/modules/wishlist/README.md +48 -0
  35. package/modules/wishlist/assets/runwell-wishlist.js +112 -0
  36. package/modules/wishlist/module.json +25 -0
  37. package/modules/wishlist/sections/runwell-wishlist-page.liquid +35 -0
  38. package/modules/wishlist/snippets/runwell-wishlist-icon.liquid +17 -0
  39. package/modules/wishlist/templates/page.wishlist.json +13 -0
  40. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ {%- comment -%}
2
+ Runwell wishlist page section. Drop into a Shopify Page template
3
+ (e.g. templates/page.wishlist.json).
4
+ {%- endcomment -%}
5
+
6
+ <section class="runwell-wishlist" data-runwell-wishlist-page>
7
+ <div class="runwell-wishlist__inner">
8
+ {%- if section.settings.heading != blank -%}
9
+ <h1 class="runwell-wishlist__heading">{{ section.settings.heading }}</h1>
10
+ {%- endif -%}
11
+ <div class="runwell-wishlist__empty" data-runwell-wishlist-empty>
12
+ <p>{{ section.settings.empty_text }}</p>
13
+ <a href="{{ routes.collections_url }}/all" class="runwell-wishlist__cta">{{ section.settings.empty_cta }}</a>
14
+ </div>
15
+ <div class="runwell-wishlist__grid" data-runwell-wishlist-grid></div>
16
+ </div>
17
+ </section>
18
+
19
+ <script src="{{ 'runwell-wishlist.js' | asset_url }}" defer="defer"></script>
20
+
21
+ {% schema %}
22
+ {
23
+ "name": "Runwell wishlist page",
24
+ "tag": "section",
25
+ "class": "section-runwell-wishlist",
26
+ "settings": [
27
+ { "type": "text", "id": "heading", "label": "Heading", "default": "Saved for later" },
28
+ { "type": "text", "id": "empty_text", "label": "Empty state text", "default": "Save items as you browse and they will show up here." },
29
+ { "type": "text", "id": "empty_cta", "label": "Empty state CTA", "default": "Start browsing" }
30
+ ],
31
+ "presets": [
32
+ { "name": "Runwell wishlist page" }
33
+ ]
34
+ }
35
+ {% endschema %}
@@ -0,0 +1,17 @@
1
+ {%- comment -%}
2
+ Runwell wishlist heart button. Drop into card-product or main-product.
3
+ Caller sets handle via {% render 'runwell-wishlist-icon', handle: card_product.handle %}
4
+ {%- endcomment -%}
5
+
6
+ <button
7
+ type="button"
8
+ class="runwell-wishlist-icon"
9
+ data-runwell-wishlist
10
+ data-handle="{{ handle }}"
11
+ aria-pressed="false"
12
+ aria-label="Save for later"
13
+ >
14
+ <svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true">
15
+ <path d="M12 21s-7-4.35-9.5-9C.5 7 4 3 7.5 3c2 0 3.5 1 4.5 2.5C13 4 14.5 3 16.5 3 20 3 23.5 7 21.5 12 19 16.65 12 21 12 21z" fill="none" stroke="currentColor" stroke-width="1.5"/>
16
+ </svg>
17
+ </button>
@@ -0,0 +1,13 @@
1
+ {
2
+ "sections": {
3
+ "wishlist": {
4
+ "type": "runwell-wishlist-page",
5
+ "settings": {
6
+ "heading": "Saved for later",
7
+ "empty_text": "Save items as you browse and they will show up here.",
8
+ "empty_cta": "Start browsing"
9
+ }
10
+ }
11
+ },
12
+ "order": ["wishlist"]
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runwell/shopify-toolkit",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Reusable Shopify theme modules from Runwell. Replaces typically app-driven features (reviews, wishlist, urgency, FAQ, post-purchase upsell, exit popups, free-ship progress, sticky ATC, testimonials, badges, bundles) with native Liquid + JS + CSS that ship across multiple client themes via a config-driven sync CLI.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",