@kickstartds/ds-agency-premium 1.5.0 → 1.5.1

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.
@@ -0,0 +1,48 @@
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 { BlogAuthorProps } from "./BlogAuthorProps-88a11566.js";
7
+ /**
8
+ * The icon name for the social link
9
+ */
10
+ type Icon = string;
11
+ /**
12
+ * The href for the social link
13
+ */
14
+ type Href = string;
15
+ /**
16
+ * The title for the social link
17
+ */
18
+ type Title = string;
19
+ /**
20
+ * The social sharing links for the blog post
21
+ */
22
+ type SocialSharing = {
23
+ icon: Icon;
24
+ href: Href;
25
+ title: Title;
26
+ }[];
27
+ /**
28
+ * The reading time for the blog post
29
+ */
30
+ type ReadingTime = string;
31
+ /**
32
+ * The date when the blog post was published
33
+ */
34
+ type PublishedDate = string;
35
+ /**
36
+ * Meta info for a singular blog entry
37
+ */
38
+ interface BlogAsideProps {
39
+ /**
40
+ * Referenced component BlogAuthorProps
41
+ */
42
+ author: BlogAuthorProps;
43
+ socialSharing?: SocialSharing;
44
+ readingTime?: ReadingTime;
45
+ date: PublishedDate;
46
+ className?: string;
47
+ }
48
+ export { Icon, Href, Title, SocialSharing, ReadingTime, PublishedDate, BlogAsideProps };
@@ -31,48 +31,10 @@ type AspectRatio = "wide" | "square" | "vertical";
31
31
  * Open link in new Tab
32
32
  */
33
33
  type OpenLinkInNewTab = boolean;
34
- /**
35
- * The icon name for the social link
36
- */
37
- type Icon = string;
38
- /**
39
- * The href for the social link
40
- */
41
- type Href = string;
42
- /**
43
- * The title for the social link
44
- */
45
- type Title = string;
46
- /**
47
- * The social sharing links for the blog post
48
- */
49
- type SocialSharing = {
50
- icon: Icon;
51
- href: Href;
52
- title: Title;
53
- }[];
54
- /**
55
- * The reading time for the blog post
56
- */
57
- type ReadingTime = string;
58
- /**
59
- * The date when the blog post was published
60
- */
61
- type PublishedDate = string;
62
- /**
63
- * Meta info for a singular blog entry
64
- */
65
- interface BlogAsideProps {
66
- author: Author;
67
- socialSharing?: SocialSharing;
68
- readingTime?: ReadingTime;
69
- date: PublishedDate;
70
- className?: string;
71
- }
72
34
  /**
73
35
  * The author of the blog post
74
36
  */
75
- interface Author {
37
+ interface BlogAuthorProps {
76
38
  name: Name;
77
39
  byline?: Byline;
78
40
  image?: {
@@ -88,4 +50,4 @@ interface Author {
88
50
  newTab?: OpenLinkInNewTab;
89
51
  }[];
90
52
  }
91
- export { Name, Byline, ImageSource, AltText, FullWidth, AspectRatio, OpenLinkInNewTab, Icon, Href, Title, SocialSharing, ReadingTime, PublishedDate, BlogAsideProps, Author };
53
+ export { Name, Byline, ImageSource, AltText, FullWidth, AspectRatio, OpenLinkInNewTab, BlogAuthorProps };
@@ -4,7 +4,7 @@
4
4
  * and run json-schema-to-typescript to regenerate this file.
5
5
  */
6
6
  import { BlogHeadProps } from "./BlogHeadProps-3f6e4072.js";
7
- import { BlogAsideProps } from "./BlogAsideProps-b06e0358.js";
7
+ import { BlogAsideProps } from "./BlogAsideProps-d9decb7c.js";
8
8
  import { SectionProps } from "./SectionProps-83d399b4.js";
9
9
  import { CtaProps } from "./CtaProps-93230a76.js";
10
10
  import { SeoProps } from "./SeoProps-f2d6dcaa.js";
@@ -6,8 +6,10 @@
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "author": {
9
+ "$schema": "http://json-schema.org/draft-07/schema#",
10
+ "$id": "http://schema.mydesignsystem.com/blog-author.schema.json",
9
11
  "type": "object",
10
- "title": "Author",
12
+ "title": "Blog Author",
11
13
  "description": "The author of the blog post",
12
14
  "properties": {
13
15
  "name": {
@@ -104,6 +106,9 @@
104
106
  }
105
107
  ]
106
108
  ]
109
+ },
110
+ "type": {
111
+ "const": "blog-author"
107
112
  }
108
113
  },
109
114
  "additionalProperties": false,
@@ -6,31 +6,7 @@
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "author": {
9
- "type": "object",
10
- "title": "Author",
11
- "description": "The author of the blog post",
12
- "properties": {
13
- "name": {
14
- "title": "Name",
15
- "description": "The name of the author",
16
- "type": "string",
17
- "examples": ["John Doe"]
18
- },
19
- "byline": {
20
- "title": "Byline",
21
- "description": "The byline of the author",
22
- "type": "string",
23
- "examples": ["CEO at Company"]
24
- },
25
- "image": {
26
- "$ref": "http://schema.mydesignsystem.com/contact.schema.json#/properties/image"
27
- },
28
- "links": {
29
- "$ref": "http://schema.mydesignsystem.com/contact.schema.json#/properties/links"
30
- }
31
- },
32
- "additionalProperties": false,
33
- "required": ["name"]
9
+ "$ref": "http://schema.mydesignsystem.com/blog-author.schema.json"
34
10
  },
35
11
  "socialSharing": {
36
12
  "type": "array",
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BlogAsideProps } from "../../BlogAsideProps-b06e0358.js";
2
+ import { BlogAsideProps } from "../../BlogAsideProps-d9decb7c.js";
3
3
  declare const BlogAsideContextDefault: import("react").ForwardRefExoticComponent<BlogAsideProps & import("react").RefAttributes<HTMLDivElement>>;
4
4
  declare const BlogAsideContext: import("react").Context<import("react").ForwardRefExoticComponent<BlogAsideProps & import("react").RefAttributes<HTMLDivElement>>>;
5
5
  declare const BlogAside: import("react").ForwardRefExoticComponent<BlogAsideProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -5,8 +5,9 @@ import { forwardRef, createContext, useContext } from 'react';
5
5
  import { PostMeta } from '@kickstartds/blog/lib/post-meta';
6
6
  import { PostShareBar } from '@kickstartds/blog/lib/post-share-bar';
7
7
  import { Container } from '@kickstartds/core/lib/container';
8
- import { Contact } from '../contact/index.js';
8
+ import { BlogAuthor } from '../blog-author/index.js';
9
9
  import { Headline } from '../headline/index.js';
10
+ import '../contact/index.js';
10
11
  import '@kickstartds/base/lib/picture';
11
12
  import '@kickstartds/base/lib/contact';
12
13
  import '@kickstartds/base/lib/link';
@@ -34,7 +35,7 @@ const BlogAsideContextDefault = forwardRef(({ author, socialSharing, readingTime
34
35
  icon: "time",
35
36
  text: readingTime,
36
37
  });
37
- return (jsx(Container, { name: "blog-aside", children: jsxs("div", { className: classnames(className, "dsa-blog-aside"), children: [jsx(Contact, { className: "dsa-blog-aside__author", title: author?.name, subtitle: author?.byline, image: author?.image, links: author?.links }), metaItems && (jsx(Fragment, { children: jsx(PostMeta, { className: "dsa-blog-aside__meta", items: metaItems }) })), socialLinks && (jsxs("div", { children: [jsx(Headline, { text: "Share this Article", level: "p", style: "p", spaceAfter: "minimum" }), jsx(PostShareBar, { className: "dsa-blog-aside__share-bar", links: socialLinks })] }))] }) }));
38
+ return (jsx(Container, { name: "blog-aside", children: jsxs("div", { className: classnames(className, "dsa-blog-aside"), children: [jsx(BlogAuthor, { ...author }), metaItems && (jsx(Fragment, { children: jsx(PostMeta, { className: "dsa-blog-aside__meta", items: metaItems }) })), socialLinks && (jsxs("div", { children: [jsx(Headline, { text: "Share this Article", level: "p", style: "p", spaceAfter: "minimum" }), jsx(PostShareBar, { className: "dsa-blog-aside__share-bar", links: socialLinks })] }))] }) }));
38
39
  });
39
40
  const BlogAsideContext = createContext(BlogAsideContextDefault);
40
41
  const BlogAside = forwardRef((props, ref) => {
@@ -0,0 +1,111 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/blog-author.schema.json",
4
+ "type": "object",
5
+ "title": "Blog Author",
6
+ "description": "The author of the blog post",
7
+ "properties": {
8
+ "name": {
9
+ "title": "Name",
10
+ "description": "The name of the author",
11
+ "type": "string",
12
+ "examples": [
13
+ "John Doe"
14
+ ]
15
+ },
16
+ "byline": {
17
+ "title": "Byline",
18
+ "description": "The byline of the author",
19
+ "type": "string",
20
+ "examples": [
21
+ "CEO at Company"
22
+ ]
23
+ },
24
+ "image": {
25
+ "type": "object",
26
+ "properties": {
27
+ "src": {
28
+ "type": "string",
29
+ "format": "image",
30
+ "title": "Image Source",
31
+ "description": "URL of the image to display",
32
+ "examples": [
33
+ "img/people/author-emily.png"
34
+ ]
35
+ },
36
+ "alt": {
37
+ "type": "string",
38
+ "title": "Alt Text",
39
+ "description": "Alt text of the image",
40
+ "examples": [
41
+ "Picture of Jane Smith"
42
+ ]
43
+ },
44
+ "fullWidth": {
45
+ "type": "boolean",
46
+ "title": "Full Width",
47
+ "description": "Image uses all the horizontal space vailable",
48
+ "default": false
49
+ },
50
+ "aspectRatio": {
51
+ "type": "string",
52
+ "title": "aspectRatio",
53
+ "description": "Aspect Ratio of the Images",
54
+ "enum": [
55
+ "wide",
56
+ "square",
57
+ "vertical"
58
+ ],
59
+ "default": "square"
60
+ }
61
+ },
62
+ "additionalProperties": false
63
+ },
64
+ "links": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "object",
68
+ "properties": {
69
+ "icon": {
70
+ "type": "string"
71
+ },
72
+ "label": {
73
+ "type": "string"
74
+ },
75
+ "href": {
76
+ "type": "string",
77
+ "format": "uri"
78
+ },
79
+ "newTab": {
80
+ "title": "Open link in new Tab",
81
+ "description": "Open link in new Tab",
82
+ "type": "boolean",
83
+ "default": false
84
+ }
85
+ },
86
+ "additionalProperties": false
87
+ },
88
+ "examples": [
89
+ [
90
+ {
91
+ "icon": "phone",
92
+ "label": "0228 / 688 966 20",
93
+ "href": "tel:+4922868896620"
94
+ },
95
+ {
96
+ "icon": "email",
97
+ "label": "mail@example.com",
98
+ "href": "mailto:mail@example.com"
99
+ }
100
+ ]
101
+ ]
102
+ },
103
+ "type": {
104
+ "const": "blog-author"
105
+ }
106
+ },
107
+ "additionalProperties": false,
108
+ "required": [
109
+ "name"
110
+ ]
111
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/blog-author.schema.json",
4
+ "type": "object",
5
+ "title": "Blog Author",
6
+ "description": "The author of the blog post",
7
+ "properties": {
8
+ "name": {
9
+ "title": "Name",
10
+ "description": "The name of the author",
11
+ "type": "string",
12
+ "examples": ["John Doe"]
13
+ },
14
+ "byline": {
15
+ "title": "Byline",
16
+ "description": "The byline of the author",
17
+ "type": "string",
18
+ "examples": ["CEO at Company"]
19
+ },
20
+ "image": {
21
+ "$ref": "http://schema.mydesignsystem.com/contact.schema.json#/properties/image"
22
+ },
23
+ "links": {
24
+ "$ref": "http://schema.mydesignsystem.com/contact.schema.json#/properties/links"
25
+ }
26
+ },
27
+ "additionalProperties": false,
28
+ "required": ["name"]
29
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BlogAuthorProps } from "../../BlogAuthorProps-88a11566.js";
3
+ declare const BlogAuthorContextDefault: import("react").ForwardRefExoticComponent<BlogAuthorProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ declare const BlogAuthorContext: import("react").Context<import("react").ForwardRefExoticComponent<BlogAuthorProps & import("react").RefAttributes<HTMLDivElement>>>;
5
+ declare const BlogAuthor: import("react").ForwardRefExoticComponent<BlogAuthorProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export { BlogAuthorContextDefault, BlogAuthorContext, BlogAuthor };
@@ -0,0 +1,22 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { forwardRef, createContext, useContext } from 'react';
3
+ import { Contact } from '../contact/index.js';
4
+ import 'classnames';
5
+ import '@kickstartds/base/lib/picture';
6
+ import '@kickstartds/base/lib/contact';
7
+ import '@kickstartds/base/lib/link';
8
+ import '@kickstartds/base/lib/icon';
9
+ import '@kickstartds/base/lib/rich-text';
10
+ import '@kickstartds/core/lib/container';
11
+
12
+ const BlogAuthorContextDefault = forwardRef(({ name, byline, image, links }) => {
13
+ return (jsx(Contact, { className: "dsa-blog-aside__author", title: name, subtitle: byline, image: image, links: links }));
14
+ });
15
+ const BlogAuthorContext = createContext(BlogAuthorContextDefault);
16
+ const BlogAuthor = forwardRef((props, ref) => {
17
+ const Component = useContext(BlogAuthorContext);
18
+ return jsx(Component, { ...props, ref: ref });
19
+ });
20
+ BlogAuthor.displayName = "BlogAuthor";
21
+
22
+ export { BlogAuthor, BlogAuthorContext, BlogAuthorContextDefault };
@@ -86,8 +86,10 @@
86
86
  "type": "object",
87
87
  "properties": {
88
88
  "author": {
89
+ "$schema": "http://json-schema.org/draft-07/schema#",
90
+ "$id": "http://schema.mydesignsystem.com/blog-author.schema.json",
89
91
  "type": "object",
90
- "title": "Author",
92
+ "title": "Blog Author",
91
93
  "description": "The author of the blog post",
92
94
  "properties": {
93
95
  "name": {
@@ -184,6 +186,9 @@
184
186
  }
185
187
  ]
186
188
  ]
189
+ },
190
+ "type": {
191
+ "const": "blog-author"
187
192
  }
188
193
  },
189
194
  "additionalProperties": false,
@@ -15,6 +15,7 @@ import '@kickstartds/core/lib/component';
15
15
  import '@kickstartds/blog/lib/post-meta';
16
16
  import '@kickstartds/blog/lib/post-share-bar';
17
17
  import '@kickstartds/core/lib/container';
18
+ import '../blog-author/index.js';
18
19
  import '../contact/index.js';
19
20
  import '@kickstartds/base/lib/picture';
20
21
  import '@kickstartds/base/lib/contact';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 03 Sep 2024 14:30:50 GMT
3
+ * Generated on Tue, 03 Sep 2024 15:00:43 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --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 Tue, 03 Sep 2024 14:30:52 GMT
3
+ * Generated on Tue, 03 Sep 2024 15:00:46 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 Tue, 03 Sep 2024 14:30:56 GMT
2730
+ * Generated on Tue, 03 Sep 2024 15:00:51 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 Tue, 03 Sep 2024 14:30:54 GMT
5461
+ * Generated on Tue, 03 Sep 2024 15:00:49 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 Tue, 03 Sep 2024 14:30:59 GMT
8462
+ * Generated on Tue, 03 Sep 2024 15:00:54 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 Tue, 03 Sep 2024 14:30:50 GMT
3
+ * Generated on Tue, 03 Sep 2024 15:00:43 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 Tue, 03 Sep 2024 14:30:50 GMT
3
+ * Generated on Tue, 03 Sep 2024 15:00:44 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.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {