@adityabheke/renderer-package 1.0.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.
@@ -0,0 +1,210 @@
1
+ import * as React$1 from 'react';
2
+ import React__default from 'react';
3
+ import * as LucideIcons from 'lucide-react';
4
+
5
+ interface PageRendererProps {
6
+ url: string;
7
+ }
8
+ declare const PageRenderer: React__default.FC<PageRendererProps>;
9
+
10
+ interface FooterProps {
11
+ children?: React__default.ReactNode;
12
+ slots?: Record<string, React__default.ReactNode>;
13
+ backgroundColor?: string;
14
+ className?: string;
15
+ }
16
+
17
+ interface ResponsiveValue<T> {
18
+ mobile?: T;
19
+ tablet?: T;
20
+ desktop?: T;
21
+ }
22
+ type AnimationType = "none" | "fadeIn" | "fromBottom" | "fromTop" | "fromLeft" | "fromRight";
23
+ type FontScale = "XS" | "SM" | "MD" | "LG" | "XL";
24
+ type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
25
+
26
+ interface HeroProps {
27
+ children?: React__default.ReactNode;
28
+ slots?: Record<string, React__default.ReactNode>;
29
+ className?: string;
30
+ padding?: ResponsiveValue<number>;
31
+ backgroundColor?: string;
32
+ bgImage?: string;
33
+ showOverlay?: boolean;
34
+ overlayColor?: string;
35
+ overlayOpacity?: number;
36
+ }
37
+
38
+ interface GridProps {
39
+ children?: React__default.ReactNode;
40
+ slots?: Record<string, React__default.ReactNode>;
41
+ columns?: number;
42
+ rows?: number;
43
+ gap?: number;
44
+ }
45
+
46
+ interface TwoColumnLayoutProps {
47
+ children?: React__default.ReactNode;
48
+ slots?: Record<string, React__default.ReactNode>;
49
+ gap?: number;
50
+ }
51
+ interface ThreeColumnLayoutProps {
52
+ children?: React__default.ReactNode;
53
+ slots?: Record<string, React__default.ReactNode>;
54
+ gap?: number;
55
+ }
56
+
57
+ interface BoxProps {
58
+ children?: React__default.ReactNode;
59
+ padding: ResponsiveValue<number>;
60
+ margin: ResponsiveValue<number>;
61
+ backgroundColor: string;
62
+ isBackgroundTransparent: boolean;
63
+ borderRadius: ResponsiveValue<number>;
64
+ width: ResponsiveValue<string>;
65
+ height: ResponsiveValue<string>;
66
+ flexDirection: ResponsiveValue<"row" | "column">;
67
+ alignItems: ResponsiveValue<string>;
68
+ justifyContent: ResponsiveValue<string>;
69
+ gap: ResponsiveValue<number>;
70
+ borderWidth: number;
71
+ borderColor: string;
72
+ shadowBlur: number;
73
+ shadowColor: string;
74
+ className?: string;
75
+ style?: React__default.CSSProperties;
76
+ animationType?: AnimationType;
77
+ flexWrap: ResponsiveValue<boolean>;
78
+ }
79
+
80
+ interface SectionProps {
81
+ children?: React__default.ReactNode;
82
+ padding?: ResponsiveValue<number>;
83
+ backgroundColor?: string;
84
+ alignItems?: "flex-start" | "center" | "flex-end";
85
+ justifyContent?: "flex-start" | "center" | "flex-end";
86
+ className?: string;
87
+ style?: React__default.CSSProperties;
88
+ }
89
+
90
+ interface IconProps {
91
+ name: keyof typeof LucideIcons;
92
+ size: number;
93
+ color: string;
94
+ }
95
+
96
+ interface VideoProps {
97
+ url: string;
98
+ width: string;
99
+ aspectRatio: string;
100
+ borderRadius: number;
101
+ animationType?: AnimationType;
102
+ }
103
+
104
+ interface DividerProps {
105
+ height: number;
106
+ color: string;
107
+ backgroundColor: string;
108
+ marginY: number;
109
+ }
110
+
111
+ interface TextProps {
112
+ text: string;
113
+ fontScale: ResponsiveValue<FontScale>;
114
+ textAlign: ResponsiveValue<"left" | "center" | "right" | "justify">;
115
+ fontWeight: ResponsiveValue<string>;
116
+ padding: ResponsiveValue<number>;
117
+ color: string;
118
+ textShadowBlur: number;
119
+ textShadowColor: string;
120
+ animationType?: AnimationType;
121
+ className?: string;
122
+ }
123
+
124
+ interface ImageProps {
125
+ src: string;
126
+ alt: string;
127
+ width: ResponsiveValue<string>;
128
+ height: ResponsiveValue<string>;
129
+ objectFit: "fill" | "contain" | "cover" | "none" | "scale-down";
130
+ borderRadius: ResponsiveValue<number>;
131
+ shadowBlur: number;
132
+ shadowColor: string;
133
+ animationType?: AnimationType;
134
+ }
135
+
136
+ interface HeadingProps {
137
+ text: string;
138
+ level: ResponsiveValue<HeadingLevel>;
139
+ textAlign: ResponsiveValue<"left" | "center" | "right" | "justify">;
140
+ fontWeight: ResponsiveValue<string>;
141
+ color: string;
142
+ textShadowBlur: number;
143
+ textShadowColor: string;
144
+ className?: string;
145
+ animationType?: AnimationType;
146
+ }
147
+
148
+ interface ButtonProps {
149
+ text: string;
150
+ fontSize: ResponsiveValue<number>;
151
+ backgroundColor: string;
152
+ isBackgroundTransparent: boolean;
153
+ color: string;
154
+ paddingX: ResponsiveValue<number>;
155
+ paddingY: ResponsiveValue<number>;
156
+ borderRadius: ResponsiveValue<number>;
157
+ variant: "solid" | "outline" | "ghost";
158
+ shadowBlur: number;
159
+ shadowColor: string;
160
+ className?: string;
161
+ animationType?: AnimationType;
162
+ }
163
+
164
+ declare const componentRegistry: {
165
+ Button: React$1.FC<ButtonProps>;
166
+ Heading: React$1.FC<HeadingProps>;
167
+ Image: React$1.FC<ImageProps>;
168
+ Text: React$1.FC<TextProps>;
169
+ Divider: React$1.FC<DividerProps>;
170
+ Video: React$1.FC<VideoProps>;
171
+ Icon: React$1.FC<IconProps>;
172
+ Section: React$1.FC<SectionProps>;
173
+ Box: React$1.FC<BoxProps>;
174
+ TwoColumnLayout: React$1.FC<TwoColumnLayoutProps>;
175
+ ThreeColumnLayout: React$1.FC<ThreeColumnLayoutProps>;
176
+ Grid: React$1.FC<GridProps>;
177
+ Hero: React$1.FC<HeroProps>;
178
+ FAQ: React$1.FC<{
179
+ children?: React.ReactNode;
180
+ slots?: Record<string, React.ReactNode>;
181
+ className?: string;
182
+ padding?: ResponsiveValue<number>;
183
+ backgroundColor?: string;
184
+ }>;
185
+ FAQItem: React$1.FC<{
186
+ children?: React.ReactNode;
187
+ slots?: Record<string, React.ReactNode>;
188
+ question?: string;
189
+ answer?: string;
190
+ }>;
191
+ PricingTable: React$1.FC<{
192
+ children?: React.ReactNode;
193
+ slots?: Record<string, React.ReactNode>;
194
+ className?: string;
195
+ padding?: ResponsiveValue<number>;
196
+ backgroundColor?: string;
197
+ }>;
198
+ PricingCard: React$1.FC<{
199
+ children?: React.ReactNode;
200
+ slots?: Record<string, React.ReactNode>;
201
+ planName?: string;
202
+ price?: string;
203
+ features?: string[];
204
+ buttonText?: string;
205
+ isPopular?: boolean;
206
+ }>;
207
+ FooterSimple: React$1.FC<FooterProps>;
208
+ };
209
+
210
+ export { PageRenderer, componentRegistry };
@@ -0,0 +1,210 @@
1
+ import * as React$1 from 'react';
2
+ import React__default from 'react';
3
+ import * as LucideIcons from 'lucide-react';
4
+
5
+ interface PageRendererProps {
6
+ url: string;
7
+ }
8
+ declare const PageRenderer: React__default.FC<PageRendererProps>;
9
+
10
+ interface FooterProps {
11
+ children?: React__default.ReactNode;
12
+ slots?: Record<string, React__default.ReactNode>;
13
+ backgroundColor?: string;
14
+ className?: string;
15
+ }
16
+
17
+ interface ResponsiveValue<T> {
18
+ mobile?: T;
19
+ tablet?: T;
20
+ desktop?: T;
21
+ }
22
+ type AnimationType = "none" | "fadeIn" | "fromBottom" | "fromTop" | "fromLeft" | "fromRight";
23
+ type FontScale = "XS" | "SM" | "MD" | "LG" | "XL";
24
+ type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
25
+
26
+ interface HeroProps {
27
+ children?: React__default.ReactNode;
28
+ slots?: Record<string, React__default.ReactNode>;
29
+ className?: string;
30
+ padding?: ResponsiveValue<number>;
31
+ backgroundColor?: string;
32
+ bgImage?: string;
33
+ showOverlay?: boolean;
34
+ overlayColor?: string;
35
+ overlayOpacity?: number;
36
+ }
37
+
38
+ interface GridProps {
39
+ children?: React__default.ReactNode;
40
+ slots?: Record<string, React__default.ReactNode>;
41
+ columns?: number;
42
+ rows?: number;
43
+ gap?: number;
44
+ }
45
+
46
+ interface TwoColumnLayoutProps {
47
+ children?: React__default.ReactNode;
48
+ slots?: Record<string, React__default.ReactNode>;
49
+ gap?: number;
50
+ }
51
+ interface ThreeColumnLayoutProps {
52
+ children?: React__default.ReactNode;
53
+ slots?: Record<string, React__default.ReactNode>;
54
+ gap?: number;
55
+ }
56
+
57
+ interface BoxProps {
58
+ children?: React__default.ReactNode;
59
+ padding: ResponsiveValue<number>;
60
+ margin: ResponsiveValue<number>;
61
+ backgroundColor: string;
62
+ isBackgroundTransparent: boolean;
63
+ borderRadius: ResponsiveValue<number>;
64
+ width: ResponsiveValue<string>;
65
+ height: ResponsiveValue<string>;
66
+ flexDirection: ResponsiveValue<"row" | "column">;
67
+ alignItems: ResponsiveValue<string>;
68
+ justifyContent: ResponsiveValue<string>;
69
+ gap: ResponsiveValue<number>;
70
+ borderWidth: number;
71
+ borderColor: string;
72
+ shadowBlur: number;
73
+ shadowColor: string;
74
+ className?: string;
75
+ style?: React__default.CSSProperties;
76
+ animationType?: AnimationType;
77
+ flexWrap: ResponsiveValue<boolean>;
78
+ }
79
+
80
+ interface SectionProps {
81
+ children?: React__default.ReactNode;
82
+ padding?: ResponsiveValue<number>;
83
+ backgroundColor?: string;
84
+ alignItems?: "flex-start" | "center" | "flex-end";
85
+ justifyContent?: "flex-start" | "center" | "flex-end";
86
+ className?: string;
87
+ style?: React__default.CSSProperties;
88
+ }
89
+
90
+ interface IconProps {
91
+ name: keyof typeof LucideIcons;
92
+ size: number;
93
+ color: string;
94
+ }
95
+
96
+ interface VideoProps {
97
+ url: string;
98
+ width: string;
99
+ aspectRatio: string;
100
+ borderRadius: number;
101
+ animationType?: AnimationType;
102
+ }
103
+
104
+ interface DividerProps {
105
+ height: number;
106
+ color: string;
107
+ backgroundColor: string;
108
+ marginY: number;
109
+ }
110
+
111
+ interface TextProps {
112
+ text: string;
113
+ fontScale: ResponsiveValue<FontScale>;
114
+ textAlign: ResponsiveValue<"left" | "center" | "right" | "justify">;
115
+ fontWeight: ResponsiveValue<string>;
116
+ padding: ResponsiveValue<number>;
117
+ color: string;
118
+ textShadowBlur: number;
119
+ textShadowColor: string;
120
+ animationType?: AnimationType;
121
+ className?: string;
122
+ }
123
+
124
+ interface ImageProps {
125
+ src: string;
126
+ alt: string;
127
+ width: ResponsiveValue<string>;
128
+ height: ResponsiveValue<string>;
129
+ objectFit: "fill" | "contain" | "cover" | "none" | "scale-down";
130
+ borderRadius: ResponsiveValue<number>;
131
+ shadowBlur: number;
132
+ shadowColor: string;
133
+ animationType?: AnimationType;
134
+ }
135
+
136
+ interface HeadingProps {
137
+ text: string;
138
+ level: ResponsiveValue<HeadingLevel>;
139
+ textAlign: ResponsiveValue<"left" | "center" | "right" | "justify">;
140
+ fontWeight: ResponsiveValue<string>;
141
+ color: string;
142
+ textShadowBlur: number;
143
+ textShadowColor: string;
144
+ className?: string;
145
+ animationType?: AnimationType;
146
+ }
147
+
148
+ interface ButtonProps {
149
+ text: string;
150
+ fontSize: ResponsiveValue<number>;
151
+ backgroundColor: string;
152
+ isBackgroundTransparent: boolean;
153
+ color: string;
154
+ paddingX: ResponsiveValue<number>;
155
+ paddingY: ResponsiveValue<number>;
156
+ borderRadius: ResponsiveValue<number>;
157
+ variant: "solid" | "outline" | "ghost";
158
+ shadowBlur: number;
159
+ shadowColor: string;
160
+ className?: string;
161
+ animationType?: AnimationType;
162
+ }
163
+
164
+ declare const componentRegistry: {
165
+ Button: React$1.FC<ButtonProps>;
166
+ Heading: React$1.FC<HeadingProps>;
167
+ Image: React$1.FC<ImageProps>;
168
+ Text: React$1.FC<TextProps>;
169
+ Divider: React$1.FC<DividerProps>;
170
+ Video: React$1.FC<VideoProps>;
171
+ Icon: React$1.FC<IconProps>;
172
+ Section: React$1.FC<SectionProps>;
173
+ Box: React$1.FC<BoxProps>;
174
+ TwoColumnLayout: React$1.FC<TwoColumnLayoutProps>;
175
+ ThreeColumnLayout: React$1.FC<ThreeColumnLayoutProps>;
176
+ Grid: React$1.FC<GridProps>;
177
+ Hero: React$1.FC<HeroProps>;
178
+ FAQ: React$1.FC<{
179
+ children?: React.ReactNode;
180
+ slots?: Record<string, React.ReactNode>;
181
+ className?: string;
182
+ padding?: ResponsiveValue<number>;
183
+ backgroundColor?: string;
184
+ }>;
185
+ FAQItem: React$1.FC<{
186
+ children?: React.ReactNode;
187
+ slots?: Record<string, React.ReactNode>;
188
+ question?: string;
189
+ answer?: string;
190
+ }>;
191
+ PricingTable: React$1.FC<{
192
+ children?: React.ReactNode;
193
+ slots?: Record<string, React.ReactNode>;
194
+ className?: string;
195
+ padding?: ResponsiveValue<number>;
196
+ backgroundColor?: string;
197
+ }>;
198
+ PricingCard: React$1.FC<{
199
+ children?: React.ReactNode;
200
+ slots?: Record<string, React.ReactNode>;
201
+ planName?: string;
202
+ price?: string;
203
+ features?: string[];
204
+ buttonText?: string;
205
+ isPopular?: boolean;
206
+ }>;
207
+ FooterSimple: React$1.FC<FooterProps>;
208
+ };
209
+
210
+ export { PageRenderer, componentRegistry };