@cntrl-site/components 1.0.11-alpha.5 → 1.0.11-alpha.6

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 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: TextElementStyles;
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: TextElementStyles;
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,43 @@
1
+ import { CommonComponentProps } from '../props';
2
+ export type MarqueeItem = {
3
+ image?: {
4
+ url?: string;
5
+ name?: string;
6
+ };
7
+ text?: any[];
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
+ gap: number;
16
+ imageMaxWidth: number;
17
+ imageMaxHeight: number;
18
+ imageFit?: 'cover' | 'contain';
19
+ textFontFamily?: string;
20
+ textFontSettings?: {
21
+ fontWeight?: number;
22
+ fontStyle?: string;
23
+ };
24
+ textFontSize?: number;
25
+ textLineHeight?: number;
26
+ textLetterSpacing?: number;
27
+ textWordSpacing?: number;
28
+ textTextAppearance?: {
29
+ textTransform?: string;
30
+ textDecoration?: string;
31
+ fontVariant?: string;
32
+ };
33
+ textColor?: string;
34
+ textMarginTop?: number;
35
+ };
36
+ type MarqueeProps = {
37
+ settings: MarqueeSettings;
38
+ content?: MarqueeItem[];
39
+ isEditor?: boolean;
40
+ isPreviewMode?: boolean;
41
+ } & CommonComponentProps;
42
+ export declare const Marquee: ({ settings, content, isEditor, isPreviewMode }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
43
+ export {};
@@ -0,0 +1,40 @@
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: ({
33
+ path: string;
34
+ placeholderEnabled: boolean;
35
+ } | {
36
+ path: string;
37
+ placeholderEnabled?: undefined;
38
+ })[];
39
+ };
40
+ };
@@ -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
- title: string;
582
- items: string[];
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;