@kickstartds/ds-agency-premium 1.6.68--canary.45.1711.0 → 1.6.68--canary.45.1716.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 (127) hide show
  1. package/dist/{BlogAsideProps-d9decb7c.d.ts → BlogAsideProps-c760fd2a.d.ts} +5 -5
  2. package/dist/{BlogAuthorProps-9320ef58.d.ts → BlogAuthorProps-fb0241df.d.ts} +1 -1
  3. package/dist/BlogOverviewProps-9f207f1c.d.ts +2 -2
  4. package/dist/{BlogPostProps-c04a5ed8.d.ts → BlogPostProps-6b3cff22.d.ts} +2 -2
  5. package/dist/{ButtonProps-03ff6d21.d.ts → ButtonProps-00ddee3a.d.ts} +4 -4
  6. package/dist/{CtaProps-8a0dba0d.d.ts → CtaProps-babe4ee6.d.ts} +4 -4
  7. package/dist/{EventListAppointmentProps-da54c3b9.d.ts → EventAppointmentProps-443cd1ce.d.ts} +4 -4
  8. package/dist/{EventDetailProps-19b81db8.d.ts → EventDetailProps-42a7eebe.d.ts} +5 -5
  9. package/dist/{EventTeaserProps-e00ea659.d.ts → EventLatestTeaserProps-fc9d3281.d.ts} +2 -2
  10. package/dist/{EventListLocationProps-d4345e0e.d.ts → EventLocationProps-dd4aeaa9.d.ts} +5 -5
  11. package/dist/{FeaturesProps-7ef528ec.d.ts → FeaturesProps-a9041d97.d.ts} +4 -4
  12. package/dist/{FooterProps-171a3067.d.ts → FooterProps-a0a104ca.d.ts} +2 -2
  13. package/dist/{HeaderProps-e22382f1.d.ts → HeaderProps-72763967.d.ts} +2 -2
  14. package/dist/{HeroProps-aa4e6431.d.ts → HeroProps-40f6c7f5.d.ts} +4 -4
  15. package/dist/ImageStoryProps-e853e1e7.d.ts +1 -1
  16. package/dist/MosaicProps-d52c7151.d.ts +4 -4
  17. package/dist/SectionProps-7caa223c.d.ts +7 -7
  18. package/dist/{SliderProps-8a0dba0d.d.ts → SliderProps-babe4ee6.d.ts} +4 -4
  19. package/dist/{TeaserCardProps-b9c28e78.d.ts → TeaserCardProps-994cb119.d.ts} +4 -4
  20. package/dist/{VideoCurtainProps-88f08b62.d.ts → VideoCurtainProps-a2c0cc7f.d.ts} +4 -4
  21. package/dist/components/blog-aside/blog-aside.schema.dereffed.json +7 -7
  22. package/dist/components/blog-aside/blog-aside.schema.json +4 -4
  23. package/dist/components/blog-aside/index.d.ts +1 -1
  24. package/dist/components/blog-aside/index.js +1 -1
  25. package/dist/components/blog-author/blog-author.schema.dereffed.json +3 -3
  26. package/dist/components/blog-author/index.d.ts +1 -1
  27. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +41 -41
  28. package/dist/components/blog-post/blog-post.schema.dereffed.json +48 -48
  29. package/dist/components/blog-post/index.d.ts +1 -1
  30. package/dist/components/blog-teaser/index.d.ts +1 -1
  31. package/dist/components/blog-teaser/index.js +5 -7
  32. package/dist/components/button/button.schema.dereffed.json +3 -3
  33. package/dist/components/button/button.schema.json +3 -3
  34. package/dist/components/button/index.d.ts +1 -1
  35. package/dist/components/button/index.js +1 -1
  36. package/dist/components/button-group/button-group.schema.dereffed.json +3 -3
  37. package/dist/components/button-group/index.d.ts +1 -1
  38. package/dist/components/contact/contact.schema.dereffed.json +3 -3
  39. package/dist/components/contact/contact.schema.json +3 -3
  40. package/dist/components/contact/index.d.ts +1 -1
  41. package/dist/components/contact/index.js +1 -1
  42. package/dist/components/cta/cta.schema.dereffed.json +3 -3
  43. package/dist/components/cta/cta.schema.json +2 -2
  44. package/dist/components/cta/index.d.ts +1 -1
  45. package/dist/components/{event-list-appointment/event-list-appointment.css → event-appointment/event-appointment.css} +9 -9
  46. package/dist/components/{event-list-appointment/event-list-appointment.schema.dereffed.json → event-appointment/event-appointment.schema.dereffed.json} +5 -5
  47. package/dist/components/{event-list-appointment/event-list-appointment.schema.json → event-appointment/event-appointment.schema.json} +4 -4
  48. package/dist/components/event-appointment/index.d.ts +7 -0
  49. package/dist/components/event-appointment/index.js +14 -0
  50. package/dist/components/event-detail/event-detail.schema.dereffed.json +12 -12
  51. package/dist/components/event-detail/event-detail.schema.json +3 -3
  52. package/dist/components/event-detail/index.d.ts +1 -1
  53. package/dist/components/event-detail/index.js +4 -4
  54. package/dist/components/event-latest/event-latest.schema.dereffed.json +3 -3
  55. package/dist/components/event-latest/event-latest.schema.json +1 -1
  56. package/dist/components/event-latest/index.d.ts +3 -3
  57. package/dist/components/{event-teaser/event-teaser.css → event-latest-teaser/event-latest-teaser.css} +13 -13
  58. package/dist/components/{event-teaser/event-teaser.schema.dereffed.json → event-latest-teaser/event-latest-teaser.schema.dereffed.json} +3 -3
  59. package/dist/components/{event-teaser/event-teaser.schema.json → event-latest-teaser/event-latest-teaser.schema.json} +2 -2
  60. package/dist/components/event-latest-teaser/index.d.ts +8 -0
  61. package/dist/components/event-latest-teaser/index.js +17 -0
  62. package/dist/components/{event-list-location/event-list-location.css → event-location/event-location.css} +15 -15
  63. package/dist/components/{event-list-location/event-list-location.schema.dereffed.json → event-location/event-location.schema.dereffed.json} +10 -10
  64. package/dist/components/{event-list-location/event-list-location.schema.json → event-location/event-location.schema.json} +5 -5
  65. package/dist/components/event-location/index.d.ts +7 -0
  66. package/dist/components/event-location/index.js +16 -0
  67. package/dist/components/feature/feature.schema.dereffed.json +3 -3
  68. package/dist/components/feature/feature.schema.json +3 -3
  69. package/dist/components/feature/index.d.ts +3 -3
  70. package/dist/components/feature/index.js +1 -1
  71. package/dist/components/features/features.schema.dereffed.json +3 -3
  72. package/dist/components/features/features.schema.json +2 -2
  73. package/dist/components/features/index.d.ts +1 -1
  74. package/dist/components/features/index.js +1 -1
  75. package/dist/components/footer/footer.schema.dereffed.json +12 -12
  76. package/dist/components/footer/index.d.ts +1 -1
  77. package/dist/components/footer/index.js +1 -1
  78. package/dist/components/header/header.schema.dereffed.json +12 -12
  79. package/dist/components/header/index.d.ts +1 -1
  80. package/dist/components/hero/hero.schema.dereffed.json +3 -3
  81. package/dist/components/hero/hero.schema.json +2 -2
  82. package/dist/components/hero/index.d.ts +1 -1
  83. package/dist/components/image-story/image-story.schema.dereffed.json +3 -3
  84. package/dist/components/index/index.d.ts +4 -4
  85. package/dist/components/logos/index.js +1 -1
  86. package/dist/components/mosaic/index.js +1 -1
  87. package/dist/components/mosaic/mosaic.schema.dereffed.json +3 -3
  88. package/dist/components/nav-dropdown/index.d.ts +1 -1
  89. package/dist/components/nav-dropdown/index.js +2 -2
  90. package/dist/components/nav-dropdown/nav-dropdown.schema.dereffed.json +1 -1
  91. package/dist/components/nav-flyout/index.d.ts +2 -2
  92. package/dist/components/nav-flyout/index.js +4 -4
  93. package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +12 -12
  94. package/dist/components/nav-main/index.d.ts +5 -5
  95. package/dist/components/nav-main/nav-main.schema.dereffed.json +15 -15
  96. package/dist/components/nav-main/nav-main.schema.json +14 -14
  97. package/dist/components/nav-topbar/index.d.ts +2 -2
  98. package/dist/components/nav-topbar/index.js +2 -2
  99. package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +12 -12
  100. package/dist/components/page/page.schema.dereffed.json +38 -38
  101. package/dist/components/page-wrapper/tokens.css +1 -1
  102. package/dist/components/presets.json +200 -198
  103. package/dist/components/section/section.schema.dereffed.json +38 -38
  104. package/dist/components/settings/settings.schema.dereffed.json +24 -24
  105. package/dist/components/slider/index.d.ts +1 -1
  106. package/dist/components/slider/slider.schema.dereffed.json +13 -13
  107. package/dist/components/teaser-card/index.d.ts +1 -1
  108. package/dist/components/teaser-card/index.js +2 -2
  109. package/dist/components/teaser-card/teaser-card.schema.dereffed.json +4 -4
  110. package/dist/components/teaser-card/teaser-card.schema.json +4 -4
  111. package/dist/components/testimonials/index.d.ts +1 -1
  112. package/dist/components/tile/tile.schema.dereffed.json +3 -3
  113. package/dist/components/tile/tile.schema.json +2 -2
  114. package/dist/components/video-curtain/index.d.ts +1 -1
  115. package/dist/components/video-curtain/video-curtain.schema.dereffed.json +3 -3
  116. package/dist/components/video-curtain/video-curtain.schema.json +2 -2
  117. package/dist/tokens/themes.css +4 -4
  118. package/dist/tokens/tokens.css +1 -1
  119. package/dist/tokens/tokens.js +1 -1
  120. package/package.json +1 -1
  121. package/dist/components/event-list-appointment/index.d.ts +0 -7
  122. package/dist/components/event-list-appointment/index.js +0 -14
  123. package/dist/components/event-list-location/index.d.ts +0 -7
  124. package/dist/components/event-list-location/index.js +0 -16
  125. package/dist/components/event-teaser/index.d.ts +0 -8
  126. package/dist/components/event-teaser/index.js +0 -17
  127. /package/dist/{BlogTeaserProps-d62a0a9a.d.ts → BlogTeaserProps-f5855e93.d.ts} +0 -0
@@ -60,10 +60,10 @@
60
60
  "title": "Icon",
61
61
  "description": "Choose an icon"
62
62
  },
63
- "target": {
63
+ "url": {
64
64
  "type": "string",
65
- "title": "Target",
66
- "description": "Target that should be linked, makes the button behave like a link semantically",
65
+ "title": "URL",
66
+ "description": "The URL to link to when the button is clicked",
67
67
  "format": "uri"
68
68
  }
69
69
  },
@@ -48,8 +48,8 @@
48
48
  "icon": {
49
49
  "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/icon"
50
50
  },
51
- "target": {
52
- "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/target"
51
+ "url": {
52
+ "$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/url"
53
53
  }
54
54
  }
55
55
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- import { CtaProps } from "../../CtaProps-8a0dba0d.js";
3
+ import { CtaProps } from "../../CtaProps-babe4ee6.js";
4
4
  declare const CtaContextDefault: import("react").ForwardRefExoticComponent<CtaProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  declare const CtaContext: import("react").Context<import("react").ForwardRefExoticComponent<CtaProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
6
  declare const Cta: import("react").ForwardRefExoticComponent<CtaProps & 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": {
@@ -29,8 +29,8 @@
29
29
  "Register"
30
30
  ]
31
31
  },
32
- "href": {
33
- "title": "Href",
32
+ "url": {
33
+ "title": "URL",
34
34
  "description": "URL for the call to action button",
35
35
  "type": "string",
36
36
  "format": "uri",
@@ -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": {
@@ -23,8 +23,8 @@
23
23
  "type": "string",
24
24
  "examples": ["Register"]
25
25
  },
26
- "href": {
27
- "title": "Href",
26
+ "url": {
27
+ "title": "URL",
28
28
  "description": "URL for the call to action button",
29
29
  "type": "string",
30
30
  "format": "uri",
@@ -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": {
@@ -80,8 +80,8 @@
80
80
  "Register"
81
81
  ]
82
82
  },
83
- "href": {
84
- "title": "Href",
83
+ "url": {
84
+ "title": "URL",
85
85
  "description": "URL for the call to action button",
86
86
  "type": "string",
87
87
  "format": "uri",
@@ -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
@@ -129,7 +129,7 @@
129
129
  "items": {
130
130
  "type": "object",
131
131
  "properties": {
132
- "href": {
132
+ "url": {
133
133
  "type": "string",
134
134
  "format": "uri"
135
135
  },
@@ -143,14 +143,14 @@
143
143
  }
144
144
  },
145
145
  "required": [
146
- "href",
146
+ "url",
147
147
  "label"
148
148
  ],
149
149
  "additionalProperties": false
150
150
  }
151
151
  },
152
152
  "type": {
153
- "const": "event-list-location"
153
+ "const": "event-location"
154
154
  }
155
155
  },
156
156
  "additionalProperties": false
@@ -260,9 +260,9 @@
260
260
  "See all Events"
261
261
  ]
262
262
  },
263
- "target": {
263
+ "url": {
264
264
  "type": "string",
265
- "title": "Target",
265
+ "title": "Url",
266
266
  "description": "URL the button links to",
267
267
  "format": "uri"
268
268
  }
@@ -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": {
@@ -61,9 +61,9 @@
61
61
  "description": "Label of the button",
62
62
  "examples": ["See all Events"]
63
63
  },
64
- "target": {
64
+ "url": {
65
65
  "type": "string",
66
- "title": "Target",
66
+ "title": "Url",
67
67
  "description": "URL the button links to",
68
68
  "format": "uri"
69
69
  }
@@ -1,5 +1,5 @@
1
1
  import { FC, PropsWithChildren } from "react";
2
- import { EventDetailProps } from "../../EventDetailProps-19b81db8.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,13 +21,13 @@ 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: [
28
28
  {
29
29
  label: "See all Events",
30
- target: "/#",
30
+ url: "/#",
31
31
  },
32
32
  ] })] }));
33
33
  EventDetail.displayName = "EventDetail";
@@ -29,8 +29,8 @@
29
29
  "type": "array",
30
30
  "items": {
31
31
  "$schema": "http://json-schema.org/draft-07/schema#",
32
- "$id": "http://schema.mydesignsystem.com/event-teaser.schema.json",
33
- "title": "Event Teaser",
32
+ "$id": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json",
33
+ "title": "Event Latest Teaser",
34
34
  "description": "Display an event teaser with date, title and location",
35
35
  "type": "object",
36
36
  "properties": {
@@ -114,7 +114,7 @@
114
114
  "type": "string"
115
115
  },
116
116
  "type": {
117
- "const": "event-teaser"
117
+ "const": "event-latest-teaser"
118
118
  }
119
119
  },
120
120
  "additionalProperties": false,
@@ -24,7 +24,7 @@
24
24
  "description": "List of events to display",
25
25
  "type": "array",
26
26
  "items": {
27
- "$ref": "http://schema.mydesignsystem.com/event-teaser.schema.json"
27
+ "$ref": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json"
28
28
  },
29
29
  "minItems": 1,
30
30
  "examples": [
@@ -6,7 +6,7 @@ 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";
9
+ import { EventLatestTeaserProps } from "../../EventLatestTeaserProps-fc9d3281.js";
10
10
  /**
11
11
  * Headline for the listing
12
12
  */
@@ -21,8 +21,8 @@ type Text = string;
21
21
  * @minItems 1
22
22
  */
23
23
  type Events = [
24
- EventTeaserProps,
25
- ...EventTeaserProps[]
24
+ EventLatestTeaserProps,
25
+ ...EventLatestTeaserProps[]
26
26
  ];
27
27
  /**
28
28
  * The to link
@@ -1,4 +1,4 @@
1
- .dsa-event-teaser {
1
+ .dsa-event-latest-teaser {
2
2
  --g-link--border-radius: var(--ks-border-radius-surface);
3
3
  display: flex;
4
4
  align-items: center;
@@ -6,10 +6,10 @@
6
6
  padding: var(--ks-spacing-inset-s);
7
7
  border: var(--ks-border-width-default) solid var(--ks-border-color-card-interactive);
8
8
  }
9
- .dsa-event-teaser:hover {
9
+ .dsa-event-latest-teaser:hover {
10
10
  border-color: var(--ks-border-color-card-interactive-hover);
11
11
  }
12
- .dsa-event-teaser__calendar {
12
+ .dsa-event-latest-teaser__calendar {
13
13
  align-self: start;
14
14
  position: relative;
15
15
  container-type: inline-size;
@@ -25,47 +25,47 @@
25
25
  width: calc(var(--ks-spacing-l) * 3);
26
26
  height: calc(var(--ks-spacing-l) * 3);
27
27
  }
28
- .dsa-event-teaser__content {
28
+ .dsa-event-latest-teaser__content {
29
29
  display: flex;
30
30
  flex-direction: column;
31
31
  gap: var(--ks-spacing-stack-xs);
32
32
  flex-grow: 1;
33
33
  }
34
- .dsa-event-teaser__title {
34
+ .dsa-event-latest-teaser__title {
35
35
  font: var(--ks-font-display-m);
36
36
  font-weight: var(--ks-font-weight-semi-bold);
37
37
  color: var(--ks-text-color-display);
38
38
  }
39
- .dsa-event-teaser__month, .dsa-event-teaser__day {
39
+ .dsa-event-latest-teaser__month, .dsa-event-latest-teaser__day {
40
40
  font-weight: var(--ks-font-weight-semi-bold);
41
41
  font-family: var(--ks-font-family-display);
42
42
  }
43
- .dsa-event-teaser__day {
43
+ .dsa-event-latest-teaser__day {
44
44
  font-size: 50cqw;
45
45
  }
46
- .dsa-event-teaser__month {
46
+ .dsa-event-latest-teaser__month {
47
47
  font-size: 25cqw;
48
48
  }
49
- .dsa-event-teaser__infos {
49
+ .dsa-event-latest-teaser__infos {
50
50
  display: flex;
51
51
  flex-wrap: wrap;
52
52
  gap: var(--ks-spacing-xxs) var(--ks-spacing-inline-s);
53
53
  }
54
- .dsa-event-teaser__info {
54
+ .dsa-event-latest-teaser__info {
55
55
  display: flex;
56
56
  gap: var(--ks-spacing-xxs);
57
57
  font: var(--ks-font-interface-s);
58
58
  align-items: center;
59
59
  color: var(--ks-text-color-interface);
60
60
  }
61
- .dsa-event-teaser__info .icon {
61
+ .dsa-event-latest-teaser__info .icon {
62
62
  width: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
63
63
  height: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
64
64
  color: var(--ks-text-color-primary);
65
65
  flex-shrink: 0;
66
66
  flex-grow: 1;
67
67
  }
68
- .dsa-event-teaser__cta {
68
+ .dsa-event-latest-teaser__cta {
69
69
  font: var(--ks-font-interface-s);
70
70
  font-weight: var(--ks-font-weight-semi-bold);
71
71
  color: var(--ks-text-color-primary);
@@ -73,7 +73,7 @@
73
73
  align-items: center;
74
74
  text-wrap: nowrap;
75
75
  }
76
- .dsa-event-teaser__cta .icon {
76
+ .dsa-event-latest-teaser__cta .icon {
77
77
  width: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
78
78
  height: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
79
79
  color: var(--ks-text-color-primary);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "http://schema.mydesignsystem.com/event-teaser.schema.json",
4
- "title": "Event Teaser",
3
+ "$id": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json",
4
+ "title": "Event Latest Teaser",
5
5
  "description": "Display an event teaser with date, title and location",
6
6
  "type": "object",
7
7
  "properties": {
@@ -85,7 +85,7 @@
85
85
  "type": "string"
86
86
  },
87
87
  "type": {
88
- "const": "event-teaser"
88
+ "const": "event-latest-teaser"
89
89
  }
90
90
  },
91
91
  "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-teaser.schema.json",
4
- "title": "Event Teaser",
3
+ "$id": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json",
4
+ "title": "Event Latest Teaser",
5
5
  "description": "Display an event teaser with date, title and location",
6
6
  "type": "object",
7
7
  "properties": {
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { HTMLAttributes } from "react";
3
+ import { EventLatestTeaserProps } from "../../EventLatestTeaserProps-fc9d3281.js";
4
+ declare const EventLatestTeaserContextDefault: import("react").ForwardRefExoticComponent<EventLatestTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
5
+ declare const EventLatestTeaserContext: import("react").Context<import("react").ForwardRefExoticComponent<EventLatestTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>>;
6
+ declare const EventLatestTeaser: import("react").ForwardRefExoticComponent<EventLatestTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
7
+ export type { EventLatestTeaserProps };
8
+ export { EventLatestTeaserContextDefault, EventLatestTeaserContext, EventLatestTeaser };
@@ -0,0 +1,17 @@
1
+ import "./event-latest-teaser.css";
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import classnames from 'classnames';
4
+ import { forwardRef, createContext, useContext } from 'react';
5
+ import { Icon } from '@kickstartds/base/lib/icon';
6
+
7
+ const EventLatestTeaserContextDefault = forwardRef(({ date, title, cta, calendar, url, location, ariaLabel, className, ...rest }, ref) => {
8
+ return (jsxs("a", { className: classnames(className, "dsa-event-latest-teaser"), ...rest, href: url, ref: ref, "aria-label": ariaLabel, children: [jsxs("span", { className: "dsa-event-latest-teaser__calendar", children: [jsx("span", { className: "dsa-event-latest-teaser__day", children: calendar.day }), jsx("span", { className: "dsa-event-latest-teaser__month", children: calendar.month })] }), jsxs("span", { className: "dsa-event-latest-teaser__content", children: [jsx("span", { className: "dsa-event-latest-teaser__title", children: title }), jsxs("span", { className: "dsa-event-latest-teaser__infos", children: [jsxs("span", { className: "dsa-event-latest-teaser__info", children: [jsx(Icon, { "aria-hidden": true, icon: "date" }), date] }), jsxs("span", { className: "dsa-event-latest-teaser__info", children: [jsx(Icon, { "aria-hidden": true, icon: "map-pin" }), location] })] })] }), jsxs("span", { className: "dsa-event-latest-teaser__cta", children: [jsx("span", { children: cta }), jsx(Icon, { "aria-hidden": true, icon: "chevron-right" })] })] }));
9
+ });
10
+ const EventLatestTeaserContext = createContext(EventLatestTeaserContextDefault);
11
+ const EventLatestTeaser = forwardRef((props, ref) => {
12
+ const Component = useContext(EventLatestTeaserContext);
13
+ return jsx(Component, { ...props, ref: ref });
14
+ });
15
+ EventLatestTeaser.displayName = "EventLatestTeaser";
16
+
17
+ export { EventLatestTeaser, EventLatestTeaserContext, EventLatestTeaserContextDefault };
@@ -1,5 +1,5 @@
1
- .dsa-event-list-location {
2
- --dsa-event-list-location__icon--size: calc(var(--ks-font-size-copy-m) * var(--ks-line-height-copy-m));
1
+ .dsa-event-location {
2
+ --dsa-event-location__icon--size: calc(var(--ks-font-size-copy-m) * var(--ks-line-height-copy-m));
3
3
  flex-wrap: wrap;
4
4
  display: flex;
5
5
  flex-direction: row;
@@ -9,35 +9,35 @@
9
9
  padding: var(--ks-spacing-inset-m);
10
10
  border-radius: var(--ks-border-radius-surface);
11
11
  }
12
- .dsa-event-list-location + .dsa-event-list-location {
12
+ .dsa-event-location + .dsa-event-location {
13
13
  margin-top: var(--ks-spacing-stack-m);
14
14
  }
15
- .dsa-event-list-location__content {
15
+ .dsa-event-location__content {
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  gap: var(--ks-spacing-stack-s);
19
19
  flex-grow: 0;
20
20
  flex-grow: 0;
21
21
  }
22
- .dsa-event-list-location__name {
22
+ .dsa-event-location__name {
23
23
  font: var(--ks-font-interface-m);
24
24
  color: var(--dsa-topic--color);
25
25
  font-weight: var(--dsa-topic--font-weight);
26
26
  }
27
- .dsa-event-list-location__links {
27
+ .dsa-event-location__links {
28
28
  display: flex;
29
29
  flex-direction: column;
30
30
  justify-content: flex-end;
31
31
  gap: var(--ks-spacing-xxs);
32
32
  }
33
- .dsa-event-list-location__link {
33
+ .dsa-event-location__link {
34
34
  font: var(--ks-font-interface-s);
35
35
  }
36
- .dsa-event-list-location__icon {
36
+ .dsa-event-location__icon {
37
37
  width: 2rem;
38
38
  height: 2rem;
39
39
  }
40
- .dsa-event-list-location__row {
40
+ .dsa-event-location__row {
41
41
  display: flex;
42
42
  flex-direction: row;
43
43
  gap: var(--ks-spacing-inline-m);
@@ -46,21 +46,21 @@
46
46
  flex-grow: 1;
47
47
  flex-basis: 200px;
48
48
  }
49
- .dsa-event-list-location__icon {
49
+ .dsa-event-location__icon {
50
50
  color: var(--ks-text-color-primary);
51
- width: var(--dsa-event-list-location__icon--size);
52
- height: var(--dsa-event-list-location__icon--size);
51
+ width: var(--dsa-event-location__icon--size);
52
+ height: var(--dsa-event-location__icon--size);
53
53
  }
54
- .dsa-event-list-location__item {
54
+ .dsa-event-location__item {
55
55
  display: flex;
56
56
  gap: var(--ks-spacing-stack-xs);
57
57
  }
58
- .dsa-event-list-location__appointments {
58
+ .dsa-event-location__appointments {
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  gap: var(--ks-spacing-stack-s);
62
62
  flex-grow: 1;
63
63
  }
64
- .dsa-event-list-location .l-container--rich-text {
64
+ .dsa-event-location .l-container--rich-text {
65
65
  container-type: normal;
66
66
  }