@kickstartds/ds-agency-premium 1.2.21 → 1.2.23

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 (30) hide show
  1. package/dist/BlogOverviewProps-525f7f9f.d.ts +36 -0
  2. package/dist/BlogPostProps-e1cbd5d3.d.ts +36 -0
  3. package/dist/FooterProps-b5c16ab5.d.ts +37 -0
  4. package/dist/HeaderProps-ae331ab2.d.ts +42 -0
  5. package/dist/SectionProps-83d399b4.d.ts +141 -0
  6. package/dist/{StatsProps-17b0743a.d.ts → StatProps-12a3eae0.d.ts} +4 -14
  7. package/dist/StatsProps-bf5ef578.d.ts +20 -0
  8. package/dist/components/blog-overview/index.d.ts +1 -36
  9. package/dist/components/blog-post/index.d.ts +1 -36
  10. package/dist/components/footer/index.d.ts +1 -37
  11. package/dist/components/header/index.d.ts +1 -42
  12. package/dist/components/index/index.d.ts +50 -0
  13. package/dist/components/index/index.js +1 -0
  14. package/dist/components/page/page.schema.dereffed.json +31 -5
  15. package/dist/components/page-wrapper/tokens.css +1 -1
  16. package/dist/components/presets.json +4 -38
  17. package/dist/components/section/index.d.ts +1 -141
  18. package/dist/components/section/section.schema.dereffed.json +31 -5
  19. package/dist/components/stat/index.d.ts +1 -26
  20. package/dist/components/stat/index.js +5 -2
  21. package/dist/components/stat/stat.schema.dereffed.json +10 -0
  22. package/dist/components/stat/stat.schema.json +6 -0
  23. package/dist/components/stats/index.d.ts +1 -1
  24. package/dist/components/stats/index.js +5 -5
  25. package/dist/components/stats/stats.schema.dereffed.json +31 -5
  26. package/dist/components/stats/stats.schema.json +3 -31
  27. package/dist/tokens/themes.css +4 -4
  28. package/dist/tokens/tokens.css +1 -1
  29. package/dist/tokens/tokens.js +1 -1
  30. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ import { BlogTeaserProps } from "./BlogTeaserProps-525f7f9f.js";
7
+ import { CtaProps } from "./CtaProps-93230a76.js";
8
+ import { SeoProps } from "./SeoProps-f2d6dcaa.js";
9
+ /**
10
+ * Collection of posts to list on the page
11
+ */
12
+ type Posts = BlogTeaserProps[];
13
+ /**
14
+ * Collection of posts to list on the page
15
+ */
16
+ type Posts1 = BlogTeaserProps[];
17
+ /**
18
+ * Abstracts a blog overview concept into JSON schema
19
+ */
20
+ interface BlogOverviewProps {
21
+ /**
22
+ * Referenced component BlogTeaserProps
23
+ */
24
+ latest?: BlogTeaserProps;
25
+ list?: Posts;
26
+ more?: Posts1;
27
+ /**
28
+ * Referenced component CtaProps
29
+ */
30
+ cta?: CtaProps;
31
+ /**
32
+ * Referenced component SeoProps
33
+ */
34
+ seo: SeoProps;
35
+ }
36
+ export { Posts, Posts1, BlogOverviewProps };
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ import { BlogHeadProps } from "./BlogHeadProps-f9a49428.js";
7
+ import { BlogAsideProps } from "./BlogAsideProps-e1cbd5d3.js";
8
+ import { CtaProps } from "./CtaProps-93230a76.js";
9
+ import { SeoProps } from "./SeoProps-f2d6dcaa.js";
10
+ /**
11
+ * Body text for the blog post
12
+ */
13
+ type Text = string;
14
+ /**
15
+ * Abstracts a blog post concept into JSON schema
16
+ */
17
+ interface BlogPostProps {
18
+ /**
19
+ * Referenced component BlogHeadProps
20
+ */
21
+ head?: BlogHeadProps;
22
+ /**
23
+ * Referenced component BlogAsideProps
24
+ */
25
+ aside?: BlogAsideProps;
26
+ content?: Text;
27
+ /**
28
+ * Referenced component CtaProps
29
+ */
30
+ cta?: CtaProps;
31
+ /**
32
+ * Referenced component SeoProps
33
+ */
34
+ seo: SeoProps;
35
+ }
36
+ export { Text, BlogPostProps };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ /**
7
+ * Picture source
8
+ */
9
+ type Source = string;
10
+ /**
11
+ * Alt text to display for picture
12
+ */
13
+ type AltText = string;
14
+ /**
15
+ * Width of the picture
16
+ */
17
+ type Width = number;
18
+ /**
19
+ * Height of the picture
20
+ */
21
+ type Height = number;
22
+ interface FooterProps {
23
+ logo: Logo;
24
+ logoHref?: string;
25
+ navItems?: {
26
+ href: string;
27
+ label: string;
28
+ target?: string;
29
+ }[];
30
+ }
31
+ interface Logo {
32
+ src?: Source;
33
+ alt?: AltText;
34
+ width?: Width;
35
+ height?: Height;
36
+ }
37
+ export { Source, AltText, Width, Height, FooterProps, Logo };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ /**
7
+ * Picture source
8
+ */
9
+ type Source = string;
10
+ /**
11
+ * Alt text to display for picture
12
+ */
13
+ type AltText = string;
14
+ /**
15
+ * Width of the picture
16
+ */
17
+ type Width = number;
18
+ /**
19
+ * Height of the picture
20
+ */
21
+ type Height = number;
22
+ /**
23
+ * Make the header float over the first Section
24
+ */
25
+ type Floating = boolean;
26
+ interface HeaderProps {
27
+ logo: Logo;
28
+ logoHref?: string;
29
+ floating?: Floating;
30
+ navItems?: {
31
+ href: string;
32
+ label: string;
33
+ active?: boolean;
34
+ }[];
35
+ }
36
+ interface Logo {
37
+ src?: Source;
38
+ alt?: AltText;
39
+ width?: Width;
40
+ height?: Height;
41
+ }
42
+ export { Source, AltText, Width, Height, Floating, HeaderProps, Logo };
@@ -0,0 +1,141 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ import { CtaProps } from "./CtaProps-93230a76.js";
7
+ import { FaqProps } from "./FaqProps-ad618cd5.js";
8
+ import { FeaturesProps } from "./FeaturesProps-b05859d6.js";
9
+ import { GalleryProps } from "./GalleryProps-76e7de44.js";
10
+ import { HeroProps } from "./HeroProps-cf82a16d.js";
11
+ import { ImageStoryProps } from "./ImageStoryProps-03ff6d21.js";
12
+ import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
13
+ import { LogosProps } from "./LogosProps-a8efd101.js";
14
+ import { MosaicProps } from "./MosaicProps-aacb9422.js";
15
+ import { SliderProps } from "./SliderProps-8cae490d.js";
16
+ import { StatsProps } from "./StatsProps-bf5ef578.js";
17
+ import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
18
+ import { TestimonialsProps } from "./TestimonialsProps-72bb9288.js";
19
+ import { TextProps } from "./TextProps-a23170d2.js";
20
+ import { VideoCurtainProps } from "./VideoCurtainProps-6c625a69.js";
21
+ import { ButtonProps } from "./ButtonProps-03ff6d21.js";
22
+ /**
23
+ * Width of section to use
24
+ */
25
+ type Width = "full" | "max" | "wide" | "default" | "narrow";
26
+ /**
27
+ * Style of background
28
+ */
29
+ type Style = "stagelights" | "horizontalGradient" | "verticalGradient" | "accentTransition" | "boldTransition" | "symmetricGlow" | "anchorGlow";
30
+ /**
31
+ * Color of background
32
+ */
33
+ type Style1 = "default" | "accent" | "bold";
34
+ /**
35
+ * Show spotlight behind cursor
36
+ */
37
+ type Spotlight = boolean;
38
+ /**
39
+ * Amount of spacing before the section
40
+ */
41
+ type SpaceBefore = "default" | "small" | "none";
42
+ /**
43
+ * Amount of spacing after the section
44
+ */
45
+ type SpaceAfter = "default" | "small" | "none";
46
+ /**
47
+ * Whether to invert the section
48
+ */
49
+ type Inverted = boolean;
50
+ /**
51
+ * Reserve additional spacing for a floating header
52
+ */
53
+ type HeaderSpacing = boolean;
54
+ /**
55
+ * Headline Text for the section
56
+ */
57
+ type Headline = string;
58
+ /**
59
+ * Make the headline larger
60
+ */
61
+ type LargeHeadline = boolean;
62
+ /**
63
+ * Width of headline to use
64
+ */
65
+ type HeadlineWidth = "unset" | "narrow" | "default" | "wide";
66
+ /**
67
+ * Choose the text alignment for the headline
68
+ */
69
+ type HeadlineTextAlignment = "left" | "center" | "right";
70
+ /**
71
+ * Choose an alignment for positioning the headline
72
+ */
73
+ type HeadlineAlignment = "left" | "center" | "right";
74
+ /**
75
+ * Subheadline for the section
76
+ */
77
+ type Subheadline = string;
78
+ /**
79
+ * Switch the order of headline and subheadline
80
+ */
81
+ type SwitchHeadlineOrder = boolean;
82
+ /**
83
+ * Width of content to use
84
+ */
85
+ type ContentWidth = "unset" | "narrow" | "default" | "wide";
86
+ /**
87
+ * Choose an alignment for the content
88
+ */
89
+ type ContentAlignment = "left" | "center" | "right";
90
+ /**
91
+ * Size of gutter to use
92
+ */
93
+ type Gutter = "large" | "default" | "small" | "none";
94
+ /**
95
+ * Layout mode used for section contents
96
+ */
97
+ type Mode = "default" | "tile" | "list" | "slider";
98
+ /**
99
+ * Set min-width for the tiles in the grid
100
+ */
101
+ type TileWidth = "smallest" | "default" | "medium" | "large" | "largest";
102
+ /**
103
+ * Allowed components for content
104
+ */
105
+ type Content = (CtaProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
106
+ /**
107
+ * Buttons of the Button Group
108
+ */
109
+ type Buttons = ButtonProps[];
110
+ /**
111
+ * Component used to layout components into pages
112
+ */
113
+ interface SectionProps {
114
+ width?: Width;
115
+ style?: Style;
116
+ backgroundColor?: Style1;
117
+ spotlight?: Spotlight;
118
+ spaceBefore?: SpaceBefore;
119
+ spaceAfter?: SpaceAfter;
120
+ inverted?: Inverted;
121
+ headerSpacing?: HeaderSpacing;
122
+ headline?: {
123
+ text?: Headline;
124
+ large?: LargeHeadline;
125
+ width?: HeadlineWidth;
126
+ textAlign?: HeadlineTextAlignment;
127
+ align?: HeadlineAlignment;
128
+ sub?: Subheadline;
129
+ switchOrder?: SwitchHeadlineOrder;
130
+ };
131
+ content?: {
132
+ width?: ContentWidth;
133
+ align?: ContentAlignment;
134
+ gutter?: Gutter;
135
+ mode?: Mode;
136
+ tileWidth?: TileWidth;
137
+ };
138
+ components?: Content;
139
+ buttons?: Buttons;
140
+ }
141
+ export { Width, Style, Style1, Spotlight, SpaceBefore, SpaceAfter, Inverted, HeaderSpacing, Headline, LargeHeadline, HeadlineWidth, HeadlineTextAlignment, HeadlineAlignment, Subheadline, SwitchHeadlineOrder, ContentWidth, ContentAlignment, Gutter, Mode, TileWidth, Content, Buttons, SectionProps };
@@ -3,13 +3,6 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
- /**
7
- * The stats to display with a number upcounter
8
- *
9
- * @minItems 1
10
- * @maxItems 4
11
- */
12
- type Items = [Stat] | [Stat, Stat] | [Stat, Stat, Stat] | [Stat, Stat, Stat, Stat];
13
6
  /**
14
7
  * The number of the stat
15
8
  */
@@ -27,15 +20,12 @@ type Title = string;
27
20
  */
28
21
  type Icon = string;
29
22
  /**
30
- * Component used to display stats with a number upcounter
23
+ * Stat entry of Stats component
31
24
  */
32
- interface StatsProps {
33
- items?: Items;
34
- }
35
- interface Stat {
25
+ interface StatProps {
36
26
  number: Number;
37
27
  description?: Description;
38
- title: Title;
28
+ title?: Title;
39
29
  icon?: Icon;
40
30
  }
41
- export { Items, Number, Description, Title, Icon, StatsProps, Stat };
31
+ export { Number, Description, Title, Icon, StatProps };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ import { StatProps } from "./StatProps-12a3eae0.js";
7
+ /**
8
+ * The stats to display with a number upcounter
9
+ *
10
+ * @minItems 1
11
+ * @maxItems 4
12
+ */
13
+ type Stats = [StatProps] | [StatProps, StatProps] | [StatProps, StatProps, StatProps] | [StatProps, StatProps, StatProps, StatProps];
14
+ /**
15
+ * Component used to display stats with a number upcounter
16
+ */
17
+ interface StatsProps {
18
+ stat?: Stats;
19
+ }
20
+ export { Stats, StatsProps };
@@ -1,39 +1,4 @@
1
1
  /// <reference types="react" />
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
- import { BlogTeaserProps } from "../../BlogTeaserProps-525f7f9f.js";
9
- import { CtaProps } from "../../CtaProps-93230a76.js";
10
- import { SeoProps } from "../../SeoProps-f2d6dcaa.js";
11
- /**
12
- * Collection of posts to list on the page
13
- */
14
- type Posts = BlogTeaserProps[];
15
- /**
16
- * Collection of posts to list on the page
17
- */
18
- type Posts1 = BlogTeaserProps[];
19
- /**
20
- * Abstracts a blog overview concept into JSON schema
21
- */
22
- interface BlogOverviewProps {
23
- /**
24
- * Referenced component BlogTeaserProps
25
- */
26
- latest?: BlogTeaserProps;
27
- list?: Posts;
28
- more?: Posts1;
29
- /**
30
- * Referenced component CtaProps
31
- */
32
- cta?: CtaProps;
33
- /**
34
- * Referenced component SeoProps
35
- */
36
- seo: SeoProps;
37
- }
2
+ import { BlogOverviewProps } from "../../BlogOverviewProps-525f7f9f.js";
38
3
  declare const BlogOverview: ({ latest, more, }: BlogOverviewProps) => import("react/jsx-runtime").JSX.Element;
39
4
  export { BlogOverview };
@@ -1,39 +1,4 @@
1
1
  /// <reference types="react" />
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
- import { BlogHeadProps } from "../../BlogHeadProps-f9a49428.js";
9
- import { BlogAsideProps } from "../../BlogAsideProps-e1cbd5d3.js";
10
- import { CtaProps } from "../../CtaProps-93230a76.js";
11
- import { SeoProps } from "../../SeoProps-f2d6dcaa.js";
12
- /**
13
- * Body text for the blog post
14
- */
15
- type Text = string;
16
- /**
17
- * Abstracts a blog post concept into JSON schema
18
- */
19
- interface BlogPostProps {
20
- /**
21
- * Referenced component BlogHeadProps
22
- */
23
- head?: BlogHeadProps;
24
- /**
25
- * Referenced component BlogAsideProps
26
- */
27
- aside?: BlogAsideProps;
28
- content?: Text;
29
- /**
30
- * Referenced component CtaProps
31
- */
32
- cta?: CtaProps;
33
- /**
34
- * Referenced component SeoProps
35
- */
36
- seo: SeoProps;
37
- }
2
+ import { BlogPostProps } from "../../BlogPostProps-e1cbd5d3.js";
38
3
  declare const BlogPost: ({ head, content, aside, cta }: BlogPostProps) => import("react/jsx-runtime").JSX.Element;
39
4
  export { BlogPost };
@@ -1,40 +1,4 @@
1
1
  import { FC } from "react";
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
- * Picture source
10
- */
11
- type Source = string;
12
- /**
13
- * Alt text to display for picture
14
- */
15
- type AltText = string;
16
- /**
17
- * Width of the picture
18
- */
19
- type Width = number;
20
- /**
21
- * Height of the picture
22
- */
23
- type Height = number;
24
- interface FooterProps {
25
- logo: Logo;
26
- logoHref?: string;
27
- navItems?: {
28
- href: string;
29
- label: string;
30
- target?: string;
31
- }[];
32
- }
33
- interface Logo {
34
- src?: Source;
35
- alt?: AltText;
36
- width?: Width;
37
- height?: Height;
38
- }
2
+ import { FooterProps } from "../../FooterProps-b5c16ab5.js";
39
3
  declare const Footer: FC<FooterProps>;
40
4
  export { Footer };
@@ -1,45 +1,4 @@
1
1
  import { FC } from "react";
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
- * Picture source
10
- */
11
- type Source = string;
12
- /**
13
- * Alt text to display for picture
14
- */
15
- type AltText = string;
16
- /**
17
- * Width of the picture
18
- */
19
- type Width = number;
20
- /**
21
- * Height of the picture
22
- */
23
- type Height = number;
24
- /**
25
- * Make the header float over the first Section
26
- */
27
- type Floating = boolean;
28
- interface HeaderProps {
29
- logo: Logo;
30
- logoHref?: string;
31
- floating?: Floating;
32
- navItems?: {
33
- href: string;
34
- label: string;
35
- active?: boolean;
36
- }[];
37
- }
38
- interface Logo {
39
- src?: Source;
40
- alt?: AltText;
41
- width?: Width;
42
- height?: Height;
43
- }
2
+ import { HeaderProps } from "../../HeaderProps-ae331ab2.js";
44
3
  declare const Header: FC<HeaderProps>;
45
4
  export { Header };
@@ -0,0 +1,50 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+ import { SectionProps } from "../../SectionProps-83d399b4.js";
8
+ import { SeoProps } from "../../SeoProps-f2d6dcaa.js";
9
+ /* eslint-disable */
10
+ /**
11
+ * This file was automatically generated by json-schema-to-typescript.
12
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
13
+ * and run json-schema-to-typescript to regenerate this file.
14
+ */
15
+ import { HeaderProps } from "../../HeaderProps-ae331ab2.js";
16
+ import { FooterProps } from "../../FooterProps-b5c16ab5.js";
17
+ /**
18
+ * Collection of sections (with their contents) to render on the page
19
+ */
20
+ type Sections = SectionProps[];
21
+ /**
22
+ * Abstracts a page concept into JSON schema
23
+ */
24
+ interface PageProps {
25
+ section?: Sections;
26
+ /**
27
+ * Referenced component SeoProps
28
+ */
29
+ seo: SeoProps;
30
+ }
31
+ /**
32
+ * Abstracts global settings made for a website into JSON Schema
33
+ */
34
+ interface SettingsProps {
35
+ /**
36
+ * Referenced component HeaderProps
37
+ */
38
+ header: HeaderProps;
39
+ /**
40
+ * Referenced component FooterProps
41
+ */
42
+ footer: FooterProps;
43
+ /**
44
+ * Referenced component SeoProps
45
+ */
46
+ seo: SeoProps;
47
+ }
48
+ export * from "../../BlogPostProps-e1cbd5d3.js";
49
+ export * from "../../BlogOverviewProps-525f7f9f.js";
50
+ export { Sections, PageProps, SettingsProps };
@@ -0,0 +1 @@
1
+
@@ -1401,13 +1401,16 @@
1401
1401
  "description": "Component used to display stats with a number upcounter",
1402
1402
  "type": "object",
1403
1403
  "properties": {
1404
- "items": {
1405
- "title": "Items",
1404
+ "stat": {
1405
+ "title": "Stats",
1406
1406
  "type": "array",
1407
1407
  "description": "The stats to display with a number upcounter",
1408
1408
  "items": {
1409
- "type": "object",
1409
+ "$schema": "http://json-schema.org/draft-07/schema#",
1410
+ "$id": "http://schema.mydesignsystem.com/stat.schema.json",
1410
1411
  "title": "Stat",
1412
+ "description": "Stat entry of Stats component",
1413
+ "type": "object",
1411
1414
  "properties": {
1412
1415
  "number": {
1413
1416
  "title": "Number",
@@ -1423,12 +1426,14 @@
1423
1426
  "description": {
1424
1427
  "title": "Description",
1425
1428
  "description": "Optional description of the stat",
1426
- "type": "string"
1429
+ "type": "string",
1430
+ "format": "markdown"
1427
1431
  },
1428
1432
  "title": {
1429
1433
  "title": "Title",
1430
1434
  "description": "Title of the stat",
1431
1435
  "type": "string",
1436
+ "format": "markdown",
1432
1437
  "examples": [
1433
1438
  "Stat 1",
1434
1439
  "Stat 2",
@@ -1445,12 +1450,33 @@
1445
1450
  "home",
1446
1451
  "map"
1447
1452
  ]
1453
+ },
1454
+ "type": {
1455
+ "const": "stat"
1448
1456
  }
1449
1457
  },
1450
1458
  "additionalProperties": false,
1451
1459
  "required": [
1452
1460
  "number",
1453
- "title"
1461
+ "label"
1462
+ ],
1463
+ "examples": [
1464
+ {
1465
+ "number": 1,
1466
+ "label": "Stat 1"
1467
+ },
1468
+ {
1469
+ "number": 2,
1470
+ "label": "Stat 2"
1471
+ },
1472
+ {
1473
+ "number": 3,
1474
+ "label": "Stat 3"
1475
+ },
1476
+ {
1477
+ "value": 4,
1478
+ "label": "Stat 4"
1479
+ }
1454
1480
  ]
1455
1481
  },
1456
1482
  "minItems": 1,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 01 Mar 2024 17:15:07 GMT
3
+ * Generated on Fri, 01 Mar 2024 18:47:40 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -2538,26 +2538,9 @@
2538
2538
  "id": "components-stats--count-up-with-icons",
2539
2539
  "group": "Components/Stats",
2540
2540
  "name": "CountUpWithIcons",
2541
- "code": "<Stats\n items={[\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n }\n ]}\n stats={[\n {\n icon: 'person',\n number: 1500,\n title: 'Users'\n },\n {\n icon: 'star',\n number: 350,\n title: 'Subscribers'\n },\n {\n icon: 'map',\n number: 125,\n title: 'Locations'\n }\n ]}\n/>",
2541
+ "code": "<Stats\n stat={[\n {\n icon: 'person',\n number: 1500,\n title: 'Users'\n },\n {\n icon: 'star',\n number: 350,\n title: 'Subscribers'\n },\n {\n icon: 'map',\n number: 125,\n title: 'Locations'\n }\n ]}\n />",
2542
2542
  "args": {
2543
- "items": [
2544
- {
2545
- "number": 1,
2546
- "title": "Stat 1",
2547
- "icon": "person"
2548
- },
2549
- {
2550
- "number": 1,
2551
- "title": "Stat 1",
2552
- "icon": "person"
2553
- },
2554
- {
2555
- "number": 1,
2556
- "title": "Stat 1",
2557
- "icon": "person"
2558
- }
2559
- ],
2560
- "stats": [
2543
+ "stat": [
2561
2544
  {
2562
2545
  "number": 1500,
2563
2546
  "title": "Users",
@@ -2581,26 +2564,9 @@
2581
2564
  "id": "components-stats--count-up-with-description",
2582
2565
  "group": "Components/Stats",
2583
2566
  "name": "CountUpWithDescription",
2584
- "code": "<Stats\n items={[\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n },\n {\n icon: 'person',\n number: 1,\n title: 'Stat 1'\n }\n ]}\n stats={[\n {\n description: 'Experience the power of our platform, embraced by a vast community of users. Our user base is diverse and dynamic, including both active and inactive members. Join us and become part of this ever-growing community.',\n number: 1500,\n title: 'Users'\n },\n {\n description: 'Stay ahead with our regular updates and newsletters. Our subscribers are always in the loop, receiving the latest news and features. Subscribe now and never miss an update from us.',\n number: 350,\n title: 'Subscribers'\n }\n ]}\n/>",
2567
+ "code": "<Stats\n stat={[\n {\n description: 'Experience the power of our platform, embraced by a vast community of users. Our user base is diverse and dynamic, including both active and inactive members. Join us and become part of this ever-growing community.',\n number: 1500,\n title: 'Users'\n },\n {\n description: 'Stay ahead with our regular updates and newsletters. Our subscribers are always in the loop, receiving the latest news and features. Subscribe now and never miss an update from us.',\n number: 350,\n title: 'Subscribers'\n }\n ]}\n />",
2585
2568
  "args": {
2586
- "items": [
2587
- {
2588
- "number": 1,
2589
- "title": "Stat 1",
2590
- "icon": "person"
2591
- },
2592
- {
2593
- "number": 1,
2594
- "title": "Stat 1",
2595
- "icon": "person"
2596
- },
2597
- {
2598
- "number": 1,
2599
- "title": "Stat 1",
2600
- "icon": "person"
2601
- }
2602
- ],
2603
- "stats": [
2569
+ "stat": [
2604
2570
  {
2605
2571
  "number": 1500,
2606
2572
  "title": "Users",
@@ -1,146 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes, FC, PropsWithChildren } from "react";
3
- /* eslint-disable */
4
- /**
5
- * This file was automatically generated by json-schema-to-typescript.
6
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
- * and run json-schema-to-typescript to regenerate this file.
8
- */
9
- import { CtaProps } from "../../CtaProps-93230a76.js";
10
- import { FaqProps } from "../../FaqProps-ad618cd5.js";
11
- import { FeaturesProps } from "../../FeaturesProps-b05859d6.js";
12
- import { GalleryProps } from "../../GalleryProps-76e7de44.js";
13
- import { HeroProps } from "../../HeroProps-cf82a16d.js";
14
- import { ImageStoryProps } from "../../ImageStoryProps-03ff6d21.js";
15
- import { ImageTextProps } from "../../ImageTextProps-9286cca4.js";
16
- import { LogosProps } from "../../LogosProps-a8efd101.js";
17
- import { MosaicProps } from "../../MosaicProps-aacb9422.js";
18
- import { SliderProps } from "../../SliderProps-8cae490d.js";
19
- import { StatsProps } from "../../StatsProps-17b0743a.js";
20
- import { TeaserCardProps } from "../../TeaserCardProps-b9c28e78.js";
21
- import { TestimonialsProps } from "../../TestimonialsProps-72bb9288.js";
22
- import { TextProps } from "../../TextProps-a23170d2.js";
23
- import { VideoCurtainProps } from "../../VideoCurtainProps-6c625a69.js";
24
- import { ButtonProps } from "../../ButtonProps-03ff6d21.js";
25
- /**
26
- * Width of section to use
27
- */
28
- type Width = "full" | "max" | "wide" | "default" | "narrow";
29
- /**
30
- * Style of background
31
- */
32
- type Style = "stagelights" | "horizontalGradient" | "verticalGradient" | "accentTransition" | "boldTransition" | "symmetricGlow" | "anchorGlow";
33
- /**
34
- * Color of background
35
- */
36
- type Style1 = "default" | "accent" | "bold";
37
- /**
38
- * Show spotlight behind cursor
39
- */
40
- type Spotlight = boolean;
41
- /**
42
- * Amount of spacing before the section
43
- */
44
- type SpaceBefore = "default" | "small" | "none";
45
- /**
46
- * Amount of spacing after the section
47
- */
48
- type SpaceAfter = "default" | "small" | "none";
49
- /**
50
- * Whether to invert the section
51
- */
52
- type Inverted = boolean;
53
- /**
54
- * Reserve additional spacing for a floating header
55
- */
56
- type HeaderSpacing = boolean;
57
- /**
58
- * Headline Text for the section
59
- */
60
- type Headline = string;
61
- /**
62
- * Make the headline larger
63
- */
64
- type LargeHeadline = boolean;
65
- /**
66
- * Width of headline to use
67
- */
68
- type HeadlineWidth = "unset" | "narrow" | "default" | "wide";
69
- /**
70
- * Choose the text alignment for the headline
71
- */
72
- type HeadlineTextAlignment = "left" | "center" | "right";
73
- /**
74
- * Choose an alignment for positioning the headline
75
- */
76
- type HeadlineAlignment = "left" | "center" | "right";
77
- /**
78
- * Subheadline for the section
79
- */
80
- type Subheadline = string;
81
- /**
82
- * Switch the order of headline and subheadline
83
- */
84
- type SwitchHeadlineOrder = boolean;
85
- /**
86
- * Width of content to use
87
- */
88
- type ContentWidth = "unset" | "narrow" | "default" | "wide";
89
- /**
90
- * Choose an alignment for the content
91
- */
92
- type ContentAlignment = "left" | "center" | "right";
93
- /**
94
- * Size of gutter to use
95
- */
96
- type Gutter = "large" | "default" | "small" | "none";
97
- /**
98
- * Layout mode used for section contents
99
- */
100
- type Mode = "default" | "tile" | "list" | "slider";
101
- /**
102
- * Set min-width for the tiles in the grid
103
- */
104
- type TileWidth = "smallest" | "default" | "medium" | "large" | "largest";
105
- /**
106
- * Allowed components for content
107
- */
108
- type Content = (CtaProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
109
- /**
110
- * Buttons of the Button Group
111
- */
112
- type Buttons = ButtonProps[];
113
- /**
114
- * Component used to layout components into pages
115
- */
116
- interface SectionProps {
117
- width?: Width;
118
- style?: Style;
119
- backgroundColor?: Style1;
120
- spotlight?: Spotlight;
121
- spaceBefore?: SpaceBefore;
122
- spaceAfter?: SpaceAfter;
123
- inverted?: Inverted;
124
- headerSpacing?: HeaderSpacing;
125
- headline?: {
126
- text?: Headline;
127
- large?: LargeHeadline;
128
- width?: HeadlineWidth;
129
- textAlign?: HeadlineTextAlignment;
130
- align?: HeadlineAlignment;
131
- sub?: Subheadline;
132
- switchOrder?: SwitchHeadlineOrder;
133
- };
134
- content?: {
135
- width?: ContentWidth;
136
- align?: ContentAlignment;
137
- gutter?: Gutter;
138
- mode?: Mode;
139
- tileWidth?: TileWidth;
140
- };
141
- components?: Content;
142
- buttons?: Buttons;
143
- }
3
+ import { SectionProps } from "../../SectionProps-83d399b4.js";
144
4
  declare const Section: import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>;
145
5
  declare const SectionProvider: FC<PropsWithChildren<any>>;
146
6
  export { Section, SectionProvider };
@@ -1387,13 +1387,16 @@
1387
1387
  "description": "Component used to display stats with a number upcounter",
1388
1388
  "type": "object",
1389
1389
  "properties": {
1390
- "items": {
1391
- "title": "Items",
1390
+ "stat": {
1391
+ "title": "Stats",
1392
1392
  "type": "array",
1393
1393
  "description": "The stats to display with a number upcounter",
1394
1394
  "items": {
1395
- "type": "object",
1395
+ "$schema": "http://json-schema.org/draft-07/schema#",
1396
+ "$id": "http://schema.mydesignsystem.com/stat.schema.json",
1396
1397
  "title": "Stat",
1398
+ "description": "Stat entry of Stats component",
1399
+ "type": "object",
1397
1400
  "properties": {
1398
1401
  "number": {
1399
1402
  "title": "Number",
@@ -1409,12 +1412,14 @@
1409
1412
  "description": {
1410
1413
  "title": "Description",
1411
1414
  "description": "Optional description of the stat",
1412
- "type": "string"
1415
+ "type": "string",
1416
+ "format": "markdown"
1413
1417
  },
1414
1418
  "title": {
1415
1419
  "title": "Title",
1416
1420
  "description": "Title of the stat",
1417
1421
  "type": "string",
1422
+ "format": "markdown",
1418
1423
  "examples": [
1419
1424
  "Stat 1",
1420
1425
  "Stat 2",
@@ -1431,12 +1436,33 @@
1431
1436
  "home",
1432
1437
  "map"
1433
1438
  ]
1439
+ },
1440
+ "type": {
1441
+ "const": "stat"
1434
1442
  }
1435
1443
  },
1436
1444
  "additionalProperties": false,
1437
1445
  "required": [
1438
1446
  "number",
1439
- "title"
1447
+ "label"
1448
+ ],
1449
+ "examples": [
1450
+ {
1451
+ "number": 1,
1452
+ "label": "Stat 1"
1453
+ },
1454
+ {
1455
+ "number": 2,
1456
+ "label": "Stat 2"
1457
+ },
1458
+ {
1459
+ "number": 3,
1460
+ "label": "Stat 3"
1461
+ },
1462
+ {
1463
+ "value": 4,
1464
+ "label": "Stat 4"
1465
+ }
1440
1466
  ]
1441
1467
  },
1442
1468
  "minItems": 1,
@@ -1,31 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- /* eslint-disable */
4
- /**
5
- * This file was automatically generated by json-schema-to-typescript.
6
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
7
- * and run json-schema-to-typescript to regenerate this file.
8
- */
9
- /**
10
- * The number of the stat
11
- */
12
- type Number = number;
13
- /**
14
- * Optional description of the stat
15
- */
16
- type Description = string;
17
- /**
18
- * Title of the stat
19
- */
20
- type Title = string;
21
- /**
22
- * Stat entry of Stats component
23
- */
24
- interface StatProps {
25
- number: Number;
26
- description?: Description;
27
- title?: Title;
28
- }
3
+ import { StatProps } from "../../StatProps-12a3eae0.js";
29
4
  declare const StatContextDefault: import("react").ForwardRefExoticComponent<StatProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
30
5
  declare const StatContext: import("react").Context<import("react").ForwardRefExoticComponent<StatProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
31
6
  declare const Stat: import("react").ForwardRefExoticComponent<StatProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,10 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { forwardRef, createContext, useContext } from 'react';
3
+ import { CountUp } from '@kickstartds/content/lib/count-up';
3
4
 
4
- const StatContextDefault = forwardRef(({ number, title, description, ...rest }, ref) => (jsxs("div", { ...rest, ref: ref, className: "dsa-stats__stat", children: [jsx("span", { className: "dsa-stats__value", children: number }), jsx("span", { className: "dsa-stats__label", children: title }), description && (jsx("span", { className: "dsa-stats__description", children: description }))] })));
5
+ const StatContextDefault = forwardRef(({ number, title, description, icon, ...rest }, ref) => (jsx(CountUp, { ...rest, ref: ref, className: "dsa-stats__item", to: number, icon: {
6
+ icon: icon,
7
+ }, text: description, topic: title })));
5
8
  const StatContext = createContext(StatContextDefault);
6
9
  const Stat = forwardRef((props, ref) => {
7
10
  const Component = useContext(StatContext);
@@ -34,6 +34,16 @@
34
34
  "Stat 4"
35
35
  ]
36
36
  },
37
+ "icon": {
38
+ "title": "Icon",
39
+ "description": "Optional icon of the stat",
40
+ "type": "string",
41
+ "examples": [
42
+ "person",
43
+ "home",
44
+ "map"
45
+ ]
46
+ },
37
47
  "type": {
38
48
  "const": "stat"
39
49
  }
@@ -23,6 +23,12 @@
23
23
  "type": "string",
24
24
  "format": "markdown",
25
25
  "examples": ["Stat 1", "Stat 2", "Stat 3", "Stat 4"]
26
+ },
27
+ "icon": {
28
+ "title": "Icon",
29
+ "description": "Optional icon of the stat",
30
+ "type": "string",
31
+ "examples": ["person", "home", "map"]
26
32
  }
27
33
  },
28
34
  "additionalProperties": false,
@@ -1,4 +1,4 @@
1
1
  import { HTMLAttributes, FC } from "react";
2
- import { StatsProps } from "../../StatsProps-17b0743a.js";
2
+ import { StatsProps } from "../../StatsProps-bf5ef578.js";
3
3
  declare const Stats: FC<StatsProps & HTMLAttributes<HTMLElement>>;
4
4
  export { Stats };
@@ -1,11 +1,11 @@
1
1
  import "./stats.css";
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { CountUp } from '@kickstartds/content/lib/count-up';
3
+ import { createElement } from 'react';
4
+ import { Stat } from '../stat/index.js';
5
+ import '@kickstartds/content/lib/count-up';
4
6
 
5
- const Stats = ({ items = [], }) => {
6
- return (jsx("div", { className: "dsa-stats", children: items.map((item, index) => (jsx(CountUp, { className: "dsa-stats__item", to: item.number, icon: {
7
- icon: item?.icon,
8
- }, text: item?.description, topic: item.title }, index))) }));
7
+ const Stats = ({ stat: stats = [], }) => {
8
+ return (jsx("div", { className: "dsa-stats", children: stats.map((item, index) => (createElement(Stat, { ...item, key: index }))) }));
9
9
  };
10
10
 
11
11
  export { Stats };
@@ -5,13 +5,16 @@
5
5
  "description": "Component used to display stats with a number upcounter",
6
6
  "type": "object",
7
7
  "properties": {
8
- "items": {
9
- "title": "Items",
8
+ "stat": {
9
+ "title": "Stats",
10
10
  "type": "array",
11
11
  "description": "The stats to display with a number upcounter",
12
12
  "items": {
13
- "type": "object",
13
+ "$schema": "http://json-schema.org/draft-07/schema#",
14
+ "$id": "http://schema.mydesignsystem.com/stat.schema.json",
14
15
  "title": "Stat",
16
+ "description": "Stat entry of Stats component",
17
+ "type": "object",
15
18
  "properties": {
16
19
  "number": {
17
20
  "title": "Number",
@@ -27,12 +30,14 @@
27
30
  "description": {
28
31
  "title": "Description",
29
32
  "description": "Optional description of the stat",
30
- "type": "string"
33
+ "type": "string",
34
+ "format": "markdown"
31
35
  },
32
36
  "title": {
33
37
  "title": "Title",
34
38
  "description": "Title of the stat",
35
39
  "type": "string",
40
+ "format": "markdown",
36
41
  "examples": [
37
42
  "Stat 1",
38
43
  "Stat 2",
@@ -49,12 +54,33 @@
49
54
  "home",
50
55
  "map"
51
56
  ]
57
+ },
58
+ "type": {
59
+ "const": "stat"
52
60
  }
53
61
  },
54
62
  "additionalProperties": false,
55
63
  "required": [
56
64
  "number",
57
- "title"
65
+ "label"
66
+ ],
67
+ "examples": [
68
+ {
69
+ "number": 1,
70
+ "label": "Stat 1"
71
+ },
72
+ {
73
+ "number": 2,
74
+ "label": "Stat 2"
75
+ },
76
+ {
77
+ "number": 3,
78
+ "label": "Stat 3"
79
+ },
80
+ {
81
+ "value": 4,
82
+ "label": "Stat 4"
83
+ }
58
84
  ]
59
85
  },
60
86
  "minItems": 1,
@@ -5,40 +5,12 @@
5
5
  "description": "Component used to display stats with a number upcounter",
6
6
  "type": "object",
7
7
  "properties": {
8
- "items": {
9
- "title": "Items",
8
+ "stat": {
9
+ "title": "Stats",
10
10
  "type": "array",
11
11
  "description": "The stats to display with a number upcounter",
12
12
  "items": {
13
- "type": "object",
14
- "title": "Stat",
15
- "properties": {
16
- "number": {
17
- "title": "Number",
18
- "description": "The number of the stat",
19
- "type": "integer",
20
- "examples": [1, 2, 3, 4]
21
- },
22
- "description": {
23
- "title": "Description",
24
- "description": "Optional description of the stat",
25
- "type": "string"
26
- },
27
- "title": {
28
- "title": "Title",
29
- "description": "Title of the stat",
30
- "type": "string",
31
- "examples": ["Stat 1", "Stat 2", "Stat 3", "Stat 4"]
32
- },
33
- "icon": {
34
- "title": "Icon",
35
- "description": "Optional icon of the stat",
36
- "type": "string",
37
- "examples": ["person", "home", "map"]
38
- }
39
- },
40
- "additionalProperties": false,
41
- "required": ["number", "title"]
13
+ "$ref": "http://schema.mydesignsystem.com/stat.schema.json"
42
14
  },
43
15
  "minItems": 1,
44
16
  "maxItems": 4
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 01 Mar 2024 17:15:10 GMT
3
+ * Generated on Fri, 01 Mar 2024 18:47:42 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, 01 Mar 2024 17:15:14 GMT
2730
+ * Generated on Fri, 01 Mar 2024 18:47:47 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, 01 Mar 2024 17:15:12 GMT
5461
+ * Generated on Fri, 01 Mar 2024 18:47:45 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, 01 Mar 2024 17:15:16 GMT
8462
+ * Generated on Fri, 01 Mar 2024 18:47:49 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, 01 Mar 2024 17:15:07 GMT
3
+ * Generated on Fri, 01 Mar 2024 18:47:40 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, 01 Mar 2024 17:15:08 GMT
3
+ * Generated on Fri, 01 Mar 2024 18:47:40 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.2.21",
3
+ "version": "1.2.23",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {