@forjacms/sections 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 +185 -0
- package/dist/cjs/a11y-IAJPjMwx.js +27 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/forja-blog.cjs.entry.js +16 -0
- package/dist/cjs/forja-contact.cjs.entry.js +25 -0
- package/dist/cjs/forja-cta.cjs.entry.js +15 -0
- package/dist/cjs/forja-divider.cjs.entry.js +19 -0
- package/dist/cjs/forja-faq.cjs.entry.js +16 -0
- package/dist/cjs/forja-features.cjs.entry.js +16 -0
- package/dist/cjs/forja-footer.cjs.entry.js +38 -0
- package/dist/cjs/forja-gallery.cjs.entry.js +16 -0
- package/dist/cjs/forja-hero.cjs.entry.js +20 -0
- package/dist/cjs/forja-legal.cjs.entry.js +46 -0
- package/dist/cjs/forja-logo-cloud.cjs.entry.js +20 -0
- package/dist/cjs/forja-nav.cjs.entry.js +53 -0
- package/dist/cjs/forja-newsletter.cjs.entry.js +24 -0
- package/dist/cjs/forja-portfolio.cjs.entry.js +37 -0
- package/dist/cjs/forja-pricing.cjs.entry.js +16 -0
- package/dist/cjs/forja-projects.cjs.entry.js +16 -0
- package/dist/cjs/forja-section-renderer.cjs.entry.js +42 -0
- package/dist/cjs/forja-sections.cjs.js +25 -0
- package/dist/cjs/forja-stats.cjs.entry.js +20 -0
- package/dist/cjs/forja-tag-cloud.cjs.entry.js +16 -0
- package/dist/cjs/forja-team.cjs.entry.js +18 -0
- package/dist/cjs/forja-testimonials.cjs.entry.js +16 -0
- package/dist/cjs/forja-text-block.cjs.entry.js +22 -0
- package/dist/cjs/forja-timeline.cjs.entry.js +19 -0
- package/dist/cjs/forja-video.cjs.entry.js +30 -0
- package/dist/cjs/index-Bp-SZu2Y.js +1754 -0
- package/dist/cjs/index.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/collection-manifest.json +36 -0
- package/dist/collection/components/forja-blog/forja-blog.js +132 -0
- package/dist/collection/components/forja-contact/forja-contact.js +165 -0
- package/dist/collection/components/forja-cta/forja-cta.js +126 -0
- package/dist/collection/components/forja-divider/forja-divider.js +57 -0
- package/dist/collection/components/forja-faq/forja-faq.js +75 -0
- package/dist/collection/components/forja-features/forja-features.js +94 -0
- package/dist/collection/components/forja-footer/forja-footer.js +184 -0
- package/dist/collection/components/forja-gallery/forja-gallery.js +94 -0
- package/dist/collection/components/forja-hero/forja-hero.js +169 -0
- package/dist/collection/components/forja-legal/forja-legal.js +289 -0
- package/dist/collection/components/forja-logo-cloud/forja-logo-cloud.js +117 -0
- package/dist/collection/components/forja-nav/forja-nav.js +215 -0
- package/dist/collection/components/forja-newsletter/forja-newsletter.js +141 -0
- package/dist/collection/components/forja-portfolio/forja-portfolio.js +163 -0
- package/dist/collection/components/forja-pricing/forja-pricing.js +94 -0
- package/dist/collection/components/forja-projects/forja-projects.js +94 -0
- package/dist/collection/components/forja-section-renderer/forja-section-renderer.js +218 -0
- package/dist/collection/components/forja-stats/forja-stats.js +117 -0
- package/dist/collection/components/forja-tag-cloud/forja-tag-cloud.js +75 -0
- package/dist/collection/components/forja-team/forja-team.js +138 -0
- package/dist/collection/components/forja-testimonials/forja-testimonials.js +94 -0
- package/dist/collection/components/forja-text-block/forja-text-block.js +99 -0
- package/dist/collection/components/forja-timeline/forja-timeline.js +120 -0
- package/dist/collection/components/forja-video/forja-video.js +146 -0
- package/dist/collection/index.js +4 -0
- package/dist/collection/types.js +7 -0
- package/dist/collection/utils/a11y.js +22 -0
- package/dist/collection/utils/a11y.unit.js +46 -0
- package/dist/components/forja-blog.d.ts +11 -0
- package/dist/components/forja-blog.js +1 -0
- package/dist/components/forja-contact.d.ts +11 -0
- package/dist/components/forja-contact.js +1 -0
- package/dist/components/forja-cta.d.ts +11 -0
- package/dist/components/forja-cta.js +1 -0
- package/dist/components/forja-divider.d.ts +11 -0
- package/dist/components/forja-divider.js +1 -0
- package/dist/components/forja-faq.d.ts +11 -0
- package/dist/components/forja-faq.js +1 -0
- package/dist/components/forja-features.d.ts +11 -0
- package/dist/components/forja-features.js +1 -0
- package/dist/components/forja-footer.d.ts +11 -0
- package/dist/components/forja-footer.js +1 -0
- package/dist/components/forja-gallery.d.ts +11 -0
- package/dist/components/forja-gallery.js +1 -0
- package/dist/components/forja-hero.d.ts +11 -0
- package/dist/components/forja-hero.js +1 -0
- package/dist/components/forja-legal.d.ts +11 -0
- package/dist/components/forja-legal.js +1 -0
- package/dist/components/forja-logo-cloud.d.ts +11 -0
- package/dist/components/forja-logo-cloud.js +1 -0
- package/dist/components/forja-nav.d.ts +11 -0
- package/dist/components/forja-nav.js +1 -0
- package/dist/components/forja-newsletter.d.ts +11 -0
- package/dist/components/forja-newsletter.js +1 -0
- package/dist/components/forja-portfolio.d.ts +11 -0
- package/dist/components/forja-portfolio.js +1 -0
- package/dist/components/forja-pricing.d.ts +11 -0
- package/dist/components/forja-pricing.js +1 -0
- package/dist/components/forja-projects.d.ts +11 -0
- package/dist/components/forja-projects.js +1 -0
- package/dist/components/forja-section-renderer.d.ts +11 -0
- package/dist/components/forja-section-renderer.js +1 -0
- package/dist/components/forja-stats.d.ts +11 -0
- package/dist/components/forja-stats.js +1 -0
- package/dist/components/forja-tag-cloud.d.ts +11 -0
- package/dist/components/forja-tag-cloud.js +1 -0
- package/dist/components/forja-team.d.ts +11 -0
- package/dist/components/forja-team.js +1 -0
- package/dist/components/forja-testimonials.d.ts +11 -0
- package/dist/components/forja-testimonials.js +1 -0
- package/dist/components/forja-text-block.d.ts +11 -0
- package/dist/components/forja-text-block.js +1 -0
- package/dist/components/forja-timeline.d.ts +11 -0
- package/dist/components/forja-timeline.js +1 -0
- package/dist/components/forja-video.d.ts +11 -0
- package/dist/components/forja-video.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-CTbyYfdB.js +1 -0
- package/dist/components/p-DTKnQcqm.js +1 -0
- package/dist/define-all.d.ts +2 -0
- package/dist/define-all.js +24 -0
- package/dist/esm/a11y-CTbyYfdB.js +24 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/forja-blog.entry.js +14 -0
- package/dist/esm/forja-contact.entry.js +23 -0
- package/dist/esm/forja-cta.entry.js +13 -0
- package/dist/esm/forja-divider.entry.js +17 -0
- package/dist/esm/forja-faq.entry.js +14 -0
- package/dist/esm/forja-features.entry.js +14 -0
- package/dist/esm/forja-footer.entry.js +36 -0
- package/dist/esm/forja-gallery.entry.js +14 -0
- package/dist/esm/forja-hero.entry.js +18 -0
- package/dist/esm/forja-legal.entry.js +44 -0
- package/dist/esm/forja-logo-cloud.entry.js +18 -0
- package/dist/esm/forja-nav.entry.js +51 -0
- package/dist/esm/forja-newsletter.entry.js +22 -0
- package/dist/esm/forja-portfolio.entry.js +35 -0
- package/dist/esm/forja-pricing.entry.js +14 -0
- package/dist/esm/forja-projects.entry.js +14 -0
- package/dist/esm/forja-section-renderer.entry.js +40 -0
- package/dist/esm/forja-sections.js +21 -0
- package/dist/esm/forja-stats.entry.js +18 -0
- package/dist/esm/forja-tag-cloud.entry.js +14 -0
- package/dist/esm/forja-team.entry.js +16 -0
- package/dist/esm/forja-testimonials.entry.js +14 -0
- package/dist/esm/forja-text-block.entry.js +20 -0
- package/dist/esm/forja-timeline.entry.js +17 -0
- package/dist/esm/forja-video.entry.js +28 -0
- package/dist/esm/index-WdE4YutY.js +1747 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/loader.js +11 -0
- package/dist/forja-sections/forja-sections.esm.js +1 -0
- package/dist/forja-sections/index.esm.js +1 -0
- package/dist/forja-sections/p-0a820467.entry.js +1 -0
- package/dist/forja-sections/p-1b0b71f5.entry.js +1 -0
- package/dist/forja-sections/p-1e7249c1.entry.js +1 -0
- package/dist/forja-sections/p-27f014b1.entry.js +1 -0
- package/dist/forja-sections/p-2834de40.entry.js +1 -0
- package/dist/forja-sections/p-2a7f54c6.entry.js +1 -0
- package/dist/forja-sections/p-2b3d6388.entry.js +1 -0
- package/dist/forja-sections/p-4180bd91.entry.js +1 -0
- package/dist/forja-sections/p-57c10a67.entry.js +1 -0
- package/dist/forja-sections/p-6e48a255.entry.js +1 -0
- package/dist/forja-sections/p-6fa65e05.entry.js +1 -0
- package/dist/forja-sections/p-732e854c.entry.js +1 -0
- package/dist/forja-sections/p-8787f878.entry.js +1 -0
- package/dist/forja-sections/p-9b242e13.entry.js +1 -0
- package/dist/forja-sections/p-CTbyYfdB.js +1 -0
- package/dist/forja-sections/p-DQuL1Twl.js +1 -0
- package/dist/forja-sections/p-WdE4YutY.js +2 -0
- package/dist/forja-sections/p-a2cdb548.entry.js +1 -0
- package/dist/forja-sections/p-aa20264b.entry.js +1 -0
- package/dist/forja-sections/p-b5280312.entry.js +1 -0
- package/dist/forja-sections/p-c2c2e0ba.entry.js +1 -0
- package/dist/forja-sections/p-c4bccd7e.entry.js +1 -0
- package/dist/forja-sections/p-d1b739dd.entry.js +1 -0
- package/dist/forja-sections/p-d762878f.entry.js +1 -0
- package/dist/forja-sections/p-de808791.entry.js +1 -0
- package/dist/forja-sections/p-f24d6578.entry.js +1 -0
- package/dist/forja-sections/p-fd969566.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/forja-blog/forja-blog.d.ts +10 -0
- package/dist/types/components/forja-contact/forja-contact.d.ts +13 -0
- package/dist/types/components/forja-cta/forja-cta.d.ts +9 -0
- package/dist/types/components/forja-divider/forja-divider.d.ts +5 -0
- package/dist/types/components/forja-faq/forja-faq.d.ts +7 -0
- package/dist/types/components/forja-features/forja-features.d.ts +8 -0
- package/dist/types/components/forja-footer/forja-footer.d.ts +11 -0
- package/dist/types/components/forja-gallery/forja-gallery.d.ts +8 -0
- package/dist/types/components/forja-hero/forja-hero.d.ts +11 -0
- package/dist/types/components/forja-legal/forja-legal.d.ts +35 -0
- package/dist/types/components/forja-logo-cloud/forja-logo-cloud.d.ts +9 -0
- package/dist/types/components/forja-nav/forja-nav.d.ts +23 -0
- package/dist/types/components/forja-newsletter/forja-newsletter.d.ts +11 -0
- package/dist/types/components/forja-portfolio/forja-portfolio.d.ts +13 -0
- package/dist/types/components/forja-pricing/forja-pricing.d.ts +8 -0
- package/dist/types/components/forja-projects/forja-projects.d.ts +8 -0
- package/dist/types/components/forja-section-renderer/forja-section-renderer.d.ts +13 -0
- package/dist/types/components/forja-stats/forja-stats.d.ts +9 -0
- package/dist/types/components/forja-tag-cloud/forja-tag-cloud.d.ts +7 -0
- package/dist/types/components/forja-team/forja-team.d.ts +10 -0
- package/dist/types/components/forja-testimonials/forja-testimonials.d.ts +8 -0
- package/dist/types/components/forja-text-block/forja-text-block.d.ts +7 -0
- package/dist/types/components/forja-timeline/forja-timeline.d.ts +9 -0
- package/dist/types/components/forja-video/forja-video.d.ts +11 -0
- package/dist/types/components.d.ts +1010 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/types.d.ts +235 -0
- package/dist/types/utils/a11y.d.ts +11 -0
- package/dist/types/utils/a11y.unit.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +66 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
const TAG_MAP = {
|
|
3
|
+
Hero: 'forja-hero',
|
|
4
|
+
Features: 'forja-features',
|
|
5
|
+
Cta: 'forja-cta',
|
|
6
|
+
Gallery: 'forja-gallery',
|
|
7
|
+
Testimonials: 'forja-testimonials',
|
|
8
|
+
Pricing: 'forja-pricing',
|
|
9
|
+
Faq: 'forja-faq',
|
|
10
|
+
Contact: 'forja-contact',
|
|
11
|
+
Stats: 'forja-stats',
|
|
12
|
+
Team: 'forja-team',
|
|
13
|
+
Timeline: 'forja-timeline',
|
|
14
|
+
LogoCloud: 'forja-logo-cloud',
|
|
15
|
+
Newsletter: 'forja-newsletter',
|
|
16
|
+
Video: 'forja-video',
|
|
17
|
+
Divider: 'forja-divider',
|
|
18
|
+
Text: 'forja-text-block',
|
|
19
|
+
Portfolio: 'forja-portfolio',
|
|
20
|
+
TagCloud: 'forja-tag-cloud',
|
|
21
|
+
Projects: 'forja-projects',
|
|
22
|
+
Blog: 'forja-blog',
|
|
23
|
+
Legal: 'forja-legal',
|
|
24
|
+
};
|
|
25
|
+
export class ForjaSectionRenderer {
|
|
26
|
+
render() {
|
|
27
|
+
const tag = TAG_MAP[this.sectionType];
|
|
28
|
+
if (!tag) {
|
|
29
|
+
return (h("section", { class: "forja-custom" }, this.sectionTitle && h("h2", { class: "forja-custom__title" }, this.sectionTitle), this.text && h("div", { class: "forja-custom__text", innerHTML: this.text }), h("slot", null)));
|
|
30
|
+
}
|
|
31
|
+
const Tag = tag;
|
|
32
|
+
return (h(Tag, { sectionTitle: this.sectionTitle, text: this.text, imageUrl: this.imageUrl, imageAlt: this.imageAlt, buttonText: this.buttonText, buttonHref: this.buttonHref, items: this.items }, h("slot", null)));
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "forja-section-renderer"; }
|
|
35
|
+
static get properties() {
|
|
36
|
+
return {
|
|
37
|
+
"sectionType": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "SectionType",
|
|
42
|
+
"resolved": "\"Blog\" | \"Contact\" | \"Cta\" | \"Custom\" | \"Divider\" | \"Faq\" | \"Features\" | \"Gallery\" | \"Hero\" | \"Legal\" | \"LogoCloud\" | \"Newsletter\" | \"Portfolio\" | \"Pricing\" | \"Projects\" | \"Stats\" | \"TagCloud\" | \"Team\" | \"Testimonials\" | \"Text\" | \"Timeline\" | \"Video\"",
|
|
43
|
+
"references": {
|
|
44
|
+
"SectionType": {
|
|
45
|
+
"location": "import",
|
|
46
|
+
"path": "../../types",
|
|
47
|
+
"id": "src/types.ts::SectionType",
|
|
48
|
+
"referenceLocation": "SectionType"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": true,
|
|
53
|
+
"optional": false,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [],
|
|
56
|
+
"text": ""
|
|
57
|
+
},
|
|
58
|
+
"getter": false,
|
|
59
|
+
"setter": false,
|
|
60
|
+
"reflect": false,
|
|
61
|
+
"attribute": "section-type"
|
|
62
|
+
},
|
|
63
|
+
"sectionTitle": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "string",
|
|
68
|
+
"resolved": "string | undefined",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": true,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": ""
|
|
76
|
+
},
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"attribute": "section-title"
|
|
81
|
+
},
|
|
82
|
+
"text": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string",
|
|
87
|
+
"resolved": "string | undefined",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"getter": false,
|
|
97
|
+
"setter": false,
|
|
98
|
+
"reflect": false,
|
|
99
|
+
"attribute": "text"
|
|
100
|
+
},
|
|
101
|
+
"imageUrl": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string | undefined",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": true,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": ""
|
|
114
|
+
},
|
|
115
|
+
"getter": false,
|
|
116
|
+
"setter": false,
|
|
117
|
+
"reflect": false,
|
|
118
|
+
"attribute": "image-url"
|
|
119
|
+
},
|
|
120
|
+
"imageAlt": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"mutable": false,
|
|
123
|
+
"complexType": {
|
|
124
|
+
"original": "string",
|
|
125
|
+
"resolved": "string | undefined",
|
|
126
|
+
"references": {}
|
|
127
|
+
},
|
|
128
|
+
"required": false,
|
|
129
|
+
"optional": true,
|
|
130
|
+
"docs": {
|
|
131
|
+
"tags": [],
|
|
132
|
+
"text": ""
|
|
133
|
+
},
|
|
134
|
+
"getter": false,
|
|
135
|
+
"setter": false,
|
|
136
|
+
"reflect": false,
|
|
137
|
+
"attribute": "image-alt"
|
|
138
|
+
},
|
|
139
|
+
"buttonText": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "string",
|
|
144
|
+
"resolved": "string | undefined",
|
|
145
|
+
"references": {}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": true,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": ""
|
|
152
|
+
},
|
|
153
|
+
"getter": false,
|
|
154
|
+
"setter": false,
|
|
155
|
+
"reflect": false,
|
|
156
|
+
"attribute": "button-text"
|
|
157
|
+
},
|
|
158
|
+
"buttonHref": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "string",
|
|
163
|
+
"resolved": "string | undefined",
|
|
164
|
+
"references": {}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": true,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": ""
|
|
171
|
+
},
|
|
172
|
+
"getter": false,
|
|
173
|
+
"setter": false,
|
|
174
|
+
"reflect": false,
|
|
175
|
+
"attribute": "button-href"
|
|
176
|
+
},
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "unknown",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "unknown[]",
|
|
182
|
+
"resolved": "undefined | unknown[]",
|
|
183
|
+
"references": {}
|
|
184
|
+
},
|
|
185
|
+
"required": false,
|
|
186
|
+
"optional": true,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": ""
|
|
190
|
+
},
|
|
191
|
+
"getter": false,
|
|
192
|
+
"setter": false
|
|
193
|
+
},
|
|
194
|
+
"settings": {
|
|
195
|
+
"type": "unknown",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "Record<string, unknown>",
|
|
199
|
+
"resolved": "string | undefined | unknown",
|
|
200
|
+
"references": {
|
|
201
|
+
"Record": {
|
|
202
|
+
"location": "global",
|
|
203
|
+
"id": "global::Record"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": true,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
},
|
|
213
|
+
"getter": false,
|
|
214
|
+
"setter": false
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { sectionLabel } from "../../utils/a11y";
|
|
3
|
+
export class ForjaStats {
|
|
4
|
+
render() {
|
|
5
|
+
const hasItems = this.items && this.items.length > 0;
|
|
6
|
+
const classes = [
|
|
7
|
+
'forja-stats',
|
|
8
|
+
this.statsStyle && `forja-stats--${this.statsStyle}`,
|
|
9
|
+
].filter(Boolean).join(' ');
|
|
10
|
+
return (h("section", { key: '3aa6f2f843bb0e295dcb84740af6c9fda39d8309', class: classes, "aria-label": sectionLabel(this.sectionTitle, 'Statistics') }, h("slot", { key: '9565f67c2e7192f8b965be5555eb7f43e271692c', name: "before" }), this.sectionTitle && h("h2", { key: 'cbf15bf5bc0e62702590a1725a6e188bea96639c', class: "forja-stats__title" }, this.sectionTitle), this.text && h("div", { key: '0beb283e6387a04c20a2ba853266b12769ac9725', class: "forja-stats__text", innerHTML: this.text }), hasItems ? (h("dl", { class: "forja-stats__list", "data-columns": this.columns }, this.items.map(item => (h("div", { class: "forja-stats__item" }, h("dd", { class: "forja-stats__value" }, item.value), h("dt", { class: "forja-stats__label" }, item.label)))))) : (h("slot", null)), h("slot", { key: '7a2ffd297dd37c72d0c16a42b268e8a6f607ad40', name: "after" })));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "forja-stats"; }
|
|
13
|
+
static get properties() {
|
|
14
|
+
return {
|
|
15
|
+
"sectionTitle": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"mutable": false,
|
|
18
|
+
"complexType": {
|
|
19
|
+
"original": "string",
|
|
20
|
+
"resolved": "string | undefined",
|
|
21
|
+
"references": {}
|
|
22
|
+
},
|
|
23
|
+
"required": false,
|
|
24
|
+
"optional": true,
|
|
25
|
+
"docs": {
|
|
26
|
+
"tags": [],
|
|
27
|
+
"text": ""
|
|
28
|
+
},
|
|
29
|
+
"getter": false,
|
|
30
|
+
"setter": false,
|
|
31
|
+
"reflect": false,
|
|
32
|
+
"attribute": "section-title"
|
|
33
|
+
},
|
|
34
|
+
"text": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"mutable": false,
|
|
37
|
+
"complexType": {
|
|
38
|
+
"original": "string",
|
|
39
|
+
"resolved": "string | undefined",
|
|
40
|
+
"references": {}
|
|
41
|
+
},
|
|
42
|
+
"required": false,
|
|
43
|
+
"optional": true,
|
|
44
|
+
"docs": {
|
|
45
|
+
"tags": [],
|
|
46
|
+
"text": ""
|
|
47
|
+
},
|
|
48
|
+
"getter": false,
|
|
49
|
+
"setter": false,
|
|
50
|
+
"reflect": false,
|
|
51
|
+
"attribute": "text"
|
|
52
|
+
},
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "unknown",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "StatItem[]",
|
|
58
|
+
"resolved": "StatItem[] | undefined",
|
|
59
|
+
"references": {
|
|
60
|
+
"StatItem": {
|
|
61
|
+
"location": "import",
|
|
62
|
+
"path": "../../types",
|
|
63
|
+
"id": "src/types.ts::StatItem",
|
|
64
|
+
"referenceLocation": "StatItem"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": true,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": ""
|
|
73
|
+
},
|
|
74
|
+
"getter": false,
|
|
75
|
+
"setter": false
|
|
76
|
+
},
|
|
77
|
+
"columns": {
|
|
78
|
+
"type": "number",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "number",
|
|
82
|
+
"resolved": "number | undefined",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": true,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": ""
|
|
90
|
+
},
|
|
91
|
+
"getter": false,
|
|
92
|
+
"setter": false,
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"attribute": "columns"
|
|
95
|
+
},
|
|
96
|
+
"statsStyle": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "string",
|
|
101
|
+
"resolved": "string | undefined",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": true,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"getter": false,
|
|
111
|
+
"setter": false,
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"attribute": "stats-style"
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { sectionLabel } from "../../utils/a11y";
|
|
3
|
+
export class ForjaTagCloud {
|
|
4
|
+
render() {
|
|
5
|
+
const hasTags = this.tags && this.tags.length > 0;
|
|
6
|
+
return (h("section", { key: 'dc9015d823c69a88c8252115948517887e7ce400', class: "forja-tag-cloud", "aria-label": sectionLabel(this.sectionTitle, 'Tags') }, h("slot", { key: '4a860c211a75f97d67755a1811db76c20840740f', name: "before" }), this.sectionTitle && h("h2", { key: 'bfae3b68ba76c7ce14d01d52ee47a5b5b6f04f89', class: "forja-tag-cloud__title" }, this.sectionTitle), this.text && h("div", { key: '7175c987bfadf8e4bb433e2cb8b856412818c0d0', class: "forja-tag-cloud__text", innerHTML: this.text }), hasTags ? (h("nav", { class: "forja-tag-cloud__nav", "aria-label": "Tags" }, h("ul", { class: "forja-tag-cloud__list", role: "list" }, this.tags.map(tag => (h("li", { class: "forja-tag-cloud__item" }, tag.href ? (h("a", { href: tag.href, class: "forja-tag-cloud__tag" }, h("span", { class: "forja-tag-cloud__label" }, tag.label), tag.count != null && (h("span", { class: "forja-tag-cloud__count", "aria-label": `${tag.count} items` }, "(", tag.count, ")")))) : (h("span", { class: "forja-tag-cloud__tag" }, h("span", { class: "forja-tag-cloud__label" }, tag.label), tag.count != null && (h("span", { class: "forja-tag-cloud__count", "aria-label": `${tag.count} items` }, "(", tag.count, ")")))))))))) : (h("slot", null)), h("slot", { key: '673878f83e689016cf1a001e87774fe66c4c7baa', name: "after" })));
|
|
7
|
+
}
|
|
8
|
+
static get is() { return "forja-tag-cloud"; }
|
|
9
|
+
static get properties() {
|
|
10
|
+
return {
|
|
11
|
+
"sectionTitle": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"mutable": false,
|
|
14
|
+
"complexType": {
|
|
15
|
+
"original": "string",
|
|
16
|
+
"resolved": "string | undefined",
|
|
17
|
+
"references": {}
|
|
18
|
+
},
|
|
19
|
+
"required": false,
|
|
20
|
+
"optional": true,
|
|
21
|
+
"docs": {
|
|
22
|
+
"tags": [],
|
|
23
|
+
"text": ""
|
|
24
|
+
},
|
|
25
|
+
"getter": false,
|
|
26
|
+
"setter": false,
|
|
27
|
+
"reflect": false,
|
|
28
|
+
"attribute": "section-title"
|
|
29
|
+
},
|
|
30
|
+
"text": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "string",
|
|
35
|
+
"resolved": "string | undefined",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": true,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"getter": false,
|
|
45
|
+
"setter": false,
|
|
46
|
+
"reflect": false,
|
|
47
|
+
"attribute": "text"
|
|
48
|
+
},
|
|
49
|
+
"tags": {
|
|
50
|
+
"type": "unknown",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "TagItem[]",
|
|
54
|
+
"resolved": "TagItem[] | undefined",
|
|
55
|
+
"references": {
|
|
56
|
+
"TagItem": {
|
|
57
|
+
"location": "import",
|
|
58
|
+
"path": "../../types",
|
|
59
|
+
"id": "src/types.ts::TagItem",
|
|
60
|
+
"referenceLocation": "TagItem"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": true,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"getter": false,
|
|
71
|
+
"setter": false
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { sectionLabel } from "../../utils/a11y";
|
|
3
|
+
export class ForjaTeam {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.showRole = true;
|
|
6
|
+
this.showBio = true;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const hasMembers = this.members && this.members.length > 0;
|
|
10
|
+
return (h("section", { key: 'b5d2dcb808386048367cfa97b31c6075732ba828', class: "forja-team", "aria-label": sectionLabel(this.sectionTitle, 'Team') }, h("slot", { key: 'df3d484b90a7d755eda0a784f21edbd921e71401', name: "before" }), this.sectionTitle && h("h2", { key: '2818b057df2f2c6319af8d17a43537714a62db34', class: "forja-team__title" }, this.sectionTitle), this.text && h("div", { key: '265903df6beaae84ff4d6cc1a9d11ae3f51f15d5', class: "forja-team__text", innerHTML: this.text }), hasMembers ? (h("ul", { class: "forja-team__grid", role: "list", "data-columns": this.columns }, this.members.map(member => (h("li", { class: "forja-team__member" }, member.imageUrl && (h("figure", { class: "forja-team__photo" }, h("img", { src: member.imageUrl, alt: member.name, class: "forja-team__image", loading: "lazy" }))), h("h3", { class: "forja-team__name" }, member.name), this.showRole && member.role && h("p", { class: "forja-team__role" }, member.role), this.showBio && member.bio && h("p", { class: "forja-team__bio" }, member.bio)))))) : (h("slot", null)), h("slot", { key: '81263f35ba229207c4978b65890c527590dfdae5', name: "after" })));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "forja-team"; }
|
|
13
|
+
static get properties() {
|
|
14
|
+
return {
|
|
15
|
+
"sectionTitle": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"mutable": false,
|
|
18
|
+
"complexType": {
|
|
19
|
+
"original": "string",
|
|
20
|
+
"resolved": "string | undefined",
|
|
21
|
+
"references": {}
|
|
22
|
+
},
|
|
23
|
+
"required": false,
|
|
24
|
+
"optional": true,
|
|
25
|
+
"docs": {
|
|
26
|
+
"tags": [],
|
|
27
|
+
"text": ""
|
|
28
|
+
},
|
|
29
|
+
"getter": false,
|
|
30
|
+
"setter": false,
|
|
31
|
+
"reflect": false,
|
|
32
|
+
"attribute": "section-title"
|
|
33
|
+
},
|
|
34
|
+
"text": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"mutable": false,
|
|
37
|
+
"complexType": {
|
|
38
|
+
"original": "string",
|
|
39
|
+
"resolved": "string | undefined",
|
|
40
|
+
"references": {}
|
|
41
|
+
},
|
|
42
|
+
"required": false,
|
|
43
|
+
"optional": true,
|
|
44
|
+
"docs": {
|
|
45
|
+
"tags": [],
|
|
46
|
+
"text": ""
|
|
47
|
+
},
|
|
48
|
+
"getter": false,
|
|
49
|
+
"setter": false,
|
|
50
|
+
"reflect": false,
|
|
51
|
+
"attribute": "text"
|
|
52
|
+
},
|
|
53
|
+
"members": {
|
|
54
|
+
"type": "unknown",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "TeamMember[]",
|
|
58
|
+
"resolved": "TeamMember[] | undefined",
|
|
59
|
+
"references": {
|
|
60
|
+
"TeamMember": {
|
|
61
|
+
"location": "import",
|
|
62
|
+
"path": "../../types",
|
|
63
|
+
"id": "src/types.ts::TeamMember",
|
|
64
|
+
"referenceLocation": "TeamMember"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": true,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": ""
|
|
73
|
+
},
|
|
74
|
+
"getter": false,
|
|
75
|
+
"setter": false
|
|
76
|
+
},
|
|
77
|
+
"columns": {
|
|
78
|
+
"type": "number",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "number",
|
|
82
|
+
"resolved": "number | undefined",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": true,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": ""
|
|
90
|
+
},
|
|
91
|
+
"getter": false,
|
|
92
|
+
"setter": false,
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"attribute": "columns"
|
|
95
|
+
},
|
|
96
|
+
"showRole": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "boolean",
|
|
101
|
+
"resolved": "boolean | undefined",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": true,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"getter": false,
|
|
111
|
+
"setter": false,
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"attribute": "show-role",
|
|
114
|
+
"defaultValue": "true"
|
|
115
|
+
},
|
|
116
|
+
"showBio": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "boolean",
|
|
121
|
+
"resolved": "boolean | undefined",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": ""
|
|
129
|
+
},
|
|
130
|
+
"getter": false,
|
|
131
|
+
"setter": false,
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"attribute": "show-bio",
|
|
134
|
+
"defaultValue": "true"
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { sectionLabel } from "../../utils/a11y";
|
|
3
|
+
export class ForjaTestimonials {
|
|
4
|
+
render() {
|
|
5
|
+
const hasItems = this.items && this.items.length > 0;
|
|
6
|
+
return (h("section", { key: '608ac151afb59df61bf99ea38f5eba2d819ef6ac', class: "forja-testimonials", "aria-label": sectionLabel(this.sectionTitle, 'Testimonials') }, h("slot", { key: '016f3b316cec3979efaee8dd4e19497a623ca292', name: "before" }), this.sectionTitle && h("h2", { key: '5d0f9dac43cbd4e6d7ded6236c98a4d428d3723a', class: "forja-testimonials__title" }, this.sectionTitle), this.text && h("div", { key: '8d5bd0fd2c9b39aba0a461bef14df16a4b8197ba', class: "forja-testimonials__text", innerHTML: this.text }), hasItems ? (h("div", { class: "forja-testimonials__list", role: "list", "data-columns": this.columns }, this.items.map(item => (h("blockquote", { class: "forja-testimonials__item", role: "listitem" }, h("p", { class: "forja-testimonials__quote" }, item.quote), h("footer", { class: "forja-testimonials__attribution" }, item.avatarUrl && (h("img", { src: item.avatarUrl, alt: "", class: "forja-testimonials__avatar", loading: "lazy" })), h("cite", { class: "forja-testimonials__author" }, h("span", { class: "forja-testimonials__name" }, item.author), item.role && h("span", { class: "forja-testimonials__role" }, item.role)))))))) : (h("div", { class: "forja-testimonials__list", role: "list", "data-columns": this.columns }, h("slot", null))), h("slot", { key: 'f5079a207668e548632b607f174e630a46854cc8', name: "after" })));
|
|
7
|
+
}
|
|
8
|
+
static get is() { return "forja-testimonials"; }
|
|
9
|
+
static get properties() {
|
|
10
|
+
return {
|
|
11
|
+
"sectionTitle": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"mutable": false,
|
|
14
|
+
"complexType": {
|
|
15
|
+
"original": "string",
|
|
16
|
+
"resolved": "string | undefined",
|
|
17
|
+
"references": {}
|
|
18
|
+
},
|
|
19
|
+
"required": false,
|
|
20
|
+
"optional": true,
|
|
21
|
+
"docs": {
|
|
22
|
+
"tags": [],
|
|
23
|
+
"text": ""
|
|
24
|
+
},
|
|
25
|
+
"getter": false,
|
|
26
|
+
"setter": false,
|
|
27
|
+
"reflect": false,
|
|
28
|
+
"attribute": "section-title"
|
|
29
|
+
},
|
|
30
|
+
"text": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "string",
|
|
35
|
+
"resolved": "string | undefined",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": true,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"getter": false,
|
|
45
|
+
"setter": false,
|
|
46
|
+
"reflect": false,
|
|
47
|
+
"attribute": "text"
|
|
48
|
+
},
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "unknown",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "TestimonialItem[]",
|
|
54
|
+
"resolved": "TestimonialItem[] | undefined",
|
|
55
|
+
"references": {
|
|
56
|
+
"TestimonialItem": {
|
|
57
|
+
"location": "import",
|
|
58
|
+
"path": "../../types",
|
|
59
|
+
"id": "src/types.ts::TestimonialItem",
|
|
60
|
+
"referenceLocation": "TestimonialItem"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": true,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"getter": false,
|
|
71
|
+
"setter": false
|
|
72
|
+
},
|
|
73
|
+
"columns": {
|
|
74
|
+
"type": "number",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "number",
|
|
78
|
+
"resolved": "number | undefined",
|
|
79
|
+
"references": {}
|
|
80
|
+
},
|
|
81
|
+
"required": false,
|
|
82
|
+
"optional": true,
|
|
83
|
+
"docs": {
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": ""
|
|
86
|
+
},
|
|
87
|
+
"getter": false,
|
|
88
|
+
"setter": false,
|
|
89
|
+
"reflect": false,
|
|
90
|
+
"attribute": "columns"
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|