@damarkuncoro/landing-page 0.1.1 → 0.1.2

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/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- type SectionType = 'hero' | 'features' | 'testimonials' | 'pricing' | 'cta' | 'footer' | 'stats' | 'faq' | 'header';
4
- type ComponentType = 'button' | 'card' | 'image' | 'text' | 'video';
3
+ type SectionType = "hero" | "features" | "testimonials" | "pricing" | "cta" | "footer" | "stats" | "faq" | "header";
4
+ type ComponentType = "button" | "card" | "image" | "text" | "video";
5
5
  interface BaseConfig {
6
6
  id?: string;
7
7
  className?: string;
@@ -72,9 +72,9 @@ declare function defineLandingPage(config: LandingPageConfig): {
72
72
  interface ButtonConfig extends BaseConfig {
73
73
  text: string;
74
74
  url: string;
75
- variant: 'primary' | 'secondary' | 'outline' | 'ghost';
76
- size: 'sm' | 'md' | 'lg';
77
- target?: '_blank' | '_self';
75
+ variant: "primary" | "secondary" | "outline" | "ghost";
76
+ size: "sm" | "md" | "lg";
77
+ target?: "_blank" | "_self";
78
78
  }
79
79
  interface HeaderConfig extends BaseConfig {
80
80
  logo?: string;
@@ -83,7 +83,7 @@ interface HeaderConfig extends BaseConfig {
83
83
  id?: string;
84
84
  text: string;
85
85
  url: string;
86
- target?: '_blank' | '_self';
86
+ target?: "_blank" | "_self";
87
87
  }[];
88
88
  }
89
89
  interface HeroConfig extends BaseConfig {
@@ -92,7 +92,7 @@ interface HeroConfig extends BaseConfig {
92
92
  image?: string;
93
93
  video?: string;
94
94
  buttons: ButtonConfig[];
95
- alignment?: 'left' | 'center' | 'right';
95
+ alignment?: "left" | "center" | "right";
96
96
  }
97
97
  interface FeatureConfig extends BaseConfig {
98
98
  title: string;
@@ -127,7 +127,7 @@ interface FooterConfig extends BaseConfig {
127
127
  items: {
128
128
  text: string;
129
129
  url: string;
130
- target?: '_blank' | '_self';
130
+ target?: "_blank" | "_self";
131
131
  }[];
132
132
  }[];
133
133
  socialLinks: {
@@ -159,19 +159,19 @@ interface FaqConfig extends BaseConfig {
159
159
  }
160
160
 
161
161
  interface HeaderSection extends SectionConfig {
162
- type: 'header';
162
+ type: "header";
163
163
  config: HeaderConfig;
164
164
  }
165
165
  declare function createHeaderSection(config: HeaderConfig, id?: string, className?: string): HeaderSection;
166
166
 
167
167
  interface HeroSection extends SectionConfig {
168
- type: 'hero';
168
+ type: "hero";
169
169
  config: HeroConfig;
170
170
  }
171
171
  declare function createHeroSection(config: HeroConfig, id?: string, className?: string): HeroSection;
172
172
 
173
173
  interface FeaturesSection extends SectionConfig {
174
- type: 'features';
174
+ type: "features";
175
175
  config: {
176
176
  features: FeatureConfig[];
177
177
  };
@@ -181,7 +181,7 @@ declare function createFeaturesSection(config: {
181
181
  }, id?: string, className?: string): FeaturesSection;
182
182
 
183
183
  interface TestimonialsSection extends SectionConfig {
184
- type: 'testimonials';
184
+ type: "testimonials";
185
185
  config: {
186
186
  testimonials: TestimonialConfig[];
187
187
  };
@@ -191,25 +191,25 @@ declare function createTestimonialsSection(config: {
191
191
  }, id?: string, className?: string): TestimonialsSection;
192
192
 
193
193
  interface PricingSection extends SectionConfig {
194
- type: 'pricing';
194
+ type: "pricing";
195
195
  config: PricingConfig;
196
196
  }
197
197
  declare function createPricingSection(config: PricingConfig, id?: string, className?: string): PricingSection;
198
198
 
199
199
  interface CtaSection extends SectionConfig {
200
- type: 'cta';
200
+ type: "cta";
201
201
  config: CtaConfig;
202
202
  }
203
203
  declare function createCtaSection(config: CtaConfig, id?: string, className?: string): CtaSection;
204
204
 
205
205
  interface FooterSection extends SectionConfig {
206
- type: 'footer';
206
+ type: "footer";
207
207
  config: FooterConfig;
208
208
  }
209
209
  declare function createFooterSection(config: FooterConfig, id?: string, className?: string): FooterSection;
210
210
 
211
211
  interface StatsSection extends SectionConfig {
212
- type: 'stats';
212
+ type: "stats";
213
213
  config: {
214
214
  stats: StatConfig[];
215
215
  };
@@ -219,7 +219,7 @@ declare function createStatsSection(config: {
219
219
  }, id?: string, className?: string): StatsSection;
220
220
 
221
221
  interface FaqSection extends SectionConfig {
222
- type: 'faq';
222
+ type: "faq";
223
223
  config: FaqConfig;
224
224
  }
225
225
  declare function createFaqSection(config: FaqConfig, id?: string, className?: string): FaqSection;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
 
3
- type SectionType = 'hero' | 'features' | 'testimonials' | 'pricing' | 'cta' | 'footer' | 'stats' | 'faq' | 'header';
4
- type ComponentType = 'button' | 'card' | 'image' | 'text' | 'video';
3
+ type SectionType = "hero" | "features" | "testimonials" | "pricing" | "cta" | "footer" | "stats" | "faq" | "header";
4
+ type ComponentType = "button" | "card" | "image" | "text" | "video";
5
5
  interface BaseConfig {
6
6
  id?: string;
7
7
  className?: string;
@@ -72,9 +72,9 @@ declare function defineLandingPage(config: LandingPageConfig): {
72
72
  interface ButtonConfig extends BaseConfig {
73
73
  text: string;
74
74
  url: string;
75
- variant: 'primary' | 'secondary' | 'outline' | 'ghost';
76
- size: 'sm' | 'md' | 'lg';
77
- target?: '_blank' | '_self';
75
+ variant: "primary" | "secondary" | "outline" | "ghost";
76
+ size: "sm" | "md" | "lg";
77
+ target?: "_blank" | "_self";
78
78
  }
79
79
  interface HeaderConfig extends BaseConfig {
80
80
  logo?: string;
@@ -83,7 +83,7 @@ interface HeaderConfig extends BaseConfig {
83
83
  id?: string;
84
84
  text: string;
85
85
  url: string;
86
- target?: '_blank' | '_self';
86
+ target?: "_blank" | "_self";
87
87
  }[];
88
88
  }
89
89
  interface HeroConfig extends BaseConfig {
@@ -92,7 +92,7 @@ interface HeroConfig extends BaseConfig {
92
92
  image?: string;
93
93
  video?: string;
94
94
  buttons: ButtonConfig[];
95
- alignment?: 'left' | 'center' | 'right';
95
+ alignment?: "left" | "center" | "right";
96
96
  }
97
97
  interface FeatureConfig extends BaseConfig {
98
98
  title: string;
@@ -127,7 +127,7 @@ interface FooterConfig extends BaseConfig {
127
127
  items: {
128
128
  text: string;
129
129
  url: string;
130
- target?: '_blank' | '_self';
130
+ target?: "_blank" | "_self";
131
131
  }[];
132
132
  }[];
133
133
  socialLinks: {
@@ -159,19 +159,19 @@ interface FaqConfig extends BaseConfig {
159
159
  }
160
160
 
161
161
  interface HeaderSection extends SectionConfig {
162
- type: 'header';
162
+ type: "header";
163
163
  config: HeaderConfig;
164
164
  }
165
165
  declare function createHeaderSection(config: HeaderConfig, id?: string, className?: string): HeaderSection;
166
166
 
167
167
  interface HeroSection extends SectionConfig {
168
- type: 'hero';
168
+ type: "hero";
169
169
  config: HeroConfig;
170
170
  }
171
171
  declare function createHeroSection(config: HeroConfig, id?: string, className?: string): HeroSection;
172
172
 
173
173
  interface FeaturesSection extends SectionConfig {
174
- type: 'features';
174
+ type: "features";
175
175
  config: {
176
176
  features: FeatureConfig[];
177
177
  };
@@ -181,7 +181,7 @@ declare function createFeaturesSection(config: {
181
181
  }, id?: string, className?: string): FeaturesSection;
182
182
 
183
183
  interface TestimonialsSection extends SectionConfig {
184
- type: 'testimonials';
184
+ type: "testimonials";
185
185
  config: {
186
186
  testimonials: TestimonialConfig[];
187
187
  };
@@ -191,25 +191,25 @@ declare function createTestimonialsSection(config: {
191
191
  }, id?: string, className?: string): TestimonialsSection;
192
192
 
193
193
  interface PricingSection extends SectionConfig {
194
- type: 'pricing';
194
+ type: "pricing";
195
195
  config: PricingConfig;
196
196
  }
197
197
  declare function createPricingSection(config: PricingConfig, id?: string, className?: string): PricingSection;
198
198
 
199
199
  interface CtaSection extends SectionConfig {
200
- type: 'cta';
200
+ type: "cta";
201
201
  config: CtaConfig;
202
202
  }
203
203
  declare function createCtaSection(config: CtaConfig, id?: string, className?: string): CtaSection;
204
204
 
205
205
  interface FooterSection extends SectionConfig {
206
- type: 'footer';
206
+ type: "footer";
207
207
  config: FooterConfig;
208
208
  }
209
209
  declare function createFooterSection(config: FooterConfig, id?: string, className?: string): FooterSection;
210
210
 
211
211
  interface StatsSection extends SectionConfig {
212
- type: 'stats';
212
+ type: "stats";
213
213
  config: {
214
214
  stats: StatConfig[];
215
215
  };
@@ -219,7 +219,7 @@ declare function createStatsSection(config: {
219
219
  }, id?: string, className?: string): StatsSection;
220
220
 
221
221
  interface FaqSection extends SectionConfig {
222
- type: 'faq';
222
+ type: "faq";
223
223
  config: FaqConfig;
224
224
  }
225
225
  declare function createFaqSection(config: FaqConfig, id?: string, className?: string): FaqSection;