@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.
Files changed (129) hide show
  1. package/dist/BlogAsideProps-e1cbd5d3.d.ts +74 -0
  2. package/dist/BlogHeadProps-f9a49428.d.ts +31 -0
  3. package/dist/BlogTeaserProps-525f7f9f.d.ts +79 -0
  4. package/dist/FeatureProps-f8a75850.d.ts +52 -0
  5. package/dist/FeaturesProps-b05859d6.d.ts +34 -0
  6. package/dist/SeoProps-f2d6dcaa.d.ts +36 -0
  7. package/dist/{TeaserCardProps-3fce7be4.d.ts → TeaserCardProps-b9c28e78.d.ts} +1 -1
  8. package/dist/components/blog-aside/blog-aside.css +33 -5
  9. package/dist/components/blog-aside/blog-aside.schema.dereffed.json +5 -3
  10. package/dist/components/blog-aside/blog-aside.schema.json +5 -3
  11. package/dist/components/blog-aside/index.d.ts +6 -76
  12. package/dist/components/blog-aside/index.js +17 -10
  13. package/dist/components/blog-head/blog-head.css +22 -2
  14. package/dist/components/blog-head/blog-head.schema.dereffed.json +2 -1
  15. package/dist/components/blog-head/blog-head.schema.json +2 -1
  16. package/dist/components/blog-head/index.d.ts +6 -34
  17. package/dist/components/blog-head/index.js +10 -4
  18. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +18 -0
  19. package/dist/components/blog-overview/index.d.ts +39 -0
  20. package/dist/components/blog-overview/index.js +17 -0
  21. package/dist/components/blog-post/blog-post.schema.dereffed.json +7 -4
  22. package/dist/components/blog-post/index.d.ts +39 -0
  23. package/dist/components/blog-post/index.js +24 -0
  24. package/dist/components/blog-teaser/blog-teaser.css +49 -25
  25. package/dist/components/blog-teaser/blog-teaser.schema.dereffed.json +6 -0
  26. package/dist/components/blog-teaser/blog-teaser.schema.json +6 -0
  27. package/dist/components/blog-teaser/index.d.ts +6 -81
  28. package/dist/components/blog-teaser/index.js +25 -16
  29. package/dist/components/button/button.css +109 -59
  30. package/dist/components/button/index.js +2 -1
  31. package/dist/components/cta/cta.css +1 -1
  32. package/dist/components/faq/faq.css +27 -14
  33. package/dist/components/faq/faq.schema.dereffed.json +2 -0
  34. package/dist/components/faq/faq.schema.json +2 -0
  35. package/dist/components/faq/index.d.ts +6 -3
  36. package/dist/components/faq/index.js +8 -4
  37. package/dist/components/feature/feature.css +99 -0
  38. package/dist/components/feature/feature.schema.dereffed.json +91 -0
  39. package/dist/components/feature/feature.schema.json +67 -0
  40. package/dist/components/feature/index.d.ts +7 -49
  41. package/dist/components/feature/index.js +19 -15
  42. package/dist/components/features/features.css +7 -93
  43. package/dist/components/features/features.schema.dereffed.json +36 -2
  44. package/dist/components/features/features.schema.json +3 -47
  45. package/dist/components/features/index.d.ts +7 -4
  46. package/dist/components/features/index.js +13 -20
  47. package/dist/components/footer/footer.css +21 -17
  48. package/dist/components/footer/footer.schema.dereffed.json +4 -83
  49. package/dist/components/footer/footer.schema.json +33 -2
  50. package/dist/components/footer/index.d.ts +23 -5
  51. package/dist/components/footer/index.js +1 -1
  52. package/dist/components/gallery/gallery.css +31 -23
  53. package/dist/components/gallery/gallery.schema.dereffed.json +2 -0
  54. package/dist/components/gallery/gallery.schema.json +2 -0
  55. package/dist/components/gallery/index.d.ts +6 -3
  56. package/dist/components/gallery/index.js +11 -6
  57. package/dist/components/header/header.css +19 -43
  58. package/dist/components/header/header.schema.dereffed.json +18 -93
  59. package/dist/components/header/header.schema.json +31 -1
  60. package/dist/components/header/index.d.ts +24 -5
  61. package/dist/components/header/index.js +1 -1
  62. package/dist/components/headline/headline.css +76 -46
  63. package/dist/components/headline/index.d.ts +1 -1
  64. package/dist/components/headline/index.js +1 -1
  65. package/dist/components/hero/hero.css +30 -16
  66. package/dist/components/image/image.css +12 -6
  67. package/dist/components/image/image.schema.dereffed.json +4 -4
  68. package/dist/components/image/image.schema.json +4 -4
  69. package/dist/components/image/index.d.ts +7 -7
  70. package/dist/components/image-text/image-text.css +14 -3
  71. package/dist/components/image-text/image-text.schema.dereffed.json +2 -0
  72. package/dist/components/image-text/image-text.schema.json +2 -0
  73. package/dist/components/image-text/index.d.ts +7 -4
  74. package/dist/components/image-text/index.js +19 -13
  75. package/dist/components/logo/index.d.ts +27 -0
  76. package/dist/components/logo/index.js +12 -0
  77. package/dist/components/logo/logo.schema.dereffed.json +38 -0
  78. package/dist/components/logo/logo.schema.json +31 -0
  79. package/dist/components/mosaic/mosaic.css +2 -2
  80. package/dist/components/nav-main/index.d.ts +2 -0
  81. package/dist/components/nav-main/index.js +3 -2
  82. package/dist/components/nav-main/nav-main.css +67 -64
  83. package/dist/components/nav-main/nav-main.schema.dereffed.json +17 -11
  84. package/dist/components/nav-main/nav-main.schema.json +15 -12
  85. package/dist/components/nav-main/nav-toggle.css +12 -7
  86. package/dist/components/page/page.schema.dereffed.json +46 -5
  87. package/dist/components/page/page.schema.json +1 -1
  88. package/dist/components/page-wrapper/index.d.ts +2 -3
  89. package/dist/components/page-wrapper/index.js +7 -472
  90. package/dist/components/page-wrapper/tokens.css +1 -1
  91. package/dist/components/providers/index.js +1 -1
  92. package/dist/components/raw-page-wrapper/index.d.ts +3 -0
  93. package/dist/components/raw-page-wrapper/index.js +492 -0
  94. package/dist/components/section/index.d.ts +2 -2
  95. package/dist/components/section/section.schema.dereffed.json +45 -4
  96. package/dist/components/settings/settings.schema.dereffed.json +22 -176
  97. package/dist/components/stat/index.d.ts +32 -0
  98. package/dist/components/stat/index.js +11 -0
  99. package/dist/components/stat/stat.schema.dereffed.json +64 -0
  100. package/dist/components/stat/stat.schema.json +48 -0
  101. package/dist/components/teaser-card/index.d.ts +4 -2
  102. package/dist/components/teaser-card/index.js +16 -13
  103. package/dist/components/teaser-card/teaser-card.css +68 -40
  104. package/dist/components/teaser-card/teaser-card.schema.dereffed.json +2 -2
  105. package/dist/components/teaser-card/teaser-card.schema.json +2 -2
  106. package/dist/components/testimonial/index.d.ts +44 -0
  107. package/dist/components/testimonial/index.js +19 -0
  108. package/dist/components/testimonial/testimonial.schema.dereffed.json +60 -0
  109. package/dist/components/testimonial/testimonial.schema.json +46 -0
  110. package/dist/components/text/index.d.ts +6 -3
  111. package/dist/components/text/index.js +10 -4
  112. package/dist/components/text/text.css +19 -9
  113. package/dist/components/text/text.schema.dereffed.json +1 -0
  114. package/dist/components/text/text.schema.json +1 -0
  115. package/dist/components/video-curtain/video-curtain.css +1 -1
  116. package/dist/global.css +238 -88
  117. package/dist/static/tokens-business.css +1 -1
  118. package/dist/static/tokens-google.css +1 -1
  119. package/dist/static/tokens-ngo.css +1 -1
  120. package/dist/static/tokens-telekom.css +1 -1
  121. package/dist/static/tokens.css +1 -1
  122. package/dist/tokens/tokens.css +1 -1
  123. package/dist/tokens/tokens.js +1 -1
  124. package/package.json +1 -1
  125. package/dist/FeaturesProps-32f5bc0d.d.ts +0 -284
  126. /package/dist/static/fonts/{lughausen → business}/novelpro-regular.woff +0 -0
  127. /package/dist/static/fonts/{lughausen → business}/novelsanspro-bold.woff +0 -0
  128. /package/dist/static/fonts/{lughausen → business}/novelsanspro-regular.woff +0 -0
  129. /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
- --g-headline--color: var(--ks-color-fg);
3
- --g-headline--font-weight: var(--ks-font-weight-medium);
4
- --c-headline--higlight-gradient: var(--g-gradient--higlight);
5
- }
6
- :root .c-headline, :root #root .c-headline, [ks-inverted] .c-headline, [ks-inverted] #root .c-headline, #root [ks-inverted] .c-headline, [ks-inverted] #root .c-headline, [ks-theme] .c-headline, [ks-theme] #root .c-headline, #root [ks-theme] .c-headline {
7
- --c-headline--color: var(--g-headline--color);
8
- --c-headline--font-weight: var(--g-headline--font-weight);
9
- --c-headline--gap: 0.25em;
10
- }
11
- :root .c-headline--h1, :root #root .c-headline--h1, [ks-inverted] .c-headline--h1, [ks-inverted] #root .c-headline--h1, #root [ks-inverted] .c-headline--h1, [ks-inverted] #root .c-headline--h1, [ks-theme] .c-headline--h1, [ks-theme] #root .c-headline--h1, #root [ks-theme] .c-headline--h1 {
12
- --c-headline--font: var(--ks-font-display-xxl);
13
- }
14
- :root .c-headline--h1 .c-headline__subheadline, :root #root .c-headline--h1 .c-headline__subheadline, [ks-inverted] .c-headline--h1 .c-headline__subheadline, [ks-inverted] #root .c-headline--h1 .c-headline__subheadline, #root [ks-inverted] .c-headline--h1 .c-headline__subheadline, [ks-inverted] #root .c-headline--h1 .c-headline__subheadline, [ks-theme] .c-headline--h1 .c-headline__subheadline, [ks-theme] #root .c-headline--h1 .c-headline__subheadline, #root [ks-theme] .c-headline--h1 .c-headline__subheadline {
15
- --c-headline_subheadline--font: var(--ks-font-copy-l);
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 .c-headline--h1 .c-headline__subheadline, :root #root .c-headline--h1 .c-headline__subheadline, [ks-inverted] .c-headline--h1 .c-headline__subheadline, [ks-inverted] #root .c-headline--h1 .c-headline__subheadline, #root [ks-inverted] .c-headline--h1 .c-headline__subheadline, [ks-inverted] #root .c-headline--h1 .c-headline__subheadline, [ks-theme] .c-headline--h1 .c-headline__subheadline, [ks-theme] #root .c-headline--h1 .c-headline__subheadline, #root [ks-theme] .c-headline--h1 .c-headline__subheadline {
19
- --c-headline_subheadline--font: var(--ks-font-copy-xl);
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 .c-headline--h2 .c-headline__subheadline, :root #root .c-headline--h2 .c-headline__subheadline, [ks-inverted] .c-headline--h2 .c-headline__subheadline, [ks-inverted] #root .c-headline--h2 .c-headline__subheadline, #root [ks-inverted] .c-headline--h2 .c-headline__subheadline, [ks-inverted] #root .c-headline--h2 .c-headline__subheadline, [ks-theme] .c-headline--h2 .c-headline__subheadline, [ks-theme] #root .c-headline--h2 .c-headline__subheadline, #root [ks-theme] .c-headline--h2 .c-headline__subheadline {
27
- --c-headline_subheadline--font: var(--ks-font-copy-l);
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
- .c-headline {
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(--c-headline--gap);
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
- .c-headline__headline {
53
- font: var(--c-headline--font);
54
- font-weight: var(--c-headline--font-weight);
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
- .c-headline__subheadline {
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
- .c-headline--align-center .c-headline__headline {
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
- .c-headline--align-center .c-headline__subheadline {
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
- .c-headline strong,
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(--c-headline--higlight-gradient);
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("c-headline", `c-headline--${style}`, style !== "none" && style !== level && `c-headline--${style}`, `c-headline--align-${align}`, spaceAfter && `c-headline--space-after-${spaceAfter}`, className), ref: ref, ...props, children: [sub && switchOrder && (jsx("p", { className: "c-headline__subheadline", children: renderSubheadline(sub) })), jsx(TagName, { className: classnames("c-headline__headline"), children: renderContent(text) }), sub && !switchOrder && (jsx("p", { className: "c-headline__subheadline", children: renderSubheadline(sub) }))] })) : null;
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-hero__box--background-color: var(--ks-color-bg-alpha-2);
4
- --dsa-hero__text--color: var(--ks-text-color-default);
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-hero__box--background-color, var(--ks-color-bg-alpha-2));
19
- --c-visual_box--color: var(--dsa-hero__text--color, var(--ks-text-color-default));
20
- --c-visual_subheadline--color: var(--ks-text-color-primary);
21
- --c-visual_headline--color: var(--ks-color-fg);
22
- --c-visual_box--border-radius: var(--ks-border-radius-surface);
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 .c-visual__box {
26
- --c-visual_text--font: var(--dsa-hero_highlight-text__box--font, var(--ks-font-copy-l));
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 .c-visual__box {
29
- --c-visual_box--color: var(--dsa-hero_color-neutral__copy--color, var(--ks-text-color-default));
30
- --c-visual_subheadline--color: var(--dsa-hero_color-neutral__copy--color, var(--ks-text-color-default));
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: linear-gradient(0deg, var(--ks-background-color-default) 15%, transparent 50%);
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 .c-headline .c-headline__subheadline {
49
- color: var(--dsa-visual__subheadline--color, var(--dsa-headline__subheadline--color, var(--ks-text-color-display)));
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--square {
2
- aspect-ratio: 1/1;
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: 4/3;
7
- object-fit: cover;
14
+ aspect-ratio: var(--c-image--ratio-wide);
8
15
  }
9
16
  .c-image--landscape {
10
- aspect-ratio: 16/9;
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": "TODO MEDIA TITLE",
83
- "description": "TODO MEDIA DESCRIPTION",
82
+ "title": "Media for picture",
83
+ "description": "Media attribute for source",
84
84
  "type": "string"
85
85
  },
86
86
  "type": {
87
- "title": "TODO TYPE TITLE",
88
- "description": "TODO TYPE 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": "TODO MEDIA TITLE",
76
- "description": "TODO MEDIA DESCRIPTION",
75
+ "title": "Media for picture",
76
+ "description": "Media attribute for source",
77
77
  "type": "string"
78
78
  },
79
79
  "type": {
80
- "title": "TODO TYPE TITLE",
81
- "description": "TODO TYPE 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
- * TODO MEDIA DESCRIPTION
50
+ * Media attribute for source
51
51
  */
52
- type TODOMEDIATITLE = string;
52
+ type MediaForPicture = string;
53
53
  /**
54
- * TODO TYPE DESCRIPTION
54
+ * Type attribute for source
55
55
  */
56
- type TODOTYPETITLE = string;
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?: TODOMEDIATITLE;
63
- type?: TODOTYPETITLE;
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<HTMLElement> & import("react").RefAttributes<HTMLImageElement>>;
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
- .c-image-text--highlight {
2
- --c-rich-text--font: var(--ks-font-copy-l);
3
- --c-rich-text--color: var(--ks-color-fg);
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
- import { HTMLAttributes, FC, PropsWithChildren } from "react";
1
+ /// <reference types="react" />
2
+ import { HTMLAttributes, FC } from "react";
2
3
  import { ImageTextProps } from "../../ImageTextProps-9286cca4.js";
3
- declare const ImageText: FC<ImageTextProps & HTMLAttributes<HTMLElement>>;
4
- declare const ImageTextProvider: FC<PropsWithChildren<any>>;
5
- export { ImageText, ImageTextProvider };
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, Fragment } from 'react/jsx-runtime';
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 ImageText = ({ text, image, layout, highlightText, ...props }) => (jsx(Fragment, { children: jsx(Container, { name: "text-media", children: jsx(TextMediaContextDefault, { className: classnames(highlightText ? "c-image-text--highlight" : "", "c-image-text"), ...props, text: text, media: [
8
- {
9
- image: {
10
- src: image.src,
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
- ], mediaAlignment: layout === "above"
14
- ? "above-center"
15
- : layout === "below"
16
- ? "below-center"
17
- : layout }) }) }));
18
- const ImageTextProvider = (props) => (jsx(TextMediaContext.Provider, { ...props, value: ImageText }));
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 .c-headline {
13
+ .c-visual .dsa-headline {
14
14
  --c-headline--color: var(--ks-color-fg);
15
15
  }
16
- .c-visual .c-headline .c-headline__subheadline {
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: "c-nav-main__item", children: jsx(Link, { className: "c-nav-main__link", href: href, children: label }) }));
15
- const NavMain = ({ logo, logoHref = "/", items }) => items && items.length > 0 ? (jsxs("div", { className: "c-nav-main__wrap", children: [jsx(NavToggleComponent, {}), jsxs("nav", { className: "c-nav-main", id: "nav-main", "aria-label": "Hauptnavigation", children: [jsx(Link, { className: "c-nav-main__logo", href: logoHref, children: jsx(Picture, { ...logo }) }), jsx("ul", { className: "c-nav-main__list", children: items.map((item) => (createElement(NavMainItem, { ...item, key: item.href + item.label }))) })] })] })) : null;
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 };