@kickstartds/ds-agency-premium 1.6.71--canary.45.1803.0 → 1.6.71--canary.45.1813.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/{BlogOverviewProps-9f207f1c.d.ts → BlogOverviewProps-d62a0a9a.d.ts} +2 -2
- package/dist/{BlogPostProps-6b3cff22.d.ts → BlogPostProps-c760fd2a.d.ts} +1 -1
- package/dist/{EventListTeaserProps-796e306c.d.ts → EventListTeaserProps-5cc94436.d.ts} +9 -4
- package/dist/PageProps-aa29c554.d.ts +1 -1
- package/dist/{SectionProps-7caa223c.d.ts → SectionProps-21d04028.d.ts} +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +5 -4
- package/dist/components/blog-overview/index.d.ts +1 -1
- package/dist/components/blog-post/blog-post.schema.dereffed.json +5 -4
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-teaser/blog-teaser.css +2 -2
- package/dist/components/blog-teaser/index.d.ts +1 -1
- package/dist/components/contact/contact.css +2 -2
- package/dist/components/cta/cta.css +3 -3
- package/dist/components/event-list/event-list.schema.dereffed.json +11 -3
- package/dist/components/event-list/index.d.ts +1 -1
- package/dist/components/event-list/index.js +45 -2
- package/dist/components/event-list-teaser/event-list-teaser.css +23 -16
- package/dist/components/event-list-teaser/event-list-teaser.schema.dereffed.json +11 -3
- package/dist/components/event-list-teaser/event-list-teaser.schema.json +9 -3
- package/dist/components/event-list-teaser/index.d.ts +1 -1
- package/dist/components/event-list-teaser/index.js +2 -2
- package/dist/components/event-registration/event-registration.css +79 -0
- package/dist/components/event-registration/event-registration.schema.dereffed.json +174 -0
- package/dist/components/event-registration/event-registration.schema.json +138 -0
- package/dist/components/event-registration/index.d.ts +106 -0
- package/dist/components/event-registration/index.js +23 -0
- package/dist/components/features/features.css +2 -2
- package/dist/components/hero/hero.css +2 -2
- package/dist/components/image-story/image-story.css +4 -4
- package/dist/components/image-text/image-text.css +4 -4
- package/dist/components/index/index.d.ts +2 -2
- package/dist/components/mosaic/mosaic.css +4 -4
- package/dist/components/page/page.schema.dereffed.json +5 -4
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/pagination/index.js +4 -4
- package/dist/components/presets.json +142 -183
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +2 -16
- package/dist/components/section/section.schema.dereffed.json +5 -4
- package/dist/components/section/section.schema.json +3 -2
- package/dist/components/split-weighted/index.js +3 -4
- package/dist/components/split-weighted/split-weighted.css +6 -0
- package/dist/components/teaser-card/teaser-card.css +1 -1
- package/dist/components/text/text.css +2 -2
- package/dist/components/video-curtain/video-curtain.css +2 -2
- package/dist/global.css +3 -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
- /package/dist/{BlogTeaserProps-f5855e93.d.ts → BlogTeaserProps-d62a0a9a.d.ts} +0 -0
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { SectionProps } from "./SectionProps-
|
|
7
|
-
import { BlogTeaserProps } from "./BlogTeaserProps-
|
|
6
|
+
import { SectionProps } from "./SectionProps-21d04028.js";
|
|
7
|
+
import { BlogTeaserProps } from "./BlogTeaserProps-d62a0a9a.js";
|
|
8
8
|
import { CtaProps } from "./CtaProps-babe4ee6.js";
|
|
9
9
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
10
10
|
/**
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { BlogHeadProps } from "./BlogHeadProps-c04a5ed8.js";
|
|
7
7
|
import { BlogAsideProps } from "./BlogAsideProps-c760fd2a.js";
|
|
8
|
-
import { SectionProps } from "./SectionProps-
|
|
8
|
+
import { SectionProps } from "./SectionProps-21d04028.js";
|
|
9
9
|
import { CtaProps } from "./CtaProps-babe4ee6.js";
|
|
10
10
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
11
11
|
/**
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* Category of the event teaser
|
|
8
|
+
*/
|
|
9
|
+
type Category = string;
|
|
6
10
|
/**
|
|
7
11
|
* Title of the event
|
|
8
12
|
*/
|
|
@@ -28,9 +32,9 @@ type LocationName = string;
|
|
|
28
32
|
*/
|
|
29
33
|
type Address = string;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Tags associated with the event
|
|
32
36
|
*/
|
|
33
|
-
type
|
|
37
|
+
type Tags = string[];
|
|
34
38
|
/**
|
|
35
39
|
* URL of the image to display
|
|
36
40
|
*/
|
|
@@ -55,12 +59,13 @@ type ARIALabel = string;
|
|
|
55
59
|
* Display an event teaser with date, title and location
|
|
56
60
|
*/
|
|
57
61
|
interface EventListTeaserProps {
|
|
62
|
+
category?: Category;
|
|
58
63
|
title: Headline;
|
|
59
64
|
text?: Text;
|
|
60
65
|
date: Date;
|
|
61
66
|
time?: Time;
|
|
62
67
|
location: Location;
|
|
63
|
-
|
|
68
|
+
tags?: Tags;
|
|
64
69
|
image?: Image;
|
|
65
70
|
url?: URL;
|
|
66
71
|
ctaText?: CallToAction;
|
|
@@ -81,4 +86,4 @@ interface Image {
|
|
|
81
86
|
src?: ImageSource;
|
|
82
87
|
alt?: AltText;
|
|
83
88
|
}
|
|
84
|
-
export { Headline, Text, Date, Time, LocationName, Address,
|
|
89
|
+
export { Category, Headline, Text, Date, Time, LocationName, Address, Tags, ImageSource, AltText, URL, CallToAction, ARIALabel, EventListTeaserProps, Location, Image };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { SectionProps } from "./SectionProps-
|
|
6
|
+
import { SectionProps } from "./SectionProps-21d04028.js";
|
|
7
7
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
8
8
|
/**
|
|
9
9
|
* Collection of sections (with their contents) to render on the page
|
|
@@ -37,10 +37,11 @@
|
|
|
37
37
|
"title": "Style",
|
|
38
38
|
"description": "Style of background",
|
|
39
39
|
"enum": [
|
|
40
|
+
"default",
|
|
40
41
|
"framed",
|
|
41
|
-
"deko"
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
"deko"
|
|
43
|
+
],
|
|
44
|
+
"default": "default"
|
|
44
45
|
},
|
|
45
46
|
"backgroundColor": {
|
|
46
47
|
"type": "string",
|
|
@@ -224,7 +225,7 @@
|
|
|
224
225
|
"list",
|
|
225
226
|
"slider"
|
|
226
227
|
],
|
|
227
|
-
"default": "
|
|
228
|
+
"default": "default"
|
|
228
229
|
},
|
|
229
230
|
"tileWidth": {
|
|
230
231
|
"type": "string",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlogOverviewProps } from "../../BlogOverviewProps-
|
|
1
|
+
import { BlogOverviewProps } from "../../BlogOverviewProps-d62a0a9a.js";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
declare const BlogOverview: FC<PropsWithChildren<BlogOverviewProps>>;
|
|
4
4
|
export type { BlogOverviewProps };
|
|
@@ -321,10 +321,11 @@
|
|
|
321
321
|
"title": "Style",
|
|
322
322
|
"description": "Style of background",
|
|
323
323
|
"enum": [
|
|
324
|
+
"default",
|
|
324
325
|
"framed",
|
|
325
|
-
"deko"
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
"deko"
|
|
327
|
+
],
|
|
328
|
+
"default": "default"
|
|
328
329
|
},
|
|
329
330
|
"backgroundColor": {
|
|
330
331
|
"type": "string",
|
|
@@ -508,7 +509,7 @@
|
|
|
508
509
|
"list",
|
|
509
510
|
"slider"
|
|
510
511
|
],
|
|
511
|
-
"default": "
|
|
512
|
+
"default": "default"
|
|
512
513
|
},
|
|
513
514
|
"tileWidth": {
|
|
514
515
|
"type": "string",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlogPostProps } from "../../BlogPostProps-
|
|
1
|
+
import { BlogPostProps } from "../../BlogPostProps-c760fd2a.js";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
declare const BlogPost: FC<PropsWithChildren<BlogPostProps>>;
|
|
4
4
|
export type { BlogPostProps };
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
--dsa-blog-teaser__topic--font-weight: var(--dsa-topic--font-weight);
|
|
12
12
|
--dsa-blog-teaser__tag-label--font: var(--ks-font-interface-xs);
|
|
13
13
|
--dsa-blog-teaser__copy--font: var(--ks-font-copy-s);
|
|
14
|
-
--dsa-blog-teaser__copy--color: var(--
|
|
14
|
+
--dsa-blog-teaser__copy--color: var(--ks-text-color-copy);
|
|
15
15
|
--dsa-blog-teaser__copy--color_hover: var(--ks-text-color-default);
|
|
16
16
|
--dsa-blog-teaser__copy--margin-top: 0.5em;
|
|
17
17
|
--dsa-blog-teaser__meta--font: var(--ks-spacing-stack-s);
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
--c-teaser--background: var(--dsa-blog-teaser--background, transparent);
|
|
44
44
|
--c-post-teaser--gap: var(--dsa-blog-teaser--gap, var(--ks-spacing-stack-s) var(--ks-spacing-inline-s));
|
|
45
45
|
--c-teaser_text--spacing: var(--dsa-blog-teaser__copy--margin-top, var(--ks-spacing-stack-s));
|
|
46
|
-
--c-post-teaser--color: var(--dsa-blog-teaser__copy--color, var(--
|
|
46
|
+
--c-post-teaser--color: var(--dsa-blog-teaser__copy--color, var(--ks-text-color-copy));
|
|
47
47
|
}
|
|
48
48
|
.dsa-blog-teaser.c-post-teaser .c-tag-label {
|
|
49
49
|
--c-tag-label--font: var(--dsa-blog-teaser__tag-label--font, var(--ks-font-interface-s));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
import { BlogTeaserProps } from "../../BlogTeaserProps-
|
|
3
|
+
import { BlogTeaserProps } from "../../BlogTeaserProps-d62a0a9a.js";
|
|
4
4
|
declare const BlogTeaserContextDefault: import("react").ForwardRefExoticComponent<BlogTeaserProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const BlogTeaserContext: import("react").Context<import("react").ForwardRefExoticComponent<BlogTeaserProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
declare const BlogTeaser: import("react").ForwardRefExoticComponent<BlogTeaserProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
--dsa-contact__image--border-radius: var(--ks-border-radius-card);
|
|
12
12
|
--dsa-contact__body--gap: var(--ks-spacing-stack-xs);
|
|
13
13
|
--dsa-contact__body--flex-basis: var(--dsa-tile--width_small);
|
|
14
|
-
--dsa-contact__copy--font: var(--
|
|
15
|
-
--dsa-contact__copy--color: var(--
|
|
14
|
+
--dsa-contact__copy--font: var(--ks-font-copy-m);
|
|
15
|
+
--dsa-contact__copy--color: var(--ks-text-color-copy);
|
|
16
16
|
--dsa-contact__title--color: var(--ks-text-color-display);
|
|
17
17
|
--dsa-contact__title--font: var(--ks-font-copy-l);
|
|
18
18
|
--dsa-contact__title--font-weight: var(--ks-font-weight-bold);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
--dsa-cta__content--vertical-padding: var(--dsa-content--vertical-spacing);
|
|
5
5
|
--dsa-cta__content--horizontal-padding: var(--dsa-content--horizontal-spacing);
|
|
6
6
|
--dsa-cta__content--max-width: var(--dsa-content--width_narrow);
|
|
7
|
-
--dsa-cta__copy--font: var(--
|
|
7
|
+
--dsa-cta__copy--font: var(--ks-font-copy-m);
|
|
8
8
|
--dsa-cta__copy--color: var(--ks-text-color-default);
|
|
9
9
|
--dsa-cta__headline--color: var(--dsa-headline--color);
|
|
10
10
|
--dsa-cta__headline--font: var(--dsa-headline_h2--font);
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
font-weight: var(--dsa-headline__subheadline--font-weight, var(--ks-font-weight-medium));
|
|
73
73
|
}
|
|
74
74
|
.dsa-cta.c-storytelling .c-storytelling__box .c-rich-text {
|
|
75
|
-
font: var(--dsa-cta__copy--font, var(--
|
|
76
|
-
color: var(--dsa-cta__copy--color, var(--
|
|
75
|
+
font: var(--dsa-cta__copy--font, var(--ks-font-copy-m));
|
|
76
|
+
color: var(--dsa-cta__copy--color, var(--ks-text-color-copy));
|
|
77
77
|
}
|
|
78
78
|
.dsa-cta.c-storytelling > .c-storytelling__image {
|
|
79
79
|
margin: 0;
|
|
@@ -131,6 +131,14 @@
|
|
|
131
131
|
"description": "Display an event teaser with date, title and location",
|
|
132
132
|
"type": "object",
|
|
133
133
|
"properties": {
|
|
134
|
+
"category": {
|
|
135
|
+
"title": "Category",
|
|
136
|
+
"description": "Category of the event teaser",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"examples": [
|
|
139
|
+
"Buyers"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
134
142
|
"title": {
|
|
135
143
|
"title": "Headline",
|
|
136
144
|
"description": "Title of the event",
|
|
@@ -190,9 +198,9 @@
|
|
|
190
198
|
},
|
|
191
199
|
"additionalProperties": false
|
|
192
200
|
},
|
|
193
|
-
"
|
|
194
|
-
"title": "
|
|
195
|
-
"description": "
|
|
201
|
+
"tags": {
|
|
202
|
+
"title": "Tags",
|
|
203
|
+
"description": "Tags associated with the event",
|
|
196
204
|
"type": "array",
|
|
197
205
|
"items": {
|
|
198
206
|
"type": "string",
|
|
@@ -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-5cc94436.js";
|
|
10
10
|
interface EventListProps {
|
|
11
11
|
/**
|
|
12
12
|
* Referenced component EventFilterProps
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
1
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { Section } from '../section/index.js';
|
|
3
3
|
import { SplitWeighted } from '../split-weighted/index.js';
|
|
4
4
|
import { EventFilter } from '../event-filter/index.js';
|
|
5
5
|
import { EventListTeaser } from '../event-list-teaser/index.js';
|
|
6
|
+
import { RichText } from '@kickstartds/base/lib/rich-text';
|
|
7
|
+
import { Pagination } from '../pagination/index.js';
|
|
6
8
|
import 'react';
|
|
7
9
|
import 'classnames';
|
|
8
10
|
import '@kickstartds/core/lib/react';
|
|
@@ -18,13 +20,54 @@ import '@kickstartds/core/lib/container';
|
|
|
18
20
|
import '@kickstartds/base/lib/picture';
|
|
19
21
|
import 'markdown-to-jsx';
|
|
20
22
|
import '@kickstartds/base/lib/tag-label';
|
|
23
|
+
import '@kickstartds/base/lib/link';
|
|
21
24
|
|
|
22
25
|
const EventList = ({ filter, events, }) => (jsx(Fragment, { children: jsx(Section, { width: "wide", children: jsx(SplitWeighted, { verticalAlign: "sticky", mainLayout: {
|
|
23
26
|
minWidth: "narrow",
|
|
27
|
+
}, asideLayout: {
|
|
28
|
+
gutter: "small",
|
|
24
29
|
}, order: {
|
|
25
30
|
desktop: "asideFirst",
|
|
26
31
|
mobile: "asideFirst",
|
|
27
|
-
}, aside: jsx(EventFilter, { ...filter }), main:
|
|
32
|
+
}, aside: jsxs(Fragment, { children: [jsx(EventFilter, { ...filter }), jsx(RichText, { text: "425 Veranstaltungen" })] }), main: jsxs(Fragment, { children: [events.map((event, index) => (jsx(EventListTeaser, { ...event }, index))), jsx(Pagination, { pages: [
|
|
33
|
+
{
|
|
34
|
+
url: "https://example.com/page1",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
url: "https://example.com/page2",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
url: "https://example.com/page3",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
url: "https://example.com/page4",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
url: "https://example.com/page5",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
url: "https://example.com/page6",
|
|
50
|
+
active: true,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
url: "https://example.com/page7",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
url: "https://example.com/page8",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
url: "https://example.com/page9",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
url: "https://example.com/page10",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
url: "https://example.com/page11",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
url: "https://example.com/page12",
|
|
69
|
+
},
|
|
70
|
+
] })] }) }) }) }));
|
|
28
71
|
EventList.displayName = "EventList";
|
|
29
72
|
|
|
30
73
|
export { EventList };
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.dsa-event-list-teaser__header {
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
|
-
gap: var(--ks-spacing-stack-
|
|
25
|
+
gap: var(--ks-spacing-stack-xs);
|
|
26
26
|
}
|
|
27
27
|
.dsa-event-list-teaser__content {
|
|
28
28
|
display: flex;
|
|
@@ -52,6 +52,19 @@
|
|
|
52
52
|
font-weight: var(--ks-font-weight-semi-bold);
|
|
53
53
|
color: var(--ks-text-color-display);
|
|
54
54
|
}
|
|
55
|
+
.dsa-event-list-teaser__category {
|
|
56
|
+
font: var(--ks-font-interface-xs);
|
|
57
|
+
font-weight: var(--ks-font-weight-semi-bold);
|
|
58
|
+
color: var(--ks-color-fg-alpha-4);
|
|
59
|
+
letter-spacing: 0.05em;
|
|
60
|
+
text-transform: uppercase;
|
|
61
|
+
}
|
|
62
|
+
.dsa-event-list-teaser__tags {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-wrap: wrap;
|
|
65
|
+
gap: var(--ks-spacing-xxs) var(--ks-spacing-xxs);
|
|
66
|
+
max-width: var(--dsa-tile--width_small);
|
|
67
|
+
}
|
|
55
68
|
.dsa-event-list-teaser__details {
|
|
56
69
|
display: flex;
|
|
57
70
|
flex-wrap: wrap;
|
|
@@ -65,21 +78,6 @@
|
|
|
65
78
|
.dsa-event-list-teaser__date > .dsa-event-list-teaser__info:first-child {
|
|
66
79
|
font-weight: var(--ks-font-weight-semi-bold);
|
|
67
80
|
}
|
|
68
|
-
.dsa-event-list-teaser__categories {
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-wrap: wrap;
|
|
71
|
-
gap: var(--ks-spacing-xxs) var(--ks-spacing-xxs);
|
|
72
|
-
max-width: var(--dsa-tile--width_small);
|
|
73
|
-
}
|
|
74
|
-
.dsa-event-list-teaser__infos {
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
gap: var(--ks-spacing-stack-s);
|
|
78
|
-
border-top: 1px solid var(--ks-border-color-interface-interactive);
|
|
79
|
-
border-bottom: 1px solid var(--ks-border-color-interface-interactive);
|
|
80
|
-
padding-top: var(--ks-spacing-inset-s);
|
|
81
|
-
padding-bottom: var(--ks-spacing-inset-s);
|
|
82
|
-
}
|
|
83
81
|
.dsa-event-list-teaser__location {
|
|
84
82
|
flex-basis: var(--dsa-tile--width_small);
|
|
85
83
|
flex-grow: 1;
|
|
@@ -92,6 +90,15 @@
|
|
|
92
90
|
.dsa-event-list-teaser__location-address {
|
|
93
91
|
margin: 0;
|
|
94
92
|
}
|
|
93
|
+
.dsa-event-list-teaser__infos {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: var(--ks-spacing-stack-s);
|
|
97
|
+
border-top: 1px solid var(--ks-border-color-interface-interactive);
|
|
98
|
+
border-bottom: 1px solid var(--ks-border-color-interface-interactive);
|
|
99
|
+
padding-top: var(--ks-spacing-inset-s);
|
|
100
|
+
padding-bottom: var(--ks-spacing-inset-s);
|
|
101
|
+
}
|
|
95
102
|
.dsa-event-list-teaser__info {
|
|
96
103
|
display: flex;
|
|
97
104
|
gap: calc(var(--ks-spacing-xxs) * 0.75);
|
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
"description": "Display an event teaser with date, title and location",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
+
"category": {
|
|
9
|
+
"title": "Category",
|
|
10
|
+
"description": "Category of the event teaser",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"examples": [
|
|
13
|
+
"Buyers"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
8
16
|
"title": {
|
|
9
17
|
"title": "Headline",
|
|
10
18
|
"description": "Title of the event",
|
|
@@ -64,9 +72,9 @@
|
|
|
64
72
|
},
|
|
65
73
|
"additionalProperties": false
|
|
66
74
|
},
|
|
67
|
-
"
|
|
68
|
-
"title": "
|
|
69
|
-
"description": "
|
|
75
|
+
"tags": {
|
|
76
|
+
"title": "Tags",
|
|
77
|
+
"description": "Tags associated with the event",
|
|
70
78
|
"type": "array",
|
|
71
79
|
"items": {
|
|
72
80
|
"type": "string",
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
"description": "Display an event teaser with date, title and location",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
+
"category": {
|
|
9
|
+
"title": "Category",
|
|
10
|
+
"description": "Category of the event teaser",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"examples": ["Buyers"]
|
|
13
|
+
},
|
|
8
14
|
"title": {
|
|
9
15
|
"title": "Headline",
|
|
10
16
|
"description": "Title of the event",
|
|
@@ -53,9 +59,9 @@
|
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
},
|
|
56
|
-
"
|
|
57
|
-
"title": "
|
|
58
|
-
"description": "
|
|
62
|
+
"tags": {
|
|
63
|
+
"title": "Tags",
|
|
64
|
+
"description": "Tags associated with the event",
|
|
59
65
|
"type": "array",
|
|
60
66
|
"items": {
|
|
61
67
|
"type": "string",
|
|
@@ -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-5cc94436.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>>;
|
|
@@ -8,8 +8,8 @@ import { Picture } from '@kickstartds/base/lib/picture';
|
|
|
8
8
|
import Markdown from 'markdown-to-jsx';
|
|
9
9
|
import { TagLabel } from '@kickstartds/base/lib/tag-label';
|
|
10
10
|
|
|
11
|
-
const EventListTeaserContextDefault = forwardRef(({ title, text, date, time,
|
|
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("div", { className: "dsa-event-list-teaser__content", children: [
|
|
11
|
+
const EventListTeaserContextDefault = forwardRef(({ category, title, text, date, time, tags, location, image, ctaText, 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("div", { className: "dsa-event-list-teaser__content", children: [jsxs("div", { className: "dsa-event-list-teaser__header", children: [category && (jsx("span", { className: "dsa-event-list-teaser__category", children: category })), jsx("span", { className: "dsa-event-list-teaser__title", children: title })] }), tags && tags.length > 0 && (jsx("div", { className: "dsa-event-list-teaser__tags", children: tags.map((category) => (jsx(TagLabel, { label: category, size: "s" }, category))) })), jsx("div", { className: "dsa-event-list-teaser__infos", children: jsxs("div", { className: "dsa-event-list-teaser__details", children: [jsxs("div", { className: "dsa-event-list-teaser__date", 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("div", { className: "dsa-event-list-teaser__location dsa-event-list-teaser__info", children: [jsx(Icon, { "aria-hidden": true, icon: "map-pin" }), jsxs("address", { children: [location?.name && (jsx("span", { className: "dsa-event-list-teaser__location-name", children: location.name })), jsx(Markdown, { className: "dsa-event-list-teaser__location-address", children: location?.address })] })] })] }) }), text && (jsx("p", { className: "dsa-event-list-teaser__teaser-text", children: text })), jsxs("div", { className: "dsa-event-list-teaser__cta", children: [jsx("span", { children: ctaText }), 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 }) }))] }) }));
|
|
13
13
|
});
|
|
14
14
|
const EventListTeaserContext = createContext(EventListTeaserContextDefault);
|
|
15
15
|
const EventListTeaser = forwardRef((props, ref) => {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.dsa-event-registration {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--ks-spacing-stack-s);
|
|
5
|
+
}
|
|
6
|
+
.dsa-event-registration__label {
|
|
7
|
+
font: var(--dsa-headline_h2__subheadline--font);
|
|
8
|
+
}
|
|
9
|
+
.dsa-event-registration__link {
|
|
10
|
+
width: fit-content;
|
|
11
|
+
font: var(--ks-font-interface-s);
|
|
12
|
+
}
|
|
13
|
+
.dsa-event-registration__details {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
gap: var(--ks-spacing-stack-s) var(--ks-spacing-inline-s);
|
|
17
|
+
}
|
|
18
|
+
.dsa-event-registration__date {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: var(--ks-spacing-xxs);
|
|
22
|
+
}
|
|
23
|
+
.dsa-event-registration__date > .dsa-event-registration__info:first-child {
|
|
24
|
+
font-weight: var(--ks-font-weight-semi-bold);
|
|
25
|
+
}
|
|
26
|
+
.dsa-event-registration__location {
|
|
27
|
+
flex-basis: var(--dsa-tile--width_small);
|
|
28
|
+
flex-grow: 1;
|
|
29
|
+
}
|
|
30
|
+
.dsa-event-registration__location-name {
|
|
31
|
+
font-weight: var(--ks-font-weight-semi-bold);
|
|
32
|
+
color: var(--dsa-topic--color);
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
.dsa-event-registration__location-address {
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
.dsa-event-registration__infos {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: var(--ks-spacing-stack-s);
|
|
42
|
+
background: var(--ks-background-color-accent);
|
|
43
|
+
border-radius: var(--ks-border-radius-card);
|
|
44
|
+
padding: var(--ks-spacing-inset-stretch-m);
|
|
45
|
+
}
|
|
46
|
+
.dsa-event-registration__info {
|
|
47
|
+
display: flex;
|
|
48
|
+
gap: calc(var(--ks-spacing-xxs) * 0.75);
|
|
49
|
+
font: var(--ks-font-interface-s);
|
|
50
|
+
justify-content: flex-start;
|
|
51
|
+
color: var(--ks-text-color-interface);
|
|
52
|
+
}
|
|
53
|
+
.dsa-event-registration__info address {
|
|
54
|
+
font-style: normal;
|
|
55
|
+
}
|
|
56
|
+
.dsa-event-registration__info--location {
|
|
57
|
+
flex-basis: 100%;
|
|
58
|
+
}
|
|
59
|
+
.dsa-event-registration__info .icon {
|
|
60
|
+
align-self: flex-start;
|
|
61
|
+
width: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
|
|
62
|
+
height: calc(var(--ks-font-size-interface-s) * var(--ks-line-height-interface-s));
|
|
63
|
+
color: var(--ks-text-color-primary);
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
}
|
|
66
|
+
.dsa-event-registration__form {
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: var(--ks-spacing-stack-xs);
|
|
70
|
+
}
|
|
71
|
+
.dsa-event-registration__form .c-button {
|
|
72
|
+
align-self: flex-end;
|
|
73
|
+
}
|
|
74
|
+
.dsa-event-registration__mandatory-text {
|
|
75
|
+
font: var(--ks-font-interface-xs);
|
|
76
|
+
color: var(--ks-color-fg-alpha-4);
|
|
77
|
+
margin-top: var(--ks-spacing-xxs);
|
|
78
|
+
font-style: italic;
|
|
79
|
+
}
|