@kickstartds/ds-agency-premium 1.2.10--canary.171.76273d8.0 → 1.2.10--canary.178.33c3c92.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/BlogAsideProps-e1cbd5d3.d.ts +74 -0
- package/dist/BlogHeadProps-f9a49428.d.ts +31 -0
- package/dist/BlogTeaserProps-525f7f9f.d.ts +79 -0
- package/dist/FeatureProps-f8a75850.d.ts +52 -0
- package/dist/FeaturesProps-b05859d6.d.ts +34 -0
- package/dist/SeoProps-f2d6dcaa.d.ts +36 -0
- package/dist/{TeaserCardProps-3fce7be4.d.ts → TeaserCardProps-b9c28e78.d.ts} +1 -1
- package/dist/components/blog-aside/blog-aside.css +33 -5
- package/dist/components/blog-aside/blog-aside.schema.dereffed.json +5 -3
- package/dist/components/blog-aside/blog-aside.schema.json +5 -3
- package/dist/components/blog-aside/index.d.ts +6 -76
- package/dist/components/blog-aside/index.js +17 -10
- package/dist/components/blog-head/blog-head.css +22 -2
- package/dist/components/blog-head/blog-head.schema.dereffed.json +2 -1
- package/dist/components/blog-head/blog-head.schema.json +2 -1
- package/dist/components/blog-head/index.d.ts +6 -34
- package/dist/components/blog-head/index.js +10 -4
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +18 -0
- package/dist/components/blog-overview/index.d.ts +39 -0
- package/dist/components/blog-overview/index.js +17 -0
- package/dist/components/blog-post/blog-post.schema.dereffed.json +7 -4
- package/dist/components/blog-post/index.d.ts +39 -0
- package/dist/components/blog-post/index.js +24 -0
- package/dist/components/blog-teaser/blog-teaser.css +49 -25
- package/dist/components/blog-teaser/blog-teaser.schema.dereffed.json +6 -0
- package/dist/components/blog-teaser/blog-teaser.schema.json +6 -0
- package/dist/components/blog-teaser/index.d.ts +6 -81
- package/dist/components/blog-teaser/index.js +25 -16
- package/dist/components/button/button.css +109 -59
- package/dist/components/button/index.js +2 -1
- package/dist/components/cta/cta.css +1 -1
- package/dist/components/faq/faq.css +27 -14
- package/dist/components/faq/faq.schema.dereffed.json +2 -0
- package/dist/components/faq/faq.schema.json +2 -0
- package/dist/components/faq/index.d.ts +6 -3
- package/dist/components/faq/index.js +8 -4
- package/dist/components/feature/feature.css +99 -0
- package/dist/components/feature/feature.schema.dereffed.json +91 -0
- package/dist/components/feature/feature.schema.json +67 -0
- package/dist/components/feature/index.d.ts +7 -49
- package/dist/components/feature/index.js +19 -15
- package/dist/components/features/features.css +7 -93
- package/dist/components/features/features.schema.dereffed.json +36 -2
- package/dist/components/features/features.schema.json +3 -47
- package/dist/components/features/index.d.ts +7 -4
- package/dist/components/features/index.js +13 -20
- package/dist/components/footer/footer.css +21 -17
- package/dist/components/footer/footer.schema.dereffed.json +4 -83
- package/dist/components/footer/footer.schema.json +33 -2
- package/dist/components/footer/index.d.ts +23 -5
- package/dist/components/footer/index.js +1 -1
- package/dist/components/gallery/gallery.css +31 -23
- package/dist/components/gallery/gallery.schema.dereffed.json +2 -0
- package/dist/components/gallery/gallery.schema.json +2 -0
- package/dist/components/gallery/index.d.ts +6 -3
- package/dist/components/gallery/index.js +11 -6
- package/dist/components/header/header.css +19 -43
- package/dist/components/header/header.schema.dereffed.json +18 -93
- package/dist/components/header/header.schema.json +31 -1
- package/dist/components/header/index.d.ts +24 -5
- package/dist/components/header/index.js +1 -1
- package/dist/components/headline/headline.css +76 -46
- package/dist/components/headline/index.d.ts +1 -1
- package/dist/components/headline/index.js +1 -1
- package/dist/components/hero/hero.css +30 -16
- package/dist/components/image/image.css +12 -6
- package/dist/components/image/image.schema.dereffed.json +4 -4
- package/dist/components/image/image.schema.json +4 -4
- package/dist/components/image/index.d.ts +7 -7
- package/dist/components/image-text/image-text.css +14 -3
- package/dist/components/image-text/image-text.schema.dereffed.json +2 -0
- package/dist/components/image-text/image-text.schema.json +2 -0
- package/dist/components/image-text/index.d.ts +7 -4
- package/dist/components/image-text/index.js +19 -13
- package/dist/components/logo/index.d.ts +27 -0
- package/dist/components/logo/index.js +12 -0
- package/dist/components/logo/logo.schema.dereffed.json +38 -0
- package/dist/components/logo/logo.schema.json +31 -0
- package/dist/components/mosaic/mosaic.css +2 -2
- package/dist/components/nav-main/index.d.ts +2 -0
- package/dist/components/nav-main/index.js +3 -2
- package/dist/components/nav-main/nav-main.css +67 -64
- package/dist/components/nav-main/nav-main.schema.dereffed.json +17 -11
- package/dist/components/nav-main/nav-main.schema.json +15 -12
- package/dist/components/nav-main/nav-toggle.css +12 -7
- package/dist/components/page/page.schema.dereffed.json +46 -5
- package/dist/components/page/page.schema.json +1 -1
- package/dist/components/page-wrapper/index.d.ts +2 -3
- package/dist/components/page-wrapper/index.js +7 -472
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/providers/index.js +1 -1
- package/dist/components/raw-page-wrapper/index.d.ts +3 -0
- package/dist/components/raw-page-wrapper/index.js +492 -0
- package/dist/components/section/index.d.ts +2 -2
- package/dist/components/section/section.schema.dereffed.json +45 -4
- package/dist/components/settings/settings.schema.dereffed.json +22 -176
- package/dist/components/stat/index.d.ts +32 -0
- package/dist/components/stat/index.js +11 -0
- package/dist/components/stat/stat.schema.dereffed.json +64 -0
- package/dist/components/stat/stat.schema.json +48 -0
- package/dist/components/teaser-card/index.d.ts +4 -2
- package/dist/components/teaser-card/index.js +16 -13
- package/dist/components/teaser-card/teaser-card.css +68 -40
- package/dist/components/teaser-card/teaser-card.schema.dereffed.json +2 -2
- package/dist/components/teaser-card/teaser-card.schema.json +2 -2
- package/dist/components/testimonial/index.d.ts +44 -0
- package/dist/components/testimonial/index.js +19 -0
- package/dist/components/testimonial/testimonial.schema.dereffed.json +60 -0
- package/dist/components/testimonial/testimonial.schema.json +46 -0
- package/dist/components/text/index.d.ts +6 -3
- package/dist/components/text/index.js +10 -4
- package/dist/components/text/text.css +19 -9
- package/dist/components/text/text.schema.dereffed.json +1 -0
- package/dist/components/text/text.schema.json +1 -0
- package/dist/components/video-curtain/video-curtain.css +1 -1
- package/dist/global.css +238 -88
- package/dist/static/tokens-business.css +1 -1
- package/dist/static/tokens-google.css +1 -1
- package/dist/static/tokens-ngo.css +1 -1
- package/dist/static/tokens-telekom.css +1 -1
- package/dist/static/tokens.css +1 -1
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/package.json +1 -1
- package/dist/FeaturesProps-32f5bc0d.d.ts +0 -284
- /package/dist/static/fonts/{lughausen → business}/novelpro-regular.woff +0 -0
- /package/dist/static/fonts/{lughausen → business}/novelsanspro-bold.woff +0 -0
- /package/dist/static/fonts/{lughausen → business}/novelsanspro-regular.woff +0 -0
- /package/dist/static/{logo-lughausen.svg → logo-business.svg} +0 -0
|
@@ -1,77 +1,107 @@
|
|
|
1
1
|
:root, :root #root, [ks-inverted], [ks-inverted] #root, #root [ks-inverted], [ks-inverted] #root, [ks-theme], [ks-theme] #root, #root [ks-theme] {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
--
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
--
|
|
2
|
+
--dsa-headline--higlight-gradient: linear-gradient(90deg, var(--ks-color-secondary), var(--ks-color-primary));
|
|
3
|
+
--dsa-headline--color: var(--ks-text-color-display);
|
|
4
|
+
--dsa-headline--font-weight: var(--ks-font-weight-medium);
|
|
5
|
+
--dsa-headline__subheadline--color: var(--ks-text-color-primary);
|
|
6
|
+
--dsa-headline__subheadline--font-weight: var(--ks-font-weight-semi-bold);
|
|
7
|
+
--dsa-headline--gap: 0.25em;
|
|
8
|
+
--dsa-headline_h1--font: var(--ks-font-display-xxl);
|
|
9
|
+
--dsa-headline_h1__subheadline--font: var(--ks-font-copy-l);
|
|
10
|
+
--dsa-headline_h2--font: var(--ks-font-display-xl);
|
|
11
|
+
--dsa-headline_h2__subheadline--font: var(--ks-font-copy-m);
|
|
12
|
+
--dsa-headline_h3--font: var(--ks-font-display-l);
|
|
13
|
+
--dsa-headline_h3__subheadline--font: var(--ks-font-copy-m);
|
|
14
|
+
--dsa-headline_h4--font: var(--ks-font-display-m);
|
|
15
|
+
--dsa-headline__p--font: var(--ks-font-copy-m);
|
|
16
16
|
}
|
|
17
17
|
@media (min-width: 42rem) {
|
|
18
|
-
:root
|
|
19
|
-
--
|
|
18
|
+
:root, :root #root, [ks-inverted], [ks-inverted] #root, #root [ks-inverted], [ks-inverted] #root, [ks-theme], [ks-theme] #root, #root [ks-theme] {
|
|
19
|
+
--dsa-headline_h1__subheadline--font: var(--ks-font-copy-xl);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
:root .c-headline--h2, :root #root .c-headline--h2, [ks-inverted] .c-headline--h2, [ks-inverted] #root .c-headline--h2, #root [ks-inverted] .c-headline--h2, [ks-inverted] #root .c-headline--h2, [ks-theme] .c-headline--h2, [ks-theme] #root .c-headline--h2, #root [ks-theme] .c-headline--h2 {
|
|
23
|
-
--c-headline--font: var(--ks-font-display-xl);
|
|
24
|
-
}
|
|
25
22
|
@media (min-width: 42rem) {
|
|
26
|
-
:root
|
|
27
|
-
--
|
|
23
|
+
:root, :root #root, [ks-inverted], [ks-inverted] #root, #root [ks-inverted], [ks-inverted] #root, [ks-theme], [ks-theme] #root, #root [ks-theme] {
|
|
24
|
+
--dsa-headline_h2__subheadline--font: var(--ks-font-copy-l);
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
|
-
:root .c-headline--h3, :root #root .c-headline--h3, [ks-inverted] .c-headline--h3, [ks-inverted] #root .c-headline--h3, #root [ks-inverted] .c-headline--h3, [ks-inverted] #root .c-headline--h3, [ks-theme] .c-headline--h3, [ks-theme] #root .c-headline--h3, #root [ks-theme] .c-headline--h3 {
|
|
31
|
-
--c-headline--font: var(--ks-font-display-l);
|
|
32
|
-
}
|
|
33
|
-
:root .c-headline--h4, :root #root .c-headline--h4, [ks-inverted] .c-headline--h4, [ks-inverted] #root .c-headline--h4, #root [ks-inverted] .c-headline--h4, [ks-inverted] #root .c-headline--h4, [ks-theme] .c-headline--h4, [ks-theme] #root .c-headline--h4, #root [ks-theme] .c-headline--h4 {
|
|
34
|
-
--c-headline--font: var(--ks-font-display-m);
|
|
35
|
-
}
|
|
36
|
-
:root .c-headline--p, :root #root .c-headline--p, [ks-inverted] .c-headline--p, [ks-inverted] #root .c-headline--p, #root [ks-inverted] .c-headline--p, [ks-inverted] #root .c-headline--p, [ks-theme] .c-headline--p, [ks-theme] #root .c-headline--p, #root [ks-theme] .c-headline--p {
|
|
37
|
-
--c-headline--font: var(--ks-font-copy-m);
|
|
38
|
-
}
|
|
39
|
-
:root .c-headline__subheadline, :root #root .c-headline__subheadline, [ks-inverted] .c-headline__subheadline, [ks-inverted] #root .c-headline__subheadline, #root [ks-inverted] .c-headline__subheadline, [ks-inverted] #root .c-headline__subheadline, [ks-theme] .c-headline__subheadline, [ks-theme] #root .c-headline__subheadline, #root [ks-theme] .c-headline__subheadline {
|
|
40
|
-
--c-headline_subheadline--font: var(--ks-font-copy-m);
|
|
41
|
-
--c-headline_subheadline--color: var(--ks-text-color-primary);
|
|
42
|
-
--c-headline_subheadline--font-weight: var(--ks-font-weight-semi-bold);
|
|
43
|
-
}
|
|
44
27
|
|
|
45
|
-
.
|
|
28
|
+
.dsa-headline {
|
|
46
29
|
max-width: unset;
|
|
47
|
-
font: var(--c-headline--font);
|
|
48
30
|
display: flex;
|
|
49
31
|
flex-direction: column;
|
|
50
|
-
gap: var(--
|
|
32
|
+
gap: var(--dsa-headline--gap, 0.25em);
|
|
33
|
+
}
|
|
34
|
+
.dsa-headline .dsa-headline__headline {
|
|
35
|
+
font: var(--dsa-headline--font);
|
|
36
|
+
}
|
|
37
|
+
.dsa-headline .dsa-headline__subheadline {
|
|
38
|
+
font: var(--dsa-headline__subheadline--font);
|
|
39
|
+
}
|
|
40
|
+
.dsa-headline--h1 {
|
|
41
|
+
--dsa-headline--font: var(--dsa-headline_h1--font, var(--ks-font-display-xxl));
|
|
42
|
+
--dsa-subheadline--font: var(--dsa-headline_h1__subheadline--font, var(--ks-font-copy-xl));
|
|
51
43
|
}
|
|
52
|
-
.
|
|
53
|
-
font: var(--
|
|
54
|
-
font
|
|
44
|
+
.dsa-headline--h2 {
|
|
45
|
+
--dsa-headline--font: var(--dsa-headline_h2--font, var(--ks-font-display-xl));
|
|
46
|
+
--dsa-subheadline--font: var(--dsa-headline_h2__subheadline--font, var(--ks-font-copy-l));
|
|
55
47
|
}
|
|
56
|
-
.
|
|
48
|
+
.dsa-headline--h3 {
|
|
49
|
+
--dsa-headline--font: var(--dsa-headline_h3--font, var(--ks-font-display-l));
|
|
50
|
+
--dsa-subheadline--font: var(--dsa-headline_h3__subheadline--font, var(--ks-font-copy-l));
|
|
51
|
+
}
|
|
52
|
+
.dsa-headline--h4 {
|
|
53
|
+
--dsa-headline--font: var(--dsa-headline_h4--font, var(--ks-font-display-m));
|
|
54
|
+
--dsa-subheadline--font: var(--dsa-headline_h4__subheadline--font, var(--ks-font-copy-m));
|
|
55
|
+
}
|
|
56
|
+
.dsa-headline--p {
|
|
57
|
+
--dsa-headline--font: var(--dsa-headline__p--font, var(--ks-font-copy-m));
|
|
58
|
+
--dsa-subheadline--font: var(--dsa-headline__p__subheadline--font, var(--ks-font-copy-s));
|
|
59
|
+
}
|
|
60
|
+
.dsa-headline .dsa-headline__headline {
|
|
61
|
+
font: var(--dsa-headline--font);
|
|
62
|
+
color: var(--dsa-headline--color, var(--ks-text-color-display));
|
|
63
|
+
font-weight: var(--dsa-headline--font-weight);
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
.dsa-headline .dsa-headline__subheadline {
|
|
67
|
+
font: var(--dsa-subheadline--font);
|
|
57
68
|
margin: 0;
|
|
58
69
|
max-width: var(--l-section--content-width-default);
|
|
70
|
+
color: var(--dsa-headline__subheadline--color, var(--ks-text-color-primary));
|
|
71
|
+
font-weight: var(--dsa-headline__subheadline--font-weight, var(--ks-font-weight-semi-bold));
|
|
72
|
+
}
|
|
73
|
+
.dsa-headline--space-after-minimum {
|
|
74
|
+
margin-bottom: var(--ks-spacing-stack-s);
|
|
59
75
|
}
|
|
60
|
-
.
|
|
76
|
+
.dsa-headline--space-after-small {
|
|
77
|
+
margin-bottom: var(--ks-spacing-stack-m);
|
|
78
|
+
}
|
|
79
|
+
.dsa-headline--space-after-large {
|
|
80
|
+
margin-bottom: var(--ks-spacing-stack-l);
|
|
81
|
+
}
|
|
82
|
+
.dsa-headline--align-center .dsa-headline__headline {
|
|
61
83
|
text-align: center;
|
|
62
84
|
}
|
|
63
|
-
.
|
|
85
|
+
.dsa-headline--align-center .dsa-headline__subheadline {
|
|
86
|
+
text-align: center;
|
|
64
87
|
margin: auto;
|
|
65
88
|
}
|
|
89
|
+
.dsa-headline--align-right .dsa-headline__headline {
|
|
90
|
+
text-align: right;
|
|
91
|
+
}
|
|
92
|
+
.dsa-headline--align-right .dsa-headline__subheadline {
|
|
93
|
+
text-align: right;
|
|
94
|
+
margin-left: auto;
|
|
95
|
+
}
|
|
66
96
|
|
|
67
|
-
.
|
|
97
|
+
.dsa-headline strong,
|
|
68
98
|
h1 strong,
|
|
69
99
|
h2 strong,
|
|
70
100
|
h3 strong,
|
|
71
101
|
h4 strong,
|
|
72
102
|
h5 strong {
|
|
73
103
|
font-weight: inherit;
|
|
74
|
-
background: var(--
|
|
104
|
+
background: var(--dsa-headline--higlight-gradient);
|
|
75
105
|
-webkit-background-clip: text;
|
|
76
106
|
-webkit-text-fill-color: transparent;
|
|
77
107
|
}
|
|
@@ -53,6 +53,6 @@ interface RenderFunctions {
|
|
|
53
53
|
renderContent?: typeof defaultRenderFn;
|
|
54
54
|
renderSubheadline?: typeof defaultRenderFn;
|
|
55
55
|
}
|
|
56
|
-
declare const Headline: import("react").ForwardRefExoticComponent<HeadlineProps & RenderFunctions & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
|
|
56
|
+
declare const Headline: import("react").ForwardRefExoticComponent<HeadlineProps & RenderFunctions & Omit<HTMLAttributes<HTMLElement>, "style"> & import("react").RefAttributes<HTMLElement>>;
|
|
57
57
|
declare const HeadlineProvider: FC<PropsWithChildren>;
|
|
58
58
|
export { Headline, HeadlineProvider };
|
|
@@ -10,7 +10,7 @@ const Headline = forwardRef(({ content, text = content, sub, align = "left", swi
|
|
|
10
10
|
// @ts-expect-error: Some kDS Components set the `styleAs`Props (e.g. https://github.com/kickstartDS/content/blob/next/source/storytelling/StorytellingComponent.tsx#L146)
|
|
11
11
|
styleAs, style = styleAs || "h2", spaceAfter = "small", className, renderContent = markdownRenderFn, renderSubheadline = markdownRenderFn, ...props }, ref) => {
|
|
12
12
|
const TagName = level;
|
|
13
|
-
return text || sub ? (jsxs("header", { className: classnames("
|
|
13
|
+
return text || sub ? (jsxs("header", { className: classnames("dsa-headline", `dsa-headline--${style}`, style !== "none" && style !== level && `dsa-headline--${style}`, `dsa-headline--align-${align}`, spaceAfter && `dsa-headline--space-after-${spaceAfter}`, className), ref: ref, ...props, children: [sub && switchOrder && (jsx("p", { className: "dsa-headline__subheadline", children: renderSubheadline(sub) })), jsx(TagName, { className: classnames("dsa-headline__headline"), children: renderContent(text) }), sub && !switchOrder && (jsx("p", { className: "dsa-headline__subheadline", children: renderSubheadline(sub) }))] })) : null;
|
|
14
14
|
});
|
|
15
15
|
Headline.displayName = "Headline";
|
|
16
16
|
const HeadlineProvider = (props) => (jsx(HeadlineContext.Provider, { ...props, value: Headline }));
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
.dsa-hero {
|
|
2
|
+
--dsa-hero__headline--color: var(--dsa-headline__headline--color);
|
|
2
3
|
--dsa-hero__subheadline--color: var(--dsa-headline__subheadline--color);
|
|
3
|
-
--dsa-
|
|
4
|
-
--dsa-
|
|
4
|
+
--dsa-hero_color-neutral__headline--color: var(--ks-text-color-default);
|
|
5
|
+
--dsa-hero_color-neutral__subheadline--color: var(--ks-text-color-default);
|
|
6
|
+
--dsa-hero__copy--color: var(--ks-text-color-default);
|
|
7
|
+
--dsa-hero__copy--font: var(--ks-font-copy-m);
|
|
8
|
+
--dsa-hero_highlight-text__copy--font: var(--ks-font-copy-l);
|
|
5
9
|
--dsa-hero_color-neutral__copy--color: var(--ks-text-color-default);
|
|
10
|
+
--dsa-hero__textbox--border-radius: var(--ks-border-radius-surface);
|
|
11
|
+
--dsa-hero__textbox--padding: var(--ks-spacing-inset-squish-xl);
|
|
12
|
+
--dsa-hero__texbox--background-color: var(--ks-color-bg-alpha-2);
|
|
13
|
+
--dsa-hero__overlay--background: linear-gradient(0deg, var(--ks-background-color-default) 15%, transparent 50%);
|
|
6
14
|
}
|
|
7
15
|
|
|
8
16
|
.l-container--visual {
|
|
@@ -15,19 +23,19 @@
|
|
|
15
23
|
--c-visual_overlay--background: transparent;
|
|
16
24
|
}
|
|
17
25
|
.c-visual.dsa-hero .c-visual__box {
|
|
18
|
-
--c-visual_box--background: var(--dsa-
|
|
19
|
-
--c-visual_box--color: var(--dsa-
|
|
20
|
-
--c-
|
|
21
|
-
--c-
|
|
22
|
-
--c-
|
|
23
|
-
--c-visual_box--padding: var(--ks-spacing-inset-squish-xl);
|
|
26
|
+
--c-visual_box--background: var(--dsa-hero__texbox--background-color, var(--ks-color-bg-alpha-2));
|
|
27
|
+
--c-visual_box--color: var(--dsa-hero__copy--color, var(--ks-text-color-default));
|
|
28
|
+
--c-visual_box--border-radius: var(--dsa-hero__textbox--border-radius, var(--ks-border-radius-surface));
|
|
29
|
+
--c-visual_box--padding: var(--dsa-hero__textbox--padding, var(--ks-spacing-inset-squish-xl));
|
|
30
|
+
--c-visual_text--font: var(--dsa-hero__copy--font, var(--ks-font-copy-m));
|
|
24
31
|
}
|
|
25
|
-
.c-visual.dsa-hero--highlight-text.c-visual
|
|
26
|
-
--
|
|
32
|
+
.c-visual.dsa-hero--highlight-text.c-visual {
|
|
33
|
+
--dsa-hero__copy--font: var(--dsa-hero_highlight-text__box--font, var(--ks-font-copy-l));
|
|
27
34
|
}
|
|
28
|
-
.c-visual.dsa-hero--color-neutral.c-visual
|
|
29
|
-
--
|
|
30
|
-
--
|
|
35
|
+
.c-visual.dsa-hero--color-neutral.c-visual {
|
|
36
|
+
--dsa-hero__copy--color: var(--dsa-hero_color-neutral__copy--color, var(--ks-text-color-default));
|
|
37
|
+
--dsa-hero__headline--color: var(--dsa-hero_color-neutral__copy--color, var(--ks-text-color-default));
|
|
38
|
+
--dsa-hero__subheadline--color: var(--dsa-hero_color-neutral__copy--color, var(--ks-text-color-default));
|
|
31
39
|
}
|
|
32
40
|
@container visual (min-width: 640px) {
|
|
33
41
|
.c-visual.dsa-hero {
|
|
@@ -38,15 +46,21 @@
|
|
|
38
46
|
);
|
|
39
47
|
}
|
|
40
48
|
.c-visual.dsa-hero.dsa-hero--content-below {
|
|
41
|
-
--c-visual_overlay--background:
|
|
49
|
+
--c-visual_overlay--background: var(
|
|
50
|
+
--dsa-hero__overlay--background,
|
|
51
|
+
linear-gradient(0deg, var(--ks-background-color-default) 15%, transparent 50%)
|
|
52
|
+
);
|
|
42
53
|
}
|
|
43
54
|
.c-visual.dsa-hero .c-visual__box {
|
|
44
55
|
--c-visual_box--max-width: 50rem;
|
|
45
56
|
}
|
|
46
57
|
}
|
|
47
58
|
|
|
48
|
-
.c-visual.dsa-hero .
|
|
49
|
-
color: var(--dsa-
|
|
59
|
+
.c-visual.dsa-hero .dsa-headline .dsa-headline__headline {
|
|
60
|
+
color: var(--dsa-hero__headline--color, var(--dsa-headline__headline--color, var(--ks-text-color-display)));
|
|
61
|
+
}
|
|
62
|
+
.c-visual.dsa-hero .dsa-headline .dsa-headline__subheadline {
|
|
63
|
+
color: var(--dsa-hero__subheadline--color, var(--dsa-headline__subheadline--color, var(--ks-text-color-primary)));
|
|
50
64
|
}
|
|
51
65
|
.c-visual.dsa-hero .c-button-group {
|
|
52
66
|
--c-button-group--vertical-gutter: var(--ks-spacing-stack-m);
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
.c-image
|
|
2
|
-
|
|
1
|
+
.c-image {
|
|
2
|
+
--c-image--ratio-square: 1/1;
|
|
3
|
+
--c-image--ratio-wide: 4/3;
|
|
4
|
+
--c-image--ratio-landscape: 16/9;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.c-image {
|
|
3
8
|
object-fit: cover;
|
|
4
9
|
}
|
|
10
|
+
.c-image--square {
|
|
11
|
+
aspect-ratio: var(--c-image--ratio-square);
|
|
12
|
+
}
|
|
5
13
|
.c-image--wide {
|
|
6
|
-
aspect-ratio:
|
|
7
|
-
object-fit: cover;
|
|
14
|
+
aspect-ratio: var(--c-image--ratio-wide);
|
|
8
15
|
}
|
|
9
16
|
.c-image--landscape {
|
|
10
|
-
aspect-ratio:
|
|
11
|
-
object-fit: cover;
|
|
17
|
+
aspect-ratio: var(--c-image--ratio-landscape);
|
|
12
18
|
}
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"format": "image"
|
|
80
80
|
},
|
|
81
81
|
"media": {
|
|
82
|
-
"title": "
|
|
83
|
-
"description": "
|
|
82
|
+
"title": "Media for picture",
|
|
83
|
+
"description": "Media attribute for source",
|
|
84
84
|
"type": "string"
|
|
85
85
|
},
|
|
86
86
|
"type": {
|
|
87
|
-
"title": "
|
|
88
|
-
"description": "
|
|
87
|
+
"title": "Type for picture",
|
|
88
|
+
"description": "Type attribute for source",
|
|
89
89
|
"type": "string"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
"format": "image"
|
|
73
73
|
},
|
|
74
74
|
"media": {
|
|
75
|
-
"title": "
|
|
76
|
-
"description": "
|
|
75
|
+
"title": "Media for picture",
|
|
76
|
+
"description": "Media attribute for source",
|
|
77
77
|
"type": "string"
|
|
78
78
|
},
|
|
79
79
|
"type": {
|
|
80
|
-
"title": "
|
|
81
|
-
"description": "
|
|
80
|
+
"title": "Type for picture",
|
|
81
|
+
"description": "Type attribute for source",
|
|
82
82
|
"type": "string"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
@@ -47,20 +47,20 @@ type Lazy = boolean;
|
|
|
47
47
|
*/
|
|
48
48
|
type PictureSourceset1 = string;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Media attribute for source
|
|
51
51
|
*/
|
|
52
|
-
type
|
|
52
|
+
type MediaForPicture = string;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Type attribute for source
|
|
55
55
|
*/
|
|
56
|
-
type
|
|
56
|
+
type TypeForPicture = string;
|
|
57
57
|
/**
|
|
58
58
|
* Additional sources. This will result in a `picture`-Element
|
|
59
59
|
*/
|
|
60
60
|
type Sources = {
|
|
61
61
|
srcSet?: PictureSourceset1;
|
|
62
|
-
media?:
|
|
63
|
-
type?:
|
|
62
|
+
media?: MediaForPicture;
|
|
63
|
+
type?: TypeForPicture;
|
|
64
64
|
}[];
|
|
65
65
|
/**
|
|
66
66
|
* Set additional class(es) to the picture
|
|
@@ -82,6 +82,6 @@ interface ImageProps {
|
|
|
82
82
|
sources?: Sources;
|
|
83
83
|
pictureClassName?: ClassAttribute;
|
|
84
84
|
}
|
|
85
|
-
declare const Image: import("react").ForwardRefExoticComponent<ImageProps & HTMLAttributes<
|
|
85
|
+
declare const Image: import("react").ForwardRefExoticComponent<ImageProps & Omit<HTMLAttributes<HTMLDivElement>, "style"> & import("react").RefAttributes<HTMLImageElement>>;
|
|
86
86
|
declare const ImageProvider: FC<PropsWithChildren>;
|
|
87
87
|
export { Image, ImageProvider };
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
.
|
|
2
|
-
--
|
|
3
|
-
--
|
|
1
|
+
.dsa-image-text {
|
|
2
|
+
--dsa-image-text--font: var(--dsa-rich-text--font);
|
|
3
|
+
--dsa-image-text--color: var(--dsa-rich-text--color);
|
|
4
|
+
--dsa-image-text_highlight--font: var(--ks-font-copy-l);
|
|
5
|
+
--dsa-image-text_highlight--color: var(--ks-text-color-default);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dsa-image-text .c-rich-text {
|
|
9
|
+
--c-rich-text--font: var(--dsa-image-text--font, var(--dsa-rich-text--font), var(--ks-font-copy-m));
|
|
10
|
+
--c-rich-text--color: var(--dsa-image-text--color, var(--dsa-rich-text--color), var(--ks-text-color-default));
|
|
11
|
+
}
|
|
12
|
+
.dsa-image-text--highlight.dsa-image-text .c-rich-text {
|
|
13
|
+
--c-rich-text--font: var(--dsa-image-text_highlight--font, var(--ks-font-copy-l));
|
|
14
|
+
--c-rich-text--color: var(--dsa-image-text_highlight--color, var(--ks-text-color-default));
|
|
4
15
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"properties": {
|
|
8
8
|
"text": {
|
|
9
9
|
"type": "string",
|
|
10
|
+
"format": "markdown",
|
|
10
11
|
"title": "Text",
|
|
11
12
|
"description": "Text content to display beside the image",
|
|
12
13
|
"examples": [
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
"properties": {
|
|
25
26
|
"src": {
|
|
26
27
|
"type": "string",
|
|
28
|
+
"format": "image",
|
|
27
29
|
"title": "Image Source",
|
|
28
30
|
"description": "URL of the image to display",
|
|
29
31
|
"examples": [
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"properties": {
|
|
8
8
|
"text": {
|
|
9
9
|
"type": "string",
|
|
10
|
+
"format": "markdown",
|
|
10
11
|
"title": "Text",
|
|
11
12
|
"description": "Text content to display beside the image",
|
|
12
13
|
"examples": ["This is a sample text"]
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
"properties": {
|
|
23
24
|
"src": {
|
|
24
25
|
"type": "string",
|
|
26
|
+
"format": "image",
|
|
25
27
|
"title": "Image Source",
|
|
26
28
|
"description": "URL of the image to display",
|
|
27
29
|
"examples": ["http://example.com/image.jpg"]
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HTMLAttributes, FC } from "react";
|
|
2
3
|
import { ImageTextProps } from "../../ImageTextProps-9286cca4.js";
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
|
|
4
|
+
declare const ImageTextContextDefault: import("react").ForwardRefExoticComponent<ImageTextProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const ImageTextContext: import("react").Context<import("react").ForwardRefExoticComponent<ImageTextProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
|
+
declare const ImageText: import("react").ForwardRefExoticComponent<ImageTextProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const ImageTextProvider: FC<ImageTextProps & HTMLAttributes<HTMLDivElement>>;
|
|
8
|
+
export { ImageTextContextDefault, ImageTextContext, ImageText, ImageTextProvider };
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import "./image-text.css";
|
|
2
|
-
import { jsx
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
3
4
|
import classnames from 'classnames';
|
|
4
5
|
import { TextMediaContextDefault, TextMediaContext } from '@kickstartds/base/lib/text-media';
|
|
5
6
|
import { Container } from '@kickstartds/core/lib/container';
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
8
|
+
const ImageTextContextDefault = forwardRef(({ text, image, layout, highlightText, ...rest }, ref) => (jsx(Container, { name: "text-media", ref: ref, children: jsx(TextMediaContextDefault, { ...rest, className: classnames(highlightText ? "dsa-image-text--highlight" : "", "dsa-image-text"), text: text, media: [
|
|
9
|
+
{
|
|
10
|
+
image: {
|
|
11
|
+
src: image.src,
|
|
12
12
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
},
|
|
14
|
+
], mediaAlignment: layout === "above"
|
|
15
|
+
? "above-center"
|
|
16
|
+
: layout === "below"
|
|
17
|
+
? "below-center"
|
|
18
|
+
: layout }) })));
|
|
19
|
+
const ImageTextContext = createContext(ImageTextContextDefault);
|
|
20
|
+
const ImageText = forwardRef((props, ref) => {
|
|
21
|
+
const Component = useContext(ImageTextContext);
|
|
22
|
+
return jsx(Component, { ...props, ref: ref });
|
|
23
|
+
});
|
|
24
|
+
const ImageTextProvider = (props) => (jsx(TextMediaContext.Provider, { ...props, value: ImageTextContextDefault }));
|
|
19
25
|
|
|
20
|
-
export { ImageText, ImageTextProvider };
|
|
26
|
+
export { ImageText, ImageTextContext, ImageTextContextDefault, ImageTextProvider };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* The URL of the logo image
|
|
11
|
+
*/
|
|
12
|
+
type URL = string;
|
|
13
|
+
/**
|
|
14
|
+
* The alt text of the logo
|
|
15
|
+
*/
|
|
16
|
+
type Caption = string;
|
|
17
|
+
/**
|
|
18
|
+
* Logo entry for Logos component
|
|
19
|
+
*/
|
|
20
|
+
interface LogoProps {
|
|
21
|
+
src: URL;
|
|
22
|
+
alt?: Caption;
|
|
23
|
+
}
|
|
24
|
+
declare const LogoContextDefault: import("react").ForwardRefExoticComponent<LogoProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const LogoContext: import("react").Context<import("react").ForwardRefExoticComponent<LogoProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
26
|
+
declare const Logo: import("react").ForwardRefExoticComponent<LogoProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export { LogoContextDefault, LogoContext, Logo };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
3
|
+
import { Picture } from '@kickstartds/base/lib/picture';
|
|
4
|
+
|
|
5
|
+
const LogoContextDefault = forwardRef(({ src, ...rest }, ref) => (jsx("div", { ...rest, ref: ref, className: "c-logos__logo", children: jsx(Picture, { src: src }) })));
|
|
6
|
+
const LogoContext = createContext(LogoContextDefault);
|
|
7
|
+
const Logo = forwardRef((props, ref) => {
|
|
8
|
+
const Component = useContext(LogoContext);
|
|
9
|
+
return jsx(Component, { ...props, ref: ref });
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export { Logo, LogoContext, LogoContextDefault };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/logo.schema.json",
|
|
4
|
+
"title": "Logo",
|
|
5
|
+
"description": "Logo entry for Logos component",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"src": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "image",
|
|
11
|
+
"title": "URL",
|
|
12
|
+
"description": "The URL of the logo image",
|
|
13
|
+
"examples": [
|
|
14
|
+
"img/logos/logoipsum-212.svg",
|
|
15
|
+
"img/logos/logoipsum-217.svg",
|
|
16
|
+
"img/logos/logoipsum-239.svg",
|
|
17
|
+
"img/logos/logoipsum-244.svg",
|
|
18
|
+
"img/logos/logoipsum-250.svg",
|
|
19
|
+
"img/logos/logoipsum-286.svg"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"alt": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"title": "Caption",
|
|
25
|
+
"description": "The alt text of the logo",
|
|
26
|
+
"examples": [
|
|
27
|
+
"Logo 1"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"type": {
|
|
31
|
+
"const": "logo"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": [
|
|
36
|
+
"src"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/logo.schema.json",
|
|
4
|
+
"title": "Logo",
|
|
5
|
+
"description": "Logo entry for Logos component",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"src": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "image",
|
|
11
|
+
"title": "URL",
|
|
12
|
+
"description": "The URL of the logo image",
|
|
13
|
+
"examples": [
|
|
14
|
+
"img/logos/logoipsum-212.svg",
|
|
15
|
+
"img/logos/logoipsum-217.svg",
|
|
16
|
+
"img/logos/logoipsum-239.svg",
|
|
17
|
+
"img/logos/logoipsum-244.svg",
|
|
18
|
+
"img/logos/logoipsum-250.svg",
|
|
19
|
+
"img/logos/logoipsum-286.svg"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"alt": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"title": "Caption",
|
|
25
|
+
"description": "The alt text of the logo",
|
|
26
|
+
"examples": ["Logo 1"]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": ["src"]
|
|
31
|
+
}
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
}
|
|
13
|
-
.c-visual .
|
|
13
|
+
.c-visual .dsa-headline {
|
|
14
14
|
--c-headline--color: var(--ks-color-fg);
|
|
15
15
|
}
|
|
16
|
-
.c-visual .
|
|
16
|
+
.c-visual .dsa-headline .dsa-headline__subheadline {
|
|
17
17
|
--c-headline_subheadline--color: var(--ks-text-color-primary);
|
|
18
18
|
}
|
|
19
19
|
.c-visual.c-visual--full {
|
|
@@ -15,12 +15,14 @@ interface NavMainProps {
|
|
|
15
15
|
items?: {
|
|
16
16
|
href: string;
|
|
17
17
|
label: string;
|
|
18
|
+
active?: boolean;
|
|
18
19
|
}[];
|
|
19
20
|
}
|
|
20
21
|
declare const NavToggleComponent: FC;
|
|
21
22
|
declare const NavMainItem: FC<{
|
|
22
23
|
label: string;
|
|
23
24
|
href: string;
|
|
25
|
+
active: boolean;
|
|
24
26
|
}>;
|
|
25
27
|
declare const NavMain: FC<NavMainProps>;
|
|
26
28
|
export { NavToggleComponent, NavMainItem, NavMain };
|
|
@@ -2,6 +2,7 @@ import "./nav-main.css";
|
|
|
2
2
|
import "./nav-toggle.css";
|
|
3
3
|
import { createElement } from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
import classnames from 'classnames';
|
|
5
6
|
import { Link } from '@kickstartds/base/lib/link';
|
|
6
7
|
import { Picture } from '@kickstartds/base/lib/picture';
|
|
7
8
|
import './js/NavToggle.client.js';
|
|
@@ -11,7 +12,7 @@ import './js/body.client.js';
|
|
|
11
12
|
import '@kickstartds/core/lib/core';
|
|
12
13
|
|
|
13
14
|
const NavToggleComponent = () => (jsxs("button", { type: "button", className: "nav-toggle", id: "toggle-sidebar", "aria-controls": "nav-main", "aria-expanded": "false", "ks-component": "base.nav-toggle", children: [jsx("span", { className: "nav-toggle__label", children: "toggle navigation" }), jsx("span", { className: "nav-toggle__icon", children: jsx("span", { className: "nav-toggle__icon__middle" }) })] }));
|
|
14
|
-
const NavMainItem = ({ label, href, }) => (jsx("li", { className: "
|
|
15
|
-
const NavMain = ({ logo, logoHref = "/", items }) => items && items.length > 0 ? (jsxs("div", { className: "
|
|
15
|
+
const NavMainItem = ({ label, href, active }) => (jsx("li", { className: classnames("nav-main__item", active === true ? "nav-main__item--active" : ""), children: jsx(Link, { className: "nav-main__link", href: href, children: label }) }));
|
|
16
|
+
const NavMain = ({ logo, logoHref = "/", items }) => items && items.length > 0 ? (jsxs("div", { className: "nav-main__wrap", children: [jsx(NavToggleComponent, {}), jsxs("nav", { className: classnames("nav-main", items.some((item) => item.active) ? "nav-main--active" : ""), id: "nav-main", "aria-label": "Hauptnavigation", children: [jsx(Link, { className: "nav-main__logo", href: logoHref, children: jsx(Picture, { ...logo }) }), jsx("ul", { className: "nav-main__list", children: items.map((item) => (createElement(NavMainItem, { ...item, active: item.active ?? false, key: item.href + item.label }))) })] })] })) : null;
|
|
16
17
|
|
|
17
18
|
export { NavMain, NavMainItem, NavToggleComponent };
|