@cntrl-site/components 1.0.59 → 1.0.60-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.
- package/dist/Components/Spiral/List/SpiralList.d.ts +40 -0
- package/dist/Components/Spiral/List/SpiralListComponent.d.ts +29 -0
- package/dist/index.js +626 -67
- package/dist/index.mjs +6224 -5200
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../../props';
|
|
2
|
+
type SpiralMedia = {
|
|
3
|
+
url?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
type?: 'image' | 'video';
|
|
6
|
+
};
|
|
7
|
+
export type SpiralListContentItem = {
|
|
8
|
+
image?: SpiralMedia;
|
|
9
|
+
};
|
|
10
|
+
export type SpiralListSettings = {
|
|
11
|
+
width?: number;
|
|
12
|
+
/** @deprecated use `width` */
|
|
13
|
+
spread?: number;
|
|
14
|
+
/** @deprecated use `width` */
|
|
15
|
+
wrapperWidth?: number;
|
|
16
|
+
imageWidth?: number;
|
|
17
|
+
turnHeight?: number;
|
|
18
|
+
itemsPerTurn?: number;
|
|
19
|
+
turns?: number;
|
|
20
|
+
speed?: number;
|
|
21
|
+
direction?: 'left' | 'right';
|
|
22
|
+
playback?: 'autoplay' | 'scroll';
|
|
23
|
+
/** @deprecated use `playback` */
|
|
24
|
+
pauseOnHover?: 'on' | 'off';
|
|
25
|
+
cornerRadius?: number;
|
|
26
|
+
imageDisplay?: {
|
|
27
|
+
display?: 'fit' | 'cover';
|
|
28
|
+
ratioValue?: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
29
|
+
reversed?: boolean;
|
|
30
|
+
} | string;
|
|
31
|
+
};
|
|
32
|
+
type SpiralListProps = {
|
|
33
|
+
settings?: SpiralListSettings;
|
|
34
|
+
content?: SpiralListContentItem[];
|
|
35
|
+
isEditor?: boolean;
|
|
36
|
+
isPreviewMode?: boolean;
|
|
37
|
+
isEditMode?: boolean;
|
|
38
|
+
} & CommonComponentProps;
|
|
39
|
+
export declare function SpiralList({ settings, content, isEditor, isPreviewMode, }: SpiralListProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SpiralList } from './SpiralList';
|
|
2
|
+
import { ComponentSchemaV1 } from '../../../types/SchemaV1';
|
|
3
|
+
export declare const SpiralListComponent: {
|
|
4
|
+
element: typeof SpiralList;
|
|
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
|
+
schema: ComponentSchemaV1;
|
|
17
|
+
sourceCode: string;
|
|
18
|
+
assetsPaths: {
|
|
19
|
+
content: {
|
|
20
|
+
path: string;
|
|
21
|
+
placeholderEnabled: boolean;
|
|
22
|
+
}[];
|
|
23
|
+
parameters: never[];
|
|
24
|
+
};
|
|
25
|
+
fontSettingsPaths: {
|
|
26
|
+
content: never[];
|
|
27
|
+
parameters: never[];
|
|
28
|
+
};
|
|
29
|
+
};
|