@kickstartds/ds-agency-premium 1.4.10 → 1.4.12--canary.15.804.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.
Files changed (54) hide show
  1. package/dist/{BlogAsideProps-e1cbd5d3.d.ts → BlogAsideProps-99489f0b.d.ts} +11 -4
  2. package/dist/{BlogHeadProps-3f6e4072.d.ts → BlogHeadProps-f9a49428.d.ts} +1 -2
  3. package/dist/BlogOverviewProps-9f207f1c.d.ts +1 -1
  4. package/dist/BlogPostProps-440f88a5.d.ts +2 -2
  5. package/dist/{BlogTeaserProps-f5855e93.d.ts → BlogTeaserProps-525f7f9f.d.ts} +1 -2
  6. package/dist/components/blog-aside/blog-aside.css +8 -16
  7. package/dist/components/blog-aside/blog-aside.schema.dereffed.json +21 -7
  8. package/dist/components/blog-aside/blog-aside.schema.json +16 -5
  9. package/dist/components/blog-aside/index.d.ts +1 -1
  10. package/dist/components/blog-aside/index.js +2 -2
  11. package/dist/components/blog-head/blog-head.schema.dereffed.json +4 -18
  12. package/dist/components/blog-head/blog-head.schema.json +2 -1
  13. package/dist/components/blog-head/index.d.ts +1 -1
  14. package/dist/components/blog-head/index.js +1 -1
  15. package/dist/components/blog-overview/blog-overview.schema.dereffed.json +12 -54
  16. package/dist/components/blog-post/blog-post.schema.dereffed.json +25 -25
  17. package/dist/components/blog-post/index.js +1 -1
  18. package/dist/components/blog-teaser/blog-teaser.schema.dereffed.json +4 -18
  19. package/dist/components/blog-teaser/blog-teaser.schema.json +2 -1
  20. package/dist/components/blog-teaser/index.d.ts +1 -1
  21. package/dist/components/blog-teaser/index.js +1 -1
  22. package/dist/components/contact/contact.css +125 -0
  23. package/dist/components/contact/contact.schema.dereffed.json +125 -0
  24. package/dist/components/contact/contact.schema.json +107 -0
  25. package/dist/components/contact/index.d.ts +70 -0
  26. package/dist/components/contact/index.js +16 -0
  27. package/dist/components/html/html.schema.json +25 -0
  28. package/dist/components/html/index.d.ts +26 -0
  29. package/dist/components/html/index.js +6 -0
  30. package/dist/components/nav-flyout/nav-flyout.css +6 -1
  31. package/dist/components/nav-main/index.js +0 -1
  32. package/dist/components/nav-toggle/nav-toggle.css +5 -0
  33. package/dist/components/nav-topbar/nav-topbar.css +7 -1
  34. package/dist/components/page-wrapper/index.js +6 -0
  35. package/dist/components/page-wrapper/tokens.css +9 -9
  36. package/dist/components/presets.json +191 -42
  37. package/dist/components/providers/index.js +7 -1
  38. package/dist/components/split/index.d.ts +2 -1
  39. package/dist/components/split/index.js +11 -1
  40. package/dist/components/split/split.css +36 -10
  41. package/dist/components/split/split.schema.dereffed.json +12 -3
  42. package/dist/components/split/split.schema.json +7 -1
  43. package/dist/static/img/people/author-john.png +0 -0
  44. package/dist/static/img/people/contact-jim.png +0 -0
  45. package/dist/static/img/people/contact-john.png +0 -0
  46. package/dist/static/img/people/portrait-young-girl-smiling.jpg +0 -0
  47. package/dist/tokens/themes.css +4 -4
  48. package/dist/tokens/tokens.css +9 -9
  49. package/dist/tokens/tokens.js +9 -9
  50. package/package.json +1 -1
  51. package/dist/BlogTagProps-f5855e93.d.ts +0 -16
  52. package/dist/components/blog-tag/blog-tag.schema.dereffed.json +0 -21
  53. package/dist/components/blog-tag/blog-tag.schema.json +0 -16
  54. package/dist/components/nav-main/nav-main.css +0 -11
@@ -0,0 +1,125 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/contact.schema.json",
4
+ "title": "Contact",
5
+ "description": "Component used for user interaction",
6
+ "type": "object",
7
+ "properties": {
8
+ "image": {
9
+ "type": "object",
10
+ "properties": {
11
+ "src": {
12
+ "type": "string",
13
+ "format": "image",
14
+ "title": "Image Source",
15
+ "description": "URL of the image to display",
16
+ "examples": [
17
+ "img/people/author-emily.png"
18
+ ]
19
+ },
20
+ "alt": {
21
+ "type": "string",
22
+ "title": "Alt Text",
23
+ "description": "Alt text of the image",
24
+ "examples": [
25
+ "Picture of Jane Smith"
26
+ ]
27
+ },
28
+ "fullWidth": {
29
+ "type": "boolean",
30
+ "title": "Full Width",
31
+ "description": "Image uses all the horizontal space vailable",
32
+ "default": false
33
+ },
34
+ "aspectRatio": {
35
+ "type": "string",
36
+ "title": "aspectRatio",
37
+ "description": "Aspect Ratio of the Images",
38
+ "enum": [
39
+ "wide",
40
+ "square",
41
+ "vertical"
42
+ ],
43
+ "default": "square"
44
+ }
45
+ },
46
+ "additionalProperties": false
47
+ },
48
+ "title": {
49
+ "title": "Title",
50
+ "description": "Name, company name, etc.",
51
+ "type": "string",
52
+ "examples": [
53
+ "Jane Smith"
54
+ ]
55
+ },
56
+ "subtitle": {
57
+ "title": "Subtitle",
58
+ "description": "Position, profession, department, location, etc.",
59
+ "type": "string",
60
+ "examples": [
61
+ "CEO at Company"
62
+ ]
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
+ "copy": {
104
+ "title": "Copy text",
105
+ "type": "string"
106
+ },
107
+ "className": {
108
+ "title": "Class",
109
+ "description": "Additional css classes attached to the wrapping element",
110
+ "type": "string"
111
+ },
112
+ "component": {
113
+ "title": "`ks-component` attribute",
114
+ "description": "Optional custom component identifier",
115
+ "type": "string"
116
+ },
117
+ "type": {
118
+ "const": "contact"
119
+ }
120
+ },
121
+ "additionalProperties": false,
122
+ "required": [
123
+ "name"
124
+ ]
125
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.mydesignsystem.com/contact.schema.json",
4
+ "title": "Contact",
5
+ "description": "Component used for user interaction",
6
+ "type": "object",
7
+ "properties": {
8
+ "image": {
9
+ "type": "object",
10
+ "properties": {
11
+ "src": {
12
+ "type": "string",
13
+ "format": "image",
14
+ "title": "Image Source",
15
+ "description": "URL of the image to display",
16
+ "examples": ["img/people/author-emily.png"]
17
+ },
18
+ "alt": {
19
+ "type": "string",
20
+ "title": "Alt Text",
21
+ "description": "Alt text of the image",
22
+ "examples": ["Picture of Jane Smith"]
23
+ },
24
+ "fullWidth": {
25
+ "type": "boolean",
26
+ "title": "Full Width",
27
+ "description": "Image uses all the horizontal space vailable",
28
+ "default": false
29
+ },
30
+ "aspectRatio": {
31
+ "type": "string",
32
+ "title": "aspectRatio",
33
+ "description": "Aspect Ratio of the Images",
34
+ "enum": ["wide", "square", "vertical"],
35
+ "default": "square"
36
+ }
37
+ }
38
+ },
39
+ "title": {
40
+ "title": "Title",
41
+ "description": "Name, company name, etc.",
42
+ "type": "string",
43
+ "examples": ["Jane Smith"]
44
+ },
45
+ "subtitle": {
46
+ "title": "Subtitle",
47
+ "description": "Position, profession, department, location, etc.",
48
+ "type": "string",
49
+ "examples": ["CEO at Company"]
50
+ },
51
+ "links": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "object",
55
+ "properties": {
56
+ "icon": {
57
+ "type": "string"
58
+ },
59
+ "label": {
60
+ "type": "string"
61
+ },
62
+ "href": {
63
+ "type": "string",
64
+ "format": "uri"
65
+ },
66
+ "newTab": {
67
+ "title": "Open link in new Tab",
68
+ "description": "Open link in new Tab",
69
+ "type": "boolean",
70
+ "default": false
71
+ }
72
+ },
73
+ "additionalProperties": false
74
+ },
75
+ "examples": [
76
+ [
77
+ {
78
+ "icon": "phone",
79
+ "label": "0228 / 688 966 20",
80
+ "href": "tel:+4922868896620"
81
+ },
82
+ {
83
+ "icon": "email",
84
+ "label": "mail@example.com",
85
+ "href": "mailto:mail@example.com"
86
+ }
87
+ ]
88
+ ]
89
+ },
90
+ "copy": {
91
+ "title": "Copy text",
92
+ "type": "string"
93
+ },
94
+ "className": {
95
+ "title": "Class",
96
+ "description": "Additional css classes attached to the wrapping element",
97
+ "type": "string"
98
+ },
99
+ "component": {
100
+ "title": "`ks-component` attribute",
101
+ "description": "Optional custom component identifier",
102
+ "type": "string"
103
+ }
104
+ },
105
+ "additionalProperties": false,
106
+ "required": ["name"]
107
+ }
@@ -0,0 +1,70 @@
1
+ /// <reference types="react" />
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
+ /**
10
+ * URL of the image to display
11
+ */
12
+ type ImageSource = string;
13
+ /**
14
+ * Alt text of the image
15
+ */
16
+ type AltText = string;
17
+ /**
18
+ * Image uses all the horizontal space vailable
19
+ */
20
+ type FullWidth = boolean;
21
+ /**
22
+ * Aspect Ratio of the Images
23
+ */
24
+ type AspectRatio = "wide" | "square" | "vertical";
25
+ /**
26
+ * Name, company name, etc.
27
+ */
28
+ type Title = string;
29
+ /**
30
+ * Position, profession, department, location, etc.
31
+ */
32
+ type Subtitle = string;
33
+ /**
34
+ * Open link in new Tab
35
+ */
36
+ type OpenLinkInNewTab = boolean;
37
+ type CopyText = string;
38
+ /**
39
+ * Additional css classes attached to the wrapping element
40
+ */
41
+ type Class = string;
42
+ /**
43
+ * Optional custom component identifier
44
+ */
45
+ type KsComponentAttribute = string;
46
+ /**
47
+ * Component used for user interaction
48
+ */
49
+ interface ContactProps {
50
+ image?: {
51
+ src?: ImageSource;
52
+ alt?: AltText;
53
+ fullWidth?: FullWidth;
54
+ aspectRatio?: AspectRatio;
55
+ };
56
+ title?: Title;
57
+ subtitle?: Subtitle;
58
+ links?: {
59
+ icon?: string;
60
+ label?: string;
61
+ href?: string;
62
+ newTab?: OpenLinkInNewTab;
63
+ }[];
64
+ copy?: CopyText;
65
+ className?: Class;
66
+ component?: KsComponentAttribute;
67
+ }
68
+ declare const Contact: import("react").ForwardRefExoticComponent<ContactProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLAnchorElement>>;
69
+ declare const ContactProvider: FC<PropsWithChildren>;
70
+ export { Contact, ContactProvider };
@@ -0,0 +1,16 @@
1
+ import "./contact.css";
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { forwardRef } from 'react';
4
+ import classnames from 'classnames';
5
+ import { Picture } from '@kickstartds/base/lib/picture';
6
+ import { ContactContext } from '@kickstartds/base/lib/contact';
7
+ import { Link } from '@kickstartds/base/lib/link';
8
+ import { Icon } from '@kickstartds/base/lib/icon';
9
+ import { RichText } from '@kickstartds/base/lib/rich-text';
10
+ import { Container } from '@kickstartds/core/lib/container';
11
+
12
+ const Contact = forwardRef(({ title, subtitle, image, links, copy, className, ...props }, ref) => (jsx(Container, { name: "contact", children: jsxs("address", { className: classnames("dsa-contact", image?.aspectRatio && `dsa-contact--image-${image?.aspectRatio}`, image?.fullWidth && `dsa-contact--image-full-width`, className), ref: ref, ...props, children: [image && image.src ? (jsx("div", { className: "dsa-contact__image-wrap", children: jsx(Picture, { ...image, className: "dsa-contact__image" }) })) : (""), jsxs("div", { className: "dsa-contact__body", children: [title && (jsxs("div", { className: "dsa-contact__header", children: [jsx("span", { className: "dsa-contact__title", children: title }), jsx("span", { className: "dsa-contact__subtitle", children: subtitle })] })), copy && jsx(RichText, { text: copy, className: "dsa-contact__copy" }), links.length ? (jsx("ul", { className: "dsa-contact__links", children: links.map(({ icon, href, label, newTab }, i) => (jsx("li", { children: jsxs(Link, { className: "dsa-contact__link", href: href, ...(newTab ? { target: "_blank", rel: "noopener" } : {}), children: [jsx(Icon, { icon: icon }), label] }) }, i))) })) : ("")] })] }) })));
13
+ Contact.displayName = "Contact";
14
+ const ContactProvider = (props) => (jsx(ContactContext.Provider, { ...props, value: Contact }));
15
+
16
+ export { Contact, ContactProvider };
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://schema.kickstartds.com/base/html.schema.json",
4
+ "title": "HTML",
5
+ "description": "Display raw HTML.",
6
+ "type": "object",
7
+ "properties": {
8
+ "html": {
9
+ "title": "HTML string",
10
+ "type": "string",
11
+ "examples": ["<p>Hello world!</p>"]
12
+ },
13
+ "className": {
14
+ "title": "Additional Classes",
15
+ "description": "Add additional css classes that should be applied to the element",
16
+ "type": "string"
17
+ },
18
+ "component": {
19
+ "title": "`ks-component` attribute",
20
+ "description": "Optional custom component identifier",
21
+ "type": "string"
22
+ }
23
+ },
24
+ "additionalProperties": false
25
+ }
@@ -0,0 +1,26 @@
1
+ import { ForwardRefRenderFunction, HTMLAttributes } 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 `yarn run schema` to regenerate this file.
7
+ */
8
+ type HTMLString = string;
9
+ /**
10
+ * Add additional css classes that should be applied to the element
11
+ */
12
+ type AdditionalClasses = string;
13
+ /**
14
+ * Optional custom component identifier
15
+ */
16
+ type KsComponentAttribute = string;
17
+ /**
18
+ * Display raw HTML.
19
+ */
20
+ interface HTMLProps {
21
+ html?: HTMLString;
22
+ className?: AdditionalClasses;
23
+ component?: KsComponentAttribute;
24
+ }
25
+ declare const HtmlComponent: ForwardRefRenderFunction<HTMLDivElement, HTMLProps & HTMLAttributes<HTMLDivElement>>;
26
+ export { HTMLProps, HtmlComponent };
@@ -0,0 +1,6 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import classnames from 'classnames';
3
+
4
+ const HtmlComponent = ({ html, className, component, ...props }, ref) => (jsx("div", { className: classnames('c-html', className), dangerouslySetInnerHTML: { __html: html }, "ks-component": component, ref: ref, ...props }));
5
+
6
+ export { HtmlComponent };
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .dsa-nav-flyout {
30
- display: flex;
30
+ display: none;
31
31
  font: var(--dsa-nav-flyout__label--font);
32
32
  flex-direction: column;
33
33
  gap: var(--dsa-nav-flyout--gap);
@@ -47,6 +47,11 @@
47
47
  -webkit-overflow-scrolling: touch;
48
48
  max-width: var(--dsa-nav-flyout--max-width);
49
49
  }
50
+ @media (max-width: 62rem) {
51
+ .dsa-nav-flyout {
52
+ display: flex;
53
+ }
54
+ }
50
55
  .dsa-nav-flyout ul {
51
56
  padding: 0;
52
57
  margin: 0;
@@ -1,4 +1,3 @@
1
- import "./nav-main.css";
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
2
  import { forwardRef, createContext, useContext } from 'react';
4
3
  import './js/NavToggle.client.js';
@@ -23,6 +23,11 @@ button.dsa-nav-toggle {
23
23
  transform: translateX(var(--dsa-header--spacing-horizontal));
24
24
  --toggle__icon-bar--offset: 45%;
25
25
  }
26
+ @media (min-width: 62em) {
27
+ button.dsa-nav-toggle {
28
+ display: none;
29
+ }
30
+ }
26
31
  button.dsa-nav-toggle .dsa-nav-toggle__label {
27
32
  border: 0;
28
33
  clip: rect(1px, 1px, 1px, 1px);
@@ -19,6 +19,12 @@
19
19
  .dsa-nav-topbar {
20
20
  --g-link--text-decoration: none;
21
21
  --g-link--text-decoration_hover: none;
22
+ display: none;
23
+ }
24
+ @media (min-width: 62rem) {
25
+ .dsa-nav-topbar {
26
+ display: block;
27
+ }
22
28
  }
23
29
  .dsa-nav-topbar ul {
24
30
  list-style: none;
@@ -44,7 +50,7 @@
44
50
  display: flex;
45
51
  align-items: stretch;
46
52
  }
47
- .dsa-nav-topbar .dsa-nav-topbar__item--dropdown:last-of-type .dsa-nav-dropdown, .dsa-nav-topbar .dsa-nav-topbar__item--dropdown:nth-last-of-type(2) .dsa-nav-dropdown {
53
+ .dsa-nav-topbar .dsa-nav-topbar__item--dropdown:last-child .dsa-nav-dropdown {
48
54
  right: 0;
49
55
  }
50
56
  .dsa-nav-topbar .dsa-nav-topbar__item .dsa-nav-dropdown {
@@ -15,6 +15,12 @@ import '@kickstartds/core/lib/component';
15
15
  import '../teaser-card/index.js';
16
16
  import '@kickstartds/base/lib/teaser-box';
17
17
  import '@kickstartds/core/lib/container';
18
+ import '../contact/index.js';
19
+ import '@kickstartds/base/lib/picture';
20
+ import '@kickstartds/base/lib/contact';
21
+ import '@kickstartds/base/lib/link';
22
+ import '@kickstartds/base/lib/icon';
23
+ import '@kickstartds/base/lib/rich-text';
18
24
  import '../headline/index.js';
19
25
  import 'markdown-to-jsx';
20
26
  import '@kickstartds/base/lib/headline';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 29 Aug 2024 10:00:23 GMT
3
+ * Generated on Mon, 02 Sep 2024 11:11:36 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -115,8 +115,8 @@
115
115
  --ks-background-color-secondary-inverted-interactive-active-base: var(--ks-color-secondary-inverted-to-bg-2-base);
116
116
  --ks-background-color-secondary-inverted-interactive-selected-base: var(--ks-color-secondary-inverted-to-bg-4-base);
117
117
  --ks-background-color-secondary-inverted-translucent-base: var(--ks-color-secondary-inverted-alpha-5-base);
118
- --ks-border-color-accent-base: var(--ks-color-primary-to-bg-8-base);
119
- --ks-border-color-accent-inverted-base: var(--ks-color-primary-inverted-to-bg-8-base);
118
+ --ks-border-color-accent-base: var(--ks-color-fg-to-bg-7-base);
119
+ --ks-border-color-accent-inverted-base: var(--ks-color-fg-inverted-to-bg-7-base);
120
120
  --ks-border-color-clear-base: var(--ks-color-transparent-base);
121
121
  --ks-border-color-clear-interactive-base: var(--ks-color-transparent-base);
122
122
  --ks-border-color-clear-interactive-hover-base: var(--ks-color-primary-alpha-8-base);
@@ -807,14 +807,14 @@
807
807
  --ks-spacing-inset-stretch-xl: var(--ks-spacing-xxl) var(--ks-spacing-xl);
808
808
  --ks-text-color-default-base: var(--ks-color-fg-base);
809
809
  --ks-text-color-default-interactive-base: var(--ks-color-link-base);
810
- --ks-text-color-default-interactive-hover-base: var(--ks-color-link-base);
811
- --ks-text-color-default-interactive-active-base: var(--ks-color-link-base);
812
- --ks-text-color-default-interactive-selected-base: var(--ks-color-link-base);
810
+ --ks-text-color-default-interactive-hover-base: var(--ks-color-link-to-fg-5-base);
811
+ --ks-text-color-default-interactive-active-base: var(--ks-color-link-to-fg-5-base);
812
+ --ks-text-color-default-interactive-selected-base: var(--ks-color-link-to-fg-5-base);
813
813
  --ks-text-color-default-inverted-base: var(--ks-color-fg-inverted-base);
814
814
  --ks-text-color-default-inverted-interactive-base: var(--ks-color-link-inverted-base);
815
- --ks-text-color-default-inverted-interactive-hover-base: var(--ks-color-link-inverted-base);
816
- --ks-text-color-default-inverted-interactive-active-base: var(--ks-color-link-inverted-base);
817
- --ks-text-color-default-inverted-interactive-selected-base: var(--ks-color-link-inverted-base);
815
+ --ks-text-color-default-inverted-interactive-hover-base: var(--ks-color-link-inverted-to-fg-5-base);
816
+ --ks-text-color-default-inverted-interactive-active-base: var(--ks-color-link-inverted-to-fg-5-base);
817
+ --ks-text-color-default-inverted-interactive-selected-base: var(--ks-color-link-inverted-to-fg-5-base);
818
818
  --ks-text-color-copy-base: var(--ks-color-fg-alpha-3-base);
819
819
  --ks-text-color-copy-interactive-base: var(--ks-color-link-base);
820
820
  --ks-text-color-copy-interactive-hover-base: var(--ks-color-link-to-fg-2-base);