@kickstartds/ds-agency-premium 1.4.0--canary.12.465.0 → 1.4.0--canary.14.680.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.
- package/dist/BlogPostProps-e1cbd5d3.d.ts +8 -2
- package/dist/{FooterProps-9f94ed98.d.ts → FooterProps-2d0b03c2.d.ts} +14 -2
- package/dist/HeaderProps-c6c32ccf.d.ts +72 -0
- package/dist/{ImageStoryProps-24e0335c.d.ts → ImageStoryProps-e853e1e7.d.ts} +9 -4
- package/dist/{HeaderProps-34d278ee.d.ts → LogoProps-01796f0a.d.ts} +16 -19
- package/dist/LogosProps-f9474fe2.d.ts +97 -0
- package/dist/{SectionProps-93230a76.d.ts → SectionProps-83d399b4.d.ts} +2 -2
- package/dist/SliderProps-93230a76.d.ts +1 -1
- package/dist/components/blog-aside/index.js +2 -2
- package/dist/components/blog-head/index.js +2 -2
- package/dist/components/blog-overview/index.js +0 -1
- package/dist/components/blog-post/blog-post.schema.dereffed.json +3095 -1
- package/dist/components/blog-post/blog-post.schema.json +9 -1
- package/dist/components/blog-post/index.d.ts +2 -5
- package/dist/components/blog-post/index.js +1 -2
- package/dist/components/blog-teaser/index.js +2 -2
- package/dist/components/button/button.css +15 -1
- package/dist/components/cta/cta.css +38 -38
- package/dist/components/feature/index.js +7 -7
- package/dist/components/features/features.css +26 -28
- package/dist/components/features/index.js +1 -1
- package/dist/components/footer/footer.css +23 -18
- package/dist/components/footer/footer.schema.dereffed.json +65 -14
- package/dist/components/footer/footer.schema.json +11 -25
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/footer/index.js +3 -2
- package/dist/components/gallery/gallery.css +1 -1
- package/dist/components/header/header.css +14 -10
- package/dist/components/header/header.schema.dereffed.json +78 -17
- package/dist/components/header/header.schema.json +18 -25
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +15 -7
- package/dist/components/headline/headline.css +18 -21
- package/dist/components/headline/index.js +1 -7
- package/dist/components/hero/index.js +3 -2
- package/dist/components/image/image.css +8 -8
- package/dist/components/image/image.schema.dereffed.json +1 -1
- package/dist/components/image/image.schema.json +1 -1
- package/dist/components/image/index.d.ts +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/image-story/image-story.css +14 -1
- package/dist/components/image-story/image-story.schema.dereffed.json +19 -9
- package/dist/components/image-story/image-story.schema.json +9 -6
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/image-story/index.js +10 -1
- package/dist/components/index/index.d.ts +13 -13
- package/dist/components/logo/index.d.ts +4 -0
- package/dist/components/logo/index.js +12 -0
- package/dist/components/logo/logo.css +7 -0
- package/dist/components/logo/logo.schema.dereffed.json +43 -19
- package/dist/components/logo/logo.schema.json +41 -17
- package/dist/components/logos/index.d.ts +1 -1
- package/dist/components/logos/index.js +1 -1
- package/dist/components/logos/logos.css +11 -7
- package/dist/components/logos/logos.schema.dereffed.json +0 -5
- package/dist/components/logos/logos.schema.json +27 -1
- package/dist/components/nav-dropdown/index.d.ts +23 -0
- package/dist/components/nav-dropdown/index.js +10 -0
- package/dist/components/nav-dropdown/nav-dropdown.css +48 -0
- package/dist/components/nav-flyout/index.d.ts +7 -0
- package/dist/components/nav-flyout/index.js +17 -0
- package/dist/components/nav-flyout/nav-flyout.css +124 -0
- package/dist/components/nav-main/index.d.ts +42 -11
- package/dist/components/nav-main/index.js +14 -13
- package/dist/components/nav-main/nav-main.schema.dereffed.json +110 -85
- package/dist/components/nav-main/nav-main.schema.json +73 -11
- package/dist/components/nav-toggle/index.d.ts +3 -0
- package/dist/components/nav-toggle/index.js +6 -0
- package/dist/components/{nav-main → nav-toggle}/nav-toggle.css +22 -22
- package/dist/components/nav-topbar/index.d.ts +6 -0
- package/dist/components/nav-topbar/index.js +14 -0
- package/dist/components/nav-topbar/nav-topbar.css +95 -0
- package/dist/components/page/page.schema.dereffed.json +25 -25
- package/dist/components/page/page.schema.json +6 -6
- package/dist/components/page-wrapper/index.js +2 -3
- package/dist/components/page-wrapper/tokens.css +38 -38
- package/dist/components/picture/picture.schema.json +1 -1
- package/dist/components/presets.json +197 -19
- package/dist/components/providers/index.js +0 -1
- package/dist/components/section/index.d.ts +5 -3
- package/dist/components/section/index.js +35 -31
- package/dist/components/section/section.css +3 -3
- package/dist/components/section/section.schema.dereffed.json +19 -19
- package/dist/components/settings/settings.schema.dereffed.json +143 -31
- package/dist/components/slider/slider.schema.dereffed.json +0 -5
- package/dist/components/teaser-card/teaser-card.css +2 -2
- package/dist/components/text/text.css +1 -1
- package/dist/global.css +14 -14
- package/dist/static/favicon/favicon-192-192.png +1 -1
- package/dist/static/logo-inverted.svg +26 -0
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +38 -38
- package/dist/tokens/tokens.js +70 -70
- package/package.json +1 -1
- package/dist/LogosProps-58c84ccc.d.ts +0 -242
- package/dist/components/headline-level-context/index.d.ts +0 -4
- package/dist/components/headline-level-context/index.js +0 -33
- package/dist/components/nav-main/nav-main.css +0 -191
- /package/dist/components/{nav-main → nav}/js/NavToggle.client.d.ts +0 -0
- /package/dist/components/{nav-main → nav}/js/NavToggle.client.js +0 -0
- /package/dist/components/{nav-main → nav}/js/body.client.d.ts +0 -0
- /package/dist/components/{nav-main → nav}/js/body.client.js +0 -0
- /package/dist/components/{nav-main → nav}/js/navMainEvents.client.d.ts +0 -0
- /package/dist/components/{nav-main → nav}/js/navMainEvents.client.js +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
.dsa-nav-flyout {
|
|
2
|
+
--dsa-nav-flyout--padding: 0 var(--ks-spacing-inset-xl);
|
|
3
|
+
--dsa-nav-flyout--max-width: 30rem;
|
|
4
|
+
--dsa-nav-flyout--background: linear-gradient(
|
|
5
|
+
125deg,
|
|
6
|
+
var(--ks-background-color-default),
|
|
7
|
+
var(--ks-color-primary-to-bg-6)
|
|
8
|
+
);
|
|
9
|
+
--dsa-nav-flyout--shadow: 20px 0px 30px var(--ks-color-fg-inverted-base);
|
|
10
|
+
--dsa-nav-flyout__label--color: var(--ks-color-fg);
|
|
11
|
+
--dsa-nav-flyout__label--color_hover: var(--ks-text-color-interface-interactive-hover);
|
|
12
|
+
--dsa-nav-flyout__label--color_active: var(--ks-text-color-interface-interactive-active);
|
|
13
|
+
--dsa-nav-flyout__label--font: var(--ks-font-interface-l);
|
|
14
|
+
--dsa-nav-flyout__label--font-weight: var(--ks-font-weight-semi-bold);
|
|
15
|
+
--dsa-nav-flyout__label--font-weight_active: var(--ks-font-weight-bold);
|
|
16
|
+
--dsa-nav-flyout__label--padding: 0.25em 0;
|
|
17
|
+
--dsa-nav-flyout__label_dimmed--opacity: 0.6;
|
|
18
|
+
--dsa-nav-flyout__label__icon--size: 1.5em;
|
|
19
|
+
--dsa-nav-flyout__sublist--padding: 0.25em 0 0.5em 0.75em;
|
|
20
|
+
--dsa-nav-flyout__sublist__label--color: var(--ks-color-fg);
|
|
21
|
+
--dsa-nav-flyout__sublist__label--color_hover: var(--ks-text-color-interface-interactive-hover);
|
|
22
|
+
--dsa-nav-flyout__sublist__label--color_active: var(--ks-text-color-interface-interactive-active);
|
|
23
|
+
--dsa-nav-flyout__sublist__label--font: var(--ks-font-interface-m);
|
|
24
|
+
--dsa-nav-flyout__sublist__label--font-weight: var(--ks-font-weight-semi-bold);
|
|
25
|
+
--dsa-nav-flyout__sublist__label--padding: 0.25em 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dsa-nav-flyout {
|
|
29
|
+
display: none;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: var(--ks-spacing-stack-m);
|
|
32
|
+
left: -100%;
|
|
33
|
+
height: 100vh;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
position: fixed;
|
|
36
|
+
width: 100vw;
|
|
37
|
+
transition: all var(--ks-duration-slow);
|
|
38
|
+
padding: var(--dsa-nav-flyout--padding);
|
|
39
|
+
right: 0;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
top: 0;
|
|
42
|
+
overflow-y: auto;
|
|
43
|
+
background: var(--dsa-nav-flyout--background);
|
|
44
|
+
backface-visibility: hidden;
|
|
45
|
+
-webkit-overflow-scrolling: touch;
|
|
46
|
+
}
|
|
47
|
+
@media (max-width: 62rem) {
|
|
48
|
+
.dsa-nav-flyout {
|
|
49
|
+
display: flex;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
@media (min-width: 36em) {
|
|
53
|
+
.dsa-nav-flyout {
|
|
54
|
+
max-width: var(--dsa-nav-flyout--max-width);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.dsa-nav-flyout ul {
|
|
58
|
+
padding: 0;
|
|
59
|
+
margin: 0;
|
|
60
|
+
}
|
|
61
|
+
.overlay-open .dsa-nav-flyout {
|
|
62
|
+
left: 0;
|
|
63
|
+
box-shadow: var(--dsa-nav-flyout--shadow);
|
|
64
|
+
}
|
|
65
|
+
.dsa-nav-flyout .dsa-nav-flyout__logo {
|
|
66
|
+
margin-top: var(--dsa-header--spacing-vertical);
|
|
67
|
+
margin-bottom: var(--dsa-header--spacing-vertical);
|
|
68
|
+
}
|
|
69
|
+
.dsa-nav-flyout .dsa-nav-flyout__list {
|
|
70
|
+
padding-top: calc(var(--dsa-header--spacing-vertical) - var(--ks-spacing-s));
|
|
71
|
+
}
|
|
72
|
+
.dsa-nav-flyout .dsa-nav-flyout__list:hover .dsa-nav-flyout__item:not(:hover, .dsa-nav-flyout__item--active) .dsa-nav-flyout__label {
|
|
73
|
+
opacity: var(--dsa-nav-flyout__label_dimmed--opacity);
|
|
74
|
+
}
|
|
75
|
+
.dsa-nav-flyout .dsa-nav-flyout__item {
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
position: relative;
|
|
78
|
+
outline: 0;
|
|
79
|
+
}
|
|
80
|
+
.dsa-nav-flyout .dsa-nav-flyout__item--active.dsa-nav-flyout__item .dsa-nav-flyout__label {
|
|
81
|
+
font-weight: var(--dsa-nav-flyout__label--font-weight_active);
|
|
82
|
+
}
|
|
83
|
+
.dsa-nav-flyout .dsa-nav-flyout__item:hover > .dsa-nav-sublist {
|
|
84
|
+
display: flex;
|
|
85
|
+
}
|
|
86
|
+
.dsa-nav-flyout .dsa-nav-flyout__label {
|
|
87
|
+
display: flex;
|
|
88
|
+
font: var(--dsa-nav-flyout__label--font);
|
|
89
|
+
font-weight: var(--dsa-nav-flyout__label--font-weight);
|
|
90
|
+
color: var(--dsa-nav-flyout__label--color);
|
|
91
|
+
height: 100%;
|
|
92
|
+
align-items: center;
|
|
93
|
+
padding: var(--dsa-nav-flyout__label--padding);
|
|
94
|
+
}
|
|
95
|
+
.dsa-nav-flyout .dsa-nav-flyout__label:hover, .dsa-nav-flyout .dsa-nav-flyout__label:focus {
|
|
96
|
+
color: var(--dsa-nav-flyout__label--color_hover);
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
.dsa-nav-flyout .dsa-nav-flyout__label__icon {
|
|
100
|
+
width: var(--dsa-nav-flyout__label__icon--size);
|
|
101
|
+
height: var(--dsa-nav-flyout__label__icon--size);
|
|
102
|
+
}
|
|
103
|
+
.dsa-nav-flyout .dsa-nav-flyout__sublist {
|
|
104
|
+
padding: var(--dsa-nav-flyout__sublist--padding);
|
|
105
|
+
font: var(--dsa-nav-flyout__sublist__label--font);
|
|
106
|
+
}
|
|
107
|
+
.dsa-nav-flyout .dsa-nav-flyout__sublist .dsa-nav-flyout__label {
|
|
108
|
+
font: inherit;
|
|
109
|
+
color: var(--dsa-nav-flyout__sublist__label--color);
|
|
110
|
+
padding: var(--dsa-nav-flyout__sublist__label--padding);
|
|
111
|
+
}
|
|
112
|
+
.dsa-nav-flyout .dsa-nav-flyout__label:not(.dsa-nav-flyout__link) {
|
|
113
|
+
cursor: default;
|
|
114
|
+
}
|
|
115
|
+
.dsa-nav-flyout ul {
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
margin: 0;
|
|
118
|
+
padding: 0;
|
|
119
|
+
list-style: none;
|
|
120
|
+
}
|
|
121
|
+
.dsa-nav-flyout ul li {
|
|
122
|
+
display: block;
|
|
123
|
+
margin: 0;
|
|
124
|
+
}
|
|
@@ -5,24 +5,55 @@ 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 {
|
|
8
|
+
import { LogoProps } from "../../LogoProps-01796f0a.js";
|
|
9
|
+
/**
|
|
10
|
+
* Toggle the inversion of the flyout navigation
|
|
11
|
+
*/
|
|
12
|
+
type FlyoutInverted = boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Toggle the inversion of the dropdown navigation
|
|
15
|
+
*/
|
|
16
|
+
type DropdownInverted = boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Toggle the CTA
|
|
19
|
+
*/
|
|
20
|
+
type ToggleCTA = boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Text content to display inside the button
|
|
23
|
+
*/
|
|
24
|
+
type Label = string;
|
|
25
|
+
/**
|
|
26
|
+
* Target that should be linked, makes the button behave like a link semantically
|
|
27
|
+
*/
|
|
28
|
+
type Target = string;
|
|
9
29
|
interface NavMainProps {
|
|
10
30
|
/**
|
|
11
|
-
* Referenced component
|
|
31
|
+
* Referenced component LogoProps
|
|
12
32
|
*/
|
|
13
|
-
logo:
|
|
14
|
-
|
|
33
|
+
logo: LogoProps;
|
|
34
|
+
flyoutInverted?: FlyoutInverted;
|
|
35
|
+
dropdownInverted?: DropdownInverted;
|
|
15
36
|
items?: {
|
|
16
37
|
href: string;
|
|
17
38
|
label: string;
|
|
18
39
|
active?: boolean;
|
|
40
|
+
id?: string;
|
|
41
|
+
items?: {
|
|
42
|
+
href?: string;
|
|
43
|
+
label?: string;
|
|
44
|
+
active?: boolean;
|
|
45
|
+
id?: string;
|
|
46
|
+
}[];
|
|
19
47
|
}[];
|
|
48
|
+
cta?: CTA;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Add a CTA to the Navigation
|
|
52
|
+
*/
|
|
53
|
+
interface CTA {
|
|
54
|
+
toggle?: ToggleCTA;
|
|
55
|
+
label?: Label;
|
|
56
|
+
target?: Target;
|
|
20
57
|
}
|
|
21
|
-
declare const NavToggleComponent: FC;
|
|
22
|
-
declare const NavMainItem: FC<{
|
|
23
|
-
label: string;
|
|
24
|
-
href: string;
|
|
25
|
-
active: boolean;
|
|
26
|
-
}>;
|
|
27
58
|
declare const NavMain: FC<NavMainProps>;
|
|
28
|
-
export {
|
|
59
|
+
export { NavMain };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import "./nav-main.css";
|
|
2
|
-
import "./nav-toggle.css";
|
|
3
|
-
import { createElement } from 'react';
|
|
4
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import '
|
|
9
|
-
import '
|
|
2
|
+
import '../nav/js/NavToggle.client.js';
|
|
3
|
+
import '../nav/js/navMainEvents.client.js';
|
|
4
|
+
import { NavToggleComponent } from '../nav-toggle/index.js';
|
|
5
|
+
import { NavTopbar } from '../nav-topbar/index.js';
|
|
6
|
+
import { NavFlyout } from '../nav-flyout/index.js';
|
|
10
7
|
import '@kickstartds/core/lib/component';
|
|
11
|
-
import '
|
|
8
|
+
import '../nav/js/body.client.js';
|
|
12
9
|
import '@kickstartds/core/lib/core';
|
|
10
|
+
import 'classnames';
|
|
11
|
+
import '@kickstartds/base/lib/link';
|
|
12
|
+
import '@kickstartds/base/lib/icon';
|
|
13
|
+
import '../nav-dropdown/index.js';
|
|
14
|
+
import '../logo/index.js';
|
|
15
|
+
import '@kickstartds/base/lib/picture';
|
|
13
16
|
|
|
14
|
-
const
|
|
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
|
+
const NavMain = ({ logo, items, flyoutInverted, dropdownInverted, }) => items && items.length > 0 ? (jsxs("div", { className: "dsa-nav-main", children: [jsx(NavToggleComponent, {}), jsx(NavTopbar, { items: items, dropdownInverted: dropdownInverted }), jsx(NavFlyout, { items: items, inverted: flyoutInverted, logo: logo })] })) : null;
|
|
17
18
|
|
|
18
|
-
export { NavMain
|
|
19
|
+
export { NavMain };
|
|
@@ -6,23 +6,19 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"logo": {
|
|
8
8
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
9
|
-
"$id": "http://schema.
|
|
10
|
-
"title": "
|
|
11
|
-
"description": "Base component to display a picture",
|
|
9
|
+
"$id": "http://schema.mydesignsystem.com/logo.schema.json",
|
|
10
|
+
"title": "Logo",
|
|
12
11
|
"type": "object",
|
|
13
12
|
"properties": {
|
|
14
13
|
"src": {
|
|
15
14
|
"title": "Source",
|
|
16
15
|
"description": "Picture source",
|
|
17
16
|
"type": "string",
|
|
18
|
-
"format": "image"
|
|
19
|
-
"examples": [
|
|
20
|
-
"https://picsum.photos/seed/kdspicture/300/300"
|
|
21
|
-
]
|
|
17
|
+
"format": "image"
|
|
22
18
|
},
|
|
23
|
-
"
|
|
24
|
-
"title": "
|
|
25
|
-
"description": "
|
|
19
|
+
"srcInverted": {
|
|
20
|
+
"title": "Source",
|
|
21
|
+
"description": "Picture source",
|
|
26
22
|
"type": "string",
|
|
27
23
|
"format": "image"
|
|
28
24
|
},
|
|
@@ -31,6 +27,16 @@
|
|
|
31
27
|
"description": "Alt text to display for picture",
|
|
32
28
|
"type": "string"
|
|
33
29
|
},
|
|
30
|
+
"homepageHref": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": "uri",
|
|
33
|
+
"default": "/"
|
|
34
|
+
},
|
|
35
|
+
"inverted": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"title": "Inverted",
|
|
38
|
+
"description": "Toggle wether the inverted or default version of the logo is being displayed"
|
|
39
|
+
},
|
|
34
40
|
"width": {
|
|
35
41
|
"title": "Width",
|
|
36
42
|
"description": "Width of the picture",
|
|
@@ -51,83 +57,26 @@
|
|
|
51
57
|
},
|
|
52
58
|
"className": {
|
|
53
59
|
"title": "Additional Classes",
|
|
54
|
-
"description": "Add additional css classes that should be applied to the
|
|
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",
|
|
60
|
+
"description": "Add additional css classes that should be applied to the logo",
|
|
119
61
|
"type": "string"
|
|
120
62
|
},
|
|
121
63
|
"type": {
|
|
122
|
-
"const": "
|
|
64
|
+
"const": "logo"
|
|
123
65
|
}
|
|
124
66
|
},
|
|
125
67
|
"additionalProperties": false
|
|
126
68
|
},
|
|
127
|
-
"
|
|
128
|
-
"type": "
|
|
129
|
-
"
|
|
130
|
-
"
|
|
69
|
+
"flyoutInverted": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"title": "Flyout Inverted",
|
|
72
|
+
"description": "Toggle the inversion of the flyout navigation",
|
|
73
|
+
"default": false
|
|
74
|
+
},
|
|
75
|
+
"dropdownInverted": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"title": "Dropdown Inverted",
|
|
78
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
79
|
+
"default": false
|
|
131
80
|
},
|
|
132
81
|
"items": {
|
|
133
82
|
"type": "array",
|
|
@@ -143,6 +92,31 @@
|
|
|
143
92
|
},
|
|
144
93
|
"active": {
|
|
145
94
|
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
"id": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"items": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"properties": {
|
|
104
|
+
"href": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"format": "uri"
|
|
107
|
+
},
|
|
108
|
+
"label": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"active": {
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
},
|
|
114
|
+
"id": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"additionalProperties": false
|
|
119
|
+
}
|
|
146
120
|
}
|
|
147
121
|
},
|
|
148
122
|
"additionalProperties": false,
|
|
@@ -153,19 +127,42 @@
|
|
|
153
127
|
},
|
|
154
128
|
"examples": [
|
|
155
129
|
[
|
|
156
|
-
{
|
|
157
|
-
"label": "Nav Item",
|
|
158
|
-
"href": "#"
|
|
159
|
-
},
|
|
160
130
|
{
|
|
161
131
|
"label": "Active Item",
|
|
162
132
|
"href": "#",
|
|
163
133
|
"active": true
|
|
164
134
|
},
|
|
165
135
|
{
|
|
166
|
-
"label": "
|
|
136
|
+
"label": "Navigation Item",
|
|
167
137
|
"href": "#"
|
|
168
138
|
},
|
|
139
|
+
{
|
|
140
|
+
"label": "Dropdown",
|
|
141
|
+
"href": "#",
|
|
142
|
+
"items": [
|
|
143
|
+
{
|
|
144
|
+
"label": "Level 2 Item",
|
|
145
|
+
"href": "#",
|
|
146
|
+
"id": ""
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"label": "Active Item",
|
|
150
|
+
"active": true,
|
|
151
|
+
"href": "#",
|
|
152
|
+
"id": ""
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"label": "An Item with a longer Label",
|
|
156
|
+
"href": "#",
|
|
157
|
+
"id": ""
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"label": "And One last one",
|
|
161
|
+
"href": "#",
|
|
162
|
+
"id": ""
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
169
166
|
{
|
|
170
167
|
"label": "One more Item",
|
|
171
168
|
"href": "#"
|
|
@@ -177,6 +174,34 @@
|
|
|
177
174
|
]
|
|
178
175
|
]
|
|
179
176
|
},
|
|
177
|
+
"cta": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"title": "CTA",
|
|
180
|
+
"description": "Add a CTA to the Navigation",
|
|
181
|
+
"properties": {
|
|
182
|
+
"toggle": {
|
|
183
|
+
"title": "Toggle CTA",
|
|
184
|
+
"description": "Toggle the CTA",
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"default": false
|
|
187
|
+
},
|
|
188
|
+
"label": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"title": "Label",
|
|
191
|
+
"description": "Text content to display inside the button",
|
|
192
|
+
"examples": [
|
|
193
|
+
"Book a meeting"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"target": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"title": "Target",
|
|
199
|
+
"description": "Target that should be linked, makes the button behave like a link semantically",
|
|
200
|
+
"format": "uri"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"additionalProperties": false
|
|
204
|
+
},
|
|
180
205
|
"type": {
|
|
181
206
|
"const": "nav-main"
|
|
182
207
|
}
|
|
@@ -5,12 +5,19 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"logo": {
|
|
8
|
-
"$ref": "http://schema.
|
|
8
|
+
"$ref": "http://schema.mydesignsystem.com/logo.schema.json"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
11
|
-
"type": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
10
|
+
"flyoutInverted": {
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"title": "Flyout Inverted",
|
|
13
|
+
"description": "Toggle the inversion of the flyout navigation",
|
|
14
|
+
"default": false
|
|
15
|
+
},
|
|
16
|
+
"dropdownInverted": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"title": "Dropdown Inverted",
|
|
19
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
20
|
+
"default": false
|
|
14
21
|
},
|
|
15
22
|
"items": {
|
|
16
23
|
"type": "array",
|
|
@@ -19,26 +26,62 @@
|
|
|
19
26
|
"properties": {
|
|
20
27
|
"href": { "type": "string", "format": "uri" },
|
|
21
28
|
"label": { "type": "string" },
|
|
22
|
-
"active": { "type": "boolean" }
|
|
29
|
+
"active": { "type": "boolean" },
|
|
30
|
+
"id": { "type": "string" },
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"href": { "type": "string", "format": "uri" },
|
|
37
|
+
"label": { "type": "string" },
|
|
38
|
+
"active": { "type": "boolean" },
|
|
39
|
+
"id": { "type": "string" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
23
43
|
},
|
|
24
44
|
"additionalProperties": false,
|
|
25
45
|
"required": ["href", "label"]
|
|
26
46
|
},
|
|
27
47
|
"examples": [
|
|
28
48
|
[
|
|
29
|
-
{
|
|
30
|
-
"label": "Nav Item",
|
|
31
|
-
"href": "#"
|
|
32
|
-
},
|
|
33
49
|
{
|
|
34
50
|
"label": "Active Item",
|
|
35
51
|
"href": "#",
|
|
36
52
|
"active": true
|
|
37
53
|
},
|
|
38
54
|
{
|
|
39
|
-
"label": "
|
|
55
|
+
"label": "Navigation Item",
|
|
40
56
|
"href": "#"
|
|
41
57
|
},
|
|
58
|
+
{
|
|
59
|
+
"label": "Dropdown",
|
|
60
|
+
"href": "#",
|
|
61
|
+
"items": [
|
|
62
|
+
{
|
|
63
|
+
"label": "Level 2 Item",
|
|
64
|
+
"href": "#",
|
|
65
|
+
"id": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "Active Item",
|
|
69
|
+
"active": true,
|
|
70
|
+
"href": "#",
|
|
71
|
+
"id": ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"label": "An Item with a longer Label",
|
|
75
|
+
"href": "#",
|
|
76
|
+
"id": ""
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": "And One last one",
|
|
80
|
+
"href": "#",
|
|
81
|
+
"id": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
42
85
|
{
|
|
43
86
|
"label": "One more Item",
|
|
44
87
|
"href": "#"
|
|
@@ -49,6 +92,25 @@
|
|
|
49
92
|
}
|
|
50
93
|
]
|
|
51
94
|
]
|
|
95
|
+
},
|
|
96
|
+
"cta": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"title": "CTA",
|
|
99
|
+
"description": "Add a CTA to the Navigation",
|
|
100
|
+
"properties": {
|
|
101
|
+
"toggle": {
|
|
102
|
+
"title": "Toggle CTA",
|
|
103
|
+
"description": "Toggle the CTA",
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"default": false
|
|
106
|
+
},
|
|
107
|
+
"label": {
|
|
108
|
+
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/label"
|
|
109
|
+
},
|
|
110
|
+
"target": {
|
|
111
|
+
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/target"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
52
114
|
}
|
|
53
115
|
},
|
|
54
116
|
"additionalProperties": false,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "./nav-toggle.css";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
const NavToggleComponent = () => (jsxs("button", { type: "button", className: "dsa-nav-toggle", id: "toggle-sidebar", "aria-controls": "dsa-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" }) })] }));
|
|
5
|
+
|
|
6
|
+
export { NavToggleComponent };
|