@kickstartds/ds-agency-premium 1.3.50 → 1.3.51--canary.674.14f816b.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-440f88a5.d.ts → BlogPostProps-f9a49428.d.ts} +1 -1
- package/dist/{FooterProps-10c950a6.d.ts → FooterProps-22e0307b.d.ts} +6 -0
- package/dist/{HeaderProps-7be94a61.d.ts → HeaderProps-dd2071a8.d.ts} +16 -2
- package/dist/{SectionProps-83d399b4.d.ts → SectionProps-03ff6d21.d.ts} +1 -1
- package/dist/components/blog-overview/index.d.ts +1 -1
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/footer/footer.schema.dereffed.json +37 -3
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/header/header.css +3 -1
- package/dist/components/header/header.schema.dereffed.json +45 -7
- package/dist/components/header/header.schema.json +5 -3
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +10 -6
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +5 -5
- 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 +45 -0
- package/dist/components/nav-flyout/index.d.ts +8 -0
- package/dist/components/nav-flyout/index.js +17 -0
- package/dist/components/nav-flyout/nav-flyout.css +97 -0
- package/dist/components/nav-main/index.d.ts +33 -7
- package/dist/components/nav-main/index.js +14 -14
- package/dist/components/nav-main/nav-main.schema.dereffed.json +71 -3
- package/dist/components/nav-main/nav-main.schema.json +53 -4
- package/dist/components/nav-toggle/index.d.ts +3 -0
- package/dist/components/nav-toggle/index.js +6 -0
- package/dist/components/nav-topbar/index.d.ts +7 -0
- package/dist/components/nav-topbar/index.js +12 -0
- package/dist/components/nav-topbar/nav-topbar.css +82 -0
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +31 -6
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/settings/settings.schema.dereffed.json +82 -10
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +1 -1
- package/dist/tokens/tokens.js +1 -1
- package/package.json +1 -1
- package/dist/components/nav-main/nav-main.css +0 -194
- /package/dist/{BlogOverviewProps-f385fc47.d.ts → BlogOverviewProps-525f7f9f.d.ts} +0 -0
- /package/dist/{ImageStoryProps-e853e1e7.d.ts → ImageStoryProps-03ff6d21.d.ts} +0 -0
- /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
- /package/dist/components/{nav-main → nav-toggle}/nav-toggle.css +0 -0
|
@@ -1,19 +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 '
|
|
10
|
-
import '@kickstartds/base/lib/picture';
|
|
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';
|
|
11
7
|
import '@kickstartds/core/lib/component';
|
|
12
|
-
import '
|
|
8
|
+
import '../nav/js/body.client.js';
|
|
13
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';
|
|
14
16
|
|
|
15
|
-
const
|
|
16
|
-
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 }) }));
|
|
17
|
-
const NavMain = ({ logo, items, flyoutInverted }) => items && items.length > 0 ? (jsxs("div", { className: "dsa-nav-main__wrap", children: [jsx(NavToggleComponent, {}), jsxs("nav", { "ks-inverted": flyoutInverted.toString(), className: classnames("dsa-nav-main", "dsa-nav-main--flyout", items.some((item) => item.active) ? "dsa-nav-main--active" : ""), id: "dsa-nav-main", "aria-label": "Hauptnavigation", children: [jsx(Logo, { ...logo, className: "dsa-nav-main__logo" }), jsx("ul", { className: "dsa-nav-main__list", children: items.map((item) => (createElement(NavMainItem, { ...item, active: item.active ?? false, key: item.href + item.label }))) })] }), jsxs("nav", { className: classnames("dsa-nav-main", "dsa-nav-main--topbar", items.some((item) => item.active) ? "dsa-nav-main--active" : ""), id: "dsa-nav-main", "aria-label": "Hauptnavigation", children: [jsx(Logo, { ...logo, className: "dsa-nav-main__logo" }), 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
|
+
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, active: undefined }), jsx(NavFlyout, { items: items, active: undefined, inverted: flyoutInverted, logo: logo })] })) : null;
|
|
18
18
|
|
|
19
|
-
export { NavMain
|
|
19
|
+
export { NavMain };
|
|
@@ -72,6 +72,12 @@
|
|
|
72
72
|
"description": "Toggle the inversion of the flyout navigation",
|
|
73
73
|
"default": false
|
|
74
74
|
},
|
|
75
|
+
"dropdownInverted": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"title": "Dropdown Inverted",
|
|
78
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
79
|
+
"default": false
|
|
80
|
+
},
|
|
75
81
|
"items": {
|
|
76
82
|
"type": "array",
|
|
77
83
|
"items": {
|
|
@@ -86,6 +92,28 @@
|
|
|
86
92
|
},
|
|
87
93
|
"active": {
|
|
88
94
|
"type": "boolean"
|
|
95
|
+
},
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"href": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"format": "uri"
|
|
104
|
+
},
|
|
105
|
+
"id": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"label": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"active": {
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"additionalProperties": false
|
|
116
|
+
}
|
|
89
117
|
}
|
|
90
118
|
},
|
|
91
119
|
"additionalProperties": false,
|
|
@@ -97,7 +125,7 @@
|
|
|
97
125
|
"examples": [
|
|
98
126
|
[
|
|
99
127
|
{
|
|
100
|
-
"label": "
|
|
128
|
+
"label": "Navigation Item",
|
|
101
129
|
"href": "#"
|
|
102
130
|
},
|
|
103
131
|
{
|
|
@@ -106,8 +134,20 @@
|
|
|
106
134
|
"active": true
|
|
107
135
|
},
|
|
108
136
|
{
|
|
109
|
-
"label": "
|
|
110
|
-
"href": "#"
|
|
137
|
+
"label": "Item With Children",
|
|
138
|
+
"href": "#",
|
|
139
|
+
"items": [
|
|
140
|
+
{
|
|
141
|
+
"label": "Level 2 Item",
|
|
142
|
+
"href": "#",
|
|
143
|
+
"id": ""
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"label": "Another One",
|
|
147
|
+
"href": "#",
|
|
148
|
+
"id": ""
|
|
149
|
+
}
|
|
150
|
+
]
|
|
111
151
|
},
|
|
112
152
|
{
|
|
113
153
|
"label": "One more Item",
|
|
@@ -120,6 +160,34 @@
|
|
|
120
160
|
]
|
|
121
161
|
]
|
|
122
162
|
},
|
|
163
|
+
"cta": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"title": "CTA",
|
|
166
|
+
"description": "Add a CTA to the Navigation",
|
|
167
|
+
"properties": {
|
|
168
|
+
"toggle": {
|
|
169
|
+
"title": "Toggle CTA",
|
|
170
|
+
"description": "Toggle the CTA",
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": false
|
|
173
|
+
},
|
|
174
|
+
"label": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"title": "Label",
|
|
177
|
+
"description": "Text content to display inside the button",
|
|
178
|
+
"examples": [
|
|
179
|
+
"Book a meeting"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"target": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"title": "Target",
|
|
185
|
+
"description": "Target that should be linked, makes the button behave like a link semantically",
|
|
186
|
+
"format": "uri"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"additionalProperties": false
|
|
190
|
+
},
|
|
123
191
|
"type": {
|
|
124
192
|
"const": "nav-main"
|
|
125
193
|
}
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
"description": "Toggle the inversion of the flyout navigation",
|
|
14
14
|
"default": false
|
|
15
15
|
},
|
|
16
|
+
"dropdownInverted": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"title": "Dropdown Inverted",
|
|
19
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
20
|
+
"default": false
|
|
21
|
+
},
|
|
16
22
|
"items": {
|
|
17
23
|
"type": "array",
|
|
18
24
|
"items": {
|
|
@@ -20,7 +26,19 @@
|
|
|
20
26
|
"properties": {
|
|
21
27
|
"href": { "type": "string", "format": "uri" },
|
|
22
28
|
"label": { "type": "string" },
|
|
23
|
-
"active": { "type": "boolean" }
|
|
29
|
+
"active": { "type": "boolean" },
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"href": { "type": "string", "format": "uri" },
|
|
36
|
+
"id": { "type": "string" },
|
|
37
|
+
"label": { "type": "string" },
|
|
38
|
+
"active": { "type": "boolean" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
24
42
|
},
|
|
25
43
|
"additionalProperties": false,
|
|
26
44
|
"required": ["href", "label"]
|
|
@@ -28,7 +46,7 @@
|
|
|
28
46
|
"examples": [
|
|
29
47
|
[
|
|
30
48
|
{
|
|
31
|
-
"label": "
|
|
49
|
+
"label": "Navigation Item",
|
|
32
50
|
"href": "#"
|
|
33
51
|
},
|
|
34
52
|
{
|
|
@@ -37,8 +55,20 @@
|
|
|
37
55
|
"active": true
|
|
38
56
|
},
|
|
39
57
|
{
|
|
40
|
-
"label": "
|
|
41
|
-
"href": "#"
|
|
58
|
+
"label": "Item With Children",
|
|
59
|
+
"href": "#",
|
|
60
|
+
"items": [
|
|
61
|
+
{
|
|
62
|
+
"label": "Level 2 Item",
|
|
63
|
+
"href": "#",
|
|
64
|
+
"id": ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"label": "Another One",
|
|
68
|
+
"href": "#",
|
|
69
|
+
"id": ""
|
|
70
|
+
}
|
|
71
|
+
]
|
|
42
72
|
},
|
|
43
73
|
{
|
|
44
74
|
"label": "One more Item",
|
|
@@ -50,6 +80,25 @@
|
|
|
50
80
|
}
|
|
51
81
|
]
|
|
52
82
|
]
|
|
83
|
+
},
|
|
84
|
+
"cta": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"title": "CTA",
|
|
87
|
+
"description": "Add a CTA to the Navigation",
|
|
88
|
+
"properties": {
|
|
89
|
+
"toggle": {
|
|
90
|
+
"title": "Toggle CTA",
|
|
91
|
+
"description": "Toggle the CTA",
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"default": false
|
|
94
|
+
},
|
|
95
|
+
"label": {
|
|
96
|
+
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/label"
|
|
97
|
+
},
|
|
98
|
+
"target": {
|
|
99
|
+
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/target"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
53
102
|
}
|
|
54
103
|
},
|
|
55
104
|
"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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./nav-topbar.css";
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { Link } from '@kickstartds/base/lib/link';
|
|
5
|
+
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
|
+
import { NavDropdown } from '../nav-dropdown/index.js';
|
|
7
|
+
|
|
8
|
+
const NavTopbar = ({ items, active, dropdownInverted }) => items && items.length > 0 ? (jsx("nav", { className: "dsa-nav-topbar", id: "dsa-nav-main", "aria-label": "Hauptnavigation", children: jsx("ul", { className: "dsa-nav-list", children: items.map(({ label, href, id, items: subItems }) => {
|
|
9
|
+
return (jsxs("li", { className: classnames("dsa-nav-topbar__item", active && "dsa-nav-topbar__item--active"), children: [jsxs(Link, { href: href, className: `dsa-nav-topbar__link`, children: [label, subItems?.length ? (jsx(Icon, { className: "dsa-nav-topbar__link__icon", icon: "chevron-down" })) : ("")] }), subItems?.length ? (jsx(NavDropdown, { items: subItems, inverted: dropdownInverted })) : null] }, id));
|
|
10
|
+
}) }) })) : null;
|
|
11
|
+
|
|
12
|
+
export { NavTopbar };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
.dsa-nav-topbar {
|
|
2
|
+
--dsa-nav-topbar__link--color: var(--ks-color-fg);
|
|
3
|
+
--dsa-nav-topbar__link--color_hover: var(--ks-text-color-interface-interactive-hover);
|
|
4
|
+
--dsa-nav-topbar__link--color_active: var(--ks-text-color-interface-interactive-active);
|
|
5
|
+
--dsa-nav-topbar__link--font: var(--ks-font-interface-m);
|
|
6
|
+
--dsa-nav-topbar__link--font-weight: var(--ks-font-weight-semi-bold);
|
|
7
|
+
--dsa-nav-topbar__link--font-weight_active: var(--ks-font-weight-semi-bold);
|
|
8
|
+
--dsa-nav-topbar__link--padding: 0 0.75em;
|
|
9
|
+
--dsa-nav-topbar__link_dimmed--opacity: 0.6;
|
|
10
|
+
--dsa-nav-topbar_floating__link_dimmed--opacity: 0.75;
|
|
11
|
+
--dsa-nav-topbar_floating__link--color: var(--ks-color-fg);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dsa-nav-topbar {
|
|
15
|
+
display: none;
|
|
16
|
+
--g-link--text-decoration: none;
|
|
17
|
+
--g-link--text-decoration_hover: none;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
}
|
|
21
|
+
@media (min-width: 62rem) {
|
|
22
|
+
.dsa-nav-topbar {
|
|
23
|
+
display: flex;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.dsa-nav-topbar .dsa-nav-list {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-wrap: nowrap;
|
|
29
|
+
align-items: stretch;
|
|
30
|
+
}
|
|
31
|
+
.dsa-nav-topbar .dsa-nav-list > ul.dsa-nav-main__list {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
.dsa-nav-topbar .dsa-nav-list:hover .dsa-nav-topbar__link:not(:hover) {
|
|
35
|
+
opacity: var(--dsa-nav-topbar__link_dimmed--opacity);
|
|
36
|
+
}
|
|
37
|
+
.dsa-header--floating .dsa-nav-topbar .dsa-nav-list:hover .dsa-nav-topbar__link:not(:hover) {
|
|
38
|
+
opacity: var(--dsa-nav-topbar_floating__link_dimmed--opacity);
|
|
39
|
+
}
|
|
40
|
+
.dsa-nav-topbar .dsa-nav-topbar__item {
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
position: relative;
|
|
43
|
+
outline: 0;
|
|
44
|
+
}
|
|
45
|
+
.dsa-nav-topbar .dsa-nav-topbar__item:hover > .dsa-nav-dropdown {
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
48
|
+
.dsa-nav-topbar .dsa-nav-topbar__link {
|
|
49
|
+
font: var(--dsa-nav-topbar__link--font);
|
|
50
|
+
font-weight: var(--dsa-nav-topbar__link--font-weight);
|
|
51
|
+
color: var(--dsa-nav-topbar__link--color);
|
|
52
|
+
position: relative;
|
|
53
|
+
display: flex;
|
|
54
|
+
height: 100%;
|
|
55
|
+
align-items: center;
|
|
56
|
+
padding: var(--dsa-nav-topbar__link--padding);
|
|
57
|
+
}
|
|
58
|
+
.dsa-nav-topbar .dsa-nav-topbar__link:hover {
|
|
59
|
+
color: var(--dsa-nav-topbar__link--color_hover);
|
|
60
|
+
}
|
|
61
|
+
.dsa-nav-topbar .dsa-nav-topbar__link:active {
|
|
62
|
+
color: var(--dsa-nav-topbar__link--color_active);
|
|
63
|
+
}
|
|
64
|
+
.dsa-header--floating .dsa-nav-topbar .dsa-nav-topbar__link {
|
|
65
|
+
color: var(--dsa-nav-topbar_floating__link--color);
|
|
66
|
+
}
|
|
67
|
+
.dsa-header--floating .dsa-nav-topbar .dsa-nav-topbar__link:hover {
|
|
68
|
+
color: var(--dsa-nav-topbar__link--color_hover);
|
|
69
|
+
}
|
|
70
|
+
.dsa-header--floating .dsa-nav-topbar .dsa-nav-topbar__link:active {
|
|
71
|
+
color: var(--dsa-nav-topbar__link--color_active);
|
|
72
|
+
}
|
|
73
|
+
.dsa-nav-topbar ul {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
list-style: none;
|
|
78
|
+
}
|
|
79
|
+
.dsa-nav-topbar ul li {
|
|
80
|
+
display: block;
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
@@ -1284,7 +1284,7 @@
|
|
|
1284
1284
|
"id": "layout-footer--footer",
|
|
1285
1285
|
"group": "Layout/Footer",
|
|
1286
1286
|
"name": "Footer",
|
|
1287
|
-
"code": "<Footer\n byline=\"© 2024 systemics Inc. All rights reserved.\"\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n inverted: false,\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n href: '#',\n label: '
|
|
1287
|
+
"code": "<Footer\n byline=\"© 2024 systemics Inc. All rights reserved.\"\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n inverted: false,\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n href: '#',\n label: 'Navigation Item'\n },\n {\n active: true,\n href: '#',\n label: 'Active Item'\n },\n {\n href: '#',\n items: [\n {\n href: '#',\n id: '',\n label: 'Level 2 Item'\n },\n {\n href: '#',\n id: '',\n label: 'Another One'\n }\n ],\n label: 'Item With Children'\n },\n {\n href: '#',\n label: 'One more Item'\n },\n {\n href: '#',\n label: 'Last Item'\n }\n ]}\n/>",
|
|
1288
1288
|
"args": {
|
|
1289
1289
|
"logo": {
|
|
1290
1290
|
"src": "/logo.svg",
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
"navItems": [
|
|
1301
1301
|
{
|
|
1302
1302
|
"href": "#",
|
|
1303
|
-
"label": "
|
|
1303
|
+
"label": "Navigation Item"
|
|
1304
1304
|
},
|
|
1305
1305
|
{
|
|
1306
1306
|
"href": "#",
|
|
@@ -1309,7 +1309,19 @@
|
|
|
1309
1309
|
},
|
|
1310
1310
|
{
|
|
1311
1311
|
"href": "#",
|
|
1312
|
-
"label": "
|
|
1312
|
+
"label": "Item With Children",
|
|
1313
|
+
"items": [
|
|
1314
|
+
{
|
|
1315
|
+
"href": "#",
|
|
1316
|
+
"id": "",
|
|
1317
|
+
"label": "Level 2 Item"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"href": "#",
|
|
1321
|
+
"id": "",
|
|
1322
|
+
"label": "Another One"
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1313
1325
|
},
|
|
1314
1326
|
{
|
|
1315
1327
|
"href": "#",
|
|
@@ -1498,7 +1510,7 @@
|
|
|
1498
1510
|
"id": "layout-header--header",
|
|
1499
1511
|
"group": "Layout/Header",
|
|
1500
1512
|
"name": "Header",
|
|
1501
|
-
"code": "<Header\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n href: '#',\n label: '
|
|
1513
|
+
"code": "<Header\n logo={{\n alt: 'Systemics Logo',\n height: 40,\n homepageHref: '#',\n src: '/logo.svg',\n srcInverted: '/logo-inverted.svg',\n width: 176\n }}\n navItems={[\n {\n href: '#',\n label: 'Navigation Item'\n },\n {\n active: true,\n href: '#',\n label: 'Active Item'\n },\n {\n href: '#',\n items: [\n {\n href: '#',\n id: '',\n label: 'Level 2 Item'\n },\n {\n href: '#',\n id: '',\n label: 'Another One'\n }\n ],\n label: 'Item With Children'\n },\n {\n href: '#',\n label: 'One more Item'\n },\n {\n href: '#',\n label: 'Last Item'\n }\n ]}\n/>",
|
|
1502
1514
|
"args": {
|
|
1503
1515
|
"logo": {
|
|
1504
1516
|
"src": "/logo.svg",
|
|
@@ -1509,12 +1521,13 @@
|
|
|
1509
1521
|
"height": 40
|
|
1510
1522
|
},
|
|
1511
1523
|
"flyoutInverted": false,
|
|
1524
|
+
"dropdownInverted": false,
|
|
1512
1525
|
"floating": false,
|
|
1513
1526
|
"inverted": false,
|
|
1514
1527
|
"navItems": [
|
|
1515
1528
|
{
|
|
1516
1529
|
"href": "#",
|
|
1517
|
-
"label": "
|
|
1530
|
+
"label": "Navigation Item"
|
|
1518
1531
|
},
|
|
1519
1532
|
{
|
|
1520
1533
|
"href": "#",
|
|
@@ -1523,7 +1536,19 @@
|
|
|
1523
1536
|
},
|
|
1524
1537
|
{
|
|
1525
1538
|
"href": "#",
|
|
1526
|
-
"label": "
|
|
1539
|
+
"label": "Item With Children",
|
|
1540
|
+
"items": [
|
|
1541
|
+
{
|
|
1542
|
+
"href": "#",
|
|
1543
|
+
"id": "",
|
|
1544
|
+
"label": "Level 2 Item"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"href": "#",
|
|
1548
|
+
"id": "",
|
|
1549
|
+
"label": "Another One"
|
|
1550
|
+
}
|
|
1551
|
+
]
|
|
1527
1552
|
},
|
|
1528
1553
|
{
|
|
1529
1554
|
"href": "#",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes, FC, PropsWithChildren } from "react";
|
|
3
|
-
import { SectionProps } from "../../SectionProps-
|
|
3
|
+
import { SectionProps } from "../../SectionProps-03ff6d21.js";
|
|
4
4
|
declare const SectionContextDefault: import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const SectionContext: import("react").Context<import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
declare const Section: import("react").ForwardRefExoticComponent<SectionProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
15
|
"$id": "http://schema.mydesignsystem.com/header.schema.json",
|
|
16
16
|
"title": "Header",
|
|
17
|
+
"description": "Header layered on top by the CMS",
|
|
17
18
|
"type": "object",
|
|
18
19
|
"properties": {
|
|
19
20
|
"logo": {
|
|
@@ -69,6 +70,12 @@
|
|
|
69
70
|
"description": "Toggle the inversion of the flyout navigation",
|
|
70
71
|
"default": false
|
|
71
72
|
},
|
|
73
|
+
"dropdownInverted": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"title": "Dropdown Inverted",
|
|
76
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
77
|
+
"default": false
|
|
78
|
+
},
|
|
72
79
|
"floating": {
|
|
73
80
|
"type": "boolean",
|
|
74
81
|
"title": "Floating",
|
|
@@ -95,6 +102,28 @@
|
|
|
95
102
|
},
|
|
96
103
|
"active": {
|
|
97
104
|
"type": "boolean"
|
|
105
|
+
},
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"href": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"format": "uri"
|
|
114
|
+
},
|
|
115
|
+
"id": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"label": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"active": {
|
|
122
|
+
"type": "boolean"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
}
|
|
98
127
|
}
|
|
99
128
|
},
|
|
100
129
|
"additionalProperties": false,
|
|
@@ -106,7 +135,7 @@
|
|
|
106
135
|
"examples": [
|
|
107
136
|
[
|
|
108
137
|
{
|
|
109
|
-
"label": "
|
|
138
|
+
"label": "Navigation Item",
|
|
110
139
|
"href": "#"
|
|
111
140
|
},
|
|
112
141
|
{
|
|
@@ -115,8 +144,20 @@
|
|
|
115
144
|
"active": true
|
|
116
145
|
},
|
|
117
146
|
{
|
|
118
|
-
"label": "
|
|
119
|
-
"href": "#"
|
|
147
|
+
"label": "Item With Children",
|
|
148
|
+
"href": "#",
|
|
149
|
+
"items": [
|
|
150
|
+
{
|
|
151
|
+
"label": "Level 2 Item",
|
|
152
|
+
"href": "#",
|
|
153
|
+
"id": ""
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"label": "Another One",
|
|
157
|
+
"href": "#",
|
|
158
|
+
"id": ""
|
|
159
|
+
}
|
|
160
|
+
]
|
|
120
161
|
},
|
|
121
162
|
{
|
|
122
163
|
"label": "One more Item",
|
|
@@ -133,10 +174,7 @@
|
|
|
133
174
|
"const": "header"
|
|
134
175
|
}
|
|
135
176
|
},
|
|
136
|
-
"additionalProperties": false
|
|
137
|
-
"required": [
|
|
138
|
-
"logo"
|
|
139
|
-
]
|
|
177
|
+
"additionalProperties": false
|
|
140
178
|
},
|
|
141
179
|
"footer": {
|
|
142
180
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -217,6 +255,28 @@
|
|
|
217
255
|
},
|
|
218
256
|
"active": {
|
|
219
257
|
"type": "boolean"
|
|
258
|
+
},
|
|
259
|
+
"items": {
|
|
260
|
+
"type": "array",
|
|
261
|
+
"items": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"href": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"format": "uri"
|
|
267
|
+
},
|
|
268
|
+
"id": {
|
|
269
|
+
"type": "string"
|
|
270
|
+
},
|
|
271
|
+
"label": {
|
|
272
|
+
"type": "string"
|
|
273
|
+
},
|
|
274
|
+
"active": {
|
|
275
|
+
"type": "boolean"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"additionalProperties": false
|
|
279
|
+
}
|
|
220
280
|
}
|
|
221
281
|
},
|
|
222
282
|
"additionalProperties": false,
|
|
@@ -228,7 +288,7 @@
|
|
|
228
288
|
"examples": [
|
|
229
289
|
[
|
|
230
290
|
{
|
|
231
|
-
"label": "
|
|
291
|
+
"label": "Navigation Item",
|
|
232
292
|
"href": "#"
|
|
233
293
|
},
|
|
234
294
|
{
|
|
@@ -237,8 +297,20 @@
|
|
|
237
297
|
"active": true
|
|
238
298
|
},
|
|
239
299
|
{
|
|
240
|
-
"label": "
|
|
241
|
-
"href": "#"
|
|
300
|
+
"label": "Item With Children",
|
|
301
|
+
"href": "#",
|
|
302
|
+
"items": [
|
|
303
|
+
{
|
|
304
|
+
"label": "Level 2 Item",
|
|
305
|
+
"href": "#",
|
|
306
|
+
"id": ""
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"label": "Another One",
|
|
310
|
+
"href": "#",
|
|
311
|
+
"id": ""
|
|
312
|
+
}
|
|
313
|
+
]
|
|
242
314
|
},
|
|
243
315
|
{
|
|
244
316
|
"label": "One more Item",
|
package/dist/tokens/themes.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Thu, 22 Aug 2024 07:24:32 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
|
|
2730
|
+
* Generated on Thu, 22 Aug 2024 07:24:37 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
|
|
5461
|
+
* Generated on Thu, 22 Aug 2024 07:24:34 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
|
|
8462
|
+
* Generated on Thu, 22 Aug 2024 07:24:39 GMT
|
|
8463
8463
|
*/
|
|
8464
8464
|
:root [ks-theme=telekom] {
|
|
8465
8465
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
package/dist/tokens/tokens.css
CHANGED