@cntrl-site/components 1.0.12-alpha.0 → 1.0.12-alpha.10
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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/Components/Grid/Grid.d.ts +13 -1
- package/dist/Components/Grid/GridComponent.d.ts +1 -15
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -1
- package/dist/Components/List/List.d.ts +26 -11
- package/dist/Components/List/ListComponent.d.ts +1 -15
- package/dist/Components/Marquee/Marquee.d.ts +8 -3
- package/dist/Components/Marquee/MarqueeComponent.d.ts +2 -1
- package/dist/Components/TestimonialGrid/TestimonialGrid.d.ts +2 -1
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +2 -1
- package/dist/Components/TestimonialSingle/TestimonialSingle.d.ts +2 -1
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +2 -1
- package/dist/Components/utils/textStylesToCss.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4675 -4188
- package/dist/index.mjs +9649 -8784
- package/dist/types/SchemaV1.d.ts +6 -1
- package/package.json +85 -85
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 GX Platform
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 GX Platform
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Control Components
|
|
2
|
-
|
|
1
|
+
# Control Components
|
|
2
|
+
|
|
3
3
|
This is custom components for control editor and public websites.
|
|
@@ -6,10 +6,11 @@ type GridProps = {
|
|
|
6
6
|
content?: any;
|
|
7
7
|
isEditor?: boolean;
|
|
8
8
|
isPreviewMode?: boolean;
|
|
9
|
+
isEditMode?: boolean;
|
|
9
10
|
activeEvent: string | undefined;
|
|
10
11
|
onUpdateSettings?: (settings: GridSettings) => void;
|
|
11
12
|
} & CommonComponentProps;
|
|
12
|
-
export declare function Grid({ settings, content, isEditor, isPreviewMode, metadata, activeEvent, layoutId }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function Grid({ settings, content, isEditor, isPreviewMode, isEditMode, metadata, activeEvent, layoutId }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
type GridLayoutConfig = {
|
|
14
15
|
entryWidth: number;
|
|
15
16
|
horizontalGap: number;
|
|
@@ -37,6 +38,7 @@ type GridSettings = {
|
|
|
37
38
|
subtitleMarginTop: number;
|
|
38
39
|
titleColor: string;
|
|
39
40
|
subtitleColor: string;
|
|
41
|
+
lightboxCounterColor: string;
|
|
40
42
|
titleFontFamily: string;
|
|
41
43
|
titleFontSettings?: {
|
|
42
44
|
fontWeight: number;
|
|
@@ -57,5 +59,15 @@ type GridSettings = {
|
|
|
57
59
|
subtitleLetterSpacing?: number;
|
|
58
60
|
subtitleWordSpacing?: number;
|
|
59
61
|
subtitleTextAppearance?: TextStyles['textAppearance'];
|
|
62
|
+
lightboxCounterFontFamily: string;
|
|
63
|
+
lightboxCounterFontSettings?: {
|
|
64
|
+
fontWeight: number;
|
|
65
|
+
fontStyle: string;
|
|
66
|
+
};
|
|
67
|
+
lightboxCounterFontSize?: number;
|
|
68
|
+
lightboxCounterLineHeight?: number;
|
|
69
|
+
lightboxCounterLetterSpacing?: number;
|
|
70
|
+
lightboxCounterWordSpacing?: number;
|
|
71
|
+
lightboxCounterTextAppearance?: TextStyles['textAppearance'];
|
|
60
72
|
};
|
|
61
73
|
export {};
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { Grid } from './Grid';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
-
type GridSchema = ComponentSchemaV1 & {
|
|
4
|
-
properties: {
|
|
5
|
-
content: {
|
|
6
|
-
type: 'array';
|
|
7
|
-
settings?: {
|
|
8
|
-
addItemFromFileExplorer?: boolean;
|
|
9
|
-
addItemWithoutImage?: boolean;
|
|
10
|
-
};
|
|
11
|
-
items: any;
|
|
12
|
-
default: any[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
3
|
export declare const GridComponent: {
|
|
17
4
|
element: typeof Grid;
|
|
18
5
|
id: string;
|
|
@@ -37,7 +24,6 @@ export declare const GridComponent: {
|
|
|
37
24
|
}[];
|
|
38
25
|
parameters: never[];
|
|
39
26
|
};
|
|
40
|
-
schema:
|
|
27
|
+
schema: ComponentSchemaV1;
|
|
41
28
|
sourceCode: string;
|
|
42
29
|
};
|
|
43
|
-
export {};
|
|
@@ -7,8 +7,9 @@ type LightboxGalleryProps = {
|
|
|
7
7
|
portalId: string;
|
|
8
8
|
activeEvent: 'close' | 'open';
|
|
9
9
|
isEditor?: boolean;
|
|
10
|
+
isPreviewMode?: boolean;
|
|
10
11
|
};
|
|
11
|
-
export declare const LightboxGallery: ({ settings, content, styles, portalId, activeEvent, isEditor }: LightboxGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const LightboxGallery: ({ settings, content, styles, portalId, activeEvent, isEditor, isPreviewMode }: LightboxGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
type LightboxImage = {
|
|
13
14
|
image: {
|
|
14
15
|
url: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
2
|
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
+
import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
|
|
3
4
|
type ListFontSettings = {
|
|
4
5
|
fontWeight: number;
|
|
5
6
|
fontStyle: string;
|
|
@@ -13,6 +14,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
13
14
|
AColumnTextLineHeight?: number;
|
|
14
15
|
AColumnTextLetterSpacing?: number;
|
|
15
16
|
AColumnTextWordSpacing?: number;
|
|
17
|
+
AColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
16
18
|
AColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
17
19
|
BColumnVerticalAlign?: string;
|
|
18
20
|
BColumnTextFontFamily?: string;
|
|
@@ -21,6 +23,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
21
23
|
BColumnTextLineHeight?: number;
|
|
22
24
|
BColumnTextLetterSpacing?: number;
|
|
23
25
|
BColumnTextWordSpacing?: number;
|
|
26
|
+
BColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
24
27
|
BColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
25
28
|
CColumnVerticalAlign?: string;
|
|
26
29
|
CColumnTextFontFamily?: string;
|
|
@@ -29,6 +32,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
29
32
|
CColumnTextLineHeight?: number;
|
|
30
33
|
CColumnTextLetterSpacing?: number;
|
|
31
34
|
CColumnTextWordSpacing?: number;
|
|
35
|
+
CColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
32
36
|
CColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
33
37
|
DColumnVerticalAlign?: string;
|
|
34
38
|
DColumnTextFontFamily?: string;
|
|
@@ -37,6 +41,7 @@ type ListColumnTextStyleOverrides = {
|
|
|
37
41
|
DColumnTextLineHeight?: number;
|
|
38
42
|
DColumnTextLetterSpacing?: number;
|
|
39
43
|
DColumnTextWordSpacing?: number;
|
|
44
|
+
DColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
40
45
|
DColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
41
46
|
EColumnVerticalAlign?: string;
|
|
42
47
|
EColumnTextFontFamily?: string;
|
|
@@ -45,7 +50,17 @@ type ListColumnTextStyleOverrides = {
|
|
|
45
50
|
EColumnTextLineHeight?: number;
|
|
46
51
|
EColumnTextLetterSpacing?: number;
|
|
47
52
|
EColumnTextWordSpacing?: number;
|
|
53
|
+
EColumnTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
48
54
|
EColumnTextTextAppearance?: TextStyles['textAppearance'];
|
|
55
|
+
cutLabelTextFontFamily?: string;
|
|
56
|
+
cutLabelTextFontSettings?: ListFontSettings;
|
|
57
|
+
cutLabelTextFontSize?: number;
|
|
58
|
+
cutLabelTextLineHeight?: number;
|
|
59
|
+
cutLabelTextLetterSpacing?: number;
|
|
60
|
+
cutLabelTextWordSpacing?: number;
|
|
61
|
+
cutLabelTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
62
|
+
cutLabelTextTextAppearance?: TextStyles['textAppearance'];
|
|
63
|
+
cutLabelVerticalAlign?: string;
|
|
49
64
|
};
|
|
50
65
|
export type ListColumnVerticalAlignKey = `${ListColumnPrefix}VerticalAlign`;
|
|
51
66
|
export type ListSettings = {
|
|
@@ -92,13 +107,6 @@ export type ListSettings = {
|
|
|
92
107
|
columnsOrder?: string[];
|
|
93
108
|
textPaddingLR?: number;
|
|
94
109
|
textColor: string;
|
|
95
|
-
textFontFamily: string;
|
|
96
|
-
textFontSettings?: ListFontSettings;
|
|
97
|
-
textFontSize?: number;
|
|
98
|
-
textLineHeight?: number;
|
|
99
|
-
textLetterSpacing?: number;
|
|
100
|
-
textWordSpacing?: number;
|
|
101
|
-
textTextAppearance?: TextStyles['textAppearance'];
|
|
102
110
|
backgroundColor: string;
|
|
103
111
|
dividerColor: string;
|
|
104
112
|
textHoverColor: string;
|
|
@@ -124,21 +132,28 @@ type ListProps = {
|
|
|
124
132
|
content?: ListContentItem[];
|
|
125
133
|
isEditor?: boolean;
|
|
126
134
|
isPreviewMode?: boolean;
|
|
135
|
+
isEditMode?: boolean;
|
|
127
136
|
activeEvent: string | undefined;
|
|
128
137
|
onUpdateSettings?: (settings: ListSettings) => void;
|
|
129
138
|
} & CommonComponentProps;
|
|
130
139
|
export declare const COLUMN_CONTENT_KEYS: readonly ["AColumn", "BColumnWidth", "CColumnWidth", "DColumnWidth", "EColumnWidth"];
|
|
131
140
|
export declare const COLUMN_TEXT_PREFIXES: readonly ["AColumn", "BColumn", "CColumn", "DColumn", "EColumn"];
|
|
141
|
+
export declare const CUT_LABEL_TEXT_PREFIX: "cutLabel";
|
|
142
|
+
export declare const LIST_TEXT_STYLE_PREFIXES: readonly ["AColumn", "BColumn", "CColumn", "DColumn", "EColumn", "cutLabel"];
|
|
143
|
+
export type ListTextStylePrefix = typeof LIST_TEXT_STYLE_PREFIXES[number];
|
|
132
144
|
export declare const LIST_COLUMN_LETTERS: readonly ["A", "B", "C", "D", "E"];
|
|
133
145
|
export declare function getListColumnVerticalAlignSettingKey(columnLetter: string): string;
|
|
134
146
|
export declare const COLUMN_VALIGN_BASIC_OPTIONS: readonly ["Top", "Center", "Bottom"];
|
|
135
|
-
export declare function
|
|
147
|
+
export declare function isBaselineAnchorColumnVerticalAlign(value: string | undefined): boolean;
|
|
136
148
|
export declare function parseBaselineAnchorLetter(value: string | undefined): string | null;
|
|
137
149
|
export declare function isValidColumnBaselineVAlign(value: string | undefined, forColumnLetter: string, settings: ListSettings): boolean;
|
|
138
150
|
export declare function getColumnVerticalAlignOptionsForLetter(columnLetter: string, settings: ListSettings): string[];
|
|
139
|
-
export declare const LIST_GLOBAL_TEXT_STYLE_KEYS: readonly ["textFontFamily", "textFontSettings", "textFontSize", "textLineHeight", "textLetterSpacing", "textWordSpacing", "textTextAppearance"];
|
|
151
|
+
export declare const LIST_GLOBAL_TEXT_STYLE_KEYS: readonly ["textFontFamily", "textFontSettings", "textFontSize", "textLineHeight", "textLetterSpacing", "textWordSpacing", "textTextAlign", "textTextAppearance"];
|
|
140
152
|
export type ListGlobalTextStyleKey = typeof LIST_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
141
|
-
export declare function getListColumnTextSettingKey(prefix:
|
|
153
|
+
export declare function getListColumnTextSettingKey(prefix: ListTextStylePrefix, globalKey: ListGlobalTextStyleKey): string;
|
|
154
|
+
export declare const LIST_TEXT_STYLE_TAB_LABELS: Record<ListTextStylePrefix, string>;
|
|
155
|
+
export declare function createListTextStyleTabContentItems(prefix: ListTextStylePrefix): LayoutItem[];
|
|
156
|
+
export declare function createListTextStylePanelTab(): LayoutTab;
|
|
142
157
|
declare const COLUMN_WIDTH_KEYS: readonly ["AColumnWidth", "BColumnWidth", "CColumnWidth", "DColumnWidth", "EColumnWidth"];
|
|
143
158
|
type ColumnWidthKey = typeof COLUMN_WIDTH_KEYS[number];
|
|
144
159
|
export declare function getListMinColumnWidth(designWidthPx?: number): number;
|
|
@@ -153,5 +168,5 @@ export declare function resolveListColumnWidths(columns: number, wrapperWidth: n
|
|
|
153
168
|
export declare function applyListSettingsChange(nextSettings: ListSettings, prevSettings: ListSettings, options?: {
|
|
154
169
|
designWidth?: number;
|
|
155
170
|
}): ListSettings;
|
|
156
|
-
export declare function List({ settings, content, isEditor, isPreviewMode, activeEvent, layoutId, onUpdateSettings }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
171
|
+
export declare function List({ settings, content, isEditor, isPreviewMode, isEditMode, activeEvent, layoutId, onUpdateSettings }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
157
172
|
export {};
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
import { List } from './List';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
-
type GridSchema = ComponentSchemaV1 & {
|
|
4
|
-
properties: {
|
|
5
|
-
content: {
|
|
6
|
-
type: 'array';
|
|
7
|
-
settings?: {
|
|
8
|
-
addItemFromFileExplorer?: boolean;
|
|
9
|
-
addItemWithoutImage?: boolean;
|
|
10
|
-
};
|
|
11
|
-
items: any;
|
|
12
|
-
default: any[];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
3
|
export declare const ListComponent: {
|
|
17
4
|
element: typeof List;
|
|
18
5
|
id: string;
|
|
@@ -37,7 +24,6 @@ export declare const ListComponent: {
|
|
|
37
24
|
}[];
|
|
38
25
|
parameters: never[];
|
|
39
26
|
};
|
|
40
|
-
schema:
|
|
27
|
+
schema: ComponentSchemaV1;
|
|
41
28
|
sourceCode: string;
|
|
42
29
|
};
|
|
43
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
|
-
export declare const Marquee: ({ settings, content, isEditor, isPreviewMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Marquee: ({ settings, content, isEditor, isPreviewMode, isEditMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export type MarqueeItem = {
|
|
4
4
|
image?: {
|
|
5
5
|
url?: string;
|
|
@@ -11,16 +11,21 @@ export type MarqueeSettings = {
|
|
|
11
11
|
speed: number;
|
|
12
12
|
direction: 'left' | 'right';
|
|
13
13
|
pauseOnHover: 'on' | 'off';
|
|
14
|
-
hoverEffect: 'off' | 'brightness' | 'grayscale' | '
|
|
14
|
+
hoverEffect: 'off' | 'brightness' | 'grayscale' | 'randomize';
|
|
15
15
|
gap: number;
|
|
16
16
|
imageMaxWidth: number;
|
|
17
17
|
imageMaxHeight: number;
|
|
18
|
-
imageFit:
|
|
18
|
+
imageFit: {
|
|
19
|
+
display: 'Fit' | 'Cover';
|
|
20
|
+
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
21
|
+
reversed: boolean;
|
|
22
|
+
};
|
|
19
23
|
};
|
|
20
24
|
type MarqueeProps = {
|
|
21
25
|
settings: MarqueeSettings;
|
|
22
26
|
content?: MarqueeItem[];
|
|
23
27
|
isEditor?: boolean;
|
|
24
28
|
isPreviewMode?: boolean;
|
|
29
|
+
isEditMode?: boolean;
|
|
25
30
|
} & CommonComponentProps;
|
|
26
31
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const MarqueeComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: import('./Marquee').MarqueeSettings;
|
|
5
5
|
content?: import('./Marquee').MarqueeItem[];
|
|
6
6
|
isEditor?: boolean;
|
|
7
7
|
isPreviewMode?: boolean;
|
|
8
|
+
isEditMode?: boolean;
|
|
8
9
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
id: string;
|
|
10
11
|
name: string;
|
|
@@ -4,8 +4,9 @@ type TestimonialsProps = {
|
|
|
4
4
|
content?: TestimonialsItem[];
|
|
5
5
|
isEditor?: boolean;
|
|
6
6
|
isPreviewMode?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
} & CommonComponentProps;
|
|
8
|
-
export declare const TestimonialGrid: ({ settings, content, isEditor, isPreviewMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TestimonialGrid: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export type TestimonialsItem = {
|
|
10
11
|
logo?: {
|
|
11
12
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const TestimonialGridComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: {
|
|
5
5
|
autoplay: "on" | "off";
|
|
6
6
|
speed: number;
|
|
@@ -27,6 +27,7 @@ export declare const TestimonialGridComponent: {
|
|
|
27
27
|
content?: import('./TestimonialGrid').TestimonialsItem[];
|
|
28
28
|
isEditor?: boolean;
|
|
29
29
|
isPreviewMode?: boolean;
|
|
30
|
+
isEditMode?: boolean;
|
|
30
31
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
id: string;
|
|
32
33
|
name: string;
|
|
@@ -4,8 +4,9 @@ type TestimonialsProps = {
|
|
|
4
4
|
content?: TestimonialsItem[];
|
|
5
5
|
isEditor?: boolean;
|
|
6
6
|
isPreviewMode?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
} & CommonComponentProps;
|
|
8
|
-
export declare const TestimonialSingle: ({ settings, content, isEditor, isPreviewMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TestimonialSingle: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export type TestimonialsItem = {
|
|
10
11
|
image?: {
|
|
11
12
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const TestimonialSingleComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: {
|
|
5
5
|
autoplay: "on" | "off";
|
|
6
6
|
delay: number;
|
|
@@ -22,6 +22,7 @@ export declare const TestimonialSingleComponent: {
|
|
|
22
22
|
content?: import('./TestimonialSingle').TestimonialsItem[];
|
|
23
23
|
isEditor?: boolean;
|
|
24
24
|
isPreviewMode?: boolean;
|
|
25
|
+
isEditMode?: boolean;
|
|
25
26
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
27
|
id: string;
|
|
27
28
|
name: string;
|
|
@@ -14,6 +14,7 @@ export type TextStyles = {
|
|
|
14
14
|
textDecoration?: string;
|
|
15
15
|
fontVariant?: string;
|
|
16
16
|
};
|
|
17
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
17
18
|
color: string;
|
|
18
19
|
};
|
|
19
20
|
export declare const normalizeFontFamilyCssValue: (fontFamily?: string) => string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { type Component, isSchemaV1 } from './types/Component';
|
|
2
|
-
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
2
|
+
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
3
3
|
export { components } from './Components/components';
|