@kickstartds/ds-agency-premium 1.6.68--canary.45.1707.0 → 1.6.68--canary.45.1713.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 (124) 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-7caa223c.d.ts → BlogOverviewProps-d62a0a9a.d.ts} +3 -3
  4. package/dist/{BlogPostProps-d9decb7c.d.ts → BlogPostProps-c760fd2a.d.ts} +3 -3
  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/{EventDetailProps-19b81db8.d.ts → EventDetailProps-52321b9e.d.ts} +4 -4
  8. package/dist/{EventListAppointmentProps-da54c3b9.d.ts → EventListAppointmentProps-eee8b4ec.d.ts} +3 -3
  9. package/dist/{EventListLocationProps-d4345e0e.d.ts → EventListLocationProps-f9d48acc.d.ts} +2 -2
  10. package/dist/EventTeaserProps-e00ea659.d.ts +58 -0
  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-03ff6d21.d.ts → ImageStoryProps-00ddee3a.d.ts} +1 -1
  16. package/dist/MosaicProps-d52c7151.d.ts +4 -4
  17. package/dist/{PageProps-7caa223c.d.ts → PageProps-aa29c554.d.ts} +1 -1
  18. package/dist/{SectionProps-03ff6d21.d.ts → SectionProps-00ddee3a.d.ts} +8 -8
  19. package/dist/{SliderProps-8a0dba0d.d.ts → SliderProps-babe4ee6.d.ts} +4 -4
  20. package/dist/{TeaserCardProps-b9c28e78.d.ts → TeaserCardProps-994cb119.d.ts} +4 -4
  21. package/dist/{VideoCurtainProps-88f08b62.d.ts → VideoCurtainProps-a2c0cc7f.d.ts} +4 -4
  22. package/dist/components/blog-aside/blog-aside.schema.dereffed.json +7 -7
  23. package/dist/components/blog-aside/blog-aside.schema.json +4 -4
  24. package/dist/components/blog-aside/index.d.ts +1 -1
  25. package/dist/components/blog-aside/index.js +1 -1
  26. package/dist/components/blog-author/blog-author.schema.dereffed.json +3 -3
  27. package/dist/components/blog-author/index.d.ts +1 -1
  28. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +41 -41
  29. package/dist/components/blog-overview/index.d.ts +1 -1
  30. package/dist/components/blog-post/blog-post.schema.dereffed.json +48 -48
  31. package/dist/components/blog-post/index.d.ts +1 -1
  32. package/dist/components/blog-teaser/index.d.ts +1 -1
  33. package/dist/components/blog-teaser/index.js +5 -7
  34. package/dist/components/button/button.schema.dereffed.json +3 -3
  35. package/dist/components/button/button.schema.json +3 -3
  36. package/dist/components/button/index.d.ts +1 -1
  37. package/dist/components/button/index.js +1 -1
  38. package/dist/components/button-group/button-group.schema.dereffed.json +3 -3
  39. package/dist/components/button-group/index.d.ts +1 -1
  40. package/dist/components/contact/contact.schema.dereffed.json +3 -3
  41. package/dist/components/contact/contact.schema.json +3 -3
  42. package/dist/components/contact/index.d.ts +1 -1
  43. package/dist/components/contact/index.js +1 -1
  44. package/dist/components/cta/cta.schema.dereffed.json +3 -3
  45. package/dist/components/cta/cta.schema.json +2 -2
  46. package/dist/components/cta/index.d.ts +1 -1
  47. package/dist/components/event-detail/event-detail.schema.dereffed.json +6 -6
  48. package/dist/components/event-detail/event-detail.schema.json +2 -2
  49. package/dist/components/event-detail/index.d.ts +1 -1
  50. package/dist/components/event-detail/index.js +1 -1
  51. package/dist/components/event-latest/event-latest.schema.dereffed.json +53 -33
  52. package/dist/components/event-latest/index.d.ts +1 -1
  53. package/dist/components/event-list-appointment/event-list-appointment.schema.dereffed.json +2 -2
  54. package/dist/components/event-list-appointment/event-list-appointment.schema.json +2 -2
  55. package/dist/components/event-list-appointment/index.d.ts +1 -1
  56. package/dist/components/event-list-appointment/index.js +1 -1
  57. package/dist/components/event-list-location/event-list-location.schema.dereffed.json +4 -4
  58. package/dist/components/event-list-location/event-list-location.schema.json +2 -2
  59. package/dist/components/event-list-location/index.d.ts +1 -1
  60. package/dist/components/event-list-location/index.js +1 -1
  61. package/dist/components/event-teaser/event-teaser.css +82 -0
  62. package/dist/components/event-teaser/event-teaser.schema.dereffed.json +53 -33
  63. package/dist/components/event-teaser/event-teaser.schema.json +43 -28
  64. package/dist/components/event-teaser/index.d.ts +4 -4
  65. package/dist/components/event-teaser/index.js +5 -3
  66. package/dist/components/feature/feature.schema.dereffed.json +3 -3
  67. package/dist/components/feature/feature.schema.json +3 -3
  68. package/dist/components/feature/index.d.ts +3 -3
  69. package/dist/components/feature/index.js +1 -1
  70. package/dist/components/features/features.schema.dereffed.json +3 -3
  71. package/dist/components/features/features.schema.json +2 -2
  72. package/dist/components/features/index.d.ts +1 -1
  73. package/dist/components/features/index.js +1 -1
  74. package/dist/components/footer/footer.schema.dereffed.json +12 -12
  75. package/dist/components/footer/index.d.ts +1 -1
  76. package/dist/components/footer/index.js +1 -1
  77. package/dist/components/header/header.schema.dereffed.json +12 -12
  78. package/dist/components/header/index.d.ts +1 -1
  79. package/dist/components/hero/hero.schema.dereffed.json +3 -3
  80. package/dist/components/hero/hero.schema.json +2 -2
  81. package/dist/components/hero/index.d.ts +1 -1
  82. package/dist/components/image-story/image-story.schema.dereffed.json +3 -3
  83. package/dist/components/image-story/index.d.ts +1 -1
  84. package/dist/components/index/index.d.ts +6 -6
  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/index.d.ts +1 -1
  101. package/dist/components/page/page.schema.dereffed.json +38 -38
  102. package/dist/components/page-wrapper/tokens.css +1 -1
  103. package/dist/components/presets.json +190 -165
  104. package/dist/components/section/index.d.ts +1 -1
  105. package/dist/components/section/section.schema.dereffed.json +38 -38
  106. package/dist/components/settings/settings.schema.dereffed.json +24 -24
  107. package/dist/components/slider/index.d.ts +1 -1
  108. package/dist/components/slider/slider.schema.dereffed.json +13 -13
  109. package/dist/components/teaser-card/index.d.ts +1 -1
  110. package/dist/components/teaser-card/index.js +2 -2
  111. package/dist/components/teaser-card/teaser-card.schema.dereffed.json +4 -4
  112. package/dist/components/teaser-card/teaser-card.schema.json +4 -4
  113. package/dist/components/testimonials/index.d.ts +1 -1
  114. package/dist/components/tile/tile.schema.dereffed.json +3 -3
  115. package/dist/components/tile/tile.schema.json +2 -2
  116. package/dist/components/video-curtain/index.d.ts +1 -1
  117. package/dist/components/video-curtain/video-curtain.schema.dereffed.json +3 -3
  118. package/dist/components/video-curtain/video-curtain.schema.json +2 -2
  119. package/dist/tokens/themes.css +4 -4
  120. package/dist/tokens/tokens.css +1 -1
  121. package/dist/tokens/tokens.js +1 -1
  122. package/package.json +1 -1
  123. package/dist/EventTeaserProps-5f865346.d.ts +0 -43
  124. /package/dist/{BlogTeaserProps-f5855e93.d.ts → BlogTeaserProps-d62a0a9a.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>>;
@@ -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",
@@ -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,7 +143,7 @@
143
143
  }
144
144
  },
145
145
  "required": [
146
- "href",
146
+ "url",
147
147
  "label"
148
148
  ],
149
149
  "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
  }
@@ -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-52321b9e.js";
3
3
  declare const EventDetail: FC<PropsWithChildren<EventDetailProps>>;
4
4
  export type { EventDetailProps };
5
5
  export { EventDetail };
@@ -27,7 +27,7 @@ const EventDetail = ({ title, categories, locations, description, intro, images,
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";
@@ -31,7 +31,7 @@
31
31
  "$schema": "http://json-schema.org/draft-07/schema#",
32
32
  "$id": "http://schema.mydesignsystem.com/event-teaser.schema.json",
33
33
  "title": "Event Teaser",
34
- "description": "Display an event teaser with date, headline and location",
34
+ "description": "Display an event teaser with date, title and location",
35
35
  "type": "object",
36
36
  "properties": {
37
37
  "date": {
@@ -40,16 +40,40 @@
40
40
  "type": "string",
41
41
  "format": "date",
42
42
  "examples": [
43
- "12/30/2022"
43
+ "12.30.2022"
44
44
  ]
45
45
  },
46
- "headline": {
46
+ "calendar": {
47
+ "type": "object",
48
+ "title": "Calendar",
49
+ "description": "Calendar icon to display the date",
50
+ "properties": {
51
+ "month": {
52
+ "title": "Month",
53
+ "description": "The month of the event",
54
+ "type": "string",
55
+ "examples": [
56
+ "Dec"
57
+ ]
58
+ },
59
+ "day": {
60
+ "title": "Day",
61
+ "description": "The day of the event",
62
+ "type": "string",
63
+ "examples": [
64
+ "30"
65
+ ]
66
+ }
67
+ },
68
+ "additionalProperties": false
69
+ },
70
+ "title": {
47
71
  "title": "Headline",
48
72
  "description": "Title of the event",
49
73
  "type": "string",
50
74
  "format": "markdown",
51
75
  "examples": [
52
- "This is a blog post headline"
76
+ "This is a event teaser title"
53
77
  ]
54
78
  },
55
79
  "location": {
@@ -58,36 +82,32 @@
58
82
  "type": "string",
59
83
  "format": "markdown",
60
84
  "examples": [
61
- "This is a teaser text for the blog post"
85
+ "This is a location"
62
86
  ]
63
87
  },
64
- "link": {
65
- "type": "object",
66
- "title": "Link",
67
- "description": "URL and label for the event linked",
68
- "properties": {
69
- "url": {
70
- "title": "URL",
71
- "description": "The event entry URL to link",
72
- "type": "string",
73
- "format": "uri",
74
- "examples": [
75
- "https://example.com"
76
- ]
77
- },
78
- "text": {
79
- "title": "Text",
80
- "description": "The text for the link",
81
- "type": "string",
82
- "default": "Show event",
83
- "examples": [
84
- "Show event"
85
- ]
86
- }
87
- },
88
- "additionalProperties": false,
89
- "required": [
90
- "url"
88
+ "url": {
89
+ "title": "URL",
90
+ "description": "The event entry URL to link",
91
+ "type": "string",
92
+ "format": "uri",
93
+ "examples": [
94
+ "https://example.com"
95
+ ]
96
+ },
97
+ "cta": {
98
+ "title": "Call to Action",
99
+ "description": "Text for the call to action",
100
+ "type": "string",
101
+ "examples": [
102
+ "Show event"
103
+ ]
104
+ },
105
+ "ariaLabel": {
106
+ "title": "ARIA Label",
107
+ "description": "ARIA label for accessibility",
108
+ "type": "string",
109
+ "examples": [
110
+ "Event teaser for "
91
111
  ]
92
112
  },
93
113
  "className": {
@@ -99,7 +119,7 @@
99
119
  },
100
120
  "additionalProperties": false,
101
121
  "required": [
102
- "headline",
122
+ "title",
103
123
  "date",
104
124
  "location"
105
125
  ]
@@ -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-5f865346.js";
9
+ import { EventTeaserProps } from "../../EventTeaserProps-e00ea659.js";
10
10
  /**
11
11
  * Headline for the listing
12
12
  */
@@ -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",
@@ -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",
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { EventListAppointmentProps } from "../../EventListAppointmentProps-da54c3b9.js";
2
+ import { EventListAppointmentProps } from "../../EventListAppointmentProps-eee8b4ec.js";
3
3
  declare const EventListAppointmentContextDefault: import("react").ForwardRefExoticComponent<EventListAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>;
4
4
  declare const EventListAppointmentContext: import("react").Context<import("react").ForwardRefExoticComponent<EventListAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>>;
5
5
  declare const EventListAppointment: import("react").ForwardRefExoticComponent<EventListAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef, createContext, useContext } from 'react';
4
4
  import { Icon } from '@kickstartds/base/lib/icon';
5
5
 
6
- const EventListAppointmentContextDefault = forwardRef(({ date, time, label, href, newTab, ariaLabel }, ref) => (jsxs("a", { className: "dsa-event-list-appointment", target: newTab ? "_blank" : "_self", "aria-label": ariaLabel, href: href, ref: ref, children: [jsxs("span", { className: "dsa-event-list-appointment__infos", children: [date && (jsxs("span", { className: "dsa-event-list-appointment__info", children: [jsx(Icon, { className: "dsa-event-list-appointment__icon", "aria-hidden": true, icon: "date" }), date] })), time && (jsxs("span", { className: "dsa-event-list-appointment__info", children: [jsx(Icon, { className: "dsa-event-list-appointment__icon", "aria-hidden": true, icon: "time" }), time] }))] }), jsxs("span", { className: "dsa-event-list-appointment__label", children: [label, jsx(Icon, { icon: "chevron-right" })] })] })));
6
+ const EventListAppointmentContextDefault = forwardRef(({ date, time, label, url, newTab, ariaLabel }, ref) => (jsxs("a", { className: "dsa-event-list-appointment", target: newTab ? "_blank" : "_self", "aria-label": ariaLabel, href: url, ref: ref, children: [jsxs("span", { className: "dsa-event-list-appointment__infos", children: [date && (jsxs("span", { className: "dsa-event-list-appointment__info", children: [jsx(Icon, { className: "dsa-event-list-appointment__icon", "aria-hidden": true, icon: "date" }), date] })), time && (jsxs("span", { className: "dsa-event-list-appointment__info", children: [jsx(Icon, { className: "dsa-event-list-appointment__icon", "aria-hidden": true, icon: "time" }), time] }))] }), jsxs("span", { className: "dsa-event-list-appointment__label", children: [label, jsx(Icon, { icon: "chevron-right" })] })] })));
7
7
  const EventListAppointmentContext = createContext(EventListAppointmentContextDefault);
8
8
  const EventListAppointment = forwardRef((props, ref) => {
9
9
  const Component = useContext(EventListAppointmentContext);
@@ -39,8 +39,8 @@
39
39
  "Register"
40
40
  ]
41
41
  },
42
- "href": {
43
- "title": "Href",
42
+ "url": {
43
+ "title": "URL",
44
44
  "description": "URL for the call to action button",
45
45
  "type": "string",
46
46
  "format": "uri",
@@ -88,7 +88,7 @@
88
88
  "items": {
89
89
  "type": "object",
90
90
  "properties": {
91
- "href": {
91
+ "url": {
92
92
  "type": "string",
93
93
  "format": "uri"
94
94
  },
@@ -102,7 +102,7 @@
102
102
  }
103
103
  },
104
104
  "required": [
105
- "href",
105
+ "url",
106
106
  "label"
107
107
  ],
108
108
  "additionalProperties": false
@@ -33,7 +33,7 @@
33
33
  "items": {
34
34
  "type": "object",
35
35
  "properties": {
36
- "href": {
36
+ "url": {
37
37
  "type": "string",
38
38
  "format": "uri"
39
39
  },
@@ -46,7 +46,7 @@
46
46
  "description": "Open link in a new tab"
47
47
  }
48
48
  },
49
- "required": ["href", "label"]
49
+ "required": ["url", "label"]
50
50
  }
51
51
  }
52
52
  },
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { EventListLocationProps } from "../../EventListLocationProps-d4345e0e.js";
2
+ import { EventListLocationProps } from "../../EventListLocationProps-f9d48acc.js";
3
3
  declare const EventListLocationContextDefault: import("react").ForwardRefExoticComponent<EventListLocationProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  declare const EventListLocationContext: import("react").Context<import("react").ForwardRefExoticComponent<EventListLocationProps & import("react").RefAttributes<HTMLDivElement>>>;
5
5
  declare const EventListLocation: import("react").ForwardRefExoticComponent<EventListLocationProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -5,7 +5,7 @@ import { RichText } from '@kickstartds/base/lib/rich-text';
5
5
  import { Icon } from '@kickstartds/base/lib/icon';
6
6
  import { EventListAppointment } from '../event-list-appointment/index.js';
7
7
 
8
- const EventListLocationContextDefault = forwardRef(({ locationName, address, dates, links, ...rest }, ref) => (jsxs("div", { className: "dsa-event-list-location", ...rest, ref: ref, children: [address && (jsx("div", { className: "dsa-event-list-location__row", children: jsxs("div", { className: "dsa-event-list-location__item ", children: [jsx(Icon, { className: "dsa-event-list-location__icon", icon: "map-pin", "aria-hidden": true }), jsxs("div", { className: "dsa-event-list-location__content", children: [jsx("span", { className: "sr-only", children: "Address:" }), jsxs("address", { className: "dsa-event-list-location__address", children: [locationName && (jsx("span", { className: "dsa-event-list-location__name", children: locationName })), address && jsx(RichText, { text: address })] }), links && links.length > 0 && (jsx("div", { className: "dsa-event-list-location__links", children: links.map((link, index) => (jsx("a", { href: link.href, target: link.newTab ? "_blank" : "_self", className: "dsa-event-list-location__link", children: link.label }, index))) }))] })] }) })), dates && dates.length > 0 && (jsxs("div", { className: "dsa-event-list-location__appointments", children: [jsx("span", { className: "sr-only", children: "Appointments:" }), dates.map((item, index) => (createElement(EventListAppointment, { ...item, key: index })))] }))] })));
8
+ const EventListLocationContextDefault = forwardRef(({ locationName, address, dates, links, ...rest }, ref) => (jsxs("div", { className: "dsa-event-list-location", ...rest, ref: ref, children: [address && (jsx("div", { className: "dsa-event-list-location__row", children: jsxs("div", { className: "dsa-event-list-location__item ", children: [jsx(Icon, { className: "dsa-event-list-location__icon", icon: "map-pin", "aria-hidden": true }), jsxs("div", { className: "dsa-event-list-location__content", children: [jsx("span", { className: "sr-only", children: "Address:" }), jsxs("address", { className: "dsa-event-list-location__address", children: [locationName && (jsx("span", { className: "dsa-event-list-location__name", children: locationName })), address && jsx(RichText, { text: address })] }), links && links.length > 0 && (jsx("div", { className: "dsa-event-list-location__links", children: links.map((link, index) => (jsx("a", { href: link.url, target: link.newTab ? "_blank" : "_self", className: "dsa-event-list-location__link", children: link.label }, index))) }))] })] }) })), dates && dates.length > 0 && (jsxs("div", { className: "dsa-event-list-location__appointments", children: [jsx("span", { className: "sr-only", children: "Appointments:" }), dates.map((item, index) => (createElement(EventListAppointment, { ...item, key: index })))] }))] })));
9
9
  const EventListLocationContext = createContext(EventListLocationContextDefault);
10
10
  const EventListLocation = forwardRef((props, ref) => {
11
11
  const Component = useContext(EventListLocationContext);
@@ -0,0 +1,82 @@
1
+ .dsa-event-teaser {
2
+ --g-link--border-radius: var(--ks-border-radius-surface);
3
+ display: flex;
4
+ align-items: center;
5
+ gap: var(--ks-spacing-inline-m);
6
+ padding: var(--ks-spacing-inset-s);
7
+ border: var(--ks-border-width-default) solid var(--ks-border-color-card-interactive);
8
+ }
9
+ .dsa-event-teaser:hover {
10
+ border-color: var(--ks-border-color-card-interactive-hover);
11
+ }
12
+ .dsa-event-teaser__calendar {
13
+ align-self: start;
14
+ position: relative;
15
+ container-type: inline-size;
16
+ background-color: var(--ks-background-color-primary);
17
+ color: var(--ks-color-fg-inverted);
18
+ border-radius: var(--ks-border-radius-control);
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ justify-content: center;
23
+ padding: var(--ks-spacing-inset-stretch-xs);
24
+ flex-shrink: 0;
25
+ width: calc(var(--ks-spacing-l) * 3);
26
+ height: calc(var(--ks-spacing-l) * 3);
27
+ }
28
+ .dsa-event-teaser__content {
29
+ display: flex;
30
+ flex-direction: column;
31
+ gap: var(--ks-spacing-stack-xs);
32
+ flex-grow: 1;
33
+ }
34
+ .dsa-event-teaser__title {
35
+ font: var(--ks-font-display-m);
36
+ font-weight: var(--ks-font-weight-semi-bold);
37
+ color: var(--ks-text-color-display);
38
+ }
39
+ .dsa-event-teaser__month, .dsa-event-teaser__day {
40
+ font-weight: var(--ks-font-weight-semi-bold);
41
+ font-family: var(--ks-font-family-display);
42
+ }
43
+ .dsa-event-teaser__day {
44
+ font-size: 50cqw;
45
+ }
46
+ .dsa-event-teaser__month {
47
+ font-size: 25cqw;
48
+ }
49
+ .dsa-event-teaser__infos {
50
+ display: flex;
51
+ flex-wrap: wrap;
52
+ gap: var(--ks-spacing-xxs) var(--ks-spacing-inline-s);
53
+ }
54
+ .dsa-event-teaser__info {
55
+ display: flex;
56
+ gap: var(--ks-spacing-xxs);
57
+ font: var(--ks-font-interface-s);
58
+ align-items: center;
59
+ color: var(--ks-text-color-interface);
60
+ }
61
+ .dsa-event-teaser__info .icon {
62
+ width: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
63
+ height: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
64
+ color: var(--ks-text-color-primary);
65
+ flex-shrink: 0;
66
+ flex-grow: 1;
67
+ }
68
+ .dsa-event-teaser__cta {
69
+ font: var(--ks-font-interface-s);
70
+ font-weight: var(--ks-font-weight-semi-bold);
71
+ color: var(--ks-text-color-primary);
72
+ display: flex;
73
+ align-items: center;
74
+ text-wrap: nowrap;
75
+ }
76
+ .dsa-event-teaser__cta .icon {
77
+ width: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
78
+ height: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
79
+ color: var(--ks-text-color-primary);
80
+ flex-shrink: 0;
81
+ flex-grow: 1;
82
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "http://schema.mydesignsystem.com/event-teaser.schema.json",
4
4
  "title": "Event Teaser",
5
- "description": "Display an event teaser with date, headline and location",
5
+ "description": "Display an event teaser with date, title and location",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "date": {
@@ -11,16 +11,40 @@
11
11
  "type": "string",
12
12
  "format": "date",
13
13
  "examples": [
14
- "12/30/2022"
14
+ "12.30.2022"
15
15
  ]
16
16
  },
17
- "headline": {
17
+ "calendar": {
18
+ "type": "object",
19
+ "title": "Calendar",
20
+ "description": "Calendar icon to display the date",
21
+ "properties": {
22
+ "month": {
23
+ "title": "Month",
24
+ "description": "The month of the event",
25
+ "type": "string",
26
+ "examples": [
27
+ "Dec"
28
+ ]
29
+ },
30
+ "day": {
31
+ "title": "Day",
32
+ "description": "The day of the event",
33
+ "type": "string",
34
+ "examples": [
35
+ "30"
36
+ ]
37
+ }
38
+ },
39
+ "additionalProperties": false
40
+ },
41
+ "title": {
18
42
  "title": "Headline",
19
43
  "description": "Title of the event",
20
44
  "type": "string",
21
45
  "format": "markdown",
22
46
  "examples": [
23
- "This is a blog post headline"
47
+ "This is a event teaser title"
24
48
  ]
25
49
  },
26
50
  "location": {
@@ -29,36 +53,32 @@
29
53
  "type": "string",
30
54
  "format": "markdown",
31
55
  "examples": [
32
- "This is a teaser text for the blog post"
56
+ "This is a location"
33
57
  ]
34
58
  },
35
- "link": {
36
- "type": "object",
37
- "title": "Link",
38
- "description": "URL and label for the event linked",
39
- "properties": {
40
- "url": {
41
- "title": "URL",
42
- "description": "The event entry URL to link",
43
- "type": "string",
44
- "format": "uri",
45
- "examples": [
46
- "https://example.com"
47
- ]
48
- },
49
- "text": {
50
- "title": "Text",
51
- "description": "The text for the link",
52
- "type": "string",
53
- "default": "Show event",
54
- "examples": [
55
- "Show event"
56
- ]
57
- }
58
- },
59
- "additionalProperties": false,
60
- "required": [
61
- "url"
59
+ "url": {
60
+ "title": "URL",
61
+ "description": "The event entry URL to link",
62
+ "type": "string",
63
+ "format": "uri",
64
+ "examples": [
65
+ "https://example.com"
66
+ ]
67
+ },
68
+ "cta": {
69
+ "title": "Call to Action",
70
+ "description": "Text for the call to action",
71
+ "type": "string",
72
+ "examples": [
73
+ "Show event"
74
+ ]
75
+ },
76
+ "ariaLabel": {
77
+ "title": "ARIA Label",
78
+ "description": "ARIA label for accessibility",
79
+ "type": "string",
80
+ "examples": [
81
+ "Event teaser for "
62
82
  ]
63
83
  },
64
84
  "className": {
@@ -70,7 +90,7 @@
70
90
  },
71
91
  "additionalProperties": false,
72
92
  "required": [
73
- "headline",
93
+ "title",
74
94
  "date",
75
95
  "location"
76
96
  ]