@cntrl-site/components 1.0.12-alpha.3 → 1.0.12-alpha.30
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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/Components/Form/Form.d.ts +3 -1
- package/dist/Components/Form/FormComponent.d.ts +5 -17
- package/dist/Components/Grid/Grid.d.ts +24 -7
- package/dist/Components/Lightbox/Lightbox.d.ts +2 -1
- package/dist/Components/LightboxJournal/LightboxJournal.d.ts +104 -0
- package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +44 -0
- package/dist/Components/LightboxStrip/LightboxStrip.d.ts +115 -0
- package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +44 -0
- package/dist/Components/List/List.d.ts +27 -17
- package/dist/Components/List/ListComponent.d.ts +2 -1
- package/dist/Components/Marquee/Marquee.d.ts +8 -3
- package/dist/Components/Marquee/MarqueeComponent.d.ts +2 -1
- package/dist/Components/OnelinerForm/OnelinerForm.d.ts +2 -1
- package/dist/Components/OnelinerForm/OnelinerFormComponent.d.ts +2 -1
- package/dist/Components/TestimonialGrid/TestimonialGrid.d.ts +2 -2
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +2 -2
- package/dist/Components/TestimonialSingle/TestimonialSingle.d.ts +3 -3
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +3 -3
- package/dist/Components/utils/imageFitStyles.d.ts +7 -0
- package/dist/Components/utils/textStylesToCss.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11224 -6219
- package/dist/index.mjs +18910 -10667
- package/dist/types/Component.d.ts +8 -4
- package/dist/types/SchemaV1.d.ts +6 -1
- package/package.json +85 -85
- package/dist/Components/utils/getMainFontBaseOnSystem.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
|
-
export declare const Marquee: ({ settings, content, isEditor, isPreviewMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Marquee: ({ settings, content, isEditor, isPreviewMode, isEditMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export type MarqueeItem = {
|
|
4
4
|
image?: {
|
|
5
5
|
url?: string;
|
|
@@ -11,16 +11,21 @@ export type MarqueeSettings = {
|
|
|
11
11
|
speed: number;
|
|
12
12
|
direction: 'left' | 'right';
|
|
13
13
|
pauseOnHover: 'on' | 'off';
|
|
14
|
-
hoverEffect: 'off' | 'brightness' | 'grayscale' | '
|
|
14
|
+
hoverEffect: 'off' | 'brightness' | 'grayscale' | 'randomize';
|
|
15
15
|
gap: number;
|
|
16
16
|
imageMaxWidth: number;
|
|
17
17
|
imageMaxHeight: number;
|
|
18
|
-
imageFit:
|
|
18
|
+
imageFit: {
|
|
19
|
+
display: 'Fit' | 'Cover';
|
|
20
|
+
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
21
|
+
reversed: boolean;
|
|
22
|
+
};
|
|
19
23
|
};
|
|
20
24
|
type MarqueeProps = {
|
|
21
25
|
settings: MarqueeSettings;
|
|
22
26
|
content?: MarqueeItem[];
|
|
23
27
|
isEditor?: boolean;
|
|
24
28
|
isPreviewMode?: boolean;
|
|
29
|
+
isEditMode?: boolean;
|
|
25
30
|
} & CommonComponentProps;
|
|
26
31
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const MarqueeComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode, isEditMode }: {
|
|
4
4
|
settings: import('./Marquee').MarqueeSettings;
|
|
5
5
|
content?: import('./Marquee').MarqueeItem[];
|
|
6
6
|
isEditor?: boolean;
|
|
7
7
|
isPreviewMode?: boolean;
|
|
8
|
+
isEditMode?: boolean;
|
|
8
9
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
id: string;
|
|
10
11
|
name: string;
|
|
@@ -4,9 +4,10 @@ type OnelinerFormProps = {
|
|
|
4
4
|
settings: OnelinerFormSettings;
|
|
5
5
|
content?: unknown;
|
|
6
6
|
isEditor?: boolean;
|
|
7
|
+
isPreviewMode?: boolean;
|
|
7
8
|
activeEvent?: string;
|
|
8
9
|
} & CommonComponentProps;
|
|
9
|
-
export declare const OnelinerForm: ({ settings, isEditor, metadata, activeEvent }: OnelinerFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const OnelinerForm: ({ settings, isEditor, isPreviewMode, metadata, activeEvent }: OnelinerFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
type FieldConfig = {
|
|
11
12
|
name: string;
|
|
12
13
|
type: 'text' | 'phone' | 'email';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export declare const OnelinerFormComponent: {
|
|
2
|
-
element: ({ settings, isEditor, metadata, activeEvent }: {
|
|
2
|
+
element: ({ settings, isEditor, isPreviewMode, metadata, activeEvent }: {
|
|
3
3
|
settings: import('./OnelinerForm').OnelinerFormSettings;
|
|
4
4
|
content?: unknown;
|
|
5
5
|
isEditor?: boolean;
|
|
6
|
+
isPreviewMode?: boolean;
|
|
6
7
|
activeEvent?: string;
|
|
7
8
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
id: string;
|
|
@@ -4,8 +4,9 @@ type TestimonialsProps = {
|
|
|
4
4
|
content?: TestimonialsItem[];
|
|
5
5
|
isEditor?: boolean;
|
|
6
6
|
isPreviewMode?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
} & CommonComponentProps;
|
|
8
|
-
export declare const TestimonialGrid: ({ settings, content, isEditor, isPreviewMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TestimonialGrid: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export type TestimonialsItem = {
|
|
10
11
|
logo?: {
|
|
11
12
|
url?: string;
|
|
@@ -22,7 +23,6 @@ type Padding = {
|
|
|
22
23
|
left: number;
|
|
23
24
|
};
|
|
24
25
|
type TestimonialsSettings = {
|
|
25
|
-
autoplay: 'on' | 'off';
|
|
26
26
|
speed: number;
|
|
27
27
|
align: 'start' | 'center' | 'end';
|
|
28
28
|
direction: 'left' | 'right';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const TestimonialGridComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
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";
|
|
@@ -27,6 +26,7 @@ export declare const TestimonialGridComponent: {
|
|
|
27
26
|
content?: import('./TestimonialGrid').TestimonialsItem[];
|
|
28
27
|
isEditor?: boolean;
|
|
29
28
|
isPreviewMode?: boolean;
|
|
29
|
+
isEditMode?: boolean;
|
|
30
30
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
id: string;
|
|
32
32
|
name: string;
|
|
@@ -4,8 +4,9 @@ type TestimonialsProps = {
|
|
|
4
4
|
content?: TestimonialsItem[];
|
|
5
5
|
isEditor?: boolean;
|
|
6
6
|
isPreviewMode?: boolean;
|
|
7
|
+
isEditMode?: boolean;
|
|
7
8
|
} & CommonComponentProps;
|
|
8
|
-
export declare const TestimonialSingle: ({ settings, content, isEditor, isPreviewMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TestimonialSingle: ({ settings, content, isEditor, isPreviewMode, isEditMode }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export type TestimonialsItem = {
|
|
10
11
|
image?: {
|
|
11
12
|
url?: string;
|
|
@@ -16,8 +17,7 @@ export type TestimonialsItem = {
|
|
|
16
17
|
caption?: any[];
|
|
17
18
|
};
|
|
18
19
|
type TestimonialsSettings = {
|
|
19
|
-
|
|
20
|
-
delay: number;
|
|
20
|
+
speed: number;
|
|
21
21
|
align: 'start' | 'center' | 'end';
|
|
22
22
|
width: number;
|
|
23
23
|
imageMarginTop?: number;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
2
|
export declare const TestimonialSingleComponent: {
|
|
3
|
-
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
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;
|
|
@@ -22,6 +21,7 @@ export declare const TestimonialSingleComponent: {
|
|
|
22
21
|
content?: import('./TestimonialSingle').TestimonialsItem[];
|
|
23
22
|
isEditor?: boolean;
|
|
24
23
|
isPreviewMode?: boolean;
|
|
24
|
+
isEditMode?: boolean;
|
|
25
25
|
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ImageRatioFit = {
|
|
2
|
+
display: 'Fit' | 'Cover';
|
|
3
|
+
ratioValue: '1:1' | '2:3' | '3:4' | '4:5' | '16:9';
|
|
4
|
+
reversed: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const isImageRatioCover: (fit: ImageRatioFit) => boolean;
|
|
7
|
+
export declare const getAspectRatio: (fit: ImageRatioFit) => string;
|
|
@@ -14,6 +14,7 @@ export type TextStyles = {
|
|
|
14
14
|
textDecoration?: string;
|
|
15
15
|
fontVariant?: string;
|
|
16
16
|
};
|
|
17
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
17
18
|
color: string;
|
|
18
19
|
};
|
|
19
20
|
export declare const normalizeFontFamilyCssValue: (fontFamily?: string) => string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type Component, isSchemaV1 } from './types/Component';
|
|
2
|
-
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
1
|
+
export { type Breakpoint, type Component, type ComponentDefaultSize, type ComponentSize, isSchemaV1 } from './types/Component';
|
|
2
|
+
export type { ComponentSchemaV1, SchemaProperty, PropertyScope, LayoutItem, LayoutRow, LayoutGroup, LayoutSwitcher, LayoutTab, SchemaSection, SchemaPanel, SchemaDisplay } from './types/SchemaV1';
|
|
3
3
|
export { components } from './Components/components';
|