@kickstartds/ds-agency-premium 1.0.8--canary.74.1ba3a97.0 → 1.1.1--canary.2.81.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/HeadlineProps-d413a2cc.d.ts +48 -0
- package/dist/components/component-teaser/component-teaser.schema.dereffed.json +43 -0
- package/dist/components/component-teaser/component-teaser.schema.json +40 -0
- package/dist/components/headline/index.d.ts +1 -48
- package/dist/components/page/page.schema.dereffed.json +698 -693
- package/dist/components/page/page.schema.json +40 -3
- package/dist/components/page-intro/index.d.ts +14 -1
- package/dist/components/page-wrapper/index.d.ts +3 -2
- package/dist/components/page-wrapper/index.js +471 -6
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/section/index.d.ts +6 -7
- package/dist/components/section/section.schema.dereffed.json +662 -664
- package/dist/components/section/section.schema.json +13 -16
- package/dist/components/teaser-component/component-teaser.css +33 -0
- package/dist/components/teaser-component/index.d.ts +41 -0
- package/dist/components/teaser-component/index.js +18 -0
- package/dist/tokens/themes.css +4657 -0
- package/dist/tokens/themes.css.d.ts +0 -0
- package/dist/tokens/themes.css.js +1 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/package.json +6 -3
- package/dist/PageIntroProps-f13f3e7c.d.ts +0 -14
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +0 -631
- package/dist/components/blog-overview/blog-overview.schema.json +0 -35
- package/dist/components/blog-post/blog-post.schema.dereffed.json +0 -406
- package/dist/components/blog-post/blog-post.schema.json +0 -28
- package/dist/components/raw-page-wrapper/index.d.ts +0 -3
- package/dist/components/raw-page-wrapper/index.js +0 -492
- package/dist/components/seo/seo.schema.dereffed.json +0 -42
- package/dist/components/seo/seo.schema.json +0 -36
- package/dist/components/settings/settings.schema.dereffed.json +0 -426
- package/dist/components/settings/settings.schema.json +0 -19
- package/dist/static/tokens-google.css +0 -1553
- package/dist/static/tokens-lughausen.css +0 -1549
- package/dist/static/tokens-telekom.css +0 -1549
- package/dist/static/tokens.css +0 -1554
|
@@ -162,9 +162,15 @@
|
|
|
162
162
|
"description": "Allowed components for content",
|
|
163
163
|
"items": {
|
|
164
164
|
"anyOf": [
|
|
165
|
+
{
|
|
166
|
+
"$ref": "http://schema.mydesignsystem.com/hero.schema.json"
|
|
167
|
+
},
|
|
165
168
|
{
|
|
166
169
|
"$ref": "http://schema.mydesignsystem.com/cta.schema.json"
|
|
167
170
|
},
|
|
171
|
+
{
|
|
172
|
+
"$ref": "http://schema.mydesignsystem.com/mosaic.schema.json"
|
|
173
|
+
},
|
|
168
174
|
{
|
|
169
175
|
"$ref": "http://schema.mydesignsystem.com/faq.schema.json"
|
|
170
176
|
},
|
|
@@ -175,26 +181,11 @@
|
|
|
175
181
|
"$ref": "http://schema.mydesignsystem.com/gallery.schema.json"
|
|
176
182
|
},
|
|
177
183
|
{
|
|
178
|
-
"$ref": "http://schema.mydesignsystem.com/
|
|
184
|
+
"$ref": "http://schema.mydesignsystem.com/headline.schema.json"
|
|
179
185
|
},
|
|
180
186
|
{
|
|
181
187
|
"$ref": "http://schema.mydesignsystem.com/image-story.schema.json"
|
|
182
188
|
},
|
|
183
|
-
{
|
|
184
|
-
"$ref": "http://schema.mydesignsystem.com/image-text.schema.json"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"$ref": "http://schema.mydesignsystem.com/logos.schema.json"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"$ref": "http://schema.mydesignsystem.com/mosaic.schema.json"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"$ref": "http://schema.mydesignsystem.com/page-intro.schema.json"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"$ref": "http://schema.mydesignsystem.com/slider.schema.json"
|
|
197
|
-
},
|
|
198
189
|
{
|
|
199
190
|
"$ref": "http://schema.mydesignsystem.com/split.schema.json"
|
|
200
191
|
},
|
|
@@ -212,6 +203,12 @@
|
|
|
212
203
|
},
|
|
213
204
|
{
|
|
214
205
|
"$ref": "http://schema.mydesignsystem.com/video-curtain.schema.json"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"$ref": "http://schema.mydesignsystem.com/image-text.schema.json"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"$ref": "http://schema.mydesignsystem.com/logos.schema.json"
|
|
215
212
|
}
|
|
216
213
|
]
|
|
217
214
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
:root .c-teaser.c-component-teaser {
|
|
2
|
+
--g-topic--font: var(--ks-font-copy-l);
|
|
3
|
+
--g-topic--font-weight: var(--ks-font-weight-semi-bold);
|
|
4
|
+
--c-teaser_text--spacing: 0.25em;
|
|
5
|
+
--c-rich-text--font: var(--ks-font-copy-s);
|
|
6
|
+
--c-teaser--background: var(--ks-color-fg-alpha-9);
|
|
7
|
+
--c-teaser--color: var(--ks-color-fg-to-bg-3);
|
|
8
|
+
--c-teaser--border: 1px solid var(--ks-color-fg-alpha-8);
|
|
9
|
+
--c-teaser--border-radius: var(--ks-border-radius-card);
|
|
10
|
+
--c-teaser--shadow-hover: 0 1px 11px var(--ks-color-fg-alpha-6);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.c-teaser.c-component-teaser {
|
|
14
|
+
position: relative;
|
|
15
|
+
overflow: visible;
|
|
16
|
+
}
|
|
17
|
+
.c-teaser.c-component-teaser img {
|
|
18
|
+
border-radius: var(--c-teaser--border-radius) var(--c-teaser--border-radius) 0 0;
|
|
19
|
+
}
|
|
20
|
+
.c-teaser.c-component-teaser--label .c-teaser__label {
|
|
21
|
+
border-radius: var(--ks-border-radius-pill);
|
|
22
|
+
pointer-events: initial;
|
|
23
|
+
padding: 0.5em 1em;
|
|
24
|
+
transform: translate(0.5em, -50%);
|
|
25
|
+
font: var(--ks-font-interface-m);
|
|
26
|
+
text-align: center;
|
|
27
|
+
font-weight: var(--ks-font-weight-semi-bold);
|
|
28
|
+
color: var(--ks-color-fg-base);
|
|
29
|
+
position: absolute;
|
|
30
|
+
background: var(--ks-color-primary-inverted);
|
|
31
|
+
top: 0;
|
|
32
|
+
right: 0;
|
|
33
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HTMLAttributes, FC, PropsWithChildren } from "react";
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Headline for the teaser card
|
|
11
|
+
*/
|
|
12
|
+
type Headline = string;
|
|
13
|
+
/**
|
|
14
|
+
* Body text for the teaser card
|
|
15
|
+
*/
|
|
16
|
+
type Text = string;
|
|
17
|
+
/**
|
|
18
|
+
* Label for the Teaser Card
|
|
19
|
+
*/
|
|
20
|
+
type Label = string;
|
|
21
|
+
/**
|
|
22
|
+
* Target that should be linked
|
|
23
|
+
*/
|
|
24
|
+
type Target = string;
|
|
25
|
+
/**
|
|
26
|
+
* Image to display as cover
|
|
27
|
+
*/
|
|
28
|
+
type Image = string;
|
|
29
|
+
/**
|
|
30
|
+
* Component used to tease content
|
|
31
|
+
*/
|
|
32
|
+
interface ComponentTeaserProps {
|
|
33
|
+
title?: Headline;
|
|
34
|
+
text?: Text;
|
|
35
|
+
label?: Label;
|
|
36
|
+
target?: Target;
|
|
37
|
+
image?: Image;
|
|
38
|
+
}
|
|
39
|
+
declare const ComponentTeaser: import("react").ForwardRefExoticComponent<ComponentTeaserProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const TeaserBoxProvider: FC<PropsWithChildren>;
|
|
41
|
+
export { ComponentTeaser, TeaserBoxProvider };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./component-teaser.css";
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import classnames from 'classnames';
|
|
5
|
+
import { TeaserBoxContextDefault, TeaserBoxContext } from '@kickstartds/base/lib/teaser-box';
|
|
6
|
+
|
|
7
|
+
const ComponentTeaser = forwardRef(({ title, text, target, image, label, ...props }, ref) => {
|
|
8
|
+
return (jsx(TeaserBoxContextDefault, { ...props, className: classnames(`c-component-teaser`, label && `c-component-teaser--label`), ratio: "16:6", topic: title, text: text,
|
|
9
|
+
// @ts-expect-error
|
|
10
|
+
renderTopic: () => (jsxs(Fragment, { children: [label ? jsx("span", { className: "c-teaser__label", children: label }) : "", title] })), link: {
|
|
11
|
+
hidden: true,
|
|
12
|
+
label: "Read more",
|
|
13
|
+
target: target,
|
|
14
|
+
}, image: image, ref: ref }));
|
|
15
|
+
});
|
|
16
|
+
const TeaserBoxProvider = (props) => (jsx(TeaserBoxContext.Provider, { ...props, value: ComponentTeaser }));
|
|
17
|
+
|
|
18
|
+
export { ComponentTeaser, TeaserBoxProvider };
|