@cntrl-site/components 1.0.12-alpha.2 → 1.0.12-alpha.21
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/Form/Form.d.ts +2 -1
- package/dist/Components/Form/FormComponent.d.ts +3 -15
- package/dist/Components/Grid/Grid.d.ts +13 -1
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -1
- package/dist/Components/LightboxJournal/LightboxJournal.d.ts +101 -0
- package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +44 -0
- package/dist/Components/LightboxStrip/LightboxStrip.d.ts +106 -0
- package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +44 -0
- package/dist/Components/List/List.d.ts +14 -9
- 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 +9881 -6159
- package/dist/index.mjs +17205 -10813
- 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.
|
|
@@ -4,10 +4,11 @@ type FormProps = {
|
|
|
4
4
|
settings: FormSettings;
|
|
5
5
|
content?: unknown;
|
|
6
6
|
isEditor?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
activeEvent: string | undefined;
|
|
8
9
|
onUpdateSettings?: (settings: FormSettings) => void;
|
|
9
10
|
} & CommonComponentProps;
|
|
10
|
-
export declare function Form({ settings, isEditor, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function Form({ settings, isEditor, isEditMode, metadata, activeEvent }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export type FormFieldType = 'text' | 'textarea' | 'phone' | 'email';
|
|
12
13
|
export type FormFieldItem = {
|
|
13
14
|
name: string;
|
|
@@ -701,23 +701,11 @@ export declare const FormComponent: {
|
|
|
701
701
|
} | {
|
|
702
702
|
type: "group";
|
|
703
703
|
title: string;
|
|
704
|
-
items:
|
|
704
|
+
items: {
|
|
705
705
|
type: "row";
|
|
706
706
|
title: string;
|
|
707
|
-
items:
|
|
708
|
-
|
|
709
|
-
title: string;
|
|
710
|
-
items: string[];
|
|
711
|
-
}[];
|
|
712
|
-
} | {
|
|
713
|
-
type: "group";
|
|
714
|
-
title: string;
|
|
715
|
-
items: {
|
|
716
|
-
type: "row";
|
|
717
|
-
title: string;
|
|
718
|
-
items: string[];
|
|
719
|
-
}[];
|
|
720
|
-
})[];
|
|
707
|
+
items: string[];
|
|
708
|
+
}[];
|
|
721
709
|
})[];
|
|
722
710
|
} | {
|
|
723
711
|
id: string;
|
|
@@ -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 {};
|
|
@@ -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;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
+
import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
|
|
4
|
+
export type LightboxJournalImage = {
|
|
5
|
+
url: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
objectFit?: 'cover' | 'contain';
|
|
8
|
+
};
|
|
9
|
+
export type LightboxJournalItem = {
|
|
10
|
+
title1: string;
|
|
11
|
+
title2: string;
|
|
12
|
+
title3: string;
|
|
13
|
+
image: LightboxJournalImage[];
|
|
14
|
+
};
|
|
15
|
+
export declare const JOURNAL_TEXT_STYLE_PREFIXES: readonly ["title1", "title2", "title3", "count"];
|
|
16
|
+
export type JournalTextStylePrefix = typeof JOURNAL_TEXT_STYLE_PREFIXES[number];
|
|
17
|
+
export declare const JOURNAL_GLOBAL_TEXT_STYLE_KEYS: readonly ["fontFamily", "fontSettings", "fontSize", "lineHeight", "letterSpacing", "wordSpacing", "textAlign", "textAppearance"];
|
|
18
|
+
export type JournalGlobalTextStyleKey = typeof JOURNAL_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
19
|
+
export declare function getJournalTextStyleSettingKey(prefix: JournalTextStylePrefix, globalKey: JournalGlobalTextStyleKey): string;
|
|
20
|
+
export declare const JOURNAL_TEXT_STYLE_TAB_LABELS: Record<JournalTextStylePrefix, string>;
|
|
21
|
+
export declare function createJournalTextStyleTabContentItems(prefix: JournalTextStylePrefix): LayoutItem[];
|
|
22
|
+
export declare function createJournalTextStylePanelTab(): LayoutTab;
|
|
23
|
+
type LightboxJournalProps = {
|
|
24
|
+
settings: LightboxJournalSettings;
|
|
25
|
+
content?: LightboxJournalItem[];
|
|
26
|
+
isEditor?: boolean;
|
|
27
|
+
isEditMode?: boolean;
|
|
28
|
+
isPreviewMode?: boolean;
|
|
29
|
+
portalId?: string;
|
|
30
|
+
} & CommonComponentProps;
|
|
31
|
+
export declare const LightboxJournal: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxJournalProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export type LightboxJournalSettings = {
|
|
33
|
+
cover: string | null;
|
|
34
|
+
coverFit: 'cover' | 'fit';
|
|
35
|
+
type: 'A' | 'B';
|
|
36
|
+
maxWidth: number;
|
|
37
|
+
maxHeight: number;
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
objectFit: 'cover' | 'fit';
|
|
40
|
+
imageGap?: number;
|
|
41
|
+
textMaxWidth: number;
|
|
42
|
+
textTransition: 'none' | 'fade';
|
|
43
|
+
titlesGap?: number;
|
|
44
|
+
countCloseGap?: number;
|
|
45
|
+
title1Color: string;
|
|
46
|
+
title2Color: string;
|
|
47
|
+
title3Color: string;
|
|
48
|
+
countColor: string;
|
|
49
|
+
title1FontFamily?: string;
|
|
50
|
+
title1FontSettings?: {
|
|
51
|
+
fontWeight: number;
|
|
52
|
+
fontStyle: string;
|
|
53
|
+
};
|
|
54
|
+
title1FontSize?: number;
|
|
55
|
+
title1LineHeight?: number;
|
|
56
|
+
title1LetterSpacing?: number;
|
|
57
|
+
title1WordSpacing?: number;
|
|
58
|
+
title1TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
59
|
+
title1TextAppearance?: TextStyles['textAppearance'];
|
|
60
|
+
title2FontFamily?: string;
|
|
61
|
+
title2FontSettings?: {
|
|
62
|
+
fontWeight: number;
|
|
63
|
+
fontStyle: string;
|
|
64
|
+
};
|
|
65
|
+
title2FontSize?: number;
|
|
66
|
+
title2LineHeight?: number;
|
|
67
|
+
title2LetterSpacing?: number;
|
|
68
|
+
title2WordSpacing?: number;
|
|
69
|
+
title2TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
70
|
+
title2TextAppearance?: TextStyles['textAppearance'];
|
|
71
|
+
title3FontFamily?: string;
|
|
72
|
+
title3FontSettings?: {
|
|
73
|
+
fontWeight: number;
|
|
74
|
+
fontStyle: string;
|
|
75
|
+
};
|
|
76
|
+
title3FontSize?: number;
|
|
77
|
+
title3LineHeight?: number;
|
|
78
|
+
title3LetterSpacing?: number;
|
|
79
|
+
title3WordSpacing?: number;
|
|
80
|
+
title3TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
81
|
+
title3TextAppearance?: TextStyles['textAppearance'];
|
|
82
|
+
countFontFamily?: string;
|
|
83
|
+
countFontSettings?: {
|
|
84
|
+
fontWeight: number;
|
|
85
|
+
fontStyle: string;
|
|
86
|
+
};
|
|
87
|
+
countFontSize?: number;
|
|
88
|
+
countLineHeight?: number;
|
|
89
|
+
countLetterSpacing?: number;
|
|
90
|
+
countWordSpacing?: number;
|
|
91
|
+
countTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
92
|
+
countTextAppearance?: TextStyles['textAppearance'];
|
|
93
|
+
contentMarginTop: number;
|
|
94
|
+
contentMarginLeft: number;
|
|
95
|
+
contentMarginRight: number;
|
|
96
|
+
closeIcon: string | null;
|
|
97
|
+
closeIconMaxWidth: number;
|
|
98
|
+
closeIconColor: string;
|
|
99
|
+
closeIconHoverColor: string;
|
|
100
|
+
};
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
|
+
export declare const LightboxJournalComponent: {
|
|
3
|
+
element: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: {
|
|
4
|
+
settings: import('./LightboxJournal').LightboxJournalSettings;
|
|
5
|
+
content?: import('./LightboxJournal').LightboxJournalItem[];
|
|
6
|
+
isEditor?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
8
|
+
isPreviewMode?: boolean;
|
|
9
|
+
portalId?: string;
|
|
10
|
+
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
category: string;
|
|
14
|
+
version: number;
|
|
15
|
+
defaultSize: {
|
|
16
|
+
d: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
m: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
preview: {
|
|
26
|
+
type: "image";
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
schema: ComponentSchemaV1;
|
|
30
|
+
sourceCode: string;
|
|
31
|
+
assetsPaths: {
|
|
32
|
+
content: {
|
|
33
|
+
path: string;
|
|
34
|
+
placeholderEnabled: boolean;
|
|
35
|
+
}[];
|
|
36
|
+
parameters: never[];
|
|
37
|
+
};
|
|
38
|
+
fontSettingsPaths: {
|
|
39
|
+
content: never[];
|
|
40
|
+
parameters: {
|
|
41
|
+
path: string;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
+
import { LayoutItem, LayoutTab } from '../../types/SchemaV1';
|
|
4
|
+
export type LightboxStripItem = {
|
|
5
|
+
image: {
|
|
6
|
+
url: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
objectFit?: 'cover' | 'contain';
|
|
9
|
+
};
|
|
10
|
+
title1?: string;
|
|
11
|
+
title2?: string;
|
|
12
|
+
title3?: string;
|
|
13
|
+
};
|
|
14
|
+
type LightboxStripLegacyItem = LightboxStripItem & {
|
|
15
|
+
text?: Array<{
|
|
16
|
+
type?: string;
|
|
17
|
+
children?: Array<{
|
|
18
|
+
text?: string;
|
|
19
|
+
}>;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
export type SharedStripTitles = {
|
|
23
|
+
title1: string;
|
|
24
|
+
title2: string;
|
|
25
|
+
title3: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function extractTitlesFromLegacyText(text: LightboxStripLegacyItem['text']): Partial<SharedStripTitles>;
|
|
28
|
+
export declare function resolveSharedStripTitles(items: LightboxStripLegacyItem[]): SharedStripTitles;
|
|
29
|
+
export type LightboxStripSettings = {
|
|
30
|
+
cover: string | null;
|
|
31
|
+
coverFit: 'cover' | 'fit';
|
|
32
|
+
type: 'A' | 'B';
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
contentBackgroundColor?: string;
|
|
35
|
+
thumbnailVisibility: 'on' | 'off';
|
|
36
|
+
thumbnailObjectFit: 'cover' | 'contain';
|
|
37
|
+
thumbnailTrigger: 'click' | 'hover';
|
|
38
|
+
thumbnailActive: 'invert' | 'grayscale' | 'scale-up' | 'opacity';
|
|
39
|
+
thumbnailGap: number;
|
|
40
|
+
thumbnailMarginBottom?: number;
|
|
41
|
+
imageGap?: number;
|
|
42
|
+
textMaxWidth: number;
|
|
43
|
+
title1Gap?: number;
|
|
44
|
+
title2Gap?: number;
|
|
45
|
+
title1Color: string;
|
|
46
|
+
title2Color: string;
|
|
47
|
+
title3Color: string;
|
|
48
|
+
title1FontFamily?: string;
|
|
49
|
+
title1FontSettings?: {
|
|
50
|
+
fontWeight: number;
|
|
51
|
+
fontStyle: string;
|
|
52
|
+
};
|
|
53
|
+
title1FontSize?: number;
|
|
54
|
+
title1LineHeight?: number;
|
|
55
|
+
title1LetterSpacing?: number;
|
|
56
|
+
title1WordSpacing?: number;
|
|
57
|
+
title1TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
58
|
+
title1TextAppearance?: TextStyles['textAppearance'];
|
|
59
|
+
title2FontFamily?: string;
|
|
60
|
+
title2FontSettings?: {
|
|
61
|
+
fontWeight: number;
|
|
62
|
+
fontStyle: string;
|
|
63
|
+
};
|
|
64
|
+
title2FontSize?: number;
|
|
65
|
+
title2LineHeight?: number;
|
|
66
|
+
title2LetterSpacing?: number;
|
|
67
|
+
title2WordSpacing?: number;
|
|
68
|
+
title2TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
69
|
+
title2TextAppearance?: TextStyles['textAppearance'];
|
|
70
|
+
title3FontFamily?: string;
|
|
71
|
+
title3FontSettings?: {
|
|
72
|
+
fontWeight: number;
|
|
73
|
+
fontStyle: string;
|
|
74
|
+
};
|
|
75
|
+
title3FontSize?: number;
|
|
76
|
+
title3LineHeight?: number;
|
|
77
|
+
title3LetterSpacing?: number;
|
|
78
|
+
title3WordSpacing?: number;
|
|
79
|
+
title3TextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
80
|
+
title3TextAppearance?: TextStyles['textAppearance'];
|
|
81
|
+
contentMarginTop: number;
|
|
82
|
+
contentMarginLeft: number;
|
|
83
|
+
contentMarginRight: number;
|
|
84
|
+
closeIcon: string | null;
|
|
85
|
+
closeIconMaxWidth: number;
|
|
86
|
+
closeIconColor: string;
|
|
87
|
+
closeIconHoverColor: string;
|
|
88
|
+
};
|
|
89
|
+
export declare const STRIP_TEXT_STYLE_PREFIXES: readonly ["title1", "title2", "title3"];
|
|
90
|
+
export type StripTextStylePrefix = typeof STRIP_TEXT_STYLE_PREFIXES[number];
|
|
91
|
+
export declare const STRIP_GLOBAL_TEXT_STYLE_KEYS: readonly ["fontFamily", "fontSettings", "fontSize", "lineHeight", "letterSpacing", "wordSpacing", "textAlign", "textAppearance"];
|
|
92
|
+
export type StripGlobalTextStyleKey = typeof STRIP_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
93
|
+
export declare function getStripTextStyleSettingKey(prefix: StripTextStylePrefix, globalKey: StripGlobalTextStyleKey): string;
|
|
94
|
+
export declare const STRIP_TEXT_STYLE_TAB_LABELS: Record<StripTextStylePrefix, string>;
|
|
95
|
+
export declare function createStripTextStyleTabContentItems(prefix: StripTextStylePrefix): LayoutItem[];
|
|
96
|
+
export declare function createStripTextStylePanelTab(): LayoutTab;
|
|
97
|
+
type LightboxStripProps = {
|
|
98
|
+
settings: LightboxStripSettings;
|
|
99
|
+
content?: LightboxStripItem[];
|
|
100
|
+
isEditor?: boolean;
|
|
101
|
+
isEditMode?: boolean;
|
|
102
|
+
isPreviewMode?: boolean;
|
|
103
|
+
portalId?: string;
|
|
104
|
+
} & CommonComponentProps;
|
|
105
|
+
export declare const LightboxStrip: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxStripProps) => import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
|
+
export declare const LightboxStripComponent: {
|
|
3
|
+
element: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: {
|
|
4
|
+
settings: import('./LightboxStrip').LightboxStripSettings;
|
|
5
|
+
content?: import('./LightboxStrip').LightboxStripItem[];
|
|
6
|
+
isEditor?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
8
|
+
isPreviewMode?: boolean;
|
|
9
|
+
portalId?: string;
|
|
10
|
+
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
category: string;
|
|
14
|
+
version: number;
|
|
15
|
+
defaultSize: {
|
|
16
|
+
d: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
m: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
preview: {
|
|
26
|
+
type: "image";
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
schema: ComponentSchemaV1;
|
|
30
|
+
sourceCode: string;
|
|
31
|
+
assetsPaths: {
|
|
32
|
+
content: {
|
|
33
|
+
path: string;
|
|
34
|
+
placeholderEnabled: boolean;
|
|
35
|
+
}[];
|
|
36
|
+
parameters: never[];
|
|
37
|
+
};
|
|
38
|
+
fontSettingsPaths: {
|
|
39
|
+
content: never[];
|
|
40
|
+
parameters: {
|
|
41
|
+
path: string;
|
|
42
|
+
}[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -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,6 +50,7 @@ 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'];
|
|
49
55
|
cutLabelTextFontFamily?: string;
|
|
50
56
|
cutLabelTextFontSettings?: ListFontSettings;
|
|
@@ -52,7 +58,9 @@ type ListColumnTextStyleOverrides = {
|
|
|
52
58
|
cutLabelTextLineHeight?: number;
|
|
53
59
|
cutLabelTextLetterSpacing?: number;
|
|
54
60
|
cutLabelTextWordSpacing?: number;
|
|
61
|
+
cutLabelTextTextAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
55
62
|
cutLabelTextTextAppearance?: TextStyles['textAppearance'];
|
|
63
|
+
cutLabelVerticalAlign?: string;
|
|
56
64
|
};
|
|
57
65
|
export type ListColumnVerticalAlignKey = `${ListColumnPrefix}VerticalAlign`;
|
|
58
66
|
export type ListSettings = {
|
|
@@ -99,13 +107,6 @@ export type ListSettings = {
|
|
|
99
107
|
columnsOrder?: string[];
|
|
100
108
|
textPaddingLR?: number;
|
|
101
109
|
textColor: string;
|
|
102
|
-
textFontFamily: string;
|
|
103
|
-
textFontSettings?: ListFontSettings;
|
|
104
|
-
textFontSize?: number;
|
|
105
|
-
textLineHeight?: number;
|
|
106
|
-
textLetterSpacing?: number;
|
|
107
|
-
textWordSpacing?: number;
|
|
108
|
-
textTextAppearance?: TextStyles['textAppearance'];
|
|
109
110
|
backgroundColor: string;
|
|
110
111
|
dividerColor: string;
|
|
111
112
|
textHoverColor: string;
|
|
@@ -131,6 +132,7 @@ type ListProps = {
|
|
|
131
132
|
content?: ListContentItem[];
|
|
132
133
|
isEditor?: boolean;
|
|
133
134
|
isPreviewMode?: boolean;
|
|
135
|
+
isEditMode?: boolean;
|
|
134
136
|
activeEvent: string | undefined;
|
|
135
137
|
onUpdateSettings?: (settings: ListSettings) => void;
|
|
136
138
|
} & CommonComponentProps;
|
|
@@ -146,9 +148,12 @@ export declare function isBaselineAnchorColumnVerticalAlign(value: string | unde
|
|
|
146
148
|
export declare function parseBaselineAnchorLetter(value: string | undefined): string | null;
|
|
147
149
|
export declare function isValidColumnBaselineVAlign(value: string | undefined, forColumnLetter: string, settings: ListSettings): boolean;
|
|
148
150
|
export declare function getColumnVerticalAlignOptionsForLetter(columnLetter: string, settings: ListSettings): string[];
|
|
149
|
-
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"];
|
|
150
152
|
export type ListGlobalTextStyleKey = typeof LIST_GLOBAL_TEXT_STYLE_KEYS[number];
|
|
151
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;
|
|
152
157
|
declare const COLUMN_WIDTH_KEYS: readonly ["AColumnWidth", "BColumnWidth", "CColumnWidth", "DColumnWidth", "EColumnWidth"];
|
|
153
158
|
type ColumnWidthKey = typeof COLUMN_WIDTH_KEYS[number];
|
|
154
159
|
export declare function getListMinColumnWidth(designWidthPx?: number): number;
|
|
@@ -163,5 +168,5 @@ export declare function resolveListColumnWidths(columns: number, wrapperWidth: n
|
|
|
163
168
|
export declare function applyListSettingsChange(nextSettings: ListSettings, prevSettings: ListSettings, options?: {
|
|
164
169
|
designWidth?: number;
|
|
165
170
|
}): ListSettings;
|
|
166
|
-
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;
|
|
167
172
|
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';
|