payaza-storefront-layouts 1.0.26 → 1.0.33
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/ui/alert-modal.d.ts +20 -0
- package/dist/components/ui/alert-modal.d.ts.map +1 -0
- package/dist/components/ui/alert-modal.js +59 -0
- package/dist/components/ui/dynamic-icon.d.ts +11 -0
- package/dist/components/ui/dynamic-icon.d.ts.map +1 -0
- package/dist/components/ui/dynamic-icon.js +77 -0
- package/dist/editor/alignment-schemas/booking-agenda.d.ts +3 -0
- package/dist/editor/alignment-schemas/booking-agenda.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/booking-agenda.js +109 -0
- package/dist/editor/alignment-schemas/booking.d.ts +3 -0
- package/dist/editor/alignment-schemas/booking.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/booking.js +211 -0
- package/dist/editor/alignment-schemas/clothing-minimal.d.ts +3 -0
- package/dist/editor/alignment-schemas/clothing-minimal.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/clothing-minimal.js +214 -0
- package/dist/editor/alignment-schemas/clothing.d.ts +3 -0
- package/dist/editor/alignment-schemas/clothing.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/clothing.js +419 -0
- package/dist/editor/alignment-schemas/electronics-grid.d.ts +3 -0
- package/dist/editor/alignment-schemas/electronics-grid.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/electronics-grid.js +75 -0
- package/dist/editor/alignment-schemas/electronics.d.ts +3 -0
- package/dist/editor/alignment-schemas/electronics.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/electronics.js +120 -0
- package/dist/editor/alignment-schemas/food-modern.d.ts +3 -0
- package/dist/editor/alignment-schemas/food-modern.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/food-modern.js +166 -0
- package/dist/editor/alignment-schemas/food.d.ts +3 -0
- package/dist/editor/alignment-schemas/food.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/food.js +276 -0
- package/dist/editor/alignment-schemas/index.d.ts +15 -0
- package/dist/editor/alignment-schemas/index.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/index.js +50 -0
- package/dist/editor/alignment-schemas/metadata.d.ts +23 -0
- package/dist/editor/alignment-schemas/metadata.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/metadata.js +212 -0
- package/dist/editor/alignment-schemas/motivational-speaker.d.ts +3 -0
- package/dist/editor/alignment-schemas/motivational-speaker.d.ts.map +1 -0
- package/dist/editor/alignment-schemas/motivational-speaker.js +137 -0
- package/dist/editor/alignment-schemas/types.d.ts +22 -0
- package/dist/editor/alignment-schemas/types.d.ts.map +1 -0
- package/dist/editor/index.d.ts +10 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +17 -0
- package/dist/editor/payaza-form/ArrayItemManager.d.ts +15 -0
- package/dist/editor/payaza-form/ArrayItemManager.d.ts.map +1 -0
- package/dist/editor/payaza-form/ArrayItemManager.js +58 -0
- package/dist/editor/payaza-form/FieldRenderer.d.ts +14 -0
- package/dist/editor/payaza-form/FieldRenderer.d.ts.map +1 -0
- package/dist/editor/payaza-form/FieldRenderer.js +135 -0
- package/dist/editor/payaza-form/PayazaFormEditor.d.ts +12 -0
- package/dist/editor/payaza-form/PayazaFormEditor.d.ts.map +1 -0
- package/dist/editor/payaza-form/PayazaFormEditor.js +284 -0
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.d.ts +6 -0
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.d.ts.map +1 -0
- package/dist/editor/payaza-form/PayazaFormEditorFullPage.js +6 -0
- package/dist/editor/payaza-form/components/ArrayField.d.ts +17 -0
- package/dist/editor/payaza-form/components/ArrayField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ArrayField.js +18 -0
- package/dist/editor/payaza-form/components/ButtonField.d.ts +15 -0
- package/dist/editor/payaza-form/components/ButtonField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ButtonField.js +12 -0
- package/dist/editor/payaza-form/components/IconField.d.ts +10 -0
- package/dist/editor/payaza-form/components/IconField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/IconField.js +20 -0
- package/dist/editor/payaza-form/components/ImageField.d.ts +10 -0
- package/dist/editor/payaza-form/components/ImageField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ImageField.js +10 -0
- package/dist/editor/payaza-form/components/NumberField.d.ts +12 -0
- package/dist/editor/payaza-form/components/NumberField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/NumberField.js +20 -0
- package/dist/editor/payaza-form/components/ObjectField.d.ts +8 -0
- package/dist/editor/payaza-form/components/ObjectField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ObjectField.js +4 -0
- package/dist/editor/payaza-form/components/SectionField.d.ts +10 -0
- package/dist/editor/payaza-form/components/SectionField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/SectionField.js +27 -0
- package/dist/editor/payaza-form/components/SegmentedControlField.d.ts +13 -0
- package/dist/editor/payaza-form/components/SegmentedControlField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/SegmentedControlField.js +7 -0
- package/dist/editor/payaza-form/components/TextField.d.ts +10 -0
- package/dist/editor/payaza-form/components/TextField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/TextField.js +6 -0
- package/dist/editor/payaza-form/components/TextareaField.d.ts +11 -0
- package/dist/editor/payaza-form/components/TextareaField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/TextareaField.js +5 -0
- package/dist/editor/payaza-form/components/ToggleField.d.ts +9 -0
- package/dist/editor/payaza-form/components/ToggleField.d.ts.map +1 -0
- package/dist/editor/payaza-form/components/ToggleField.js +6 -0
- package/dist/editor/payaza-form/data-merger.d.ts +12 -0
- package/dist/editor/payaza-form/data-merger.d.ts.map +1 -0
- package/dist/editor/payaza-form/data-merger.js +419 -0
- package/dist/editor/payaza-form/data-transformer.d.ts +24 -0
- package/dist/editor/payaza-form/data-transformer.d.ts.map +1 -0
- package/dist/editor/payaza-form/data-transformer.js +213 -0
- package/dist/editor/payaza-form/engine.d.ts +65 -0
- package/dist/editor/payaza-form/engine.d.ts.map +1 -0
- package/dist/editor/payaza-form/engine.js +134 -0
- package/dist/editor/payaza-form/examples/custom-widgets.example.d.ts +8 -0
- package/dist/editor/payaza-form/examples/custom-widgets.example.d.ts.map +1 -0
- package/dist/editor/payaza-form/examples/custom-widgets.example.js +51 -0
- package/dist/editor/payaza-form/index.d.ts +9 -0
- package/dist/editor/payaza-form/index.d.ts.map +1 -0
- package/dist/editor/payaza-form/index.js +6 -0
- package/dist/editor/payaza-form/layout-loader.d.ts +12 -0
- package/dist/editor/payaza-form/layout-loader.d.ts.map +1 -0
- package/dist/editor/payaza-form/layout-loader.js +47 -0
- package/dist/editor/payaza-form/schema-bridge.d.ts +11 -0
- package/dist/editor/payaza-form/schema-bridge.d.ts.map +1 -0
- package/dist/editor/payaza-form/schema-bridge.js +76 -0
- package/dist/editor/payaza-form/widget-registry.d.ts +94 -0
- package/dist/editor/payaza-form/widget-registry.d.ts.map +1 -0
- package/dist/editor/payaza-form/widget-registry.js +101 -0
- package/dist/editor/shared/EditorHeader.d.ts +21 -0
- package/dist/editor/shared/EditorHeader.d.ts.map +1 -0
- package/dist/editor/shared/EditorHeader.js +82 -0
- package/dist/editor/shared/IframePreview.d.ts +12 -0
- package/dist/editor/shared/IframePreview.d.ts.map +1 -0
- package/dist/editor/shared/IframePreview.js +84 -0
- package/dist/editor/shared/LayoutRenderer.d.ts +11 -0
- package/dist/editor/shared/LayoutRenderer.d.ts.map +1 -0
- package/dist/editor/shared/LayoutRenderer.js +7 -0
- package/dist/editor/shared/PageTabs.d.ts +13 -0
- package/dist/editor/shared/PageTabs.d.ts.map +1 -0
- package/dist/editor/shared/PageTabs.js +6 -0
- package/dist/editor/shared/ResizableSidebar.d.ts +12 -0
- package/dist/editor/shared/ResizableSidebar.d.ts.map +1 -0
- package/dist/editor/shared/ResizableSidebar.js +35 -0
- package/dist/editor/shared/index.d.ts +6 -0
- package/dist/editor/shared/index.d.ts.map +1 -0
- package/dist/editor/shared/index.js +5 -0
- package/dist/editor/types.d.ts +86 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/editor/types.js +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/layouts/booking/components/BookingHomePage.d.ts +1 -1
- package/dist/layouts/booking/components/BookingHomePage.d.ts.map +1 -1
- package/dist/layouts/booking/components/BookingHomePage.js +4 -1
- 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 +4 -1
- 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 +4 -1
- 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 +4 -1
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts +1 -1
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.d.ts.map +1 -1
- package/dist/layouts/booking-agenda/components/BookingHomePageAgenda.js +4 -1
- package/dist/layouts/clothing/components/ClothingHomePage.d.ts +1 -1
- package/dist/layouts/clothing/components/ClothingHomePage.d.ts.map +1 -1
- package/dist/layouts/clothing/components/ClothingHomePage.js +20 -6
- 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 +28 -32
- package/dist/layouts/clothing/pages/CategoriesPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/CategoriesPage.js +10 -4
- package/dist/layouts/clothing/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/CategoryPage.js +3 -2
- 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 +12 -6
- package/dist/layouts/clothing/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ProductDetailPage.js +4 -3
- package/dist/layouts/clothing/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/clothing/pages/ProductsPage.js +13 -20
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts +1 -1
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/components/ClothingHomePageMinimal.js +11 -5
- package/dist/layouts/clothing-minimal/pages/AboutPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/AboutPage.js +6 -7
- package/dist/layouts/clothing-minimal/pages/CategoriesPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/CategoriesPage.js +5 -4
- package/dist/layouts/clothing-minimal/pages/CategoryPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/CategoryPage.js +4 -3
- package/dist/layouts/clothing-minimal/pages/ContactPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ContactPage.js +2 -4
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductDetailPage.js +4 -3
- package/dist/layouts/clothing-minimal/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/clothing-minimal/pages/ProductsPage.js +3 -3
- package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts +1 -1
- package/dist/layouts/electronics/components/ElectronicsHomePage.d.ts.map +1 -1
- package/dist/layouts/electronics/components/ElectronicsHomePage.js +3 -2
- 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 +4 -1
- 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 +4 -1
- package/dist/layouts/electronics/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/electronics/pages/ProductsPage.js +3 -2
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.d.ts +1 -1
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.d.ts.map +1 -1
- package/dist/layouts/electronics-grid/components/ElectronicsHomePageGrid.js +3 -2
- package/dist/layouts/food/components/FoodHomePage.d.ts +1 -1
- package/dist/layouts/food/components/FoodHomePage.d.ts.map +1 -1
- package/dist/layouts/food/components/FoodHomePage.js +3 -2
- 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 +4 -1
- 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 +4 -1
- package/dist/layouts/food/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/food/pages/ProductsPage.js +3 -2
- package/dist/layouts/food-modern/components/FoodHomePageModern.d.ts +1 -1
- package/dist/layouts/food-modern/components/FoodHomePageModern.d.ts.map +1 -1
- package/dist/layouts/food-modern/components/FoodHomePageModern.js +3 -2
- 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 +4 -1
- package/dist/layouts/food-modern/pages/CategoriesPage.d.ts +4 -1
- package/dist/layouts/food-modern/pages/CategoriesPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/CategoriesPage.js +4 -1
- 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 +3 -2
- 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 +4 -1
- 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 +4 -1
- 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 +3 -2
- package/dist/layouts/food-modern/pages/ProductsPage.d.ts.map +1 -1
- package/dist/layouts/food-modern/pages/ProductsPage.js +4 -3
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts +1 -1
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.d.ts.map +1 -1
- package/dist/layouts/motivational-speaker/components/MotivationalHomePage.js +7 -2
- package/dist/layouts/shared/components/BaseStoreLayout.d.ts +1 -1
- package/dist/layouts/shared/components/BaseStoreLayout.d.ts.map +1 -1
- package/dist/layouts/shared/components/BaseStoreLayout.js +3 -2
- package/dist/layouts/shared/components/GenericPageWrapper.d.ts +1 -1
- package/dist/layouts/shared/components/GenericPageWrapper.d.ts.map +1 -1
- package/dist/layouts/shared/components/GenericPageWrapper.js +4 -1
- package/dist/layouts/shared/components/PromoBanner.d.ts.map +1 -1
- package/dist/layouts/shared/components/StoreFooter.d.ts +1 -1
- package/dist/layouts/shared/components/StoreFooter.d.ts.map +1 -1
- package/dist/layouts/shared/components/StoreFooter.js +4 -1
- package/dist/layouts/shared/components/StoreHeader.d.ts +1 -1
- package/dist/layouts/shared/components/StoreHeader.d.ts.map +1 -1
- package/dist/layouts/shared/components/StoreHeader.js +3 -2
- package/dist/lib/alignment-schemas.d.ts +51 -0
- package/dist/lib/alignment-schemas.d.ts.map +1 -0
- package/dist/lib/alignment-schemas.js +625 -0
- package/dist/lib/preview-data.d.ts.map +1 -1
- package/dist/lib/preview-data.js +52 -9
- package/dist/lib/store-context.d.ts.map +1 -1
- package/dist/lib/store-context.js +3 -0
- package/dist/lib/utils/asset-helpers.d.ts.map +1 -1
- package/dist/lib/utils/asset-helpers.js +71 -55
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +6 -0
- package/dist/preview/LayoutPreview.d.ts.map +1 -1
- package/dist/preview/LayoutPreview.js +2 -2
- package/dist/preview/PreviewRouter.d.ts +1 -1
- package/dist/preview/PreviewRouter.d.ts.map +1 -1
- package/dist/preview/PreviewRouter.js +9 -13
- package/dist/styles/index.css +752 -0
- package/package.json +48 -2
- package/dist/requirements/booking-agenda-requirements.json +0 -427
- package/dist/requirements/booking-requirements.json +0 -464
- package/dist/requirements/clothing-minimal-requirements.json +0 -373
- package/dist/requirements/clothing-requirements.json +0 -511
- package/dist/requirements/electronics-grid-requirements.json +0 -272
- package/dist/requirements/electronics-requirements.json +0 -407
- package/dist/requirements/food-modern-requirements.json +0 -494
- package/dist/requirements/food-requirements.json +0 -603
- package/dist/requirements/motivational-speaker-requirements.json +0 -541
- package/dist/requirements/requirements-map.d.ts +0 -9
- package/dist/requirements/requirements-map.d.ts.map +0 -1
- package/dist/requirements/requirements-map.js +0 -37
- package/dist/requirements/types.d.ts +0 -49
- package/dist/requirements/types.d.ts.map +0 -1
- /package/dist/{requirements → editor/alignment-schemas}/types.js +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AlertType = 'success' | 'error' | 'info' | 'warning';
|
|
3
|
+
interface AlertOptions {
|
|
4
|
+
title?: string;
|
|
5
|
+
confirmText?: string;
|
|
6
|
+
cancelText?: string;
|
|
7
|
+
onConfirm?: () => void;
|
|
8
|
+
onCancel?: () => void;
|
|
9
|
+
showCancel?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface AlertModalContextType {
|
|
12
|
+
showAlert: (message: string, type?: AlertType, options?: AlertOptions) => void;
|
|
13
|
+
hideAlert: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function AlertModalProvider({ children }: {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function useAlertModal(): AlertModalContextType;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=alert-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-modal.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-modal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAYhF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAEjE,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AASD,UAAU,qBAAqB;IAC7B,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/E,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CA6C7E;AAED,wBAAgB,aAAa,0BAM5B"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useState, useCallback } from 'react';
|
|
4
|
+
import { CheckCircle2, AlertCircle, Info, AlertTriangle } from 'lucide-react';
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
|
+
import { Button } from './button';
|
|
7
|
+
const AlertModalContext = createContext(undefined);
|
|
8
|
+
export function AlertModalProvider({ children }) {
|
|
9
|
+
const [alert, setAlert] = useState({
|
|
10
|
+
isOpen: false,
|
|
11
|
+
message: '',
|
|
12
|
+
type: 'info',
|
|
13
|
+
options: {}
|
|
14
|
+
});
|
|
15
|
+
const showAlert = useCallback((message, type = 'info', options = {}) => {
|
|
16
|
+
setAlert({
|
|
17
|
+
isOpen: true,
|
|
18
|
+
message,
|
|
19
|
+
type,
|
|
20
|
+
options
|
|
21
|
+
});
|
|
22
|
+
}, []);
|
|
23
|
+
const hideAlert = useCallback(() => {
|
|
24
|
+
setAlert(prev => ({ ...prev, isOpen: false }));
|
|
25
|
+
}, []);
|
|
26
|
+
const handleConfirm = () => {
|
|
27
|
+
alert.options.onConfirm?.();
|
|
28
|
+
hideAlert();
|
|
29
|
+
};
|
|
30
|
+
const handleCancel = () => {
|
|
31
|
+
alert.options.onCancel?.();
|
|
32
|
+
hideAlert();
|
|
33
|
+
};
|
|
34
|
+
return (_jsxs(AlertModalContext.Provider, { value: { showAlert, hideAlert }, children: [children, _jsx(AlertModalContainer, { isOpen: alert.isOpen, message: alert.message, type: alert.type, options: alert.options, onConfirm: handleConfirm, onCancel: handleCancel, onClose: hideAlert })] }));
|
|
35
|
+
}
|
|
36
|
+
export function useAlertModal() {
|
|
37
|
+
const context = useContext(AlertModalContext);
|
|
38
|
+
if (context === undefined) {
|
|
39
|
+
throw new Error('useAlertModal must be used within an AlertModalProvider');
|
|
40
|
+
}
|
|
41
|
+
return context;
|
|
42
|
+
}
|
|
43
|
+
function AlertModalContainer({ isOpen, message, type, options, onConfirm, onCancel, onClose }) {
|
|
44
|
+
if (!isOpen)
|
|
45
|
+
return null;
|
|
46
|
+
const icons = {
|
|
47
|
+
success: _jsx(CheckCircle2, { className: "h-10 w-10 text-green-500" }),
|
|
48
|
+
error: _jsx(AlertCircle, { className: "h-10 w-10 text-red-500" }),
|
|
49
|
+
warning: _jsx(AlertTriangle, { className: "h-10 w-10 text-amber-500" }),
|
|
50
|
+
info: _jsx(Info, { className: "h-10 w-10 text-blue-500" })
|
|
51
|
+
};
|
|
52
|
+
const colors = {
|
|
53
|
+
success: "bg-green-50 border-green-100",
|
|
54
|
+
error: "bg-red-50 border-red-100",
|
|
55
|
+
warning: "bg-amber-50 border-amber-100",
|
|
56
|
+
info: "bg-blue-50 border-blue-100"
|
|
57
|
+
};
|
|
58
|
+
return (_jsxs("div", { className: "fixed inset-0 z-[200] flex items-center justify-center p-4", children: [_jsx("div", { className: "absolute inset-0 bg-slate-900/40 backdrop-blur-md animate-in fade-in duration-300", onClick: onClose }), _jsxs("div", { className: "relative bg-white rounded-[24px] shadow-2xl w-full max-w-sm overflow-hidden animate-in zoom-in-95 slide-in-from-bottom-4 duration-300 border border-slate-100", children: [_jsxs("div", { className: "p-8 flex flex-col items-center text-center", children: [_jsx("div", { className: cn("w-20 h-20 rounded-full flex items-center justify-center mb-6 animate-in zoom-in-50 duration-500 delay-150", colors[type]), children: icons[type] }), _jsx("h3", { className: "text-xl font-extrabold text-slate-900 mb-2 leading-tight", children: options.title || (type.charAt(0).toUpperCase() + type.slice(1)) }), _jsx("p", { className: "text-slate-500 text-sm font-medium leading-relaxed px-2", children: message })] }), _jsxs("div", { className: "px-8 pb-8 flex flex-col gap-3", children: [_jsx(Button, { onClick: onConfirm, className: cn("w-full h-12 rounded-xl font-bold text-sm uppercase tracking-wider transition-all active:scale-[0.98]", type === 'success' && "bg-green-600 hover:bg-green-700 text-white shadow-lg shadow-green-100", type === 'error' && "bg-red-600 hover:bg-red-700 text-white shadow-lg shadow-red-100", type === 'warning' && "bg-amber-600 hover:bg-amber-700 text-white shadow-lg shadow-amber-100", type === 'info' && "bg-slate-900 hover:bg-slate-800 text-white shadow-lg shadow-slate-200"), children: options.confirmText || 'Understand' }), options.showCancel && (_jsx(Button, { variant: "ghost", onClick: onCancel, className: "w-full h-12 rounded-xl font-bold text-sm uppercase tracking-wider text-slate-400 hover:text-slate-600 hover:bg-slate-50", children: options.cancelText || 'Cancel' }))] })] })] }));
|
|
59
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LucideProps } from 'lucide-react';
|
|
3
|
+
export declare const ICON_MAP: Record<string, React.FC<LucideProps>>;
|
|
4
|
+
export declare const COMMON_ICON_NAMES: string[];
|
|
5
|
+
interface DynamicIconProps extends LucideProps {
|
|
6
|
+
name: string;
|
|
7
|
+
fallback?: React.FC<LucideProps>;
|
|
8
|
+
}
|
|
9
|
+
export declare const DynamicIcon: React.FC<DynamicIconProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=dynamic-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamic-icon.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dynamic-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAkBL,WAAW,EAiDZ,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAkE1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAA0D,CAAC;AAEzF,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAYlD,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Truck, RefreshCw, ShieldCheck, Heart, ShoppingCart, Star, Clock, MapPin, Mail, Phone, Tag, Package, CreditCard, Globe, Zap, Gift, HelpCircle, ArrowRight, Search, Menu, Plus, Minus, Trash2, ChevronLeft, ChevronRight, ChevronDown, ChevronUp, Check, RotateCcw, SlidersHorizontal, ArrowUpRight, Users, Award, Leaf, LayoutGrid, Utensils, ChefHat, Smartphone, Laptop, Headphones, Watch, Camera, Cpu, Battery, Wifi, Play, FileText, Lock, Quote, Youtube, Instagram, Twitter, Facebook, BookOpen, Sparkles, Flame, Wine, Coffee, CheckCircle, ThumbsUp, User, Ruler, Share2, Info, Calendar } from 'lucide-react';
|
|
3
|
+
export const ICON_MAP = {
|
|
4
|
+
Truck,
|
|
5
|
+
RefreshCw,
|
|
6
|
+
ShieldCheck,
|
|
7
|
+
Shield: ShieldCheck,
|
|
8
|
+
Heart,
|
|
9
|
+
ShoppingCart,
|
|
10
|
+
Star,
|
|
11
|
+
Clock,
|
|
12
|
+
MapPin,
|
|
13
|
+
Mail,
|
|
14
|
+
Phone,
|
|
15
|
+
Tag,
|
|
16
|
+
Package,
|
|
17
|
+
CreditCard,
|
|
18
|
+
Globe,
|
|
19
|
+
Zap,
|
|
20
|
+
Gift,
|
|
21
|
+
ArrowRight,
|
|
22
|
+
Search,
|
|
23
|
+
Menu,
|
|
24
|
+
Plus,
|
|
25
|
+
Minus,
|
|
26
|
+
Trash2,
|
|
27
|
+
ChevronLeft,
|
|
28
|
+
ChevronRight,
|
|
29
|
+
ChevronDown,
|
|
30
|
+
ChevronUp,
|
|
31
|
+
Check,
|
|
32
|
+
RotateCcw,
|
|
33
|
+
SlidersHorizontal,
|
|
34
|
+
ArrowUpRight,
|
|
35
|
+
Users,
|
|
36
|
+
Award,
|
|
37
|
+
Leaf,
|
|
38
|
+
LayoutGrid,
|
|
39
|
+
Utensils,
|
|
40
|
+
ChefHat,
|
|
41
|
+
Smartphone,
|
|
42
|
+
Laptop,
|
|
43
|
+
Headphones,
|
|
44
|
+
Watch,
|
|
45
|
+
Camera,
|
|
46
|
+
Cpu,
|
|
47
|
+
Battery,
|
|
48
|
+
Wifi,
|
|
49
|
+
Play,
|
|
50
|
+
FileText,
|
|
51
|
+
Lock,
|
|
52
|
+
Quote,
|
|
53
|
+
Youtube,
|
|
54
|
+
Instagram,
|
|
55
|
+
Twitter,
|
|
56
|
+
Facebook,
|
|
57
|
+
BookOpen,
|
|
58
|
+
Sparkles,
|
|
59
|
+
Flame,
|
|
60
|
+
Wine,
|
|
61
|
+
Coffee,
|
|
62
|
+
CheckCircle,
|
|
63
|
+
ThumbsUp,
|
|
64
|
+
User,
|
|
65
|
+
Ruler,
|
|
66
|
+
Share2,
|
|
67
|
+
Info,
|
|
68
|
+
Calendar
|
|
69
|
+
};
|
|
70
|
+
export const COMMON_ICON_NAMES = Object.keys(ICON_MAP).filter(name => name !== 'Shield'); // Exclude aliases
|
|
71
|
+
export const DynamicIcon = ({ name, fallback: Fallback = HelpCircle, ...props }) => {
|
|
72
|
+
const IconComponent = ICON_MAP[name];
|
|
73
|
+
if (!IconComponent) {
|
|
74
|
+
return _jsx(Fallback, { ...props });
|
|
75
|
+
}
|
|
76
|
+
return _jsx(IconComponent, { ...props });
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking-agenda.d.ts","sourceRoot":"","sources":["../../../src/editor/alignment-schemas/booking-agenda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,mBAAmB,EAAE,qBA4GjC,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export const BookingAgendaSchema = {
|
|
2
|
+
home: {
|
|
3
|
+
header: {
|
|
4
|
+
type: 'section',
|
|
5
|
+
label: 'Header & Date Picker',
|
|
6
|
+
fields: {
|
|
7
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
8
|
+
title: { type: 'text', label: 'Page Title' },
|
|
9
|
+
subtitle: { type: 'text', label: 'Subtitle' }
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
promoBanner: {
|
|
13
|
+
type: 'section',
|
|
14
|
+
label: 'Promo Banner',
|
|
15
|
+
fields: {
|
|
16
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
17
|
+
promo_banner: { type: 'image', label: 'Banner Image' },
|
|
18
|
+
badge: { type: 'text', label: 'Badge Text' },
|
|
19
|
+
title: { type: 'multiline_text', label: 'Title' },
|
|
20
|
+
description: { type: 'multiline_text', label: 'Description' },
|
|
21
|
+
button: {
|
|
22
|
+
type: 'button',
|
|
23
|
+
label: 'Button',
|
|
24
|
+
fields: {
|
|
25
|
+
text: { type: 'text', label: 'Button Text' },
|
|
26
|
+
link: { type: 'text', label: 'Button Link' }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
services: {
|
|
32
|
+
type: 'section',
|
|
33
|
+
label: 'Service List',
|
|
34
|
+
fields: {
|
|
35
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
36
|
+
title: { type: 'text', label: 'Section Title' }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
team: {
|
|
40
|
+
type: 'section',
|
|
41
|
+
label: 'Our Experts',
|
|
42
|
+
fields: {
|
|
43
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
44
|
+
title: { type: 'text', label: 'Section Title' },
|
|
45
|
+
viewAllLabel: { type: 'text', label: 'View All Link Text' }
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
testimonials: {
|
|
49
|
+
type: 'section',
|
|
50
|
+
label: 'Client Reviews',
|
|
51
|
+
fields: {
|
|
52
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
53
|
+
title: { type: 'text', label: 'Title' },
|
|
54
|
+
subtitle: { type: 'text', label: 'Subtitle' }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
about: {
|
|
59
|
+
hero: {
|
|
60
|
+
type: 'section',
|
|
61
|
+
label: 'About Header',
|
|
62
|
+
fields: {
|
|
63
|
+
heroImage: { type: 'image', label: 'Hero Image' },
|
|
64
|
+
title: { type: 'text', label: 'Title' },
|
|
65
|
+
missionStatement: { type: 'text', label: 'Mission Statement' }
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
story: {
|
|
69
|
+
type: 'section',
|
|
70
|
+
label: 'Our Story',
|
|
71
|
+
fields: {
|
|
72
|
+
content: { type: 'multiline_text', label: 'Story Content' }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
contact: {
|
|
77
|
+
hero: {
|
|
78
|
+
type: 'section',
|
|
79
|
+
label: 'Contact Header',
|
|
80
|
+
fields: {}
|
|
81
|
+
},
|
|
82
|
+
form: {
|
|
83
|
+
type: 'section',
|
|
84
|
+
label: 'Contact Form',
|
|
85
|
+
fields: {}
|
|
86
|
+
},
|
|
87
|
+
map: {
|
|
88
|
+
type: 'section',
|
|
89
|
+
label: 'Location Map',
|
|
90
|
+
fields: {}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
services: {
|
|
94
|
+
hero: {
|
|
95
|
+
type: 'section',
|
|
96
|
+
label: 'Services Header',
|
|
97
|
+
fields: {
|
|
98
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
99
|
+
title: { type: 'text', label: 'Page Title' },
|
|
100
|
+
description: { type: 'multiline_text', label: 'Description' }
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
'services-list': {
|
|
104
|
+
type: 'section',
|
|
105
|
+
label: 'Services List',
|
|
106
|
+
fields: {}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booking.d.ts","sourceRoot":"","sources":["../../../src/editor/alignment-schemas/booking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,aAAa,EAAE,qBAkN3B,CAAC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export const BookingSchema = {
|
|
2
|
+
home: {
|
|
3
|
+
hero: {
|
|
4
|
+
type: 'section',
|
|
5
|
+
label: 'Hero Section',
|
|
6
|
+
_sourcePath: 'layoutConfig.hero',
|
|
7
|
+
fields: {
|
|
8
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
9
|
+
showCTA: { type: 'toggle', label: 'Show Primary Button', defaultValue: true },
|
|
10
|
+
hero_bg: { type: 'image', label: 'Background Image' },
|
|
11
|
+
hero_badge: { type: 'text', label: 'Badge Text' },
|
|
12
|
+
title: { type: 'multiline_text', label: 'Main Title' },
|
|
13
|
+
subtitle: { type: 'multiline_text', label: 'Subtitle' },
|
|
14
|
+
primaryButton: {
|
|
15
|
+
type: 'button',
|
|
16
|
+
label: 'Primary Button',
|
|
17
|
+
fields: {
|
|
18
|
+
text: { type: 'text', label: 'Button Text' },
|
|
19
|
+
link: { type: 'text', link: 'Button Link' }
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
secondaryButton: {
|
|
23
|
+
type: 'button',
|
|
24
|
+
label: 'Secondary Button',
|
|
25
|
+
fields: {
|
|
26
|
+
text: { type: 'text', label: 'Button Text' },
|
|
27
|
+
link: { type: 'text', link: 'Button Link' }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
featuredServices: {
|
|
33
|
+
type: 'section',
|
|
34
|
+
label: 'Signature Services',
|
|
35
|
+
_sourcePath: 'layoutConfig.sections.categories',
|
|
36
|
+
fields: {
|
|
37
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
38
|
+
title: { type: 'text', label: 'Section Title' },
|
|
39
|
+
showViewAll: { type: 'toggle', label: 'Show View All Button' },
|
|
40
|
+
limit: { type: 'number', label: 'Service Limit', defaultValue: 6 }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
team: {
|
|
44
|
+
type: 'section',
|
|
45
|
+
label: 'Meet the Specialists',
|
|
46
|
+
_sourcePath: 'layoutConfig.sections.team',
|
|
47
|
+
fields: {
|
|
48
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
49
|
+
specialist_image: { type: 'image', label: 'Specialist Image' },
|
|
50
|
+
memberName: { type: 'text', label: 'Member Name' },
|
|
51
|
+
memberRole: { type: 'text', label: 'Member Role' },
|
|
52
|
+
title: { type: 'multiline_text', label: 'Section Title' },
|
|
53
|
+
subtitle: { type: 'multiline_text', label: 'Description' }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
testimonials: {
|
|
57
|
+
type: 'section',
|
|
58
|
+
label: 'Client Reviews',
|
|
59
|
+
_sourcePath: 'layoutConfig.sections.testimonials',
|
|
60
|
+
fields: {
|
|
61
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
62
|
+
title: { type: 'text', label: 'Section Title' },
|
|
63
|
+
showRatings: { type: 'toggle', label: 'Show Ratings' },
|
|
64
|
+
limit: { type: 'number', label: 'Testimonial Limit', defaultValue: 3 },
|
|
65
|
+
testimonials: {
|
|
66
|
+
type: 'array',
|
|
67
|
+
label: 'Testimonials',
|
|
68
|
+
itemSchema: {
|
|
69
|
+
image: { type: 'image', label: 'Client Image' },
|
|
70
|
+
name: { type: 'text', label: 'Client Name' },
|
|
71
|
+
text: { type: 'multiline_text', label: 'Testimonial Text' },
|
|
72
|
+
rating: { type: 'number', label: 'Rating' },
|
|
73
|
+
location: { type: 'text', label: 'Location' },
|
|
74
|
+
date: { type: 'text', label: 'Date' }
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
marketing: {
|
|
80
|
+
type: 'section',
|
|
81
|
+
label: 'Call to Action',
|
|
82
|
+
_sourcePath: 'layoutConfig.sections.marketing',
|
|
83
|
+
fields: {
|
|
84
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
85
|
+
ctaTitle: { type: 'text', label: 'Title' },
|
|
86
|
+
ctaDescription: { type: 'text', label: 'Description' },
|
|
87
|
+
ctaButton: { type: 'text', label: 'Button Text' }
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
about: {
|
|
92
|
+
hero: {
|
|
93
|
+
type: 'section',
|
|
94
|
+
label: 'About Header',
|
|
95
|
+
fields: {
|
|
96
|
+
heroImage: { type: 'image', label: 'Hero Image' },
|
|
97
|
+
title: { type: 'text', label: 'Title' },
|
|
98
|
+
missionStatement: { type: 'text', label: 'Mission Statement' }
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
story: {
|
|
102
|
+
type: 'section',
|
|
103
|
+
label: 'Our Story',
|
|
104
|
+
fields: {
|
|
105
|
+
content: { type: 'multiline_text', label: 'Story Content' }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
contact: {
|
|
110
|
+
contactHeader: {
|
|
111
|
+
type: 'section',
|
|
112
|
+
label: 'Contact Header',
|
|
113
|
+
fields: {
|
|
114
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
115
|
+
title: { type: 'text', label: 'Page Title' }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
contactForm: {
|
|
119
|
+
type: 'section',
|
|
120
|
+
label: 'Contact Form Settings',
|
|
121
|
+
fields: {
|
|
122
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
services: {
|
|
127
|
+
servicesHeader: {
|
|
128
|
+
type: 'section',
|
|
129
|
+
label: 'Services Header',
|
|
130
|
+
fields: {
|
|
131
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
132
|
+
title: { type: 'text', label: 'Page Title' },
|
|
133
|
+
showFilters: { type: 'toggle', label: 'Show Filters' },
|
|
134
|
+
showSearch: { type: 'toggle', label: 'Show Search' }
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
servicesGrid: {
|
|
138
|
+
type: 'section',
|
|
139
|
+
label: 'Services Grid',
|
|
140
|
+
fields: {
|
|
141
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
142
|
+
showPagination: { type: 'toggle', label: 'Show Pagination' },
|
|
143
|
+
showBookButton: { type: 'toggle', label: 'Show Book Button' }
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
serviceDetail: {
|
|
148
|
+
serviceDetail: {
|
|
149
|
+
type: 'section',
|
|
150
|
+
label: 'Service Detail Settings',
|
|
151
|
+
fields: {
|
|
152
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
153
|
+
showBookButton: { type: 'toggle', label: 'Show Book Button' },
|
|
154
|
+
showDescription: { type: 'toggle', label: 'Show Description' },
|
|
155
|
+
showDuration: { type: 'toggle', label: 'Show Duration' },
|
|
156
|
+
showPrice: { type: 'toggle', label: 'Show Price' },
|
|
157
|
+
showSpecialists: { type: 'toggle', label: 'Show Specialists' }
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
book: {
|
|
162
|
+
bookingHeader: {
|
|
163
|
+
type: 'section',
|
|
164
|
+
label: 'Booking Header',
|
|
165
|
+
fields: {
|
|
166
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
167
|
+
title: { type: 'text', label: 'Page Title' },
|
|
168
|
+
showSteps: { type: 'toggle', label: 'Show Steps' }
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
bookingForm: {
|
|
172
|
+
type: 'section',
|
|
173
|
+
label: 'Booking Form Settings',
|
|
174
|
+
fields: {
|
|
175
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
176
|
+
showServiceSelection: { type: 'toggle', label: 'Show Service Selection' },
|
|
177
|
+
showDatePicker: { type: 'toggle', label: 'Show Date Picker' },
|
|
178
|
+
showTimeSlot: { type: 'toggle', label: 'Show Time Slots' },
|
|
179
|
+
showSpecialistSelection: { type: 'toggle', label: 'Show Specialist Selection' }
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
categories: {
|
|
184
|
+
categoriesHeader: {
|
|
185
|
+
type: 'section',
|
|
186
|
+
label: 'Categories Header',
|
|
187
|
+
fields: {
|
|
188
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
189
|
+
title: { type: 'text', label: 'Page Title' }
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
categoryGrid: {
|
|
193
|
+
type: 'section',
|
|
194
|
+
label: 'Category Grid',
|
|
195
|
+
fields: {
|
|
196
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
197
|
+
showServices: { type: 'toggle', label: 'Show Services' }
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
categoryDetail: {
|
|
202
|
+
categoryDetail: {
|
|
203
|
+
type: 'section',
|
|
204
|
+
label: 'Category Detail Settings',
|
|
205
|
+
fields: {
|
|
206
|
+
show: { type: 'toggle', label: 'Show Section', defaultValue: true },
|
|
207
|
+
showServices: { type: 'toggle', label: 'Show Services' }
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clothing-minimal.d.ts","sourceRoot":"","sources":["../../../src/editor/alignment-schemas/clothing-minimal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,qBAAqB,EAAE,qBAqNnC,CAAC"}
|