@kickstartds/ds-agency-premium 1.6.65 → 1.6.67

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.
@@ -5,6 +5,10 @@
5
5
  */
6
6
  type HTMLString = string;
7
7
  type ShowHTMLAfterConsent = boolean;
8
+ /**
9
+ * Invert the colors of the HTML
10
+ */
11
+ type Inverted = boolean;
8
12
  /**
9
13
  * Add additional css classes that should be applied to the element
10
14
  */
@@ -23,7 +27,8 @@ interface HtmlProps {
23
27
  consentButtonLabel?: string;
24
28
  consentBackgroundImage?: string;
25
29
  consentAspectRatio?: "16:9" | "16:10" | "4:3" | "1:1";
30
+ inverted?: Inverted;
26
31
  className?: AdditionalClasses;
27
32
  component?: KsComponentAttribute;
28
33
  }
29
- export { HTMLString, ShowHTMLAfterConsent, AdditionalClasses, KsComponentAttribute, HtmlProps };
34
+ export { HTMLString, ShowHTMLAfterConsent, Inverted, AdditionalClasses, KsComponentAttribute, HtmlProps };
@@ -9,7 +9,7 @@ import { FaqProps } from "./FaqProps-ad618cd5.js";
9
9
  import { FeaturesProps } from "./FeaturesProps-e58616a5.js";
10
10
  import { GalleryProps } from "./GalleryProps-76e7de44.js";
11
11
  import { HeroProps } from "./HeroProps-f704d270.js";
12
- import { HtmlProps } from "./HtmlProps-8e95ed81.js";
12
+ import { HtmlProps } from "./HtmlProps-9d091769.js";
13
13
  import { ImageStoryProps } from "./ImageStoryProps-e853e1e7.js";
14
14
  import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
15
15
  import { LogosProps } from "./LogosProps-f9474fe2.js";
@@ -899,6 +899,12 @@
899
899
  ],
900
900
  "default": "16:9"
901
901
  },
902
+ "inverted": {
903
+ "title": "Inverted",
904
+ "description": "Invert the colors of the HTML",
905
+ "type": "boolean",
906
+ "default": false
907
+ },
902
908
  "className": {
903
909
  "title": "Additional Classes",
904
910
  "description": "Add additional css classes that should be applied to the element",
@@ -1175,6 +1175,12 @@
1175
1175
  ],
1176
1176
  "default": "16:9"
1177
1177
  },
1178
+ "inverted": {
1179
+ "title": "Inverted",
1180
+ "description": "Invert the colors of the HTML",
1181
+ "type": "boolean",
1182
+ "default": false
1183
+ },
1178
1184
  "className": {
1179
1185
  "title": "Additional Classes",
1180
1186
  "description": "Add additional css classes that should be applied to the element",
@@ -1,4 +1,4 @@
1
- import { BlogPostProps } from "../../BlogPostProps-6b3cff22.js";
1
+ import { BlogPostProps } from "../../BlogPostProps-d9decb7c.js";
2
2
  import { FC, PropsWithChildren } from "react";
3
3
  declare const BlogPost: FC<PropsWithChildren<BlogPostProps>>;
4
4
  export type { BlogPostProps };
@@ -1,7 +1,8 @@
1
1
  .dsa-html {
2
2
  --dsa-html__consent--color: var(--ks-text-color-display);
3
3
  --dsa-html__consent--font: var(--ks-font-copy-m);
4
- --dsa-html__consent--background: var(--ks-color-fg-inverted-alpha-4);
4
+ --dsa-html__consent--font-weight: var(--ks-font-weight-regular);
5
+ --dsa-html__consent--background: var(--ks-color-fg-inverted-alpha-2);
5
6
  }
6
7
 
7
8
  .dsa-html__consent {
@@ -20,6 +21,7 @@
20
21
  .dsa-html__consent .c-rich-text {
21
22
  color: var(--dsa-html__consent--color, var(--ks-text-color-display));
22
23
  font: var(--dsa-html__consent--font, var(--ks-font-interface-m));
24
+ font-weight: var(--dsa-html__consent--font-weight, var(--ks-font-weight-regular));
23
25
  text-align: center;
24
26
  }
25
27
  .dsa-html__consent:after {
@@ -37,6 +37,12 @@
37
37
  ],
38
38
  "default": "16:9"
39
39
  },
40
+ "inverted": {
41
+ "title": "Inverted",
42
+ "description": "Invert the colors of the HTML",
43
+ "type": "boolean",
44
+ "default": false
45
+ },
40
46
  "className": {
41
47
  "title": "Additional Classes",
42
48
  "description": "Add additional css classes that should be applied to the element",
@@ -29,14 +29,15 @@
29
29
  },
30
30
  "consentAspectRatio": {
31
31
  "type": "string",
32
- "enum": [
33
- "16:9",
34
- "16:10",
35
- "4:3",
36
- "1:1"
37
- ],
32
+ "enum": ["16:9", "16:10", "4:3", "1:1"],
38
33
  "default": "16:9"
39
34
  },
35
+ "inverted": {
36
+ "title": "Inverted",
37
+ "description": "Invert the colors of the HTML",
38
+ "type": "boolean",
39
+ "default": false
40
+ },
40
41
  "className": {
41
42
  "title": "Additional Classes",
42
43
  "description": "Add additional css classes that should be applied to the element",
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- import { HtmlProps } from "../../HtmlProps-8e95ed81.js";
3
+ import { HtmlProps } from "../../HtmlProps-9d091769.js";
4
4
  declare const HtmlContextDefault: import("react").ForwardRefExoticComponent<HtmlProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  declare const HtmlContext: import("react").Context<import("react").ForwardRefExoticComponent<HtmlProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
6
  declare const Html: import("react").ForwardRefExoticComponent<HtmlProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -7,8 +7,8 @@ import { RichText } from '@kickstartds/base/lib/rich-text';
7
7
  import './Html.client.js';
8
8
  import '@kickstartds/core/lib/component';
9
9
 
10
- const HtmlContextDefault = forwardRef(({ html, consent, consentText, consentBackgroundImage, consentButtonLabel, consentAspectRatio = "16:9", className, component = "dsa.html", ...props }, ref) => {
11
- return (jsxs("div", { ref: ref, className: classnames("dsa-html", className), "ks-component": component, ...props, children: [jsx("template", { dangerouslySetInnerHTML: { __html: html } }), consent && (jsxs("div", { style: {
10
+ const HtmlContextDefault = forwardRef(({ html, consent, consentText, consentBackgroundImage, consentButtonLabel, consentAspectRatio = "16:9", inverted, className, component = "dsa.html", ...props }, ref) => {
11
+ return (jsxs("div", { ref: ref, className: classnames("dsa-html", className), "ks-component": component, "ks-inverted": inverted ? "true" : undefined, ...props, children: [jsx("template", { dangerouslySetInnerHTML: { __html: html } }), consent && (jsxs("div", { style: {
12
12
  backgroundImage: consentBackgroundImage
13
13
  ? `url(${consentBackgroundImage})`
14
14
  : undefined,
@@ -17,7 +17,7 @@ const HtmlContextDefault = forwardRef(({ html, consent, consentText, consentBack
17
17
  "dsa-html__consent--sixteen-to-ten": consentAspectRatio === "16:10",
18
18
  "dsa-html__consent--four-to-three": consentAspectRatio === "4:3",
19
19
  "dsa-html__consent--square": consentAspectRatio === "1:1",
20
- }), children: [consentText && jsx(RichText, { text: consentText }), jsx(Button, { type: "button", label: consentButtonLabel, className: "dsa-html__consent-button", variant: "tertiary" })] }))] }));
20
+ }), children: [consentText && jsx(RichText, { text: consentText }), jsx(Button, { type: "button", label: consentButtonLabel, className: "dsa-html__consent-button", variant: "primary" })] }))] }));
21
21
  });
22
22
  const HtmlContext = createContext(HtmlContextDefault);
23
23
  const Html = forwardRef((props, ref) => {
@@ -29,7 +29,7 @@ interface SettingsProps {
29
29
  seo: SeoProps;
30
30
  iconSprite?: IconSprite;
31
31
  }
32
- export * from "../../BlogPostProps-6b3cff22.js";
32
+ export * from "../../BlogPostProps-d9decb7c.js";
33
33
  export * from "../../BlogOverviewProps-9f207f1c.js";
34
34
  export * from "../../PageProps-aa29c554.js";
35
35
  export { IconSprite, SettingsProps };
@@ -899,6 +899,12 @@
899
899
  ],
900
900
  "default": "16:9"
901
901
  },
902
+ "inverted": {
903
+ "title": "Inverted",
904
+ "description": "Invert the colors of the HTML",
905
+ "type": "boolean",
906
+ "default": false
907
+ },
902
908
  "className": {
903
909
  "title": "Additional Classes",
904
910
  "description": "Add additional css classes that should be applied to the element",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 04 Feb 2025 15:27:01 GMT
3
+ * Generated on Wed, 05 Feb 2025 16:02:23 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2095,7 +2095,8 @@
2095
2095
  "args": {
2096
2096
  "html": "<p style=\"color: var(--ks-text-color-default);\">Hello World</p>",
2097
2097
  "consent": false,
2098
- "consentAspectRatio": "16:9"
2098
+ "consentAspectRatio": "16:9",
2099
+ "inverted": false
2099
2100
  },
2100
2101
  "screenshot": "img/screenshots/components-html--html.png"
2101
2102
  },
@@ -2108,6 +2109,7 @@
2108
2109
  "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>",
2109
2110
  "consent": true,
2110
2111
  "consentAspectRatio": "16:9",
2112
+ "inverted": false,
2111
2113
  "consentText": "would you like to watch the youtube video?",
2112
2114
  "consentButtonLabel": "yes!",
2113
2115
  "consentBackgroundImage": "img/02.jpg"
@@ -2123,6 +2125,7 @@
2123
2125
  "html": "<script>alert(\"Hello :)\")</script><p style=\"color: var(--ks-text-color-default);\">Nice to meet you!</p>",
2124
2126
  "consent": true,
2125
2127
  "consentAspectRatio": "16:9",
2128
+ "inverted": false,
2126
2129
  "consentButtonLabel": "Say hello"
2127
2130
  },
2128
2131
  "screenshot": "img/screenshots/components-html--with-script.png"
@@ -885,6 +885,12 @@
885
885
  ],
886
886
  "default": "16:9"
887
887
  },
888
+ "inverted": {
889
+ "title": "Inverted",
890
+ "description": "Invert the colors of the HTML",
891
+ "type": "boolean",
892
+ "default": false
893
+ },
888
894
  "className": {
889
895
  "title": "Additional Classes",
890
896
  "description": "Add additional css classes that should be applied to the element",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 04 Feb 2025 15:27:04 GMT
3
+ * Generated on Wed, 05 Feb 2025 16:02:25 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 Tue, 04 Feb 2025 15:27:08 GMT
2730
+ * Generated on Wed, 05 Feb 2025 16:02:29 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 Tue, 04 Feb 2025 15:27:06 GMT
5461
+ * Generated on Wed, 05 Feb 2025 16:02:27 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 Tue, 04 Feb 2025 15:27:11 GMT
8462
+ * Generated on Wed, 05 Feb 2025 16:02:31 GMT
8463
8463
  */
8464
8464
  :root [ks-theme=telekom] {
8465
8465
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 04 Feb 2025 15:27:01 GMT
3
+ * Generated on Wed, 05 Feb 2025 16:02:23 GMT
4
4
  */
5
5
 
6
6
  :root, [ks-theme] {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 04 Feb 2025 15:27:02 GMT
3
+ * Generated on Wed, 05 Feb 2025 16:02:23 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#230a2b";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kickstartds/ds-agency-premium",
3
- "version": "1.6.65",
3
+ "version": "1.6.67",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {