storefront-layouts 1.0.3 → 1.0.4
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/dist/components/auth/LoginForm.js +2 -2
- package/dist/components/auth/LoginSheet.js +2 -2
- package/dist/components/auth/login-form-core.js +3 -3
- package/dist/components/auth/login-sheet-header.js +3 -3
- package/dist/components/auth/login-sheet-registry.js +2 -2
- package/dist/components/auth/login-sheet-themes/booking-agenda.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/booking.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/clothing-minimal.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/clothing.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/electronics-grid.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/electronics.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/food-modern.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/food.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/index.js +9 -9
- package/dist/components/auth/login-sheet-themes/motivational-speaker.theme.js +1 -1
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts +2 -2
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.d.ts.map +1 -1
- package/dist/components/auth/login-sheet-themes/theme-input-baselines.js +2 -2
- package/dist/components/auth/login-sheets/StoreLoginSheetShell.d.ts.map +1 -1
- package/dist/components/auth/login-sheets/StoreLoginSheetShell.js +6 -6
- package/dist/components/auth/use-login-submit.js +3 -3
- package/dist/components/cart/InventoryHoldCountdown.js +2 -2
- package/dist/components/categories/category-masonry-grid.js +3 -3
- package/dist/components/checkout/CheckoutFeeLines.js +1 -1
- package/dist/components/checkout/ShippingOptionsPanel.js +3 -3
- package/dist/components/learning/CertificateTemplates.js +2 -2
- package/dist/components/learning/CertificateViewer.js +3 -3
- package/dist/components/learning/MentorshipProgress.d.ts.map +1 -1
- package/dist/components/learning/MentorshipProgress.js +4 -4
- package/dist/components/product/ProductVariationSelectors.js +1 -1
- package/dist/components/rich-text/CategoryDescription.js +2 -2
- package/dist/components/rich-text/ProductDescription.js +2 -2
- package/dist/components/rich-text/RichTextExcerpt.js +1 -1
- package/dist/components/rich-text/SafeRichHtml.d.ts +8 -11
- package/dist/components/rich-text/SafeRichHtml.d.ts.map +1 -1
- package/dist/components/rich-text/SafeRichHtml.js +3 -5
- package/dist/components/shipping/ProductDeliveryInfoSection.d.ts.map +1 -1
- package/dist/components/shipping/ProductDeliveryInfoSection.js +7 -4
- package/dist/components/shipping/ShippingQuoteAddressForm.js +3 -3
- package/dist/components/ui/alert-modal.js +2 -2
- package/dist/components/ui/avatar-image.js +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumbs.js +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/category-tree.js +2 -2
- package/dist/components/ui/checkout-button.d.ts.map +1 -1
- package/dist/components/ui/checkout-button.js +11 -283
- package/dist/components/ui/guest-checkout-modal.js +3 -3
- package/dist/components/ui/image-skeleton.js +2 -2
- package/dist/components/ui/image-with-fallback.d.ts +3 -1
- package/dist/components/ui/image-with-fallback.d.ts.map +1 -1
- package/dist/components/ui/image-with-fallback.js +55 -139
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/limited-time-offer-badge.js +2 -2
- package/dist/components/ui/loading-skeleton-wrapper.js +1 -1
- package/dist/components/ui/modal.js +2 -2
- package/dist/components/ui/otp-input.js +1 -1
- package/dist/components/ui/out-of-stock-overlay.js +1 -1
- package/dist/components/ui/page-animate-wrapper.js +2 -2
- package/dist/components/ui/page-content-loader.js +2 -2
- package/dist/components/ui/page-loader.js +1 -1
- package/dist/components/ui/product-card.d.ts.map +1 -1
- package/dist/components/ui/product-card.js +17 -17
- package/dist/components/ui/product-rating.js +1 -1
- package/dist/components/ui/product-stock-badge.js +2 -2
- package/dist/components/ui/review-form.js +2 -2
- package/dist/components/ui/route-skeleton-loader.js +6 -6
- package/dist/components/ui/sheet.d.ts +2 -1
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +4 -4
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeletons/index.js +5 -5
- package/dist/components/ui/skeletons/product-grid-skeleton.js +1 -1
- package/dist/components/ui/store-logos.d.ts.map +1 -1
- package/dist/components/ui/store-logos.js +4 -4
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/video-player.js +2 -2
- package/dist/editor/alignment-schemas/booking.js +1 -1
- package/dist/editor/alignment-schemas/clothing-minimal.js +1 -1
- package/dist/editor/alignment-schemas/index.js +20 -20
- package/dist/editor/alignment-schemas/lazy-loader.js +1 -1
- package/dist/editor/alignment-schemas/metadata.js +1 -1
- package/dist/editor/alignment-schemas/resolve-canvas-inspector-leaf.js +3 -3
- package/dist/editor/blocks/index.js +3 -3
- package/dist/editor/blocks/migrate-clothing-minimal.js +3 -3
- package/dist/editor/blocks/nav-outline-utils.js +2 -2
- package/dist/editor/blocks/registry.js +1 -1
- package/dist/editor/document/adapter.js +4 -4
- package/dist/editor/document/block-tree.js +1 -1
- package/dist/editor/document/index.js +6 -6
- package/dist/editor/document/validate.js +1 -1
- package/dist/editor/index.js +12 -12
- package/dist/editor/layout-content-loader.js +3 -3
- package/dist/editor/payaza-form/ArrayItemManager.js +2 -2
- package/dist/editor/payaza-form/EditorCanvasPreview.js +5 -5
- package/dist/editor/payaza-form/FieldRenderer.js +17 -17
- package/dist/editor/payaza-form/IframePreviewMessageBridge.js +3 -3
- package/dist/editor/payaza-form/PayazaFormEditor.js +31 -31
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.js +2 -2
- package/dist/editor/payaza-form/SliderArrayEditor.js +3 -3
- package/dist/editor/payaza-form/components/ArrayField.js +1 -1
- package/dist/editor/payaza-form/components/BlockStylesInspector.js +1 -1
- package/dist/editor/payaza-form/components/BlocksField.js +9 -9
- package/dist/editor/payaza-form/components/ButtonField.js +3 -3
- package/dist/editor/payaza-form/components/CanvasGranularInspector.js +11 -11
- package/dist/editor/payaza-form/components/IconField.js +2 -2
- package/dist/editor/payaza-form/components/ImageField.js +1 -1
- package/dist/editor/payaza-form/components/NumberField.js +1 -1
- package/dist/editor/payaza-form/components/RichTextField.js +2 -2
- package/dist/editor/payaza-form/components/SectionField.js +1 -1
- package/dist/editor/payaza-form/components/SectionSchemaInspector.js +3 -3
- package/dist/editor/payaza-form/components/StarRatingField.js +2 -2
- package/dist/editor/payaza-form/components/TextField.js +1 -1
- package/dist/editor/payaza-form/data-merger.js +6 -6
- package/dist/editor/payaza-form/data-transformer.js +3 -3
- package/dist/editor/payaza-form/engine.js +1 -1
- package/dist/editor/payaza-form/examples/custom-widgets.example.js +1 -1
- package/dist/editor/payaza-form/index.js +8 -8
- package/dist/editor/payaza-form/layout-loader.js +2 -2
- package/dist/editor/payaza-form/preview-message-handler.js +3 -3
- package/dist/editor/payaza-form/schema-bridge.js +3 -3
- package/dist/editor/payaza-form/widget-registry.js +1 -1
- package/dist/editor/shared/BlockOutlineTree.js +2 -2
- package/dist/editor/shared/EditorHeader.js +2 -2
- package/dist/editor/shared/EditorNavigator.js +2 -2
- package/dist/editor/shared/IframePreview.js +6 -6
- package/dist/editor/shared/InlineCanvasPreview.js +8 -8
- package/dist/editor/shared/LayoutRenderer.js +1 -1
- package/dist/editor/shared/ResizableSidebar.js +1 -1
- package/dist/editor/shared/index.js +7 -7
- package/dist/hooks/use-analytics.js +3 -3
- package/dist/hooks/use-api.js +1 -1
- package/dist/hooks/use-cart-api.d.ts.map +1 -1
- package/dist/hooks/use-cart-api.js +8 -3
- package/dist/hooks/use-catalog-loader.js +3 -3
- package/dist/hooks/use-catalog-price-range.d.ts +2 -5
- package/dist/hooks/use-catalog-price-range.d.ts.map +1 -1
- package/dist/hooks/use-catalog-price-range.js +20 -5
- package/dist/hooks/use-category-products.d.ts +8 -0
- package/dist/hooks/use-category-products.d.ts.map +1 -0
- package/dist/hooks/use-category-products.js +43 -0
- package/dist/hooks/use-checkout-fees.d.ts +3 -4
- package/dist/hooks/use-checkout-fees.d.ts.map +1 -1
- package/dist/hooks/use-checkout-fees.js +1 -1
- package/dist/hooks/use-content-ready.js +1 -1
- package/dist/hooks/use-featured-products.d.ts +3 -0
- package/dist/hooks/use-featured-products.d.ts.map +1 -0
- package/dist/hooks/use-featured-products.js +25 -0
- package/dist/hooks/use-multi-store-checkout-fees.d.ts +3 -4
- package/dist/hooks/use-multi-store-checkout-fees.d.ts.map +1 -1
- package/dist/hooks/use-multi-store-checkout-fees.js +1 -1
- package/dist/hooks/use-navigation-loading.js +1 -1
- package/dist/hooks/use-payaza-checkout.d.ts +1 -1
- package/dist/hooks/use-payaza-checkout.d.ts.map +1 -1
- package/dist/hooks/use-payaza-checkout.js +9 -3
- package/dist/hooks/use-product-brands.d.ts +5 -0
- package/dist/hooks/use-product-brands.d.ts.map +1 -0
- package/dist/hooks/use-product-brands.js +25 -0
- package/dist/hooks/use-product-by-slug.d.ts +7 -0
- package/dist/hooks/use-product-by-slug.d.ts.map +1 -0
- package/dist/hooks/use-product-by-slug.js +38 -0
- package/dist/hooks/use-product-reviews.d.ts +15 -0
- package/dist/hooks/use-product-reviews.d.ts.map +1 -0
- package/dist/hooks/use-product-reviews.js +75 -0
- package/dist/hooks/use-product-variation-selection.d.ts +2 -8
- package/dist/hooks/use-product-variation-selection.d.ts.map +1 -1
- package/dist/hooks/use-product-variation-selection.js +1 -1
- package/dist/hooks/use-products-api.js +3 -3
- package/dist/hooks/use-shipping-quote.js +2 -2
- package/dist/hooks/use-store-api.js +4 -4
- package/dist/hooks/usePreviewSlideSync.js +1 -1
- package/dist/index.d.ts +62 -74
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +141 -153
- package/dist/layouts/booking/components/BookingHomePage.d.ts.map +1 -1
- package/dist/layouts/booking/components/BookingHomePage.js +68 -74
- package/dist/layouts/booking/components/BookingMultilineHeading.js +1 -1
- package/dist/layouts/booking/components/BookingTestimonialCard.js +2 -2
- package/dist/layouts/booking/components/BookingTestimonialsEmptyState.js +1 -1
- package/dist/layouts/booking/components/booking-footer-defaults.js +2 -2
- package/dist/layouts/booking/index.js +8 -8
- package/dist/layouts/booking/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/booking/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/AboutPage.js +39 -60
- package/dist/layouts/booking/pages/BookPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/BookPage.js +16 -22
- package/dist/layouts/booking/pages/CategoriesPage.js +6 -6
- package/dist/layouts/booking/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/booking/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/CategoryPage.js +17 -26
- package/dist/layouts/booking/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/booking/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/ContactPage.js +5 -12
- package/dist/layouts/booking/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/booking/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/ProductDetailPage.js +203 -150
- package/dist/layouts/booking/pages/ServicesPage.d.ts +1 -1
- package/dist/layouts/booking/pages/ServicesPage.d.ts.map +1 -1
- package/dist/layouts/booking/pages/ServicesPage.js +11 -31
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.js +21 -30
- package/dist/layouts/booking-agenda/index.js +8 -8
- package/dist/layouts/booking-agenda/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/AboutPage.js +11 -14
- package/dist/layouts/booking-agenda/pages/BookPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/BookPage.js +15 -21
- package/dist/layouts/booking-agenda/pages/CategoriesPage.js +5 -5
- package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/CategoryPage.js +12 -18
- package/dist/layouts/booking-agenda/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/ContactPage.js +8 -13
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/ProductDetailPage.js +202 -149
- package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts +1 -1
- package/dist/layouts/booking-agenda/pages/ServicesPage.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/pages/ServicesPage.js +8 -23
- package/dist/layouts/clothing/components/ClothingHomePage.d.ts.map +1 -1
- package/dist/layouts/clothing/components/ClothingHomePage.js +199 -136
- package/dist/layouts/clothing/index.js +7 -7
- package/dist/layouts/clothing/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/AboutPage.js +19 -33
- package/dist/layouts/clothing/pages/CategoriesPage.js +8 -8
- package/dist/layouts/clothing/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/CategoryPage.js +15 -41
- package/dist/layouts/clothing/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ContactPage.js +5 -8
- package/dist/layouts/clothing/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ProductDetailPage.js +256 -167
- package/dist/layouts/clothing/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/clothing/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ProductsPage.js +125 -59
- package/dist/layouts/clothing/payaza-bindings.js +2 -2
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.js +32 -131
- package/dist/layouts/clothing-minimal/components/clothing-minimal-block-render.js +8 -8
- package/dist/layouts/clothing-minimal/index.js +7 -7
- package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/AboutPage.js +37 -61
- package/dist/layouts/clothing-minimal/pages/CategoriesPage.js +7 -7
- package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/CategoryPage.js +13 -18
- package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ContactPage.js +5 -8
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.js +202 -143
- package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductsPage.js +126 -57
- package/dist/layouts/electronics/components/ElectronicsCategoriesPage.js +7 -7
- package/dist/layouts/electronics/components/ElectronicsGridProductCard.js +10 -10
- package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts.map +1 -1
- package/dist/layouts/electronics/components/ElectronicsHomePage.js +29 -31
- package/dist/layouts/electronics/components/ElectronicsPageWrapper.js +4 -4
- package/dist/layouts/electronics/components/ElectronicsProductsPage.d.ts.map +1 -1
- package/dist/layouts/electronics/components/ElectronicsProductsPage.js +81 -23
- package/dist/layouts/electronics/components/ElectronicsStoreFooter.js +2 -2
- package/dist/layouts/electronics/components/ElectronicsStoreHeader.js +6 -6
- package/dist/layouts/electronics/index.js +18 -18
- package/dist/layouts/electronics/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/AboutPage.js +11 -14
- package/dist/layouts/electronics/pages/CategoriesPage.js +1 -1
- package/dist/layouts/electronics/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/CategoryPage.js +14 -20
- package/dist/layouts/electronics/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/ContactPage.js +8 -13
- package/dist/layouts/electronics/pages/HelpCenterPage.js +1 -1
- package/dist/layouts/electronics/pages/PrivacyPolicyPage.js +1 -1
- package/dist/layouts/electronics/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/ProductDetailPage.js +201 -142
- package/dist/layouts/electronics/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/electronics/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/ProductsPage.js +119 -49
- package/dist/layouts/electronics/pages/TermsPage.js +1 -1
- package/dist/layouts/electronics/pages/TrackOrderPage.js +4 -4
- package/dist/layouts/electronics-grid/components/ElectronicsGridProductCard.js +10 -10
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.js +75 -33
- package/dist/layouts/electronics-grid/index.js +14 -14
- package/dist/layouts/electronics-grid/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/AboutPage.js +11 -14
- package/dist/layouts/electronics-grid/pages/CategoriesPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/CategoryPage.js +14 -20
- package/dist/layouts/electronics-grid/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/ContactPage.js +8 -13
- package/dist/layouts/electronics-grid/pages/ElectronicsGridCategoriesPage.js +6 -6
- package/dist/layouts/electronics-grid/pages/HelpCenterPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/PrivacyPolicyPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/ProductDetailPage.js +201 -142
- package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/electronics-grid/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/pages/ProductsPage.js +121 -52
- package/dist/layouts/electronics-grid/pages/TermsPage.js +1 -1
- package/dist/layouts/electronics-grid/pages/TrackOrderPage.js +4 -4
- package/dist/layouts/food/components/FoodHomePage.d.ts.map +1 -1
- package/dist/layouts/food/components/FoodHomePage.js +42 -41
- package/dist/layouts/food/index.js +8 -8
- package/dist/layouts/food/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/food/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/AboutPage.js +44 -45
- package/dist/layouts/food/pages/CategoriesPage.js +6 -6
- package/dist/layouts/food/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/food/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/CategoryPage.js +23 -21
- package/dist/layouts/food/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/food/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/ContactPage.js +5 -7
- package/dist/layouts/food/pages/MenuPage.d.ts +1 -1
- package/dist/layouts/food/pages/MenuPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/MenuPage.js +81 -42
- package/dist/layouts/food/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/food/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/ProductDetailPage.js +209 -171
- package/dist/layouts/food/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/food/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/ProductsPage.js +130 -45
- package/dist/layouts/food-modern/components/FoodHomePageModern.js +10 -10
- package/dist/layouts/food-modern/index.js +8 -8
- package/dist/layouts/food-modern/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/AboutPage.js +11 -14
- package/dist/layouts/food-modern/pages/CategoriesPage.js +5 -5
- package/dist/layouts/food-modern/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/CategoryPage.js +23 -20
- package/dist/layouts/food-modern/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/ContactPage.js +5 -7
- package/dist/layouts/food-modern/pages/MenuPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/MenuPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/MenuPage.js +81 -46
- package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/ProductDetailPage.js +202 -143
- package/dist/layouts/food-modern/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/food-modern/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/ProductsPage.js +117 -33
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.js +32 -23
- package/dist/layouts/motivational-speaker/components/MotivationalSpeakerPageWrapper.js +1 -1
- package/dist/layouts/motivational-speaker/index.js +9 -9
- package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/AboutPage.js +6 -9
- package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/CategoryPage.js +18 -22
- package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ContactPage.js +9 -13
- package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ProductsPage.js +121 -52
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ServiceDetailPage.js +15 -24
- package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/pages/ServicesPage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/pages/ServicesPage.js +8 -23
- package/dist/layouts/motivational-speaker/pages/SubscriptionPage.js +7 -7
- package/dist/layouts/shared/components/BaseStoreLayout.js +9 -9
- package/dist/layouts/shared/components/CartLineQuantityControl.js +1 -1
- package/dist/layouts/shared/components/GenericPageWrapper.js +3 -3
- package/dist/layouts/shared/components/ProductPriceFilterSection.js +4 -4
- package/dist/layouts/shared/components/PromoBanner.d.ts +1 -4
- package/dist/layouts/shared/components/PromoBanner.d.ts.map +1 -1
- package/dist/layouts/shared/components/PromoBanner.js +12 -8
- package/dist/layouts/shared/components/StoreFooter.js +10 -10
- package/dist/layouts/shared/components/StoreHeader.js +7 -7
- package/dist/layouts/shared/components/TestimonialCard.d.ts.map +1 -1
- package/dist/layouts/shared/components/TestimonialCard.js +2 -2
- package/dist/layouts/shared/components/headers/BookingAgendaSidebar.js +2 -2
- package/dist/layouts/shared/components/headers/ClothingMinimalHeader.js +11 -11
- package/dist/layouts/shared/components/headers/FoodModernHeader.js +7 -7
- package/dist/layouts/shared/index.js +22 -22
- package/dist/layouts/shared/pages/AccountPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/AccountPage.js +101 -27
- package/dist/layouts/shared/pages/CartPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/CartPage.js +39 -90
- package/dist/layouts/shared/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/CheckoutPage.js +349 -868
- package/dist/layouts/shared/pages/CookiePolicyPage.js +1 -1
- package/dist/layouts/shared/pages/FeatureDisabledPage.js +1 -1
- package/dist/layouts/shared/pages/HelpCenterPage.js +1 -1
- package/dist/layouts/shared/pages/MaintenancePage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/MaintenancePage.js +2 -3
- package/dist/layouts/shared/pages/PortfolioPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/PortfolioPage.js +2 -2
- package/dist/layouts/shared/pages/PrivacyPolicyPage.js +1 -1
- package/dist/layouts/shared/pages/SizeGuidePage.js +1 -1
- package/dist/layouts/shared/pages/StyleGuidePage.js +3 -3
- package/dist/layouts/shared/pages/TeamPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/TeamPage.js +1 -1
- package/dist/layouts/shared/pages/TermsPage.js +1 -1
- package/dist/layouts/shared/pages/TrackOrderPage.js +4 -4
- package/dist/layouts/shared/pages/WishlistPage.d.ts.map +1 -1
- package/dist/layouts/shared/pages/WishlistPage.js +44 -29
- package/dist/layouts/shared/wrappers/BookingAgendaLayout.d.ts.map +1 -1
- package/dist/layouts/shared/wrappers/BookingAgendaLayout.js +80 -35
- package/dist/layouts/shared/wrappers/ClothingLayout.js +8 -8
- package/dist/layouts/shared/wrappers/ClothingMinimalLayout.js +7 -7
- package/dist/layouts/shared/wrappers/ElectronicsLayout.js +5 -5
- package/dist/layouts/shared/wrappers/FoodModernLayout.js +6 -6
- package/dist/layouts/shared/wrappers/MotivationalLayout.js +9 -9
- package/dist/layouts/shared/wrappers/StandardLayout.js +8 -8
- package/dist/lib/api.d.ts +3 -4
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/api.js +69 -109
- package/dist/lib/auth-context.js +2 -2
- package/dist/lib/content-selectors.d.ts +1 -1
- package/dist/lib/content-selectors.d.ts.map +1 -1
- package/dist/lib/content-selectors.js +8 -0
- package/dist/lib/layout-config-hydration.js +2 -2
- package/dist/lib/loading-context.d.ts.map +1 -1
- package/dist/lib/loading-context.js +11 -21
- package/dist/lib/payaza-checkout.d.ts.map +1 -1
- package/dist/lib/payaza-checkout.js +2 -4
- package/dist/lib/payaza-public-key.d.ts +6 -0
- package/dist/lib/payaza-public-key.d.ts.map +1 -0
- package/dist/lib/payaza-public-key.js +10 -0
- package/dist/lib/rich-html.d.ts +31 -26
- package/dist/lib/rich-html.d.ts.map +1 -1
- package/dist/lib/rich-html.js +1 -0
- package/dist/lib/services/analytics.service.js +1 -1
- package/dist/lib/services/auth.service.js +1 -1
- package/dist/lib/services/booking.service.js +1 -1
- package/dist/lib/services/category.service.js +1 -1
- package/dist/lib/services/checkout.service.d.ts +3 -0
- package/dist/lib/services/checkout.service.d.ts.map +1 -1
- package/dist/lib/services/checkout.service.js +1 -1
- package/dist/lib/services/contact.service.js +1 -1
- package/dist/lib/services/customer.service.js +1 -1
- package/dist/lib/services/fees.service.d.ts +17 -63
- package/dist/lib/services/fees.service.d.ts.map +1 -1
- package/dist/lib/services/fees.service.js +4 -138
- package/dist/lib/services/index.js +13 -13
- package/dist/lib/services/location.service.js +1 -1
- package/dist/lib/services/order.service.js +1 -1
- package/dist/lib/services/payment.service.js +1 -1
- package/dist/lib/services/product.service.d.ts +7 -2
- package/dist/lib/services/product.service.d.ts.map +1 -1
- package/dist/lib/services/product.service.js +13 -1
- package/dist/lib/services/promo.service.js +1 -1
- package/dist/lib/services/review.service.js +1 -1
- package/dist/lib/services/service.service.js +1 -1
- package/dist/lib/services/shipping.service.js +1 -1
- package/dist/lib/services/store.service.js +1 -1
- package/dist/lib/store-config-utils.d.ts +1 -10
- package/dist/lib/store-config-utils.d.ts.map +1 -1
- package/dist/lib/store-config-utils.js +73 -261
- package/dist/lib/store-config.js +1 -1
- package/dist/lib/store-context.d.ts +1 -23
- package/dist/lib/store-context.d.ts.map +1 -1
- package/dist/lib/store-context.js +89 -111
- package/dist/lib/store-types.d.ts +9 -91
- package/dist/lib/store-types.d.ts.map +1 -1
- package/dist/lib/utils/asset-helpers.js +1 -1
- package/dist/lib/utils/catalog-price-bounds.d.ts +16 -6
- package/dist/lib/utils/catalog-price-bounds.d.ts.map +1 -1
- package/dist/lib/utils/catalog-price-bounds.js +58 -14
- package/dist/lib/utils/category-tree.d.ts +9 -0
- package/dist/lib/utils/category-tree.d.ts.map +1 -1
- package/dist/lib/utils/category-tree.js +26 -0
- package/dist/lib/utils/editor-preview.d.ts +5 -0
- package/dist/lib/utils/editor-preview.d.ts.map +1 -1
- package/dist/lib/utils/editor-preview.js +17 -3
- package/dist/lib/utils/fee-calculations.d.ts +5 -1
- package/dist/lib/utils/fee-calculations.d.ts.map +1 -1
- package/dist/lib/utils/fee-calculations.js +28 -31
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +4 -4
- package/dist/lib/utils/product-images.js +1 -1
- package/dist/lib/utils/product-share.js +1 -1
- package/dist/lib/utils/url-helpers.d.ts +6 -0
- package/dist/lib/utils/url-helpers.d.ts.map +1 -1
- package/dist/lib/utils/url-helpers.js +20 -4
- package/dist/preview/LayoutPreview.js +6 -6
- package/dist/preview/PreviewRouter.js +4 -4
- package/dist/preview/canvas/PreviewCanvasEnhancer.js +8 -8
- package/dist/preview/canvas/preview-flush-await.js +1 -1
- package/dist/preview/canvas/preview-isolation.js +1 -1
- package/dist/preview/canvas/preview-route.js +2 -2
- package/dist/preview/index.js +5 -5
- package/dist/styles/index.css +190 -149
- package/package.json +31 -43
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
4
|
import { Minus, Plus } from 'lucide-react';
|
|
5
|
-
import { formatStockLimitMessage, getCartLineStockInfo } from '../../../lib/inventory-utils
|
|
5
|
+
import { formatStockLimitMessage, getCartLineStockInfo } from '../../../lib/inventory-utils';
|
|
6
6
|
function parsePositiveInteger(raw) {
|
|
7
7
|
const trimmed = raw.trim();
|
|
8
8
|
if (!trimmed || !/^\d+$/.test(trimmed))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { StoreHeader } from '../../shared/components/StoreHeader
|
|
4
|
-
import { StoreFooter } from '../../shared/components/StoreFooter
|
|
5
|
-
import { useStore } from '../../../lib/store-context
|
|
3
|
+
import { StoreHeader } from '../../shared/components/StoreHeader';
|
|
4
|
+
import { StoreFooter } from '../../shared/components/StoreFooter';
|
|
5
|
+
import { useStore } from '../../../lib/store-context';
|
|
6
6
|
export function GenericPageWrapper({ children, storeConfig: initialConfig }) {
|
|
7
7
|
const { store } = useStore();
|
|
8
8
|
const storeConfig = store || initialConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useId, useMemo, useState } from 'react';
|
|
4
|
-
import { getCurrencySymbol } from '../../../lib/currency-symbols
|
|
4
|
+
import { getCurrencySymbol } from '../../../lib/currency-symbols';
|
|
5
5
|
function computeStep(max) {
|
|
6
6
|
if (max <= 500)
|
|
7
7
|
return 10;
|
|
@@ -73,7 +73,7 @@ export function ProductPriceFilterSection({ currency, priceRange, onPriceRangeCh
|
|
|
73
73
|
syncDraft(bounds.min, bounds.max);
|
|
74
74
|
onReset();
|
|
75
75
|
};
|
|
76
|
-
return (_jsxs("div", { children: [_jsxs("div", { className: "flex items-center justify-between mb-3", children: [_jsxs("h3", { className: "text-sm font-bold text-gray-900 uppercase tracking-wide", children: ["Price (", currencySymbol, ")"] }), _jsxs("div", { className: "flex items-center gap-3", children: [isFilterActive && (_jsx("button", { type: "button", onClick: handleReset, className: "text-xs text-gray-500 hover:text-gray-800 font-medium transition-colors", children: "Reset" })), _jsx("button", { type: "button", onClick: handleApply, className: "text-sm font-semibold text-gray-900 hover:text-black transition-colors", children: "Apply" })] })] }), _jsxs("div", { className: "relative h-8 flex items-center mb-3", children: [_jsx("div", { className: "absolute left-0 right-0 h-1 rounded-
|
|
76
|
+
return (_jsxs("div", { children: [_jsxs("div", { className: "flex items-center justify-between mb-3", children: [_jsxs("h3", { className: "text-sm font-bold text-gray-900 uppercase tracking-wide", children: ["Price (", currencySymbol, ")"] }), _jsxs("div", { className: "flex items-center gap-3", children: [isFilterActive && (_jsx("button", { type: "button", onClick: handleReset, className: "text-xs text-gray-500 hover:text-gray-800 font-medium transition-colors", children: "Reset" })), _jsx("button", { type: "button", onClick: handleApply, className: "text-sm font-semibold text-gray-900 hover:text-black transition-colors", children: "Apply" })] })] }), _jsxs("div", { className: "relative h-8 flex items-center mb-3", children: [_jsx("div", { className: "absolute left-0 right-0 h-1 rounded-none bg-gray-200" }), _jsx("div", { className: "absolute h-1 rounded-none bg-gray-900", style: {
|
|
77
77
|
left: `${leftPct}%`,
|
|
78
78
|
right: `${100 - rightPct}%`,
|
|
79
79
|
} }), _jsx("input", { type: "range", "aria-label": "Minimum price", min: bounds.min, max: bounds.max, step: step, value: draftMin, onChange: (e) => handleMinSlider(parseInt(e.target.value, 10)), className: `${thumbClass} absolute w-full appearance-none bg-transparent pointer-events-none z-[2]` }), _jsx("input", { type: "range", "aria-label": "Maximum price", min: bounds.min, max: bounds.max, step: step, value: draftMax, onChange: (e) => handleMaxSlider(parseInt(e.target.value, 10)), className: `${thumbClass} absolute w-full appearance-none bg-transparent pointer-events-none z-[2]` })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx("input", { type: "text", inputMode: "numeric", "aria-label": "Minimum price", value: minText, onChange: (e) => setMinText(e.target.value.replace(/[^\d]/g, '')), onBlur: () => {
|
|
@@ -82,13 +82,13 @@ export function ProductPriceFilterSection({ currency, priceRange, onPriceRangeCh
|
|
|
82
82
|
}, onKeyDown: (e) => {
|
|
83
83
|
if (e.key === 'Enter')
|
|
84
84
|
handleApply();
|
|
85
|
-
}, className: "w-full min-w-0 px-3 py-2 text-sm text-gray-900 bg-white border border-gray-
|
|
85
|
+
}, className: "w-full min-w-0 px-3 py-2 text-sm text-gray-900 bg-white border border-gray-900 rounded-none focus:outline-none focus:ring-0 focus:border-black" }), _jsx("span", { className: "text-gray-400 shrink-0 select-none", "aria-hidden": true, children: "\u2013" }), _jsx("input", { type: "text", inputMode: "numeric", "aria-label": "Maximum price", value: maxText, onChange: (e) => setMaxText(e.target.value.replace(/[^\d]/g, '')), onBlur: () => {
|
|
86
86
|
const max = parseAmount(maxText, draftMax);
|
|
87
87
|
syncDraft(draftMin, max);
|
|
88
88
|
}, onKeyDown: (e) => {
|
|
89
89
|
if (e.key === 'Enter')
|
|
90
90
|
handleApply();
|
|
91
|
-
}, className: "w-full min-w-0 px-3 py-2 text-sm text-gray-900 bg-white border border-gray-
|
|
91
|
+
}, className: "w-full min-w-0 px-3 py-2 text-sm text-gray-900 bg-white border border-gray-900 rounded-none focus:outline-none focus:ring-0 focus:border-black" })] }), _jsx("style", { children: `
|
|
92
92
|
.${thumbClass} {
|
|
93
93
|
height: 1.5rem;
|
|
94
94
|
margin: 0;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { PromoBannerSection } from '../../../lib/store-types';
|
|
2
2
|
interface PromoBannerProps {
|
|
3
3
|
config: PromoBannerSection | null | undefined;
|
|
4
|
-
storeSlug?: string;
|
|
5
4
|
layoutStyle?: 'food' | 'electronics' | 'clothing' | 'default';
|
|
6
5
|
className?: string;
|
|
7
|
-
sectionKey?: string;
|
|
8
|
-
page?: string;
|
|
9
6
|
}
|
|
10
|
-
export declare function PromoBanner({ config,
|
|
7
|
+
export declare function PromoBanner({ config, layoutStyle, className }: PromoBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
11
8
|
export {};
|
|
12
9
|
//# sourceMappingURL=PromoBanner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromoBanner.d.ts","sourceRoot":"","sources":["../../../../src/layouts/shared/components/PromoBanner.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAM9D,UAAU,gBAAgB;IACxB,MAAM,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,
|
|
1
|
+
{"version":3,"file":"PromoBanner.d.ts","sourceRoot":"","sources":["../../../../src/layouts/shared/components/PromoBanner.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAM9D,UAAU,gBAAgB;IACxB,MAAM,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,WAAW,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,WAAuB,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CA+D3F"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Link from 'next/link';
|
|
4
|
-
import { Button } from '../../../components/ui/button
|
|
5
|
-
import { cn } from '../../../lib/utils
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export function PromoBanner({ config,
|
|
4
|
+
import { Button } from '../../../components/ui/button';
|
|
5
|
+
import { cn } from '../../../lib/utils';
|
|
6
|
+
import { useStore } from '../../../lib/store-context';
|
|
7
|
+
import { toStoreHref } from '../../../lib/utils/url-helpers';
|
|
8
|
+
export function PromoBanner({ config, layoutStyle = 'default', className }) {
|
|
9
|
+
const { store } = useStore();
|
|
9
10
|
if (!config?.show)
|
|
10
11
|
return null;
|
|
11
12
|
const hasContent = config.image || config.title || config.subtitle || config.buttonText;
|
|
12
13
|
if (!hasContent)
|
|
13
14
|
return null;
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const storeSlug = store?.slug || '';
|
|
16
|
+
const buttonHref = storeSlug
|
|
17
|
+
? toStoreHref(storeSlug, config.buttonLink, '/products')
|
|
18
|
+
: (config.buttonLink || '/products');
|
|
19
|
+
const content = (_jsxs("div", { className: cn('relative w-full overflow-hidden rounded-lg', layoutStyle === 'food' && 'min-h-[400px]', layoutStyle === 'electronics' && 'min-h-[300px]', layoutStyle === 'clothing' && 'min-h-[350px]', 'min-h-[300px]', className), children: [config.image && (_jsx("div", { className: "absolute inset-0 bg-cover bg-center", style: { backgroundImage: `url(${config.image})` } })), _jsxs("div", { className: cn('relative z-10 flex flex-col items-center justify-center p-8 md:p-12 text-center', config.image ? 'bg-black/40' : 'bg-gradient-to-r from-primary/90 to-primary', 'min-h-[300px]'), children: [config.title && (_jsx("h3", { className: "text-3xl md:text-4xl font-bold text-white mb-4", children: config.title })), config.subtitle && (_jsx("p", { className: "text-lg md:text-xl text-white/90 mb-6 max-w-2xl", children: config.subtitle })), config.buttonText && (_jsx(Button, { asChild: true, size: "lg", className: "bg-white text-primary hover:bg-white/90", children: _jsx(Link, { href: buttonHref, children: config.buttonText }) }))] })] }));
|
|
20
|
+
return (_jsx("section", { "data-section": "marketing", className: "py-8 md:py-12 px-4 sm:px-6 lg:px-8", children: content }));
|
|
17
21
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Link from 'next/link';
|
|
4
|
-
import { getCurrentYear } from '../../../utils/date
|
|
4
|
+
import { getCurrentYear } from '../../../utils/date';
|
|
5
5
|
import { Facebook, Twitter, Instagram, Share2 } from 'lucide-react';
|
|
6
|
-
import { DotPattern } from '../../../components/ui/background-patterns
|
|
7
|
-
import { cn } from '../../../lib/utils
|
|
8
|
-
import { getLogoUrl } from '../../../lib/utils/asset-helpers
|
|
9
|
-
import { StoreLogo } from '../../../components/ui/store-logos
|
|
10
|
-
import { useStore } from '../../../lib/store-context
|
|
11
|
-
import { payazaInlineBindingProps } from '../../../preview/canvas/field-key
|
|
12
|
-
import { isEditorPreviewMode } from '../../../lib/utils/editor-preview
|
|
13
|
-
import { resolveStoreLink } from '../../../lib/layout-route-utils
|
|
14
|
-
import { BOOKING_DEFAULT_FOOTER_TAGLINE, resolveBookingFooterMainLinks, resolveBookingFooterSupportLinks, resolveBookingFooterPrimaryColumnTitle, } from '../../booking/components/booking-footer-defaults
|
|
6
|
+
import { DotPattern } from '../../../components/ui/background-patterns';
|
|
7
|
+
import { cn } from '../../../lib/utils';
|
|
8
|
+
import { getLogoUrl } from '../../../lib/utils/asset-helpers';
|
|
9
|
+
import { StoreLogo } from '../../../components/ui/store-logos';
|
|
10
|
+
import { useStore } from '../../../lib/store-context';
|
|
11
|
+
import { payazaInlineBindingProps } from '../../../preview/canvas/field-key';
|
|
12
|
+
import { isEditorPreviewMode } from '../../../lib/utils/editor-preview';
|
|
13
|
+
import { resolveStoreLink } from '../../../lib/layout-route-utils';
|
|
14
|
+
import { BOOKING_DEFAULT_FOOTER_TAGLINE, resolveBookingFooterMainLinks, resolveBookingFooterSupportLinks, resolveBookingFooterPrimaryColumnTitle, } from '../../booking/components/booking-footer-defaults';
|
|
15
15
|
const PAYMENT_METHODS = [
|
|
16
16
|
'Bank Transfer',
|
|
17
17
|
'Visa',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import Link from 'next/link';
|
|
4
|
-
import { Button } from '../../../components/ui/button
|
|
4
|
+
import { Button } from '../../../components/ui/button';
|
|
5
5
|
import { ShoppingCart, Heart, Search, Menu, X, ChevronRight, ChevronDown, Instagram, Twitter, Youtube, Home, Info, Phone, Package, Calendar, BookOpen, GraduationCap, Sparkles, Tag, LayoutGrid } from 'lucide-react';
|
|
6
6
|
// Navigation icon helper
|
|
7
7
|
const getNavIcon = (label) => {
|
|
@@ -30,12 +30,12 @@ const getNavIcon = (label) => {
|
|
|
30
30
|
};
|
|
31
31
|
import { useState, useEffect, useRef } from 'react';
|
|
32
32
|
import { usePathname } from 'next/navigation';
|
|
33
|
-
import { cn, formatStoreDisplayName } from '../../../lib/utils
|
|
34
|
-
import { useAuth } from '../../../lib/auth-context
|
|
35
|
-
import { StoreLogo } from '../../../components/ui/store-logos
|
|
36
|
-
import { useStore } from '../../../lib/store-context
|
|
37
|
-
import { getLogoUrl } from '../../../lib/utils/asset-helpers
|
|
38
|
-
import { AvatarImage } from '../../../components/ui/avatar-image
|
|
33
|
+
import { cn, formatStoreDisplayName } from '../../../lib/utils';
|
|
34
|
+
import { useAuth } from '../../../lib/auth-context';
|
|
35
|
+
import { StoreLogo } from '../../../components/ui/store-logos';
|
|
36
|
+
import { useStore } from '../../../lib/store-context';
|
|
37
|
+
import { getLogoUrl } from '../../../lib/utils/asset-helpers';
|
|
38
|
+
import { AvatarImage } from '../../../components/ui/avatar-image';
|
|
39
39
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
40
40
|
export function StoreHeader({ storeConfig: initialConfig, cartItemCount = 0 }) {
|
|
41
41
|
const { store, wishlist } = useStore();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestimonialCard.d.ts","sourceRoot":"","sources":["../../../../src/layouts/shared/components/TestimonialCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,UAAU,oBAAoB;IAC5B,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"TestimonialCard.d.ts","sourceRoot":"","sources":["../../../../src/layouts/shared/components/TestimonialCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,UAAU,oBAAoB;IAC5B,WAAW,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,oBAAoB,2CA4D/E"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Image from 'next/image';
|
|
4
4
|
import { Star } from 'lucide-react';
|
|
5
|
-
import { cn } from '../../../lib/utils
|
|
5
|
+
import { cn } from '../../../lib/utils';
|
|
6
6
|
export function TestimonialCard({ testimonial, className }) {
|
|
7
7
|
return (_jsxs("div", { "data-section": "testimonials", className: cn('bg-white p-6 md:p-8 rounded-2xl shadow-sm border border-gray-100', 'hover:shadow-lg transition-all duration-300', className), children: [_jsx("div", { className: "flex items-center gap-1 mb-4", children: [...Array(5)].map((_, i) => (_jsx(Star, { className: cn('h-4 w-4 md:h-5 md:w-5', i < testimonial.rating
|
|
8
8
|
? 'fill-yellow-400 text-yellow-400'
|
|
9
|
-
: 'text-gray-300') }, i))) }), _jsxs("div", { className: "mb-6 relative", children: [_jsx("div", { className: "absolute -top-2 -left-2 text-4xl md:text-6xl text-gray-100 font-serif leading-none", children: "\"" }), _jsxs("p", { className: "text-gray-600 italic leading-relaxed relative z-10 text-sm md:text-base font-medium pl-4", children: ["\"", testimonial.quote, "\""] })] }), _jsxs("div", { className: "flex items-center gap-4 pt-6 border-t border-gray-50", children: [testimonial.image ? (_jsx("div", { className: "relative w-12 h-12 md:w-14 md:h-14 rounded-full overflow-hidden ring-4 ring-gray-50 flex-shrink-0", children: _jsx(Image, { src: testimonial.image, alt: testimonial.name, fill: true, className: "object-cover"
|
|
9
|
+
: 'text-gray-300') }, i))) }), _jsxs("div", { className: "mb-6 relative", children: [_jsx("div", { className: "absolute -top-2 -left-2 text-4xl md:text-6xl text-gray-100 font-serif leading-none", children: "\"" }), _jsxs("p", { className: "text-gray-600 italic leading-relaxed relative z-10 text-sm md:text-base font-medium pl-4", children: ["\"", testimonial.quote, "\""] })] }), _jsxs("div", { className: "flex items-center gap-4 pt-6 border-t border-gray-50", children: [testimonial.image ? (_jsx("div", { className: "relative w-12 h-12 md:w-14 md:h-14 rounded-full overflow-hidden ring-4 ring-gray-50 flex-shrink-0", children: _jsx(Image, { src: testimonial.image, alt: testimonial.name, fill: true, className: "object-cover" }) })) : (_jsx("div", { className: "w-12 h-12 md:w-14 md:h-14 rounded-full bg-gray-200 flex items-center justify-center flex-shrink-0", children: _jsx("span", { className: "text-gray-500 font-semibold text-lg", children: testimonial.name.charAt(0).toUpperCase() }) })), _jsxs("div", { children: [_jsx("h4", { className: "font-bold text-gray-900 text-sm md:text-base mb-1", children: testimonial.name }), testimonial.role && (_jsx("p", { className: "text-gray-500 text-xs md:text-sm", children: testimonial.role }))] })] })] }));
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from '../../../../components/ui/button
|
|
3
|
+
import { Button } from '../../../../components/ui/button';
|
|
4
4
|
import { User, Sparkles, X, MoreHorizontal, Calendar, Search, Heart } from 'lucide-react';
|
|
5
5
|
import Link from 'next/link';
|
|
6
6
|
import { useState } from 'react';
|
|
7
|
-
import { getLayoutText, getThemeColor } from '../../../../lib/utils/asset-helpers
|
|
7
|
+
import { getLayoutText, getThemeColor } from '../../../../lib/utils/asset-helpers';
|
|
8
8
|
export function BookingAgendaSidebar({ storeConfig, onBookClick }) {
|
|
9
9
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
10
10
|
const categories = storeConfig.categories || [];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from '../../../../components/ui/button
|
|
4
|
-
import { Sheet } from '../../../../components/ui/sheet
|
|
5
|
-
import { CheckoutButton } from '../../../../components/ui/checkout-button
|
|
6
|
-
import { useStore } from '../../../../lib/store-context
|
|
7
|
-
import { ImageWithFallback } from '../../../../components/ui/image-with-fallback
|
|
3
|
+
import { Button } from '../../../../components/ui/button';
|
|
4
|
+
import { Sheet } from '../../../../components/ui/sheet';
|
|
5
|
+
import { CheckoutButton } from '../../../../components/ui/checkout-button';
|
|
6
|
+
import { useStore } from '../../../../lib/store-context';
|
|
7
|
+
import { ImageWithFallback } from '../../../../components/ui/image-with-fallback';
|
|
8
8
|
import { ShoppingBag, Menu, Search, Trash2, Plus, Minus } from 'lucide-react';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { useState, useEffect } from 'react';
|
|
11
11
|
import { usePathname } from 'next/navigation';
|
|
12
|
-
import { formatCurrency, formatStoreDisplayName } from '../../../../lib/utils
|
|
13
|
-
import { getCartLineImage } from '../../../../lib/product-variation-utils
|
|
14
|
-
import { getLayoutText, getLogoUrl } from '../../../../lib/utils/asset-helpers
|
|
15
|
-
import { StoreLogo } from '../../../../components/ui/store-logos
|
|
16
|
-
import { useAuth } from '../../../../lib/auth-context
|
|
17
|
-
import { AvatarImage } from '../../../../components/ui/avatar-image
|
|
12
|
+
import { formatCurrency, formatStoreDisplayName } from '../../../../lib/utils';
|
|
13
|
+
import { getCartLineImage } from '../../../../lib/product-variation-utils';
|
|
14
|
+
import { getLayoutText, getLogoUrl } from '../../../../lib/utils/asset-helpers';
|
|
15
|
+
import { StoreLogo } from '../../../../components/ui/store-logos';
|
|
16
|
+
import { useAuth } from '../../../../lib/auth-context';
|
|
17
|
+
import { AvatarImage } from '../../../../components/ui/avatar-image';
|
|
18
18
|
import { User } from 'lucide-react';
|
|
19
19
|
export function ClothingMinimalHeader({ storeConfig }) {
|
|
20
20
|
const { cart, removeFromCart, updateCartQuantity, isCartOpen, setIsCartOpen, cartTotal, cartCount } = useStore();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from '../../../../components/ui/button
|
|
4
|
-
import { Modal } from '../../../../components/ui/modal
|
|
5
|
-
import { useToast } from '../../../../components/ui/toast
|
|
3
|
+
import { Button } from '../../../../components/ui/button';
|
|
4
|
+
import { Modal } from '../../../../components/ui/modal';
|
|
5
|
+
import { useToast } from '../../../../components/ui/toast';
|
|
6
6
|
import { Menu as MenuIcon, Search, X, Calendar, Clock, Users, Mail, Phone, CheckCircle, User } from 'lucide-react';
|
|
7
|
-
import { useAuth } from '../../../../lib/auth-context
|
|
7
|
+
import { useAuth } from '../../../../lib/auth-context';
|
|
8
8
|
import { usePathname } from 'next/navigation';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { useState, useEffect } from 'react';
|
|
11
|
-
import { getLayoutText, getLogoUrl } from '../../../../lib/utils/asset-helpers
|
|
12
|
-
import { formatStoreDisplayName } from '../../../../lib/utils
|
|
13
|
-
import { StoreLogo } from '../../../../components/ui/store-logos
|
|
11
|
+
import { getLayoutText, getLogoUrl } from '../../../../lib/utils/asset-helpers';
|
|
12
|
+
import { formatStoreDisplayName } from '../../../../lib/utils';
|
|
13
|
+
import { StoreLogo } from '../../../../components/ui/store-logos';
|
|
14
14
|
export function FoodModernHeader({ storeConfig }) {
|
|
15
15
|
const { addToast } = useToast();
|
|
16
16
|
const { isAuthenticated, openLogin } = useAuth();
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// Shared layout exports
|
|
2
|
-
export { BaseStoreLayout } from './components/BaseStoreLayout
|
|
3
|
-
export { GenericPageWrapper } from './components/GenericPageWrapper
|
|
4
|
-
export { PromoBanner } from './components/PromoBanner
|
|
5
|
-
export { StoreFooter } from './components/StoreFooter
|
|
6
|
-
export { StoreHeader } from './components/StoreHeader
|
|
7
|
-
export { TestimonialCard } from './components/TestimonialCard
|
|
8
|
-
export { AccountPage } from './pages/AccountPage
|
|
9
|
-
export { CartPage } from './pages/CartPage
|
|
10
|
-
export { CheckoutPage } from './pages/CheckoutPage
|
|
11
|
-
export { CookiePolicyPage } from './pages/CookiePolicyPage
|
|
12
|
-
export { FeatureDisabledPage } from './pages/FeatureDisabledPage
|
|
13
|
-
export { HelpCenterPage } from './pages/HelpCenterPage
|
|
14
|
-
export { MaintenancePage } from './pages/MaintenancePage
|
|
15
|
-
export { PortfolioPage } from './pages/PortfolioPage
|
|
16
|
-
export { PrivacyPolicyPage } from './pages/PrivacyPolicyPage
|
|
17
|
-
export { ShippingReturnsPage } from './pages/ShippingReturnsPage
|
|
18
|
-
export { SizeGuidePage } from './pages/SizeGuidePage
|
|
19
|
-
export { StyleGuidePage } from './pages/StyleGuidePage
|
|
20
|
-
export { TeamPage } from './pages/TeamPage
|
|
21
|
-
export { TermsPage } from './pages/TermsPage
|
|
22
|
-
export { TrackOrderPage } from './pages/TrackOrderPage
|
|
23
|
-
export { WishlistPage } from './pages/WishlistPage
|
|
2
|
+
export { BaseStoreLayout } from './components/BaseStoreLayout';
|
|
3
|
+
export { GenericPageWrapper } from './components/GenericPageWrapper';
|
|
4
|
+
export { PromoBanner } from './components/PromoBanner';
|
|
5
|
+
export { StoreFooter } from './components/StoreFooter';
|
|
6
|
+
export { StoreHeader } from './components/StoreHeader';
|
|
7
|
+
export { TestimonialCard } from './components/TestimonialCard';
|
|
8
|
+
export { AccountPage } from './pages/AccountPage';
|
|
9
|
+
export { CartPage } from './pages/CartPage';
|
|
10
|
+
export { CheckoutPage } from './pages/CheckoutPage';
|
|
11
|
+
export { CookiePolicyPage } from './pages/CookiePolicyPage';
|
|
12
|
+
export { FeatureDisabledPage } from './pages/FeatureDisabledPage';
|
|
13
|
+
export { HelpCenterPage } from './pages/HelpCenterPage';
|
|
14
|
+
export { MaintenancePage } from './pages/MaintenancePage';
|
|
15
|
+
export { PortfolioPage } from './pages/PortfolioPage';
|
|
16
|
+
export { PrivacyPolicyPage } from './pages/PrivacyPolicyPage';
|
|
17
|
+
export { ShippingReturnsPage } from './pages/ShippingReturnsPage';
|
|
18
|
+
export { SizeGuidePage } from './pages/SizeGuidePage';
|
|
19
|
+
export { StyleGuidePage } from './pages/StyleGuidePage';
|
|
20
|
+
export { TeamPage } from './pages/TeamPage';
|
|
21
|
+
export { TermsPage } from './pages/TermsPage';
|
|
22
|
+
export { TrackOrderPage } from './pages/TrackOrderPage';
|
|
23
|
+
export { WishlistPage } from './pages/WishlistPage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountPage.d.ts","sourceRoot":"","sources":["../../../../src/layouts/shared/pages/AccountPage.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountPage.d.ts","sourceRoot":"","sources":["../../../../src/layouts/shared/pages/AccountPage.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA6ChD,UAAU,gBAAgB;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAAE,WAAW,EAAE,EAAE,gBAAgB,2CAq+C5D"}
|