@kickstartds/ds-agency-premium 1.2.18 → 1.2.20
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/{TestimonialsProps-4b94faa8.d.ts → TestimonialProps-94bdeac9.d.ts} +5 -16
- package/dist/TestimonialsProps-72bb9288.d.ts +22 -0
- package/dist/components/blog-overview/index.d.ts +36 -1
- package/dist/components/blog-post/index.d.ts +36 -1
- package/dist/components/feature/index.js +0 -1
- package/dist/components/features/features.css +98 -0
- package/dist/components/footer/index.d.ts +37 -1
- package/dist/components/header/index.d.ts +42 -1
- package/dist/components/page/page.schema.dereffed.json +12 -6
- package/dist/components/page-wrapper/index.d.ts +3 -2
- package/dist/components/page-wrapper/index.js +471 -6
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +25 -181
- package/dist/components/section/index.d.ts +141 -1
- package/dist/components/section/section.schema.dereffed.json +12 -6
- package/dist/components/testimonial/index.d.ts +13 -41
- package/dist/components/testimonial/index.js +4 -11
- package/dist/components/testimonial/testimonial.schema.dereffed.json +7 -0
- package/dist/components/testimonial/testimonial.schema.json +7 -0
- package/dist/components/testimonials/index.d.ts +1 -1
- package/dist/components/testimonials/index.js +6 -7
- package/dist/components/testimonials/testimonials.schema.dereffed.json +12 -6
- package/dist/components/testimonials/testimonials.schema.json +3 -48
- package/dist/global.css +1 -1
- package/dist/tokens/themes.css +11186 -0
- package/dist/tokens/themes.css.d.ts +0 -0
- package/dist/tokens/themes.css.js +1 -0
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/package.json +4 -3
- package/dist/BlogOverviewProps-525f7f9f.d.ts +0 -36
- package/dist/BlogPostProps-e1cbd5d3.d.ts +0 -36
- package/dist/FooterProps-b5c16ab5.d.ts +0 -37
- package/dist/HeaderProps-ae331ab2.d.ts +0 -42
- package/dist/SectionProps-83d399b4.d.ts +0 -141
- package/dist/components/feature/feature.css +0 -99
- package/dist/components/index/index.d.ts +0 -50
- package/dist/components/index/index.js +0 -1
- package/dist/components/raw-page-wrapper/index.d.ts +0 -3
- package/dist/components/raw-page-wrapper/index.js +0 -492
- package/dist/static/tokens-business.css +0 -2725
- package/dist/static/tokens-google.css +0 -2729
- package/dist/static/tokens-ngo.css +0 -2999
- package/dist/static/tokens-telekom.css +0 -2725
- package/dist/static/tokens.css +0 -2730
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { forwardRef, createElement, createContext, useContext } from 'react';
|
|
2
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { Quote } from '@kickstartds/content/lib/quote';
|
|
4
4
|
|
|
5
|
-
const TestimonialContextDefault = forwardRef(({ image, quote, name, title, ...rest }, ref) => (
|
|
6
|
-
{
|
|
7
|
-
image: {
|
|
8
|
-
src: image?.src,
|
|
9
|
-
alt: image?.alt,
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
], text: quote, renderText: () => (jsxs(Fragment, { children: ["\"", quote, "\"", jsx("br", {}), jsx("br", {}), jsx("b", { children: name }), jsx("br", {}), title] })) })));
|
|
5
|
+
const TestimonialContextDefault = forwardRef(({ image, quote, name, title, layout, index, rating, ...rest }, ref) => (createElement(Quote, { ...rest, ref: ref, className: layout === "alternating" && index % 2 === 1 ? "c-quote--reverse" : "", key: index, 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 })] })) })));
|
|
13
6
|
const TestimonialContext = createContext(TestimonialContextDefault);
|
|
14
7
|
const Testimonial = forwardRef((props, ref) => {
|
|
15
8
|
const Component = useContext(TestimonialContext);
|
|
@@ -47,6 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"additionalProperties": false
|
|
49
49
|
},
|
|
50
|
+
"rating": {
|
|
51
|
+
"title": "Rating",
|
|
52
|
+
"description": "The rating of the testimonial, from 1 to 5",
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"minimum": 1,
|
|
55
|
+
"maximum": 5
|
|
56
|
+
},
|
|
50
57
|
"type": {
|
|
51
58
|
"const": "testimonial"
|
|
52
59
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, FC, PropsWithChildren } from "react";
|
|
2
|
-
import { TestimonialsProps } from "../../TestimonialsProps-
|
|
2
|
+
import { TestimonialsProps } from "../../TestimonialsProps-72bb9288.js";
|
|
3
3
|
import { SliderProps } from "../../SliderProps-8cae490d.js";
|
|
4
4
|
interface ConditionalSliderProps extends SliderProps {
|
|
5
5
|
layout: "slider" | "list" | "alternating";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import "./testimonials.css";
|
|
2
|
-
import { jsx
|
|
3
|
-
import { Quote } from '@kickstartds/content/lib/quote';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
3
|
import { Slider } from '../slider/index.js';
|
|
4
|
+
import { Testimonial } from '../testimonial/index.js';
|
|
5
5
|
import '@kickstartds/content/lib/slider';
|
|
6
|
+
import 'react';
|
|
7
|
+
import '@kickstartds/content/lib/quote';
|
|
6
8
|
|
|
7
9
|
const ConditionalSlider = ({ layout, children, arrows, nav, ...props }) => {
|
|
8
10
|
if (layout === "slider") {
|
|
@@ -12,11 +14,8 @@ const ConditionalSlider = ({ layout, children, arrows, nav, ...props }) => {
|
|
|
12
14
|
return (jsx("div", { className: "dsa-testimonials dsa-testimonials--list", ...props, children: children }));
|
|
13
15
|
}
|
|
14
16
|
};
|
|
15
|
-
const Testimonials = ({
|
|
16
|
-
return (jsx(ConditionalSlider, { layout: layout, arrows: true, nav: true, ...props, children:
|
|
17
|
-
? "c-quote--reverse"
|
|
18
|
-
: "", text: item.quote, source: item.name, byline: item.title, image: item.image.src, renderSource: () => (jsxs(Fragment, { children: [item?.rating &&
|
|
19
|
-
(item?.rating ? (jsx("div", { children: [...Array(item?.rating)].map((_, index) => (jsx("span", { children: "\u2605" }, index))) })) : ("")), jsx("div", { className: "c-quote__source", children: item.name })] })) }, index))) }));
|
|
17
|
+
const Testimonials = ({ testimonial, layout = "slider", ...props }) => {
|
|
18
|
+
return (jsx(ConditionalSlider, { layout: layout, arrows: true, nav: true, ...props, children: testimonial.map((testimonial, index) => (jsx(Testimonial, { ...testimonial, index: index, layout: layout }))) }));
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
export { ConditionalSlider, Testimonials };
|
|
@@ -16,17 +16,22 @@
|
|
|
16
16
|
],
|
|
17
17
|
"default": "slider"
|
|
18
18
|
},
|
|
19
|
-
"
|
|
19
|
+
"testimonial": {
|
|
20
20
|
"type": "array",
|
|
21
|
-
"title": "
|
|
21
|
+
"title": "Testimonials",
|
|
22
22
|
"description": "Add testimonials featuring an image, a quote, a source and a rating",
|
|
23
23
|
"items": {
|
|
24
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
25
|
+
"$id": "http://schema.mydesignsystem.com/testimonial.schema.json",
|
|
26
|
+
"title": "Testimonial",
|
|
27
|
+
"description": "Testimonial entry of Testimonials component",
|
|
24
28
|
"type": "object",
|
|
25
29
|
"properties": {
|
|
26
30
|
"quote": {
|
|
27
31
|
"title": "Quote",
|
|
28
32
|
"description": "The testimonial quote",
|
|
29
33
|
"type": "string",
|
|
34
|
+
"format": "markdown",
|
|
30
35
|
"examples": [
|
|
31
36
|
"This product is amazing!"
|
|
32
37
|
]
|
|
@@ -42,10 +47,7 @@
|
|
|
42
47
|
"title": {
|
|
43
48
|
"title": "Title",
|
|
44
49
|
"description": "The title of the quote author",
|
|
45
|
-
"type": "string"
|
|
46
|
-
"examples": [
|
|
47
|
-
"CEO"
|
|
48
|
-
]
|
|
50
|
+
"type": "string"
|
|
49
51
|
},
|
|
50
52
|
"image": {
|
|
51
53
|
"type": "object",
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
"title": "Source",
|
|
55
57
|
"description": "The image to display with the testimonial",
|
|
56
58
|
"type": "string",
|
|
59
|
+
"format": "image",
|
|
57
60
|
"examples": [
|
|
58
61
|
"https://example.com/image.jpg"
|
|
59
62
|
]
|
|
@@ -72,6 +75,9 @@
|
|
|
72
75
|
"type": "integer",
|
|
73
76
|
"minimum": 1,
|
|
74
77
|
"maximum": 5
|
|
78
|
+
},
|
|
79
|
+
"type": {
|
|
80
|
+
"const": "testimonial"
|
|
75
81
|
}
|
|
76
82
|
},
|
|
77
83
|
"additionalProperties": false,
|
|
@@ -12,57 +12,12 @@
|
|
|
12
12
|
"enum": ["slider", "list", "alternating"],
|
|
13
13
|
"default": "slider"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"testimonial": {
|
|
16
16
|
"type": "array",
|
|
17
|
-
"title": "
|
|
17
|
+
"title": "Testimonials",
|
|
18
18
|
"description": "Add testimonials featuring an image, a quote, a source and a rating",
|
|
19
19
|
"items": {
|
|
20
|
-
"
|
|
21
|
-
"properties": {
|
|
22
|
-
"quote": {
|
|
23
|
-
"title": "Quote",
|
|
24
|
-
"description": "The testimonial quote",
|
|
25
|
-
"type": "string",
|
|
26
|
-
"examples": ["This product is amazing!"]
|
|
27
|
-
},
|
|
28
|
-
"name": {
|
|
29
|
-
"title": "Name",
|
|
30
|
-
"description": "The name of the quote author",
|
|
31
|
-
"type": "string",
|
|
32
|
-
"examples": ["John Doe"]
|
|
33
|
-
},
|
|
34
|
-
"title": {
|
|
35
|
-
"title": "Title",
|
|
36
|
-
"description": "The title of the quote author",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"examples": ["CEO"]
|
|
39
|
-
},
|
|
40
|
-
"image": {
|
|
41
|
-
"type": "object",
|
|
42
|
-
"properties": {
|
|
43
|
-
"src": {
|
|
44
|
-
"title": "Source",
|
|
45
|
-
"description": "The image to display with the testimonial",
|
|
46
|
-
"type": "string",
|
|
47
|
-
"examples": ["https://example.com/image.jpg"]
|
|
48
|
-
},
|
|
49
|
-
"alt": {
|
|
50
|
-
"title": "Alt Text",
|
|
51
|
-
"description": "The alt text of the image file",
|
|
52
|
-
"type": "string"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"rating": {
|
|
57
|
-
"title": "Rating",
|
|
58
|
-
"description": "The rating of the testimonial, from 1 to 5",
|
|
59
|
-
"type": "integer",
|
|
60
|
-
"minimum": 1,
|
|
61
|
-
"maximum": 5
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"additionalProperties": false,
|
|
65
|
-
"required": ["quote", "name", "image"]
|
|
20
|
+
"$ref": "http://schema.mydesignsystem.com/testimonial.schema.json"
|
|
66
21
|
}
|
|
67
22
|
}
|
|
68
23
|
},
|
package/dist/global.css
CHANGED
|
@@ -488,7 +488,7 @@ h3 {
|
|
|
488
488
|
var(--ks-border-color-interface-interactive-active)
|
|
489
489
|
);
|
|
490
490
|
--c-form-field--background: var(--dsa-form-field--background, var(--ks-background-color-interface-interactive));
|
|
491
|
-
--c-form-field_focus--shadow: var(--dsa-form-field--shadow_focus
|
|
491
|
+
--c-form-field_focus--shadow: var(--dsa-form-field--shadow_focus, 0 0 4px 0);
|
|
492
492
|
--c-form-field--background-disabled: var(
|
|
493
493
|
--ks-background-color-interface-interactive-disabled,
|
|
494
494
|
var(--ks-background-color-interface-interactive-disabled)
|