@kickstartds/ds-agency-premium 1.6.0--canary.17.1001.0 → 1.6.0--canary.18.1019.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/components/blog-post/index.d.ts +1 -1
- package/dist/components/footer/footer.css +2 -2
- package/dist/components/html/html.schema.json +2 -29
- package/dist/components/html/index.d.ts +2 -8
- package/dist/components/html/index.js +3 -16
- package/dist/components/index/index.d.ts +1 -1
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +0 -27
- package/dist/components/testimonial/index.js +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 +8 -3
- package/dist/components/html/HtmlConsent.client.d.ts +0 -5
- package/dist/components/html/HtmlConsent.client.js +0 -25
- package/dist/components/html/html.css +0 -20
- package/dist/components/html/html.schema.dereffed.json +0 -55
- /package/dist/{BlogPostProps-d9decb7c.d.ts → BlogPostProps-6b3cff22.d.ts} +0 -0
|
@@ -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-tecoration_hover: 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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "http://schema.
|
|
3
|
+
"$id": "http://schema.kickstartds.com/base/html.schema.json",
|
|
4
4
|
"title": "HTML",
|
|
5
5
|
"description": "Display raw HTML.",
|
|
6
6
|
"type": "object",
|
|
@@ -8,34 +8,7 @@
|
|
|
8
8
|
"html": {
|
|
9
9
|
"title": "HTML string",
|
|
10
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"
|
|
11
|
+
"examples": ["<p>Hello world!</p>"]
|
|
39
12
|
},
|
|
40
13
|
"className": {
|
|
41
14
|
"title": "Additional Classes",
|
|
@@ -4,10 +4,9 @@ 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 `yarn run schema` to regenerate this file.
|
|
8
8
|
*/
|
|
9
9
|
type HTMLString = string;
|
|
10
|
-
type ShowHTMLAfterConsent = boolean;
|
|
11
10
|
/**
|
|
12
11
|
* Add additional css classes that should be applied to the element
|
|
13
12
|
*/
|
|
@@ -21,15 +20,10 @@ type KsComponentAttribute = string;
|
|
|
21
20
|
*/
|
|
22
21
|
interface HTMLProps {
|
|
23
22
|
html?: HTMLString;
|
|
24
|
-
consent?: ShowHTMLAfterConsent;
|
|
25
|
-
consentText?: string;
|
|
26
|
-
consentButtonLabel?: string;
|
|
27
|
-
consentBackgroundImage?: string;
|
|
28
|
-
consentAspectRatio?: "16:9" | "16:10" | "4:3" | "1:1";
|
|
29
23
|
className?: AdditionalClasses;
|
|
30
24
|
component?: KsComponentAttribute;
|
|
31
25
|
}
|
|
32
26
|
declare const HtmlContextDefault: import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
27
|
declare const HtmlContext: import("react").Context<import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
34
|
-
declare const Html: import("react").ForwardRefExoticComponent<HTMLProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const Html: import("react").ForwardRefExoticComponent<HTMLProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
29
|
export { HtmlContextDefault, HtmlContext, Html };
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { forwardRef, createContext, useContext } from 'react';
|
|
4
3
|
import classnames from 'classnames';
|
|
5
|
-
import { Button } from '@kickstartds/base/lib/button';
|
|
6
|
-
import './HtmlConsent.client.js';
|
|
7
|
-
import '@kickstartds/core/lib/component';
|
|
8
4
|
|
|
9
|
-
const HtmlContextDefault = forwardRef(({ html,
|
|
10
|
-
return (jsx("div", { ref: ref, className: classnames("c-html", className), dangerouslySetInnerHTML:
|
|
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 }));
|
|
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 }));
|
|
20
7
|
});
|
|
21
8
|
const HtmlContext = createContext(HtmlContextDefault);
|
|
22
9
|
const Html = forwardRef((props, ref) => {
|
|
@@ -24,7 +24,7 @@ interface SettingsProps {
|
|
|
24
24
|
*/
|
|
25
25
|
seo: SeoProps;
|
|
26
26
|
}
|
|
27
|
-
export * from "../../BlogPostProps-
|
|
27
|
+
export * from "../../BlogPostProps-6b3cff22.js";
|
|
28
28
|
export * from "../../BlogOverviewProps-9f207f1c.js";
|
|
29
29
|
export * from "../../PageProps-aa29c554.js";
|
|
30
30
|
export { SettingsProps };
|
|
@@ -2154,33 +2154,6 @@
|
|
|
2154
2154
|
},
|
|
2155
2155
|
"screenshot": "img/screenshots/components-hero--text-box-on-full-screen.png"
|
|
2156
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
|
-
},
|
|
2184
2157
|
{
|
|
2185
2158
|
"id": "components-image-story--sticky-image-next-to-scrolling-text",
|
|
2186
2159
|
"group": "Components/Image Story",
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef, createContext, useContext } from 'react';
|
|
3
3
|
import { Quote } from '@kickstartds/content/lib/quote';
|
|
4
4
|
|
|
5
|
-
const TestimonialContextDefault = forwardRef(({ image, quote, name, title, layout, index, rating, ...rest }, ref) => (jsx(Quote, { ...rest, ref: ref, className: layout === "alternating" && index % 2 === 1 ? "c-quote--reverse" : "", text: quote, source: name, byline: title, image: image.src, renderSource: () => (jsxs(Fragment, { children: [rating ? (jsx("div", { children: [...Array(rating)].map((_, index) => (jsx("span", { children: "\u2605" }, index))) })) : (""), jsx("div", { className: "c-quote__source", children: name })] })) })));
|
|
5
|
+
const TestimonialContextDefault = forwardRef(({ image, quote, name, title, layout, index, rating, ...rest }, ref) => (jsx(Quote, { ...rest, ref: ref, className: layout === "alternating" && index % 2 === 1 ? "c-quote--reverse" : "", text: quote, source: name, byline: title, image: image && image.src, renderSource: () => (jsxs(Fragment, { children: [rating ? (jsx("div", { children: [...Array(rating)].map((_, index) => (jsx("span", { children: "\u2605" }, index))) })) : (""), jsx("div", { className: "c-quote__source", children: name })] })) })));
|
|
6
6
|
const TestimonialContext = createContext(TestimonialContextDefault);
|
|
7
7
|
const Testimonial = forwardRef((props, ref) => {
|
|
8
8
|
const Component = useContext(TestimonialContext);
|
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, 20 Sep 2024 10:59:50 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, 20 Sep 2024 10:59:55 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, 20 Sep 2024 10:59:52 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, 20 Sep 2024 10:59:57 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kickstartds/ds-agency-premium",
|
|
3
|
-
"version": "1.6.0--canary.
|
|
3
|
+
"version": "1.6.0--canary.18.1019.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -74,17 +74,20 @@
|
|
|
74
74
|
"@bedrock-layout/primitives": "^3.0.23",
|
|
75
75
|
"@bedrock-layout/spacing-constants": "^3.2.5",
|
|
76
76
|
"classnames": "^2.3.2",
|
|
77
|
-
"markdown-to-jsx": "^7.3.2"
|
|
77
|
+
"markdown-to-jsx": "^7.3.2",
|
|
78
|
+
"react-browser-ui": "^1.3.5",
|
|
79
|
+
"react-loader-spinner": "^6.1.6"
|
|
78
80
|
},
|
|
79
81
|
"devDependencies": {
|
|
80
82
|
"@auto-it/npm": "^11.0.1",
|
|
81
83
|
"@auto-it/released": "^11.0.1",
|
|
82
84
|
"@kickstartds/base": "^4.0.2",
|
|
83
85
|
"@kickstartds/blog": "^4.0.2",
|
|
86
|
+
"@kickstartds/cambria": "^1.0.5",
|
|
84
87
|
"@kickstartds/content": "^4.0.0",
|
|
85
88
|
"@kickstartds/core": "^4.0.2",
|
|
86
89
|
"@kickstartds/form": "^4.0.2",
|
|
87
|
-
"@kickstartds/jsonschema-utils": "^3.
|
|
90
|
+
"@kickstartds/jsonschema-utils": "^3.4.1",
|
|
88
91
|
"@kickstartds/jsonschema2types": "^1.1.37",
|
|
89
92
|
"@kickstartds/storybook-addon-component-tokens": "^3.0.0",
|
|
90
93
|
"@kickstartds/storybook-addon-html": "^1.0.0",
|
|
@@ -114,9 +117,11 @@
|
|
|
114
117
|
"happy-dom": "^13.3.1",
|
|
115
118
|
"husky": "^8.0.3",
|
|
116
119
|
"jest-image-snapshot": "^6.4.0",
|
|
120
|
+
"json-schema-traverse": "^1.0.0",
|
|
117
121
|
"kickstartds": "^3.0.0",
|
|
118
122
|
"lazysizes": "^5.3.2",
|
|
119
123
|
"npm-run-all": "^4.1.5",
|
|
124
|
+
"object-traversal": "^1.0.1",
|
|
120
125
|
"patch-package": "^8.0.0",
|
|
121
126
|
"playroom": "^0.34.1",
|
|
122
127
|
"postcss": "^8.4.29",
|
|
@@ -1,25 +0,0 @@
|
|
|
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 };
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|