@cntrl-site/components 1.0.60-alpha.2 → 1.0.60-alpha.4
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CommonComponentProps } from '
|
|
2
|
-
type
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
type HelixMedia = {
|
|
3
3
|
url?: string;
|
|
4
4
|
name?: string;
|
|
5
5
|
type?: 'image' | 'video';
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
8
|
-
image?:
|
|
7
|
+
export type HelixContentItem = {
|
|
8
|
+
image?: HelixMedia;
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
10
|
+
export type HelixSettings = {
|
|
11
11
|
width?: number;
|
|
12
12
|
/** @deprecated use `width` */
|
|
13
13
|
spread?: number;
|
|
@@ -23,18 +23,19 @@ export type SpiralListSettings = {
|
|
|
23
23
|
/** @deprecated use `playback` */
|
|
24
24
|
pauseOnHover?: 'on' | 'off';
|
|
25
25
|
cornerRadius?: number;
|
|
26
|
+
blur?: 'on' | 'off';
|
|
26
27
|
imageDisplay?: {
|
|
27
28
|
display?: 'fit' | 'cover';
|
|
28
29
|
ratioValue?: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
29
30
|
reversed?: boolean;
|
|
30
31
|
} | string;
|
|
31
32
|
};
|
|
32
|
-
type
|
|
33
|
-
settings?:
|
|
34
|
-
content?:
|
|
33
|
+
type HelixProps = {
|
|
34
|
+
settings?: HelixSettings;
|
|
35
|
+
content?: HelixContentItem[];
|
|
35
36
|
isEditor?: boolean;
|
|
36
37
|
isPreviewMode?: boolean;
|
|
37
38
|
isEditMode?: boolean;
|
|
38
39
|
} & CommonComponentProps;
|
|
39
|
-
export declare function
|
|
40
|
+
export declare function Helix({ settings, content, isEditor, isPreviewMode, }: HelixProps): import("react/jsx-runtime").JSX.Element;
|
|
40
41
|
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentSchemaV1 } from '
|
|
3
|
-
export declare const
|
|
4
|
-
element: typeof
|
|
1
|
+
import { Helix } from './Helix';
|
|
2
|
+
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
|
+
export declare const HelixComponent: {
|
|
4
|
+
element: typeof Helix;
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
category: string;
|
|
8
8
|
layoutMode: "structured";
|
|
9
|
+
preview: {
|
|
10
|
+
type: "image";
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
9
13
|
version: number;
|
|
10
14
|
defaultSize: {
|
|
11
15
|
d: {
|