@cntrl-site/components 1.0.56-alpha.1 → 1.0.56-alpha.2
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/Mercury/Mercury.d.ts +73 -0
- package/dist/Components/Mercury/MercuryComponent.d.ts +39 -0
- package/dist/index.js +2125 -161
- package/dist/index.mjs +10446 -6926
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
import { TextStyles } from '../utils/textStylesToCss';
|
|
3
|
+
type MercuryMedia = {
|
|
4
|
+
url: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
type?: 'image' | 'video';
|
|
7
|
+
objectFit?: 'cover' | 'contain';
|
|
8
|
+
};
|
|
9
|
+
type MercuryMediaPair = {
|
|
10
|
+
media: MercuryMedia[];
|
|
11
|
+
};
|
|
12
|
+
export type MercuryContentItem = {
|
|
13
|
+
title?: string;
|
|
14
|
+
gallery?: MercuryMedia[] | MercuryMediaPair[];
|
|
15
|
+
};
|
|
16
|
+
export type MercurySettings = {
|
|
17
|
+
wrapperWidth?: number;
|
|
18
|
+
type?: 'a' | 'b' | 'c';
|
|
19
|
+
imgWidth?: number;
|
|
20
|
+
titleWidth?: number;
|
|
21
|
+
imageDisplay?: {
|
|
22
|
+
display: 'fit' | 'cover';
|
|
23
|
+
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
24
|
+
reversed: boolean;
|
|
25
|
+
};
|
|
26
|
+
galleryPaddingRight?: number;
|
|
27
|
+
galleryPaddingLeft?: number;
|
|
28
|
+
galleryPaddingBetween?: number;
|
|
29
|
+
cornerRadius?: number;
|
|
30
|
+
imgCaption?: 'on' | 'off';
|
|
31
|
+
position?: 'left' | 'center' | 'right' | 'top';
|
|
32
|
+
titleTopPadding?: number;
|
|
33
|
+
transition?: 'fade' | 'retype' | 'scroll';
|
|
34
|
+
titleColor?: string;
|
|
35
|
+
titleFontFamily?: string;
|
|
36
|
+
titleFontSettings?: {
|
|
37
|
+
fontWeight: number;
|
|
38
|
+
fontStyle: string;
|
|
39
|
+
};
|
|
40
|
+
titleFontSize?: number;
|
|
41
|
+
titleLineHeight?: number;
|
|
42
|
+
titleLetterSpacing?: number;
|
|
43
|
+
titleWordSpacing?: number;
|
|
44
|
+
titleAlign?: TextStyles['textAlign'];
|
|
45
|
+
titleTextAppearance?: TextStyles['textAppearance'];
|
|
46
|
+
lightbox?: 'on' | 'off';
|
|
47
|
+
lightboxImageDisplay?: 'fit' | 'cover' | {
|
|
48
|
+
display?: 'fit' | 'cover';
|
|
49
|
+
};
|
|
50
|
+
backgroundColor?: string;
|
|
51
|
+
lightboxCounterColor?: string;
|
|
52
|
+
lightboxCounterFontFamily?: string;
|
|
53
|
+
lightboxCounterFontSettings?: {
|
|
54
|
+
fontWeight: number;
|
|
55
|
+
fontStyle: string;
|
|
56
|
+
};
|
|
57
|
+
lightboxCounterFontSize?: number;
|
|
58
|
+
lightboxCounterLineHeight?: number;
|
|
59
|
+
lightboxCounterLetterSpacing?: number;
|
|
60
|
+
lightboxCounterWordSpacing?: number;
|
|
61
|
+
lightboxCounterTextAppearance?: TextStyles['textAppearance'];
|
|
62
|
+
};
|
|
63
|
+
type MercuryProps = {
|
|
64
|
+
settings?: MercurySettings;
|
|
65
|
+
content?: MercuryContentItem[];
|
|
66
|
+
isEditor?: boolean;
|
|
67
|
+
isPreviewMode?: boolean;
|
|
68
|
+
isEditMode?: boolean;
|
|
69
|
+
layoutId?: string;
|
|
70
|
+
portalId?: string;
|
|
71
|
+
} & CommonComponentProps;
|
|
72
|
+
export declare function Mercury({ settings, content, isEditor, isPreviewMode, isEditMode, portalId, }: MercuryProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Mercury } from './Mercury';
|
|
2
|
+
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
+
export declare const MercuryComponent: {
|
|
4
|
+
element: typeof Mercury;
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
category: string;
|
|
8
|
+
layoutMode: "structured";
|
|
9
|
+
version: number;
|
|
10
|
+
defaultSize: {
|
|
11
|
+
d: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
preview: {
|
|
17
|
+
type: "image";
|
|
18
|
+
url: string;
|
|
19
|
+
};
|
|
20
|
+
schema: ComponentSchemaV1;
|
|
21
|
+
sourceCode: string;
|
|
22
|
+
assetsPaths: {
|
|
23
|
+
content: {
|
|
24
|
+
path: string;
|
|
25
|
+
placeholderEnabled: boolean;
|
|
26
|
+
}[];
|
|
27
|
+
parameters: never[];
|
|
28
|
+
};
|
|
29
|
+
fontSettingsPaths: {
|
|
30
|
+
content: never[];
|
|
31
|
+
parameters: {
|
|
32
|
+
path: string;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
fontRelations: {
|
|
36
|
+
titleFontSettings: string;
|
|
37
|
+
lightboxCounterFontSettings: string;
|
|
38
|
+
};
|
|
39
|
+
};
|