@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.
- package/dist/{BlogAsideProps-d9decb7c.d.ts → BlogAsideProps-c760fd2a.d.ts} +5 -5
- package/dist/{BlogAuthorProps-9320ef58.d.ts → BlogAuthorProps-fb0241df.d.ts} +1 -1
- package/dist/{BlogOverviewProps-7caa223c.d.ts → BlogOverviewProps-d62a0a9a.d.ts} +3 -3
- package/dist/{BlogPostProps-d9decb7c.d.ts → BlogPostProps-c760fd2a.d.ts} +3 -3
- package/dist/{ButtonProps-03ff6d21.d.ts → ButtonProps-00ddee3a.d.ts} +4 -4
- package/dist/{CtaProps-8a0dba0d.d.ts → CtaProps-babe4ee6.d.ts} +4 -4
- package/dist/{EventDetailProps-19b81db8.d.ts → EventDetailProps-52321b9e.d.ts} +4 -4
- package/dist/{EventListAppointmentProps-da54c3b9.d.ts → EventListAppointmentProps-eee8b4ec.d.ts} +3 -3
- package/dist/{EventListLocationProps-d4345e0e.d.ts → EventListLocationProps-f9d48acc.d.ts} +2 -2
- package/dist/EventTeaserProps-e00ea659.d.ts +58 -0
- package/dist/{FeaturesProps-7ef528ec.d.ts → FeaturesProps-a9041d97.d.ts} +4 -4
- package/dist/{FooterProps-171a3067.d.ts → FooterProps-a0a104ca.d.ts} +2 -2
- package/dist/{HeaderProps-e22382f1.d.ts → HeaderProps-72763967.d.ts} +2 -2
- package/dist/{HeroProps-aa4e6431.d.ts → HeroProps-40f6c7f5.d.ts} +4 -4
- package/dist/{ImageStoryProps-03ff6d21.d.ts → ImageStoryProps-00ddee3a.d.ts} +1 -1
- package/dist/MosaicProps-d52c7151.d.ts +4 -4
- package/dist/{PageProps-7caa223c.d.ts → PageProps-aa29c554.d.ts} +1 -1
- package/dist/{SectionProps-03ff6d21.d.ts → SectionProps-00ddee3a.d.ts} +8 -8
- package/dist/{SliderProps-8a0dba0d.d.ts → SliderProps-babe4ee6.d.ts} +4 -4
- package/dist/{TeaserCardProps-b9c28e78.d.ts → TeaserCardProps-994cb119.d.ts} +4 -4
- package/dist/{VideoCurtainProps-88f08b62.d.ts → VideoCurtainProps-a2c0cc7f.d.ts} +4 -4
- package/dist/components/blog-aside/blog-aside.schema.dereffed.json +7 -7
- package/dist/components/blog-aside/blog-aside.schema.json +4 -4
- package/dist/components/blog-aside/index.d.ts +1 -1
- package/dist/components/blog-aside/index.js +1 -1
- package/dist/components/blog-author/blog-author.schema.dereffed.json +3 -3
- package/dist/components/blog-author/index.d.ts +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +41 -41
- package/dist/components/blog-overview/index.d.ts +1 -1
- package/dist/components/blog-post/blog-post.schema.dereffed.json +48 -48
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-teaser/index.d.ts +1 -1
- package/dist/components/blog-teaser/index.js +5 -7
- package/dist/components/button/button.schema.dereffed.json +3 -3
- package/dist/components/button/button.schema.json +3 -3
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/button-group.schema.dereffed.json +3 -3
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/contact/contact.schema.dereffed.json +3 -3
- package/dist/components/contact/contact.schema.json +3 -3
- package/dist/components/contact/index.d.ts +1 -1
- package/dist/components/contact/index.js +1 -1
- package/dist/components/cta/cta.schema.dereffed.json +3 -3
- package/dist/components/cta/cta.schema.json +2 -2
- package/dist/components/cta/index.d.ts +1 -1
- package/dist/components/event-detail/event-detail.schema.dereffed.json +6 -6
- package/dist/components/event-detail/event-detail.schema.json +2 -2
- package/dist/components/event-detail/index.d.ts +1 -1
- package/dist/components/event-detail/index.js +1 -1
- package/dist/components/event-latest/event-latest.schema.dereffed.json +53 -33
- package/dist/components/event-latest/index.d.ts +1 -1
- package/dist/components/event-list-appointment/event-list-appointment.schema.dereffed.json +2 -2
- package/dist/components/event-list-appointment/event-list-appointment.schema.json +2 -2
- package/dist/components/event-list-appointment/index.d.ts +1 -1
- package/dist/components/event-list-appointment/index.js +1 -1
- package/dist/components/event-list-location/event-list-location.schema.dereffed.json +4 -4
- package/dist/components/event-list-location/event-list-location.schema.json +2 -2
- package/dist/components/event-list-location/index.d.ts +1 -1
- package/dist/components/event-list-location/index.js +1 -1
- package/dist/components/event-teaser/event-teaser.css +82 -0
- package/dist/components/event-teaser/event-teaser.schema.dereffed.json +53 -33
- package/dist/components/event-teaser/event-teaser.schema.json +43 -28
- package/dist/components/event-teaser/index.d.ts +4 -4
- package/dist/components/event-teaser/index.js +5 -3
- package/dist/components/feature/feature.schema.dereffed.json +3 -3
- package/dist/components/feature/feature.schema.json +3 -3
- package/dist/components/feature/index.d.ts +3 -3
- package/dist/components/feature/index.js +1 -1
- package/dist/components/features/features.schema.dereffed.json +3 -3
- package/dist/components/features/features.schema.json +2 -2
- package/dist/components/features/index.d.ts +1 -1
- package/dist/components/features/index.js +1 -1
- package/dist/components/footer/footer.schema.dereffed.json +12 -12
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/header/header.schema.dereffed.json +12 -12
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/hero/hero.schema.dereffed.json +3 -3
- package/dist/components/hero/hero.schema.json +2 -2
- package/dist/components/hero/index.d.ts +1 -1
- package/dist/components/image-story/image-story.schema.dereffed.json +3 -3
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +6 -6
- package/dist/components/logos/index.js +1 -1
- package/dist/components/mosaic/index.js +1 -1
- package/dist/components/mosaic/mosaic.schema.dereffed.json +3 -3
- package/dist/components/nav-dropdown/index.d.ts +1 -1
- package/dist/components/nav-dropdown/index.js +2 -2
- package/dist/components/nav-dropdown/nav-dropdown.schema.dereffed.json +1 -1
- package/dist/components/nav-flyout/index.d.ts +2 -2
- package/dist/components/nav-flyout/index.js +4 -4
- package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +12 -12
- package/dist/components/nav-main/index.d.ts +5 -5
- package/dist/components/nav-main/nav-main.schema.dereffed.json +15 -15
- package/dist/components/nav-main/nav-main.schema.json +14 -14
- package/dist/components/nav-topbar/index.d.ts +2 -2
- package/dist/components/nav-topbar/index.js +2 -2
- package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +12 -12
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page/page.schema.dereffed.json +38 -38
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +190 -165
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/section.schema.dereffed.json +38 -38
- package/dist/components/settings/settings.schema.dereffed.json +24 -24
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider.schema.dereffed.json +13 -13
- package/dist/components/teaser-card/index.d.ts +1 -1
- package/dist/components/teaser-card/index.js +2 -2
- package/dist/components/teaser-card/teaser-card.schema.dereffed.json +4 -4
- package/dist/components/teaser-card/teaser-card.schema.json +4 -4
- package/dist/components/testimonials/index.d.ts +1 -1
- package/dist/components/tile/tile.schema.dereffed.json +3 -3
- package/dist/components/tile/tile.schema.json +2 -2
- package/dist/components/video-curtain/index.d.ts +1 -1
- package/dist/components/video-curtain/video-curtain.schema.dereffed.json +3 -3
- package/dist/components/video-curtain/video-curtain.schema.json +2 -2
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/package.json +1 -1
- package/dist/EventTeaserProps-5f865346.d.ts +0 -43
- /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
|
-
"
|
|
63
|
+
"url": {
|
|
64
64
|
"type": "string",
|
|
65
|
-
"title": "
|
|
66
|
-
"description": "
|
|
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
|
-
"
|
|
52
|
-
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/
|
|
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-
|
|
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
|
-
"
|
|
84
|
-
"title": "
|
|
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
|
-
"
|
|
132
|
+
"url": {
|
|
133
133
|
"type": "string",
|
|
134
134
|
"format": "uri"
|
|
135
135
|
},
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
"required": [
|
|
146
|
-
"
|
|
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
|
-
"
|
|
263
|
+
"url": {
|
|
264
264
|
"type": "string",
|
|
265
|
-
"title": "
|
|
265
|
+
"title": "Url",
|
|
266
266
|
"description": "URL the button links to",
|
|
267
267
|
"format": "uri"
|
|
268
268
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
import { EventDetailProps } from "../../EventDetailProps-
|
|
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
|
-
|
|
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,
|
|
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
|
|
43
|
+
"12.30.2022"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
|
-
"
|
|
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
|
|
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
|
|
85
|
+
"This is a location"
|
|
62
86
|
]
|
|
63
87
|
},
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
"
|
|
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-
|
|
9
|
+
import { EventTeaserProps } from "../../EventTeaserProps-e00ea659.js";
|
|
10
10
|
/**
|
|
11
11
|
* Headline for the listing
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EventListAppointmentProps } from "../../EventListAppointmentProps-
|
|
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,
|
|
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
|
-
"
|
|
43
|
-
"title": "
|
|
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
|
-
"
|
|
91
|
+
"url": {
|
|
92
92
|
"type": "string",
|
|
93
93
|
"format": "uri"
|
|
94
94
|
},
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"required": [
|
|
105
|
-
"
|
|
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
|
-
"
|
|
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": ["
|
|
49
|
+
"required": ["url", "label"]
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EventListLocationProps } from "../../EventListLocationProps-
|
|
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.
|
|
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,
|
|
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
|
|
14
|
+
"12.30.2022"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
-
"
|
|
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
|
|
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
|
|
56
|
+
"This is a location"
|
|
33
57
|
]
|
|
34
58
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
"
|
|
93
|
+
"title",
|
|
74
94
|
"date",
|
|
75
95
|
"location"
|
|
76
96
|
]
|