@kickstartds/ds-agency-premium 1.6.68--canary.45.1713.0 → 1.6.68--canary.45.1719.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-d62a0a9a.d.ts → BlogOverviewProps-9f207f1c.d.ts} +2 -2
- package/dist/{BlogPostProps-c760fd2a.d.ts → BlogPostProps-6b3cff22.d.ts} +1 -1
- package/dist/{EventListAppointmentProps-eee8b4ec.d.ts → EventAppointmentProps-443cd1ce.d.ts} +2 -2
- package/dist/{EventDetailProps-52321b9e.d.ts → EventDetailProps-42a7eebe.d.ts} +2 -2
- package/dist/{EventTeaserProps-e00ea659.d.ts → EventLatestTeaserProps-fc9d3281.d.ts} +2 -2
- package/dist/{EventListLocationProps-f9d48acc.d.ts → EventLocationProps-dd4aeaa9.d.ts} +4 -4
- package/dist/PageProps-aa29c554.d.ts +1 -1
- package/dist/{SectionProps-00ddee3a.d.ts → SectionProps-7caa223c.d.ts} +1 -1
- package/dist/components/blog-overview/index.d.ts +1 -1
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-teaser/index.d.ts +1 -1
- package/dist/components/{event-list-appointment/event-list-appointment.css → event-appointment/event-appointment.css} +9 -9
- package/dist/components/{event-list-appointment/event-list-appointment.schema.dereffed.json → event-appointment/event-appointment.schema.dereffed.json} +3 -3
- package/dist/components/{event-list-appointment/event-list-appointment.schema.json → event-appointment/event-appointment.schema.json} +2 -2
- package/dist/components/event-appointment/index.d.ts +7 -0
- package/dist/components/event-appointment/index.js +14 -0
- package/dist/components/event-detail/event-detail.schema.dereffed.json +6 -6
- package/dist/components/event-detail/event-detail.schema.json +1 -1
- package/dist/components/event-detail/index.d.ts +1 -1
- package/dist/components/event-detail/index.js +3 -3
- package/dist/components/event-latest/event-latest.css +5 -0
- package/dist/components/event-latest/event-latest.schema.dereffed.json +3 -50
- package/dist/components/event-latest/event-latest.schema.json +2 -38
- package/dist/components/event-latest/index.d.ts +3 -29
- package/dist/components/event-latest/index.js +7 -3
- package/dist/components/event-latest-teaser/event-latest-teaser.css +128 -0
- package/dist/components/{event-teaser/event-teaser.schema.dereffed.json → event-latest-teaser/event-latest-teaser.schema.dereffed.json} +3 -3
- package/dist/components/{event-teaser/event-teaser.schema.json → event-latest-teaser/event-latest-teaser.schema.json} +2 -2
- package/dist/components/event-latest-teaser/index.d.ts +8 -0
- package/dist/components/event-latest-teaser/index.js +18 -0
- package/dist/components/{event-list-location/event-list-location.css → event-location/event-location.css} +16 -16
- package/dist/components/{event-list-location/event-list-location.schema.dereffed.json → event-location/event-location.schema.dereffed.json} +6 -6
- package/dist/components/{event-list-location/event-list-location.schema.json → event-location/event-location.schema.json} +3 -3
- package/dist/components/event-location/index.d.ts +7 -0
- package/dist/components/event-location/index.js +16 -0
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +3 -3
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +83 -75
- package/dist/components/section/index.d.ts +1 -1
- package/dist/global.css +1 -1
- 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/components/event-list-appointment/index.d.ts +0 -7
- package/dist/components/event-list-appointment/index.js +0 -14
- package/dist/components/event-list-location/index.d.ts +0 -7
- package/dist/components/event-list-location/index.js +0 -16
- package/dist/components/event-teaser/event-teaser.css +0 -82
- package/dist/components/event-teaser/index.d.ts +0 -8
- package/dist/components/event-teaser/index.js +0 -17
- /package/dist/{BlogTeaserProps-d62a0a9a.d.ts → BlogTeaserProps-f5855e93.d.ts} +0 -0
- /package/dist/{ImageStoryProps-00ddee3a.d.ts → ImageStoryProps-e853e1e7.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-7caa223c.js";
|
|
7
|
+
import { BlogTeaserProps } from "./BlogTeaserProps-f5855e93.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-7caa223c.js";
|
|
9
9
|
import { CtaProps } from "./CtaProps-babe4ee6.js";
|
|
10
10
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
11
11
|
/**
|
package/dist/{EventListAppointmentProps-eee8b4ec.d.ts → EventAppointmentProps-443cd1ce.d.ts}
RENAMED
|
@@ -27,7 +27,7 @@ type OpenInNewTab = boolean;
|
|
|
27
27
|
* Aria label for the link
|
|
28
28
|
*/
|
|
29
29
|
type AriaLabel = string;
|
|
30
|
-
interface
|
|
30
|
+
interface EventAppointmentProps {
|
|
31
31
|
date?: Date;
|
|
32
32
|
time?: Time;
|
|
33
33
|
label?: CTALabel;
|
|
@@ -35,4 +35,4 @@ interface EventListAppointmentProps {
|
|
|
35
35
|
newTab?: OpenInNewTab;
|
|
36
36
|
ariaLabel?: AriaLabel;
|
|
37
37
|
}
|
|
38
|
-
export { Date, Time, CTALabel, URL, OpenInNewTab, AriaLabel,
|
|
38
|
+
export { Date, Time, CTALabel, URL, OpenInNewTab, AriaLabel, EventAppointmentProps };
|
|
@@ -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 {
|
|
6
|
+
import { EventLocationProps } from "./EventLocationProps-dd4aeaa9.js";
|
|
7
7
|
/**
|
|
8
8
|
* Title of the event
|
|
9
9
|
*/
|
|
@@ -25,7 +25,7 @@ type Intro = string;
|
|
|
25
25
|
/**
|
|
26
26
|
* List of locations with attendable appointments
|
|
27
27
|
*/
|
|
28
|
-
type Locations =
|
|
28
|
+
type Locations = EventLocationProps[];
|
|
29
29
|
/**
|
|
30
30
|
* Description of the event
|
|
31
31
|
*/
|
|
@@ -38,7 +38,7 @@ type ARIALabel = string;
|
|
|
38
38
|
/**
|
|
39
39
|
* Display an event teaser with date, title and location
|
|
40
40
|
*/
|
|
41
|
-
interface
|
|
41
|
+
interface EventLatestTeaserProps {
|
|
42
42
|
date: Date;
|
|
43
43
|
calendar?: Calendar;
|
|
44
44
|
title: Headline;
|
|
@@ -55,4 +55,4 @@ interface Calendar {
|
|
|
55
55
|
month?: Month;
|
|
56
56
|
day?: Day;
|
|
57
57
|
}
|
|
58
|
-
export { Date, Month, Day, Headline, Location, URL, CallToAction, ARIALabel,
|
|
58
|
+
export { Date, Month, Day, Headline, Location, URL, CallToAction, ARIALabel, EventLatestTeaserProps, Calendar };
|
|
@@ -3,11 +3,11 @@
|
|
|
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 {
|
|
6
|
+
import { EventAppointmentProps } from "./EventAppointmentProps-443cd1ce.js";
|
|
7
7
|
/**
|
|
8
8
|
* List of dates of the event
|
|
9
9
|
*/
|
|
10
|
-
type Dates =
|
|
10
|
+
type Dates = EventAppointmentProps[];
|
|
11
11
|
/**
|
|
12
12
|
* Name of the event location
|
|
13
13
|
*/
|
|
@@ -27,10 +27,10 @@ type Links = {
|
|
|
27
27
|
*/
|
|
28
28
|
newTab?: boolean;
|
|
29
29
|
}[];
|
|
30
|
-
interface
|
|
30
|
+
interface EventLocationProps {
|
|
31
31
|
dates?: Dates;
|
|
32
32
|
locationName?: LocationName;
|
|
33
33
|
address?: Address;
|
|
34
34
|
links?: Links;
|
|
35
35
|
}
|
|
36
|
-
export { Dates, LocationName, Address, Links,
|
|
36
|
+
export { Dates, LocationName, Address, Links, EventLocationProps };
|
|
@@ -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-7caa223c.js";
|
|
7
7
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
8
8
|
/**
|
|
9
9
|
* Collection of sections (with their contents) to render on the page
|
|
@@ -10,7 +10,7 @@ import { FeaturesProps } from "./FeaturesProps-a9041d97.js";
|
|
|
10
10
|
import { GalleryProps } from "./GalleryProps-76e7de44.js";
|
|
11
11
|
import { HeroProps } from "./HeroProps-40f6c7f5.js";
|
|
12
12
|
import { HtmlProps } from "./HtmlProps-9d091769.js";
|
|
13
|
-
import { ImageStoryProps } from "./ImageStoryProps-
|
|
13
|
+
import { ImageStoryProps } from "./ImageStoryProps-e853e1e7.js";
|
|
14
14
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
15
15
|
import { LogosProps } from "./LogosProps-f9474fe2.js";
|
|
16
16
|
import { MosaicProps } from "./MosaicProps-d52c7151.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlogOverviewProps } from "../../BlogOverviewProps-
|
|
1
|
+
import { BlogOverviewProps } from "../../BlogOverviewProps-9f207f1c.js";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
declare const BlogOverview: FC<PropsWithChildren<BlogOverviewProps>>;
|
|
4
4
|
export type { BlogOverviewProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlogPostProps } from "../../BlogPostProps-
|
|
1
|
+
import { BlogPostProps } from "../../BlogPostProps-6b3cff22.js";
|
|
2
2
|
import { FC, PropsWithChildren } from "react";
|
|
3
3
|
declare const BlogPost: FC<PropsWithChildren<BlogPostProps>>;
|
|
4
4
|
export type { BlogPostProps };
|
|
@@ -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-f5855e93.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>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.dsa-event-
|
|
1
|
+
.dsa-event-appointment {
|
|
2
2
|
--g-link--color: var(--ks-text-color-interface-interactive);
|
|
3
3
|
--g-link--color-hover: var(--ks-text-color-interface-interactive);
|
|
4
4
|
--g-link--border-radius: var(--ks-border-radius-control);
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
border: var(--ks-border-width-default) solid var(--ks-border-color-interface-interactive);
|
|
14
14
|
flex-grow: 0;
|
|
15
15
|
}
|
|
16
|
-
.dsa-event-
|
|
16
|
+
.dsa-event-appointment:hover {
|
|
17
17
|
border-color: var(--ks-border-color-interface-interactive-hover);
|
|
18
18
|
}
|
|
19
|
-
.dsa-event-
|
|
19
|
+
.dsa-event-appointment__info {
|
|
20
20
|
display: flex;
|
|
21
21
|
gap: var(--ks-spacing-xxs);
|
|
22
22
|
font: var(--ks-font-interface-s);
|
|
23
23
|
text-decoration: none;
|
|
24
24
|
align-items: center;
|
|
25
25
|
}
|
|
26
|
-
.dsa-event-
|
|
26
|
+
.dsa-event-appointment__infos {
|
|
27
27
|
flex-direction: column;
|
|
28
28
|
display: flex;
|
|
29
29
|
gap: var(--ks-spacing-stack-xs);
|
|
30
30
|
}
|
|
31
|
-
.dsa-event-
|
|
31
|
+
.dsa-event-appointment__label {
|
|
32
32
|
display: flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
color: var(--dsa-link--color);
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
transition: var(--ks-transition-hover);
|
|
39
39
|
transition-property: color;
|
|
40
40
|
}
|
|
41
|
-
.dsa-event-
|
|
41
|
+
.dsa-event-appointment__label:hover {
|
|
42
42
|
color: var(--dsa-link--color_hover);
|
|
43
43
|
}
|
|
44
|
-
.dsa-event-
|
|
44
|
+
.dsa-event-appointment__label .icon {
|
|
45
45
|
width: 1.75em;
|
|
46
46
|
height: 1.75em;
|
|
47
47
|
}
|
|
48
|
-
.dsa-event-
|
|
48
|
+
.dsa-event-appointment__icon {
|
|
49
49
|
color: var(--ks-text-color-primary);
|
|
50
50
|
width: 1.75em;
|
|
51
51
|
height: 1.75em;
|
|
52
52
|
}
|
|
53
|
-
.dsa-event-
|
|
53
|
+
.dsa-event-appointment .l-container--rich-text {
|
|
54
54
|
container-type: normal;
|
|
55
55
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.mydesignsystem.com/event-
|
|
4
|
-
"title": "Event
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/event-appointment.schema.json",
|
|
4
|
+
"title": "Event Appointment",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"date": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"default": "Event Appointment"
|
|
50
50
|
},
|
|
51
51
|
"type": {
|
|
52
|
-
"const": "event-
|
|
52
|
+
"const": "event-appointment"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"additionalProperties": false
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.mydesignsystem.com/event-
|
|
4
|
-
"title": "Event
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/event-appointment.schema.json",
|
|
4
|
+
"title": "Event Appointment",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"date": {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EventAppointmentProps } from "../../EventAppointmentProps-443cd1ce.js";
|
|
3
|
+
declare const EventAppointmentContextDefault: import("react").ForwardRefExoticComponent<EventAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
4
|
+
declare const EventAppointmentContext: import("react").Context<import("react").ForwardRefExoticComponent<EventAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
5
|
+
declare const EventAppointment: import("react").ForwardRefExoticComponent<EventAppointmentProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
6
|
+
export type { EventAppointmentProps };
|
|
7
|
+
export { EventAppointmentContextDefault, EventAppointmentContext, EventAppointment };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "./event-appointment.css";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
4
|
+
import { Icon } from '@kickstartds/base/lib/icon';
|
|
5
|
+
|
|
6
|
+
const EventAppointmentContextDefault = forwardRef(({ date, time, label, url, newTab, ariaLabel }, ref) => (jsxs("a", { className: "dsa-event-appointment", target: newTab ? "_blank" : "_self", "aria-label": ariaLabel, href: url, ref: ref, children: [jsxs("span", { className: "dsa-event-appointment__infos", children: [date && (jsxs("span", { className: "dsa-event-appointment__info", children: [jsx(Icon, { className: "dsa-event-appointment__icon", "aria-hidden": true, icon: "date" }), date] })), time && (jsxs("span", { className: "dsa-event-appointment__info", children: [jsx(Icon, { className: "dsa-event-appointment__icon", "aria-hidden": true, icon: "time" }), time] }))] }), jsxs("span", { className: "dsa-event-appointment__label", children: [label, jsx(Icon, { icon: "chevron-right" })] })] })));
|
|
7
|
+
const EventAppointmentContext = createContext(EventAppointmentContextDefault);
|
|
8
|
+
const EventAppointment = forwardRef((props, ref) => {
|
|
9
|
+
const Component = useContext(EventAppointmentContext);
|
|
10
|
+
return jsx(Component, { ...props, ref: ref });
|
|
11
|
+
});
|
|
12
|
+
EventAppointment.displayName = "EventAppointment";
|
|
13
|
+
|
|
14
|
+
export { EventAppointment, EventAppointmentContext, EventAppointmentContextDefault };
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"type": "array",
|
|
42
42
|
"items": {
|
|
43
43
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
44
|
-
"$id": "http://schema.mydesignsystem.com/event-
|
|
45
|
-
"title": "Event
|
|
44
|
+
"$id": "http://schema.mydesignsystem.com/event-location.schema.json",
|
|
45
|
+
"title": "Event Location",
|
|
46
46
|
"type": "object",
|
|
47
47
|
"properties": {
|
|
48
48
|
"dates": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"type": "array",
|
|
52
52
|
"items": {
|
|
53
53
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
54
|
-
"$id": "http://schema.mydesignsystem.com/event-
|
|
55
|
-
"title": "Event
|
|
54
|
+
"$id": "http://schema.mydesignsystem.com/event-appointment.schema.json",
|
|
55
|
+
"title": "Event Appointment",
|
|
56
56
|
"type": "object",
|
|
57
57
|
"properties": {
|
|
58
58
|
"date": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"default": "Event Appointment"
|
|
101
101
|
},
|
|
102
102
|
"type": {
|
|
103
|
-
"const": "event-
|
|
103
|
+
"const": "event-appointment"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"additionalProperties": false
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
"type": {
|
|
153
|
-
"const": "event-
|
|
153
|
+
"const": "event-location"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"additionalProperties": false
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"description": "List of locations with attendable appointments",
|
|
36
36
|
"type": "array",
|
|
37
37
|
"items": {
|
|
38
|
-
"$ref": "http://schema.mydesignsystem.com/event-
|
|
38
|
+
"$ref": "http://schema.mydesignsystem.com/event-location.schema.json"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"downloads": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
import { EventDetailProps } from "../../EventDetailProps-
|
|
2
|
+
import { EventDetailProps } from "../../EventDetailProps-42a7eebe.js";
|
|
3
3
|
declare const EventDetail: FC<PropsWithChildren<EventDetailProps>>;
|
|
4
4
|
export type { EventDetailProps };
|
|
5
5
|
export { EventDetail };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { RichText } from '@kickstartds/base/lib/rich-text';
|
|
3
|
-
import {
|
|
3
|
+
import { EventLocation } from '../event-location/index.js';
|
|
4
4
|
import { Section } from '../section/index.js';
|
|
5
5
|
import { EventHeader } from '../event-header/index.js';
|
|
6
6
|
import { Gallery } from '../gallery/index.js';
|
|
@@ -8,7 +8,7 @@ import { Downloads } from '../downloads/index.js';
|
|
|
8
8
|
import { Headline } from '../headline/index.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import '@kickstartds/base/lib/icon';
|
|
11
|
-
import '../event-
|
|
11
|
+
import '../event-appointment/index.js';
|
|
12
12
|
import 'classnames';
|
|
13
13
|
import '@kickstartds/core/lib/react';
|
|
14
14
|
import '@kickstartds/base/lib/section';
|
|
@@ -21,7 +21,7 @@ import '@kickstartds/base/lib/picture';
|
|
|
21
21
|
import 'markdown-to-jsx';
|
|
22
22
|
import '@kickstartds/base/lib/headline';
|
|
23
23
|
|
|
24
|
-
const EventDetail = ({ title, categories, locations, description, intro, images, downloads, }) => (jsxs(Fragment, { children: [jsx(Section, { width: "narrow", spaceAfter: "none", children: jsx(EventHeader, { title: title, categories: categories, intro: intro }) }), locations && locations.length > 0 && (jsxs(Section, { width: "narrow", content: { mode: "list", gutter: "none" }, children: [jsx(Headline, { text: "Locations", level: "h3", style: "h3", className: "dsa-event__locations-headline" }), locations.map((appointment, index) => (jsx(
|
|
24
|
+
const EventDetail = ({ title, categories, locations, description, intro, images, downloads, }) => (jsxs(Fragment, { children: [jsx(Section, { width: "narrow", spaceAfter: "none", children: jsx(EventHeader, { title: title, categories: categories, intro: intro }) }), locations && locations.length > 0 && (jsxs(Section, { width: "narrow", content: { mode: "list", gutter: "none" }, children: [jsx(Headline, { text: "Locations", level: "h3", style: "h3", className: "dsa-event__locations-headline" }), locations.map((appointment, index) => (jsx(EventLocation, { ...appointment }, index)))] })), description && (jsx(Section, { width: "narrow", spaceBefore: "none", children: jsx(RichText, { className: "dsa-event__description", text: description }) })), jsx(Section, { spaceBefore: "none", children: jsx(Gallery, { images: images, aspectRatio: "wide", layout: "smallTiles", lightbox: true }) }), downloads && downloads.length > 0 && (jsxs(Section, { width: "narrow", spaceBefore: "none", content: {
|
|
25
25
|
mode: "list",
|
|
26
26
|
gutter: "none",
|
|
27
27
|
}, spaceAfter: "none", children: [jsx(Headline, { text: "Downloads", level: "h3", style: "h3" }), jsx(Downloads, { downloads: downloads })] })), jsx(Section, { width: "narrow", buttons: [
|
|
@@ -5,32 +5,14 @@
|
|
|
5
5
|
"description": "Display a list of latest events, ordered chronologically",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"headline": {
|
|
9
|
-
"title": "Headline",
|
|
10
|
-
"description": "Headline for the listing",
|
|
11
|
-
"type": "string",
|
|
12
|
-
"format": "markdown",
|
|
13
|
-
"examples": [
|
|
14
|
-
"Latest Events"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"text": {
|
|
18
|
-
"title": "Text",
|
|
19
|
-
"description": "Additional text shown below the headline",
|
|
20
|
-
"type": "string",
|
|
21
|
-
"format": "markdown",
|
|
22
|
-
"examples": [
|
|
23
|
-
"Our next upcoming events"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
8
|
"events": {
|
|
27
9
|
"title": "Events",
|
|
28
10
|
"description": "List of events to display",
|
|
29
11
|
"type": "array",
|
|
30
12
|
"items": {
|
|
31
13
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
32
|
-
"$id": "http://schema.mydesignsystem.com/event-teaser.schema.json",
|
|
33
|
-
"title": "Event Teaser",
|
|
14
|
+
"$id": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json",
|
|
15
|
+
"title": "Event Latest Teaser",
|
|
34
16
|
"description": "Display an event teaser with date, title and location",
|
|
35
17
|
"type": "object",
|
|
36
18
|
"properties": {
|
|
@@ -114,7 +96,7 @@
|
|
|
114
96
|
"type": "string"
|
|
115
97
|
},
|
|
116
98
|
"type": {
|
|
117
|
-
"const": "event-teaser"
|
|
99
|
+
"const": "event-latest-teaser"
|
|
118
100
|
}
|
|
119
101
|
},
|
|
120
102
|
"additionalProperties": false,
|
|
@@ -148,35 +130,6 @@
|
|
|
148
130
|
]
|
|
149
131
|
]
|
|
150
132
|
},
|
|
151
|
-
"link": {
|
|
152
|
-
"type": "object",
|
|
153
|
-
"title": "Link",
|
|
154
|
-
"description": "Link shown below the listing",
|
|
155
|
-
"properties": {
|
|
156
|
-
"url": {
|
|
157
|
-
"title": "URL",
|
|
158
|
-
"description": "The to link",
|
|
159
|
-
"type": "string",
|
|
160
|
-
"format": "uri",
|
|
161
|
-
"examples": [
|
|
162
|
-
"https://example.com"
|
|
163
|
-
]
|
|
164
|
-
},
|
|
165
|
-
"text": {
|
|
166
|
-
"title": "Text",
|
|
167
|
-
"description": "The text for the link",
|
|
168
|
-
"type": "string",
|
|
169
|
-
"default": "Show all events",
|
|
170
|
-
"examples": [
|
|
171
|
-
"Show all events"
|
|
172
|
-
]
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
"additionalProperties": false,
|
|
176
|
-
"required": [
|
|
177
|
-
"url"
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
133
|
"className": {
|
|
181
134
|
"type": "string"
|
|
182
135
|
},
|
|
@@ -5,26 +5,12 @@
|
|
|
5
5
|
"description": "Display a list of latest events, ordered chronologically",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
-
"headline": {
|
|
9
|
-
"title": "Headline",
|
|
10
|
-
"description": "Headline for the listing",
|
|
11
|
-
"type": "string",
|
|
12
|
-
"format": "markdown",
|
|
13
|
-
"examples": ["Latest Events"]
|
|
14
|
-
},
|
|
15
|
-
"text": {
|
|
16
|
-
"title": "Text",
|
|
17
|
-
"description": "Additional text shown below the headline",
|
|
18
|
-
"type": "string",
|
|
19
|
-
"format": "markdown",
|
|
20
|
-
"examples": ["Our next upcoming events"]
|
|
21
|
-
},
|
|
22
8
|
"events": {
|
|
23
9
|
"title": "Events",
|
|
24
10
|
"description": "List of events to display",
|
|
25
11
|
"type": "array",
|
|
26
12
|
"items": {
|
|
27
|
-
"$ref": "http://schema.mydesignsystem.com/event-teaser.schema.json"
|
|
13
|
+
"$ref": "http://schema.mydesignsystem.com/event-latest-teaser.schema.json"
|
|
28
14
|
},
|
|
29
15
|
"minItems": 1,
|
|
30
16
|
"examples": [
|
|
@@ -50,29 +36,7 @@
|
|
|
50
36
|
]
|
|
51
37
|
]
|
|
52
38
|
},
|
|
53
|
-
|
|
54
|
-
"type": "object",
|
|
55
|
-
"title": "Link",
|
|
56
|
-
"description": "Link shown below the listing",
|
|
57
|
-
"properties": {
|
|
58
|
-
"url": {
|
|
59
|
-
"title": "URL",
|
|
60
|
-
"description": "The to link",
|
|
61
|
-
"type": "string",
|
|
62
|
-
"format": "uri",
|
|
63
|
-
"examples": ["https://example.com"]
|
|
64
|
-
},
|
|
65
|
-
"text": {
|
|
66
|
-
"title": "Text",
|
|
67
|
-
"description": "The text for the link",
|
|
68
|
-
"type": "string",
|
|
69
|
-
"default": "Show all events",
|
|
70
|
-
"examples": ["Show all events"]
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"additionalProperties": false,
|
|
74
|
-
"required": ["url"]
|
|
75
|
-
},
|
|
39
|
+
|
|
76
40
|
"className": {
|
|
77
41
|
"type": "string"
|
|
78
42
|
}
|
|
@@ -6,49 +6,23 @@ 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 {
|
|
10
|
-
/**
|
|
11
|
-
* Headline for the listing
|
|
12
|
-
*/
|
|
13
|
-
type Headline = string;
|
|
14
|
-
/**
|
|
15
|
-
* Additional text shown below the headline
|
|
16
|
-
*/
|
|
17
|
-
type Text = string;
|
|
9
|
+
import { EventLatestTeaserProps } from "../../EventLatestTeaserProps-fc9d3281.js";
|
|
18
10
|
/**
|
|
19
11
|
* List of events to display
|
|
20
12
|
*
|
|
21
13
|
* @minItems 1
|
|
22
14
|
*/
|
|
23
15
|
type Events = [
|
|
24
|
-
|
|
25
|
-
...
|
|
16
|
+
EventLatestTeaserProps,
|
|
17
|
+
...EventLatestTeaserProps[]
|
|
26
18
|
];
|
|
27
|
-
/**
|
|
28
|
-
* The to link
|
|
29
|
-
*/
|
|
30
|
-
type URL = string;
|
|
31
|
-
/**
|
|
32
|
-
* The text for the link
|
|
33
|
-
*/
|
|
34
|
-
type Text1 = string;
|
|
35
19
|
/**
|
|
36
20
|
* Display a list of latest events, ordered chronologically
|
|
37
21
|
*/
|
|
38
22
|
interface EventLatestProps {
|
|
39
|
-
headline?: Headline;
|
|
40
|
-
text?: Text;
|
|
41
23
|
events?: Events;
|
|
42
|
-
link?: Link;
|
|
43
24
|
className?: string;
|
|
44
25
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Link shown below the listing
|
|
47
|
-
*/
|
|
48
|
-
interface Link {
|
|
49
|
-
url: URL;
|
|
50
|
-
text?: Text1;
|
|
51
|
-
}
|
|
52
26
|
declare const EventLatestContextDefault: import("react").ForwardRefExoticComponent<EventLatestProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
53
27
|
declare const EventLatestContext: import("react").Context<import("react").ForwardRefExoticComponent<EventLatestProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
54
28
|
declare const EventLatest: import("react").ForwardRefExoticComponent<EventLatestProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import "./event-latest.css";
|
|
1
2
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import classnames from 'classnames';
|
|
3
3
|
import { forwardRef, createContext, useContext } from 'react';
|
|
4
|
+
import { EventLatestTeaser } from '../event-latest-teaser/index.js';
|
|
5
|
+
import 'classnames';
|
|
6
|
+
import '@kickstartds/base/lib/icon';
|
|
7
|
+
import '@kickstartds/core/lib/container';
|
|
4
8
|
|
|
5
|
-
const EventLatestContextDefault = forwardRef(({
|
|
6
|
-
return (jsx("div", { className:
|
|
9
|
+
const EventLatestContextDefault = forwardRef(({ events }, ref) => {
|
|
10
|
+
return (jsx("div", { className: "dsa-event-latest", ref: ref, children: events.map((event, index) => (jsx(EventLatestTeaser, { ...event }, index))) }));
|
|
7
11
|
});
|
|
8
12
|
const EventLatestContext = createContext(EventLatestContextDefault);
|
|
9
13
|
const EventLatest = forwardRef((props, ref) => {
|