@cntrl-site/components 1.0.12-alpha.11 → 1.0.12-alpha.13
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/LightboxJournal/LightboxJournal.d.ts +75 -0
- package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +42 -0
- package/dist/Components/LightboxStrip/LightboxStrip.d.ts +44 -0
- package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +42 -0
- package/dist/Components/List/List.d.ts +0 -1
- package/dist/index.js +2662 -29
- package/dist/index.mjs +8149 -3568
- package/package.json +1 -1
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
+
export type LightboxJournalImage = {
|
|
4
|
+
url: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
objectFit?: 'cover' | 'contain';
|
|
7
|
+
};
|
|
8
|
+
export type LightboxJournalItem = {
|
|
9
|
+
title1: string;
|
|
10
|
+
title2: string;
|
|
11
|
+
title3: string;
|
|
12
|
+
images: LightboxJournalImage[];
|
|
13
|
+
};
|
|
14
|
+
type LightboxJournalProps = {
|
|
15
|
+
settings: LightboxJournalSettings;
|
|
16
|
+
content?: LightboxJournalItem[];
|
|
17
|
+
isEditor?: boolean;
|
|
18
|
+
isEditMode?: boolean;
|
|
19
|
+
isPreviewMode?: boolean;
|
|
20
|
+
portalId?: string;
|
|
21
|
+
} & CommonComponentProps;
|
|
22
|
+
export declare const LightboxJournal: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxJournalProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export type LightboxJournalSettings = {
|
|
24
|
+
cover: string | null;
|
|
25
|
+
coverFit: 'cover' | 'fit';
|
|
26
|
+
maxWidth: number;
|
|
27
|
+
maxHeight: number;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
objectFit: 'cover' | 'fit';
|
|
30
|
+
imageGap?: number;
|
|
31
|
+
textMaxWidth: number;
|
|
32
|
+
textTransition: 'none' | 'fade';
|
|
33
|
+
titlesGap?: number;
|
|
34
|
+
textCountGap?: number;
|
|
35
|
+
countCloseGap?: number;
|
|
36
|
+
fontFamily?: string;
|
|
37
|
+
title1Color: string;
|
|
38
|
+
title2Color: string;
|
|
39
|
+
title3Color: string;
|
|
40
|
+
title1FontSettings?: {
|
|
41
|
+
fontWeight: number;
|
|
42
|
+
fontStyle: string;
|
|
43
|
+
};
|
|
44
|
+
title1FontSize: number;
|
|
45
|
+
title1LineHeight?: number;
|
|
46
|
+
title1LetterSpacing?: number;
|
|
47
|
+
title1WordSpacing?: number;
|
|
48
|
+
title1TextAppearance?: TextStyles['textAppearance'];
|
|
49
|
+
title2FontSettings?: {
|
|
50
|
+
fontWeight: number;
|
|
51
|
+
fontStyle: string;
|
|
52
|
+
};
|
|
53
|
+
title2FontSize: number;
|
|
54
|
+
title2LineHeight?: number;
|
|
55
|
+
title2LetterSpacing?: number;
|
|
56
|
+
title2WordSpacing?: number;
|
|
57
|
+
title2TextAppearance?: TextStyles['textAppearance'];
|
|
58
|
+
title3FontSettings?: {
|
|
59
|
+
fontWeight: number;
|
|
60
|
+
fontStyle: string;
|
|
61
|
+
};
|
|
62
|
+
title3FontSize: number;
|
|
63
|
+
title3LineHeight?: number;
|
|
64
|
+
title3LetterSpacing?: number;
|
|
65
|
+
title3WordSpacing?: number;
|
|
66
|
+
title3TextAppearance?: TextStyles['textAppearance'];
|
|
67
|
+
contentMarginTop: number;
|
|
68
|
+
contentMarginLeft: number;
|
|
69
|
+
contentMarginRight: number;
|
|
70
|
+
closeIcon: string | null;
|
|
71
|
+
closeIconMaxWidth: number;
|
|
72
|
+
closeIconColor: string;
|
|
73
|
+
closeIconHoverColor: string;
|
|
74
|
+
};
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
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: never[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
type LightboxStripProps = {
|
|
3
|
+
settings: LightboxStripSettings;
|
|
4
|
+
content?: LightboxStripItem[];
|
|
5
|
+
isEditor?: boolean;
|
|
6
|
+
isEditMode?: boolean;
|
|
7
|
+
isPreviewMode?: boolean;
|
|
8
|
+
portalId?: string;
|
|
9
|
+
} & CommonComponentProps;
|
|
10
|
+
export declare const LightboxStrip: ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxStripProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type LightboxStripItem = {
|
|
12
|
+
image: {
|
|
13
|
+
url: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
objectFit?: 'cover' | 'contain';
|
|
16
|
+
};
|
|
17
|
+
text?: any[];
|
|
18
|
+
};
|
|
19
|
+
export type LightboxStripSettings = {
|
|
20
|
+
cover: string | null;
|
|
21
|
+
coverFit: 'cover' | 'fit';
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
thumbnailVisibility: 'on' | 'off';
|
|
24
|
+
thumbnailObjectFit: 'cover' | 'contain';
|
|
25
|
+
thumbnailTrigger: 'click' | 'hover';
|
|
26
|
+
thumbnailActive: 'invert' | 'grayscale' | 'scale-up' | 'opacity';
|
|
27
|
+
thumbnailGap: number;
|
|
28
|
+
imageGap?: number;
|
|
29
|
+
textMaxWidth: number;
|
|
30
|
+
textColor: string;
|
|
31
|
+
textFontSize: number;
|
|
32
|
+
textFontWeight: number;
|
|
33
|
+
textFontFamily: string;
|
|
34
|
+
textLineHeight: number;
|
|
35
|
+
textLetterSpacing: number;
|
|
36
|
+
contentMarginTop: number;
|
|
37
|
+
contentMarginLeft: number;
|
|
38
|
+
contentMarginRight: number;
|
|
39
|
+
closeIcon: string | null;
|
|
40
|
+
closeIconMaxWidth: number;
|
|
41
|
+
closeIconColor: string;
|
|
42
|
+
closeIconHoverColor: string;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
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: never[];
|
|
41
|
+
};
|
|
42
|
+
};
|