@cntrl-site/components 1.0.54 → 1.0.56-alpha.0

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.
@@ -31,6 +31,7 @@ type GridSettings = {
31
31
  ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
32
32
  reversed: boolean;
33
33
  };
34
+ imageCorners?: number;
34
35
  lightboxImageDisplay?: 'fit' | 'cover' | {
35
36
  display?: 'fit' | 'cover';
36
37
  };
@@ -0,0 +1,67 @@
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
+ galleryPaddingRight?: number;
21
+ galleryPaddingLeft?: number;
22
+ galleryPaddingBetween?: number;
23
+ cornerRadius?: number;
24
+ imgCaption?: 'on' | 'off';
25
+ position?: 'left' | 'center' | 'right' | 'top';
26
+ titleTopPadding?: number;
27
+ transition?: 'default' | 'fade' | 'retype' | 'scroll';
28
+ titleColor?: string;
29
+ titleFontFamily?: string;
30
+ titleFontSettings?: {
31
+ fontWeight: number;
32
+ fontStyle: string;
33
+ };
34
+ titleFontSize?: number;
35
+ titleLineHeight?: number;
36
+ titleLetterSpacing?: number;
37
+ titleWordSpacing?: number;
38
+ titleAlign?: TextStyles['textAlign'];
39
+ titleTextAppearance?: TextStyles['textAppearance'];
40
+ lightbox?: 'on' | 'off';
41
+ lightboxImageDisplay?: 'fit' | 'cover' | {
42
+ display?: 'fit' | 'cover';
43
+ };
44
+ backgroundColor?: string;
45
+ lightboxCounterColor?: string;
46
+ lightboxCounterFontFamily?: string;
47
+ lightboxCounterFontSettings?: {
48
+ fontWeight: number;
49
+ fontStyle: string;
50
+ };
51
+ lightboxCounterFontSize?: number;
52
+ lightboxCounterLineHeight?: number;
53
+ lightboxCounterLetterSpacing?: number;
54
+ lightboxCounterWordSpacing?: number;
55
+ lightboxCounterTextAppearance?: TextStyles['textAppearance'];
56
+ };
57
+ type MercuryProps = {
58
+ settings?: MercurySettings;
59
+ content?: MercuryContentItem[];
60
+ isEditor?: boolean;
61
+ isPreviewMode?: boolean;
62
+ isEditMode?: boolean;
63
+ layoutId?: string;
64
+ portalId?: string;
65
+ } & CommonComponentProps;
66
+ export declare function Mercury({ settings, content, isEditor, isPreviewMode, isEditMode, portalId, }: MercuryProps): import("react/jsx-runtime").JSX.Element;
67
+ 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
+ };
@@ -52,12 +52,14 @@ type Slider20Settings = {
52
52
  textDecoration?: 'none' | 'underline';
53
53
  fontVariant?: 'normal' | 'small-caps';
54
54
  };
55
+ captionMarginTop?: number;
55
56
  };
56
57
  type Slider20Props = {
57
58
  settings?: Slider20Settings;
58
59
  content: Slider20Item[];
59
60
  isEditor?: boolean;
60
61
  isPreviewMode?: boolean;
62
+ isEditMode?: boolean;
61
63
  } & CommonComponentProps;
62
- export declare function Slider20({ settings, content, isEditor, isPreviewMode }: Slider20Props): import("react/jsx-runtime").JSX.Element;
64
+ export declare function Slider20({ settings, content, isEditor, isPreviewMode, isEditMode }: Slider20Props): import("react/jsx-runtime").JSX.Element;
63
65
  export {};
@@ -8,6 +8,7 @@ export type WaterfallContentItem = {
8
8
  image?: WaterfallMedia;
9
9
  };
10
10
  export type WaterfallSettings = {
11
+ type?: 'a' | 'b' | 'c';
11
12
  wrapperWidth?: number;
12
13
  imageDisplay?: {
13
14
  display: 'fit' | 'cover';
@@ -1,3 +1,4 @@
1
+ export declare function getContainedMediaTransformOrigin(media: HTMLImageElement | HTMLVideoElement): string;
1
2
  export declare function getDisplayedImageRect(img: HTMLImageElement): {
2
3
  x: number;
3
4
  y: number;