@kickstartds/ds-agency-premium 1.7.0--canary.18.1660.0 → 1.7.0--canary.46.1797.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.
- package/dist/{BlogHeadProps-3f6e4072.d.ts → BlogHeadProps-c04a5ed8.d.ts} +6 -1
- package/dist/BlogOverviewProps-9f207f1c.d.ts +1 -1
- package/dist/BlogPostProps-6b3cff22.d.ts +2 -2
- package/dist/BlogTeaserProps-f5855e93.d.ts +9 -4
- package/dist/DividerProps-2ef31901.d.ts +26 -0
- package/dist/FeaturesProps-e58616a5.d.ts +62 -0
- package/dist/{HeroProps-cf82a16d.d.ts → HeroProps-f704d270.d.ts} +1 -1
- package/dist/HtmlProps-9d091769.d.ts +34 -0
- package/dist/PageProps-aa29c554.d.ts +1 -1
- package/dist/{SectionProps-83d399b4.d.ts → SectionProps-1cfcf6e8.d.ts} +12 -5
- package/dist/SliderProps-93230a76.d.ts +4 -4
- package/dist/{StatProps-12a3eae0.d.ts → StatProps-79109ad0.d.ts} +1 -1
- package/dist/StatsProps-bf5ef578.d.ts +1 -1
- package/dist/{TestimonialProps-94bdeac9.d.ts → TestimonialsProps-e344f597.d.ts} +22 -2
- package/dist/components/blog-aside/blog-aside.schema.dereffed.json +3 -1
- package/dist/components/blog-aside/blog-aside.schema.json +1 -0
- package/dist/components/blog-aside/index.d.ts +1 -0
- package/dist/components/blog-aside/index.js +6 -1
- package/dist/components/blog-author/blog-author.schema.dereffed.json +2 -1
- package/dist/components/blog-author/index.d.ts +1 -0
- package/dist/components/blog-author/index.js +10 -1
- package/dist/components/blog-head/blog-head.css +3 -3
- package/dist/components/blog-head/blog-head.schema.dereffed.json +8 -0
- package/dist/components/blog-head/blog-head.schema.json +6 -0
- package/dist/components/blog-head/index.d.ts +2 -1
- package/dist/components/blog-head/index.js +8 -3
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +212 -136
- package/dist/components/blog-overview/index.d.ts +1 -0
- package/dist/components/blog-overview/index.js +1 -0
- package/dist/components/blog-post/blog-post.schema.dereffed.json +181 -119
- package/dist/components/blog-post/index.d.ts +1 -0
- package/dist/components/blog-post/index.js +1 -0
- package/dist/components/blog-teaser/blog-teaser.css +7 -5
- package/dist/components/blog-teaser/blog-teaser.schema.dereffed.json +14 -6
- package/dist/components/blog-teaser/blog-teaser.schema.json +11 -5
- package/dist/components/blog-teaser/index.d.ts +4 -3
- package/dist/components/blog-teaser/index.js +14 -5
- package/dist/components/button/button.schema.dereffed.json +1 -0
- package/dist/components/button/button.schema.json +1 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button-group/button-group.schema.dereffed.json +1 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/contact/contact.css +2 -0
- package/dist/components/contact/contact.schema.dereffed.json +2 -1
- package/dist/components/contact/contact.schema.json +2 -1
- package/dist/components/contact/index.d.ts +1 -0
- package/dist/components/contact/index.js +10 -1
- package/dist/components/cta/cta.css +3 -3
- package/dist/components/cta/cta.schema.dereffed.json +1 -0
- package/dist/components/cta/index.d.ts +1 -0
- package/dist/components/cta/index.js +20 -2
- package/dist/components/divider/divider.css +1 -1
- package/dist/components/divider/index.d.ts +2 -26
- package/dist/components/divider/index.js +6 -1
- package/dist/components/faq/index.d.ts +1 -0
- package/dist/components/faq/index.js +6 -1
- package/dist/components/feature/feature.schema.dereffed.json +1 -0
- package/dist/components/feature/feature.schema.json +1 -0
- package/dist/components/feature/index.d.ts +53 -1
- package/dist/components/feature/index.js +14 -2
- package/dist/components/features/features.css +43 -10
- package/dist/components/features/features.schema.dereffed.json +3 -40
- package/dist/components/features/features.schema.json +24 -1
- package/dist/components/features/index.d.ts +2 -1
- package/dist/components/features/index.js +23 -3
- package/dist/components/footer/footer.css +4 -4
- package/dist/components/footer/index.d.ts +1 -0
- package/dist/components/footer/index.js +11 -1
- package/dist/components/gallery/gallery.css +0 -18
- package/dist/components/gallery/index.d.ts +1 -0
- package/dist/components/gallery/index.js +8 -1
- package/dist/components/header/header.css +2 -3
- package/dist/components/header/index.d.ts +4 -3
- package/dist/components/header/index.js +14 -2
- package/dist/components/headline/headline.css +18 -2
- package/dist/components/headline/headline.schema.dereffed.json +5 -0
- package/dist/components/headline/headline.schema.json +5 -0
- package/dist/components/headline/index.d.ts +6 -0
- package/dist/components/headline/index.js +1 -1
- package/dist/components/hero/hero.css +38 -5
- package/dist/components/hero/hero.schema.dereffed.json +4 -2
- package/dist/components/hero/hero.schema.json +2 -2
- package/dist/components/hero/index.d.ts +2 -1
- package/dist/components/hero/index.js +19 -3
- package/dist/components/html/Html.client.d.ts +5 -0
- package/dist/components/html/Html.client.js +41 -0
- package/dist/components/html/html.css +52 -0
- package/dist/components/html/html.schema.dereffed.json +61 -0
- package/dist/components/html/html.schema.json +31 -3
- package/dist/components/html/index.d.ts +5 -26
- package/dist/components/html/index.js +25 -4
- package/dist/components/image-story/image-story.css +1 -1
- package/dist/components/image-story/image-story.schema.dereffed.json +1 -0
- package/dist/components/image-story/image-story.schema.json +5 -1
- package/dist/components/image-story/index.d.ts +1 -0
- package/dist/components/image-story/index.js +14 -2
- package/dist/components/image-text/index.d.ts +1 -0
- package/dist/components/image-text/index.js +7 -1
- package/dist/components/index/index.d.ts +6 -1
- package/dist/components/logo/index.d.ts +1 -0
- package/dist/components/logo/index.js +6 -1
- package/dist/components/logos/index.d.ts +1 -0
- package/dist/components/logos/index.js +12 -1
- package/dist/components/logos/logos.css +2 -2
- package/dist/components/mosaic/index.d.ts +1 -0
- package/dist/components/mosaic/index.js +8 -1
- package/dist/components/mosaic/mosaic.css +3 -0
- package/dist/components/mosaic/mosaic.schema.dereffed.json +1 -0
- package/dist/components/nav-dropdown/index.d.ts +1 -0
- package/dist/components/nav-flyout/index.d.ts +1 -0
- package/dist/components/nav-flyout/index.js +7 -1
- package/dist/components/nav-main/index.d.ts +1 -0
- package/dist/components/nav-main/index.js +11 -1
- package/dist/components/nav-topbar/index.d.ts +1 -0
- package/dist/components/nav-topbar/index.js +7 -1
- package/dist/components/page/index.d.ts +1 -0
- package/dist/components/page/page.schema.dereffed.json +169 -118
- package/dist/components/page-wrapper/index.js +107 -389
- package/dist/components/page-wrapper/tokens.css +55 -4
- package/dist/components/presets.json +182 -237
- package/dist/components/providers/index.js +2 -1
- package/dist/components/section/index.d.ts +2 -1
- package/dist/components/section/index.js +27 -3
- package/dist/components/section/js/Section.client.js +1 -1
- package/dist/components/section/section.css +50 -35
- package/dist/components/section/section.schema.dereffed.json +169 -118
- package/dist/components/section/section.schema.json +13 -2
- package/dist/components/settings/settings.schema.dereffed.json +5 -0
- package/dist/components/settings/settings.schema.json +5 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.css +5 -0
- package/dist/components/slider/slider.schema.dereffed.json +37 -63
- package/dist/components/slider/slider.schema.json +1 -1
- package/dist/components/split/index.d.ts +1 -0
- package/dist/components/split/split.css +3 -3
- package/dist/components/stat/index.d.ts +2 -1
- package/dist/components/stat/index.js +16 -4
- package/dist/components/stat/stat.schema.dereffed.json +7 -5
- package/dist/components/stat/stat.schema.json +3 -2
- package/dist/components/stats/index.d.ts +1 -0
- package/dist/components/stats/index.js +6 -1
- package/dist/components/stats/stats.css +3 -7
- package/dist/components/stats/stats.schema.dereffed.json +7 -5
- package/dist/components/teaser-card/index.d.ts +1 -0
- package/dist/components/teaser-card/index.js +13 -2
- package/dist/components/testimonial/index.d.ts +49 -1
- package/dist/components/testimonial/index.js +11 -2
- package/dist/components/testimonial/testimonial.schema.dereffed.json +11 -0
- package/dist/components/testimonial/testimonial.schema.json +7 -0
- package/dist/components/testimonials/index.d.ts +2 -1
- package/dist/components/testimonials/index.js +10 -3
- package/dist/components/testimonials/testimonials.css +56 -28
- package/dist/components/testimonials/testimonials.schema.dereffed.json +11 -5
- package/dist/components/testimonials/testimonials.schema.json +30 -1
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/text/index.js +8 -1
- package/dist/components/tile/tile.schema.dereffed.json +1 -0
- package/dist/components/tile/tile.schema.json +8 -2
- package/dist/components/video-curtain/index.d.ts +1 -0
- package/dist/components/video-curtain/index.js +11 -1
- package/dist/components/video-curtain/video-curtain.css +4 -3
- package/dist/components/video-curtain/video-curtain.schema.dereffed.json +2 -1
- package/dist/components/video-curtain/video-curtain.schema.json +1 -1
- package/dist/global.css +66 -42
- package/dist/helpers-84d80d46.d.ts +5 -0
- package/dist/helpers-84d80d46.js +33 -0
- package/dist/static/img/screenshots/blog-blog-aside--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-author--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-head--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-teaser--default.png +0 -0
- package/dist/static/img/screenshots/components-contact--wide-image.png +0 -0
- package/dist/static/img/screenshots/components-cta--align-bottom.png +0 -0
- package/dist/static/img/screenshots/components-cta--angled-image.png +0 -0
- package/dist/static/img/screenshots/components-cta--banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--colored-banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--contact-banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--highlighted.png +0 -0
- package/dist/static/img/screenshots/components-cta--left-aligned.png +0 -0
- package/dist/static/img/screenshots/components-cta--product-advertisement.png +0 -0
- package/dist/static/img/screenshots/components-cta--split-banner.png +0 -0
- package/dist/static/img/screenshots/components-faq--dropdown-list.png +0 -0
- package/dist/static/img/screenshots/components-faq--single-dropdown.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-beside-with-link-in-text.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-centered.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-intext-with-link.png +0 -0
- package/dist/static/img/screenshots/components-features--list-view.png +0 -0
- package/dist/static/img/screenshots/components-features--stack-with-button.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-1.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-2.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-3.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-4.png +0 -0
- package/dist/static/img/screenshots/components-headline--order-swapped.png +0 -0
- package/dist/static/img/screenshots/components-headline--with-markdown.png +0 -0
- package/dist/static/img/screenshots/components-headline--with-subheadline.png +0 -0
- package/dist/static/img/screenshots/components-hero--text-box-on-full-screen.png +0 -0
- package/dist/static/img/screenshots/components-hero--text-on-image-with-overlay.png +0 -0
- package/dist/static/img/screenshots/components-html--html.png +0 -0
- package/dist/static/img/screenshots/components-html--with-consent.png +0 -0
- package/dist/static/img/screenshots/components-html--with-script.png +0 -0
- package/dist/static/img/screenshots/components-logos--centered-with-button.png +0 -0
- package/dist/static/img/screenshots/components-logos--left-aligned-with-text-link.png +0 -0
- package/dist/static/img/screenshots/components-stats--count-up-with-description.png +0 -0
- package/dist/static/img/screenshots/components-stats--count-up-with-icons.png +0 -0
- package/dist/static/img/screenshots/components-teaser-card--page-navigation.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--alternating-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--list-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--simple.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--slider-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--with-rating.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--with-title.png +0 -0
- package/dist/static/img/screenshots/form-select-field--default.png +0 -0
- package/dist/static/img/screenshots/form-text-area--default.png +0 -0
- package/dist/static/img/screenshots/form-text-field--default.png +0 -0
- package/dist/static/img/screenshots/layout-divider--accent.png +0 -0
- package/dist/static/img/screenshots/layout-divider--default.png +0 -0
- package/dist/static/img/screenshots/layout-header--header.png +0 -0
- package/dist/static/img/screenshots/layout-section--accent-background.png +0 -0
- package/dist/static/img/screenshots/layout-section--background-image.png +0 -0
- package/dist/static/img/screenshots/layout-section--bold-background.png +0 -0
- package/dist/static/img/screenshots/layout-section--cards.png +0 -0
- package/dist/static/img/screenshots/layout-section--colorful-gradient.png +0 -0
- package/dist/static/img/screenshots/layout-section--flex-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--inverted.png +0 -0
- package/dist/static/img/screenshots/layout-section--list-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--slider.png +0 -0
- package/dist/static/img/screenshots/layout-section--spotlight.png +0 -0
- package/dist/static/img/screenshots/layout-section--stagelights.png +0 -0
- package/dist/static/img/screenshots/layout-section--tile-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--with-buttons.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-arrows.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-autoplay.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-nav.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-teased-neighbours.png +0 -0
- package/dist/static/img/screenshots/{pages-archetypes--blog-overview.png → page-archetypes-blog-overview--blog-overview.png} +0 -0
- package/dist/static/img/screenshots/page-archetypes-blog-post--blog-post.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-landingpage--landingpage.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-overview--overview.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-showcase--showcase.png +0 -0
- package/dist/tokens/IconSprite.js +105 -388
- package/dist/tokens/icon-sprite.html +54 -37
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +55 -4
- package/dist/tokens/tokens.js +49 -52
- package/package.json +13 -17
- package/dist/FeatureProps-f8a75850.d.ts +0 -52
- package/dist/FeaturesProps-b05859d6.d.ts +0 -34
- package/dist/TestimonialsProps-f7211553.d.ts +0 -22
- package/dist/components/image/image.css +0 -18
- package/dist/components/image/image.schema.dereffed.json +0 -105
- package/dist/components/image/image.schema.json +0 -95
- package/dist/components/image/index.d.ts +0 -87
- package/dist/components/image/index.js +0 -11
- package/dist/components/picture/picture.schema.json +0 -88
- package/dist/static/img/screenshots/components-image--custom-aspect-ratio.png +0 -0
- package/dist/static/img/screenshots/components-image--preset-size.png +0 -0
- package/dist/static/img/screenshots/components-image--responsive-image.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--blog-post.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--content.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--overview.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--start.png +0 -0
|
@@ -20,6 +20,10 @@ type Headline = string;
|
|
|
20
20
|
* The source of the cover image for the blog post
|
|
21
21
|
*/
|
|
22
22
|
type CoverImage = string;
|
|
23
|
+
/**
|
|
24
|
+
* The alt text for the cover image
|
|
25
|
+
*/
|
|
26
|
+
type AltText = string;
|
|
23
27
|
/**
|
|
24
28
|
* Intro portion of a singular blog entry
|
|
25
29
|
*/
|
|
@@ -28,5 +32,6 @@ interface BlogHeadProps {
|
|
|
28
32
|
tags?: Tags;
|
|
29
33
|
headline: Headline;
|
|
30
34
|
image?: CoverImage;
|
|
35
|
+
alt?: AltText;
|
|
31
36
|
}
|
|
32
|
-
export { PublishedDate, Tags, Headline, CoverImage, BlogHeadProps };
|
|
37
|
+
export { PublishedDate, Tags, Headline, CoverImage, AltText, BlogHeadProps };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { SectionProps } from "./SectionProps-
|
|
6
|
+
import { SectionProps } from "./SectionProps-1cfcf6e8.js";
|
|
7
7
|
import { BlogTeaserProps } from "./BlogTeaserProps-f5855e93.js";
|
|
8
8
|
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
9
9
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { BlogHeadProps } from "./BlogHeadProps-
|
|
6
|
+
import { BlogHeadProps } from "./BlogHeadProps-c04a5ed8.js";
|
|
7
7
|
import { BlogAsideProps } from "./BlogAsideProps-d9decb7c.js";
|
|
8
|
-
import { SectionProps } from "./SectionProps-
|
|
8
|
+
import { SectionProps } from "./SectionProps-1cfcf6e8.js";
|
|
9
9
|
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
10
10
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
11
11
|
/**
|
|
@@ -24,14 +24,18 @@ type TeaserText = string;
|
|
|
24
24
|
* The preview image for the blog post
|
|
25
25
|
*/
|
|
26
26
|
type Image = string;
|
|
27
|
+
/**
|
|
28
|
+
* The alt text for the preview image
|
|
29
|
+
*/
|
|
30
|
+
type Alt = string;
|
|
27
31
|
/**
|
|
28
32
|
* The blog entry URL to link
|
|
29
33
|
*/
|
|
30
34
|
type URL = string;
|
|
31
35
|
/**
|
|
32
|
-
* The
|
|
36
|
+
* The text for the link
|
|
33
37
|
*/
|
|
34
|
-
type
|
|
38
|
+
type Text = string;
|
|
35
39
|
/**
|
|
36
40
|
* Time to read for the blog post
|
|
37
41
|
*/
|
|
@@ -57,6 +61,7 @@ interface BlogTeaserProps {
|
|
|
57
61
|
headline: Headline;
|
|
58
62
|
teaserText: TeaserText;
|
|
59
63
|
image?: Image;
|
|
64
|
+
alt?: Alt;
|
|
60
65
|
link?: Link;
|
|
61
66
|
readingTime?: ReadingTime;
|
|
62
67
|
author?: Author;
|
|
@@ -67,7 +72,7 @@ interface BlogTeaserProps {
|
|
|
67
72
|
*/
|
|
68
73
|
interface Link {
|
|
69
74
|
url: URL;
|
|
70
|
-
|
|
75
|
+
text?: Text;
|
|
71
76
|
}
|
|
72
77
|
/**
|
|
73
78
|
* The author of the blog post
|
|
@@ -77,4 +82,4 @@ interface Author {
|
|
|
77
82
|
title?: Title;
|
|
78
83
|
image?: Image1;
|
|
79
84
|
}
|
|
80
|
-
export { Date, Tags, Headline, TeaserText, Image, URL,
|
|
85
|
+
export { Date, Tags, Headline, TeaserText, Image, Alt, URL, Text, ReadingTime, Name, Title, Image1, BlogTeaserProps, Link, Author };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Choose a variant for the divider
|
|
8
|
+
*/
|
|
9
|
+
type StyleOfTheDivider = "default" | "accent";
|
|
10
|
+
/**
|
|
11
|
+
* Add additional css classes that should be applied to the divider
|
|
12
|
+
*/
|
|
13
|
+
type AdditionalClasses = string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional custom component identifier
|
|
16
|
+
*/
|
|
17
|
+
type KsComponentAttribute = string;
|
|
18
|
+
/**
|
|
19
|
+
* Dividers bring clarity to a layout by grouping and dividing content in close proximity.
|
|
20
|
+
*/
|
|
21
|
+
interface DividerProps {
|
|
22
|
+
variant?: StyleOfTheDivider;
|
|
23
|
+
className?: AdditionalClasses;
|
|
24
|
+
component?: KsComponentAttribute;
|
|
25
|
+
}
|
|
26
|
+
export { StyleOfTheDivider, AdditionalClasses, KsComponentAttribute, DividerProps };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The layout variant to use for the features
|
|
8
|
+
*/
|
|
9
|
+
type Layout = "largeTiles" | "smallTiles" | "list";
|
|
10
|
+
/**
|
|
11
|
+
* Activate/disable the CTAs
|
|
12
|
+
*/
|
|
13
|
+
type CTAToggle = boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The features to display
|
|
16
|
+
*
|
|
17
|
+
* @minItems 1
|
|
18
|
+
* @maxItems 8
|
|
19
|
+
*/
|
|
20
|
+
type Features = [Feature] | [Feature, Feature] | [Feature, Feature, Feature] | [Feature, Feature, Feature, Feature] | [Feature, Feature, Feature, Feature, Feature] | [Feature, Feature, Feature, Feature, Feature, Feature] | [Feature, Feature, Feature, Feature, Feature, Feature, Feature] | [Feature, Feature, Feature, Feature, Feature, Feature, Feature, Feature];
|
|
21
|
+
/**
|
|
22
|
+
* The icon for the feature
|
|
23
|
+
*/
|
|
24
|
+
type Icon = string;
|
|
25
|
+
/**
|
|
26
|
+
* The title of the feature
|
|
27
|
+
*/
|
|
28
|
+
type Title = string;
|
|
29
|
+
/**
|
|
30
|
+
* The description of the feature
|
|
31
|
+
*/
|
|
32
|
+
type Text = string;
|
|
33
|
+
/**
|
|
34
|
+
* The CTA target
|
|
35
|
+
*/
|
|
36
|
+
type CallToActionTarget = string;
|
|
37
|
+
/**
|
|
38
|
+
* The text label displayed on the link
|
|
39
|
+
*/
|
|
40
|
+
type LinkLabel = string;
|
|
41
|
+
/**
|
|
42
|
+
* Component used to display a set of features
|
|
43
|
+
*/
|
|
44
|
+
interface FeaturesProps {
|
|
45
|
+
layout?: Layout;
|
|
46
|
+
style?: "intext" | "stack" | "centered" | "besideLarge" | "besideSmall";
|
|
47
|
+
ctas?: {
|
|
48
|
+
toggle?: CTAToggle;
|
|
49
|
+
style?: "button" | "link" | "intext";
|
|
50
|
+
};
|
|
51
|
+
feature?: Features;
|
|
52
|
+
}
|
|
53
|
+
interface Feature {
|
|
54
|
+
icon?: Icon;
|
|
55
|
+
title?: Title;
|
|
56
|
+
text?: Text;
|
|
57
|
+
cta?: {
|
|
58
|
+
target?: CallToActionTarget;
|
|
59
|
+
label?: LinkLabel;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export { Layout, CTAToggle, Features, Icon, Title, Text, CallToActionTarget, LinkLabel, FeaturesProps, Feature };
|
|
@@ -71,7 +71,7 @@ type AltText = string;
|
|
|
71
71
|
/**
|
|
72
72
|
* Choose the alginment of the module content
|
|
73
73
|
*/
|
|
74
|
-
type ModuleAligment = "center" | "below" | "left" | "right";
|
|
74
|
+
type ModuleAligment = "center" | "below" | "left" | "right" | "corner";
|
|
75
75
|
interface HeroProps {
|
|
76
76
|
headline?: Headline;
|
|
77
77
|
sub?: ModuleSubheadline;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
type HTMLString = string;
|
|
7
|
+
type ShowHTMLAfterConsent = boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Invert the colors of the HTML
|
|
10
|
+
*/
|
|
11
|
+
type Inverted = boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Add additional css classes that should be applied to the element
|
|
14
|
+
*/
|
|
15
|
+
type AdditionalClasses = string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional custom component identifier
|
|
18
|
+
*/
|
|
19
|
+
type KsComponentAttribute = string;
|
|
20
|
+
/**
|
|
21
|
+
* Display raw HTML.
|
|
22
|
+
*/
|
|
23
|
+
interface HtmlProps {
|
|
24
|
+
html?: HTMLString;
|
|
25
|
+
consent?: ShowHTMLAfterConsent;
|
|
26
|
+
consentText?: string;
|
|
27
|
+
consentButtonLabel?: string;
|
|
28
|
+
consentBackgroundImage?: string;
|
|
29
|
+
consentAspectRatio?: "16:9" | "16:10" | "4:3" | "1:1";
|
|
30
|
+
inverted?: Inverted;
|
|
31
|
+
className?: AdditionalClasses;
|
|
32
|
+
component?: KsComponentAttribute;
|
|
33
|
+
}
|
|
34
|
+
export { HTMLString, ShowHTMLAfterConsent, Inverted, AdditionalClasses, KsComponentAttribute, HtmlProps };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { SectionProps } from "./SectionProps-
|
|
6
|
+
import { SectionProps } from "./SectionProps-1cfcf6e8.js";
|
|
7
7
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
8
8
|
/**
|
|
9
9
|
* Collection of sections (with their contents) to render on the page
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
6
|
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
7
|
+
import { DividerProps } from "./DividerProps-2ef31901.js";
|
|
7
8
|
import { FaqProps } from "./FaqProps-ad618cd5.js";
|
|
8
|
-
import { FeaturesProps } from "./FeaturesProps-
|
|
9
|
+
import { FeaturesProps } from "./FeaturesProps-e58616a5.js";
|
|
9
10
|
import { GalleryProps } from "./GalleryProps-76e7de44.js";
|
|
10
|
-
import { HeroProps } from "./HeroProps-
|
|
11
|
+
import { HeroProps } from "./HeroProps-f704d270.js";
|
|
12
|
+
import { HtmlProps } from "./HtmlProps-9d091769.js";
|
|
11
13
|
import { ImageStoryProps } from "./ImageStoryProps-e853e1e7.js";
|
|
12
14
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
13
15
|
import { LogosProps } from "./LogosProps-f9474fe2.js";
|
|
@@ -15,7 +17,7 @@ import { MosaicProps } from "./MosaicProps-d52c7151.js";
|
|
|
15
17
|
import { SliderProps } from "./SliderProps-93230a76.js";
|
|
16
18
|
import { StatsProps } from "./StatsProps-bf5ef578.js";
|
|
17
19
|
import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
|
|
18
|
-
import { TestimonialsProps } from "./TestimonialsProps-
|
|
20
|
+
import { TestimonialsProps } from "./TestimonialsProps-e344f597.js";
|
|
19
21
|
import { TextProps } from "./TextProps-a23170d2.js";
|
|
20
22
|
import { VideoCurtainProps } from "./VideoCurtainProps-6c625a69.js";
|
|
21
23
|
import { ButtonProps } from "./ButtonProps-03ff6d21.js";
|
|
@@ -31,6 +33,10 @@ type Style = "stagelights" | "horizontalGradient" | "verticalGradient" | "accent
|
|
|
31
33
|
* Color of background
|
|
32
34
|
*/
|
|
33
35
|
type Style1 = "default" | "accent" | "bold";
|
|
36
|
+
/**
|
|
37
|
+
* Background image for the whole section
|
|
38
|
+
*/
|
|
39
|
+
type BackgroundImage = string;
|
|
34
40
|
/**
|
|
35
41
|
* Show spotlight behind cursor
|
|
36
42
|
*/
|
|
@@ -102,7 +108,7 @@ type TileWidth = "smallest" | "default" | "medium" | "large" | "largest";
|
|
|
102
108
|
/**
|
|
103
109
|
* Allowed components for content
|
|
104
110
|
*/
|
|
105
|
-
type Content = (CtaProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
|
|
111
|
+
type Content = (CtaProps | DividerProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | HtmlProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
|
|
106
112
|
/**
|
|
107
113
|
* Buttons of the Button Group
|
|
108
114
|
*/
|
|
@@ -114,6 +120,7 @@ interface SectionProps {
|
|
|
114
120
|
width?: Width;
|
|
115
121
|
style?: Style;
|
|
116
122
|
backgroundColor?: Style1;
|
|
123
|
+
backgroundImage?: BackgroundImage;
|
|
117
124
|
spotlight?: Spotlight;
|
|
118
125
|
spaceBefore?: SpaceBefore;
|
|
119
126
|
spaceAfter?: SpaceAfter;
|
|
@@ -138,4 +145,4 @@ interface SectionProps {
|
|
|
138
145
|
components?: Content;
|
|
139
146
|
buttons?: Buttons;
|
|
140
147
|
}
|
|
141
|
-
export { Width, Style, Style1, Spotlight, SpaceBefore, SpaceAfter, Inverted, HeaderSpacing, Headline, LargeHeadline, HeadlineWidth, HeadlineTextAlignment, HeadlineAlignment, Subheadline, SwitchHeadlineOrder, ContentWidth, ContentAlignment, Gutter, Mode, TileWidth, Content, Buttons, SectionProps };
|
|
148
|
+
export { Width, Style, Style1, BackgroundImage, Spotlight, SpaceBefore, SpaceAfter, Inverted, HeaderSpacing, Headline, LargeHeadline, HeadlineWidth, HeadlineTextAlignment, HeadlineAlignment, Subheadline, SwitchHeadlineOrder, ContentWidth, ContentAlignment, Gutter, Mode, TileWidth, Content, Buttons, SectionProps };
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
6
|
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
7
|
-
import { FeaturesProps } from "./FeaturesProps-
|
|
7
|
+
import { FeaturesProps } from "./FeaturesProps-e58616a5.js";
|
|
8
8
|
import { GalleryProps } from "./GalleryProps-76e7de44.js";
|
|
9
|
-
import { HeroProps } from "./HeroProps-
|
|
9
|
+
import { HeroProps } from "./HeroProps-f704d270.js";
|
|
10
10
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
11
11
|
import { LogosProps } from "./LogosProps-f9474fe2.js";
|
|
12
12
|
import { StatsProps } from "./StatsProps-bf5ef578.js";
|
|
13
13
|
import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
|
|
14
|
-
import { TestimonialsProps } from "./TestimonialsProps-
|
|
14
|
+
import { TestimonialsProps } from "./TestimonialsProps-e344f597.js";
|
|
15
15
|
import { TextProps } from "./TextProps-a23170d2.js";
|
|
16
16
|
/**
|
|
17
17
|
* Automatically move to next slide after 4 seconds without user interaction
|
|
@@ -50,7 +50,7 @@ interface SliderProps {
|
|
|
50
50
|
equalHeight?: EqualizeSlidesHeights;
|
|
51
51
|
gap?: Gap;
|
|
52
52
|
arrows?: ShowArrows;
|
|
53
|
-
|
|
53
|
+
variant?: Type;
|
|
54
54
|
className?: Class;
|
|
55
55
|
components?: Content;
|
|
56
56
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { StatProps } from "./StatProps-
|
|
6
|
+
import { StatProps } from "./StatProps-79109ad0.js";
|
|
7
7
|
/**
|
|
8
8
|
* The stats to display with a number upcounter
|
|
9
9
|
*
|
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* The testimonial layout
|
|
8
|
+
*/
|
|
9
|
+
type Layout = "slider" | "list" | "alternating";
|
|
10
|
+
/**
|
|
11
|
+
* The style of the quote signs
|
|
12
|
+
*/
|
|
13
|
+
type StyleOfTheQuoteSigns = "normal" | "large" | "none";
|
|
6
14
|
/**
|
|
7
15
|
* The testimonial quote
|
|
8
16
|
*/
|
|
@@ -27,10 +35,22 @@ type AltText = string;
|
|
|
27
35
|
* The rating of the testimonial, from 1 to 5
|
|
28
36
|
*/
|
|
29
37
|
type Rating = number;
|
|
38
|
+
/**
|
|
39
|
+
* Add testimonials featuring an image, a quote, a source and a rating
|
|
40
|
+
*/
|
|
41
|
+
type Testimonials = Testimonial[];
|
|
42
|
+
/**
|
|
43
|
+
* Display testimonials with an optional image and rating
|
|
44
|
+
*/
|
|
45
|
+
interface TestimonialsProps {
|
|
46
|
+
layout?: Layout;
|
|
47
|
+
quoteSigns?: StyleOfTheQuoteSigns;
|
|
48
|
+
testimonial?: Testimonials;
|
|
49
|
+
}
|
|
30
50
|
/**
|
|
31
51
|
* Testimonial entry of Testimonials component
|
|
32
52
|
*/
|
|
33
|
-
interface
|
|
53
|
+
interface Testimonial {
|
|
34
54
|
quote: Quote;
|
|
35
55
|
name: Name;
|
|
36
56
|
title?: Title;
|
|
@@ -40,4 +60,4 @@ interface TestimonialProps {
|
|
|
40
60
|
};
|
|
41
61
|
rating?: Rating;
|
|
42
62
|
}
|
|
43
|
-
export { Quote, Name, Title, Source, AltText, Rating,
|
|
63
|
+
export { Layout, StyleOfTheQuoteSigns, Quote, Name, Title, Source, AltText, Rating, Testimonials, TestimonialsProps, Testimonial };
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
"type": "object",
|
|
75
75
|
"properties": {
|
|
76
76
|
"icon": {
|
|
77
|
-
"type": "string"
|
|
77
|
+
"type": "string",
|
|
78
|
+
"format": "icon"
|
|
78
79
|
},
|
|
79
80
|
"label": {
|
|
80
81
|
"type": "string"
|
|
@@ -127,6 +128,7 @@
|
|
|
127
128
|
"title": "Icon",
|
|
128
129
|
"description": "The icon name for the social link",
|
|
129
130
|
"type": "string",
|
|
131
|
+
"format": "icon",
|
|
130
132
|
"examples": [
|
|
131
133
|
"twitter",
|
|
132
134
|
"facebook"
|
|
@@ -4,4 +4,5 @@ import { BlogAsideProps } from "../../BlogAsideProps-d9decb7c.js";
|
|
|
4
4
|
declare const BlogAsideContextDefault: import("react").ForwardRefExoticComponent<BlogAsideProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const BlogAsideContext: import("react").Context<import("react").ForwardRefExoticComponent<BlogAsideProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
declare const BlogAside: import("react").ForwardRefExoticComponent<BlogAsideProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export type { BlogAsideProps };
|
|
7
8
|
export { BlogAsideContextDefault, BlogAsideContext, BlogAside };
|
|
@@ -7,6 +7,7 @@ import { PostShareBar } from '@kickstartds/blog/lib/post-share-bar';
|
|
|
7
7
|
import { Container } from '@kickstartds/core/lib/container';
|
|
8
8
|
import { BlogAuthor } from '../blog-author/index.js';
|
|
9
9
|
import { Headline } from '../headline/index.js';
|
|
10
|
+
import { d as deepMergeDefaults } from '../../helpers-84d80d46.js';
|
|
10
11
|
import '../contact/index.js';
|
|
11
12
|
import '@kickstartds/base/lib/picture';
|
|
12
13
|
import '@kickstartds/base/lib/contact';
|
|
@@ -16,6 +17,10 @@ import '@kickstartds/base/lib/rich-text';
|
|
|
16
17
|
import 'markdown-to-jsx';
|
|
17
18
|
import '@kickstartds/base/lib/headline';
|
|
18
19
|
|
|
20
|
+
const defaults = {
|
|
21
|
+
"socialSharing": []
|
|
22
|
+
};
|
|
23
|
+
|
|
19
24
|
const BlogAsideContextDefault = forwardRef(({ author, socialSharing, readingTime, date, className, ...props }, ref) => {
|
|
20
25
|
const socialLinks = socialSharing?.map((link) => {
|
|
21
26
|
return {
|
|
@@ -40,7 +45,7 @@ const BlogAsideContextDefault = forwardRef(({ author, socialSharing, readingTime
|
|
|
40
45
|
const BlogAsideContext = createContext(BlogAsideContextDefault);
|
|
41
46
|
const BlogAside = forwardRef((props, ref) => {
|
|
42
47
|
const Component = useContext(BlogAsideContext);
|
|
43
|
-
return jsx(Component, { ...props, ref: ref });
|
|
48
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
44
49
|
});
|
|
45
50
|
BlogAside.displayName = "BlogAside";
|
|
46
51
|
|
|
@@ -4,4 +4,5 @@ import { BlogAuthorProps } from "../../BlogAuthorProps-88a11566.js";
|
|
|
4
4
|
declare const BlogAuthorContextDefault: import("react").ForwardRefExoticComponent<BlogAuthorProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const BlogAuthorContext: import("react").Context<import("react").ForwardRefExoticComponent<BlogAuthorProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
declare const BlogAuthor: import("react").ForwardRefExoticComponent<BlogAuthorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export type { BlogAuthorProps };
|
|
7
8
|
export { BlogAuthorContextDefault, BlogAuthorContext, BlogAuthor };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, createContext, useContext } from 'react';
|
|
3
3
|
import { Contact } from '../contact/index.js';
|
|
4
|
+
import { d as deepMergeDefaults } from '../../helpers-84d80d46.js';
|
|
4
5
|
import 'classnames';
|
|
5
6
|
import '@kickstartds/base/lib/picture';
|
|
6
7
|
import '@kickstartds/base/lib/contact';
|
|
@@ -9,13 +10,21 @@ import '@kickstartds/base/lib/icon';
|
|
|
9
10
|
import '@kickstartds/base/lib/rich-text';
|
|
10
11
|
import '@kickstartds/core/lib/container';
|
|
11
12
|
|
|
13
|
+
const defaults = {
|
|
14
|
+
"image": {
|
|
15
|
+
"fullWidth": false,
|
|
16
|
+
"aspectRatio": "square"
|
|
17
|
+
},
|
|
18
|
+
"links": []
|
|
19
|
+
};
|
|
20
|
+
|
|
12
21
|
const BlogAuthorContextDefault = forwardRef(({ name, byline, image, links, ...props }, ref) => {
|
|
13
22
|
return (jsx(Contact, { ref: ref, ...props, className: "dsa-blog-aside__author", title: name, subtitle: byline, image: image, links: links }));
|
|
14
23
|
});
|
|
15
24
|
const BlogAuthorContext = createContext(BlogAuthorContextDefault);
|
|
16
25
|
const BlogAuthor = forwardRef((props, ref) => {
|
|
17
26
|
const Component = useContext(BlogAuthorContext);
|
|
18
|
-
return jsx(Component, { ...props, ref: ref });
|
|
27
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
19
28
|
});
|
|
20
29
|
BlogAuthor.displayName = "BlogAuthor";
|
|
21
30
|
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
--dsa-blog-head--margin-bottom: var(--ks-spacing-stack-m);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.dsa-
|
|
11
|
+
.dsa-blog-head.c-post-head {
|
|
12
12
|
--c-post-head_date--font: var(--dsa-blog-head__date--font, var(--ks-font-interface-xs));
|
|
13
13
|
--c-post-head_date--font-weight: var(--dsa-blog-head__date--font-weight, var(--ks-font-weight-bold));
|
|
14
14
|
--c-post-head_date--color: var(--dsa-blog-head__date--color, var(--ks-text-color-interface));
|
|
15
15
|
}
|
|
16
|
-
.dsa-
|
|
16
|
+
.dsa-blog-head.c-post-head .dsa-headline__headline {
|
|
17
17
|
font: var(--dsa-blog-head__headline--font, var(--dsa-headline_h2--font, var(--ks-font-display-l)));
|
|
18
18
|
font-weight: var(--dsa-blog-head__headline--font-weight, var(--dsa-headline--font-weight, var(--ks-font-weight-medium)));
|
|
19
19
|
color: var(--dsa-blog-head__headline--color, var(--dsa-headline--color, var(--ks-text-color-display)));
|
|
20
20
|
}
|
|
21
|
-
.dsa-
|
|
21
|
+
.dsa-blog-head.c-post-head .c-post-head__image {
|
|
22
22
|
margin-bottom: var(--dsa-blog-head--margin-bottom, var(--ks-spacing-stack-m));
|
|
23
23
|
}
|
|
@@ -58,6 +58,14 @@
|
|
|
58
58
|
"img/close-up-young-business-team-working.png"
|
|
59
59
|
]
|
|
60
60
|
},
|
|
61
|
+
"alt": {
|
|
62
|
+
"title": "Alt Text",
|
|
63
|
+
"description": "The alt text for the cover image",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"examples": [
|
|
66
|
+
"Image of a business team working"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
61
69
|
"type": {
|
|
62
70
|
"const": "blog-head"
|
|
63
71
|
}
|
|
@@ -33,6 +33,12 @@
|
|
|
33
33
|
"type": "string",
|
|
34
34
|
"format": "image",
|
|
35
35
|
"examples": ["img/close-up-young-business-team-working.png"]
|
|
36
|
+
},
|
|
37
|
+
"alt": {
|
|
38
|
+
"title": "Alt Text",
|
|
39
|
+
"description": "The alt text for the cover image",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"examples": ["Image of a business team working"]
|
|
36
42
|
}
|
|
37
43
|
},
|
|
38
44
|
"additionalProperties": false,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BlogHeadProps } from "../../BlogHeadProps-
|
|
2
|
+
import { BlogHeadProps } from "../../BlogHeadProps-c04a5ed8.js";
|
|
3
3
|
declare const BlogHeadContextDefault: import("react").ForwardRefExoticComponent<BlogHeadProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
declare const BlogHeadContext: import("react").Context<import("react").ForwardRefExoticComponent<BlogHeadProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
5
5
|
declare const BlogHead: import("react").ForwardRefExoticComponent<BlogHeadProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export type { BlogHeadProps };
|
|
6
7
|
export { BlogHeadContextDefault, BlogHeadContext, BlogHead };
|
|
@@ -2,16 +2,21 @@ import "./blog-head.css";
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, createContext, useContext } from 'react';
|
|
4
4
|
import { PostHead } from '@kickstartds/blog/lib/post-head';
|
|
5
|
+
import { d as deepMergeDefaults } from '../../helpers-84d80d46.js';
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
-
|
|
7
|
+
const defaults = {
|
|
8
|
+
"tags": []
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const BlogHeadContextDefault = forwardRef(({ date, tags = [], headline, image, alt, ...rest }, ref) => {
|
|
12
|
+
return (jsx(PostHead, { ...rest, className: "dsa-blog-head", date: date, headline: { text: headline, level: "h1", align: "left" }, image: { src: image, alt: alt || headline }, categories: tags.map((tag) => {
|
|
8
13
|
return { label: tag.entry };
|
|
9
14
|
}), ref: ref }));
|
|
10
15
|
});
|
|
11
16
|
const BlogHeadContext = createContext(BlogHeadContextDefault);
|
|
12
17
|
const BlogHead = forwardRef((props, ref) => {
|
|
13
18
|
const Component = useContext(BlogHeadContext);
|
|
14
|
-
return jsx(Component, { ...props, ref: ref });
|
|
19
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
15
20
|
});
|
|
16
21
|
BlogHead.displayName = "BlogHead";
|
|
17
22
|
|