@cntrl-site/components 1.0.12-alpha.24 → 1.0.12-alpha.26
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/List/List.d.ts +7 -5
- package/dist/Components/List/ListComponent.d.ts +2 -2
- package/dist/Components/TestimonialGrid/TestimonialGrid.d.ts +0 -1
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +0 -1
- package/dist/Components/TestimonialSingle/TestimonialSingle.d.ts +1 -2
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +1 -2
- package/dist/index.js +119 -50
- package/dist/index.mjs +2651 -2548
- package/package.json +1 -1
|
@@ -114,17 +114,19 @@ export type ListSettings = {
|
|
|
114
114
|
backgroundHoverColor: string;
|
|
115
115
|
dividerHoverColor: string;
|
|
116
116
|
} & ListColumnTextStyleOverrides;
|
|
117
|
+
type ListMedia = {
|
|
118
|
+
objectFit?: 'cover' | 'contain';
|
|
119
|
+
url: string;
|
|
120
|
+
name: string;
|
|
121
|
+
type?: 'image' | 'video';
|
|
122
|
+
};
|
|
117
123
|
type ListContentItem = {
|
|
118
124
|
AColumn?: string;
|
|
119
125
|
BColumnWidth?: string;
|
|
120
126
|
CColumnWidth?: string;
|
|
121
127
|
DColumnWidth?: string;
|
|
122
128
|
EColumnWidth?: string;
|
|
123
|
-
image?:
|
|
124
|
-
objectFit?: 'cover' | 'contain';
|
|
125
|
-
url: string;
|
|
126
|
-
name: string;
|
|
127
|
-
};
|
|
129
|
+
image?: ListMedia;
|
|
128
130
|
link?: string;
|
|
129
131
|
};
|
|
130
132
|
type ListProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { List,
|
|
1
|
+
import { List, ListSettings } from './List';
|
|
2
2
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
3
3
|
export declare const ListComponent: {
|
|
4
4
|
element: typeof List;
|
|
@@ -6,7 +6,7 @@ export declare const ListComponent: {
|
|
|
6
6
|
name: string;
|
|
7
7
|
category: string;
|
|
8
8
|
layoutMode: "structured";
|
|
9
|
-
normalizeLayoutSettingsUpdate:
|
|
9
|
+
normalizeLayoutSettingsUpdate: (nextSettings: Record<string, any>, prevSettings: Record<string, any>) => ListSettings;
|
|
10
10
|
preview: {
|
|
11
11
|
type: "image";
|
|
12
12
|
url: string;
|
|
@@ -2,7 +2,6 @@ import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
|
2
2
|
export declare const TestimonialGridComponent: {
|
|
3
3
|
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: {
|
|
5
|
-
autoplay: "on" | "off";
|
|
6
5
|
speed: number;
|
|
7
6
|
align: "start" | "center" | "end";
|
|
8
7
|
direction: "left" | "right";
|
|
@@ -2,8 +2,7 @@ import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
|
2
2
|
export declare const TestimonialSingleComponent: {
|
|
3
3
|
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: {
|
|
5
|
-
|
|
6
|
-
delay: number;
|
|
5
|
+
speed: number;
|
|
7
6
|
align: "start" | "center" | "end";
|
|
8
7
|
width: number;
|
|
9
8
|
imageMarginTop?: number;
|