@kickstartds/ds-agency-premium 1.6.68--canary.45.1713.0 → 1.6.68--canary.45.1719.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 (54) hide show
  1. package/dist/{BlogOverviewProps-d62a0a9a.d.ts → BlogOverviewProps-9f207f1c.d.ts} +2 -2
  2. package/dist/{BlogPostProps-c760fd2a.d.ts → BlogPostProps-6b3cff22.d.ts} +1 -1
  3. package/dist/{EventListAppointmentProps-eee8b4ec.d.ts → EventAppointmentProps-443cd1ce.d.ts} +2 -2
  4. package/dist/{EventDetailProps-52321b9e.d.ts → EventDetailProps-42a7eebe.d.ts} +2 -2
  5. package/dist/{EventTeaserProps-e00ea659.d.ts → EventLatestTeaserProps-fc9d3281.d.ts} +2 -2
  6. package/dist/{EventListLocationProps-f9d48acc.d.ts → EventLocationProps-dd4aeaa9.d.ts} +4 -4
  7. package/dist/PageProps-aa29c554.d.ts +1 -1
  8. package/dist/{SectionProps-00ddee3a.d.ts → SectionProps-7caa223c.d.ts} +1 -1
  9. package/dist/components/blog-overview/index.d.ts +1 -1
  10. package/dist/components/blog-post/index.d.ts +1 -1
  11. package/dist/components/blog-teaser/index.d.ts +1 -1
  12. package/dist/components/{event-list-appointment/event-list-appointment.css → event-appointment/event-appointment.css} +9 -9
  13. package/dist/components/{event-list-appointment/event-list-appointment.schema.dereffed.json → event-appointment/event-appointment.schema.dereffed.json} +3 -3
  14. package/dist/components/{event-list-appointment/event-list-appointment.schema.json → event-appointment/event-appointment.schema.json} +2 -2
  15. package/dist/components/event-appointment/index.d.ts +7 -0
  16. package/dist/components/event-appointment/index.js +14 -0
  17. package/dist/components/event-detail/event-detail.schema.dereffed.json +6 -6
  18. package/dist/components/event-detail/event-detail.schema.json +1 -1
  19. package/dist/components/event-detail/index.d.ts +1 -1
  20. package/dist/components/event-detail/index.js +3 -3
  21. package/dist/components/event-latest/event-latest.css +5 -0
  22. package/dist/components/event-latest/event-latest.schema.dereffed.json +3 -50
  23. package/dist/components/event-latest/event-latest.schema.json +2 -38
  24. package/dist/components/event-latest/index.d.ts +3 -29
  25. package/dist/components/event-latest/index.js +7 -3
  26. package/dist/components/event-latest-teaser/event-latest-teaser.css +128 -0
  27. package/dist/components/{event-teaser/event-teaser.schema.dereffed.json → event-latest-teaser/event-latest-teaser.schema.dereffed.json} +3 -3
  28. package/dist/components/{event-teaser/event-teaser.schema.json → event-latest-teaser/event-latest-teaser.schema.json} +2 -2
  29. package/dist/components/event-latest-teaser/index.d.ts +8 -0
  30. package/dist/components/event-latest-teaser/index.js +18 -0
  31. package/dist/components/{event-list-location/event-list-location.css → event-location/event-location.css} +16 -16
  32. package/dist/components/{event-list-location/event-list-location.schema.dereffed.json → event-location/event-location.schema.dereffed.json} +6 -6
  33. package/dist/components/{event-list-location/event-list-location.schema.json → event-location/event-location.schema.json} +3 -3
  34. package/dist/components/event-location/index.d.ts +7 -0
  35. package/dist/components/event-location/index.js +16 -0
  36. package/dist/components/image-story/index.d.ts +1 -1
  37. package/dist/components/index/index.d.ts +3 -3
  38. package/dist/components/page-wrapper/tokens.css +1 -1
  39. package/dist/components/presets.json +83 -75
  40. package/dist/components/section/index.d.ts +1 -1
  41. package/dist/global.css +1 -1
  42. package/dist/tokens/themes.css +4 -4
  43. package/dist/tokens/tokens.css +1 -1
  44. package/dist/tokens/tokens.js +1 -1
  45. package/package.json +1 -1
  46. package/dist/components/event-list-appointment/index.d.ts +0 -7
  47. package/dist/components/event-list-appointment/index.js +0 -14
  48. package/dist/components/event-list-location/index.d.ts +0 -7
  49. package/dist/components/event-list-location/index.js +0 -16
  50. package/dist/components/event-teaser/event-teaser.css +0 -82
  51. package/dist/components/event-teaser/index.d.ts +0 -8
  52. package/dist/components/event-teaser/index.js +0 -17
  53. /package/dist/{BlogTeaserProps-d62a0a9a.d.ts → BlogTeaserProps-f5855e93.d.ts} +0 -0
  54. /package/dist/{ImageStoryProps-00ddee3a.d.ts → ImageStoryProps-e853e1e7.d.ts} +0 -0
@@ -3,8 +3,8 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
- import { SectionProps } from "./SectionProps-00ddee3a.js";
7
- import { BlogTeaserProps } from "./BlogTeaserProps-d62a0a9a.js";
6
+ import { SectionProps } from "./SectionProps-7caa223c.js";
7
+ import { BlogTeaserProps } from "./BlogTeaserProps-f5855e93.js";
8
8
  import { CtaProps } from "./CtaProps-babe4ee6.js";
9
9
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
10
10
  /**
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { BlogHeadProps } from "./BlogHeadProps-c04a5ed8.js";
7
7
  import { BlogAsideProps } from "./BlogAsideProps-c760fd2a.js";
8
- import { SectionProps } from "./SectionProps-00ddee3a.js";
8
+ import { SectionProps } from "./SectionProps-7caa223c.js";
9
9
  import { CtaProps } from "./CtaProps-babe4ee6.js";
10
10
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
11
11
  /**
@@ -27,7 +27,7 @@ type OpenInNewTab = boolean;
27
27
  * Aria label for the link
28
28
  */
29
29
  type AriaLabel = string;
30
- interface EventListAppointmentProps {
30
+ interface EventAppointmentProps {
31
31
  date?: Date;
32
32
  time?: Time;
33
33
  label?: CTALabel;
@@ -35,4 +35,4 @@ interface EventListAppointmentProps {
35
35
  newTab?: OpenInNewTab;
36
36
  ariaLabel?: AriaLabel;
37
37
  }
38
- export { Date, Time, CTALabel, URL, OpenInNewTab, AriaLabel, EventListAppointmentProps };
38
+ export { Date, Time, CTALabel, URL, OpenInNewTab, AriaLabel, EventAppointmentProps };
@@ -3,7 +3,7 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
- import { EventListLocationProps } from "./EventListLocationProps-f9d48acc.js";
6
+ import { EventLocationProps } from "./EventLocationProps-dd4aeaa9.js";
7
7
  /**
8
8
  * Title of the event
9
9
  */
@@ -25,7 +25,7 @@ type Intro = string;
25
25
  /**
26
26
  * List of locations with attendable appointments
27
27
  */
28
- type Locations = EventListLocationProps[];
28
+ type Locations = EventLocationProps[];
29
29
  /**
30
30
  * Description of the event
31
31
  */
@@ -38,7 +38,7 @@ type ARIALabel = string;
38
38
  /**
39
39
  * Display an event teaser with date, title and location
40
40
  */
41
- interface EventTeaserProps {
41
+ interface EventLatestTeaserProps {
42
42
  date: Date;
43
43
  calendar?: Calendar;
44
44
  title: Headline;
@@ -55,4 +55,4 @@ interface Calendar {
55
55
  month?: Month;
56
56
  day?: Day;
57
57
  }
58
- export { Date, Month, Day, Headline, Location, URL, CallToAction, ARIALabel, EventTeaserProps, Calendar };
58
+ export { Date, Month, Day, Headline, Location, URL, CallToAction, ARIALabel, EventLatestTeaserProps, Calendar };
@@ -3,11 +3,11 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
- import { EventListAppointmentProps } from "./EventListAppointmentProps-eee8b4ec.js";
6
+ import { EventAppointmentProps } from "./EventAppointmentProps-443cd1ce.js";
7
7
  /**
8
8
  * List of dates of the event
9
9
  */
10
- type Dates = EventListAppointmentProps[];
10
+ type Dates = EventAppointmentProps[];
11
11
  /**
12
12
  * Name of the event location
13
13
  */
@@ -27,10 +27,10 @@ type Links = {
27
27
  */
28
28
  newTab?: boolean;
29
29
  }[];
30
- interface EventListLocationProps {
30
+ interface EventLocationProps {
31
31
  dates?: Dates;
32
32
  locationName?: LocationName;
33
33
  address?: Address;
34
34
  links?: Links;
35
35
  }
36
- export { Dates, LocationName, Address, Links, EventListLocationProps };
36
+ export { Dates, LocationName, Address, Links, EventLocationProps };
@@ -3,7 +3,7 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
- import { SectionProps } from "./SectionProps-00ddee3a.js";
6
+ import { SectionProps } from "./SectionProps-7caa223c.js";
7
7
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
8
8
  /**
9
9
  * Collection of sections (with their contents) to render on the page
@@ -10,7 +10,7 @@ import { FeaturesProps } from "./FeaturesProps-a9041d97.js";
10
10
  import { GalleryProps } from "./GalleryProps-76e7de44.js";
11
11
  import { HeroProps } from "./HeroProps-40f6c7f5.js";
12
12
  import { HtmlProps } from "./HtmlProps-9d091769.js";
13
- import { ImageStoryProps } from "./ImageStoryProps-00ddee3a.js";
13
+ import { ImageStoryProps } from "./ImageStoryProps-e853e1e7.js";
14
14
  import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
15
15
  import { LogosProps } from "./LogosProps-f9474fe2.js";
16
16
  import { MosaicProps } from "./MosaicProps-d52c7151.js";
@@ -1,4 +1,4 @@
1
- import { BlogOverviewProps } from "../../BlogOverviewProps-d62a0a9a.js";
1
+ import { BlogOverviewProps } from "../../BlogOverviewProps-9f207f1c.js";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  declare const BlogOverview: FC<PropsWithChildren<BlogOverviewProps>>;
4
4
  export type { BlogOverviewProps };
@@ -1,4 +1,4 @@
1
- import { BlogPostProps } from "../../BlogPostProps-c760fd2a.js";
1
+ import { BlogPostProps } from "../../BlogPostProps-6b3cff22.js";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  declare const BlogPost: FC<PropsWithChildren<BlogPostProps>>;
4
4
  export type { BlogPostProps };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- import { BlogTeaserProps } from "../../BlogTeaserProps-d62a0a9a.js";
3
+ import { BlogTeaserProps } from "../../BlogTeaserProps-f5855e93.js";
4
4
  declare const BlogTeaserContextDefault: import("react").ForwardRefExoticComponent<BlogTeaserProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  declare const BlogTeaserContext: import("react").Context<import("react").ForwardRefExoticComponent<BlogTeaserProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
6
  declare const BlogTeaser: import("react").ForwardRefExoticComponent<BlogTeaserProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
- .dsa-event-list-appointment {
1
+ .dsa-event-appointment {
2
2
  --g-link--color: var(--ks-text-color-interface-interactive);
3
3
  --g-link--color-hover: var(--ks-text-color-interface-interactive);
4
4
  --g-link--border-radius: var(--ks-border-radius-control);
@@ -13,22 +13,22 @@
13
13
  border: var(--ks-border-width-default) solid var(--ks-border-color-interface-interactive);
14
14
  flex-grow: 0;
15
15
  }
16
- .dsa-event-list-appointment:hover {
16
+ .dsa-event-appointment:hover {
17
17
  border-color: var(--ks-border-color-interface-interactive-hover);
18
18
  }
19
- .dsa-event-list-appointment__info {
19
+ .dsa-event-appointment__info {
20
20
  display: flex;
21
21
  gap: var(--ks-spacing-xxs);
22
22
  font: var(--ks-font-interface-s);
23
23
  text-decoration: none;
24
24
  align-items: center;
25
25
  }
26
- .dsa-event-list-appointment__infos {
26
+ .dsa-event-appointment__infos {
27
27
  flex-direction: column;
28
28
  display: flex;
29
29
  gap: var(--ks-spacing-stack-xs);
30
30
  }
31
- .dsa-event-list-appointment__label {
31
+ .dsa-event-appointment__label {
32
32
  display: flex;
33
33
  align-items: center;
34
34
  color: var(--dsa-link--color);
@@ -38,18 +38,18 @@
38
38
  transition: var(--ks-transition-hover);
39
39
  transition-property: color;
40
40
  }
41
- .dsa-event-list-appointment__label:hover {
41
+ .dsa-event-appointment__label:hover {
42
42
  color: var(--dsa-link--color_hover);
43
43
  }
44
- .dsa-event-list-appointment__label .icon {
44
+ .dsa-event-appointment__label .icon {
45
45
  width: 1.75em;
46
46
  height: 1.75em;
47
47
  }
48
- .dsa-event-list-appointment__icon {
48
+ .dsa-event-appointment__icon {
49
49
  color: var(--ks-text-color-primary);
50
50
  width: 1.75em;
51
51
  height: 1.75em;
52
52
  }
53
- .dsa-event-list-appointment .l-container--rich-text {
53
+ .dsa-event-appointment .l-container--rich-text {
54
54
  container-type: normal;
55
55
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.mydesignsystem.com/event-list-appointment.schema.json",
4
- "title": "Event List Appointment",
3
+ "$id": "http://schema.mydesignsystem.com/event-appointment.schema.json",
4
+ "title": "Event Appointment",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "date": {
@@ -49,7 +49,7 @@
49
49
  "default": "Event Appointment"
50
50
  },
51
51
  "type": {
52
- "const": "event-list-appointment"
52
+ "const": "event-appointment"
53
53
  }
54
54
  },
55
55
  "additionalProperties": false
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.mydesignsystem.com/event-list-appointment.schema.json",
4
- "title": "Event List Appointment",
3
+ "$id": "http://schema.mydesignsystem.com/event-appointment.schema.json",
4
+ "title": "Event Appointment",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "date": {
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { EventAppointmentProps } from "../../EventAppointmentProps-443cd1ce.js";
3
+ declare const EventAppointmentContextDefault: import("react").ForwardRefExoticComponent<EventAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>;
4
+ declare const EventAppointmentContext: import("react").Context<import("react").ForwardRefExoticComponent<EventAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>>;
5
+ declare const EventAppointment: import("react").ForwardRefExoticComponent<EventAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>;
6
+ export type { EventAppointmentProps };
7
+ export { EventAppointmentContextDefault, EventAppointmentContext, EventAppointment };
@@ -0,0 +1,14 @@
1
+ import "./event-appointment.css";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { forwardRef, createContext, useContext } from 'react';
4
+ import { Icon } from '@kickstartds/base/lib/icon';
5
+
6
+ const EventAppointmentContextDefault = forwardRef(({ date, time, label, url, newTab, ariaLabel }, ref) => (jsxs("a", { className: "dsa-event-appointment", target: newTab ? "_blank" : "_self", "aria-label": ariaLabel, href: url, ref: ref, children: [jsxs("span", { className: "dsa-event-appointment__infos", children: [date && (jsxs("span", { className: "dsa-event-appointment__info", children: [jsx(Icon, { className: "dsa-event-appointment__icon", "aria-hidden": true, icon: "date" }), date] })), time && (jsxs("span", { className: "dsa-event-appointment__info", children: [jsx(Icon, { className: "dsa-event-appointment__icon", "aria-hidden": true, icon: "time" }), time] }))] }), jsxs("span", { className: "dsa-event-appointment__label", children: [label, jsx(Icon, { icon: "chevron-right" })] })] })));
7
+ const EventAppointmentContext = createContext(EventAppointmentContextDefault);
8
+ const EventAppointment = forwardRef((props, ref) => {
9
+ const Component = useContext(EventAppointmentContext);
10
+ return jsx(Component, { ...props, ref: ref });
11
+ });
12
+ EventAppointment.displayName = "EventAppointment";
13
+
14
+ export { EventAppointment, EventAppointmentContext, EventAppointmentContextDefault };
@@ -41,8 +41,8 @@
41
41
  "type": "array",
42
42
  "items": {
43
43
  "$schema": "http://json-schema.org/draft-07/schema#",
44
- "$id": "http://schema.mydesignsystem.com/event-list-location.schema.json",
45
- "title": "Event List Location",
44
+ "$id": "http://schema.mydesignsystem.com/event-location.schema.json",
45
+ "title": "Event Location",
46
46
  "type": "object",
47
47
  "properties": {
48
48
  "dates": {
@@ -51,8 +51,8 @@
51
51
  "type": "array",
52
52
  "items": {
53
53
  "$schema": "http://json-schema.org/draft-07/schema#",
54
- "$id": "http://schema.mydesignsystem.com/event-list-appointment.schema.json",
55
- "title": "Event List Appointment",
54
+ "$id": "http://schema.mydesignsystem.com/event-appointment.schema.json",
55
+ "title": "Event Appointment",
56
56
  "type": "object",
57
57
  "properties": {
58
58
  "date": {
@@ -100,7 +100,7 @@
100
100
  "default": "Event Appointment"
101
101
  },
102
102
  "type": {
103
- "const": "event-list-appointment"
103
+ "const": "event-appointment"
104
104
  }
105
105
  },
106
106
  "additionalProperties": false
@@ -150,7 +150,7 @@
150
150
  }
151
151
  },
152
152
  "type": {
153
- "const": "event-list-location"
153
+ "const": "event-location"
154
154
  }
155
155
  },
156
156
  "additionalProperties": false
@@ -35,7 +35,7 @@
35
35
  "description": "List of locations with attendable appointments",
36
36
  "type": "array",
37
37
  "items": {
38
- "$ref": "http://schema.mydesignsystem.com/event-list-location.schema.json"
38
+ "$ref": "http://schema.mydesignsystem.com/event-location.schema.json"
39
39
  }
40
40
  },
41
41
  "downloads": {
@@ -1,5 +1,5 @@
1
1
  import { FC, PropsWithChildren } from "react";
2
- import { EventDetailProps } from "../../EventDetailProps-52321b9e.js";
2
+ import { EventDetailProps } from "../../EventDetailProps-42a7eebe.js";
3
3
  declare const EventDetail: FC<PropsWithChildren<EventDetailProps>>;
4
4
  export type { EventDetailProps };
5
5
  export { EventDetail };
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { RichText } from '@kickstartds/base/lib/rich-text';
3
- import { EventListLocation } from '../event-list-location/index.js';
3
+ import { EventLocation } from '../event-location/index.js';
4
4
  import { Section } from '../section/index.js';
5
5
  import { EventHeader } from '../event-header/index.js';
6
6
  import { Gallery } from '../gallery/index.js';
@@ -8,7 +8,7 @@ import { Downloads } from '../downloads/index.js';
8
8
  import { Headline } from '../headline/index.js';
9
9
  import 'react';
10
10
  import '@kickstartds/base/lib/icon';
11
- import '../event-list-appointment/index.js';
11
+ import '../event-appointment/index.js';
12
12
  import 'classnames';
13
13
  import '@kickstartds/core/lib/react';
14
14
  import '@kickstartds/base/lib/section';
@@ -21,7 +21,7 @@ import '@kickstartds/base/lib/picture';
21
21
  import 'markdown-to-jsx';
22
22
  import '@kickstartds/base/lib/headline';
23
23
 
24
- const EventDetail = ({ title, categories, locations, description, intro, images, downloads, }) => (jsxs(Fragment, { children: [jsx(Section, { width: "narrow", spaceAfter: "none", children: jsx(EventHeader, { title: title, categories: categories, intro: intro }) }), locations && locations.length > 0 && (jsxs(Section, { width: "narrow", content: { mode: "list", gutter: "none" }, children: [jsx(Headline, { text: "Locations", level: "h3", style: "h3", className: "dsa-event__locations-headline" }), locations.map((appointment, index) => (jsx(EventListLocation, { ...appointment }, index)))] })), description && (jsx(Section, { width: "narrow", spaceBefore: "none", children: jsx(RichText, { className: "dsa-event__description", text: description }) })), jsx(Section, { spaceBefore: "none", children: jsx(Gallery, { images: images, aspectRatio: "wide", layout: "smallTiles", lightbox: true }) }), downloads && downloads.length > 0 && (jsxs(Section, { width: "narrow", spaceBefore: "none", content: {
24
+ const EventDetail = ({ title, categories, locations, description, intro, images, downloads, }) => (jsxs(Fragment, { children: [jsx(Section, { width: "narrow", spaceAfter: "none", children: jsx(EventHeader, { title: title, categories: categories, intro: intro }) }), locations && locations.length > 0 && (jsxs(Section, { width: "narrow", content: { mode: "list", gutter: "none" }, children: [jsx(Headline, { text: "Locations", level: "h3", style: "h3", className: "dsa-event__locations-headline" }), locations.map((appointment, index) => (jsx(EventLocation, { ...appointment }, index)))] })), description && (jsx(Section, { width: "narrow", spaceBefore: "none", children: jsx(RichText, { className: "dsa-event__description", text: description }) })), jsx(Section, { spaceBefore: "none", children: jsx(Gallery, { images: images, aspectRatio: "wide", layout: "smallTiles", lightbox: true }) }), downloads && downloads.length > 0 && (jsxs(Section, { width: "narrow", spaceBefore: "none", content: {
25
25
  mode: "list",
26
26
  gutter: "none",
27
27
  }, spaceAfter: "none", children: [jsx(Headline, { text: "Downloads", level: "h3", style: "h3" }), jsx(Downloads, { downloads: downloads })] })), jsx(Section, { width: "narrow", buttons: [
@@ -0,0 +1,5 @@
1
+ .dsa-event-latest {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: var(--ks-spacing-stack-s);
5
+ }
@@ -5,32 +5,14 @@
5
5
  "description": "Display a list of latest events, ordered chronologically",
6
6
  "type": "object",
7
7
  "properties": {
8
- "headline": {
9
- "title": "Headline",
10
- "description": "Headline for the listing",
11
- "type": "string",
12
- "format": "markdown",
13
- "examples": [
14
- "Latest Events"
15
- ]
16
- },
17
- "text": {
18
- "title": "Text",
19
- "description": "Additional text shown below the headline",
20
- "type": "string",
21
- "format": "markdown",
22
- "examples": [
23
- "Our next upcoming events"
24
- ]
25
- },
26
8
  "events": {
27
9
  "title": "Events",
28
10
  "description": "List of events to display",
29
11
  "type": "array",
30
12
  "items": {
31
13
  "$schema": "http://json-schema.org/draft-07/schema#",
32
- "$id": "http://schema.mydesignsystem.com/event-teaser.schema.json",
33
- "title": "Event Teaser",
14
+ "$id": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json",
15
+ "title": "Event Latest Teaser",
34
16
  "description": "Display an event teaser with date, title and location",
35
17
  "type": "object",
36
18
  "properties": {
@@ -114,7 +96,7 @@
114
96
  "type": "string"
115
97
  },
116
98
  "type": {
117
- "const": "event-teaser"
99
+ "const": "event-latest-teaser"
118
100
  }
119
101
  },
120
102
  "additionalProperties": false,
@@ -148,35 +130,6 @@
148
130
  ]
149
131
  ]
150
132
  },
151
- "link": {
152
- "type": "object",
153
- "title": "Link",
154
- "description": "Link shown below the listing",
155
- "properties": {
156
- "url": {
157
- "title": "URL",
158
- "description": "The to link",
159
- "type": "string",
160
- "format": "uri",
161
- "examples": [
162
- "https://example.com"
163
- ]
164
- },
165
- "text": {
166
- "title": "Text",
167
- "description": "The text for the link",
168
- "type": "string",
169
- "default": "Show all events",
170
- "examples": [
171
- "Show all events"
172
- ]
173
- }
174
- },
175
- "additionalProperties": false,
176
- "required": [
177
- "url"
178
- ]
179
- },
180
133
  "className": {
181
134
  "type": "string"
182
135
  },
@@ -5,26 +5,12 @@
5
5
  "description": "Display a list of latest events, ordered chronologically",
6
6
  "type": "object",
7
7
  "properties": {
8
- "headline": {
9
- "title": "Headline",
10
- "description": "Headline for the listing",
11
- "type": "string",
12
- "format": "markdown",
13
- "examples": ["Latest Events"]
14
- },
15
- "text": {
16
- "title": "Text",
17
- "description": "Additional text shown below the headline",
18
- "type": "string",
19
- "format": "markdown",
20
- "examples": ["Our next upcoming events"]
21
- },
22
8
  "events": {
23
9
  "title": "Events",
24
10
  "description": "List of events to display",
25
11
  "type": "array",
26
12
  "items": {
27
- "$ref": "http://schema.mydesignsystem.com/event-teaser.schema.json"
13
+ "$ref": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json"
28
14
  },
29
15
  "minItems": 1,
30
16
  "examples": [
@@ -50,29 +36,7 @@
50
36
  ]
51
37
  ]
52
38
  },
53
- "link": {
54
- "type": "object",
55
- "title": "Link",
56
- "description": "Link shown below the listing",
57
- "properties": {
58
- "url": {
59
- "title": "URL",
60
- "description": "The to link",
61
- "type": "string",
62
- "format": "uri",
63
- "examples": ["https://example.com"]
64
- },
65
- "text": {
66
- "title": "Text",
67
- "description": "The text for the link",
68
- "type": "string",
69
- "default": "Show all events",
70
- "examples": ["Show all events"]
71
- }
72
- },
73
- "additionalProperties": false,
74
- "required": ["url"]
75
- },
39
+
76
40
  "className": {
77
41
  "type": "string"
78
42
  }
@@ -6,49 +6,23 @@ import { HTMLAttributes } from "react";
6
6
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
7
  * and run json-schema-to-typescript to regenerate this file.
8
8
  */
9
- import { EventTeaserProps } from "../../EventTeaserProps-e00ea659.js";
10
- /**
11
- * Headline for the listing
12
- */
13
- type Headline = string;
14
- /**
15
- * Additional text shown below the headline
16
- */
17
- type Text = string;
9
+ import { EventLatestTeaserProps } from "../../EventLatestTeaserProps-fc9d3281.js";
18
10
  /**
19
11
  * List of events to display
20
12
  *
21
13
  * @minItems 1
22
14
  */
23
15
  type Events = [
24
- EventTeaserProps,
25
- ...EventTeaserProps[]
16
+ EventLatestTeaserProps,
17
+ ...EventLatestTeaserProps[]
26
18
  ];
27
- /**
28
- * The to link
29
- */
30
- type URL = string;
31
- /**
32
- * The text for the link
33
- */
34
- type Text1 = string;
35
19
  /**
36
20
  * Display a list of latest events, ordered chronologically
37
21
  */
38
22
  interface EventLatestProps {
39
- headline?: Headline;
40
- text?: Text;
41
23
  events?: Events;
42
- link?: Link;
43
24
  className?: string;
44
25
  }
45
- /**
46
- * Link shown below the listing
47
- */
48
- interface Link {
49
- url: URL;
50
- text?: Text1;
51
- }
52
26
  declare const EventLatestContextDefault: import("react").ForwardRefExoticComponent<EventLatestProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
53
27
  declare const EventLatestContext: import("react").Context<import("react").ForwardRefExoticComponent<EventLatestProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
54
28
  declare const EventLatest: import("react").ForwardRefExoticComponent<EventLatestProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,9 +1,13 @@
1
+ import "./event-latest.css";
1
2
  import { jsx } from 'react/jsx-runtime';
2
- import classnames from 'classnames';
3
3
  import { forwardRef, createContext, useContext } from 'react';
4
+ import { EventLatestTeaser } from '../event-latest-teaser/index.js';
5
+ import 'classnames';
6
+ import '@kickstartds/base/lib/icon';
7
+ import '@kickstartds/core/lib/container';
4
8
 
5
- const EventLatestContextDefault = forwardRef(({ headline, text, link, events, className, ...rest }, ref) => {
6
- return (jsx("div", { className: classnames(className, "dsa-event-latest"), ...rest, ref: ref, children: JSON.stringify({ headline, text, link, events, rest }) }));
9
+ const EventLatestContextDefault = forwardRef(({ events }, ref) => {
10
+ return (jsx("div", { className: "dsa-event-latest", ref: ref, children: events.map((event, index) => (jsx(EventLatestTeaser, { ...event }, index))) }));
7
11
  });
8
12
  const EventLatestContext = createContext(EventLatestContextDefault);
9
13
  const EventLatest = forwardRef((props, ref) => {