pagepilot-visual-editor 1.0.9 → 1.0.11
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/README.md +16 -1
- package/dist/blocks-internal/block-button/src/index.d.ts +44 -10
- package/dist/blocks-internal/block-button-group/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-columns-container/src/index.d.ts +6 -6
- package/dist/blocks-internal/block-container/src/index.d.ts +34 -8
- package/dist/blocks-internal/block-grid/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +8 -7
- package/dist/blocks-internal/block-html/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-iframe/src/index.d.ts +2 -2
- package/dist/blocks-internal/block-image/src/index.d.ts +62 -3
- package/dist/blocks-internal/block-list/src/index.d.ts +5 -5
- package/dist/blocks-internal/block-logo/src/index.d.ts +43 -2
- package/dist/blocks-internal/block-stepper/src/index.d.ts +4 -4
- package/dist/blocks-internal/block-text/src/index.d.ts +5 -4
- package/dist/blocks-internal/block-video/src/index.d.ts +3 -3
- package/dist/blocks-internal/block-youtube-url/src/index.d.ts +3 -3
- package/dist/editor/renderSections.d.ts +2 -68
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/AvatarSidebarPanel.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +3 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +18 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +16 -0
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +2 -39
- package/dist/editor-sample/App/TemplatePanel/minimap/MiniMapFrame.d.ts +4 -2
- package/dist/editor-sample/App/shared/editor.styles.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Avatar/AvatarPropsSchema.d.ts +3 -0
- package/dist/editor-sample/documents/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/editor-sample/documents/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +6 -6
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +53 -8
- package/dist/editor-sample/documents/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +4 -3
- package/dist/editor-sample/documents/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/Rating/RatingPropsSchema.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +3 -3
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/Timer/variants/DigitalFlipView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/TStyle.d.ts +1 -0
- package/dist/editor-sample/documents/blocks/helpers/responsiveStyle.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/zod.d.ts +3 -3
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +3 -3
- package/dist/editor-sample/documents/editor/core.d.ts +266 -94
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +4 -75
- package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/ButtonGroup/ButtonGroupPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/Calendly/CalendlyPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/ColumnsContainer/ColumnsContainerPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +53 -8
- package/dist/email-builder-core/blocks/DemoPicker/DemoPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/FlexColumns/FlexColumnsPropsSchema.d.ts +7 -0
- package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Grid/GridPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Marquee/MarqueePropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/MenuPicker/MenuPropsSchema.d.ts +6 -6
- package/dist/email-builder-core/blocks/MenuPicker/MenuReader.d.ts +7 -1
- package/dist/email-builder-core/blocks/Pagination/PaginationPropsSchema.d.ts +5 -5
- package/dist/email-builder-core/blocks/PricingAccordion/PricingAccordionPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Rating/RatingPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/SkipLink/SkipLinkPropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/Table/TablePropsSchema.d.ts +2 -2
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +3 -3
- package/dist/email-builder-core/blocks/Timer/TimerPropsSchema.d.ts +1 -0
- package/dist/email-builder-core/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/email-builder-core/blocks/Timer/variants/DigitalFlipView.d.ts +2 -1
- package/dist/email-builder-core/blocks/animationSchema.d.ts +32 -0
- package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +23 -0
- package/dist/email-builder-core/blocks/hoverEffectSchema.d.ts +20 -0
- package/dist/email-builder-core/helpers/templateVariables.d.ts +2 -14
- package/dist/email-builder-core/renderers/animationCss.d.ts +18 -0
- package/dist/email-builder-core/renderers/pageScripts.d.ts +10 -0
- package/dist/host-stubs/style/menu.styled.d.ts +10 -1
- package/dist/index.cjs +394 -244
- package/dist/index.js +27144 -25729
- package/dist/render-core/collectSubtreeIds.d.ts +1 -0
- package/dist/render-core/combineSections.d.ts +37 -0
- package/dist/render-core/stubs/editorContext.d.ts +10 -0
- package/dist/render-core/stubs/usePreviewScreen.d.ts +7 -0
- package/dist/render-core/templateBaking.d.ts +35 -0
- package/dist/render-core/templateEnvelope.d.ts +11 -0
- package/dist/render.cjs +873 -0
- package/dist/render.d.ts +4 -0
- package/dist/render.js +15409 -0
- package/dist/renderToStaticHtml.d.ts +1 -1
- package/package.json +11 -3
|
@@ -1,75 +1,9 @@
|
|
|
1
1
|
import { TEditorConfiguration } from './core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* numeric string, `image` as an image URL (used in Image/Avatar/Logo blocks).
|
|
6
|
-
*/
|
|
7
|
-
export type TemplateScalarType = 'text' | 'textarea' | 'number' | 'image';
|
|
8
|
-
export type TemplateFormType = TemplateScalarType | 'array';
|
|
2
|
+
import { TemplateFormField } from '../../../render-core/templateBaking';
|
|
3
|
+
export { bakeTemplateValues, substituteBlockText, applyVariables, buildRepeatRowIndex, getTemplateForms, getTextFieldsForType, } from '../../../render-core/templateBaking';
|
|
4
|
+
export type { TemplateScalarType, TemplateFormType, TemplateItemFieldDef, TemplateArrayRow, TemplateFormField, } from '../../../render-core/templateBaking';
|
|
9
5
|
/** All scalar types — used by both top-level fields and array sub-fields. */
|
|
10
|
-
export declare const TEMPLATE_SCALAR_TYPES:
|
|
11
|
-
export type TemplateItemFieldDef = {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
/** Sub-field input kind. Defaults to `text` when absent (legacy rows). */
|
|
15
|
-
type?: TemplateScalarType;
|
|
16
|
-
/** Author-set default value, used to prefill the row when a template is applied. */
|
|
17
|
-
defaultValue?: string;
|
|
18
|
-
};
|
|
19
|
-
export type TemplateArrayRow = Record<string, string>;
|
|
20
|
-
export type TemplateFormField = {
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
type: TemplateFormType;
|
|
24
|
-
value?: string | TemplateArrayRow[];
|
|
25
|
-
defaultValue?: string;
|
|
26
|
-
itemFields?: TemplateItemFieldDef[];
|
|
27
|
-
sourceBlockId?: string;
|
|
28
|
-
rowIds?: string[];
|
|
29
|
-
/**
|
|
30
|
-
* Set on a container-repeat array field driven from the Variables tab's
|
|
31
|
-
* "Repeatable container" flow: the id of the Grid/FlexColumns/ColumnsContainer
|
|
32
|
-
* whose EMPTY slots get stamped with clones of `sourceBlockId`'s subtree.
|
|
33
|
-
* (`sourceBlockId` = the block sitting in the container's first filled slot;
|
|
34
|
-
* `rowIds` = the stamped clones' roots, one per filled empty slot.)
|
|
35
|
-
*/
|
|
36
|
-
containerId?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Author flag set from "Set template details" → Template Fields: marks this
|
|
39
|
-
* field's content as intended to be repeated once the template is applied
|
|
40
|
-
* (e.g. across grid cells / carousel slides). Pure metadata — carried through
|
|
41
|
-
* from the saved template record, doesn't drive any runtime behavior itself.
|
|
42
|
-
*/
|
|
43
|
-
repeatable?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* The id of the block template this repeatable field is bound to — captured
|
|
46
|
-
* when the field's block is saved via the Variables-panel "Save as New
|
|
47
|
-
* Template" shortcut. Gives a reference to WHICH template drives this grid so
|
|
48
|
-
* the "Change Template" flow can key-match form fields on replace, and the
|
|
49
|
-
* Data Reference tab knows the source template.
|
|
50
|
-
*/
|
|
51
|
-
templateId?: string;
|
|
52
|
-
/**
|
|
53
|
-
* "Data Reference" binding for a repeatable field: where the repetition data
|
|
54
|
-
* comes from. `custom` = the manual rows editor (default). `api`/`menu` pull
|
|
55
|
-
* an array of objects whose keys map to this field's sub-field ids; each
|
|
56
|
-
* object seeds one repeated copy. `customJson` holds the pasted JSON text for
|
|
57
|
-
* the `custom-json` source. Only meaningful when `repeatable` is set.
|
|
58
|
-
*/
|
|
59
|
-
dataSource?: {
|
|
60
|
-
/** `api` = fetch an array of objects from a REST endpoint. */
|
|
61
|
-
type: 'custom' | 'custom-json' | 'api' | 'menu';
|
|
62
|
-
/** Raw JSON text for `custom-json`. */
|
|
63
|
-
customJson?: string;
|
|
64
|
-
/** Endpoint URL for the `api` source. Persisted in config. */
|
|
65
|
-
apiUrl?: string;
|
|
66
|
-
/** HTTP method for the `api` source. Only GET works today; POST is planned. */
|
|
67
|
-
apiMethod?: 'GET' | 'POST';
|
|
68
|
-
/** Selected menu id for `menu`. */
|
|
69
|
-
menuId?: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export declare function buildRepeatRowIndex(document: TEditorConfiguration | null | undefined, fields: TemplateFormField[] | null | undefined): Map<string, TemplateArrayRow>;
|
|
6
|
+
export declare const TEMPLATE_SCALAR_TYPES: Array<'text' | 'textarea' | 'number' | 'image'>;
|
|
73
7
|
/**
|
|
74
8
|
* Apply `sourceHtml`'s formatting shell to `targetHtml`'s text. If the source
|
|
75
9
|
* has no formatting, returns the target unchanged (keeps the copy's text as-is).
|
|
@@ -115,9 +49,4 @@ export declare function resolveEditableTokenField(rawText: string, blockId: stri
|
|
|
115
49
|
* Returns the SAME reference when nothing changed so callers can skip a write.
|
|
116
50
|
*/
|
|
117
51
|
export declare function pruneOrphanFormFields(document: TEditorConfiguration | null | undefined, fields: TemplateFormField[] | null | undefined): TemplateFormField[];
|
|
118
|
-
export declare function getTextFieldsForType(type: string | undefined): string[] | undefined;
|
|
119
|
-
export declare function getTemplateForms(document: TEditorConfiguration | null | undefined): TemplateFormField[];
|
|
120
|
-
export declare function applyVariables(input: string | null | undefined, fields: TemplateFormField[] | null | undefined, rowContext?: TemplateArrayRow | null): string;
|
|
121
|
-
export declare function substituteBlockText(block: any, fields: TemplateFormField[] | null | undefined, rowContext?: TemplateArrayRow | null): any;
|
|
122
|
-
export declare function bakeTemplateValues<T extends TEditorConfiguration>(document: T, fields: TemplateFormField[] | null | undefined): T;
|
|
123
52
|
export declare function withPersistedFormFields<T extends TEditorConfiguration>(document: T, fields: TemplateFormField[] | null | undefined): T;
|
package/dist/email-builder-core/blocks/AccessibilityTools/AccessibilityToolsPropsSchema.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export declare const AccessibilityToolsPropsSchema: z.ZodObject<{
|
|
|
14
14
|
left: z.ZodNumber;
|
|
15
15
|
}, z.core.$strip>>>;
|
|
16
16
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
center: "center";
|
|
18
|
-
left: "left";
|
|
19
17
|
right: "right";
|
|
18
|
+
left: "left";
|
|
19
|
+
center: "center";
|
|
20
20
|
}>>>;
|
|
21
21
|
}, z.core.$strip>>>;
|
|
22
22
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -50,11 +50,11 @@ export declare const AccessibilityToolsPropsSchema: z.ZodObject<{
|
|
|
50
50
|
left: z.ZodNumber;
|
|
51
51
|
}, z.core.$strip>>>;
|
|
52
52
|
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
53
|
-
info: "info";
|
|
54
53
|
accessibility: "accessibility";
|
|
55
54
|
"universal-access": "universal-access";
|
|
56
55
|
person: "person";
|
|
57
56
|
eye: "eye";
|
|
57
|
+
info: "info";
|
|
58
58
|
}>>>;
|
|
59
59
|
features: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
60
60
|
contrast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -12,35 +12,35 @@ declare const ButtonGroupPropsSchema: z.ZodObject<{
|
|
|
12
12
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
13
13
|
childrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
14
14
|
direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
15
|
-
row: "row";
|
|
16
15
|
column: "column";
|
|
16
|
+
row: "row";
|
|
17
17
|
}>>>;
|
|
18
18
|
directionTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
19
|
-
row: "row";
|
|
20
19
|
column: "column";
|
|
20
|
+
row: "row";
|
|
21
21
|
}>>>;
|
|
22
22
|
directionMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
23
|
-
row: "row";
|
|
24
23
|
column: "column";
|
|
24
|
+
row: "row";
|
|
25
25
|
}>>>;
|
|
26
26
|
gap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
27
27
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
28
28
|
center: "center";
|
|
29
|
+
"space-between": "space-between";
|
|
29
30
|
end: "end";
|
|
30
31
|
start: "start";
|
|
31
|
-
"space-between": "space-between";
|
|
32
32
|
}>>>;
|
|
33
33
|
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
34
34
|
center: "center";
|
|
35
|
+
"space-between": "space-between";
|
|
35
36
|
end: "end";
|
|
36
37
|
start: "start";
|
|
37
|
-
"space-between": "space-between";
|
|
38
38
|
}>>>;
|
|
39
39
|
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
40
40
|
center: "center";
|
|
41
|
+
"space-between": "space-between";
|
|
41
42
|
end: "end";
|
|
42
43
|
start: "start";
|
|
43
|
-
"space-between": "space-between";
|
|
44
44
|
}>>>;
|
|
45
45
|
wrap: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
46
46
|
ariaLabel: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -18,9 +18,9 @@ export declare const CalendlyPropsSchema: z.ZodObject<{
|
|
|
18
18
|
left: z.ZodNumber;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
20
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
center: "center";
|
|
22
|
-
left: "left";
|
|
23
21
|
right: "right";
|
|
22
|
+
left: "left";
|
|
23
|
+
center: "center";
|
|
24
24
|
}>>>;
|
|
25
25
|
}, z.core.$strip>>>;
|
|
26
26
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -59,30 +59,30 @@ declare const ColumnsContainerPropsSchema: z.ZodObject<{
|
|
|
59
59
|
columnsGapTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
60
60
|
columnsGapMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
61
61
|
columnsDirection: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
horizontal: "horizontal";
|
|
63
62
|
vertical: "vertical";
|
|
63
|
+
horizontal: "horizontal";
|
|
64
64
|
}>>>;
|
|
65
65
|
columnsDirectionTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
66
|
-
horizontal: "horizontal";
|
|
67
66
|
vertical: "vertical";
|
|
67
|
+
horizontal: "horizontal";
|
|
68
68
|
}>>>;
|
|
69
69
|
columnsDirectionMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
horizontal: "horizontal";
|
|
71
70
|
vertical: "vertical";
|
|
71
|
+
horizontal: "horizontal";
|
|
72
72
|
}>>>;
|
|
73
73
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
74
|
-
bottom: "bottom";
|
|
75
74
|
top: "top";
|
|
75
|
+
bottom: "bottom";
|
|
76
76
|
middle: "middle";
|
|
77
77
|
}>>>;
|
|
78
78
|
contentAlignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
79
|
-
bottom: "bottom";
|
|
80
79
|
top: "top";
|
|
80
|
+
bottom: "bottom";
|
|
81
81
|
middle: "middle";
|
|
82
82
|
}>>>;
|
|
83
83
|
contentAlignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
84
|
-
bottom: "bottom";
|
|
85
84
|
top: "top";
|
|
85
|
+
bottom: "bottom";
|
|
86
86
|
middle: "middle";
|
|
87
87
|
}>>>;
|
|
88
88
|
}, z.core.$strip>>>;
|
|
@@ -33,6 +33,14 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
33
33
|
right: z.ZodNumber;
|
|
34
34
|
left: z.ZodNumber;
|
|
35
35
|
}, z.core.$strip>>>;
|
|
36
|
+
boxShadow: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
37
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
38
|
+
offsetX: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
39
|
+
offsetY: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
40
|
+
blur: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
41
|
+
spread: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
42
|
+
inset: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
36
44
|
}, z.core.$strip>>>;
|
|
37
45
|
responsive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
38
46
|
tablet: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
@@ -68,24 +76,24 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
68
76
|
heightMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
77
|
overflow: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
70
78
|
alignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
71
|
-
center: "center";
|
|
72
|
-
left: "left";
|
|
73
79
|
right: "right";
|
|
80
|
+
left: "left";
|
|
81
|
+
center: "center";
|
|
74
82
|
}>>>;
|
|
75
83
|
alignmentTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
76
|
-
center: "center";
|
|
77
|
-
left: "left";
|
|
78
84
|
right: "right";
|
|
85
|
+
left: "left";
|
|
86
|
+
center: "center";
|
|
79
87
|
}>>>;
|
|
80
88
|
alignmentMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
81
|
-
center: "center";
|
|
82
|
-
left: "left";
|
|
83
89
|
right: "right";
|
|
90
|
+
left: "left";
|
|
91
|
+
center: "center";
|
|
84
92
|
}>>>;
|
|
85
93
|
tag: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
div: "div";
|
|
86
95
|
article: "article";
|
|
87
96
|
aside: "aside";
|
|
88
|
-
div: "div";
|
|
89
97
|
footer: "footer";
|
|
90
98
|
header: "header";
|
|
91
99
|
main: "main";
|
|
@@ -97,9 +105,46 @@ export declare const ContainerPropsSchema: z.ZodObject<{
|
|
|
97
105
|
showLink: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
98
106
|
linkHref: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
99
107
|
linkTarget: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
100
|
-
_blank: "_blank";
|
|
101
108
|
_self: "_self";
|
|
109
|
+
_blank: "_blank";
|
|
102
110
|
}>>>;
|
|
111
|
+
animation: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
112
|
+
type: z.ZodEnum<{
|
|
113
|
+
none: "none";
|
|
114
|
+
"fade-in": "fade-in";
|
|
115
|
+
"slide-left": "slide-left";
|
|
116
|
+
"slide-right": "slide-right";
|
|
117
|
+
"slide-up": "slide-up";
|
|
118
|
+
"slide-down": "slide-down";
|
|
119
|
+
"zoom-in": "zoom-in";
|
|
120
|
+
bounce: "bounce";
|
|
121
|
+
}>;
|
|
122
|
+
trigger: z.ZodEnum<{
|
|
123
|
+
load: "load";
|
|
124
|
+
scroll: "scroll";
|
|
125
|
+
hover: "hover";
|
|
126
|
+
click: "click";
|
|
127
|
+
}>;
|
|
128
|
+
speed: z.ZodEnum<{
|
|
129
|
+
slow: "slow";
|
|
130
|
+
medium: "medium";
|
|
131
|
+
fast: "fast";
|
|
132
|
+
}>;
|
|
133
|
+
delay: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
134
|
+
disableOnMobile: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
135
|
+
}, z.core.$strip>>>;
|
|
136
|
+
hoverEffect: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
137
|
+
enabled: z.ZodBoolean;
|
|
138
|
+
scale: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
139
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
140
|
+
easing: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
141
|
+
ease: "ease";
|
|
142
|
+
"ease-in": "ease-in";
|
|
143
|
+
"ease-in-out": "ease-in-out";
|
|
144
|
+
"ease-out": "ease-out";
|
|
145
|
+
linear: "linear";
|
|
146
|
+
}>>>;
|
|
147
|
+
}, z.core.$strip>>>;
|
|
103
148
|
}, z.core.$strip>>>;
|
|
104
149
|
}, z.core.$strip>;
|
|
105
150
|
export type ContainerProps = z.infer<typeof ContainerPropsSchema>;
|
|
@@ -18,9 +18,9 @@ export declare const DemoPropsSchema: z.ZodObject<{
|
|
|
18
18
|
left: z.ZodNumber;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
20
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
center: "center";
|
|
22
|
-
left: "left";
|
|
23
21
|
right: "right";
|
|
22
|
+
left: "left";
|
|
23
|
+
center: "center";
|
|
24
24
|
}>>>;
|
|
25
25
|
}, z.core.$strip>>>;
|
|
26
26
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -103,11 +103,11 @@ export declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
|
103
103
|
}, z.core.$strip>>>;
|
|
104
104
|
behaviour: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
105
105
|
position: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
|
|
106
|
+
top: "top";
|
|
107
107
|
bottom: "bottom";
|
|
108
|
-
left: "left";
|
|
109
108
|
right: "right";
|
|
110
|
-
|
|
109
|
+
left: "left";
|
|
110
|
+
center: "center";
|
|
111
111
|
"top-left": "top-left";
|
|
112
112
|
"top-center": "top-center";
|
|
113
113
|
"top-right": "top-right";
|
|
@@ -122,9 +122,9 @@ export declare const EmailLayoutPropsSchema: z.ZodObject<{
|
|
|
122
122
|
showCloseIcon: z.ZodOptional<z.ZodBoolean>;
|
|
123
123
|
iconCloseColor: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodLiteral<"transparent">]>>>;
|
|
124
124
|
closeIconPosition: z.ZodOptional<z.ZodEnum<{
|
|
125
|
-
center: "center";
|
|
126
|
-
left: "left";
|
|
127
125
|
right: "right";
|
|
126
|
+
left: "left";
|
|
127
|
+
center: "center";
|
|
128
128
|
}>>;
|
|
129
129
|
closeIconPaddingTop: z.ZodOptional<z.ZodNumber>;
|
|
130
130
|
closeIconPaddingLeft: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { EmailLayoutProps } from './EmailLayoutPropsSchema';
|
|
3
|
-
export default function EmailLayoutReader(props: EmailLayoutProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode
|
|
3
|
+
export default function EmailLayoutReader(props: EmailLayoutProps): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>>;
|
|
@@ -57,6 +57,13 @@ declare const FlexColumnsPropsSchema: z.ZodObject<{
|
|
|
57
57
|
"flex-end": "flex-end";
|
|
58
58
|
"flex-start": "flex-start";
|
|
59
59
|
}>>>;
|
|
60
|
+
justify: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
center: "center";
|
|
62
|
+
"space-around": "space-around";
|
|
63
|
+
"space-between": "space-between";
|
|
64
|
+
"flex-end": "flex-end";
|
|
65
|
+
"flex-start": "flex-start";
|
|
66
|
+
}>>>;
|
|
60
67
|
reverseColumns: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
61
68
|
repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
62
69
|
}, z.core.$strip>>>;
|
|
@@ -10,9 +10,9 @@ export declare const FormsPropsSchema: z.ZodObject<{
|
|
|
10
10
|
heightTablet: z.ZodOptional<z.ZodString>;
|
|
11
11
|
heightMobile: z.ZodOptional<z.ZodString>;
|
|
12
12
|
alignment: z.ZodDefault<z.ZodEnum<{
|
|
13
|
-
center: "center";
|
|
14
|
-
left: "left";
|
|
15
13
|
right: "right";
|
|
14
|
+
left: "left";
|
|
15
|
+
center: "center";
|
|
16
16
|
}>>;
|
|
17
17
|
}, z.core.$strip>>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
@@ -39,14 +39,14 @@ declare const GridPropsSchema: z.ZodObject<{
|
|
|
39
39
|
columnsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
40
40
|
columnsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>>>;
|
|
41
41
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
42
|
-
bottom: "bottom";
|
|
43
42
|
top: "top";
|
|
43
|
+
bottom: "bottom";
|
|
44
44
|
middle: "middle";
|
|
45
45
|
}>>>;
|
|
46
46
|
horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
47
|
-
center: "center";
|
|
48
|
-
left: "left";
|
|
49
47
|
right: "right";
|
|
48
|
+
left: "left";
|
|
49
|
+
center: "center";
|
|
50
50
|
}>>>;
|
|
51
51
|
columnsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
52
52
|
rowsCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -35,8 +35,8 @@ export declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
35
35
|
}, z.core.$strip>>>;
|
|
36
36
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
37
37
|
direction: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
left: "left";
|
|
39
38
|
right: "right";
|
|
39
|
+
left: "left";
|
|
40
40
|
up: "up";
|
|
41
41
|
down: "down";
|
|
42
42
|
}>>>;
|
|
@@ -45,8 +45,8 @@ export declare const MarqueePropsSchema: z.ZodObject<{
|
|
|
45
45
|
repeat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
46
46
|
fadeEdges: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
47
47
|
verticalAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
bottom: "bottom";
|
|
49
48
|
top: "top";
|
|
49
|
+
bottom: "bottom";
|
|
50
50
|
middle: "middle";
|
|
51
51
|
}>>>;
|
|
52
52
|
items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4,13 +4,13 @@ declare const MenuPropsInnerSchema: z.ZodObject<{
|
|
|
4
4
|
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
5
5
|
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
6
6
|
position: z.ZodDefault<z.ZodEnum<{
|
|
7
|
-
center: "center";
|
|
8
|
-
left: "left";
|
|
9
7
|
right: "right";
|
|
8
|
+
left: "left";
|
|
9
|
+
center: "center";
|
|
10
10
|
}>>;
|
|
11
11
|
orientation: z.ZodDefault<z.ZodEnum<{
|
|
12
|
-
horizontal: "horizontal";
|
|
13
12
|
vertical: "vertical";
|
|
13
|
+
horizontal: "horizontal";
|
|
14
14
|
}>>;
|
|
15
15
|
menuItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>>;
|
|
16
16
|
startChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -48,13 +48,13 @@ export declare const MenuPropsSchema: z.ZodObject<{
|
|
|
48
48
|
useCustomMenu: z.ZodDefault<z.ZodBoolean>;
|
|
49
49
|
stickyNav: z.ZodDefault<z.ZodBoolean>;
|
|
50
50
|
position: z.ZodDefault<z.ZodEnum<{
|
|
51
|
-
center: "center";
|
|
52
|
-
left: "left";
|
|
53
51
|
right: "right";
|
|
52
|
+
left: "left";
|
|
53
|
+
center: "center";
|
|
54
54
|
}>>;
|
|
55
55
|
orientation: z.ZodDefault<z.ZodEnum<{
|
|
56
|
-
horizontal: "horizontal";
|
|
57
56
|
vertical: "vertical";
|
|
57
|
+
horizontal: "horizontal";
|
|
58
58
|
}>>;
|
|
59
59
|
menuItems: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>>>;
|
|
60
60
|
startChildrenIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { MenuPickerProps } from './MenuPropsSchema';
|
|
2
|
-
|
|
2
|
+
type MenuReaderProps = MenuPickerProps & {
|
|
3
|
+
bare?: {
|
|
4
|
+
toggleId: string;
|
|
5
|
+
listId: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const MenuReader: ({ props: p }: MenuReaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
9
|
export default MenuReader;
|
|
@@ -32,9 +32,9 @@ export declare const PaginationPropsSchema: z.ZodObject<{
|
|
|
32
32
|
rowsGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
33
33
|
controlGap: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
34
34
|
controlAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
35
|
-
center: "center";
|
|
36
|
-
left: "left";
|
|
37
35
|
right: "right";
|
|
36
|
+
left: "left";
|
|
37
|
+
center: "center";
|
|
38
38
|
"space-between": "space-between";
|
|
39
39
|
}>>>;
|
|
40
40
|
buttonSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -64,14 +64,14 @@ export declare const PaginationPropsSchema: z.ZodObject<{
|
|
|
64
64
|
rowsCountTablet: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
65
65
|
rowsCountMobile: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
66
66
|
contentAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
bottom: "bottom";
|
|
68
67
|
top: "top";
|
|
68
|
+
bottom: "bottom";
|
|
69
69
|
middle: "middle";
|
|
70
70
|
}>>>;
|
|
71
71
|
horizontalAlignment: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
center: "center";
|
|
73
|
-
left: "left";
|
|
74
72
|
right: "right";
|
|
73
|
+
left: "left";
|
|
74
|
+
center: "center";
|
|
75
75
|
}>>>;
|
|
76
76
|
cellsPerPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
77
77
|
repeatableEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -34,9 +34,9 @@ export declare const PricingAccordionPropsSchema: z.ZodObject<{
|
|
|
34
34
|
cardFontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
35
35
|
cardFontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
36
|
cardTextAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
37
|
-
center: "center";
|
|
38
|
-
left: "left";
|
|
39
37
|
right: "right";
|
|
38
|
+
left: "left";
|
|
39
|
+
center: "center";
|
|
40
40
|
}>>>;
|
|
41
41
|
cardHoverBgColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
42
42
|
cardHoverShadow: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -10,9 +10,9 @@ export declare const RatingPropsSchema: z.ZodObject<{
|
|
|
10
10
|
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
11
|
fontWeight: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
center: "center";
|
|
14
|
-
left: "left";
|
|
15
13
|
right: "right";
|
|
14
|
+
left: "left";
|
|
15
|
+
center: "center";
|
|
16
16
|
}>>>;
|
|
17
17
|
padding: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
18
18
|
top: z.ZodNumber;
|
|
@@ -14,9 +14,9 @@ export declare const SkipLinkPropsSchema: z.ZodObject<{
|
|
|
14
14
|
left: z.ZodNumber;
|
|
15
15
|
}, z.core.$strip>>>;
|
|
16
16
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
center: "center";
|
|
18
|
-
left: "left";
|
|
19
17
|
right: "right";
|
|
18
|
+
left: "left";
|
|
19
|
+
center: "center";
|
|
20
20
|
}>>>;
|
|
21
21
|
}, z.core.$strip>>>;
|
|
22
22
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -14,9 +14,9 @@ export declare const TablePropsSchema: z.ZodObject<{
|
|
|
14
14
|
left: z.ZodNumber;
|
|
15
15
|
}, z.core.$strip>>>;
|
|
16
16
|
textAlign: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
center: "center";
|
|
18
|
-
left: "left";
|
|
19
17
|
right: "right";
|
|
18
|
+
left: "left";
|
|
19
|
+
center: "center";
|
|
20
20
|
}>>>;
|
|
21
21
|
fontSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
22
|
fontFamily: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -43,16 +43,16 @@ export declare const TabsBlockPropsSchema: z.ZodObject<{
|
|
|
43
43
|
}, z.core.$strip>>>;
|
|
44
44
|
props: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
45
45
|
orientation: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
46
|
-
horizontal: "horizontal";
|
|
47
46
|
vertical: "vertical";
|
|
47
|
+
horizontal: "horizontal";
|
|
48
48
|
}>>>;
|
|
49
49
|
orientationTablet: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
50
|
-
horizontal: "horizontal";
|
|
51
50
|
vertical: "vertical";
|
|
51
|
+
horizontal: "horizontal";
|
|
52
52
|
}>>>;
|
|
53
53
|
orientationMobile: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
horizontal: "horizontal";
|
|
55
54
|
vertical: "vertical";
|
|
55
|
+
horizontal: "horizontal";
|
|
56
56
|
}>>>;
|
|
57
57
|
behavior: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
58
58
|
showSelectedSection: "showSelectedSection";
|
|
@@ -4,6 +4,7 @@ export declare const TimerPropsSchema: z.ZodObject<{
|
|
|
4
4
|
backgroundColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
5
|
textColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
6
|
accentColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
numberColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
8
|
borderColor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
9
|
borderRadius: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
9
10
|
topLeft: z.ZodNumber;
|
|
@@ -6,6 +6,7 @@ type Props = {
|
|
|
6
6
|
showLabels: boolean;
|
|
7
7
|
accentColor?: string | null;
|
|
8
8
|
textColor?: string | null;
|
|
9
|
+
numberColor?: string | null;
|
|
9
10
|
};
|
|
10
|
-
export default function CircularProgressView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function CircularProgressView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, numberColor, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -6,6 +6,7 @@ type Props = {
|
|
|
6
6
|
showLabels: boolean;
|
|
7
7
|
accentColor?: string | null;
|
|
8
8
|
textColor?: string | null;
|
|
9
|
+
numberColor?: string | null;
|
|
9
10
|
};
|
|
10
|
-
export default function DigitalFlipView({ days, hours, minutes, seconds, showLabels, accentColor, textColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function DigitalFlipView({ days, hours, minutes, seconds, showLabels, accentColor, textColor, numberColor }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Per-block animation config (see AnimationSection.tsx sidebar UI,
|
|
4
|
+
* animationCss.ts keyframes, and Reader/core.tsx's `data-animate-*`
|
|
5
|
+
* attributes). Shared here so Image, Container, Button, Logo, Avatar all
|
|
6
|
+
* validate against the same shape.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ANIMATION_SCHEMA: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9
|
+
type: z.ZodEnum<{
|
|
10
|
+
none: "none";
|
|
11
|
+
"fade-in": "fade-in";
|
|
12
|
+
"slide-left": "slide-left";
|
|
13
|
+
"slide-right": "slide-right";
|
|
14
|
+
"slide-up": "slide-up";
|
|
15
|
+
"slide-down": "slide-down";
|
|
16
|
+
"zoom-in": "zoom-in";
|
|
17
|
+
bounce: "bounce";
|
|
18
|
+
}>;
|
|
19
|
+
trigger: z.ZodEnum<{
|
|
20
|
+
load: "load";
|
|
21
|
+
scroll: "scroll";
|
|
22
|
+
hover: "hover";
|
|
23
|
+
click: "click";
|
|
24
|
+
}>;
|
|
25
|
+
speed: z.ZodEnum<{
|
|
26
|
+
slow: "slow";
|
|
27
|
+
medium: "medium";
|
|
28
|
+
fast: "fast";
|
|
29
|
+
}>;
|
|
30
|
+
delay: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
31
|
+
disableOnMobile: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
32
|
+
}, z.core.$strip>>>;
|