@cntrl-site/components 0.1.29 → 0.1.30-grid.1

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.
@@ -1,4 +1,5 @@
1
1
  import { CommonComponentProps } from '../props';
2
+ import { TextElementStyles } from '../../types/TextElementStyles';
2
3
  type SliderProps = {
3
4
  settings: SliderSettings;
4
5
  content: SliderItem[];
@@ -63,31 +64,7 @@ type SliderSettings = {
63
64
  imageCaption: SliderCaption;
64
65
  triggers: Triggers;
65
66
  };
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
- };
90
67
  type SliderStyles = {
91
- imageCaption: CaptionStyles;
68
+ imageCaption: TextElementStyles;
92
69
  };
93
70
  export {};
@@ -0,0 +1,49 @@
1
+ import { TextElementStyles } from '../../types/TextElementStyles';
2
+ import { CommonComponentProps } from '../props';
3
+ type GridProps = {
4
+ settings: GridSettings;
5
+ content: GridItem[];
6
+ styles: GridStyles;
7
+ isEditor?: boolean;
8
+ } & CommonComponentProps;
9
+ export declare const Grid: ({ settings, content, styles, isEditor }: GridProps) => import("react/jsx-runtime").JSX.Element;
10
+ type GridSettings = {
11
+ grid: {
12
+ entriesPerRow: number;
13
+ rowGap: number;
14
+ columnGap: number;
15
+ };
16
+ media?: {
17
+ widthType: 'auto' | 'fixed';
18
+ maxWidth: number;
19
+ aspectRatioMode: 'fixed' | 'original';
20
+ aspectWidth: number;
21
+ aspectHeight: number;
22
+ };
23
+ title?: {
24
+ marginTop: number;
25
+ };
26
+ subtitle?: {
27
+ marginTop: number;
28
+ };
29
+ description?: {
30
+ marginTop: number;
31
+ };
32
+ };
33
+ type GridItem = {
34
+ image?: {
35
+ url: string;
36
+ name?: string;
37
+ objectFit?: 'cover' | 'contain';
38
+ } | null;
39
+ title?: any[];
40
+ subtitle?: any[];
41
+ description?: any[];
42
+ link?: string;
43
+ };
44
+ type GridStyles = {
45
+ title: TextElementStyles;
46
+ subtitle: TextElementStyles;
47
+ description: TextElementStyles;
48
+ };
49
+ export {};