@kickstartds/ds-agency-premium 1.6.71--canary.50.2259.0 → 1.6.71--canary.50.2263.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.
@@ -4,7 +4,7 @@
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
6
  import { SectionProps } from "./SectionProps-d60aba86.js";
7
- import { BlogTeaserProps } from "./BlogTeaserProps-f5855e93.js";
7
+ import { BlogTeaserProps } from "./BlogTeaserProps-d62a0a9a.js";
8
8
  import { CtaProps } from "./CtaProps-789f8508.js";
9
9
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
10
10
  /**
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- import { BlogTeaserProps } from "../../BlogTeaserProps-f5855e93.js";
3
+ import { BlogTeaserProps } from "../../BlogTeaserProps-d62a0a9a.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,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 05 Sep 2025 14:03:21 GMT
3
+ * Generated on Fri, 05 Sep 2025 14:40:02 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-fg-to-bg-9-base);
@@ -3962,9 +3962,13 @@
3962
3962
  "id": "corporate-search-form--pagefind",
3963
3963
  "group": "Corporate / Search Form",
3964
3964
  "name": "Pagefind",
3965
- "code": "<SearchForm component=\"dsa.search-form.pagefind\" />",
3965
+ "code": "<SearchForm\n component=\"dsa.search-form.pagefind\"\n result={{\n imageColSize: 'small',\n showLink: true\n }}\n/>",
3966
3966
  "args": {
3967
- "component": "dsa.search-form.pagefind"
3967
+ "component": "dsa.search-form.pagefind",
3968
+ "result": {
3969
+ "showLink": true,
3970
+ "imageColSize": "small"
3971
+ }
3968
3972
  },
3969
3973
  "screenshot": "img/screenshots/corporate-search-form--pagefind.png"
3970
3974
  },
@@ -1,5 +1,31 @@
1
1
  import { FC, HTMLAttributes } from "react";
2
- declare const SearchForm: FC<HTMLAttributes<HTMLFormElement> & {
2
+ /* eslint-disable */
3
+ /**
4
+ * This file was automatically generated by json-schema-to-typescript.
5
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
+ * and run json-schema-to-typescript to regenerate this file.
7
+ */
8
+ /**
9
+ * Whether to display the link to the search result.
10
+ */
11
+ type ShowLink = boolean;
12
+ /**
13
+ * The reserved space of the image row.
14
+ */
15
+ type ImageRowSize = "none" | "small" | "large";
16
+ interface SearchFormProps {
17
+ /**
18
+ * ks-component attribute
19
+ */
3
20
  component?: string;
4
- }>;
21
+ result?: {
22
+ /**
23
+ * Max number of subresults of a single search result
24
+ */
25
+ maxSubresults?: number;
26
+ showLink?: ShowLink;
27
+ imageColSize?: ImageRowSize;
28
+ };
29
+ }
30
+ declare const SearchForm: FC<SearchFormProps & HTMLAttributes<HTMLFormElement>>;
5
31
  export { SearchForm };
@@ -17,6 +17,6 @@ import '@kickstartds/core/lib/container';
17
17
  import '@kickstartds/core/lib/component';
18
18
  import '@kickstartds/core/lib/core';
19
19
 
20
- const SearchForm = ({ className, component = "dsa.search-form", ...props }) => (jsxs("form", { className: classnames("dsa-search-form", className), "ks-component": component, ...props, children: [jsx(SearchBar, { alternativeText: "", alternativeResult: "", hint: "" }), jsxs("div", { hidden: true, children: [jsx("li", { "data-template": "result", className: "lazyload", children: jsx(SearchResult, { previewImage: "" }) }), jsx(SearchResultMatch, { "data-template": "subresult" })] }), jsx("ol", { className: "dsa-search-form__results" })] }));
20
+ const SearchForm = ({ className, component = "dsa.search-form", result = {}, ...props }) => (jsxs("form", { className: classnames("dsa-search-form", className), "ks-component": component, "data-max-subresults": result.maxSubresults, ...props, children: [jsx(SearchBar, { alternativeText: "", alternativeResult: "", hint: "" }), jsxs("div", { hidden: true, children: [jsx("li", { "data-template": "result", className: "lazyload", children: jsx(SearchResult, { showLink: result.showLink, imageColSize: result.imageColSize }) }), jsx(SearchResultMatch, { "data-template": "subresult" })] }), jsx("ol", { className: "dsa-search-form__results" })] }));
21
21
 
22
22
  export { SearchForm };
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/search-form.schema.json",
4
+ "title": "Search Form",
5
+ "type": "object",
6
+ "properties": {
7
+ "component": {
8
+ "type": "string",
9
+ "description": "ks-component attribute",
10
+ "default": "dsa.search-form"
11
+ },
12
+ "result": {
13
+ "type": "object",
14
+ "properties": {
15
+ "maxSubresults": {
16
+ "type": "number",
17
+ "description": "Max number of subresults of a single search result"
18
+ },
19
+ "showLink": {
20
+ "title": "Show Link",
21
+ "type": "boolean",
22
+ "description": "Whether to display the link to the search result.",
23
+ "default": true
24
+ },
25
+ "imageColSize": {
26
+ "title": "Image Row Size",
27
+ "type": "string",
28
+ "description": "The reserved space of the image row.",
29
+ "default": "small",
30
+ "enum": [
31
+ "none",
32
+ "small",
33
+ "large"
34
+ ]
35
+ }
36
+ },
37
+ "additionalProperties": false
38
+ }
39
+ },
40
+ "additionalProperties": false
41
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/search-form.schema.json",
4
+ "title": "Search Form",
5
+ "type": "object",
6
+ "properties": {
7
+ "component": {
8
+ "type": "string",
9
+ "description": "ks-component attribute",
10
+ "default": "dsa.search-form"
11
+ },
12
+ "result": {
13
+ "type": "object",
14
+ "properties": {
15
+ "maxSubresults": {
16
+ "type": "number",
17
+ "description": "Max number of subresults of a single search result"
18
+ },
19
+ "showLink": {
20
+ "$ref": "http://schema.mydesignsystem.com/search-result.schema.json#/properties/showLink"
21
+ },
22
+ "imageColSize": {
23
+ "$ref": "http://schema.mydesignsystem.com/search-result.schema.json#/properties/imageColSize"
24
+ }
25
+ },
26
+ "additionalProperties": false
27
+ }
28
+ },
29
+ "additionalProperties": false
30
+ }
@@ -18,7 +18,7 @@ const defaults = {
18
18
  const SearchResultContextDefault = forwardRef(({ title, previewImage, imageColSize = "small", initialMatch, matches, url, showLink, }, ref) => (jsx(Container, { name: "search-result", children: jsxs("div", { ref: ref, className: classnames("dsa-search-result", {
19
19
  "dsa-search-result--image-row-large": imageColSize === "large",
20
20
  "dsa-search-result--image-row-none": imageColSize === "none",
21
- }), children: [jsxs("div", { className: "dsa-search-result__content", children: [jsx("div", { className: "dsa-search-result__header", children: jsx(Link, { "data-result-link": true, "data-result-title": true, href: url, className: "dsa-search-result__title", children: title }) }), initialMatch && (jsx(RichText, { className: "dsa-search-result__initial-match", text: initialMatch, "data-result-excerpt": true })), matches && matches.length > 0 && (jsx("div", { className: "dsa-search-result__matches", "data-result-subresults": true, children: matches.map((match, index) => (jsx(SearchResultMatch, { ...match }, index))) })), showLink && (jsx(Link, { href: url, className: "dsa-search-result__link", "data-result-link": true, "data-result-url": true, children: url }))] }), imageColSize !== "none" && (jsx("div", { className: "dsa-search-result__preview-image-row", children: previewImage && (jsx(Link, { tabIndex: -1, "aria-hidden": true, href: url, className: "dsa-search-result__preview-image-wrapper", "data-result-link": true, children: jsx(Picture, { src: previewImage, alt: "", className: "dsa-search-result__preview-image", "data-result-image": true }) })) }))] }) })));
21
+ }), children: [jsxs("div", { className: "dsa-search-result__content", children: [jsx("div", { className: "dsa-search-result__header", children: jsx(Link, { "data-result-link": true, "data-result-title": true, href: url, className: "dsa-search-result__title", children: title }) }), jsx(RichText, { className: "dsa-search-result__initial-match", text: initialMatch, "data-result-excerpt": true }), jsx("div", { className: "dsa-search-result__matches", "data-result-subresults": true, children: matches.map((match, index) => (jsx(SearchResultMatch, { ...match }, index))) }), showLink && (jsx(Link, { href: url, className: "dsa-search-result__link", "data-result-link": true, "data-result-url": true, children: url }))] }), imageColSize !== "none" && (jsx("div", { className: "dsa-search-result__preview-image-row", children: jsx(Link, { tabIndex: -1, "aria-hidden": true, href: url, className: "dsa-search-result__preview-image-wrapper", "data-result-link": true, children: jsx(Picture, { src: previewImage, alt: "", className: "dsa-search-result__preview-image", "data-result-image": true }) }) }))] }) })));
22
22
  const SearchResultContext = createContext(SearchResultContextDefault);
23
23
  const SearchResult = forwardRef((props, ref) => {
24
24
  const Component = useContext(SearchResultContext);
@@ -29,10 +29,12 @@
29
29
  width: fit-content;
30
30
  font: var(--ks-font-interface-s);
31
31
  }
32
- .dsa-search-result strong {
32
+ .dsa-search-result strong,
33
+ .dsa-search-result mark {
33
34
  border-bottom: 1px dashed var(--ks-color-fg);
34
35
  font-weight: unset;
35
36
  color: var(--ks-color-fg);
37
+ background-color: transparent;
36
38
  }
37
39
  .dsa-search-result__matches {
38
40
  padding: var(--ks-spacing-xxs) 0;
@@ -68,4 +70,7 @@
68
70
  object-fit: cover;
69
71
  aspect-ratio: 4/3;
70
72
  border-radius: calc(var(--ks-border-radius-card) / 2);
73
+ }
74
+ .dsa-search-result__preview-image:not([src]) {
75
+ display: none;
71
76
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 05 Sep 2025 14:03:24 GMT
3
+ * Generated on Fri, 05 Sep 2025 14:40:05 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 Fri, 05 Sep 2025 14:03:28 GMT
2730
+ * Generated on Fri, 05 Sep 2025 14:40:10 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 Fri, 05 Sep 2025 14:03:26 GMT
5461
+ * Generated on Fri, 05 Sep 2025 14:40:07 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 Fri, 05 Sep 2025 14:03:30 GMT
8462
+ * Generated on Fri, 05 Sep 2025 14:40:13 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 Fri, 05 Sep 2025 14:03:21 GMT
3
+ * Generated on Fri, 05 Sep 2025 14:40:02 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 Fri, 05 Sep 2025 14:03:22 GMT
3
+ * Generated on Fri, 05 Sep 2025 14:40:03 GMT
4
4
  */
5
5
 
6
6
  export const KsBackgroundColorAccentBase = "#f3f3f4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kickstartds/ds-agency-premium",
3
- "version": "1.6.71--canary.50.2259.0",
3
+ "version": "1.6.71--canary.50.2263.0",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {