@kickstartds/ds-agency-premium 1.3.24 → 1.3.25--canary.523.91aa920.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 (30) hide show
  1. package/dist/{HeaderProps-c41aeb76.d.ts → HeaderProps-7a7ece57.d.ts} +1 -11
  2. package/dist/{SectionProps-93230a76.d.ts → SectionProps-83d399b4.d.ts} +1 -1
  3. package/dist/components/blog-overview/index.d.ts +1 -1
  4. package/dist/components/blog-post/index.d.ts +1 -1
  5. package/dist/components/button/button.css +4 -1
  6. package/dist/components/header/header.schema.dereffed.json +0 -13
  7. package/dist/components/header/header.schema.json +38 -4
  8. package/dist/components/header/index.d.ts +1 -1
  9. package/dist/components/header/index.js +1 -1
  10. package/dist/components/image-story/index.d.ts +1 -1
  11. package/dist/components/index/index.d.ts +4 -4
  12. package/dist/components/nav-main/index.d.ts +5 -38
  13. package/dist/components/nav-main/index.js +3 -3
  14. package/dist/components/nav-main/nav-main.css +36 -46
  15. package/dist/components/nav-main/nav-main.schema.dereffed.json +82 -23
  16. package/dist/components/nav-main/nav-main.schema.json +1 -51
  17. package/dist/components/nav-main/nav-toggle.css +19 -19
  18. package/dist/components/page-wrapper/tokens.css +1 -1
  19. package/dist/components/presets.json +0 -1
  20. package/dist/components/section/index.d.ts +3 -5
  21. package/dist/components/section/index.js +6 -11
  22. package/dist/components/settings/settings.schema.dereffed.json +0 -13
  23. package/dist/global.css +991 -0
  24. package/dist/tokens/themes.css +4 -4
  25. package/dist/tokens/tokens.css +1 -1
  26. package/dist/tokens/tokens.js +1 -1
  27. package/package.json +1 -1
  28. /package/dist/{BlogOverviewProps-f385fc47.d.ts → BlogOverviewProps-93230a76.d.ts} +0 -0
  29. /package/dist/{BlogPostProps-e1cbd5d3.d.ts → BlogPostProps-93230a76.d.ts} +0 -0
  30. /package/dist/{ImageStoryProps-24e0335c.d.ts → ImageStoryProps-03ff6d21.d.ts} +0 -0
@@ -3,10 +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
- * Add a link to the logo
8
- */
9
- type Link = string;
10
6
  /**
11
7
  * Logo file source
12
8
  */
@@ -27,10 +23,6 @@ type Width = number;
27
23
  * Height of the picture
28
24
  */
29
25
  type Height = number;
30
- /**
31
- * Toggle the inversion of the logo inside the mobile navigation
32
- */
33
- type FlyoutLogoInverted = boolean;
34
26
  /**
35
27
  * Make the header float over the first Section
36
28
  */
@@ -42,7 +34,6 @@ type Inverted = boolean;
42
34
  interface HeaderProps {
43
35
  logo: Logo;
44
36
  logoHref?: string;
45
- flyoutLogoInverted?: FlyoutLogoInverted;
46
37
  floating?: Floating;
47
38
  inverted?: Inverted;
48
39
  navItems?: {
@@ -52,11 +43,10 @@ interface HeaderProps {
52
43
  }[];
53
44
  }
54
45
  interface Logo {
55
- href?: Link;
56
46
  src?: Source;
57
47
  srcInverted?: SourceInverted;
58
48
  alt?: AltText;
59
49
  width?: Width;
60
50
  height?: Height;
61
51
  }
62
- export { Link, Source, SourceInverted, AltText, Width, Height, FlyoutLogoInverted, Floating, Inverted, HeaderProps, Logo };
52
+ export { Source, SourceInverted, AltText, Width, Height, Floating, Inverted, HeaderProps, Logo };
@@ -8,7 +8,7 @@ import { FaqProps } from "./FaqProps-ad618cd5.js";
8
8
  import { FeaturesProps } from "./FeaturesProps-b05859d6.js";
9
9
  import { GalleryProps } from "./GalleryProps-76e7de44.js";
10
10
  import { HeroProps } from "./HeroProps-cf82a16d.js";
11
- import { ImageStoryProps } from "./ImageStoryProps-24e0335c.js";
11
+ import { ImageStoryProps } from "./ImageStoryProps-03ff6d21.js";
12
12
  import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
13
13
  import { LogosProps } from "./LogosProps-58c84ccc.js";
14
14
  import { MosaicProps } from "./MosaicProps-d52c7151.js";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BlogOverviewProps } from "../../BlogOverviewProps-f385fc47.js";
2
+ import { BlogOverviewProps } from "../../BlogOverviewProps-93230a76.js";
3
3
  declare const BlogOverview: {
4
4
  ({ latest, more }: BlogOverviewProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BlogPostProps } from "../../BlogPostProps-e1cbd5d3.js";
2
+ import { BlogPostProps } from "../../BlogPostProps-93230a76.js";
3
3
  declare const BlogPost: {
4
4
  ({ head, content, aside, cta }: BlogPostProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
@@ -36,6 +36,9 @@
36
36
  text-transform: var(--dsa-button--text-transform);
37
37
  transition-property: box-shadow, transform, background-color, color, border;
38
38
  }
39
+ .dsa-button.c-button .icon {
40
+ margin-left: var(--ks-spacing-xxs);
41
+ }
39
42
  .dsa-button.c-button.c-button--solid {
40
43
  --c-button--color: var(--dsa-button_primary--color, var(--dsa-text-color-on-primary));
41
44
  --c-button--color-hover: var(--dsa-button_primary--color_hover, var(--dsa-text-color-on-primary));
@@ -84,7 +87,7 @@
84
87
  );
85
88
  --c-button--background-color-selected: var(
86
89
  --dsa-button_secondary--background-color_selected,
87
- var(--ks-background-color-clear-interactive-selected)
90
+ var(--ks-background-color-clear-interactive-selected) ;
88
91
  );
89
92
  }
90
93
  .dsa-button.c-button.c-button--outline {
@@ -8,13 +8,6 @@
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
- },
18
11
  "src": {
19
12
  "title": "Source",
20
13
  "description": "Logo file source",
@@ -64,12 +57,6 @@
64
57
  "format": "uri",
65
58
  "default": "/"
66
59
  },
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
- },
73
60
  "floating": {
74
61
  "type": "boolean",
75
62
  "title": "Floating",
@@ -5,14 +5,48 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "logo": {
8
- "$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/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
9
46
  },
10
47
  "logoHref": {
11
48
  "$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/logoHref"
12
49
  },
13
- "flyoutLogoInverted": {
14
- "$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/flyoutLogoInverted"
15
- },
16
50
  "floating": {
17
51
  "type": "boolean",
18
52
  "title": "Floating",
@@ -1,4 +1,4 @@
1
1
  import { FC } from "react";
2
- import { HeaderProps } from "../../HeaderProps-c41aeb76.js";
2
+ import { HeaderProps } from "../../HeaderProps-7a7ece57.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, 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 })] }) }) }));
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 })] }) }) }));
15
15
  Header.displayName = "Header";
16
16
 
17
17
  export { Header };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { HTMLAttributes } from "react";
3
- import { ImageStoryProps } from "../../ImageStoryProps-24e0335c.js";
3
+ import { ImageStoryProps } from "../../ImageStoryProps-03ff6d21.js";
4
4
  declare const ImageStoryContextDefault: import("react").ForwardRefExoticComponent<ImageStoryProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
5
  declare const ImageStoryContext: import("react").Context<import("react").ForwardRefExoticComponent<ImageStoryProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
6
6
  declare const ImageStory: import("react").ForwardRefExoticComponent<ImageStoryProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -4,7 +4,7 @@
4
4
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
- import { SectionProps } from "../../SectionProps-93230a76.js";
7
+ import { SectionProps } from "../../SectionProps-83d399b4.js";
8
8
  import { SeoProps } from "../../SeoProps-f2d6dcaa.js";
9
9
  /* eslint-disable */
10
10
  /**
@@ -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-c41aeb76.js";
15
+ import { HeaderProps } from "../../HeaderProps-7a7ece57.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-e1cbd5d3.js";
76
- export * from "../../BlogOverviewProps-f385fc47.js";
75
+ export * from "../../BlogPostProps-93230a76.js";
76
+ export * from "../../BlogOverviewProps-93230a76.js";
77
77
  export { Sections, ToggleFloating, ToggleInverted, ToggleInverted1, PageProps, Header, Footer, SettingsProps };
@@ -5,52 +5,19 @@ 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
- /**
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;
8
+ import { PictureProps } from "@kickstartds/base/lib/picture/typing";
36
9
  interface NavMainProps {
37
- logo: Logo;
10
+ /**
11
+ * Referenced component PictureProps
12
+ */
13
+ logo: PictureProps;
38
14
  logoHref?: string;
39
- flyoutLogoInverted?: FlyoutLogoInverted;
40
15
  items?: {
41
16
  href: string;
42
17
  label: string;
43
18
  active?: boolean;
44
19
  }[];
45
20
  }
46
- interface Logo {
47
- href?: Link;
48
- src?: Source;
49
- srcInverted?: SourceInverted;
50
- alt?: AltText;
51
- width?: Width;
52
- height?: Height;
53
- }
54
21
  declare const NavToggleComponent: FC;
55
22
  declare const NavMainItem: FC<{
56
23
  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: "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;
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;
17
17
 
18
18
  export { NavMain, NavMainItem, NavToggleComponent };
@@ -1,4 +1,4 @@
1
- .dsa-nav-main {
1
+ .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
- .dsa-nav-main {
20
+ .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
- .dsa-nav-main {
26
+ .nav-main {
27
27
  display: flex;
28
28
  flex-direction: column;
29
29
  justify-content: flex-start;
30
30
  }
31
- .dsa-nav-main--active .dsa-nav-main__item .dsa-nav-main__link {
31
+ .nav-main--active .nav-main__item .nav-main__link {
32
32
  color: var(--dsa-nav-main__link--color);
33
33
  }
34
34
  @media (min-width: 62rem) {
35
- .dsa-header--floating .dsa-nav-main--active .dsa-nav-main__item .dsa-nav-main__link {
35
+ .dsa-header--floating .nav-main--active .nav-main__item .nav-main__link {
36
36
  color: var(--dsa-nav-main_floating__link--color);
37
37
  }
38
38
  }
39
- .dsa-nav-main--active .dsa-nav-main__item--active .dsa-nav-main__link {
39
+ .nav-main--active .nav-main__item--active .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 .dsa-nav-main--active .dsa-nav-main__item--active .dsa-nav-main__link {
44
+ .dsa-header--floating .nav-main--active .nav-main__item--active .nav-main__link {
45
45
  color: var(--dsa-nav-main_floating__link--color_active);
46
46
  }
47
47
  }
48
- .dsa-nav-main ul {
48
+ .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
- .dsa-nav-main ul li {
56
+ .nav-main ul li {
57
57
  display: block;
58
58
  margin: 0;
59
59
  }
60
- .dsa-nav-main__item {
60
+ .nav-main__item {
61
61
  position: relative;
62
62
  }
63
- .dsa-nav-main__list:hover .dsa-nav-main__link {
63
+ .nav-main__list:hover .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 .dsa-nav-main__list:hover .dsa-nav-main__link {
67
+ .dsa-header--floating .nav-main__list:hover .nav-main__link {
68
68
  opacity: var(--dsa-nav-main_floating__link--opacity_hover);
69
69
  }
70
70
  }
71
- .dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link {
71
+ .nav-main .nav-main__item a.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,36 +78,26 @@
78
78
  padding: var(--dsa-nav-main__link--padding);
79
79
  /* critical:end */
80
80
  }
81
- .dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link:hover {
81
+ .nav-main .nav-main__item a.nav-main__link:hover {
82
82
  opacity: 1;
83
83
  color: var(--dsa-nav-main__link--color_active);
84
84
  }
85
- .dsa-nav-main .dsa-nav-main__item a.dsa-nav-main__link:active {
85
+ .nav-main .nav-main__item a.nav-main__link:active {
86
86
  color: var(--dsa-nav-main__link--color_active);
87
87
  }
88
- .dsa-nav-main__logo {
89
- display: block;
88
+ .nav-main__logo {
90
89
  padding: var(--dsa-header--spacing-v) 0;
91
90
  }
92
- .dsa-nav-main__logo__img {
93
- height: var(--dsa-header__logo--height);
91
+ .nav-main__logo img {
92
+ height: var(--dsa-logo--height);
94
93
  width: auto;
95
94
  }
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 {
95
+ .nav-main__wrap {
106
96
  flex-grow: 0;
107
97
  flex-shrink: 1;
108
98
  }
109
99
  @media (max-width: 62rem) {
110
- .dsa-nav-main {
100
+ .nav-main {
111
101
  /* critical:start */
112
102
  left: -100%;
113
103
  /* critical:end */
@@ -127,7 +117,7 @@
127
117
  -webkit-overflow-scrolling: touch;
128
118
  box-shadow: 20px 0px 30px rgba(0, 0, 0, 0);
129
119
  }
130
- .dsa-nav-main__item--icon {
120
+ .nav-main__item--icon {
131
121
  border: 0;
132
122
  clip: rect(1px, 1px, 1px, 1px);
133
123
  clip-path: inset(100%);
@@ -138,57 +128,57 @@
138
128
  white-space: nowrap;
139
129
  width: 1px;
140
130
  }
141
- .overlay-open .dsa-nav-main {
131
+ .overlay-open .nav-main {
142
132
  left: 0;
143
133
  box-shadow: var(--dsa-nav-main--shadow);
144
134
  }
145
- .dsa-nav-main > .dsa-nav-main__logo {
135
+ .nav-main > .nav-main__logo {
146
136
  margin-top: var(--dsa-header--spacing-vertical);
147
137
  margin-bottom: var(--dsa-header--spacing-vertical);
148
138
  }
149
- .dsa-nav-main ul.dsa-nav-main__list {
139
+ .nav-main ul.nav-main__list {
150
140
  padding-top: calc(var(--dsa-header--spacing-vertical) - var(--ks-spacing-s));
151
141
  }
152
- .dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button {
142
+ .nav-main ul.nav-main__list .nav-main--button {
153
143
  margin-left: var(--dsa-header--spacing-horizontal);
154
144
  margin-top: var(--dsa-header--spacing-vertical);
155
145
  }
156
- .dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button .button {
146
+ .nav-main ul.nav-main__list .nav-main--button .button {
157
147
  --button--font: var(--ks-font-interface-s);
158
148
  }
159
- .dsa-nav-main ul.dsa-nav-main__list .dsa-nav-main--button .button .button__content {
149
+ .nav-main ul.nav-main__list .nav-main--button .button .button__content {
160
150
  --button--padding: 0.4rem 1rem;
161
151
  }
162
152
  }
163
153
  @media (min-width: 62rem) {
164
- .dsa-nav-main {
154
+ .nav-main {
165
155
  /* critical:start */
166
156
  /* critical:end */
167
157
  }
168
- .dsa-nav-main > .dsa-nav-main__logo {
158
+ .nav-main > .nav-main__logo {
169
159
  display: none;
170
160
  }
171
- .dsa-nav-main .button--wrapper {
161
+ .nav-main .button--wrapper {
172
162
  margin-left: var(--ks-spacing-inline-xs);
173
163
  }
174
- .dsa-nav-main__wrap {
164
+ .nav-main__wrap {
175
165
  display: flex;
176
166
  align-items: center;
177
167
  }
178
- .dsa-nav-main__list {
168
+ .nav-main__list {
179
169
  /* critical:start */
180
170
  display: flex;
181
171
  flex-wrap: nowrap;
182
172
  align-items: center;
183
173
  /* critical:end */
184
174
  }
185
- .dsa-nav-main__list .dsa-nav-main--button .button {
175
+ .nav-main__list .nav-main--button .button {
186
176
  --button--font: var(--ks-font-interface-s);
187
177
  }
188
- .dsa-nav-main__list .dsa-nav-main--button .button span {
178
+ .nav-main__list .nav-main--button .button span {
189
179
  font-size: 98%;
190
180
  }
191
- .dsa-nav-main__item {
181
+ .nav-main__item {
192
182
  /* critical:start */
193
183
  flex-shrink: 0;
194
184
  /* critical:end */
@@ -196,6 +186,6 @@
196
186
  }
197
187
  }
198
188
 
199
- .dsa-nav-main-toggle[aria-expanded=true] + .dsa-nav-main {
189
+ .nav-main-toggle[aria-expanded=true] + .nav-main {
200
190
  display: block;
201
191
  }
@@ -5,33 +5,26 @@
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "logo": {
8
- "title": "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",
9
12
  "type": "object",
10
13
  "properties": {
11
- "href": {
12
- "title": "Link",
13
- "description": "Add a link to the logo",
14
- "type": "string",
15
- "format": "uri",
16
- "default": "/"
17
- },
18
14
  "src": {
19
15
  "title": "Source",
20
- "description": "Logo file source",
16
+ "description": "Picture source",
21
17
  "type": "string",
22
18
  "format": "image",
23
19
  "examples": [
24
- "logo.svg"
20
+ "https://picsum.photos/seed/kdspicture/300/300"
25
21
  ]
26
22
  },
27
- "srcInverted": {
28
- "title": "Source Inverted",
29
- "description": "Logo inverted file source",
23
+ "srcSet": {
24
+ "title": "Picture sourceset",
25
+ "description": "Use a srcSet to display picture",
30
26
  "type": "string",
31
- "format": "image",
32
- "examples": [
33
- "logo-inverted.svg"
34
- ]
27
+ "format": "image"
35
28
  },
36
29
  "alt": {
37
30
  "title": "Alt text",
@@ -55,6 +48,78 @@
55
48
  "examples": [
56
49
  300
57
50
  ]
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"
58
123
  }
59
124
  },
60
125
  "additionalProperties": false
@@ -64,12 +129,6 @@
64
129
  "format": "uri",
65
130
  "default": "/"
66
131
  },
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
- },
73
132
  "items": {
74
133
  "type": "array",
75
134
  "items": {