@kickstartds/ds-agency-premium 1.3.23 → 1.3.24

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.
@@ -3,6 +3,10 @@
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
+ * Add a link to the logo
8
+ */
9
+ type Link = string;
6
10
  /**
7
11
  * Logo file source
8
12
  */
@@ -23,6 +27,10 @@ type Width = number;
23
27
  * Height of the picture
24
28
  */
25
29
  type Height = number;
30
+ /**
31
+ * Toggle the inversion of the logo inside the mobile navigation
32
+ */
33
+ type FlyoutLogoInverted = boolean;
26
34
  /**
27
35
  * Make the header float over the first Section
28
36
  */
@@ -34,6 +42,7 @@ type Inverted = boolean;
34
42
  interface HeaderProps {
35
43
  logo: Logo;
36
44
  logoHref?: string;
45
+ flyoutLogoInverted?: FlyoutLogoInverted;
37
46
  floating?: Floating;
38
47
  inverted?: Inverted;
39
48
  navItems?: {
@@ -43,10 +52,11 @@ interface HeaderProps {
43
52
  }[];
44
53
  }
45
54
  interface Logo {
55
+ href?: Link;
46
56
  src?: Source;
47
57
  srcInverted?: SourceInverted;
48
58
  alt?: AltText;
49
59
  width?: Width;
50
60
  height?: Height;
51
61
  }
52
- export { Source, SourceInverted, AltText, Width, Height, Floating, Inverted, HeaderProps, Logo };
62
+ export { Link, Source, SourceInverted, AltText, Width, Height, FlyoutLogoInverted, Floating, Inverted, HeaderProps, Logo };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BlogPostProps } from "../../BlogPostProps-0910f130.js";
2
+ import { BlogPostProps } from "../../BlogPostProps-e1cbd5d3.js";
3
3
  declare const BlogPost: {
4
4
  ({ head, content, aside, cta }: BlogPostProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
@@ -8,6 +8,13 @@
8
8
  "title": "Logo",
9
9
  "type": "object",
10
10
  "properties": {
11
+ "href": {
12
+ "title": "Link",
13
+ "description": "Add a link to the logo",
14
+ "type": "string",
15
+ "format": "uri",
16
+ "default": "/"
17
+ },
11
18
  "src": {
12
19
  "title": "Source",
13
20
  "description": "Logo file source",
@@ -57,6 +64,12 @@
57
64
  "format": "uri",
58
65
  "default": "/"
59
66
  },
67
+ "flyoutLogoInverted": {
68
+ "type": "boolean",
69
+ "title": "Flyout Logo Inverted",
70
+ "description": "Toggle the inversion of the logo inside the mobile navigation",
71
+ "default": false
72
+ },
60
73
  "floating": {
61
74
  "type": "boolean",
62
75
  "title": "Floating",
@@ -5,48 +5,14 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "logo": {
8
- "title": "Logo",
9
- "type": "object",
10
- "properties": {
11
- "src": {
12
- "title": "Source",
13
- "description": "Logo file source",
14
- "type": "string",
15
- "format": "image",
16
- "examples": ["logo.svg"]
17
- },
18
- "srcInverted": {
19
- "title": "Source Inverted",
20
- "description": "Logo inverted file source",
21
- "type": "string",
22
- "format": "image",
23
- "examples": ["logo-inverted.svg"]
24
- },
25
- "alt": {
26
- "title": "Alt text",
27
- "description": "Alt text to display for picture",
28
- "type": "string"
29
- },
30
- "width": {
31
- "title": "Width",
32
- "description": "Width of the picture",
33
- "type": "integer",
34
- "minimum": 0,
35
- "examples": [300]
36
- },
37
- "height": {
38
- "title": "Height",
39
- "description": "Height of the picture",
40
- "type": "integer",
41
- "minimum": 0,
42
- "examples": [300]
43
- }
44
- },
45
- "additionalProperties": false
8
+ "$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/logo"
46
9
  },
47
10
  "logoHref": {
48
11
  "$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/logoHref"
49
12
  },
13
+ "flyoutLogoInverted": {
14
+ "$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/flyoutLogoInverted"
15
+ },
50
16
  "floating": {
51
17
  "type": "boolean",
52
18
  "title": "Floating",
@@ -1,4 +1,4 @@
1
1
  import { FC } from "react";
2
- import { HeaderProps } from "../../HeaderProps-7a7ece57.js";
2
+ import { HeaderProps } from "../../HeaderProps-c41aeb76.js";
3
3
  declare const Header: FC<HeaderProps>;
4
4
  export { Header };
@@ -11,7 +11,7 @@ import '../nav-main/js/navMainEvents.client.js';
11
11
  import '@kickstartds/core/lib/core';
12
12
  import '../nav-main/js/body.client.js';
13
13
 
14
- const Header = ({ logo, logoHref = "/", floating, inverted = false, navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), children: jsxs("div", { className: "dsa-header__content", children: [jsxs(Link, { className: "dsa-header__logo", href: logoHref, children: [jsx(Picture, { className: "dsa-header__logo__img", src: logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: inverted }), jsx(Picture, { className: "dsa-header__logo__img dsa-header__logo__img--inverted", src: logo?.srcInverted || logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: !inverted })] }), jsx(NavMain, { logo: logo, logoHref: logoHref, items: navItems })] }) }) }));
14
+ const Header = ({ logo, logoHref = "/", floating, inverted = false, flyoutLogoInverted = false, navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), children: jsxs("div", { className: "dsa-header__content", children: [jsxs(Link, { className: "dsa-header__logo", href: logoHref, children: [jsx(Picture, { className: "dsa-header__logo__img", src: logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: inverted }), jsx(Picture, { className: "dsa-header__logo__img dsa-header__logo__img--inverted", src: logo?.srcInverted || logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: !inverted })] }), jsx(NavMain, { flyoutLogoInverted: flyoutLogoInverted, logo: logo, logoHref: logoHref, items: navItems })] }) }) }));
15
15
  Header.displayName = "Header";
16
16
 
17
17
  export { Header };
@@ -12,7 +12,7 @@ import { SeoProps } from "../../SeoProps-f2d6dcaa.js";
12
12
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
13
13
  * and run json-schema-to-typescript to regenerate this file.
14
14
  */
15
- import { HeaderProps } from "../../HeaderProps-7a7ece57.js";
15
+ import { HeaderProps } from "../../HeaderProps-c41aeb76.js";
16
16
  import { FooterProps } from "../../FooterProps-9f94ed98.js";
17
17
  /**
18
18
  * Collection of sections (with their contents) to render on the page
@@ -72,6 +72,6 @@ interface SettingsProps {
72
72
  */
73
73
  seo: SeoProps;
74
74
  }
75
- export * from "../../BlogPostProps-0910f130.js";
75
+ export * from "../../BlogPostProps-e1cbd5d3.js";
76
76
  export * from "../../BlogOverviewProps-f385fc47.js";
77
77
  export { Sections, ToggleFloating, ToggleInverted, ToggleInverted1, PageProps, Header, Footer, SettingsProps };
@@ -5,19 +5,52 @@ import { FC } from "react";
5
5
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
6
6
  * and run json-schema-to-typescript to regenerate this file.
7
7
  */
8
- import { PictureProps } from "@kickstartds/base/lib/picture/typing";
8
+ /**
9
+ * Add a link to the logo
10
+ */
11
+ type Link = string;
12
+ /**
13
+ * Logo file source
14
+ */
15
+ type Source = string;
16
+ /**
17
+ * Logo inverted file source
18
+ */
19
+ type SourceInverted = string;
20
+ /**
21
+ * Alt text to display for picture
22
+ */
23
+ type AltText = string;
24
+ /**
25
+ * Width of the picture
26
+ */
27
+ type Width = number;
28
+ /**
29
+ * Height of the picture
30
+ */
31
+ type Height = number;
32
+ /**
33
+ * Toggle the inversion of the logo inside the mobile navigation
34
+ */
35
+ type FlyoutLogoInverted = boolean;
9
36
  interface NavMainProps {
10
- /**
11
- * Referenced component PictureProps
12
- */
13
- logo: PictureProps;
37
+ logo: Logo;
14
38
  logoHref?: string;
39
+ flyoutLogoInverted?: FlyoutLogoInverted;
15
40
  items?: {
16
41
  href: string;
17
42
  label: string;
18
43
  active?: boolean;
19
44
  }[];
20
45
  }
46
+ interface Logo {
47
+ href?: Link;
48
+ src?: Source;
49
+ srcInverted?: SourceInverted;
50
+ alt?: AltText;
51
+ width?: Width;
52
+ height?: Height;
53
+ }
21
54
  declare const NavToggleComponent: FC;
22
55
  declare const NavMainItem: FC<{
23
56
  label: string;
@@ -11,8 +11,8 @@ import '@kickstartds/core/lib/component';
11
11
  import './js/body.client.js';
12
12
  import '@kickstartds/core/lib/core';
13
13
 
14
- const NavToggleComponent = () => (jsxs("button", { type: "button", className: "nav-toggle", id: "toggle-sidebar", "aria-controls": "nav-main", "aria-expanded": "false", "ks-component": "base.nav-toggle", children: [jsx("span", { className: "nav-toggle__label", children: "toggle navigation" }), jsx("span", { className: "nav-toggle__icon", children: jsx("span", { className: "nav-toggle__icon__middle" }) })] }));
15
- const NavMainItem = ({ label, href, active }) => (jsx("li", { className: classnames("nav-main__item", active === true ? "nav-main__item--active" : ""), children: jsx(Link, { className: "nav-main__link", href: href, children: label }) }));
16
- const NavMain = ({ logo, logoHref = "/", items }) => items && items.length > 0 ? (jsxs("div", { className: "nav-main__wrap", children: [jsx(NavToggleComponent, {}), jsxs("nav", { className: classnames("nav-main", items.some((item) => item.active) ? "nav-main--active" : ""), id: "nav-main", "aria-label": "Hauptnavigation", children: [jsx(Link, { className: "nav-main__logo", href: logoHref, children: jsx(Picture, { ...logo }) }), jsx("ul", { className: "nav-main__list", children: items.map((item) => (createElement(NavMainItem, { ...item, active: item.active ?? false, key: item.href + item.label }))) })] })] })) : null;
14
+ const NavToggleComponent = () => (jsxs("button", { type: "button", className: "dsa-nav-toggle", id: "toggle-sidebar", "aria-controls": "nav-main", "aria-expanded": "false", "ks-component": "base.nav-toggle", children: [jsx("span", { className: "dsa-nav-toggle__label", children: "toggle navigation" }), jsx("span", { className: "dsa-nav-toggle__icon", children: jsx("span", { className: "dsa-nav-toggle__icon__middle" }) })] }));
15
+ const NavMainItem = ({ label, href, active }) => (jsx("li", { className: classnames("dsa-nav-main__item", active === true ? "dsa-nav-main__item--active" : ""), children: jsx(Link, { className: "dsa-nav-main__link", href: href, children: label }) }));
16
+ const NavMain = ({ logo, items, flyoutLogoInverted, }) => items && items.length > 0 ? (jsxs("div", { className: "dsa-nav-main__wrap", children: [jsx(NavToggleComponent, {}), jsxs("nav", { className: classnames("dsa-nav-main", items.some((item) => item.active) ? "dsa-nav-main--active" : ""), id: "dsa-nav-main", "aria-label": "Hauptnavigation", children: [jsxs(Link, { className: "dsa-nav-main__logo", "ks-inverted": flyoutLogoInverted === true ? "true" : "false", href: logo?.href, children: [jsx(Picture, { className: "dsa-nav-main__logo__img", src: logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: flyoutLogoInverted }), jsx(Picture, { className: "dsa-nav-main__logo__img dsa-nav-main__logo__img--inverted", src: logo?.srcInverted || logo?.src, alt: logo?.alt, width: logo?.width, height: logo?.height, lazy: !flyoutLogoInverted })] }), jsx("ul", { className: "dsa-nav-main__list", children: items.map((item) => (createElement(NavMainItem, { ...item, active: item.active ?? false, key: item.href + item.label }))) })] })] })) : null;
17
17
 
18
18
  export { NavMain, NavMainItem, NavToggleComponent };
@@ -1,4 +1,4 @@
1
- .nav-main {
1
+ .dsa-nav-main {
2
2
  --dsa-nav-main--background: linear-gradient(
3
3
  125deg,
4
4
  var(--ks-background-color-default),
@@ -17,35 +17,35 @@
17
17
  --dsa-nav-main--shadow: 50px 0px 50px 50px rgba(0, 0, 0, 0.539);
18
18
  }
19
19
  @media (min-width: 62rem) {
20
- .nav-main {
20
+ .dsa-nav-main {
21
21
  --dsa-nav-main__link--padding: 0 0.75em;
22
22
  --dsa-nav-main__link--font: var(--ks-font-interface-m);
23
23
  }
24
24
  }
25
25
 
26
- .nav-main {
26
+ .dsa-nav-main {
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  justify-content: flex-start;
30
30
  }
31
- .nav-main--active .nav-main__item .nav-main__link {
31
+ .dsa-nav-main--active .dsa-nav-main__item .dsa-nav-main__link {
32
32
  color: var(--dsa-nav-main__link--color);
33
33
  }
34
34
  @media (min-width: 62rem) {
35
- .dsa-header--floating .nav-main--active .nav-main__item .nav-main__link {
35
+ .dsa-header--floating .dsa-nav-main--active .dsa-nav-main__item .dsa-nav-main__link {
36
36
  color: var(--dsa-nav-main_floating__link--color);
37
37
  }
38
38
  }
39
- .nav-main--active .nav-main__item--active .nav-main__link {
39
+ .dsa-nav-main--active .dsa-nav-main__item--active .dsa-nav-main__link {
40
40
  color: var(--dsa-nav-main__link--color_active);
41
41
  font-weight: var(--dsa-nav-main__link--font-weight_active);
42
42
  }
43
43
  @media (min-width: 62rem) {
44
- .dsa-header--floating .nav-main--active .nav-main__item--active .nav-main__link {
44
+ .dsa-header--floating .dsa-nav-main--active .dsa-nav-main__item--active .dsa-nav-main__link {
45
45
  color: var(--dsa-nav-main_floating__link--color_active);
46
46
  }
47
47
  }
48
- .nav-main ul {
48
+ .dsa-nav-main ul {
49
49
  /* critical:start */
50
50
  box-sizing: border-box;
51
51
  margin: 0;
@@ -53,22 +53,22 @@
53
53
  list-style: none;
54
54
  /* critical:end */
55
55
  }
56
- .nav-main ul li {
56
+ .dsa-nav-main ul li {
57
57
  display: block;
58
58
  margin: 0;
59
59
  }
60
- .nav-main__item {
60
+ .dsa-nav-main__item {
61
61
  position: relative;
62
62
  }
63
- .nav-main__list:hover .nav-main__link {
63
+ .dsa-nav-main__list:hover .dsa-nav-main__link {
64
64
  opacity: var(--dsa-nav-main__link--opacity_hover);
65
65
  }
66
66
  @media (min-width: 62rem) {
67
- .dsa-header--floating .nav-main__list:hover .nav-main__link {
67
+ .dsa-header--floating .dsa-nav-main__list:hover .dsa-nav-main__link {
68
68
  opacity: var(--dsa-nav-main_floating__link--opacity_hover);
69
69
  }
70
70
  }
71
- .nav-main .nav-main__item a.nav-main__link {
71
+ .dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link {
72
72
  /* critical:start */
73
73
  font: var(--dsa-nav-main__link--font);
74
74
  font-weight: var(--dsa-nav-main__link--font-weight);
@@ -78,26 +78,36 @@
78
78
  padding: var(--dsa-nav-main__link--padding);
79
79
  /* critical:end */
80
80
  }
81
- .nav-main .nav-main__item a.nav-main__link:hover {
81
+ .dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link:hover {
82
82
  opacity: 1;
83
83
  color: var(--dsa-nav-main__link--color_active);
84
84
  }
85
- .nav-main .nav-main__item a.nav-main__link:active {
85
+ .dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link:active {
86
86
  color: var(--dsa-nav-main__link--color_active);
87
87
  }
88
- .nav-main__logo {
88
+ .dsa-nav-main__logo {
89
+ display: block;
89
90
  padding: var(--dsa-header--spacing-v) 0;
90
91
  }
91
- .nav-main__logo img {
92
- height: var(--dsa-logo--height);
92
+ .dsa-nav-main__logo__img {
93
+ height: var(--dsa-header__logo--height);
93
94
  width: auto;
94
95
  }
95
- .nav-main__wrap {
96
+ [ks-inverted=true] .dsa-nav-main__logo__img {
97
+ display: none;
98
+ }
99
+ .dsa-nav-main__logo__img--inverted {
100
+ display: none;
101
+ }
102
+ [ks-inverted=true] .dsa-nav-main__logo__img--inverted {
103
+ display: block !important;
104
+ }
105
+ .dsa-nav-main__wrap {
96
106
  flex-grow: 0;
97
107
  flex-shrink: 1;
98
108
  }
99
109
  @media (max-width: 62rem) {
100
- .nav-main {
110
+ .dsa-nav-main {
101
111
  /* critical:start */
102
112
  left: -100%;
103
113
  /* critical:end */
@@ -117,7 +127,7 @@
117
127
  -webkit-overflow-scrolling: touch;
118
128
  box-shadow: 20px 0px 30px rgba(0, 0, 0, 0);
119
129
  }
120
- .nav-main__item--icon {
130
+ .dsa-nav-main__item--icon {
121
131
  border: 0;
122
132
  clip: rect(1px, 1px, 1px, 1px);
123
133
  clip-path: inset(100%);
@@ -128,57 +138,57 @@
128
138
  white-space: nowrap;
129
139
  width: 1px;
130
140
  }
131
- .overlay-open .nav-main {
141
+ .overlay-open .dsa-nav-main {
132
142
  left: 0;
133
143
  box-shadow: var(--dsa-nav-main--shadow);
134
144
  }
135
- .nav-main > .nav-main__logo {
145
+ .dsa-nav-main > .dsa-nav-main__logo {
136
146
  margin-top: var(--dsa-header--spacing-vertical);
137
147
  margin-bottom: var(--dsa-header--spacing-vertical);
138
148
  }
139
- .nav-main ul.nav-main__list {
149
+ .dsa-nav-main ul.dsa-nav-main__list {
140
150
  padding-top: calc(var(--dsa-header--spacing-vertical) - var(--ks-spacing-s));
141
151
  }
142
- .nav-main ul.nav-main__list .nav-main--button {
152
+ .dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button {
143
153
  margin-left: var(--dsa-header--spacing-horizontal);
144
154
  margin-top: var(--dsa-header--spacing-vertical);
145
155
  }
146
- .nav-main ul.nav-main__list .nav-main--button .button {
156
+ .dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button .button {
147
157
  --button--font: var(--ks-font-interface-s);
148
158
  }
149
- .nav-main ul.nav-main__list .nav-main--button .button .button__content {
159
+ .dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button .button .button__content {
150
160
  --button--padding: 0.4rem 1rem;
151
161
  }
152
162
  }
153
163
  @media (min-width: 62rem) {
154
- .nav-main {
164
+ .dsa-nav-main {
155
165
  /* critical:start */
156
166
  /* critical:end */
157
167
  }
158
- .nav-main > .nav-main__logo {
168
+ .dsa-nav-main > .dsa-nav-main__logo {
159
169
  display: none;
160
170
  }
161
- .nav-main .button--wrapper {
171
+ .dsa-nav-main .button--wrapper {
162
172
  margin-left: var(--ks-spacing-inline-xs);
163
173
  }
164
- .nav-main__wrap {
174
+ .dsa-nav-main__wrap {
165
175
  display: flex;
166
176
  align-items: center;
167
177
  }
168
- .nav-main__list {
178
+ .dsa-nav-main__list {
169
179
  /* critical:start */
170
180
  display: flex;
171
181
  flex-wrap: nowrap;
172
182
  align-items: center;
173
183
  /* critical:end */
174
184
  }
175
- .nav-main__list .nav-main--button .button {
185
+ .dsa-nav-main__list .dsa-nav-main--button .button {
176
186
  --button--font: var(--ks-font-interface-s);
177
187
  }
178
- .nav-main__list .nav-main--button .button span {
188
+ .dsa-nav-main__list .dsa-nav-main--button .button span {
179
189
  font-size: 98%;
180
190
  }
181
- .nav-main__item {
191
+ .dsa-nav-main__item {
182
192
  /* critical:start */
183
193
  flex-shrink: 0;
184
194
  /* critical:end */
@@ -186,6 +196,6 @@
186
196
  }
187
197
  }
188
198
 
189
- .nav-main-toggle[aria-expanded=true] + .nav-main {
199
+ .dsa-nav-main-toggle[aria-expanded=true] + .dsa-nav-main {
190
200
  display: block;
191
201
  }
@@ -5,26 +5,33 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "logo": {
8
- "$schema": "http://json-schema.org/draft-07/schema#",
9
- "$id": "http://schema.kickstartds.com/base/picture.schema.json",
10
- "title": "Picture",
11
- "description": "Base component to display a picture",
8
+ "title": "Logo",
12
9
  "type": "object",
13
10
  "properties": {
11
+ "href": {
12
+ "title": "Link",
13
+ "description": "Add a link to the logo",
14
+ "type": "string",
15
+ "format": "uri",
16
+ "default": "/"
17
+ },
14
18
  "src": {
15
19
  "title": "Source",
16
- "description": "Picture source",
20
+ "description": "Logo file source",
17
21
  "type": "string",
18
22
  "format": "image",
19
23
  "examples": [
20
- "https://picsum.photos/seed/kdspicture/300/300"
24
+ "logo.svg"
21
25
  ]
22
26
  },
23
- "srcSet": {
24
- "title": "Picture sourceset",
25
- "description": "Use a srcSet to display picture",
27
+ "srcInverted": {
28
+ "title": "Source Inverted",
29
+ "description": "Logo inverted file source",
26
30
  "type": "string",
27
- "format": "image"
31
+ "format": "image",
32
+ "examples": [
33
+ "logo-inverted.svg"
34
+ ]
28
35
  },
29
36
  "alt": {
30
37
  "title": "Alt text",
@@ -48,78 +55,6 @@
48
55
  "examples": [
49
56
  300
50
57
  ]
51
- },
52
- "className": {
53
- "title": "Additional Classes",
54
- "description": "Add additional css classes that should be applied to the button",
55
- "type": "string"
56
- },
57
- "component": {
58
- "title": "`ks-component` attribute",
59
- "description": "Optional custom component identifier",
60
- "type": "string"
61
- },
62
- "id": {
63
- "title": "Id",
64
- "description": "Add id attribute to the image",
65
- "type": "string"
66
- },
67
- "itemProp": {
68
- "title": "`itemprop` attribute",
69
- "description": "Define an itemprop attribute for the picture",
70
- "type": "string"
71
- },
72
- "style": {
73
- "title": "`style` attribute",
74
- "description": "Define a style attribute for the picture",
75
- "type": "string"
76
- },
77
- "noscript": {
78
- "title": "Noscript",
79
- "description": "Render noscript fallback",
80
- "type": "boolean",
81
- "default": true
82
- },
83
- "lazy": {
84
- "title": "Lazy",
85
- "description": "Load the picture lazily",
86
- "type": "boolean",
87
- "default": true
88
- },
89
- "sources": {
90
- "title": "Sources",
91
- "description": "Additional sources. This will result in a `picture`-Element",
92
- "type": "array",
93
- "items": {
94
- "type": "object",
95
- "properties": {
96
- "srcSet": {
97
- "title": "Picture sourceset",
98
- "description": "Use a srcSet to display picture",
99
- "type": "string",
100
- "format": "image"
101
- },
102
- "media": {
103
- "title": "TODO MEDIA TITLE",
104
- "description": "TODO MEDIA DESCRIPTION",
105
- "type": "string"
106
- },
107
- "type": {
108
- "title": "TODO TYPE TITLE",
109
- "description": "TODO TYPE DESCRIPTION",
110
- "type": "string"
111
- }
112
- },
113
- "additionalProperties": false
114
- }
115
- },
116
- "pictureClassName": {
117
- "title": "`class` attribute",
118
- "description": "Set additional class(es) to the picture",
119
- "type": "string"
120
- },
121
- "type": {
122
- "const": "picture"
123
58
  }
124
59
  },
125
60
  "additionalProperties": false
@@ -129,6 +64,12 @@
129
64
  "format": "uri",
130
65
  "default": "/"
131
66
  },
67
+ "flyoutLogoInverted": {
68
+ "type": "boolean",
69
+ "title": "Flyout Logo Inverted",
70
+ "description": "Toggle the inversion of the logo inside the mobile navigation",
71
+ "default": false
72
+ },
132
73
  "items": {
133
74
  "type": "array",
134
75
  "items": {
@@ -5,13 +5,63 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "logo": {
8
- "$ref": "http://schema.kickstartds.com/base/picture.schema.json"
8
+ "title": "Logo",
9
+ "type": "object",
10
+ "properties": {
11
+ "href": {
12
+ "title": "Link",
13
+ "description": "Add a link to the logo",
14
+ "type": "string",
15
+ "format": "uri",
16
+ "default": "/"
17
+ },
18
+ "src": {
19
+ "title": "Source",
20
+ "description": "Logo file source",
21
+ "type": "string",
22
+ "format": "image",
23
+ "examples": ["logo.svg"]
24
+ },
25
+ "srcInverted": {
26
+ "title": "Source Inverted",
27
+ "description": "Logo inverted file source",
28
+ "type": "string",
29
+ "format": "image",
30
+ "examples": ["logo-inverted.svg"]
31
+ },
32
+ "alt": {
33
+ "title": "Alt text",
34
+ "description": "Alt text to display for picture",
35
+ "type": "string"
36
+ },
37
+ "width": {
38
+ "title": "Width",
39
+ "description": "Width of the picture",
40
+ "type": "integer",
41
+ "minimum": 0,
42
+ "examples": [300]
43
+ },
44
+ "height": {
45
+ "title": "Height",
46
+ "description": "Height of the picture",
47
+ "type": "integer",
48
+ "minimum": 0,
49
+ "examples": [300]
50
+ }
51
+ },
52
+ "additionalProperties": false
9
53
  },
10
54
  "logoHref": {
11
55
  "type": "string",
12
56
  "format": "uri",
13
57
  "default": "/"
14
58
  },
59
+ "flyoutLogoInverted": {
60
+ "type": "boolean",
61
+ "title": "Flyout Logo Inverted",
62
+ "description": "Toggle the inversion of the logo inside the mobile navigation",
63
+ "default": false
64
+ },
15
65
  "items": {
16
66
  "type": "array",
17
67
  "items": {
@@ -1,4 +1,4 @@
1
- .nav-toggle {
1
+ .dsa-nav-toggle {
2
2
  --nav-toggle--color: var(--ks-text-color-default);
3
3
  --nav-toggle--color_open: var(--ks-text-color-default);
4
4
  --nav-toggle_floating--color: var(--ks-text-color-interface-interactive);
@@ -9,7 +9,7 @@ html.overlay-open {
9
9
  overflow: hidden;
10
10
  }
11
11
 
12
- button.nav-toggle {
12
+ button.dsa-nav-toggle {
13
13
  display: block;
14
14
  position: relative;
15
15
  right: 0;
@@ -21,16 +21,16 @@ button.nav-toggle {
21
21
  --nav-toggle__icon-bar--offset: 14px;
22
22
  }
23
23
  @media (min-width: 42em) {
24
- button.nav-toggle {
24
+ button.dsa-nav-toggle {
25
25
  --nav-toggle__icon-bar--offset: 18px;
26
26
  }
27
27
  }
28
28
  @media (min-width: 62em) {
29
- button.nav-toggle {
29
+ button.dsa-nav-toggle {
30
30
  display: none;
31
31
  }
32
32
  }
33
- button.nav-toggle .nav-toggle__label {
33
+ button.dsa-nav-toggle .dsa-nav-toggle__label {
34
34
  border: 0;
35
35
  clip: rect(1px, 1px, 1px, 1px);
36
36
  clip-path: inset(100%);
@@ -41,7 +41,7 @@ button.nav-toggle .nav-toggle__label {
41
41
  white-space: nowrap;
42
42
  width: 1px;
43
43
  }
44
- button.nav-toggle .nav-toggle__icon {
44
+ button.dsa-nav-toggle .dsa-nav-toggle__icon {
45
45
  position: relative;
46
46
  display: block;
47
47
  cursor: pointer;
@@ -51,53 +51,53 @@ button.nav-toggle .nav-toggle__icon {
51
51
  transition: inherit;
52
52
  color: var(--nav-toggle--color);
53
53
  }
54
- .dsa-header--floating button.nav-toggle .nav-toggle__icon {
54
+ .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon {
55
55
  color: var(--nav-toggle_floating--color);
56
56
  }
57
57
  @media (min-width: 40rem) {
58
- button.nav-toggle .nav-toggle__icon {
58
+ button.dsa-nav-toggle .dsa-nav-toggle__icon {
59
59
  transform: scale(0.8) translate(2.5%, 2.5%);
60
60
  }
61
61
  }
62
- .overlay-open button.nav-toggle .nav-toggle__icon, .overlay-open .header-is-scrolling button.nav-toggle .nav-toggle__icon {
62
+ .overlay-open button.dsa-nav-toggle .dsa-nav-toggle__icon, .overlay-open .header-is-scrolling button.dsa-nav-toggle .dsa-nav-toggle__icon {
63
63
  color: var(--nav-toggle--color_open);
64
64
  }
65
- .overlay-open .dsa-header--floating button.nav-toggle .nav-toggle__icon, .overlay-open .header-is-scrolling .dsa-header--floating button.nav-toggle .nav-toggle__icon {
65
+ .overlay-open .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon, .overlay-open .header-is-scrolling .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon {
66
66
  color: var(--nav-toggle_floating--color_open);
67
67
  }
68
- .header-is-scrolling-up button.nav-toggle .nav-toggle__icon {
68
+ .header-is-scrolling-up button.dsa-nav-toggle .dsa-nav-toggle__icon {
69
69
  color: var(--nav-toggle--color_open);
70
70
  }
71
- button.nav-toggle .nav-toggle__icon::before, button.nav-toggle .nav-toggle__icon::after {
71
+ button.dsa-nav-toggle .dsa-nav-toggle__icon::before, button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
72
72
  content: "";
73
73
  }
74
- button.nav-toggle .nav-toggle__icon .nav-toggle__icon__middle, button.nav-toggle .nav-toggle__icon::before, button.nav-toggle .nav-toggle__icon::after {
74
+ button.dsa-nav-toggle .dsa-nav-toggle__icon .dsa-nav-toggle__icon__middle, button.dsa-nav-toggle .dsa-nav-toggle__icon::before, button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
75
75
  position: absolute;
76
76
  width: 100%;
77
77
  height: 3px;
78
78
  background-color: currentColor;
79
79
  }
80
- button.nav-toggle .nav-toggle__icon .nav-toggle__icon__middle {
80
+ button.dsa-nav-toggle .dsa-nav-toggle__icon .dsa-nav-toggle__icon__middle {
81
81
  top: 50%;
82
82
  margin-top: -1.5px;
83
83
  }
84
- button.nav-toggle .nav-toggle__icon::before {
84
+ button.dsa-nav-toggle .dsa-nav-toggle__icon::before {
85
85
  top: 2px;
86
86
  transition: top 150ms ease 150ms, transform ease 150ms;
87
87
  }
88
- button.nav-toggle .nav-toggle__icon::after {
88
+ button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
89
89
  bottom: 2px;
90
90
  transition: bottom 150ms ease 150ms, transform ease 150ms;
91
91
  }
92
- button.nav-toggle[aria-expanded=true] .nav-toggle__icon__middle {
92
+ button.dsa-nav-toggle[aria-expanded=true] .dsa-nav-toggle__icon__middle {
93
93
  display: none;
94
94
  }
95
- button.nav-toggle[aria-expanded=true] .nav-toggle__icon::before {
95
+ button.dsa-nav-toggle[aria-expanded=true] .dsa-nav-toggle__icon::before {
96
96
  top: var(--nav-toggle__icon-bar--offset);
97
97
  transition: top ease 150ms, transform 150ms ease 150ms;
98
98
  transform: rotate(-45deg);
99
99
  }
100
- button.nav-toggle[aria-expanded=true] .nav-toggle__icon::after {
100
+ button.dsa-nav-toggle[aria-expanded=true] .dsa-nav-toggle__icon::after {
101
101
  bottom: var(--nav-toggle__icon-bar--offset);
102
102
  transition: bottom ease 150ms, transform 150ms ease 150ms;
103
103
  transform: rotate(45deg);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 30 Jul 2024 07:54:39 GMT
3
+ * Generated on Tue, 30 Jul 2024 08:06:46 GMT
4
4
  */
5
5
  :root, [ks-theme] {
6
6
  --ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
@@ -1380,6 +1380,7 @@
1380
1380
  "lazy": false
1381
1381
  },
1382
1382
  "logoHref": "/",
1383
+ "flyoutLogoInverted": false,
1383
1384
  "floating": false,
1384
1385
  "inverted": false,
1385
1386
  "navItems": [
@@ -20,6 +20,13 @@
20
20
  "title": "Logo",
21
21
  "type": "object",
22
22
  "properties": {
23
+ "href": {
24
+ "title": "Link",
25
+ "description": "Add a link to the logo",
26
+ "type": "string",
27
+ "format": "uri",
28
+ "default": "/"
29
+ },
23
30
  "src": {
24
31
  "title": "Source",
25
32
  "description": "Logo file source",
@@ -69,6 +76,12 @@
69
76
  "format": "uri",
70
77
  "default": "/"
71
78
  },
79
+ "flyoutLogoInverted": {
80
+ "type": "boolean",
81
+ "title": "Flyout Logo Inverted",
82
+ "description": "Toggle the inversion of the logo inside the mobile navigation",
83
+ "default": false
84
+ },
72
85
  "floating": {
73
86
  "type": "boolean",
74
87
  "title": "Floating",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 30 Jul 2024 07:54:42 GMT
3
+ * Generated on Tue, 30 Jul 2024 08:06:49 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, 30 Jul 2024 07:54:46 GMT
2730
+ * Generated on Tue, 30 Jul 2024 08:06:53 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, 30 Jul 2024 07:54:44 GMT
5461
+ * Generated on Tue, 30 Jul 2024 08:06:51 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, 30 Jul 2024 07:54:48 GMT
8462
+ * Generated on Tue, 30 Jul 2024 08:06:55 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, 30 Jul 2024 07:54:39 GMT
3
+ * Generated on Tue, 30 Jul 2024 08:06:46 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, 30 Jul 2024 07:54:40 GMT
3
+ * Generated on Tue, 30 Jul 2024 08:06:47 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.3.23",
3
+ "version": "1.3.24",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/kickstartDS/ds-agency-premium#readme",
6
6
  "bugs": {