@kickstartds/ds-agency-premium 1.2.35--canary.344.8914b52.0 → 1.3.0--canary.8.350.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 (149) hide show
  1. package/dist/{SectionProps-83d399b4.d.ts → SectionProps-93230a76.d.ts} +1 -1
  2. package/dist/components/blog-aside/index.js +1 -0
  3. package/dist/components/blog-head/index.js +1 -0
  4. package/dist/components/blog-overview/index.d.ts +4 -1
  5. package/dist/components/blog-overview/index.js +2 -1
  6. package/dist/components/blog-post/index.d.ts +5 -2
  7. package/dist/components/blog-post/index.js +1 -0
  8. package/dist/components/blog-teaser/index.js +1 -0
  9. package/dist/components/button/index.d.ts +1 -1
  10. package/dist/components/button-group/index.js +1 -0
  11. package/dist/components/cta/index.js +1 -0
  12. package/dist/components/faq/index.js +1 -0
  13. package/dist/components/feature/index.js +1 -0
  14. package/dist/components/features/index.js +1 -0
  15. package/dist/components/footer/index.js +1 -0
  16. package/dist/components/gallery/index.js +1 -0
  17. package/dist/components/header/index.js +1 -0
  18. package/dist/components/headline/index.js +2 -3
  19. package/dist/components/hero/index.d.ts +6 -3
  20. package/dist/components/hero/index.js +11 -5
  21. package/dist/components/image-story/index.d.ts +7 -4
  22. package/dist/components/image-story/index.js +11 -5
  23. package/dist/components/image-text/index.js +1 -0
  24. package/dist/components/index/index.d.ts +2 -2
  25. package/dist/components/logos/index.d.ts +6 -3
  26. package/dist/components/logos/index.js +11 -5
  27. package/dist/components/mosaic/index.d.ts +6 -3
  28. package/dist/components/mosaic/index.js +10 -3
  29. package/dist/components/page/page.schema.dereffed.json +8 -1
  30. package/dist/components/page-wrapper/index.js +1 -1
  31. package/dist/components/page-wrapper/tokens.css +1 -1
  32. package/dist/components/presets.json +47 -43
  33. package/dist/components/providers/index.js +1 -1
  34. package/dist/components/section/index.d.ts +1 -1
  35. package/dist/components/section/section.schema.dereffed.json +8 -1
  36. package/dist/components/slider/index.d.ts +3 -2
  37. package/dist/components/slider/index.js +2 -1
  38. package/dist/components/slider/slider.schema.dereffed.json +8 -1
  39. package/dist/components/stat/index.js +1 -0
  40. package/dist/components/stats/index.d.ts +6 -3
  41. package/dist/components/stats/index.js +11 -5
  42. package/dist/components/teaser-card/index.js +1 -1
  43. package/dist/components/testimonial/index.js +1 -0
  44. package/dist/components/testimonials/index.d.ts +7 -4
  45. package/dist/components/testimonials/index.js +15 -9
  46. package/dist/components/text/index.js +1 -0
  47. package/dist/components/video-curtain/index.d.ts +6 -3
  48. package/dist/components/video-curtain/index.js +11 -5
  49. package/dist/static/img/screenshots/blog-blog-aside--default.png +0 -0
  50. package/dist/static/img/screenshots/blog-blog-head--default.png +0 -0
  51. package/dist/static/img/screenshots/blog-blog-teaser--default.png +0 -0
  52. package/dist/static/img/screenshots/components-button--primary-button.png +0 -0
  53. package/dist/static/img/screenshots/components-button--primary-disabled-button.png +0 -0
  54. package/dist/static/img/screenshots/components-button--secondary-button.png +0 -0
  55. package/dist/static/img/screenshots/components-button--tertiary-button.png +0 -0
  56. package/dist/static/img/screenshots/components-cta--align-bottom.png +0 -0
  57. package/dist/static/img/screenshots/components-cta--angled-image.png +0 -0
  58. package/dist/static/img/screenshots/components-cta--banner.png +0 -0
  59. package/dist/static/img/screenshots/components-cta--colored-banner.png +0 -0
  60. package/dist/static/img/screenshots/components-cta--contact-banner.png +0 -0
  61. package/dist/static/img/screenshots/components-cta--highlighted.png +0 -0
  62. package/dist/static/img/screenshots/components-cta--left-aligned.png +0 -0
  63. package/dist/static/img/screenshots/components-cta--product-advertisement.png +0 -0
  64. package/dist/static/img/screenshots/components-cta--split-banner.png +0 -0
  65. package/dist/static/img/screenshots/components-faq--dropdown-list.png +0 -0
  66. package/dist/static/img/screenshots/components-faq--single-dropdown.png +0 -0
  67. package/dist/static/img/screenshots/components-features--icon-beside-with-link-in-text.png +0 -0
  68. package/dist/static/img/screenshots/components-features--icon-centered.png +0 -0
  69. package/dist/static/img/screenshots/components-features--icon-intext-with-link.png +0 -0
  70. package/dist/static/img/screenshots/components-features--list-view.png +0 -0
  71. package/dist/static/img/screenshots/components-features--stack-with-button.png +0 -0
  72. package/dist/static/img/screenshots/components-gallery--free-aspect-ratio.png +0 -0
  73. package/dist/static/img/screenshots/components-gallery--large-landscape-tiles.png +0 -0
  74. package/dist/static/img/screenshots/components-gallery--small-squares-with-lightbox.png +0 -0
  75. package/dist/static/img/screenshots/components-gallery--stack-landscape.png +0 -0
  76. package/dist/static/img/screenshots/components-headline--h-1.png +0 -0
  77. package/dist/static/img/screenshots/components-headline--h-2.png +0 -0
  78. package/dist/static/img/screenshots/components-headline--h-3.png +0 -0
  79. package/dist/static/img/screenshots/components-headline--h-4.png +0 -0
  80. package/dist/static/img/screenshots/components-headline--order-swapped.png +0 -0
  81. package/dist/static/img/screenshots/components-headline--with-markdown.png +0 -0
  82. package/dist/static/img/screenshots/components-headline--with-subheadline.png +0 -0
  83. package/dist/static/img/screenshots/components-hero--text-below-image.png +0 -0
  84. package/dist/static/img/screenshots/components-hero--text-box-on-full-screen.png +0 -0
  85. package/dist/static/img/screenshots/components-hero--text-on-image-with-overlay.png +0 -0
  86. package/dist/static/img/screenshots/components-image--custom-aspect-ratio.png +0 -0
  87. package/dist/static/img/screenshots/components-image--preset-size.png +0 -0
  88. package/dist/static/img/screenshots/components-image--responsive-image.png +0 -0
  89. package/dist/static/img/screenshots/components-image-story--sticky-image-next-to-scrolling-text.png +0 -0
  90. package/dist/static/img/screenshots/components-image-text--above-layout.png +0 -0
  91. package/dist/static/img/screenshots/components-image-text--beside-right-layout.png +0 -0
  92. package/dist/static/img/screenshots/components-logos--centered-with-button.png +0 -0
  93. package/dist/static/img/screenshots/components-logos--left-aligned-with-text-link.png +0 -0
  94. package/dist/static/img/screenshots/components-logos--logo-row.png +0 -0
  95. package/dist/static/img/screenshots/components-logos--logo-wall.png +0 -0
  96. package/dist/static/img/screenshots/components-mosaic--colorful-text-with-illustrations.png +0 -0
  97. package/dist/static/img/screenshots/components-mosaic--colorful-tiles.png +0 -0
  98. package/dist/static/img/screenshots/components-stats--count-up-with-description.png +0 -0
  99. package/dist/static/img/screenshots/components-stats--count-up-with-icons.png +0 -0
  100. package/dist/static/img/screenshots/components-teaser-card--page-navigation.png +0 -0
  101. package/dist/static/img/screenshots/components-teaser-card--product-tiles.png +0 -0
  102. package/dist/static/img/screenshots/components-teaser-card--showcase-preview.png +0 -0
  103. package/dist/static/img/screenshots/components-testimonials--alternating-layout.png +0 -0
  104. package/dist/static/img/screenshots/components-testimonials--list-layout.png +0 -0
  105. package/dist/static/img/screenshots/components-testimonials--simple.png +0 -0
  106. package/dist/static/img/screenshots/components-testimonials--slider-layout.png +0 -0
  107. package/dist/static/img/screenshots/components-testimonials--with-rating.png +0 -0
  108. package/dist/static/img/screenshots/components-testimonials--with-title.png +0 -0
  109. package/dist/static/img/screenshots/components-text--centered.png +0 -0
  110. package/dist/static/img/screenshots/components-text--highlight.png +0 -0
  111. package/dist/static/img/screenshots/components-text--multi-column.png +0 -0
  112. package/dist/static/img/screenshots/components-text--single-column.png +0 -0
  113. package/dist/static/img/screenshots/components-video-curtain--atmospheric-video-with-overlay.png +0 -0
  114. package/dist/static/img/screenshots/components-video-curtain--color-neutral-text.png +0 -0
  115. package/dist/static/img/screenshots/components-video-curtain--color-neutral-video.png +0 -0
  116. package/dist/static/img/screenshots/form-checkbox--default.png +0 -0
  117. package/dist/static/img/screenshots/form-radio--default.png +0 -0
  118. package/dist/static/img/screenshots/form-select-field--default.png +0 -0
  119. package/dist/static/img/screenshots/form-text-area--default.png +0 -0
  120. package/dist/static/img/screenshots/form-text-field--default.png +0 -0
  121. package/dist/static/img/screenshots/layout-footer--footer.png +0 -0
  122. package/dist/static/img/screenshots/layout-header--header.png +0 -0
  123. package/dist/static/img/screenshots/layout-section--accent-background.png +0 -0
  124. package/dist/static/img/screenshots/layout-section--bold-background.png +0 -0
  125. package/dist/static/img/screenshots/layout-section--cards.png +0 -0
  126. package/dist/static/img/screenshots/layout-section--colorful-gradient.png +0 -0
  127. package/dist/static/img/screenshots/layout-section--flex-layout.png +0 -0
  128. package/dist/static/img/screenshots/layout-section--inverted.png +0 -0
  129. package/dist/static/img/screenshots/layout-section--list-layout.png +0 -0
  130. package/dist/static/img/screenshots/layout-section--slider.png +0 -0
  131. package/dist/static/img/screenshots/layout-section--spotlight.png +0 -0
  132. package/dist/static/img/screenshots/layout-section--stagelights.png +0 -0
  133. package/dist/static/img/screenshots/layout-section--tile-layout.png +0 -0
  134. package/dist/static/img/screenshots/layout-section--with-buttons.png +0 -0
  135. package/dist/static/img/screenshots/layout-slider--with-arrows.png +0 -0
  136. package/dist/static/img/screenshots/layout-slider--with-autoplay.png +0 -0
  137. package/dist/static/img/screenshots/layout-slider--with-nav.png +0 -0
  138. package/dist/static/img/screenshots/layout-slider--with-teased-neighbours.png +0 -0
  139. package/dist/static/img/screenshots/pages-archetypes--blog-overview.png +0 -0
  140. package/dist/static/img/screenshots/pages-archetypes--blog-post.png +0 -0
  141. package/dist/static/img/screenshots/pages-archetypes--content.png +0 -0
  142. package/dist/static/img/screenshots/pages-archetypes--overview.png +0 -0
  143. package/dist/static/img/screenshots/pages-archetypes--start.png +0 -0
  144. package/dist/tokens/themes.css +4 -4
  145. package/dist/tokens/tokens.css +1 -1
  146. package/dist/tokens/tokens.js +1 -1
  147. package/package.json +18 -18
  148. /package/dist/{BlogPostProps-e1cbd5d3.d.ts → BlogPostProps-0910f130.d.ts} +0 -0
  149. /package/dist/{ImageStoryProps-03ff6d21.d.ts → ImageStoryProps-24e0335c.d.ts} +0 -0
@@ -14,7 +14,7 @@ import '../section/js/Section.client.js';
14
14
  import '@kickstartds/core/lib/component';
15
15
  import '@kickstartds/base/lib/teaser-box';
16
16
  import '@kickstartds/core/lib/container';
17
- import 'react-markdown';
17
+ import 'markdown-to-jsx';
18
18
  import '@kickstartds/base/lib/headline';
19
19
  import '@kickstartds/base/lib/button-group';
20
20
 
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes, FC, PropsWithChildren } from "react";
3
- import { SectionProps } from "../../SectionProps-83d399b4.js";
3
+ import { SectionProps } from "../../SectionProps-93230a76.js";
4
4
  declare const Section: import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  declare const SectionProvider: FC<PropsWithChildren<any>>;
6
6
  export { Section, SectionProvider };
@@ -1383,7 +1383,14 @@
1383
1383
  "type": "string"
1384
1384
  },
1385
1385
  "typeProp": {
1386
- "const": "slider"
1386
+ "title": "Type",
1387
+ "description": "Type of the movement",
1388
+ "type": "string",
1389
+ "enum": [
1390
+ "slider",
1391
+ "carousel"
1392
+ ],
1393
+ "default": "carousel"
1387
1394
  }
1388
1395
  },
1389
1396
  "additionalProperties": false
@@ -1,4 +1,5 @@
1
- import { FC, PropsWithChildren } from "react";
1
+ /// <reference types="react" />
2
+ import { HTMLAttributes } from "react";
2
3
  import { SliderProps } from "../../SliderProps-8cae490d.js";
3
- declare const Slider: FC<PropsWithChildren<SliderProps>>;
4
+ declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
4
5
  export { Slider };
@@ -1,7 +1,8 @@
1
1
  import "./slider.css";
2
2
  import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
3
4
  import { Slider as Slider$1 } from '@kickstartds/content/lib/slider';
4
5
 
5
- const Slider = ({ gap, type, autoplay, arrows, teaseNeighbours, equalHeight, children, ...props }) => (jsx(Slider$1, { gap: gap, type: type, arrows: arrows, autoplay: autoplay, teaseNeighbours: teaseNeighbours, equalHeight: equalHeight, ...props, children: children }));
6
+ const Slider = forwardRef(({ gap, type, autoplay, arrows, teaseNeighbours, equalHeight, children, ...props }, ref) => (jsx(Slider$1, { gap: gap, type: type, arrows: arrows, autoplay: autoplay, teaseNeighbours: teaseNeighbours, equalHeight: equalHeight, ...props, ref: ref, children: children })));
6
7
 
7
8
  export { Slider };
@@ -51,7 +51,14 @@
51
51
  "type": "string"
52
52
  },
53
53
  "typeProp": {
54
- "const": "slider"
54
+ "title": "Type",
55
+ "description": "Type of the movement",
56
+ "type": "string",
57
+ "enum": [
58
+ "slider",
59
+ "carousel"
60
+ ],
61
+ "default": "carousel"
55
62
  }
56
63
  },
57
64
  "additionalProperties": false
@@ -10,5 +10,6 @@ const Stat = forwardRef((props, ref) => {
10
10
  const Component = useContext(StatContext);
11
11
  return jsx(Component, { ...props, ref: ref });
12
12
  });
13
+ Stat.displayName = "Stat";
13
14
 
14
15
  export { Stat, StatContext, StatContextDefault };
@@ -1,4 +1,7 @@
1
- import { HTMLAttributes, FC } from "react";
1
+ /// <reference types="react" />
2
+ import { HTMLAttributes } from "react";
2
3
  import { StatsProps } from "../../StatsProps-bf5ef578.js";
3
- declare const Stats: FC<StatsProps & HTMLAttributes<HTMLElement>>;
4
- export { Stats };
4
+ declare const StatsContextDefault: import("react").ForwardRefExoticComponent<StatsProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
+ declare const StatsContext: import("react").Context<import("react").ForwardRefExoticComponent<StatsProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
+ declare const Stats: import("react").ForwardRefExoticComponent<StatsProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
+ export { StatsContextDefault, StatsContext, Stats };
@@ -1,11 +1,17 @@
1
1
  import "./stats.css";
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { createElement } from 'react';
3
+ import { forwardRef, createElement, createContext, useContext } from 'react';
4
4
  import { Stat } from '../stat/index.js';
5
5
  import '@kickstartds/content/lib/count-up';
6
6
 
7
- const Stats = ({ stat: stats = [], }) => {
8
- return (jsx("div", { className: "dsa-stats", children: stats.map((item, index) => (createElement(Stat, { ...item, key: index }))) }));
9
- };
7
+ const StatsContextDefault = forwardRef(({ stat: stats = [], ...rest }, ref) => {
8
+ return (jsx("div", { ...rest, ref: ref, className: "dsa-stats", children: stats.map((item, index) => (createElement(Stat, { ...item, key: index }))) }));
9
+ });
10
+ const StatsContext = createContext(StatsContextDefault);
11
+ const Stats = forwardRef((props, ref) => {
12
+ const Component = useContext(StatsContext);
13
+ return jsx(Component, { ...props, ref: ref });
14
+ });
15
+ Stats.displayName = "Stats";
10
16
 
11
- export { Stats };
17
+ export { Stats, StatsContext, StatsContextDefault };
@@ -14,12 +14,12 @@ const TeaserCardContextDefault = forwardRef(({ headline, text, button, target, i
14
14
  target: target,
15
15
  icon: button?.chevron ? "chevron-right" : undefined,
16
16
  }, image: image, ref: ref }) })));
17
- TeaserCardContextDefault.displayName = "TeaserCard";
18
17
  const TeaserCardContext = createContext(TeaserCardContextDefault);
19
18
  const TeaserCard = forwardRef((props, ref) => {
20
19
  const Component = useContext(TeaserCardContext);
21
20
  return jsx(Component, { ...props, ref: ref });
22
21
  });
22
+ TeaserCard.displayName = "TeaserCard";
23
23
  const TeaserBoxProvider = (props) => (jsx(TeaserBoxContext.Provider, { ...props, value: TeaserCard }));
24
24
 
25
25
  export { TeaserBoxProvider, TeaserCard, TeaserCardContext, TeaserCardContextDefault };
@@ -8,5 +8,6 @@ const Testimonial = forwardRef((props, ref) => {
8
8
  const Component = useContext(TestimonialContext);
9
9
  return jsx(Component, { ...props, ref: ref });
10
10
  });
11
+ Testimonial.displayName = "Testimonial";
11
12
 
12
13
  export { Testimonial, TestimonialContext, TestimonialContextDefault };
@@ -1,9 +1,12 @@
1
- import { HTMLAttributes, FC, PropsWithChildren } from "react";
1
+ /// <reference types="react" />
2
+ import { HTMLAttributes } from "react";
2
3
  import { TestimonialsProps } from "../../TestimonialsProps-f7211553.js";
3
4
  import { SliderProps } from "../../SliderProps-8cae490d.js";
4
5
  interface ConditionalSliderProps extends SliderProps {
5
6
  layout: "slider" | "list" | "alternating";
6
7
  }
7
- declare const ConditionalSlider: FC<PropsWithChildren<ConditionalSliderProps>>;
8
- declare const Testimonials: FC<TestimonialsProps & HTMLAttributes<HTMLElement>>;
9
- export { ConditionalSlider, Testimonials };
8
+ declare const ConditionalSlider: import("react").ForwardRefExoticComponent<ConditionalSliderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
9
+ declare const TestimonialsContextDefault: import("react").ForwardRefExoticComponent<TestimonialsProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
10
+ declare const TestimonialsContext: import("react").Context<import("react").ForwardRefExoticComponent<TestimonialsProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
11
+ declare const Testimonials: import("react").ForwardRefExoticComponent<TestimonialsProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
12
+ export { ConditionalSlider, TestimonialsContextDefault, TestimonialsContext, Testimonials };
@@ -1,21 +1,27 @@
1
1
  import "./testimonials.css";
2
- import { createElement } from 'react';
2
+ import { forwardRef, createElement, createContext, useContext } from 'react';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { Slider } from '../slider/index.js';
5
5
  import { Testimonial } from '../testimonial/index.js';
6
6
  import '@kickstartds/content/lib/slider';
7
7
  import '@kickstartds/content/lib/quote';
8
8
 
9
- const ConditionalSlider = ({ layout, children, arrows, nav, ...props }) => {
9
+ const ConditionalSlider = forwardRef(({ layout, children, arrows, nav, ...props }, ref) => {
10
10
  if (layout === "slider") {
11
- return (jsx(Slider, { className: "dsa-testimonials dsa-testimonials--slider", arrows: arrows, nav: nav, ...props, children: children }));
11
+ return (jsx(Slider, { className: "dsa-testimonials dsa-testimonials--slider", arrows: arrows, nav: nav, ...props, ref: ref, children: children }));
12
12
  }
13
13
  else {
14
- return (jsx("div", { className: "dsa-testimonials dsa-testimonials--list", ...props, children: children }));
14
+ return (jsx("div", { className: "dsa-testimonials dsa-testimonials--list", ...props, ref: ref, children: children }));
15
15
  }
16
- };
17
- const Testimonials = ({ testimonial = [], layout = "slider", ...props }) => {
18
- return (jsx(ConditionalSlider, { layout: layout, arrows: true, nav: true, ...props, children: testimonial.map((testimonial, index) => (createElement(Testimonial, { ...testimonial, index: index, layout: layout, key: index }))) }));
19
- };
16
+ });
17
+ const TestimonialsContextDefault = forwardRef(({ testimonial: testimonials = [], layout = "slider", ...props }, ref) => {
18
+ return (jsx(ConditionalSlider, { layout: layout, arrows: true, nav: true, ...props, ref: ref, children: testimonials.map((testimonial, index) => (createElement(Testimonial, { ...testimonial, index: index, layout: layout, key: index }))) }));
19
+ });
20
+ const TestimonialsContext = createContext(TestimonialsContextDefault);
21
+ const Testimonials = forwardRef((props, ref) => {
22
+ const Component = useContext(TestimonialsContext);
23
+ return jsx(Component, { ...props, ref: ref });
24
+ });
25
+ Testimonials.displayName = "Testimonials";
20
26
 
21
- export { ConditionalSlider, Testimonials };
27
+ export { ConditionalSlider, Testimonials, TestimonialsContext, TestimonialsContextDefault };
@@ -15,5 +15,6 @@ const Text = forwardRef((props, ref) => {
15
15
  const Component = useContext(TextContext);
16
16
  return jsx(Component, { ...props, ref: ref });
17
17
  });
18
+ Text.displayName = "Text";
18
19
 
19
20
  export { Text, TextContext, TextContextDefault };
@@ -1,4 +1,7 @@
1
- import { FC } from "react";
1
+ /// <reference types="react" />
2
+ import { HTMLAttributes } from "react";
2
3
  import { VideoCurtainProps } from "../../VideoCurtainProps-6c625a69.js";
3
- declare const VideoCurtain: FC<VideoCurtainProps>;
4
- export { VideoCurtain };
4
+ declare const VideoCurtainContextDefault: import("react").ForwardRefExoticComponent<VideoCurtainProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
+ declare const VideoCurtainContext: import("react").Context<import("react").ForwardRefExoticComponent<VideoCurtainProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
+ declare const VideoCurtain: import("react").ForwardRefExoticComponent<VideoCurtainProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
+ export { VideoCurtainContextDefault, VideoCurtainContext, VideoCurtain };
@@ -1,20 +1,20 @@
1
1
  import "./video-curtain.css";
2
2
  import { jsx } from 'react/jsx-runtime';
3
+ import { forwardRef, createContext, useContext } from 'react';
3
4
  import { VisualContextDefault } from '@kickstartds/content/lib/visual';
4
5
  import classnames from 'classnames';
5
6
  import { Container } from '@kickstartds/core/lib/container';
6
7
  import { ButtonContext } from '@kickstartds/base/lib/button';
7
8
  import { useButtonGroup } from '../button-group/index.js';
8
- import 'react';
9
9
  import '@kickstartds/base/lib/button-group';
10
10
 
11
- const VideoCurtain = ({ headline, sub, text, highlightText, colorNeutral, textPosition, overlay, video, buttons = [], }) => {
11
+ const VideoCurtainContextDefault = forwardRef(({ headline, sub, text, highlightText, colorNeutral, textPosition, overlay, video, buttons = [], ...rest }, ref) => {
12
12
  const ButtonGroup = useButtonGroup();
13
13
  return (jsx(ButtonContext.Provider
14
14
  // @ts-expect-error
15
15
  , {
16
16
  // @ts-expect-error
17
- value: ButtonGroup, children: jsx(Container, { name: "visual", children: jsx(VisualContextDefault, { skipButton: true, className: classnames(`dsa-video-curtain`, highlightText ? `dsa-video-curtain--highlight-text` : "", colorNeutral ? `dsa-video-curtain--color-neutral` : ""), height: "fullScreen", inbox: true, box: {
17
+ value: ButtonGroup, children: jsx(Container, { name: "visual", children: jsx(VisualContextDefault, { ...rest, ref: ref, skipButton: true, className: classnames(`dsa-video-curtain`, highlightText ? `dsa-video-curtain--highlight-text` : "", colorNeutral ? `dsa-video-curtain--color-neutral` : ""), height: "fullScreen", inbox: true, box: {
18
18
  background: "transparent",
19
19
  enabled: true,
20
20
  vertical: "center",
@@ -42,6 +42,12 @@ const VideoCurtain = ({ headline, sub, text, highlightText, colorNeutral, textPo
42
42
  srcDesktop: video.srcDesktop,
43
43
  },
44
44
  } }) }) }));
45
- };
45
+ });
46
+ const VideoCurtainContext = createContext(VideoCurtainContextDefault);
47
+ const VideoCurtain = forwardRef((props, ref) => {
48
+ const Component = useContext(VideoCurtainContext);
49
+ return jsx(Component, { ...props, ref: ref });
50
+ });
51
+ VideoCurtain.displayName = "VideoCurtain";
46
52
 
47
- export { VideoCurtain };
53
+ export { VideoCurtain, VideoCurtainContext, VideoCurtainContextDefault };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 12 Apr 2024 13:32:37 GMT
3
+ * Generated on Mon, 15 Apr 2024 18:01:49 GMT
4
4
  */
5
5
  :root [ks-theme=business] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2727,7 +2727,7 @@
2727
2727
  }
2728
2728
  /**
2729
2729
  * Do not edit directly
2730
- * Generated on Fri, 12 Apr 2024 13:32:41 GMT
2730
+ * Generated on Mon, 15 Apr 2024 18:01:53 GMT
2731
2731
  */
2732
2732
  :root [ks-theme=google] {
2733
2733
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -5458,7 +5458,7 @@
5458
5458
  }
5459
5459
  /**
5460
5460
  * Do not edit directly
5461
- * Generated on Fri, 12 Apr 2024 13:32:39 GMT
5461
+ * Generated on Mon, 15 Apr 2024 18:01:51 GMT
5462
5462
  */
5463
5463
  :root [ks-theme=ngo] {
5464
5464
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -8459,7 +8459,7 @@
8459
8459
  }
8460
8460
  /**
8461
8461
  * Do not edit directly
8462
- * Generated on Fri, 12 Apr 2024 13:32:44 GMT
8462
+ * Generated on Mon, 15 Apr 2024 18:01:55 GMT
8463
8463
  */
8464
8464
  :root [ks-theme=telekom] {
8465
8465
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 12 Apr 2024 13:32:34 GMT
3
+ * Generated on Mon, 15 Apr 2024 18:01:47 GMT
4
4
  */
5
5
 
6
6
  :root, [ks-theme] {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 12 Apr 2024 13:32:34 GMT
3
+ * Generated on Mon, 15 Apr 2024 18:01:47 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#230a2b";