@pradip1995/create-storefront 1.0.1
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/bin/create-storefront.js +239 -0
- package/lib/kit-next-config.js +84 -0
- package/package.json +32 -0
- package/templates/storefront/.eslintrc.json +3 -0
- package/templates/storefront/README.md +35 -0
- package/templates/storefront/check-env-variables.js +51 -0
- package/templates/storefront/kit-next-config.js +71 -0
- package/templates/storefront/next-env.d.ts +5 -0
- package/templates/storefront/next.config.js +25 -0
- package/templates/storefront/package.json +56 -0
- package/templates/storefront/postcss.config.js +6 -0
- package/templates/storefront/public/favicon.png +0 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/checkout/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/checkout/payment/page.tsx +47 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/layout.tsx +31 -0
- package/templates/storefront/src/app/[countryCode]/(checkout)/not-found.tsx +19 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/addresses/page.tsx +31 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/loading.tsx +9 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/details/[id]/page.tsx +35 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/exchange/[id]/page.tsx +47 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/page.tsx +28 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/orders/return/[id]/page.tsx +66 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/page.tsx +22 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/payment-methods/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@dashboard/profile/page.tsx +43 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@login/default.tsx +11 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/@login/page.tsx +18 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/guest-orders/page.tsx +13 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/layout.tsx +22 -0
- package/templates/storefront/src/app/[countryCode]/(main)/account/loading.tsx +9 -0
- package/templates/storefront/src/app/[countryCode]/(main)/cart/loading.tsx +5 -0
- package/templates/storefront/src/app/[countryCode]/(main)/cart/not-found.tsx +21 -0
- package/templates/storefront/src/app/[countryCode]/(main)/cart/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(main)/categories/[...category]/page.tsx +11 -0
- package/templates/storefront/src/app/[countryCode]/(main)/collections/[handle]/page.tsx +11 -0
- package/templates/storefront/src/app/[countryCode]/(main)/contact/page.tsx +21 -0
- package/templates/storefront/src/app/[countryCode]/(main)/guest-orders/page.tsx +12 -0
- package/templates/storefront/src/app/[countryCode]/(main)/help/page.tsx +28 -0
- package/templates/storefront/src/app/[countryCode]/(main)/layout.tsx +21 -0
- package/templates/storefront/src/app/[countryCode]/(main)/not-found.tsx +20 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/confirmed/loading.tsx +5 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/confirmed/page.tsx +23 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/transfer/[token]/accept/page.tsx +41 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/transfer/[token]/decline/page.tsx +41 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/[id]/transfer/[token]/page.tsx +38 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/exchange/[id]/page.tsx +47 -0
- package/templates/storefront/src/app/[countryCode]/(main)/order/return/[id]/page.tsx +61 -0
- package/templates/storefront/src/app/[countryCode]/(main)/orders/[id]/page.tsx +33 -0
- package/templates/storefront/src/app/[countryCode]/(main)/page.tsx +24 -0
- package/templates/storefront/src/app/[countryCode]/(main)/privacy-policy/page.tsx +173 -0
- package/templates/storefront/src/app/[countryCode]/(main)/products/[handle]/page.tsx +193 -0
- package/templates/storefront/src/app/[countryCode]/(main)/reset-password/page.tsx +192 -0
- package/templates/storefront/src/app/[countryCode]/(main)/store/page.tsx +72 -0
- package/templates/storefront/src/app/[countryCode]/(main)/terms-of-use/page.tsx +179 -0
- package/templates/storefront/src/app/[countryCode]/(main)/wishlist/page.tsx +19 -0
- package/templates/storefront/src/app/api/meta/event/route.ts +63 -0
- package/templates/storefront/src/app/auth/customer/google/callback/page.tsx +126 -0
- package/templates/storefront/src/app/layout.tsx +104 -0
- package/templates/storefront/src/app/not-found.tsx +30 -0
- package/templates/storefront/src/app/opengraph-image.jpg +0 -0
- package/templates/storefront/src/app/robots.ts +15 -0
- package/templates/storefront/src/app/sitemap.ts +65 -0
- package/templates/storefront/src/app/twitter-image.jpg +0 -0
- package/templates/storefront/src/modules/account/components/account-deletion/index.tsx +160 -0
- package/templates/storefront/src/modules/account/components/account-info/index.tsx +145 -0
- package/templates/storefront/src/modules/account/components/account-nav/icons.tsx +43 -0
- package/templates/storefront/src/modules/account/components/account-nav/index.tsx +318 -0
- package/templates/storefront/src/modules/account/components/account-nav/logout-modal.tsx +92 -0
- package/templates/storefront/src/modules/account/components/account-nav/payment-methods-icon.tsx +9 -0
- package/templates/storefront/src/modules/account/components/address-book/index.tsx +47 -0
- package/templates/storefront/src/modules/account/components/address-card/add-address.tsx +377 -0
- package/templates/storefront/src/modules/account/components/address-card/edit-address-modal.tsx +468 -0
- package/templates/storefront/src/modules/account/components/deletion-pending-modal/index.tsx +213 -0
- package/templates/storefront/src/modules/account/components/forgot-password/index.tsx +1 -0
- package/templates/storefront/src/modules/account/components/login/index.tsx +1 -0
- package/templates/storefront/src/modules/account/components/order-card/index.tsx +221 -0
- package/templates/storefront/src/modules/account/components/order-overview/index.tsx +159 -0
- package/templates/storefront/src/modules/account/components/overview/index.tsx +189 -0
- package/templates/storefront/src/modules/account/components/profile-billing-address/index.tsx +447 -0
- package/templates/storefront/src/modules/account/components/profile-email/index.tsx +75 -0
- package/templates/storefront/src/modules/account/components/profile-form/index.tsx +416 -0
- package/templates/storefront/src/modules/account/components/profile-name/index.tsx +76 -0
- package/templates/storefront/src/modules/account/components/profile-password/index.tsx +70 -0
- package/templates/storefront/src/modules/account/components/profile-phone/index.tsx +185 -0
- package/templates/storefront/src/modules/account/components/register/index.tsx +1 -0
- package/templates/storefront/src/modules/account/components/return-item-selector/index.tsx +187 -0
- package/templates/storefront/src/modules/account/components/return-shipping-selector/index.tsx +118 -0
- package/templates/storefront/src/modules/account/components/transfer-request-form/index.tsx +81 -0
- package/templates/storefront/src/modules/account/templates/account-layout.tsx +38 -0
- package/templates/storefront/src/modules/account/templates/exchange-request-template.tsx +389 -0
- package/templates/storefront/src/modules/account/templates/guest-orders-template.tsx +123 -0
- package/templates/storefront/src/modules/account/templates/login-template.tsx +44 -0
- package/templates/storefront/src/modules/account/templates/payment-methods-template.tsx +478 -0
- package/templates/storefront/src/modules/account/templates/return-request-template.tsx +300 -0
- package/templates/storefront/src/modules/cart/components/abandoned-carts/ScrollToPendingOrdersButton.tsx +21 -0
- package/templates/storefront/src/modules/cart/components/abandoned-carts/index.tsx +335 -0
- package/templates/storefront/src/modules/cart/components/applied-promotions/index.tsx +121 -0
- package/templates/storefront/src/modules/cart/components/cart-delivery-selection/index.tsx +203 -0
- package/templates/storefront/src/modules/cart/components/cart-item-card/index.tsx +476 -0
- package/templates/storefront/src/modules/cart/components/cart-item-select/index.tsx +73 -0
- package/templates/storefront/src/modules/cart/components/cart-view-tracker/index.tsx +44 -0
- package/templates/storefront/src/modules/cart/components/delivery-information/index.tsx +89 -0
- package/templates/storefront/src/modules/cart/components/empty-cart-message/index.tsx +38 -0
- package/templates/storefront/src/modules/cart/components/item/index.tsx +150 -0
- package/templates/storefront/src/modules/cart/components/pincode-checker/index.tsx +174 -0
- package/templates/storefront/src/modules/cart/components/sign-in-prompt/index.tsx +26 -0
- package/templates/storefront/src/modules/cart/components/you-may-also-like/index.tsx +137 -0
- package/templates/storefront/src/modules/cart/templates/index.tsx +88 -0
- package/templates/storefront/src/modules/cart/templates/items.tsx +49 -0
- package/templates/storefront/src/modules/cart/templates/preview.tsx +51 -0
- package/templates/storefront/src/modules/cart/templates/summary.tsx +29 -0
- package/templates/storefront/src/modules/checkout/components/add-address-modal/index.tsx +390 -0
- package/templates/storefront/src/modules/checkout/components/address-card/index.tsx +135 -0
- package/templates/storefront/src/modules/checkout/components/address-select/index.tsx +116 -0
- package/templates/storefront/src/modules/checkout/components/addresses/index.tsx +605 -0
- package/templates/storefront/src/modules/checkout/components/back-link/index.tsx +32 -0
- package/templates/storefront/src/modules/checkout/components/billing_address/index.tsx +301 -0
- package/templates/storefront/src/modules/checkout/components/checkout-begin-tracker/index.tsx +45 -0
- package/templates/storefront/src/modules/checkout/components/checkout-leave-guard/index.tsx +109 -0
- package/templates/storefront/src/modules/checkout/components/checkout-shipping-tracker/index.tsx +45 -0
- package/templates/storefront/src/modules/checkout/components/country-select/index.tsx +50 -0
- package/templates/storefront/src/modules/checkout/components/discount-code/index.tsx +220 -0
- package/templates/storefront/src/modules/checkout/components/error-message/index.tsx +13 -0
- package/templates/storefront/src/modules/checkout/components/payment/index.tsx +572 -0
- package/templates/storefront/src/modules/checkout/components/payment-button/index.tsx +257 -0
- package/templates/storefront/src/modules/checkout/components/payment-button/razorpay-payment-button.tsx +136 -0
- package/templates/storefront/src/modules/checkout/components/payment-container/index.tsx +129 -0
- package/templates/storefront/src/modules/checkout/components/payment-test/index.tsx +12 -0
- package/templates/storefront/src/modules/checkout/components/payment-wrapper/index.tsx +50 -0
- package/templates/storefront/src/modules/checkout/components/payment-wrapper/stripe-wrapper.tsx +54 -0
- package/templates/storefront/src/modules/checkout/components/processing-overlay/index.tsx +83 -0
- package/templates/storefront/src/modules/checkout/components/review/index.tsx +60 -0
- package/templates/storefront/src/modules/checkout/components/select-address-modal/index.tsx +103 -0
- package/templates/storefront/src/modules/checkout/components/shipping/index.tsx +533 -0
- package/templates/storefront/src/modules/checkout/components/shipping-address/index.tsx +521 -0
- package/templates/storefront/src/modules/checkout/components/submit-button/index.tsx +32 -0
- package/templates/storefront/src/modules/checkout/templates/checkout-form/index.tsx +38 -0
- package/templates/storefront/src/modules/checkout/templates/checkout-summary/index.tsx +274 -0
- package/templates/storefront/src/modules/common/components/breadcrumb/index.tsx +43 -0
- package/templates/storefront/src/modules/common/components/cart-totals/index.tsx +473 -0
- package/templates/storefront/src/modules/common/components/checkbox/index.tsx +98 -0
- package/templates/storefront/src/modules/common/components/delete-button/index.tsx +156 -0
- package/templates/storefront/src/modules/common/components/divider/index.tsx +9 -0
- package/templates/storefront/src/modules/common/components/filter-checkbox-group/index.tsx +134 -0
- package/templates/storefront/src/modules/common/components/filter-radio-group/index.tsx +62 -0
- package/templates/storefront/src/modules/common/components/input/index.tsx +79 -0
- package/templates/storefront/src/modules/common/components/interactive-link/index.tsx +33 -0
- package/templates/storefront/src/modules/common/components/line-item-options/index.tsx +26 -0
- package/templates/storefront/src/modules/common/components/line-item-price/index.tsx +64 -0
- package/templates/storefront/src/modules/common/components/line-item-unit-price/index.tsx +61 -0
- package/templates/storefront/src/modules/common/components/localized-client-link/index.tsx +32 -0
- package/templates/storefront/src/modules/common/components/login-popup/index.tsx +78 -0
- package/templates/storefront/src/modules/common/components/modal/index.tsx +123 -0
- package/templates/storefront/src/modules/common/components/native-select/index.tsx +75 -0
- package/templates/storefront/src/modules/common/components/obfuscated-email/index.tsx +30 -0
- package/templates/storefront/src/modules/common/components/product/product-rating/index.tsx +172 -0
- package/templates/storefront/src/modules/common/components/product/review-modal/index.tsx +333 -0
- package/templates/storefront/src/modules/common/components/product/share-button/index.tsx +227 -0
- package/templates/storefront/src/modules/common/components/product/wishlist-icon/index.tsx +46 -0
- package/templates/storefront/src/modules/common/components/radio/index.tsx +27 -0
- package/templates/storefront/src/modules/common/components/select/index.tsx +164 -0
- package/templates/storefront/src/modules/common/components/side-panel/index.tsx +65 -0
- package/templates/storefront/src/modules/common/icons/arrow-left.tsx +36 -0
- package/templates/storefront/src/modules/common/icons/back.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/bancontact.tsx +26 -0
- package/templates/storefront/src/modules/common/icons/chevron-down.tsx +30 -0
- package/templates/storefront/src/modules/common/icons/delivered.tsx +29 -0
- package/templates/storefront/src/modules/common/icons/envelope.tsx +27 -0
- package/templates/storefront/src/modules/common/icons/eye-off.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/eye.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/fast-delivery.tsx +65 -0
- package/templates/storefront/src/modules/common/icons/ideal.tsx +26 -0
- package/templates/storefront/src/modules/common/icons/lock.tsx +31 -0
- package/templates/storefront/src/modules/common/icons/map-pin.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/medusa.tsx +27 -0
- package/templates/storefront/src/modules/common/icons/menu.tsx +45 -0
- package/templates/storefront/src/modules/common/icons/nextjs.tsx +27 -0
- package/templates/storefront/src/modules/common/icons/package.tsx +44 -0
- package/templates/storefront/src/modules/common/icons/paypal.tsx +30 -0
- package/templates/storefront/src/modules/common/icons/phone.tsx +30 -0
- package/templates/storefront/src/modules/common/icons/placeholder-image.tsx +44 -0
- package/templates/storefront/src/modules/common/icons/refresh.tsx +51 -0
- package/templates/storefront/src/modules/common/icons/spinner.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/trash.tsx +51 -0
- package/templates/storefront/src/modules/common/icons/user.tsx +37 -0
- package/templates/storefront/src/modules/common/icons/x.tsx +37 -0
- package/templates/storefront/src/modules/contact/templates/index.tsx +272 -0
- package/templates/storefront/src/modules/help/templates/index.tsx +629 -0
- package/templates/storefront/src/modules/home/components/dynamic-banner/index.tsx +190 -0
- package/templates/storefront/src/modules/home/components/featured-products/index.tsx +16 -0
- package/templates/storefront/src/modules/home/components/featured-products/product-rail/index.tsx +51 -0
- package/templates/storefront/src/modules/home/components/features/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/hero/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/loved-by-moms/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/new-arrivals/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/shop-by-age/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/shop-by-category/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/testimonials/index.tsx +1 -0
- package/templates/storefront/src/modules/home/components/why-choose-us/dynamic-features.tsx +93 -0
- package/templates/storefront/src/modules/home/components/why-choose-us/index.tsx +1 -0
- package/templates/storefront/src/modules/layout/components/account-dropdown/index.tsx +56 -0
- package/templates/storefront/src/modules/layout/components/cart-button/index.tsx +8 -0
- package/templates/storefront/src/modules/layout/components/cart-dropdown/index.tsx +424 -0
- package/templates/storefront/src/modules/layout/components/cart-mismatch-banner/index.tsx +57 -0
- package/templates/storefront/src/modules/layout/components/cookie-consent/index.tsx +116 -0
- package/templates/storefront/src/modules/layout/components/country-select/index.tsx +135 -0
- package/templates/storefront/src/modules/layout/components/desktop-search/index.tsx +148 -0
- package/templates/storefront/src/modules/layout/components/dynamic-logo/index.tsx +27 -0
- package/templates/storefront/src/modules/layout/components/footer-categories/index.tsx +34 -0
- package/templates/storefront/src/modules/layout/components/footer-contact/index.tsx +87 -0
- package/templates/storefront/src/modules/layout/components/footer-description/index.tsx +12 -0
- package/templates/storefront/src/modules/layout/components/footer-logo/index.tsx +22 -0
- package/templates/storefront/src/modules/layout/components/footer-newsletter/index.tsx +100 -0
- package/templates/storefront/src/modules/layout/components/language-select/index.tsx +192 -0
- package/templates/storefront/src/modules/layout/components/medusa-cta/index.tsx +21 -0
- package/templates/storefront/src/modules/layout/components/mobile-menu/index.tsx +296 -0
- package/templates/storefront/src/modules/layout/components/nav-links/index.tsx +66 -0
- package/templates/storefront/src/modules/layout/components/nav-wrapper/index.tsx +14 -0
- package/templates/storefront/src/modules/layout/components/promo-bar/index.tsx +7 -0
- package/templates/storefront/src/modules/layout/components/promo-bar/promo-bar-content.tsx +174 -0
- package/templates/storefront/src/modules/layout/components/push-notification-manager/index.tsx +191 -0
- package/templates/storefront/src/modules/layout/components/search-panel/index.tsx +136 -0
- package/templates/storefront/src/modules/layout/components/side-menu/index.tsx +144 -0
- package/templates/storefront/src/modules/layout/components/verification-banner/index.tsx +217 -0
- package/templates/storefront/src/modules/layout/components/wishlist-counter/index.tsx +17 -0
- package/templates/storefront/src/modules/layout/templates/footer/index.tsx +7 -0
- package/templates/storefront/src/modules/layout/templates/nav/index.tsx +14 -0
- package/templates/storefront/src/modules/order/components/cancel-order-modal/index.tsx +168 -0
- package/templates/storefront/src/modules/order/components/help/index.tsx +25 -0
- package/templates/storefront/src/modules/order/components/item/index.tsx +62 -0
- package/templates/storefront/src/modules/order/components/items/index.tsx +44 -0
- package/templates/storefront/src/modules/order/components/onboarding-cta/index.tsx +28 -0
- package/templates/storefront/src/modules/order/components/order-confirmation-back-handler/index.tsx +28 -0
- package/templates/storefront/src/modules/order/components/order-details/index.tsx +63 -0
- package/templates/storefront/src/modules/order/components/order-purchase-tracker/index.tsx +48 -0
- package/templates/storefront/src/modules/order/components/order-redesign/index.tsx +887 -0
- package/templates/storefront/src/modules/order/components/order-summary/index.tsx +60 -0
- package/templates/storefront/src/modules/order/components/payment-details/index.tsx +63 -0
- package/templates/storefront/src/modules/order/components/shipping-details/index.tsx +73 -0
- package/templates/storefront/src/modules/order/components/transfer-actions/index.tsx +81 -0
- package/templates/storefront/src/modules/order/components/transfer-image/index.tsx +275 -0
- package/templates/storefront/src/modules/order/templates/order-completed-template.tsx +233 -0
- package/templates/storefront/src/modules/order/templates/order-details-template.tsx +128 -0
- package/templates/storefront/src/modules/products/components/image-gallery/index.tsx +297 -0
- package/templates/storefront/src/modules/products/components/product-actions/index.tsx +1400 -0
- package/templates/storefront/src/modules/products/components/product-actions/mobile-actions.tsx +217 -0
- package/templates/storefront/src/modules/products/components/product-actions/option-select.tsx +62 -0
- package/templates/storefront/src/modules/products/components/product-onboarding-cta/index.tsx +30 -0
- package/templates/storefront/src/modules/products/components/product-preview/index.tsx +5 -0
- package/templates/storefront/src/modules/products/components/product-preview/price.tsx +29 -0
- package/templates/storefront/src/modules/products/components/product-price/index.tsx +58 -0
- package/templates/storefront/src/modules/products/components/product-rating/index.tsx +1 -0
- package/templates/storefront/src/modules/products/components/product-tabs/accordion.tsx +100 -0
- package/templates/storefront/src/modules/products/components/product-tabs/index.tsx +127 -0
- package/templates/storefront/src/modules/products/components/product-tabs/ratings-tab.tsx +598 -0
- package/templates/storefront/src/modules/products/components/product-view-tracker/index.tsx +53 -0
- package/templates/storefront/src/modules/products/components/related-products/index.tsx +152 -0
- package/templates/storefront/src/modules/products/components/review-modal/index.tsx +1 -0
- package/templates/storefront/src/modules/products/components/share-button/index.tsx +1 -0
- package/templates/storefront/src/modules/products/components/thumbnail/index.tsx +91 -0
- package/templates/storefront/src/modules/products/components/wishlist-icon/index.tsx +1 -0
- package/templates/storefront/src/modules/products/context/product-context.tsx +52 -0
- package/templates/storefront/src/modules/products/templates/index.tsx +26 -0
- package/templates/storefront/src/modules/products/templates/product-actions-wrapper/index.tsx +1 -0
- package/templates/storefront/src/modules/products/templates/product-info/index.tsx +2 -0
- package/templates/storefront/src/modules/shipping/components/free-shipping-price-nudge/index.tsx +283 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-button/index.tsx +5 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-card-details/index.tsx +10 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-cart-item/index.tsx +35 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-cart-totals/index.tsx +30 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-code-form/index.tsx +13 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-line-item/index.tsx +35 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-confirmed-header/index.tsx +14 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-information/index.tsx +36 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-items/index.tsx +43 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-order-summary/index.tsx +15 -0
- package/templates/storefront/src/modules/skeletons/components/skeleton-product-preview/index.tsx +15 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-cart-page/index.tsx +65 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-order-confirmed/index.tsx +21 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-product-grid/index.tsx +23 -0
- package/templates/storefront/src/modules/skeletons/templates/skeleton-related-products/index.tsx +25 -0
- package/templates/storefront/src/modules/store/components/client-paginated-products.tsx +108 -0
- package/templates/storefront/src/modules/store/components/mobile-filters/index.tsx +135 -0
- package/templates/storefront/src/modules/store/components/pagination/index.tsx +118 -0
- package/templates/storefront/src/modules/store/components/product-list-view-tracker/index.tsx +43 -0
- package/templates/storefront/src/modules/store/components/refinement-list/index.tsx +299 -0
- package/templates/storefront/src/modules/store/components/refinement-list/sort-products/index.tsx +120 -0
- package/templates/storefront/src/modules/store/components/store-header/index.tsx +67 -0
- package/templates/storefront/src/modules/store/templates/index.tsx +1 -0
- package/templates/storefront/src/modules/store/templates/paginated-products.tsx +175 -0
- package/templates/storefront/src/modules/wishlist/components/wishlist-item/index.tsx +797 -0
- package/templates/storefront/src/modules/wishlist/templates/index.tsx +176 -0
- package/templates/storefront/src/storefront.config.ts +12 -0
- package/templates/storefront/src/styles/globals.css +326 -0
- package/templates/storefront/src/theme/valero/blocks/home/Features/index.tsx +61 -0
- package/templates/storefront/src/theme/valero/blocks/home/Hero/index.tsx +102 -0
- package/templates/storefront/src/theme/valero/blocks/home/LovedByMoms/index.tsx +407 -0
- package/templates/storefront/src/theme/valero/blocks/home/NewArrivals/index.tsx +48 -0
- package/templates/storefront/src/theme/valero/blocks/home/ShopByAge/index.tsx +128 -0
- package/templates/storefront/src/theme/valero/blocks/home/ShopByCategory/index.tsx +409 -0
- package/templates/storefront/src/theme/valero/blocks/home/Testimonials/index.tsx +697 -0
- package/templates/storefront/src/theme/valero/blocks/home/WhyChooseUs/index.tsx +62 -0
- package/templates/storefront/src/theme/valero/layouts/MainLayoutShell.tsx +14 -0
- package/templates/storefront/src/theme/valero/primitives/Button.tsx +28 -0
- package/templates/storefront/src/theme/valero/primitives/Card.tsx +32 -0
- package/templates/storefront/src/theme/valero/primitives/index.ts +2 -0
- package/templates/storefront/src/theme/valero/slots/account/ForgotPassword/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/account/Login/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/account/LoginTemplate/index.tsx +44 -0
- package/templates/storefront/src/theme/valero/slots/account/Register/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/cart/CartItem/index.tsx +11 -0
- package/templates/storefront/src/theme/valero/slots/cart/CartSummary/index.tsx +13 -0
- package/templates/storefront/src/theme/valero/slots/checkout/CheckoutForm/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/checkout/CheckoutSummary/index.tsx +1 -0
- package/templates/storefront/src/theme/valero/slots/layout/Footer/index.tsx +104 -0
- package/templates/storefront/src/theme/valero/slots/layout/Nav/index.tsx +97 -0
- package/templates/storefront/src/theme/valero/slots/layout/PromoBar/index.tsx +19 -0
- package/templates/storefront/src/theme/valero/slots/layout/PromoBar/promo-bar-content.tsx +174 -0
- package/templates/storefront/src/theme/valero/slots/order/OrderDetails/index.tsx +12 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductCTASection.tsx +191 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductDetailsSection.tsx +137 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductFeaturePanel.tsx +245 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductHighlightsSection.tsx +98 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductOptionsSection.tsx +233 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductPriceSection.tsx +53 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/ProductTrustSection.tsx +84 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductActions/index.tsx +161 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductCard/index.tsx +132 -0
- package/templates/storefront/src/theme/valero/slots/product/ProductInfo/index.tsx +40 -0
- package/templates/storefront/src/theme/valero/templates/StorePage/index.tsx +154 -0
- package/templates/storefront/src/theme/valero/tokens/colors.js +16 -0
- package/templates/storefront/src/theme/valero/tokens/colors.ts +21 -0
- package/templates/storefront/src/theme/valero/tokens/fonts.ts +13 -0
- package/templates/storefront/src/theme/valero/tokens/index.ts +3 -0
- package/templates/storefront/src/theme/valero/tokens/spacing.ts +9 -0
- package/templates/storefront/src/theme/valero/tokens/theme.css +91 -0
- package/templates/storefront/tailwind.config.js +221 -0
- package/templates/storefront/tsconfig.json +30 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HttpTypes } from "@medusajs/types"
|
|
2
|
+
import ProductRating from "@modules/common/components/product/product-rating"
|
|
3
|
+
import ShareButton from "@modules/common/components/product/share-button"
|
|
4
|
+
import WishlistIcon from "@modules/common/components/product/wishlist-icon"
|
|
5
|
+
|
|
6
|
+
type ProductInfoProps = {
|
|
7
|
+
product: HttpTypes.StoreProduct
|
|
8
|
+
region: HttpTypes.StoreRegion
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function ProductInfo({ product }: ProductInfoProps) {
|
|
12
|
+
const metadataBrand = product.metadata?.brand as string | undefined
|
|
13
|
+
const brand = metadataBrand || product.collection?.title || "Valero"
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div id="product-info" className="flex flex-col gap-4 w-full">
|
|
17
|
+
<p className="text-[11px] font-semibold uppercase tracking-[var(--letter-spacing-nav)] text-[var(--color-text-muted)]">
|
|
18
|
+
{brand}
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
<div className="flex items-start justify-between gap-4">
|
|
22
|
+
<h1
|
|
23
|
+
className="font-display text-2xl sm:text-3xl lg:text-4xl text-heading leading-heading flex-1"
|
|
24
|
+
data-testid="product-title"
|
|
25
|
+
>
|
|
26
|
+
{product.title}
|
|
27
|
+
</h1>
|
|
28
|
+
<div className="flex items-center gap-2 flex-shrink-0 pt-1">
|
|
29
|
+
{product.id && <WishlistIcon productId={product.id} />}
|
|
30
|
+
<ShareButton
|
|
31
|
+
productTitle={product.title ?? ""}
|
|
32
|
+
productHandle={product.handle ?? ""}
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<ProductRating product={product} showButton={false} />
|
|
38
|
+
</div>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { Suspense } from "react"
|
|
2
|
+
import SkeletonProductGrid from "@modules/skeletons/templates/skeleton-product-grid"
|
|
3
|
+
import RefinementList from "@modules/store/components/refinement-list"
|
|
4
|
+
import { SortOptions } from "@modules/store/components/refinement-list/sort-products"
|
|
5
|
+
import MobileFilters from "@modules/store/components/mobile-filters"
|
|
6
|
+
import PaginatedProducts from "@modules/store/templates/paginated-products"
|
|
7
|
+
import { HttpTypes } from "@medusajs/types"
|
|
8
|
+
import LocalizedClientLink from "@modules/common/components/localized-client-link"
|
|
9
|
+
|
|
10
|
+
type StorePageProps = {
|
|
11
|
+
sortBy?: SortOptions
|
|
12
|
+
page?: string
|
|
13
|
+
countryCode: string
|
|
14
|
+
collections?: HttpTypes.StoreCollection[]
|
|
15
|
+
collection?: string | string[]
|
|
16
|
+
category?: string | string[]
|
|
17
|
+
gender?: string | string[]
|
|
18
|
+
type?: string | string[]
|
|
19
|
+
material?: string | string[]
|
|
20
|
+
color?: string | string[]
|
|
21
|
+
minPrice?: string
|
|
22
|
+
maxPrice?: string
|
|
23
|
+
genderOptions?: { value: string; label: string }[]
|
|
24
|
+
typeOptions?: { value: string; label: string }[]
|
|
25
|
+
materialOptions?: { value: string; label: string }[]
|
|
26
|
+
colorOptions?: { value: string; label: string }[]
|
|
27
|
+
categoryOptions?: { value: string; label: string }[]
|
|
28
|
+
q?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default function StorePage({
|
|
32
|
+
sortBy,
|
|
33
|
+
page,
|
|
34
|
+
countryCode,
|
|
35
|
+
collections,
|
|
36
|
+
collection,
|
|
37
|
+
category,
|
|
38
|
+
gender,
|
|
39
|
+
type,
|
|
40
|
+
material,
|
|
41
|
+
color,
|
|
42
|
+
minPrice,
|
|
43
|
+
maxPrice,
|
|
44
|
+
genderOptions,
|
|
45
|
+
typeOptions,
|
|
46
|
+
materialOptions,
|
|
47
|
+
colorOptions,
|
|
48
|
+
categoryOptions,
|
|
49
|
+
q,
|
|
50
|
+
}: StorePageProps) {
|
|
51
|
+
const pageNumber = page ? parseInt(page, 10) : 1
|
|
52
|
+
const sort = sortBy || "created_at_desc"
|
|
53
|
+
|
|
54
|
+
const filterProps = {
|
|
55
|
+
sortBy: sort,
|
|
56
|
+
collections,
|
|
57
|
+
collectionValue: collection,
|
|
58
|
+
categoryValue: category,
|
|
59
|
+
categoryOptions,
|
|
60
|
+
genderValue: gender,
|
|
61
|
+
typeValue: type,
|
|
62
|
+
materialValue: material,
|
|
63
|
+
colorValue: color,
|
|
64
|
+
minPrice,
|
|
65
|
+
maxPrice,
|
|
66
|
+
genderOptions,
|
|
67
|
+
typeOptions,
|
|
68
|
+
materialOptions,
|
|
69
|
+
colorOptions,
|
|
70
|
+
q,
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<div className="bg-page-bg min-h-screen">
|
|
75
|
+
{/* Collection banner — Impulse style */}
|
|
76
|
+
<div className="bg-surface-alt border-b border-[var(--color-header-border)]">
|
|
77
|
+
<div
|
|
78
|
+
className="mx-auto px-4 sm:px-6 py-10 md:py-14 text-center"
|
|
79
|
+
style={{ maxWidth: "var(--container-max)" }}
|
|
80
|
+
>
|
|
81
|
+
<nav className="text-xs uppercase tracking-[var(--letter-spacing-nav)] text-[var(--color-text-muted)] mb-4">
|
|
82
|
+
<LocalizedClientLink href="/" className="hover:text-heading">
|
|
83
|
+
Home
|
|
84
|
+
</LocalizedClientLink>
|
|
85
|
+
<span className="mx-2">/</span>
|
|
86
|
+
<span className="text-heading">Shop</span>
|
|
87
|
+
</nav>
|
|
88
|
+
<h1 className="font-display text-3xl md:text-4xl lg:text-5xl text-heading">
|
|
89
|
+
{q ? `Results for “${q}”` : "All products"}
|
|
90
|
+
</h1>
|
|
91
|
+
<p className="mt-3 text-sm text-[var(--color-text-muted)] max-w-lg mx-auto">
|
|
92
|
+
Browse our full collection. Filter by category, price, and more.
|
|
93
|
+
</p>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div
|
|
98
|
+
className="mx-auto px-4 sm:px-6 py-8 lg:py-12"
|
|
99
|
+
style={{ maxWidth: "var(--container-max)" }}
|
|
100
|
+
>
|
|
101
|
+
<div className="flex flex-col lg:flex-row gap-8 lg:gap-12">
|
|
102
|
+
<aside className="hidden lg:block w-64 flex-shrink-0 lg:sticky lg:top-28 lg:self-start lg:max-h-[calc(100vh-8rem)] lg:overflow-y-auto">
|
|
103
|
+
<h2 className="text-xs font-semibold uppercase tracking-[var(--letter-spacing-nav)] text-heading mb-6 pb-2 border-b border-[var(--color-header-border)]">
|
|
104
|
+
Filter
|
|
105
|
+
</h2>
|
|
106
|
+
<RefinementList {...filterProps} />
|
|
107
|
+
</aside>
|
|
108
|
+
|
|
109
|
+
<div className="flex-1 min-w-0">
|
|
110
|
+
<div className="flex items-center justify-between gap-4 mb-6 lg:hidden">
|
|
111
|
+
<MobileFilters {...filterProps} />
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
{q && (
|
|
115
|
+
<div className="mb-6 flex items-center justify-between gap-4 p-4 bg-surface-muted border border-[var(--color-header-border)]">
|
|
116
|
+
<span className="text-sm text-[var(--color-text-muted)]">
|
|
117
|
+
Showing results for <strong className="text-heading">"{q}"</strong>
|
|
118
|
+
</span>
|
|
119
|
+
<LocalizedClientLink
|
|
120
|
+
href="/store"
|
|
121
|
+
className="text-xs uppercase tracking-[var(--letter-spacing-nav)] font-semibold text-heading hover:underline"
|
|
122
|
+
>
|
|
123
|
+
Clear
|
|
124
|
+
</LocalizedClientLink>
|
|
125
|
+
</div>
|
|
126
|
+
)}
|
|
127
|
+
|
|
128
|
+
<Suspense fallback={<SkeletonProductGrid />}>
|
|
129
|
+
<PaginatedProducts
|
|
130
|
+
sortBy={sort}
|
|
131
|
+
page={pageNumber}
|
|
132
|
+
countryCode={countryCode}
|
|
133
|
+
collectionId={
|
|
134
|
+
Array.isArray(collection) ? collection.join(",") : collection
|
|
135
|
+
}
|
|
136
|
+
categoryId={
|
|
137
|
+
Array.isArray(category) ? category.join(",") : category
|
|
138
|
+
}
|
|
139
|
+
gender={Array.isArray(gender) ? gender.join(",") : gender}
|
|
140
|
+
type={Array.isArray(type) ? type.join(",") : type}
|
|
141
|
+
material={Array.isArray(material) ? material.join(",") : material}
|
|
142
|
+
color={Array.isArray(color) ? color.join(",") : color}
|
|
143
|
+
min_price={minPrice}
|
|
144
|
+
max_price={maxPrice}
|
|
145
|
+
q={q}
|
|
146
|
+
filterProps={filterProps}
|
|
147
|
+
/>
|
|
148
|
+
</Suspense>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
)
|
|
154
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use theme.css CSS variables as the source of truth.
|
|
3
|
+
* Kept for tooling that reads JS token files during migration.
|
|
4
|
+
*/
|
|
5
|
+
module.exports = {
|
|
6
|
+
colors: {
|
|
7
|
+
pageBg: "var(--color-page-bg)",
|
|
8
|
+
brand: {
|
|
9
|
+
accent: "var(--color-brand-accent)",
|
|
10
|
+
accentHover: "var(--color-brand-accent-hover)",
|
|
11
|
+
accentLight: "var(--color-brand-accent-light)",
|
|
12
|
+
pink: "var(--color-brand-pink)",
|
|
13
|
+
primary: "var(--color-brand-primary)",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic Tailwind classes mapped to CSS variables in theme.css.
|
|
3
|
+
* Do not hardcode hex values here — edit theme.css instead.
|
|
4
|
+
*/
|
|
5
|
+
export const colorClasses = {
|
|
6
|
+
pageBg: "bg-page-bg",
|
|
7
|
+
surface: "bg-surface",
|
|
8
|
+
surfaceMuted: "bg-surface-muted",
|
|
9
|
+
brandAccent: "bg-brand-accent text-inverse",
|
|
10
|
+
brandAccentText: "text-brand-accent",
|
|
11
|
+
brandAccentBorder: "border-brand-accent",
|
|
12
|
+
brandAccentMuted: "bg-brand-accent-muted",
|
|
13
|
+
heading: "text-heading",
|
|
14
|
+
headingSub: "text-heading-sub",
|
|
15
|
+
body: "text-body",
|
|
16
|
+
muted: "text-muted",
|
|
17
|
+
inverse: "text-inverse",
|
|
18
|
+
footerBg: "bg-brand-footer",
|
|
19
|
+
promoGradient: "bg-promo-gradient",
|
|
20
|
+
cartBorder: "bg-cart-border",
|
|
21
|
+
} as const
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic Tailwind font classes mapped to CSS variables in theme.css.
|
|
3
|
+
* Do not hardcode font families here — edit theme.css instead.
|
|
4
|
+
*/
|
|
5
|
+
export const fontClasses = {
|
|
6
|
+
sans: "font-sans",
|
|
7
|
+
heading: "font-heading",
|
|
8
|
+
display: "font-display",
|
|
9
|
+
quote: "font-quote",
|
|
10
|
+
mono: "font-mono",
|
|
11
|
+
body: "font-sans leading-body tracking-body",
|
|
12
|
+
pageTitle: "font-heading font-bold leading-heading tracking-heading",
|
|
13
|
+
} as const
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Valero theme — Impulse-inspired design tokens.
|
|
3
|
+
* Edit this file to retheme colors, fonts, and spacing.
|
|
4
|
+
*/
|
|
5
|
+
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* Typography */
|
|
9
|
+
--font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
10
|
+
sans-serif;
|
|
11
|
+
--font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
12
|
+
Roboto, sans-serif;
|
|
13
|
+
--font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
|
|
14
|
+
--font-quote: "Libre Baskerville", Georgia, serif;
|
|
15
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
16
|
+
|
|
17
|
+
--font-weight-normal: 400;
|
|
18
|
+
--font-weight-medium: 500;
|
|
19
|
+
--font-weight-semibold: 600;
|
|
20
|
+
--font-weight-bold: 700;
|
|
21
|
+
--font-weight-extrabold: 700;
|
|
22
|
+
|
|
23
|
+
--line-height-body: 1.6;
|
|
24
|
+
--line-height-heading: 1.15;
|
|
25
|
+
--letter-spacing-heading: 0.04em;
|
|
26
|
+
--letter-spacing-body: 0;
|
|
27
|
+
--letter-spacing-nav: 0.12em;
|
|
28
|
+
|
|
29
|
+
/* Surfaces */
|
|
30
|
+
--color-page-bg: #ffffff;
|
|
31
|
+
--color-surface: #ffffff;
|
|
32
|
+
--color-surface-muted: #f7f7f7;
|
|
33
|
+
--color-surface-alt: #f3f3f3;
|
|
34
|
+
--color-hero-fallback: #e8e8e8;
|
|
35
|
+
--color-footer-bg: #111111;
|
|
36
|
+
--color-header-bg: #ffffff;
|
|
37
|
+
--color-header-border: #e8e8e8;
|
|
38
|
+
|
|
39
|
+
/* Brand */
|
|
40
|
+
--color-brand-accent: #111111;
|
|
41
|
+
--color-brand-accent-hover: #333333;
|
|
42
|
+
--color-brand-accent-light: #444444;
|
|
43
|
+
--color-brand-accent-border: #dddddd;
|
|
44
|
+
--color-brand-accent-muted: #f0f0f0;
|
|
45
|
+
--color-brand-accent-rgb: 17, 17, 17;
|
|
46
|
+
|
|
47
|
+
--color-brand-pink: #c41e3a;
|
|
48
|
+
--color-brand-primary: #111111;
|
|
49
|
+
--color-brand-sale: #c41e3a;
|
|
50
|
+
--color-brand-success: #2d6a4f;
|
|
51
|
+
|
|
52
|
+
/* Text */
|
|
53
|
+
--color-text-heading: #111111;
|
|
54
|
+
--color-text-subheading: #333333;
|
|
55
|
+
--color-text-body: #4a4a4a;
|
|
56
|
+
--color-text-muted: #777777;
|
|
57
|
+
--color-text-inverse: #ffffff;
|
|
58
|
+
|
|
59
|
+
/* Navigation & panels */
|
|
60
|
+
--color-nav-active: var(--color-brand-accent);
|
|
61
|
+
--color-nav-active-bg: var(--color-brand-accent-muted);
|
|
62
|
+
--color-cart-panel-bg: var(--color-page-bg);
|
|
63
|
+
--color-border: var(--color-header-border);
|
|
64
|
+
|
|
65
|
+
/* Layout */
|
|
66
|
+
--header-height: 4.5rem;
|
|
67
|
+
--container-max: 1400px;
|
|
68
|
+
|
|
69
|
+
/* Effects */
|
|
70
|
+
--shadow-brand: 0 12px 32px rgba(0, 0, 0, 0.12);
|
|
71
|
+
--shadow-brand-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
|
|
72
|
+
--shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
73
|
+
--gradient-promo: linear-gradient(
|
|
74
|
+
135deg,
|
|
75
|
+
var(--color-brand-accent),
|
|
76
|
+
var(--color-brand-accent-light),
|
|
77
|
+
var(--color-brand-accent)
|
|
78
|
+
);
|
|
79
|
+
--gradient-cart-border: linear-gradient(
|
|
80
|
+
to bottom right,
|
|
81
|
+
var(--color-brand-accent),
|
|
82
|
+
var(--color-brand-accent-light),
|
|
83
|
+
var(--color-brand-accent)
|
|
84
|
+
);
|
|
85
|
+
--gradient-hero: linear-gradient(
|
|
86
|
+
to top,
|
|
87
|
+
rgba(0, 0, 0, 0.55) 0%,
|
|
88
|
+
rgba(0, 0, 0, 0.15) 45%,
|
|
89
|
+
rgba(0, 0, 0, 0) 100%
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
const path = require("path")
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
darkMode: "class",
|
|
5
|
+
presets: [require("@medusajs/ui-preset")],
|
|
6
|
+
content: [
|
|
7
|
+
"./src/app/**/*.{js,ts,jsx,tsx}",
|
|
8
|
+
"./src/pages/**/*.{js,ts,jsx,tsx}",
|
|
9
|
+
"./src/components/**/*.{js,ts,jsx,tsx}",
|
|
10
|
+
"./src/modules/**/*.{js,ts,jsx,tsx}",
|
|
11
|
+
"./src/theme/**/*.{js,ts,jsx,tsx}",
|
|
12
|
+
"./node_modules/@medusajs/ui/dist/**/*.{js,jsx,ts,tsx}",
|
|
13
|
+
],
|
|
14
|
+
theme: {
|
|
15
|
+
extend: {
|
|
16
|
+
transitionProperty: {
|
|
17
|
+
width: "width margin",
|
|
18
|
+
height: "height",
|
|
19
|
+
bg: "background-color",
|
|
20
|
+
display: "display opacity",
|
|
21
|
+
visibility: "visibility",
|
|
22
|
+
padding: "padding-top padding-right padding-bottom padding-left",
|
|
23
|
+
},
|
|
24
|
+
colors: {
|
|
25
|
+
page: {
|
|
26
|
+
bg: "var(--color-page-bg)",
|
|
27
|
+
},
|
|
28
|
+
surface: {
|
|
29
|
+
DEFAULT: "var(--color-surface)",
|
|
30
|
+
muted: "var(--color-surface-muted)",
|
|
31
|
+
},
|
|
32
|
+
hero: {
|
|
33
|
+
fallback: "var(--color-hero-fallback)",
|
|
34
|
+
},
|
|
35
|
+
heading: {
|
|
36
|
+
DEFAULT: "var(--color-text-heading)",
|
|
37
|
+
sub: "var(--color-text-subheading)",
|
|
38
|
+
},
|
|
39
|
+
brand: {
|
|
40
|
+
accent: "var(--color-brand-accent)",
|
|
41
|
+
"accent-hover": "var(--color-brand-accent-hover)",
|
|
42
|
+
"accent-light": "var(--color-brand-accent-light)",
|
|
43
|
+
"accent-border": "var(--color-brand-accent-border)",
|
|
44
|
+
"accent-muted": "var(--color-brand-accent-muted)",
|
|
45
|
+
pink: "var(--color-brand-pink)",
|
|
46
|
+
primary: "var(--color-brand-primary)",
|
|
47
|
+
sale: "var(--color-brand-sale)",
|
|
48
|
+
success: "var(--color-brand-success)",
|
|
49
|
+
footer: "var(--color-footer-bg)",
|
|
50
|
+
},
|
|
51
|
+
body: "var(--color-text-body)",
|
|
52
|
+
muted: "var(--color-text-muted)",
|
|
53
|
+
inverse: "var(--color-text-inverse)",
|
|
54
|
+
grey: {
|
|
55
|
+
0: "#FFFFFF",
|
|
56
|
+
5: "#F9FAFB",
|
|
57
|
+
10: "#F3F4F6",
|
|
58
|
+
20: "#E5E7EB",
|
|
59
|
+
30: "#D1D5DB",
|
|
60
|
+
40: "#9CA3AF",
|
|
61
|
+
50: "#6B7280",
|
|
62
|
+
60: "#4B5563",
|
|
63
|
+
70: "#374151",
|
|
64
|
+
80: "#1F2937",
|
|
65
|
+
90: "#111827",
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
boxShadow: {
|
|
69
|
+
brand: "var(--shadow-brand)",
|
|
70
|
+
"brand-sm": "var(--shadow-brand-sm)",
|
|
71
|
+
},
|
|
72
|
+
backgroundImage: {
|
|
73
|
+
"promo-gradient": "var(--gradient-promo)",
|
|
74
|
+
"cart-border": "var(--gradient-cart-border)",
|
|
75
|
+
},
|
|
76
|
+
borderRadius: {
|
|
77
|
+
none: "0px",
|
|
78
|
+
soft: "2px",
|
|
79
|
+
base: "4px",
|
|
80
|
+
rounded: "8px",
|
|
81
|
+
large: "16px",
|
|
82
|
+
circle: "9999px",
|
|
83
|
+
},
|
|
84
|
+
maxWidth: {
|
|
85
|
+
"8xl": "100rem",
|
|
86
|
+
},
|
|
87
|
+
screens: {
|
|
88
|
+
"2xsmall": "320px",
|
|
89
|
+
xsmall: "512px",
|
|
90
|
+
small: "1024px",
|
|
91
|
+
medium: "1280px",
|
|
92
|
+
large: "1440px",
|
|
93
|
+
xlarge: "1680px",
|
|
94
|
+
"2xlarge": "1920px",
|
|
95
|
+
},
|
|
96
|
+
fontSize: {
|
|
97
|
+
"3xl": "2rem",
|
|
98
|
+
},
|
|
99
|
+
fontFamily: {
|
|
100
|
+
sans: ["var(--font-sans)"],
|
|
101
|
+
heading: ["var(--font-heading)"],
|
|
102
|
+
display: ["var(--font-display)"],
|
|
103
|
+
quote: ["var(--font-quote)"],
|
|
104
|
+
mono: ["var(--font-mono)"],
|
|
105
|
+
},
|
|
106
|
+
fontWeight: {
|
|
107
|
+
normal: "var(--font-weight-normal)",
|
|
108
|
+
medium: "var(--font-weight-medium)",
|
|
109
|
+
semibold: "var(--font-weight-semibold)",
|
|
110
|
+
bold: "var(--font-weight-bold)",
|
|
111
|
+
extrabold: "var(--font-weight-extrabold)",
|
|
112
|
+
},
|
|
113
|
+
lineHeight: {
|
|
114
|
+
body: "var(--line-height-body)",
|
|
115
|
+
heading: "var(--line-height-heading)",
|
|
116
|
+
},
|
|
117
|
+
letterSpacing: {
|
|
118
|
+
body: "var(--letter-spacing-body)",
|
|
119
|
+
heading: "var(--letter-spacing-heading)",
|
|
120
|
+
},
|
|
121
|
+
keyframes: {
|
|
122
|
+
ring: {
|
|
123
|
+
"0%": { transform: "rotate(0deg)" },
|
|
124
|
+
"100%": { transform: "rotate(360deg)" },
|
|
125
|
+
},
|
|
126
|
+
"fade-in-right": {
|
|
127
|
+
"0%": {
|
|
128
|
+
opacity: "0",
|
|
129
|
+
transform: "translateX(10px)",
|
|
130
|
+
},
|
|
131
|
+
"100%": {
|
|
132
|
+
opacity: "1",
|
|
133
|
+
transform: "translateX(0)",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
"fade-in-top": {
|
|
137
|
+
"0%": {
|
|
138
|
+
opacity: "0",
|
|
139
|
+
transform: "translateY(-10px)",
|
|
140
|
+
},
|
|
141
|
+
"100%": {
|
|
142
|
+
opacity: "1",
|
|
143
|
+
transform: "translateY(0)",
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
"fade-out-top": {
|
|
147
|
+
"0%": {
|
|
148
|
+
height: "100%",
|
|
149
|
+
},
|
|
150
|
+
"99%": {
|
|
151
|
+
height: "0",
|
|
152
|
+
},
|
|
153
|
+
"100%": {
|
|
154
|
+
visibility: "hidden",
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
"accordion-slide-up": {
|
|
158
|
+
"0%": {
|
|
159
|
+
height: "var(--radix-accordion-content-height)",
|
|
160
|
+
opacity: "1",
|
|
161
|
+
},
|
|
162
|
+
"100%": {
|
|
163
|
+
height: "0",
|
|
164
|
+
opacity: "0",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
"accordion-slide-down": {
|
|
168
|
+
"0%": {
|
|
169
|
+
"min-height": "0",
|
|
170
|
+
"max-height": "0",
|
|
171
|
+
opacity: "0",
|
|
172
|
+
},
|
|
173
|
+
"100%": {
|
|
174
|
+
"min-height": "var(--radix-accordion-content-height)",
|
|
175
|
+
"max-height": "none",
|
|
176
|
+
opacity: "1",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
enter: {
|
|
180
|
+
"0%": { transform: "scale(0.9)", opacity: 0 },
|
|
181
|
+
"100%": { transform: "scale(1)", opacity: 1 },
|
|
182
|
+
},
|
|
183
|
+
leave: {
|
|
184
|
+
"0%": { transform: "scale(1)", opacity: 1 },
|
|
185
|
+
"100%": { transform: "scale(0.9)", opacity: 0 },
|
|
186
|
+
},
|
|
187
|
+
"slide-in": {
|
|
188
|
+
"0%": { transform: "translateY(-100%)" },
|
|
189
|
+
"100%": { transform: "translateY(0)" },
|
|
190
|
+
},
|
|
191
|
+
shimmer: {
|
|
192
|
+
"0%": { transform: "translateX(-100%)" },
|
|
193
|
+
"50%": { transform: "translateX(100%)" },
|
|
194
|
+
"100%": { transform: "translateX(100%)" },
|
|
195
|
+
},
|
|
196
|
+
marquee: {
|
|
197
|
+
"0%": { transform: "translateX(0%)" },
|
|
198
|
+
"100%": { transform: "translateX(-50%)" },
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
animation: {
|
|
202
|
+
shimmer: "shimmer 4s infinite",
|
|
203
|
+
marquee: "marquee 25s linear infinite",
|
|
204
|
+
ring: "ring 2.2s cubic-bezier(0.5, 0, 0.5, 1) infinite",
|
|
205
|
+
"fade-in-right":
|
|
206
|
+
"fade-in-right 0.3s cubic-bezier(0.5, 0, 0.5, 1) forwards",
|
|
207
|
+
"fade-in-top": "fade-in-top 0.2s cubic-bezier(0.5, 0, 0.5, 1) forwards",
|
|
208
|
+
"fade-out-top":
|
|
209
|
+
"fade-out-top 0.2s cubic-bezier(0.5, 0, 0.5, 1) forwards",
|
|
210
|
+
"accordion-open":
|
|
211
|
+
"accordion-slide-down 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards",
|
|
212
|
+
"accordion-close":
|
|
213
|
+
"accordion-slide-up 300ms cubic-bezier(0.87, 0, 0.13, 1) forwards",
|
|
214
|
+
enter: "enter 200ms ease-out",
|
|
215
|
+
"slide-in": "slide-in 1.2s cubic-bezier(.41,.73,.51,1.02)",
|
|
216
|
+
leave: "leave 150ms ease-in forwards",
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
plugins: [require("tailwindcss-radix")()],
|
|
221
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"jsx": "preserve",
|
|
16
|
+
"incremental": true,
|
|
17
|
+
"baseUrl": "./src",
|
|
18
|
+
"paths": {
|
|
19
|
+
"@core/*": ["../node_modules/@pradip1995/commerce-core/src/*"],
|
|
20
|
+
"@commerce-auth/*": ["../node_modules/@pradip1995/commerce-auth/src/*"],
|
|
21
|
+
"@registry/*": ["../node_modules/@pradip1995/storefront-registry/src/*"],
|
|
22
|
+
"@controllers/*": ["../node_modules/@pradip1995/storefront-controllers/src/*"],
|
|
23
|
+
"@theme/*": ["theme/valero/*"],
|
|
24
|
+
"@modules/*": ["modules/*"]
|
|
25
|
+
},
|
|
26
|
+
"plugins": [{ "name": "next" }]
|
|
27
|
+
},
|
|
28
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
29
|
+
"exclude": ["node_modules", ".next"]
|
|
30
|
+
}
|