@cntrl-site/components 1.0.11-alpha.1 → 1.0.11-alpha.10
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/ControlSlider/ControlSlider.d.ts +25 -2
- package/dist/Components/Form/FormComponent.d.ts +9 -3
- package/dist/Components/Lightbox/Lightbox.d.ts +25 -2
- package/dist/Components/Marquee/Marquee.d.ts +27 -0
- package/dist/Components/Marquee/MarqueeComponent.d.ts +34 -0
- package/dist/Components/OnelinerForm/OnelinerFormComponent.d.ts +14 -3
- package/dist/index.js +1404 -1993
- package/dist/index.mjs +5231 -6974
- package/dist/types/SchemaV1.d.ts +1 -2
- package/package.json +1 -1
- package/dist/Components/Grid/Grid.d.ts +0 -61
- package/dist/Components/Grid/GridComponent.d.ts +0 -39
- package/dist/Components/List/List.d.ts +0 -61
- package/dist/Components/List/ListComponent.d.ts +0 -39
- package/dist/Components/utils/getMainFontBaseOnSystem.d.ts +0 -1
- package/dist/types/TextElementStyles.d.ts +0 -24
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CommonComponentProps } from '../props';
|
|
2
|
-
import { TextElementStyles } from '../../types/TextElementStyles';
|
|
3
2
|
type SliderProps = {
|
|
4
3
|
settings: SliderSettings;
|
|
5
4
|
content: SliderItem[];
|
|
@@ -64,7 +63,31 @@ type SliderSettings = {
|
|
|
64
63
|
imageCaption: SliderCaption;
|
|
65
64
|
triggers: Triggers;
|
|
66
65
|
};
|
|
66
|
+
type CaptionStyles = {
|
|
67
|
+
fontSettings: {
|
|
68
|
+
fontFamily: string;
|
|
69
|
+
fontWeight: number;
|
|
70
|
+
fontStyle: string;
|
|
71
|
+
};
|
|
72
|
+
widthSettings: {
|
|
73
|
+
width: number;
|
|
74
|
+
sizing: 'auto' | 'manual';
|
|
75
|
+
};
|
|
76
|
+
letterSpacing: number;
|
|
77
|
+
textAlign: 'left' | 'center' | 'right';
|
|
78
|
+
wordSpacing: number;
|
|
79
|
+
fontSizeLineHeight: {
|
|
80
|
+
fontSize: number;
|
|
81
|
+
lineHeight: number;
|
|
82
|
+
};
|
|
83
|
+
textAppearance: {
|
|
84
|
+
textTransform: 'none' | 'uppercase' | 'lowercase';
|
|
85
|
+
textDecoration: 'none' | 'underline';
|
|
86
|
+
fontVariant: 'normal' | 'small-caps';
|
|
87
|
+
};
|
|
88
|
+
color: string;
|
|
89
|
+
};
|
|
67
90
|
type SliderStyles = {
|
|
68
|
-
imageCaption:
|
|
91
|
+
imageCaption: CaptionStyles;
|
|
69
92
|
};
|
|
70
93
|
export {};
|
|
@@ -702,11 +702,17 @@ export declare const FormComponent: {
|
|
|
702
702
|
} | {
|
|
703
703
|
type: "group";
|
|
704
704
|
title: string;
|
|
705
|
-
items: {
|
|
705
|
+
items: ({
|
|
706
706
|
type: "row";
|
|
707
|
-
title: string;
|
|
708
707
|
items: string[];
|
|
709
|
-
}
|
|
708
|
+
} | {
|
|
709
|
+
type: "row";
|
|
710
|
+
items: {
|
|
711
|
+
type: "group";
|
|
712
|
+
title: string;
|
|
713
|
+
items: string[];
|
|
714
|
+
}[];
|
|
715
|
+
})[];
|
|
710
716
|
})[];
|
|
711
717
|
})[];
|
|
712
718
|
} | {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Alignment, Offset } from '../utils/getPositionStyles';
|
|
2
|
-
import { TextElementStyles } from '../../types/TextElementStyles';
|
|
3
2
|
type LightboxGalleryProps = {
|
|
4
3
|
settings: LightboxSettings;
|
|
5
4
|
content: LightboxImage[];
|
|
@@ -99,6 +98,30 @@ type LightboxSettings = {
|
|
|
99
98
|
};
|
|
100
99
|
};
|
|
101
100
|
type LightboxStyles = {
|
|
102
|
-
imageCaption:
|
|
101
|
+
imageCaption: CaptionStyles;
|
|
102
|
+
};
|
|
103
|
+
type CaptionStyles = {
|
|
104
|
+
fontSettings: {
|
|
105
|
+
fontFamily: string;
|
|
106
|
+
fontWeight: number;
|
|
107
|
+
fontStyle: string;
|
|
108
|
+
};
|
|
109
|
+
widthSettings: {
|
|
110
|
+
width: number;
|
|
111
|
+
sizing: 'auto' | 'manual';
|
|
112
|
+
};
|
|
113
|
+
letterSpacing: number;
|
|
114
|
+
textAlign: 'left' | 'center' | 'right';
|
|
115
|
+
wordSpacing: number;
|
|
116
|
+
fontSizeLineHeight: {
|
|
117
|
+
fontSize: number;
|
|
118
|
+
lineHeight: number;
|
|
119
|
+
};
|
|
120
|
+
textAppearance: {
|
|
121
|
+
textTransform: 'none' | 'uppercase' | 'lowercase';
|
|
122
|
+
textDecoration: 'none' | 'underline';
|
|
123
|
+
fontVariant: 'normal' | 'small-caps';
|
|
124
|
+
};
|
|
125
|
+
color: string;
|
|
103
126
|
};
|
|
104
127
|
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommonComponentProps } from '../props';
|
|
2
|
+
export declare const Marquee: ({ settings, content, isEditor, isPreviewMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type MarqueeItem = {
|
|
4
|
+
image?: {
|
|
5
|
+
url?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
link?: string;
|
|
9
|
+
};
|
|
10
|
+
export type MarqueeSettings = {
|
|
11
|
+
speed: number;
|
|
12
|
+
direction: 'left' | 'right';
|
|
13
|
+
pauseOnHover: 'on' | 'off';
|
|
14
|
+
hoverEffect: 'off' | 'brightness' | 'grayscale' | 'saturate';
|
|
15
|
+
hoverRandomize: 'on' | 'off';
|
|
16
|
+
gap: number;
|
|
17
|
+
imageMaxWidth: number;
|
|
18
|
+
imageMaxHeight: number;
|
|
19
|
+
imageFit: 'cover' | 'contain';
|
|
20
|
+
};
|
|
21
|
+
type MarqueeProps = {
|
|
22
|
+
settings: MarqueeSettings;
|
|
23
|
+
content?: MarqueeItem[];
|
|
24
|
+
isEditor?: boolean;
|
|
25
|
+
isPreviewMode?: boolean;
|
|
26
|
+
} & CommonComponentProps;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentSchemaV1 } from '../../types/SchemaV1';
|
|
2
|
+
export declare const MarqueeComponent: {
|
|
3
|
+
element: ({ settings, content, isEditor, isPreviewMode }: {
|
|
4
|
+
settings: import('./Marquee').MarqueeSettings;
|
|
5
|
+
content?: import('./Marquee').MarqueeItem[];
|
|
6
|
+
isEditor?: boolean;
|
|
7
|
+
isPreviewMode?: boolean;
|
|
8
|
+
} & import('../props').CommonComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
category: string;
|
|
12
|
+
version: number;
|
|
13
|
+
defaultSize: {
|
|
14
|
+
width: string;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
preview: {
|
|
18
|
+
type: "image";
|
|
19
|
+
url: string;
|
|
20
|
+
};
|
|
21
|
+
schema: ComponentSchemaV1;
|
|
22
|
+
sourceCode: string;
|
|
23
|
+
assetsPaths: {
|
|
24
|
+
content: {
|
|
25
|
+
path: string;
|
|
26
|
+
placeholderEnabled: boolean;
|
|
27
|
+
}[];
|
|
28
|
+
parameters: never[];
|
|
29
|
+
};
|
|
30
|
+
fontSettingsPaths: {
|
|
31
|
+
content: never[];
|
|
32
|
+
parameters: never[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -575,11 +575,22 @@ export declare const OnelinerFormComponent: {
|
|
|
575
575
|
layout: (string | {
|
|
576
576
|
type: "row";
|
|
577
577
|
items: string[];
|
|
578
|
-
title?: undefined;
|
|
579
578
|
} | {
|
|
580
579
|
type: "row";
|
|
581
|
-
|
|
582
|
-
|
|
580
|
+
items: ({
|
|
581
|
+
type: "group";
|
|
582
|
+
title: string;
|
|
583
|
+
items: string[];
|
|
584
|
+
options?: undefined;
|
|
585
|
+
} | {
|
|
586
|
+
type: "switcher";
|
|
587
|
+
title: string;
|
|
588
|
+
options: {
|
|
589
|
+
Input: string[];
|
|
590
|
+
Button: string[];
|
|
591
|
+
};
|
|
592
|
+
items?: undefined;
|
|
593
|
+
})[];
|
|
583
594
|
})[];
|
|
584
595
|
} | {
|
|
585
596
|
id: string;
|