@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.
- package/dist/BlogOverviewProps-9f207f1c.d.ts +1 -1
- package/dist/components/blog-teaser/index.d.ts +1 -1
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +6 -2
- package/dist/components/search-form/index.d.ts +28 -2
- package/dist/components/search-form/index.js +1 -1
- package/dist/components/search-form/search-form.schema.dereffed.json +41 -0
- package/dist/components/search-form/search-form.schema.json +30 -0
- package/dist/components/search-result/index.js +1 -1
- package/dist/components/search-result/search-result.css +6 -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 +1 -1
- /package/dist/{BlogTeaserProps-f5855e93.d.ts → BlogTeaserProps-d62a0a9a.d.ts} +0 -0
|
@@ -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-
|
|
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-
|
|
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>>;
|
|
@@ -3962,9 +3962,13 @@
|
|
|
3962
3962
|
"id": "corporate-search-form--pagefind",
|
|
3963
3963
|
"group": "Corporate / Search Form",
|
|
3964
3964
|
"name": "Pagefind",
|
|
3965
|
-
"code": "<SearchForm
|
|
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
|
-
|
|
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, {
|
|
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 }) }),
|
|
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
|
}
|
package/dist/tokens/themes.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Fri, 05 Sep 2025 14:
|
|
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:
|
|
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:
|
|
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:
|
|
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);
|
package/dist/tokens/tokens.css
CHANGED
package/dist/tokens/tokens.js
CHANGED
package/package.json
CHANGED
|
File without changes
|