@kickstartds/ds-agency-premium 1.6.71--canary.45.1783.0 → 1.6.71--canary.45.1785.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/{EventListTeaserProps-cf4c7b20.d.ts → EventListTeaserProps-f5c6a5a9.d.ts} +21 -5
- package/dist/components/event-appointment/event-appointment.css +2 -3
- package/dist/components/event-filter/event-filter.css +6 -2
- package/dist/components/event-filter/index.js +4 -4
- package/dist/components/event-list/event-list.schema.dereffed.json +39 -8
- package/dist/components/event-list/index.d.ts +1 -1
- package/dist/components/event-list/index.js +5 -1
- package/dist/components/event-list-teaser/event-list-teaser.css +36 -15
- package/dist/components/event-list-teaser/event-list-teaser.schema.dereffed.json +39 -8
- package/dist/components/event-list-teaser/event-list-teaser.schema.json +31 -7
- package/dist/components/event-list-teaser/index.d.ts +1 -1
- package/dist/components/event-list-teaser/index.js +4 -2
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +53 -25
- package/dist/components/split-even/split-even.css +0 -3
- package/dist/components/split-weighted/split-weighted.css +0 -3
- 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
|
@@ -10,7 +10,7 @@ type Headline = string;
|
|
|
10
10
|
/**
|
|
11
11
|
* Short teaser text for the event
|
|
12
12
|
*/
|
|
13
|
-
type
|
|
13
|
+
type Text = string;
|
|
14
14
|
/**
|
|
15
15
|
* The date of the event
|
|
16
16
|
*/
|
|
@@ -20,9 +20,17 @@ type Date = string;
|
|
|
20
20
|
*/
|
|
21
21
|
type Time = string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Name of the location
|
|
24
|
+
*/
|
|
25
|
+
type LocationName = string;
|
|
26
|
+
/**
|
|
27
|
+
* Address of the location
|
|
28
|
+
*/
|
|
29
|
+
type Address = string;
|
|
30
|
+
/**
|
|
31
|
+
* Categories of the event
|
|
24
32
|
*/
|
|
25
|
-
type
|
|
33
|
+
type Categories = string[];
|
|
26
34
|
/**
|
|
27
35
|
* URL of the image to display
|
|
28
36
|
*/
|
|
@@ -48,16 +56,24 @@ type ARIALabel = string;
|
|
|
48
56
|
*/
|
|
49
57
|
interface EventListTeaserProps {
|
|
50
58
|
title: Headline;
|
|
51
|
-
|
|
59
|
+
text?: Text;
|
|
52
60
|
date: Date;
|
|
53
61
|
time?: Time;
|
|
54
62
|
location: Location;
|
|
63
|
+
categories?: Categories;
|
|
55
64
|
image?: Image;
|
|
56
65
|
url?: URL;
|
|
57
66
|
cta?: CallToAction;
|
|
58
67
|
ariaLabel?: ARIALabel;
|
|
59
68
|
className?: string;
|
|
60
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Location of the event
|
|
72
|
+
*/
|
|
73
|
+
interface Location {
|
|
74
|
+
name?: LocationName;
|
|
75
|
+
address?: Address;
|
|
76
|
+
}
|
|
61
77
|
/**
|
|
62
78
|
* Image to display in the teaser
|
|
63
79
|
*/
|
|
@@ -65,4 +81,4 @@ interface Image {
|
|
|
65
81
|
src?: ImageSource;
|
|
66
82
|
alt?: AltText;
|
|
67
83
|
}
|
|
68
|
-
export { Headline,
|
|
84
|
+
export { Headline, Text, Date, Time, LocationName, Address, Categories, ImageSource, AltText, URL, CallToAction, ARIALabel, EventListTeaserProps, Location, Image };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.dsa-event-appointment {
|
|
2
|
-
--g-link--color: var(--ks-text-color-interface
|
|
3
|
-
--g-link--color-hover: var(--ks-text-color-interface
|
|
2
|
+
--g-link--color: var(--ks-text-color-interface);
|
|
3
|
+
--g-link--color-hover: var(--ks-text-color-interface);
|
|
4
4
|
--g-link--border-radius: var(--ks-border-radius-card);
|
|
5
5
|
--g-link--background: var(--ks-background-color-default);
|
|
6
6
|
--g-link--background-hover: var(--ks-background-color-default);
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
}
|
|
26
26
|
.dsa-event-appointment__info--date {
|
|
27
27
|
font-weight: var(--ks-font-weight-semi-bold);
|
|
28
|
-
color: var(--ks-text-color-display);
|
|
29
28
|
}
|
|
30
29
|
.dsa-event-appointment__info--time {
|
|
31
30
|
font-weight: var(--ks-font-weight-regular);
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
.dsa-event-filter {
|
|
2
2
|
border-radius: var(--ks-border-radius-card);
|
|
3
|
-
border: var(--ks-border-width-default) solid var(--ks-border-color-card);
|
|
4
3
|
padding: var(--ks-spacing-inset-m);
|
|
5
4
|
display: flex;
|
|
6
5
|
flex-direction: column;
|
|
7
|
-
gap: var(--ks-spacing-stack-
|
|
6
|
+
gap: var(--ks-spacing-stack-s);
|
|
7
|
+
background-color: var(--ks-background-color-card);
|
|
8
8
|
}
|
|
9
9
|
.dsa-event-filter__item {
|
|
10
|
+
background-color: var(--ks-background-color-default);
|
|
11
|
+
padding: var(--ks-spacing-inset-squish-m);
|
|
12
|
+
border-radius: var(--ks-border-radius-card);
|
|
10
13
|
display: flex;
|
|
11
14
|
flex-direction: column;
|
|
12
15
|
gap: var(--ks-spacing-stack-xs);
|
|
16
|
+
margin-bottom: var(--ks-spacing-stack-s);
|
|
13
17
|
}
|
|
14
18
|
.dsa-event-filter__topic {
|
|
15
19
|
font: var(--dsa-topic--font);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./event-filter.css";
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, createContext, useContext } from 'react';
|
|
4
4
|
import { TextField } from '@kickstartds/form/lib/text-field';
|
|
5
5
|
import { Checkbox } from '@kickstartds/form/lib/checkbox';
|
|
@@ -17,9 +17,9 @@ const EventFilterContextDefault = forwardRef(({ categories = {
|
|
|
17
17
|
label: "Filter Appointments",
|
|
18
18
|
}, resetButton = {
|
|
19
19
|
label: "Reset Filters",
|
|
20
|
-
}, }, ref) => (jsxs("div", { className: "dsa-event-filter", ref: ref, children: [datePicker?.toggle && (jsxs(
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
}, }, ref) => (jsxs("div", { className: "dsa-event-filter", ref: ref, children: [datePicker?.toggle && (jsxs(Fragment, { children: [jsx("span", { className: "dsa-event-filter__topic", children: datePicker.title || "Find Appointment" }), jsx("div", { className: "dsa-event-filter__item", children: jsxs("div", { className: "dsa-event-filter__date-picker", children: [jsx(TextField, { label: datePicker.dateFromInput.label || "From", placeholder: datePicker.dateFromInput.placeholder || "Select a date" }), jsx(TextField, { label: datePicker.dateToInput.label || "To", placeholder: datePicker.dateToInput.placeholder || "Select a date" })] }) })] })), categories && categories?.toggle && (jsxs(Fragment, { children: [jsx("span", { className: "dsa-event-filter__topic", children: categories?.title || "Categories" }), jsx("div", { className: "dsa-event-filter__item", children: jsx("div", { className: "dsa-event-filter__categories", children: categories &&
|
|
21
|
+
categories.categoryCheckboxes.length > 0 &&
|
|
22
|
+
categories.categoryCheckboxes.map((category, index) => (jsx(Checkbox, { label: category }, index))) }) })] })), jsxs("div", { className: "dsa-event-filter__buttons", children: [jsx(Button, { size: "small", label: applyButton?.label || "Filter Appointments", variant: "primary", onClick: () => {
|
|
23
23
|
// Handle button click
|
|
24
24
|
} }), jsx(Button, { size: "small", label: resetButton?.label || "Reset Filters", onClick: () => {
|
|
25
25
|
// Handle button click
|
|
@@ -140,13 +140,13 @@
|
|
|
140
140
|
"This is a event teaser title"
|
|
141
141
|
]
|
|
142
142
|
},
|
|
143
|
-
"
|
|
144
|
-
"title": "
|
|
143
|
+
"text": {
|
|
144
|
+
"title": "Text",
|
|
145
145
|
"description": "Short teaser text for the event",
|
|
146
146
|
"type": "string",
|
|
147
147
|
"format": "markdown",
|
|
148
148
|
"examples": [
|
|
149
|
-
"
|
|
149
|
+
"The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence."
|
|
150
150
|
]
|
|
151
151
|
},
|
|
152
152
|
"date": {
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"type": "string",
|
|
156
156
|
"format": "date",
|
|
157
157
|
"examples": [
|
|
158
|
-
"
|
|
158
|
+
"FRI, JAN 16"
|
|
159
159
|
]
|
|
160
160
|
},
|
|
161
161
|
"time": {
|
|
@@ -169,10 +169,41 @@
|
|
|
169
169
|
"location": {
|
|
170
170
|
"title": "Location",
|
|
171
171
|
"description": "Location of the event",
|
|
172
|
-
"type": "
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
"type": "object",
|
|
173
|
+
"properties": {
|
|
174
|
+
"name": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"title": "Location Name",
|
|
177
|
+
"description": "Name of the location",
|
|
178
|
+
"examples": [
|
|
179
|
+
"Stadthalle"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"address": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"title": "Address",
|
|
185
|
+
"description": "Address of the location",
|
|
186
|
+
"examples": [
|
|
187
|
+
"Schaafenstraße 25 12345 Köln"
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"additionalProperties": false
|
|
192
|
+
},
|
|
193
|
+
"categories": {
|
|
194
|
+
"title": "Categories",
|
|
195
|
+
"description": "Categories of the event",
|
|
196
|
+
"type": "array",
|
|
197
|
+
"items": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"examples": [
|
|
200
|
+
"AI",
|
|
201
|
+
"Technology",
|
|
202
|
+
"Innovation"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"default": [
|
|
206
|
+
"AI"
|
|
176
207
|
]
|
|
177
208
|
},
|
|
178
209
|
"image": {
|
|
@@ -6,7 +6,7 @@ import { FC, PropsWithChildren } from "react";
|
|
|
6
6
|
* and run json-schema-to-typescript to regenerate this file.
|
|
7
7
|
*/
|
|
8
8
|
import { EventFilterProps } from "../../EventFilterProps-b190eb86.js";
|
|
9
|
-
import { EventListTeaserProps } from "../../EventListTeaserProps-
|
|
9
|
+
import { EventListTeaserProps } from "../../EventListTeaserProps-f5c6a5a9.js";
|
|
10
10
|
interface EventListProps {
|
|
11
11
|
/**
|
|
12
12
|
* Referenced component EventFilterProps
|
|
@@ -16,8 +16,12 @@ import '@kickstartds/base/lib/button';
|
|
|
16
16
|
import '@kickstartds/base/lib/icon';
|
|
17
17
|
import '@kickstartds/core/lib/container';
|
|
18
18
|
import '@kickstartds/base/lib/picture';
|
|
19
|
+
import 'markdown-to-jsx';
|
|
20
|
+
import '@kickstartds/base/lib/tag-label';
|
|
19
21
|
|
|
20
|
-
const EventList = ({ filter, events, }) => (jsx(Fragment, { children: jsx(Section, { width: "wide", children: jsx(SplitWeighted, { verticalAlign: "sticky",
|
|
22
|
+
const EventList = ({ filter, events, }) => (jsx(Fragment, { children: jsx(Section, { width: "wide", children: jsx(SplitWeighted, { verticalAlign: "sticky", mainLayout: {
|
|
23
|
+
minWidth: "narrow",
|
|
24
|
+
}, order: {
|
|
21
25
|
desktop: "asideFirst",
|
|
22
26
|
mobile: "asideFirst",
|
|
23
27
|
}, aside: jsx(EventFilter, { ...filter }), main: jsx(Fragment, { children: events.map((event, index) => (jsx(EventListTeaser, { ...event }, index))) }) }) }) }));
|
|
@@ -5,42 +5,46 @@
|
|
|
5
5
|
|
|
6
6
|
.dsa-event-list-teaser {
|
|
7
7
|
--g-link--border-radius: var(--ks-border-radius-card);
|
|
8
|
+
display: block;
|
|
9
|
+
border: var(--ks-border-width-default) solid var(--ks-border-color-card-interactive);
|
|
8
10
|
display: flex;
|
|
11
|
+
padding: var(--ks-spacing-inset-m);
|
|
9
12
|
gap: var(--ks-spacing-inline-s);
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
position: relative;
|
|
14
|
+
flex-wrap: wrap;
|
|
12
15
|
}
|
|
13
16
|
.dsa-event-list-teaser:hover {
|
|
14
17
|
border-color: var(--ks-border-color-card-interactive-hover);
|
|
15
18
|
}
|
|
16
19
|
.dsa-event-list-teaser__content {
|
|
17
20
|
display: flex;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
gap: var(--ks-spacing-stack-s);
|
|
24
|
+
flex-basis: var(--dsa-tile--width_small);
|
|
25
|
+
flex-grow: 10;
|
|
26
|
+
flex-shrink: 0;
|
|
22
27
|
}
|
|
23
28
|
.dsa-event-list-teaser__text {
|
|
24
29
|
display: flex;
|
|
25
30
|
flex-direction: column;
|
|
26
31
|
justify-content: center;
|
|
27
|
-
gap: var(--ks-spacing-stack-
|
|
28
|
-
flex-basis: var(--dsa-tile--width_large);
|
|
29
|
-
flex-grow: 1000;
|
|
32
|
+
gap: var(--ks-spacing-stack-s);
|
|
30
33
|
}
|
|
31
34
|
.dsa-event-list-teaser__image {
|
|
32
35
|
flex-shrink: 1;
|
|
33
|
-
flex-grow:
|
|
34
|
-
flex-basis: var(--dsa-tile--
|
|
36
|
+
flex-grow: 5;
|
|
37
|
+
flex-basis: var(--dsa-tile--width_smallest);
|
|
38
|
+
aspect-ratio: 4/3;
|
|
35
39
|
}
|
|
36
40
|
.dsa-event-list-teaser__image img {
|
|
37
41
|
object-fit: cover;
|
|
38
42
|
border-radius: var(--ks-border-radius-card);
|
|
39
43
|
width: 100%;
|
|
40
|
-
|
|
44
|
+
aspect-ratio: 4/3;
|
|
41
45
|
}
|
|
42
46
|
.dsa-event-list-teaser__teaser-text {
|
|
43
|
-
font: var(--ks-font-copy-
|
|
47
|
+
font: var(--ks-font-copy-s);
|
|
44
48
|
color: var(--ks-text-color-interface);
|
|
45
49
|
margin: 0;
|
|
46
50
|
}
|
|
@@ -49,26 +53,43 @@
|
|
|
49
53
|
font-weight: var(--ks-font-weight-semi-bold);
|
|
50
54
|
color: var(--ks-text-color-display);
|
|
51
55
|
}
|
|
56
|
+
.dsa-event-list-teaser__address {
|
|
57
|
+
margin: 0;
|
|
58
|
+
}
|
|
59
|
+
.dsa-event-list-teaser__categories {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-wrap: wrap;
|
|
62
|
+
gap: var(--ks-spacing-xxs) var(--ks-spacing-xxs);
|
|
63
|
+
align-items: center;
|
|
64
|
+
max-width: var(--dsa-tile--width_small);
|
|
65
|
+
}
|
|
52
66
|
.dsa-event-list-teaser__infos {
|
|
53
67
|
display: flex;
|
|
54
68
|
flex-wrap: wrap;
|
|
55
|
-
gap: var(--ks-spacing-
|
|
69
|
+
gap: var(--ks-spacing-stack-s) var(--ks-spacing-inline-s);
|
|
56
70
|
align-items: flex-start;
|
|
57
71
|
}
|
|
72
|
+
.dsa-event-list-teaser__name {
|
|
73
|
+
font-weight: var(--ks-font-weight-semi-bold);
|
|
74
|
+
color: var(--dsa-topic--color);
|
|
75
|
+
}
|
|
58
76
|
.dsa-event-list-teaser__info {
|
|
59
77
|
display: flex;
|
|
60
78
|
gap: calc(var(--ks-spacing-xxs) * 0.75);
|
|
61
79
|
font: var(--ks-font-interface-s);
|
|
62
80
|
align-items: center;
|
|
81
|
+
justify-content: flex-start;
|
|
63
82
|
color: var(--ks-text-color-interface);
|
|
64
83
|
}
|
|
84
|
+
.dsa-event-list-teaser__info--location {
|
|
85
|
+
flex-basis: 100%;
|
|
86
|
+
}
|
|
65
87
|
.dsa-event-list-teaser__info .icon {
|
|
66
88
|
align-self: flex-start;
|
|
67
89
|
width: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
|
|
68
90
|
height: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
|
|
69
91
|
color: var(--ks-text-color-primary);
|
|
70
92
|
flex-shrink: 0;
|
|
71
|
-
flex-grow: 1;
|
|
72
93
|
}
|
|
73
94
|
.dsa-event-list-teaser__cta {
|
|
74
95
|
font: var(--ks-font-interface-s);
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"This is a event teaser title"
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
|
-
"
|
|
18
|
-
"title": "
|
|
17
|
+
"text": {
|
|
18
|
+
"title": "Text",
|
|
19
19
|
"description": "Short teaser text for the event",
|
|
20
20
|
"type": "string",
|
|
21
21
|
"format": "markdown",
|
|
22
22
|
"examples": [
|
|
23
|
-
"
|
|
23
|
+
"The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence."
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"date": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"type": "string",
|
|
30
30
|
"format": "date",
|
|
31
31
|
"examples": [
|
|
32
|
-
"
|
|
32
|
+
"FRI, JAN 16"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
35
|
"time": {
|
|
@@ -43,10 +43,41 @@
|
|
|
43
43
|
"location": {
|
|
44
44
|
"title": "Location",
|
|
45
45
|
"description": "Location of the event",
|
|
46
|
-
"type": "
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"name": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"title": "Location Name",
|
|
51
|
+
"description": "Name of the location",
|
|
52
|
+
"examples": [
|
|
53
|
+
"Stadthalle"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"address": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"title": "Address",
|
|
59
|
+
"description": "Address of the location",
|
|
60
|
+
"examples": [
|
|
61
|
+
"Schaafenstraße 25 12345 Köln"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
},
|
|
67
|
+
"categories": {
|
|
68
|
+
"title": "Categories",
|
|
69
|
+
"description": "Categories of the event",
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"examples": [
|
|
74
|
+
"AI",
|
|
75
|
+
"Technology",
|
|
76
|
+
"Innovation"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"default": [
|
|
80
|
+
"AI"
|
|
50
81
|
]
|
|
51
82
|
},
|
|
52
83
|
"image": {
|
|
@@ -12,19 +12,21 @@
|
|
|
12
12
|
"format": "markdown",
|
|
13
13
|
"examples": ["This is a event teaser title"]
|
|
14
14
|
},
|
|
15
|
-
"
|
|
16
|
-
"title": "
|
|
15
|
+
"text": {
|
|
16
|
+
"title": "Text",
|
|
17
17
|
"description": "Short teaser text for the event",
|
|
18
18
|
"type": "string",
|
|
19
19
|
"format": "markdown",
|
|
20
|
-
"examples": [
|
|
20
|
+
"examples": [
|
|
21
|
+
"The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence."
|
|
22
|
+
]
|
|
21
23
|
},
|
|
22
24
|
"date": {
|
|
23
25
|
"title": "Date",
|
|
24
26
|
"description": "The date of the event",
|
|
25
27
|
"type": "string",
|
|
26
28
|
"format": "date",
|
|
27
|
-
"examples": ["
|
|
29
|
+
"examples": ["FRI, JAN 16"]
|
|
28
30
|
},
|
|
29
31
|
"time": {
|
|
30
32
|
"title": "Time",
|
|
@@ -35,9 +37,31 @@
|
|
|
35
37
|
"location": {
|
|
36
38
|
"title": "Location",
|
|
37
39
|
"description": "Location of the event",
|
|
38
|
-
"type": "
|
|
39
|
-
"
|
|
40
|
-
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"title": "Location Name",
|
|
45
|
+
"description": "Name of the location",
|
|
46
|
+
"examples": ["Stadthalle"]
|
|
47
|
+
},
|
|
48
|
+
"address": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"title": "Address",
|
|
51
|
+
"description": "Address of the location",
|
|
52
|
+
"examples": ["Schaafenstraße 25 12345 Köln"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"categories": {
|
|
57
|
+
"title": "Categories",
|
|
58
|
+
"description": "Categories of the event",
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"examples": ["AI", "Technology", "Innovation"]
|
|
63
|
+
},
|
|
64
|
+
"default": ["AI"]
|
|
41
65
|
},
|
|
42
66
|
"image": {
|
|
43
67
|
"title": "Image",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
import { EventListTeaserProps } from "../../EventListTeaserProps-
|
|
3
|
+
import { EventListTeaserProps } from "../../EventListTeaserProps-f5c6a5a9.js";
|
|
4
4
|
declare const EventListTeaserContextDefault: import("react").ForwardRefExoticComponent<EventListTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
5
5
|
declare const EventListTeaserContext: import("react").Context<import("react").ForwardRefExoticComponent<EventListTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
6
6
|
declare const EventListTeaser: import("react").ForwardRefExoticComponent<EventListTeaserProps & HTMLAttributes<HTMLAnchorElement> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -5,9 +5,11 @@ import { forwardRef, createContext, useContext } from 'react';
|
|
|
5
5
|
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
6
|
import { Container } from '@kickstartds/core/lib/container';
|
|
7
7
|
import { Picture } from '@kickstartds/base/lib/picture';
|
|
8
|
+
import Markdown from 'markdown-to-jsx';
|
|
9
|
+
import { TagLabel } from '@kickstartds/base/lib/tag-label';
|
|
8
10
|
|
|
9
|
-
const EventListTeaserContextDefault = forwardRef(({ title,
|
|
10
|
-
return (jsx(Container, { name: "event-list-teaser", children:
|
|
11
|
+
const EventListTeaserContextDefault = forwardRef(({ title, text, date, time, categories, location, image, cta, url, ariaLabel, className, ...rest }, ref) => {
|
|
12
|
+
return (jsx(Container, { name: "event-list-teaser", children: jsxs("a", { className: classnames(className, "dsa-event-list-teaser"), ...rest, href: url, ref: ref, "aria-label": ariaLabel, children: [jsxs("span", { className: "dsa-event-list-teaser__content", children: [jsxs("span", { className: "dsa-event-list-teaser__text", children: [jsx("span", { className: "dsa-event-list-teaser__title", children: title }), jsx("div", { className: "dsa-event-list-teaser__categories", children: categories.map((category) => (jsx(TagLabel, { label: category, size: "s" }, category))) }), jsxs("span", { className: "dsa-event-list-teaser__infos", children: [jsxs("span", { className: "dsa-event-list-teaser__info", children: [jsx(Icon, { "aria-hidden": true, icon: "date" }), date] }), jsxs("span", { className: "dsa-event-list-teaser__info", children: [jsx(Icon, { "aria-hidden": true, icon: "time" }), time] }), jsxs("span", { className: "dsa-event-list-teaser__info dsa-event-list-teaser__info--location", children: [jsx(Icon, { "aria-hidden": true, icon: "map-pin" }), jsxs("span", { className: "dsa-event-list-teaser__location", children: [location?.name && (jsx("span", { className: "dsa-event-list-teaser__name", children: location.name })), jsx(Markdown, { className: "dsa-event-list-teaser__address", children: location?.address })] })] })] }), jsx("p", { className: "dsa-event-list-teaser__teaser-text", children: text })] }), jsxs("span", { className: "dsa-event-list-teaser__cta", children: [jsx("span", { children: cta }), jsx(Icon, { "aria-hidden": true, icon: "chevron-right" })] })] }), image && image.src && (jsx("div", { className: "dsa-event-list-teaser__image", children: jsx(Picture, { src: image?.src, alt: image?.alt }) }))] }) }));
|
|
11
13
|
});
|
|
12
14
|
const EventListTeaserContext = createContext(EventListTeaserContextDefault);
|
|
13
15
|
const EventListTeaser = forwardRef((props, ref) => {
|
|
@@ -939,7 +939,7 @@
|
|
|
939
939
|
"id": "page-archetypes-event-list--event-list",
|
|
940
940
|
"group": "Page Archetypes/Event List",
|
|
941
941
|
"name": "EventList",
|
|
942
|
-
"code": "<EventList\n events={[\n {\n ariaLabel: 'Event teaser for ',\n cta: 'Show
|
|
942
|
+
"code": "<EventList\n events={[\n {\n ariaLabel: 'Event teaser for ',\n categories: [\n 'Buyers',\n 'Sellers',\n 'Renters'\n ],\n cta: 'Show appointment',\n date: 'FRI, JAN 16',\n image: {\n alt: 'A futuristic AI concept image',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: '123 Main St<br/>\\n10115 Berlin',\n name: 'Berlin Convention Center'\n },\n text: 'Join us for the Real Estate Expo 2025, where industry leaders will discuss the future of real estate.',\n time: '10:00 AM',\n title: 'Real Estate Expo 2025',\n url: 'https://example.com'\n },\n {\n ariaLabel: 'Event teaser for ',\n categories: [\n 'AI'\n ],\n cta: 'Show appointment',\n date: '14.01.2025',\n image: {\n alt: 'A futuristic AI concept image',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: '123 Main St<br/>\\n50677 Cologne',\n name: 'Cologne Exhibition Center'\n },\n text: 'The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. AI is transforming industries and shaping the future. Don\\'t miss out on this opportunity to learn from experts and network with peers.',\n time: '15:30 - 17:00',\n title: 'The Future of AI',\n url: 'https://example.com'\n },\n {\n ariaLabel: 'Event teaser for ',\n categories: [\n 'Sustainability',\n 'Technology'\n ],\n cta: 'Show appointment',\n date: '20/30/2025',\n image: {\n alt: 'A futuristic AI concept image',\n src: 'https://picsum.photos/seed/flower/800/600'\n },\n location: {\n address: '123 Main St<br/>\\n50677 Cologne',\n name: 'Cologne Exhibition Center'\n },\n text: 'Welcome to the Global Innovations Summit 2025, where we will explore the latest advancements in sustainable technologies. Join us for a day of insightful discussions and networking opportunities with industry leaders.',\n time: 'FROM 17:00',\n title: 'Global Innovations Summit 2025: Advancing Sustainable Technologies',\n url: 'https://example.com'\n }\n ]}\n filter={{\n applyButton: {\n label: 'Filter Appointments'\n },\n categories: {\n categoryCheckboxes: [\n 'All',\n 'Buyers',\n 'Sellers',\n 'Renters',\n 'Landlords',\n 'Tenants'\n ],\n title: 'Categories',\n toggle: true\n },\n datePicker: {\n dateFromInput: {\n label: 'From',\n placeholder: 'Select a date'\n },\n dateToInput: {\n label: 'To',\n placeholder: 'Select a date'\n },\n title: 'Find Appointment',\n toggle: true\n },\n resetButton: {\n label: 'Reset Filters'\n }\n }}\n/>",
|
|
943
943
|
"args": {
|
|
944
944
|
"filter": {
|
|
945
945
|
"datePicker": {
|
|
@@ -975,45 +975,66 @@
|
|
|
975
975
|
},
|
|
976
976
|
"events": [
|
|
977
977
|
{
|
|
978
|
-
"title": "
|
|
979
|
-
"
|
|
980
|
-
"date": "
|
|
981
|
-
"time": "10:00",
|
|
982
|
-
"location":
|
|
978
|
+
"title": "Real Estate Expo 2025",
|
|
979
|
+
"text": "Join us for the Real Estate Expo 2025, where industry leaders will discuss the future of real estate.",
|
|
980
|
+
"date": "FRI, JAN 16",
|
|
981
|
+
"time": "10:00 AM",
|
|
982
|
+
"location": {
|
|
983
|
+
"name": "Berlin Convention Center",
|
|
984
|
+
"address": "123 Main St<br/>\n10115 Berlin"
|
|
985
|
+
},
|
|
986
|
+
"categories": [
|
|
987
|
+
"Buyers",
|
|
988
|
+
"Sellers",
|
|
989
|
+
"Renters"
|
|
990
|
+
],
|
|
983
991
|
"image": {
|
|
984
992
|
"src": "https://picsum.photos/seed/flower/800/600",
|
|
985
|
-
"alt": "
|
|
993
|
+
"alt": "A futuristic AI concept image"
|
|
986
994
|
},
|
|
987
995
|
"url": "https://example.com",
|
|
988
|
-
"cta": "Show
|
|
996
|
+
"cta": "Show appointment",
|
|
989
997
|
"ariaLabel": "Event teaser for "
|
|
990
998
|
},
|
|
991
999
|
{
|
|
992
|
-
"title": "
|
|
993
|
-
"
|
|
994
|
-
"date": "
|
|
995
|
-
"time": "
|
|
996
|
-
"location":
|
|
1000
|
+
"title": "The Future of AI",
|
|
1001
|
+
"text": "The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. AI is transforming industries and shaping the future. Don't miss out on this opportunity to learn from experts and network with peers.",
|
|
1002
|
+
"date": "14.01.2025",
|
|
1003
|
+
"time": "15:30 - 17:00",
|
|
1004
|
+
"location": {
|
|
1005
|
+
"name": "Cologne Exhibition Center",
|
|
1006
|
+
"address": "123 Main St<br/>\n50677 Cologne"
|
|
1007
|
+
},
|
|
1008
|
+
"categories": [
|
|
1009
|
+
"AI"
|
|
1010
|
+
],
|
|
997
1011
|
"image": {
|
|
998
1012
|
"src": "https://picsum.photos/seed/flower/800/600",
|
|
999
|
-
"alt": "
|
|
1013
|
+
"alt": "A futuristic AI concept image"
|
|
1000
1014
|
},
|
|
1001
1015
|
"url": "https://example.com",
|
|
1002
|
-
"cta": "Show
|
|
1016
|
+
"cta": "Show appointment",
|
|
1003
1017
|
"ariaLabel": "Event teaser for "
|
|
1004
1018
|
},
|
|
1005
1019
|
{
|
|
1006
|
-
"title": "
|
|
1007
|
-
"
|
|
1008
|
-
"date": "
|
|
1009
|
-
"time": "
|
|
1010
|
-
"location":
|
|
1020
|
+
"title": "Global Innovations Summit 2025: Advancing Sustainable Technologies",
|
|
1021
|
+
"text": "Welcome to the Global Innovations Summit 2025, where we will explore the latest advancements in sustainable technologies. Join us for a day of insightful discussions and networking opportunities with industry leaders.",
|
|
1022
|
+
"date": "20/30/2025",
|
|
1023
|
+
"time": "FROM 17:00",
|
|
1024
|
+
"location": {
|
|
1025
|
+
"name": "Cologne Exhibition Center",
|
|
1026
|
+
"address": "123 Main St<br/>\n50677 Cologne"
|
|
1027
|
+
},
|
|
1028
|
+
"categories": [
|
|
1029
|
+
"Sustainability",
|
|
1030
|
+
"Technology"
|
|
1031
|
+
],
|
|
1011
1032
|
"image": {
|
|
1012
1033
|
"src": "https://picsum.photos/seed/flower/800/600",
|
|
1013
|
-
"alt": "
|
|
1034
|
+
"alt": "A futuristic AI concept image"
|
|
1014
1035
|
},
|
|
1015
1036
|
"url": "https://example.com",
|
|
1016
|
-
"cta": "Show
|
|
1037
|
+
"cta": "Show appointment",
|
|
1017
1038
|
"ariaLabel": "Event teaser for "
|
|
1018
1039
|
}
|
|
1019
1040
|
]
|
|
@@ -1805,13 +1826,19 @@
|
|
|
1805
1826
|
"id": "event-event-list-teaser--default",
|
|
1806
1827
|
"group": "Event/ Event List Teaser",
|
|
1807
1828
|
"name": "Default",
|
|
1808
|
-
"code": "<EventListTeaser\n ariaLabel=\"Event teaser for \"\n cta=\"Show event\"\n date=\"12/30/2025\"\n image={{\n alt: 'A futuristic AI concept image',\n src: 'https://picsum.photos/seed/flower/800/600'\n }}\n link={{\n text: 'Show event',\n url: '#'\n }}\n location=\"
|
|
1829
|
+
"code": "<EventListTeaser\n ariaLabel=\"Event teaser for \"\n categories={[\n 'AI'\n ]}\n cta=\"Show event\"\n date=\"12/30/2025\"\n image={{\n alt: 'A futuristic AI concept image',\n src: 'https://picsum.photos/seed/flower/800/600'\n }}\n link={{\n text: 'Show event',\n url: '#'\n }}\n location={{\n address: 'Schaafenstraße 25 12345 Köln',\n name: 'Stadthalle'\n }}\n teaserText=\"The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.\"\n text=\"The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.\"\n time=\"10:00\"\n title=\"The Future of AI\"\n url=\"https://example.com\"\n/>",
|
|
1809
1830
|
"args": {
|
|
1810
1831
|
"title": "The Future of AI",
|
|
1811
|
-
"
|
|
1832
|
+
"text": "The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence. The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.",
|
|
1812
1833
|
"date": "12/30/2025",
|
|
1813
1834
|
"time": "10:00",
|
|
1814
|
-
"location":
|
|
1835
|
+
"location": {
|
|
1836
|
+
"name": "Stadthalle",
|
|
1837
|
+
"address": "Schaafenstraße 25 12345 Köln"
|
|
1838
|
+
},
|
|
1839
|
+
"categories": [
|
|
1840
|
+
"AI"
|
|
1841
|
+
],
|
|
1815
1842
|
"image": {
|
|
1816
1843
|
"src": "https://picsum.photos/seed/flower/800/600",
|
|
1817
1844
|
"alt": "A futuristic AI concept image"
|
|
@@ -1819,6 +1846,7 @@
|
|
|
1819
1846
|
"url": "https://example.com",
|
|
1820
1847
|
"cta": "Show event",
|
|
1821
1848
|
"ariaLabel": "Event teaser for ",
|
|
1849
|
+
"teaserText": "The Future of AI is here and now - Join us to explore the latest advancements in artificial intelligence.",
|
|
1822
1850
|
"link": {
|
|
1823
1851
|
"url": "#",
|
|
1824
1852
|
"text": "Show event"
|
|
@@ -85,9 +85,6 @@
|
|
|
85
85
|
.l-split-weighted__content .l-split-weighted__content-container--gutter-none {
|
|
86
86
|
gap: 0;
|
|
87
87
|
}
|
|
88
|
-
.l-split-weighted__content .c-button {
|
|
89
|
-
width: fit-content;
|
|
90
|
-
}
|
|
91
88
|
.l-split-weighted__main {
|
|
92
89
|
flex-basis: var(--dsa-split-weighted__main--flex-basis_default, calc(var(--dsa-content--width_default) * 1));
|
|
93
90
|
flex-grow: 1000;
|
package/dist/tokens/themes.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 04 Jul 2025 09:32:40 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root [ks-theme=business] {
|
|
6
6
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
|
@@ -2727,7 +2727,7 @@
|
|
|
2727
2727
|
}
|
|
2728
2728
|
/**
|
|
2729
2729
|
* Do not edit directly
|
|
2730
|
-
* Generated on
|
|
2730
|
+
* Generated on Fri, 04 Jul 2025 09:32:45 GMT
|
|
2731
2731
|
*/
|
|
2732
2732
|
:root [ks-theme=google] {
|
|
2733
2733
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
|
@@ -5458,7 +5458,7 @@
|
|
|
5458
5458
|
}
|
|
5459
5459
|
/**
|
|
5460
5460
|
* Do not edit directly
|
|
5461
|
-
* Generated on
|
|
5461
|
+
* Generated on Fri, 04 Jul 2025 09:32:43 GMT
|
|
5462
5462
|
*/
|
|
5463
5463
|
:root [ks-theme=ngo] {
|
|
5464
5464
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
|
@@ -8459,7 +8459,7 @@
|
|
|
8459
8459
|
}
|
|
8460
8460
|
/**
|
|
8461
8461
|
* Do not edit directly
|
|
8462
|
-
* Generated on
|
|
8462
|
+
* Generated on Fri, 04 Jul 2025 09:32:47 GMT
|
|
8463
8463
|
*/
|
|
8464
8464
|
:root [ks-theme=telekom] {
|
|
8465
8465
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
package/dist/tokens/tokens.css
CHANGED
package/dist/tokens/tokens.js
CHANGED