@cntrl-site/components 1.0.11-alpha.5 → 1.0.12-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/LICENSE +21 -21
- package/README.md +2 -2
- package/dist/Components/ControlSlider/ControlSlider.d.ts +25 -2
- package/dist/Components/Form/FormComponent.d.ts +21 -5
- package/dist/Components/Lightbox/Lightbox.d.ts +25 -2
- package/dist/Components/OnelinerForm/OnelinerFormComponent.d.ts +26 -5
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +4 -2
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +12 -2
- package/dist/index.js +2219 -4083
- package/dist/index.mjs +5144 -8945
- package/dist/types/Component.d.ts +2 -2
- package/dist/types/SchemaV1.d.ts +1 -2
- package/package.json +85 -85
- 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 -75
- 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
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 GX Platform
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 GX Platform
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Control Components
|
|
2
|
-
|
|
1
|
+
# Control Components
|
|
2
|
+
|
|
3
3
|
This is custom components for control editor and public websites.
|
|
@@ -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 {};
|
|
@@ -9,8 +9,18 @@ export declare const FormComponent: {
|
|
|
9
9
|
url: string;
|
|
10
10
|
};
|
|
11
11
|
defaultSize: {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
d: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
t: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
m: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
14
24
|
};
|
|
15
25
|
schema: {
|
|
16
26
|
type: "object";
|
|
@@ -702,11 +712,17 @@ export declare const FormComponent: {
|
|
|
702
712
|
} | {
|
|
703
713
|
type: "group";
|
|
704
714
|
title: string;
|
|
705
|
-
items: {
|
|
715
|
+
items: ({
|
|
706
716
|
type: "row";
|
|
707
|
-
title: string;
|
|
708
717
|
items: string[];
|
|
709
|
-
}
|
|
718
|
+
} | {
|
|
719
|
+
type: "row";
|
|
720
|
+
items: {
|
|
721
|
+
type: "group";
|
|
722
|
+
title: string;
|
|
723
|
+
items: string[];
|
|
724
|
+
}[];
|
|
725
|
+
})[];
|
|
710
726
|
})[];
|
|
711
727
|
})[];
|
|
712
728
|
} | {
|
|
@@ -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 {};
|
|
@@ -13,8 +13,18 @@ export declare const OnelinerFormComponent: {
|
|
|
13
13
|
url: string;
|
|
14
14
|
};
|
|
15
15
|
defaultSize: {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
d: {
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
t: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
24
|
+
m: {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
18
28
|
};
|
|
19
29
|
assetsPaths: {
|
|
20
30
|
content: never[];
|
|
@@ -575,11 +585,22 @@ export declare const OnelinerFormComponent: {
|
|
|
575
585
|
layout: (string | {
|
|
576
586
|
type: "row";
|
|
577
587
|
items: string[];
|
|
578
|
-
title?: undefined;
|
|
579
588
|
} | {
|
|
580
589
|
type: "row";
|
|
581
|
-
|
|
582
|
-
|
|
590
|
+
items: ({
|
|
591
|
+
type: "group";
|
|
592
|
+
title: string;
|
|
593
|
+
items: string[];
|
|
594
|
+
options?: undefined;
|
|
595
|
+
} | {
|
|
596
|
+
type: "switcher";
|
|
597
|
+
title: string;
|
|
598
|
+
options: {
|
|
599
|
+
Input: string[];
|
|
600
|
+
Button: string[];
|
|
601
|
+
};
|
|
602
|
+
items?: undefined;
|
|
603
|
+
})[];
|
|
583
604
|
})[];
|
|
584
605
|
} | {
|
|
585
606
|
id: string;
|
|
@@ -32,8 +32,18 @@ export declare const TestimonialSingleComponent: {
|
|
|
32
32
|
url: string;
|
|
33
33
|
};
|
|
34
34
|
defaultSize: {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
d: {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
};
|
|
39
|
+
t: {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
};
|
|
43
|
+
m: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
};
|
|
37
47
|
};
|
|
38
48
|
schema: ComponentSchemaV1;
|
|
39
49
|
sourceCode: string;
|