@kickstartds/ds-agency-premium 1.5.27 → 1.6.0--canary.17.1001.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/BlogTeaserProps-f5855e93.d.ts +6 -1
- package/dist/SectionProps-83d399b4.d.ts +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +27 -0
- 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/blog-teaser.schema.dereffed.json +9 -0
- package/dist/components/blog-teaser/blog-teaser.schema.json +7 -0
- package/dist/components/blog-teaser/index.js +1 -0
- package/dist/components/footer/footer.css +2 -2
- package/dist/components/html/HtmlConsent.client.d.ts +5 -0
- package/dist/components/html/HtmlConsent.client.js +25 -0
- package/dist/components/html/html.css +20 -0
- package/dist/components/html/html.schema.dereffed.json +55 -0
- package/dist/components/html/html.schema.json +29 -2
- package/dist/components/html/index.d.ts +8 -2
- package/dist/components/html/index.js +16 -3
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +3 -3
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +30 -2
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/package.json +1 -1
- /package/dist/{BlogOverviewProps-83d399b4.d.ts → BlogOverviewProps-9f207f1c.d.ts} +0 -0
- /package/dist/{BlogPostProps-83d399b4.d.ts → BlogPostProps-d9decb7c.d.ts} +0 -0
- /package/dist/{ImageStoryProps-03ff6d21.d.ts → ImageStoryProps-e853e1e7.d.ts} +0 -0
- /package/dist/{PageProps-83d399b4.d.ts → PageProps-aa29c554.d.ts} +0 -0
|
@@ -28,6 +28,10 @@ type Image = string;
|
|
|
28
28
|
* The blog entry URL to link
|
|
29
29
|
*/
|
|
30
30
|
type URL = string;
|
|
31
|
+
/**
|
|
32
|
+
* The label to use for the link
|
|
33
|
+
*/
|
|
34
|
+
type Label = string;
|
|
31
35
|
/**
|
|
32
36
|
* Time to read for the blog post
|
|
33
37
|
*/
|
|
@@ -63,6 +67,7 @@ interface BlogTeaserProps {
|
|
|
63
67
|
*/
|
|
64
68
|
interface Link {
|
|
65
69
|
url: URL;
|
|
70
|
+
label?: Label;
|
|
66
71
|
}
|
|
67
72
|
/**
|
|
68
73
|
* The author of the blog post
|
|
@@ -72,4 +77,4 @@ interface Author {
|
|
|
72
77
|
title?: Title;
|
|
73
78
|
image?: Image1;
|
|
74
79
|
}
|
|
75
|
-
export { Date, Tags, Headline, TeaserText, Image, URL, ReadingTime, Name, Title, Image1, BlogTeaserProps, Link, Author };
|
|
80
|
+
export { Date, Tags, Headline, TeaserText, Image, URL, Label, ReadingTime, Name, Title, Image1, BlogTeaserProps, Link, Author };
|
|
@@ -8,7 +8,7 @@ import { FaqProps } from "./FaqProps-ad618cd5.js";
|
|
|
8
8
|
import { FeaturesProps } from "./FeaturesProps-b05859d6.js";
|
|
9
9
|
import { GalleryProps } from "./GalleryProps-76e7de44.js";
|
|
10
10
|
import { HeroProps } from "./HeroProps-cf82a16d.js";
|
|
11
|
-
import { ImageStoryProps } from "./ImageStoryProps-
|
|
11
|
+
import { ImageStoryProps } from "./ImageStoryProps-e853e1e7.js";
|
|
12
12
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
13
13
|
import { LogosProps } from "./LogosProps-f9474fe2.js";
|
|
14
14
|
import { MosaicProps } from "./MosaicProps-d52c7151.js";
|
|
@@ -3190,6 +3190,15 @@
|
|
|
3190
3190
|
"examples": [
|
|
3191
3191
|
"https://example.com"
|
|
3192
3192
|
]
|
|
3193
|
+
},
|
|
3194
|
+
"label": {
|
|
3195
|
+
"title": "Label",
|
|
3196
|
+
"description": "The label to use for the link",
|
|
3197
|
+
"type": "string",
|
|
3198
|
+
"examples": [
|
|
3199
|
+
"Read more"
|
|
3200
|
+
],
|
|
3201
|
+
"default": "Read more"
|
|
3193
3202
|
}
|
|
3194
3203
|
},
|
|
3195
3204
|
"additionalProperties": false,
|
|
@@ -3346,6 +3355,15 @@
|
|
|
3346
3355
|
"examples": [
|
|
3347
3356
|
"https://example.com"
|
|
3348
3357
|
]
|
|
3358
|
+
},
|
|
3359
|
+
"label": {
|
|
3360
|
+
"title": "Label",
|
|
3361
|
+
"description": "The label to use for the link",
|
|
3362
|
+
"type": "string",
|
|
3363
|
+
"examples": [
|
|
3364
|
+
"Read more"
|
|
3365
|
+
],
|
|
3366
|
+
"default": "Read more"
|
|
3349
3367
|
}
|
|
3350
3368
|
},
|
|
3351
3369
|
"additionalProperties": false,
|
|
@@ -3503,6 +3521,15 @@
|
|
|
3503
3521
|
"examples": [
|
|
3504
3522
|
"https://example.com"
|
|
3505
3523
|
]
|
|
3524
|
+
},
|
|
3525
|
+
"label": {
|
|
3526
|
+
"title": "Label",
|
|
3527
|
+
"description": "The label to use for the link",
|
|
3528
|
+
"type": "string",
|
|
3529
|
+
"examples": [
|
|
3530
|
+
"Read more"
|
|
3531
|
+
],
|
|
3532
|
+
"default": "Read more"
|
|
3506
3533
|
}
|
|
3507
3534
|
},
|
|
3508
3535
|
"additionalProperties": false,
|
|
@@ -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 { BlogOverview };
|
|
@@ -80,6 +80,15 @@
|
|
|
80
80
|
"examples": [
|
|
81
81
|
"https://example.com"
|
|
82
82
|
]
|
|
83
|
+
},
|
|
84
|
+
"label": {
|
|
85
|
+
"title": "Label",
|
|
86
|
+
"description": "The label to use for the link",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"examples": [
|
|
89
|
+
"Read more"
|
|
90
|
+
],
|
|
91
|
+
"default": "Read more"
|
|
83
92
|
}
|
|
84
93
|
},
|
|
85
94
|
"additionalProperties": false,
|
|
@@ -52,6 +52,13 @@
|
|
|
52
52
|
"type": "string",
|
|
53
53
|
"format": "uri",
|
|
54
54
|
"examples": ["https://example.com"]
|
|
55
|
+
},
|
|
56
|
+
"label": {
|
|
57
|
+
"title": "Label",
|
|
58
|
+
"description": "The label to use for the link",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"examples": ["Read more"],
|
|
61
|
+
"default": "Read more"
|
|
55
62
|
}
|
|
56
63
|
},
|
|
57
64
|
"additionalProperties": false,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--dsa-footer__link--font-weight: var(--dsa-link--font-weight);
|
|
11
11
|
--dsa-footer__link--color: var(--dsa-link--color);
|
|
12
12
|
--dsa-footer__link--text-tecoration: none;
|
|
13
|
-
--dsa-footer__link--text-
|
|
13
|
+
--dsa-footer__link--text-tecorationhover: underline;
|
|
14
14
|
--dsa-footer__logo--height: 1.5rem;
|
|
15
15
|
}
|
|
16
16
|
@media (min-width: 62em) {
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
text-decoration: var(--dsa-footer__link--text-tecoration, none);
|
|
58
58
|
}
|
|
59
59
|
.dsa-footer__link:not(.c-button):hover {
|
|
60
|
-
text-decoration: var(--dsa-footer__link--text-
|
|
60
|
+
text-decoration: var(--dsa-footer__link--text-tecoration-hover, underline);
|
|
61
61
|
color: var(--dsa-footer__link--color_hover, var(--dsa-link--color_hover));
|
|
62
62
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { define, Component } from '@kickstartds/core/lib/component';
|
|
2
|
+
|
|
3
|
+
const consentButtonSelector = ".c-html__consent-button";
|
|
4
|
+
class Html extends Component {
|
|
5
|
+
constructor(element) {
|
|
6
|
+
super(element);
|
|
7
|
+
const consentButton = element.querySelector(consentButtonSelector);
|
|
8
|
+
if (consentButton) {
|
|
9
|
+
const replaceHtml = () => {
|
|
10
|
+
const template = element.querySelector("template");
|
|
11
|
+
const clone = template?.content.cloneNode(true);
|
|
12
|
+
element.replaceChildren(clone);
|
|
13
|
+
consentButton.removeEventListener("click", replaceHtml);
|
|
14
|
+
};
|
|
15
|
+
consentButton.addEventListener("click", replaceHtml);
|
|
16
|
+
this.onDisconnect(() => {
|
|
17
|
+
consentButton.removeEventListener("click", replaceHtml);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
Html.identifier = "dsa.html-consent";
|
|
23
|
+
define(Html.identifier, Html);
|
|
24
|
+
|
|
25
|
+
export { Html as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.c-html__consent {
|
|
2
|
+
color: var(--ks-text-color-default);
|
|
3
|
+
font: var(--ks-font-interface-m);
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
}
|
|
9
|
+
.c-html__consent--sixteen-to-nine {
|
|
10
|
+
aspect-ratio: 16/9;
|
|
11
|
+
}
|
|
12
|
+
.c-html__consent--sixteen-to-ten {
|
|
13
|
+
aspect-ratio: 16/10;
|
|
14
|
+
}
|
|
15
|
+
.c-html__consent--four-to-three {
|
|
16
|
+
aspect-ratio: 4/3;
|
|
17
|
+
}
|
|
18
|
+
.c-html__consent--square {
|
|
19
|
+
aspect-ratio: 1;
|
|
20
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/html.schema.json",
|
|
4
|
+
"title": "HTML",
|
|
5
|
+
"description": "Display raw HTML.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"html": {
|
|
9
|
+
"title": "HTML string",
|
|
10
|
+
"type": "string",
|
|
11
|
+
"examples": [
|
|
12
|
+
"<p style=\"color: var(--ks-text-color-default);\">Hello World</p>"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"consent": {
|
|
16
|
+
"title": "Show HTML after consent",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
"consentText": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"consentButtonLabel": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"consentBackgroundImage": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "image"
|
|
29
|
+
},
|
|
30
|
+
"consentAspectRatio": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"16:9",
|
|
34
|
+
"16:10",
|
|
35
|
+
"4:3",
|
|
36
|
+
"1:1"
|
|
37
|
+
],
|
|
38
|
+
"default": "16:9"
|
|
39
|
+
},
|
|
40
|
+
"className": {
|
|
41
|
+
"title": "Additional Classes",
|
|
42
|
+
"description": "Add additional css classes that should be applied to the element",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"component": {
|
|
46
|
+
"title": "`ks-component` attribute",
|
|
47
|
+
"description": "Optional custom component identifier",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"type": {
|
|
51
|
+
"const": "html"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/html.schema.json",
|
|
4
4
|
"title": "HTML",
|
|
5
5
|
"description": "Display raw HTML.",
|
|
6
6
|
"type": "object",
|
|
@@ -8,7 +8,34 @@
|
|
|
8
8
|
"html": {
|
|
9
9
|
"title": "HTML string",
|
|
10
10
|
"type": "string",
|
|
11
|
-
"examples": [
|
|
11
|
+
"examples": [
|
|
12
|
+
"<p style=\"color: var(--ks-text-color-default);\">Hello World</p>"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"consent": {
|
|
16
|
+
"title": "Show HTML after consent",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
"consentText": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"consentButtonLabel": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"consentBackgroundImage": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "image"
|
|
29
|
+
},
|
|
30
|
+
"consentAspectRatio": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"16:9",
|
|
34
|
+
"16:10",
|
|
35
|
+
"4:3",
|
|
36
|
+
"1:1"
|
|
37
|
+
],
|
|
38
|
+
"default": "16:9"
|
|
12
39
|
},
|
|
13
40
|
"className": {
|
|
14
41
|
"title": "Additional Classes",
|
|
@@ -4,9 +4,10 @@ import { HTMLAttributes } from "react";
|
|
|
4
4
|
/**
|
|
5
5
|
* This file was automatically generated by json-schema-to-typescript.
|
|
6
6
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
-
* and run
|
|
7
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
8
8
|
*/
|
|
9
9
|
type HTMLString = string;
|
|
10
|
+
type ShowHTMLAfterConsent = boolean;
|
|
10
11
|
/**
|
|
11
12
|
* Add additional css classes that should be applied to the element
|
|
12
13
|
*/
|
|
@@ -20,10 +21,15 @@ type KsComponentAttribute = string;
|
|
|
20
21
|
*/
|
|
21
22
|
interface HTMLProps {
|
|
22
23
|
html?: HTMLString;
|
|
24
|
+
consent?: ShowHTMLAfterConsent;
|
|
25
|
+
consentText?: string;
|
|
26
|
+
consentButtonLabel?: string;
|
|
27
|
+
consentBackgroundImage?: string;
|
|
28
|
+
consentAspectRatio?: "16:9" | "16:10" | "4:3" | "1:1";
|
|
23
29
|
className?: AdditionalClasses;
|
|
24
30
|
component?: KsComponentAttribute;
|
|
25
31
|
}
|
|
26
32
|
declare const HtmlContextDefault: import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
33
|
declare const HtmlContext: import("react").Context<import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
28
|
-
declare const Html: import("react").ForwardRefExoticComponent<HTMLProps &
|
|
34
|
+
declare const Html: import("react").ForwardRefExoticComponent<HTMLProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
35
|
export { HtmlContextDefault, HtmlContext, Html };
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./html.css";
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
3
|
import { forwardRef, createContext, useContext } from 'react';
|
|
3
4
|
import classnames from 'classnames';
|
|
5
|
+
import { Button } from '@kickstartds/base/lib/button';
|
|
6
|
+
import './HtmlConsent.client.js';
|
|
7
|
+
import '@kickstartds/core/lib/component';
|
|
4
8
|
|
|
5
|
-
const HtmlContextDefault = forwardRef(({ html, className, component, ...props }, ref) => {
|
|
6
|
-
return (jsx("div", { ref: ref, className: classnames("c-html", className), dangerouslySetInnerHTML: { __html: html }, "ks-component": component, ...props })
|
|
9
|
+
const HtmlContextDefault = forwardRef(({ html, consent, consentText, consentBackgroundImage, consentButtonLabel, consentAspectRatio = "16:9", className, component, ...props }, ref) => {
|
|
10
|
+
return (jsx("div", { ref: ref, className: classnames("c-html", className), dangerouslySetInnerHTML: consent ? undefined : { __html: html }, "ks-component": component || (consent ? "dsa.html-consent" : undefined), ...props, children: consent ? (jsxs(Fragment, { children: [jsx("template", { dangerouslySetInnerHTML: { __html: html } }), jsxs("div", { style: {
|
|
11
|
+
backgroundImage: consentBackgroundImage
|
|
12
|
+
? `url(${consentBackgroundImage})`
|
|
13
|
+
: undefined,
|
|
14
|
+
}, className: classnames("c-html__consent", {
|
|
15
|
+
"c-html__consent--sixteen-to-nine": consentAspectRatio === "16:9",
|
|
16
|
+
"c-html__consent--sixteen-to-ten": consentAspectRatio === "16:10",
|
|
17
|
+
"c-html__consent--four-to-three": consentAspectRatio === "4:3",
|
|
18
|
+
"c-html__consent--square": consentAspectRatio === "1:1",
|
|
19
|
+
}), children: [jsx("p", { children: consentText }), jsx(Button, { type: "button", label: consentButtonLabel, className: "c-html__consent-button" })] })] })) : undefined }));
|
|
7
20
|
});
|
|
8
21
|
const HtmlContext = createContext(HtmlContextDefault);
|
|
9
22
|
const Html = forwardRef((props, ref) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
import { ImageStoryProps } from "../../ImageStoryProps-
|
|
3
|
+
import { ImageStoryProps } from "../../ImageStoryProps-e853e1e7.js";
|
|
4
4
|
declare const ImageStoryContextDefault: import("react").ForwardRefExoticComponent<ImageStoryProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const ImageStoryContext: import("react").Context<import("react").ForwardRefExoticComponent<ImageStoryProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
declare const ImageStory: import("react").ForwardRefExoticComponent<ImageStoryProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -24,7 +24,7 @@ interface SettingsProps {
|
|
|
24
24
|
*/
|
|
25
25
|
seo: SeoProps;
|
|
26
26
|
}
|
|
27
|
-
export * from "../../BlogPostProps-
|
|
28
|
-
export * from "../../BlogOverviewProps-
|
|
29
|
-
export * from "../../PageProps-
|
|
27
|
+
export * from "../../BlogPostProps-d9decb7c.js";
|
|
28
|
+
export * from "../../BlogOverviewProps-9f207f1c.js";
|
|
29
|
+
export * from "../../PageProps-aa29c554.js";
|
|
30
30
|
export { SettingsProps };
|
|
@@ -102,14 +102,15 @@
|
|
|
102
102
|
"id": "blog-blog-teaser--default",
|
|
103
103
|
"group": "Blog/ Blog Teaser",
|
|
104
104
|
"name": "Default",
|
|
105
|
-
"code": "<BlogTeaser\n author={{\n image: 'img/people/author-emily.png',\n name: 'Jane Smith',\n title: 'Senior AI Researcher'\n }}\n date=\"12/30/2022\"\n headline=\"The Future of AI\"\n image=\"img/close-up-young-business-team-working.png\"\n link={{\n url: 'https://example.com'\n }}\n readingTime=\"5 min read\"\n tags={[\n {\n entry: 'Technology'\n },\n {\n entry: 'AI'\n }\n ]}\n teaserText=\"Dive into the future of AI in this detailed blog post. Discover how technology is rapidly evolving, the impact of AI on various industries, and what to expect in the coming years. Learn about the latest advancements, challenges, and the potential solutions that AI brings to the table.\"\n/>",
|
|
105
|
+
"code": "<BlogTeaser\n author={{\n image: 'img/people/author-emily.png',\n name: 'Jane Smith',\n title: 'Senior AI Researcher'\n }}\n date=\"12/30/2022\"\n headline=\"The Future of AI\"\n image=\"img/close-up-young-business-team-working.png\"\n link={{\n label: 'Read more',\n url: 'https://example.com'\n }}\n readingTime=\"5 min read\"\n tags={[\n {\n entry: 'Technology'\n },\n {\n entry: 'AI'\n }\n ]}\n teaserText=\"Dive into the future of AI in this detailed blog post. Discover how technology is rapidly evolving, the impact of AI on various industries, and what to expect in the coming years. Learn about the latest advancements, challenges, and the potential solutions that AI brings to the table.\"\n/>",
|
|
106
106
|
"args": {
|
|
107
107
|
"date": "12/30/2022",
|
|
108
108
|
"headline": "The Future of AI",
|
|
109
109
|
"teaserText": "Dive into the future of AI in this detailed blog post. Discover how technology is rapidly evolving, the impact of AI on various industries, and what to expect in the coming years. Learn about the latest advancements, challenges, and the potential solutions that AI brings to the table.",
|
|
110
110
|
"image": "img/close-up-young-business-team-working.png",
|
|
111
111
|
"link": {
|
|
112
|
-
"url": "https://example.com"
|
|
112
|
+
"url": "https://example.com",
|
|
113
|
+
"label": "Read more"
|
|
113
114
|
},
|
|
114
115
|
"readingTime": "5 min read",
|
|
115
116
|
"author": {
|
|
@@ -2153,6 +2154,33 @@
|
|
|
2153
2154
|
},
|
|
2154
2155
|
"screenshot": "img/screenshots/components-hero--text-box-on-full-screen.png"
|
|
2155
2156
|
},
|
|
2157
|
+
{
|
|
2158
|
+
"id": "components-html--html",
|
|
2159
|
+
"group": "Components/HTML",
|
|
2160
|
+
"name": "HTML",
|
|
2161
|
+
"code": "<Html\n consentAspectRatio=\"16:9\"\n html=\"<p style="color: var(--ks-text-color-default);">Hello World</p>\"\n/>",
|
|
2162
|
+
"args": {
|
|
2163
|
+
"html": "<p style=\"color: var(--ks-text-color-default);\">Hello World</p>",
|
|
2164
|
+
"consent": false,
|
|
2165
|
+
"consentAspectRatio": "16:9"
|
|
2166
|
+
},
|
|
2167
|
+
"screenshot": "img/screenshots/components-html--html.png"
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
"id": "components-html--with-consent",
|
|
2171
|
+
"group": "Components/HTML",
|
|
2172
|
+
"name": "WithConsent",
|
|
2173
|
+
"code": "<Html\n consent\n consentAspectRatio=\"16:9\"\n consentBackgroundImage=\"img/02.jpg\"\n consentButtonLabel=\"yes!\"\n consentText=\"would you like to watch the youtube video?\"\n html=\"<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/oGGIkuGY-7U?si=Y5_JHflGsNwRCLu_" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>\"\n/>",
|
|
2174
|
+
"args": {
|
|
2175
|
+
"html": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube-nocookie.com/embed/oGGIkuGY-7U?si=Y5_JHflGsNwRCLu_\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen></iframe>",
|
|
2176
|
+
"consent": true,
|
|
2177
|
+
"consentAspectRatio": "16:9",
|
|
2178
|
+
"consentText": "would you like to watch the youtube video?",
|
|
2179
|
+
"consentButtonLabel": "yes!",
|
|
2180
|
+
"consentBackgroundImage": "img/02.jpg"
|
|
2181
|
+
},
|
|
2182
|
+
"screenshot": "img/screenshots/components-html--with-consent.png"
|
|
2183
|
+
},
|
|
2156
2184
|
{
|
|
2157
2185
|
"id": "components-image-story--sticky-image-next-to-scrolling-text",
|
|
2158
2186
|
"group": "Components/Image Story",
|
package/dist/tokens/themes.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Wed, 11 Sep 2024
|
|
3
|
+
* Generated on Wed, 11 Sep 2024 09:53:03 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 Wed, 11 Sep 2024
|
|
2730
|
+
* Generated on Wed, 11 Sep 2024 09:53:06 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 Wed, 11 Sep 2024
|
|
5461
|
+
* Generated on Wed, 11 Sep 2024 09:53:05 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 Wed, 11 Sep 2024
|
|
8462
|
+
* Generated on Wed, 11 Sep 2024 09:53:08 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
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|