@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.
Files changed (45) hide show
  1. package/dist/{TestimonialsProps-4b94faa8.d.ts → TestimonialProps-94bdeac9.d.ts} +5 -16
  2. package/dist/TestimonialsProps-72bb9288.d.ts +22 -0
  3. package/dist/components/blog-overview/index.d.ts +36 -1
  4. package/dist/components/blog-post/index.d.ts +36 -1
  5. package/dist/components/feature/index.js +0 -1
  6. package/dist/components/features/features.css +98 -0
  7. package/dist/components/footer/index.d.ts +37 -1
  8. package/dist/components/header/index.d.ts +42 -1
  9. package/dist/components/page/page.schema.dereffed.json +12 -6
  10. package/dist/components/page-wrapper/index.d.ts +3 -2
  11. package/dist/components/page-wrapper/index.js +471 -6
  12. package/dist/components/page-wrapper/tokens.css +1 -1
  13. package/dist/components/presets.json +25 -181
  14. package/dist/components/section/index.d.ts +141 -1
  15. package/dist/components/section/section.schema.dereffed.json +12 -6
  16. package/dist/components/testimonial/index.d.ts +13 -41
  17. package/dist/components/testimonial/index.js +4 -11
  18. package/dist/components/testimonial/testimonial.schema.dereffed.json +7 -0
  19. package/dist/components/testimonial/testimonial.schema.json +7 -0
  20. package/dist/components/testimonials/index.d.ts +1 -1
  21. package/dist/components/testimonials/index.js +6 -7
  22. package/dist/components/testimonials/testimonials.schema.dereffed.json +12 -6
  23. package/dist/components/testimonials/testimonials.schema.json +3 -48
  24. package/dist/global.css +1 -1
  25. package/dist/tokens/themes.css +11186 -0
  26. package/dist/tokens/themes.css.d.ts +0 -0
  27. package/dist/tokens/themes.css.js +1 -0
  28. package/dist/tokens/tokens.css +1 -1
  29. package/dist/tokens/tokens.js +1 -1
  30. package/package.json +4 -3
  31. package/dist/BlogOverviewProps-525f7f9f.d.ts +0 -36
  32. package/dist/BlogPostProps-e1cbd5d3.d.ts +0 -36
  33. package/dist/FooterProps-b5c16ab5.d.ts +0 -37
  34. package/dist/HeaderProps-ae331ab2.d.ts +0 -42
  35. package/dist/SectionProps-83d399b4.d.ts +0 -141
  36. package/dist/components/feature/feature.css +0 -99
  37. package/dist/components/index/index.d.ts +0 -50
  38. package/dist/components/index/index.js +0 -1
  39. package/dist/components/raw-page-wrapper/index.d.ts +0 -3
  40. package/dist/components/raw-page-wrapper/index.js +0 -492
  41. package/dist/static/tokens-business.css +0 -2725
  42. package/dist/static/tokens-google.css +0 -2729
  43. package/dist/static/tokens-ngo.css +0 -2999
  44. package/dist/static/tokens-telekom.css +0 -2725
  45. package/dist/static/tokens.css +0 -2730
@@ -1,15 +1,8 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { forwardRef, createContext, useContext } from 'react';
3
- import { TextMedia } from '@kickstartds/base/lib/text-media';
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) => (jsx(TextMedia, { ...rest, ref: ref, mediaAlignment: "beside-left", media: [
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
  }
@@ -39,6 +39,13 @@
39
39
  "type": "string"
40
40
  }
41
41
  }
42
+ },
43
+ "rating": {
44
+ "title": "Rating",
45
+ "description": "The rating of the testimonial, from 1 to 5",
46
+ "type": "integer",
47
+ "minimum": 1,
48
+ "maximum": 5
42
49
  }
43
50
  },
44
51
  "additionalProperties": false,
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, FC, PropsWithChildren } from "react";
2
- import { TestimonialsProps } from "../../TestimonialsProps-4b94faa8.js";
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, jsxs, Fragment } from 'react/jsx-runtime';
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 = ({ items, layout = "slider", ...props }) => {
16
- return (jsx(ConditionalSlider, { layout: layout, arrows: true, nav: true, ...props, children: items.map((item, index) => (jsx(Quote, { className: layout === "alternating" && index % 2 === 1
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
- "items": {
19
+ "testimonial": {
20
20
  "type": "array",
21
- "title": "Items",
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
- "items": {
15
+ "testimonial": {
16
16
  "type": "array",
17
- "title": "Items",
17
+ "title": "Testimonials",
18
18
  "description": "Add testimonials featuring an image, a quote, a source and a rating",
19
19
  "items": {
20
- "type": "object",
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) 0 0 4px 0;
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)