@forjacms/sections-react 1.2.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/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @forjacms/sections-react
2
+
3
+ React wrappers for [`@forjacms/sections`](https://www.npmjs.com/package/@forjacms/sections) Web Components. Auto-generated by [Stencil](https://stenciljs.com/).
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @forjacms/sections @forjacms/sections-react
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { ForjaHero, ForjaFeatures, ForjaCta } from '@forjacms/sections-react';
15
+
16
+ export default function LandingPage() {
17
+ return (
18
+ <>
19
+ <ForjaHero
20
+ heading="Welcome"
21
+ subheading="Build something great"
22
+ primaryLabel="Get Started"
23
+ primaryHref="/signup"
24
+ />
25
+ <ForjaFeatures items={features} columns={3} />
26
+ <ForjaCta heading="Ready?" buttonLabel="Sign Up" buttonHref="/signup" />
27
+ </>
28
+ );
29
+ }
30
+ ```
31
+
32
+ ## Available Components
33
+
34
+ All 24 `@forjacms/sections` Web Components are available as React components with typed props:
35
+
36
+ `ForjaHero`, `ForjaFeatures`, `ForjaCta`, `ForjaGallery`, `ForjaTestimonials`, `ForjaPricing`, `ForjaFaq`, `ForjaContact`, `ForjaStats`, `ForjaTeam`, `ForjaTimeline`, `ForjaLogoCloud`, `ForjaNewsletter`, `ForjaVideo`, `ForjaDivider`, `ForjaText`, `ForjaPortfolio`, `ForjaTagCloud`, `ForjaProjects`, `ForjaBlog`, `ForjaLegal`, `ForjaNav`, `ForjaFooter`, `ForjaSectionRenderer`
37
+
38
+ ## Peer Dependencies
39
+
40
+ - `@forjacms/sections` >= 1.2.4
41
+ - `react` >= 18
42
+ - `react-dom` >= 18
43
+
44
+ ## License
45
+
46
+ AGPL-3.0-or-later
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@forjacms/sections-react",
3
+ "version": "1.2.6",
4
+ "description": "React wrappers for @forjacms/sections Web Components. Auto-generated by Stencil.",
5
+ "author": "Dominik Dorfstetter <dominik@dorfstetter.at>",
6
+ "type": "module",
7
+ "main": "src/components.ts",
8
+ "types": "src/components.ts",
9
+ "exports": {
10
+ ".": "./src/components.ts"
11
+ },
12
+ "files": [
13
+ "src"
14
+ ],
15
+ "keywords": [
16
+ "react",
17
+ "web-components",
18
+ "stencil",
19
+ "sections",
20
+ "forja"
21
+ ],
22
+ "license": "AGPL-3.0-or-later",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/dominikdorfstetter/forja.git",
26
+ "directory": "libs/sections-react"
27
+ },
28
+ "homepage": "https://github.com/dominikdorfstetter/forja/tree/main/libs/sections-react#readme",
29
+ "bugs": "https://github.com/dominikdorfstetter/forja/issues",
30
+ "peerDependencies": {
31
+ "@forjacms/sections": "^1.2.6",
32
+ "react": ">=18",
33
+ "react-dom": ">=18"
34
+ },
35
+ "dependencies": {
36
+ "@stencil/react-output-target": "^0.7.0"
37
+ }
38
+ }
@@ -0,0 +1,307 @@
1
+ 'use client';
2
+
3
+ /**
4
+ * This file was automatically generated by the Stencil React Output Target.
5
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
6
+ */
7
+
8
+ /* eslint-disable */
9
+
10
+ import { type ForjaContactCustomEvent, type ForjaNewsletterCustomEvent } from "@forjacms/sections";
11
+ import { ForjaBlog as ForjaBlogElement, defineCustomElement as defineForjaBlog } from "@forjacms/sections/dist/components/forja-blog.js";
12
+ import { ForjaContact as ForjaContactElement, defineCustomElement as defineForjaContact } from "@forjacms/sections/dist/components/forja-contact.js";
13
+ import { ForjaCta as ForjaCtaElement, defineCustomElement as defineForjaCta } from "@forjacms/sections/dist/components/forja-cta.js";
14
+ import { ForjaDivider as ForjaDividerElement, defineCustomElement as defineForjaDivider } from "@forjacms/sections/dist/components/forja-divider.js";
15
+ import { ForjaFaq as ForjaFaqElement, defineCustomElement as defineForjaFaq } from "@forjacms/sections/dist/components/forja-faq.js";
16
+ import { ForjaFeatures as ForjaFeaturesElement, defineCustomElement as defineForjaFeatures } from "@forjacms/sections/dist/components/forja-features.js";
17
+ import { ForjaFooter as ForjaFooterElement, defineCustomElement as defineForjaFooter } from "@forjacms/sections/dist/components/forja-footer.js";
18
+ import { ForjaGallery as ForjaGalleryElement, defineCustomElement as defineForjaGallery } from "@forjacms/sections/dist/components/forja-gallery.js";
19
+ import { ForjaHero as ForjaHeroElement, defineCustomElement as defineForjaHero } from "@forjacms/sections/dist/components/forja-hero.js";
20
+ import { ForjaLegal as ForjaLegalElement, defineCustomElement as defineForjaLegal } from "@forjacms/sections/dist/components/forja-legal.js";
21
+ import { ForjaLogoCloud as ForjaLogoCloudElement, defineCustomElement as defineForjaLogoCloud } from "@forjacms/sections/dist/components/forja-logo-cloud.js";
22
+ import { ForjaNav as ForjaNavElement, defineCustomElement as defineForjaNav } from "@forjacms/sections/dist/components/forja-nav.js";
23
+ import { ForjaNewsletter as ForjaNewsletterElement, defineCustomElement as defineForjaNewsletter } from "@forjacms/sections/dist/components/forja-newsletter.js";
24
+ import { ForjaPortfolio as ForjaPortfolioElement, defineCustomElement as defineForjaPortfolio } from "@forjacms/sections/dist/components/forja-portfolio.js";
25
+ import { ForjaPricing as ForjaPricingElement, defineCustomElement as defineForjaPricing } from "@forjacms/sections/dist/components/forja-pricing.js";
26
+ import { ForjaProjects as ForjaProjectsElement, defineCustomElement as defineForjaProjects } from "@forjacms/sections/dist/components/forja-projects.js";
27
+ import { ForjaSectionRenderer as ForjaSectionRendererElement, defineCustomElement as defineForjaSectionRenderer } from "@forjacms/sections/dist/components/forja-section-renderer.js";
28
+ import { ForjaStats as ForjaStatsElement, defineCustomElement as defineForjaStats } from "@forjacms/sections/dist/components/forja-stats.js";
29
+ import { ForjaTagCloud as ForjaTagCloudElement, defineCustomElement as defineForjaTagCloud } from "@forjacms/sections/dist/components/forja-tag-cloud.js";
30
+ import { ForjaTeam as ForjaTeamElement, defineCustomElement as defineForjaTeam } from "@forjacms/sections/dist/components/forja-team.js";
31
+ import { ForjaTestimonials as ForjaTestimonialsElement, defineCustomElement as defineForjaTestimonials } from "@forjacms/sections/dist/components/forja-testimonials.js";
32
+ import { ForjaTextBlock as ForjaTextBlockElement, defineCustomElement as defineForjaTextBlock } from "@forjacms/sections/dist/components/forja-text-block.js";
33
+ import { ForjaTimeline as ForjaTimelineElement, defineCustomElement as defineForjaTimeline } from "@forjacms/sections/dist/components/forja-timeline.js";
34
+ import { ForjaVideo as ForjaVideoElement, defineCustomElement as defineForjaVideo } from "@forjacms/sections/dist/components/forja-video.js";
35
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
36
+ import { createComponent } from '@stencil/react-output-target/runtime';
37
+ import React from 'react';
38
+
39
+ type ForjaBlogEvents = NonNullable<unknown>;
40
+
41
+ export const ForjaBlog: StencilReactComponent<ForjaBlogElement, ForjaBlogEvents> = /*@__PURE__*/ createComponent<ForjaBlogElement, ForjaBlogEvents>({
42
+ tagName: 'forja-blog',
43
+ elementClass: ForjaBlogElement,
44
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
45
+ react: React,
46
+ events: {} as ForjaBlogEvents,
47
+ defineCustomElement: defineForjaBlog
48
+ });
49
+
50
+ type ForjaContactEvents = { onForjaSubmit: EventName<ForjaContactCustomEvent<FormData>> };
51
+
52
+ export const ForjaContact: StencilReactComponent<ForjaContactElement, ForjaContactEvents> = /*@__PURE__*/ createComponent<ForjaContactElement, ForjaContactEvents>({
53
+ tagName: 'forja-contact',
54
+ elementClass: ForjaContactElement,
55
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
56
+ react: React,
57
+ events: { onForjaSubmit: 'forjaSubmit' } as ForjaContactEvents,
58
+ defineCustomElement: defineForjaContact
59
+ });
60
+
61
+ type ForjaCtaEvents = NonNullable<unknown>;
62
+
63
+ export const ForjaCta: StencilReactComponent<ForjaCtaElement, ForjaCtaEvents> = /*@__PURE__*/ createComponent<ForjaCtaElement, ForjaCtaEvents>({
64
+ tagName: 'forja-cta',
65
+ elementClass: ForjaCtaElement,
66
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
67
+ react: React,
68
+ events: {} as ForjaCtaEvents,
69
+ defineCustomElement: defineForjaCta
70
+ });
71
+
72
+ type ForjaDividerEvents = NonNullable<unknown>;
73
+
74
+ export const ForjaDivider: StencilReactComponent<ForjaDividerElement, ForjaDividerEvents> = /*@__PURE__*/ createComponent<ForjaDividerElement, ForjaDividerEvents>({
75
+ tagName: 'forja-divider',
76
+ elementClass: ForjaDividerElement,
77
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
78
+ react: React,
79
+ events: {} as ForjaDividerEvents,
80
+ defineCustomElement: defineForjaDivider
81
+ });
82
+
83
+ type ForjaFaqEvents = NonNullable<unknown>;
84
+
85
+ export const ForjaFaq: StencilReactComponent<ForjaFaqElement, ForjaFaqEvents> = /*@__PURE__*/ createComponent<ForjaFaqElement, ForjaFaqEvents>({
86
+ tagName: 'forja-faq',
87
+ elementClass: ForjaFaqElement,
88
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
89
+ react: React,
90
+ events: {} as ForjaFaqEvents,
91
+ defineCustomElement: defineForjaFaq
92
+ });
93
+
94
+ type ForjaFeaturesEvents = NonNullable<unknown>;
95
+
96
+ export const ForjaFeatures: StencilReactComponent<ForjaFeaturesElement, ForjaFeaturesEvents> = /*@__PURE__*/ createComponent<ForjaFeaturesElement, ForjaFeaturesEvents>({
97
+ tagName: 'forja-features',
98
+ elementClass: ForjaFeaturesElement,
99
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
100
+ react: React,
101
+ events: {} as ForjaFeaturesEvents,
102
+ defineCustomElement: defineForjaFeatures
103
+ });
104
+
105
+ type ForjaFooterEvents = NonNullable<unknown>;
106
+
107
+ export const ForjaFooter: StencilReactComponent<ForjaFooterElement, ForjaFooterEvents> = /*@__PURE__*/ createComponent<ForjaFooterElement, ForjaFooterEvents>({
108
+ tagName: 'forja-footer',
109
+ elementClass: ForjaFooterElement,
110
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
111
+ react: React,
112
+ events: {} as ForjaFooterEvents,
113
+ defineCustomElement: defineForjaFooter
114
+ });
115
+
116
+ type ForjaGalleryEvents = NonNullable<unknown>;
117
+
118
+ export const ForjaGallery: StencilReactComponent<ForjaGalleryElement, ForjaGalleryEvents> = /*@__PURE__*/ createComponent<ForjaGalleryElement, ForjaGalleryEvents>({
119
+ tagName: 'forja-gallery',
120
+ elementClass: ForjaGalleryElement,
121
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
122
+ react: React,
123
+ events: {} as ForjaGalleryEvents,
124
+ defineCustomElement: defineForjaGallery
125
+ });
126
+
127
+ type ForjaHeroEvents = NonNullable<unknown>;
128
+
129
+ export const ForjaHero: StencilReactComponent<ForjaHeroElement, ForjaHeroEvents> = /*@__PURE__*/ createComponent<ForjaHeroElement, ForjaHeroEvents>({
130
+ tagName: 'forja-hero',
131
+ elementClass: ForjaHeroElement,
132
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
133
+ react: React,
134
+ events: {} as ForjaHeroEvents,
135
+ defineCustomElement: defineForjaHero
136
+ });
137
+
138
+ type ForjaLegalEvents = NonNullable<unknown>;
139
+
140
+ export const ForjaLegal: StencilReactComponent<ForjaLegalElement, ForjaLegalEvents> = /*@__PURE__*/ createComponent<ForjaLegalElement, ForjaLegalEvents>({
141
+ tagName: 'forja-legal',
142
+ elementClass: ForjaLegalElement,
143
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
144
+ react: React,
145
+ events: {} as ForjaLegalEvents,
146
+ defineCustomElement: defineForjaLegal
147
+ });
148
+
149
+ type ForjaLogoCloudEvents = NonNullable<unknown>;
150
+
151
+ export const ForjaLogoCloud: StencilReactComponent<ForjaLogoCloudElement, ForjaLogoCloudEvents> = /*@__PURE__*/ createComponent<ForjaLogoCloudElement, ForjaLogoCloudEvents>({
152
+ tagName: 'forja-logo-cloud',
153
+ elementClass: ForjaLogoCloudElement,
154
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
155
+ react: React,
156
+ events: {} as ForjaLogoCloudEvents,
157
+ defineCustomElement: defineForjaLogoCloud
158
+ });
159
+
160
+ type ForjaNavEvents = {
161
+ onForjaThemeToggle: EventName<CustomEvent<void>>,
162
+ onForjaLocaleChange: EventName<CustomEvent<string>>
163
+ };
164
+
165
+ export const ForjaNav: StencilReactComponent<ForjaNavElement, ForjaNavEvents> = /*@__PURE__*/ createComponent<ForjaNavElement, ForjaNavEvents>({
166
+ tagName: 'forja-nav',
167
+ elementClass: ForjaNavElement,
168
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
169
+ react: React,
170
+ events: {
171
+ onForjaThemeToggle: 'forjaThemeToggle',
172
+ onForjaLocaleChange: 'forjaLocaleChange'
173
+ } as ForjaNavEvents,
174
+ defineCustomElement: defineForjaNav
175
+ });
176
+
177
+ type ForjaNewsletterEvents = { onForjaSubmit: EventName<ForjaNewsletterCustomEvent<FormData>> };
178
+
179
+ export const ForjaNewsletter: StencilReactComponent<ForjaNewsletterElement, ForjaNewsletterEvents> = /*@__PURE__*/ createComponent<ForjaNewsletterElement, ForjaNewsletterEvents>({
180
+ tagName: 'forja-newsletter',
181
+ elementClass: ForjaNewsletterElement,
182
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
183
+ react: React,
184
+ events: { onForjaSubmit: 'forjaSubmit' } as ForjaNewsletterEvents,
185
+ defineCustomElement: defineForjaNewsletter
186
+ });
187
+
188
+ type ForjaPortfolioEvents = NonNullable<unknown>;
189
+
190
+ export const ForjaPortfolio: StencilReactComponent<ForjaPortfolioElement, ForjaPortfolioEvents> = /*@__PURE__*/ createComponent<ForjaPortfolioElement, ForjaPortfolioEvents>({
191
+ tagName: 'forja-portfolio',
192
+ elementClass: ForjaPortfolioElement,
193
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
194
+ react: React,
195
+ events: {} as ForjaPortfolioEvents,
196
+ defineCustomElement: defineForjaPortfolio
197
+ });
198
+
199
+ type ForjaPricingEvents = NonNullable<unknown>;
200
+
201
+ export const ForjaPricing: StencilReactComponent<ForjaPricingElement, ForjaPricingEvents> = /*@__PURE__*/ createComponent<ForjaPricingElement, ForjaPricingEvents>({
202
+ tagName: 'forja-pricing',
203
+ elementClass: ForjaPricingElement,
204
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
205
+ react: React,
206
+ events: {} as ForjaPricingEvents,
207
+ defineCustomElement: defineForjaPricing
208
+ });
209
+
210
+ type ForjaProjectsEvents = NonNullable<unknown>;
211
+
212
+ export const ForjaProjects: StencilReactComponent<ForjaProjectsElement, ForjaProjectsEvents> = /*@__PURE__*/ createComponent<ForjaProjectsElement, ForjaProjectsEvents>({
213
+ tagName: 'forja-projects',
214
+ elementClass: ForjaProjectsElement,
215
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
216
+ react: React,
217
+ events: {} as ForjaProjectsEvents,
218
+ defineCustomElement: defineForjaProjects
219
+ });
220
+
221
+ type ForjaSectionRendererEvents = NonNullable<unknown>;
222
+
223
+ export const ForjaSectionRenderer: StencilReactComponent<ForjaSectionRendererElement, ForjaSectionRendererEvents> = /*@__PURE__*/ createComponent<ForjaSectionRendererElement, ForjaSectionRendererEvents>({
224
+ tagName: 'forja-section-renderer',
225
+ elementClass: ForjaSectionRendererElement,
226
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
227
+ react: React,
228
+ events: {} as ForjaSectionRendererEvents,
229
+ defineCustomElement: defineForjaSectionRenderer
230
+ });
231
+
232
+ type ForjaStatsEvents = NonNullable<unknown>;
233
+
234
+ export const ForjaStats: StencilReactComponent<ForjaStatsElement, ForjaStatsEvents> = /*@__PURE__*/ createComponent<ForjaStatsElement, ForjaStatsEvents>({
235
+ tagName: 'forja-stats',
236
+ elementClass: ForjaStatsElement,
237
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
238
+ react: React,
239
+ events: {} as ForjaStatsEvents,
240
+ defineCustomElement: defineForjaStats
241
+ });
242
+
243
+ type ForjaTagCloudEvents = NonNullable<unknown>;
244
+
245
+ export const ForjaTagCloud: StencilReactComponent<ForjaTagCloudElement, ForjaTagCloudEvents> = /*@__PURE__*/ createComponent<ForjaTagCloudElement, ForjaTagCloudEvents>({
246
+ tagName: 'forja-tag-cloud',
247
+ elementClass: ForjaTagCloudElement,
248
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
249
+ react: React,
250
+ events: {} as ForjaTagCloudEvents,
251
+ defineCustomElement: defineForjaTagCloud
252
+ });
253
+
254
+ type ForjaTeamEvents = NonNullable<unknown>;
255
+
256
+ export const ForjaTeam: StencilReactComponent<ForjaTeamElement, ForjaTeamEvents> = /*@__PURE__*/ createComponent<ForjaTeamElement, ForjaTeamEvents>({
257
+ tagName: 'forja-team',
258
+ elementClass: ForjaTeamElement,
259
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
260
+ react: React,
261
+ events: {} as ForjaTeamEvents,
262
+ defineCustomElement: defineForjaTeam
263
+ });
264
+
265
+ type ForjaTestimonialsEvents = NonNullable<unknown>;
266
+
267
+ export const ForjaTestimonials: StencilReactComponent<ForjaTestimonialsElement, ForjaTestimonialsEvents> = /*@__PURE__*/ createComponent<ForjaTestimonialsElement, ForjaTestimonialsEvents>({
268
+ tagName: 'forja-testimonials',
269
+ elementClass: ForjaTestimonialsElement,
270
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
271
+ react: React,
272
+ events: {} as ForjaTestimonialsEvents,
273
+ defineCustomElement: defineForjaTestimonials
274
+ });
275
+
276
+ type ForjaTextBlockEvents = NonNullable<unknown>;
277
+
278
+ export const ForjaTextBlock: StencilReactComponent<ForjaTextBlockElement, ForjaTextBlockEvents> = /*@__PURE__*/ createComponent<ForjaTextBlockElement, ForjaTextBlockEvents>({
279
+ tagName: 'forja-text-block',
280
+ elementClass: ForjaTextBlockElement,
281
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
282
+ react: React,
283
+ events: {} as ForjaTextBlockEvents,
284
+ defineCustomElement: defineForjaTextBlock
285
+ });
286
+
287
+ type ForjaTimelineEvents = NonNullable<unknown>;
288
+
289
+ export const ForjaTimeline: StencilReactComponent<ForjaTimelineElement, ForjaTimelineEvents> = /*@__PURE__*/ createComponent<ForjaTimelineElement, ForjaTimelineEvents>({
290
+ tagName: 'forja-timeline',
291
+ elementClass: ForjaTimelineElement,
292
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
293
+ react: React,
294
+ events: {} as ForjaTimelineEvents,
295
+ defineCustomElement: defineForjaTimeline
296
+ });
297
+
298
+ type ForjaVideoEvents = NonNullable<unknown>;
299
+
300
+ export const ForjaVideo: StencilReactComponent<ForjaVideoElement, ForjaVideoEvents> = /*@__PURE__*/ createComponent<ForjaVideoElement, ForjaVideoEvents>({
301
+ tagName: 'forja-video',
302
+ elementClass: ForjaVideoElement,
303
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
304
+ react: React,
305
+ events: {} as ForjaVideoEvents,
306
+ defineCustomElement: defineForjaVideo
307
+ });