@kickstartds/ds-agency-premium 1.4.0--canary.14.705.0 → 1.4.0--canary.14.719.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/SectionProps-83d399b4.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/header/header.css +2 -1
- package/dist/components/header/index.d.ts +6 -3
- package/dist/components/header/index.js +15 -9
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +2 -2
- package/dist/components/logo/index.d.ts +6 -3
- package/dist/components/logo/index.js +10 -4
- package/dist/components/nav-dropdown/nav-dropdown.css +5 -4
- package/dist/components/nav-dropdown/nav-dropdown.schema.dereffed.json +40 -0
- package/dist/components/nav-dropdown/nav-dropdown.schema.json +18 -0
- package/dist/components/nav-flyout/index.d.ts +33 -6
- package/dist/components/nav-flyout/index.js +10 -3
- package/dist/components/nav-flyout/nav-flyout.css +4 -3
- package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +169 -0
- package/dist/components/nav-flyout/nav-flyout.schema.json +19 -0
- package/dist/components/nav-main/index.d.ts +6 -3
- package/dist/components/nav-main/index.js +13 -6
- package/dist/components/nav-toggle/index.d.ts +6 -3
- package/dist/components/nav-toggle/index.js +9 -2
- package/dist/components/nav-toggle/nav-toggle.css +8 -5
- package/dist/components/nav-topbar/index.d.ts +28 -5
- package/dist/components/nav-topbar/index.js +11 -4
- package/dist/components/nav-topbar/nav-topbar.css +1 -3
- package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +107 -0
- package/dist/components/nav-topbar/nav-topbar.schema.json +16 -0
- package/dist/components/page-wrapper/tokens.css +1 -1
- 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/{BlogOverviewProps-f385fc47.d.ts → BlogOverviewProps-93230a76.d.ts} +0 -0
- /package/dist/{BlogPostProps-440f88a5.d.ts → BlogPostProps-83d399b4.d.ts} +0 -0
- /package/dist/{ImageStoryProps-e853e1e7.d.ts → ImageStoryProps-03ff6d21.d.ts} +0 -0
- /package/dist/components/{nav → nav-main}/js/NavToggle.client.d.ts +0 -0
- /package/dist/components/{nav → nav-main}/js/NavToggle.client.js +0 -0
- /package/dist/components/{nav → nav-main}/js/body.client.d.ts +0 -0
- /package/dist/components/{nav → nav-main}/js/body.client.js +0 -0
- /package/dist/components/{nav → nav-main}/js/navMainEvents.client.d.ts +0 -0
- /package/dist/components/{nav → nav-main}/js/navMainEvents.client.js +0 -0
|
@@ -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-
|
|
11
|
+
import { ImageStoryProps } from "./ImageStoryProps-03ff6d21.js";
|
|
12
12
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
13
13
|
import { LogosProps } from "./LogosProps-f9474fe2.js";
|
|
14
14
|
import { MosaicProps } from "./MosaicProps-d52c7151.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BlogOverviewProps } from "../../BlogOverviewProps-
|
|
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;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.dsa-header {
|
|
17
|
+
--dsa-header--max-width: var(--l-section--content-width-max);
|
|
17
18
|
--dsa-header--background: var(--ks-background-color-default);
|
|
18
19
|
--dsa-header_floating--background: linear-gradient(var(--ks-color-bg), transparent);
|
|
19
20
|
--dsa-header__logo--height: var(--dsa-logo--height);
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
}
|
|
38
39
|
.dsa-header__content {
|
|
39
40
|
padding: 0 var(--dsa-header--spacing-horizontal);
|
|
40
|
-
max-width: var(--
|
|
41
|
+
max-width: var(--dsa-header--max-width);
|
|
41
42
|
width: 100%;
|
|
42
43
|
margin: auto;
|
|
43
44
|
display: flex;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
2
3
|
import { HeaderProps } from "../../HeaderProps-e22382f1.js";
|
|
3
|
-
declare const
|
|
4
|
-
|
|
4
|
+
declare const HeaderContextDefault: import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const HeaderContext: import("react").Context<import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
|
+
declare const Header: import("react").ForwardRefExoticComponent<HeaderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { HeaderContextDefault, HeaderContext, Header };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "./header.css";
|
|
2
|
-
import { jsx,
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
4
5
|
import { NavMain } from '../nav-main/index.js';
|
|
5
6
|
import { Logo } from '../logo/index.js';
|
|
6
|
-
import '../nav/js/NavToggle.client.js';
|
|
7
|
+
import '../nav-main/js/NavToggle.client.js';
|
|
7
8
|
import '@kickstartds/core/lib/component';
|
|
8
|
-
import '../nav/js/navMainEvents.client.js';
|
|
9
|
+
import '../nav-main/js/navMainEvents.client.js';
|
|
9
10
|
import '@kickstartds/core/lib/core';
|
|
10
|
-
import '../nav/js/body.client.js';
|
|
11
|
+
import '../nav-main/js/body.client.js';
|
|
11
12
|
import '../nav-toggle/index.js';
|
|
12
13
|
import '../nav-topbar/index.js';
|
|
13
14
|
import '@kickstartds/base/lib/link';
|
|
@@ -16,10 +17,15 @@ import '../nav-dropdown/index.js';
|
|
|
16
17
|
import '../nav-flyout/index.js';
|
|
17
18
|
import '@kickstartds/base/lib/picture';
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const HeaderContextDefault = forwardRef(({ logo, floating, inverted = false, flyoutInverted = false, dropdownInverted = false, navItems = [], }, ref) => (jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), ref: ref, children: jsxs("div", { className: "dsa-header__content", children: [jsx(Logo, { ...logo, className: "dsa-header__logo", inverted: inverted }), jsx(NavMain, { flyoutInverted: flyoutInverted, dropdownInverted: dropdownInverted, items: navItems, logo: {
|
|
21
|
+
...logo,
|
|
22
|
+
inverted: flyoutInverted,
|
|
23
|
+
} })] }) })));
|
|
24
|
+
const HeaderContext = createContext(HeaderContextDefault);
|
|
25
|
+
const Header = forwardRef((props, ref) => {
|
|
26
|
+
const Component = useContext(HeaderContext);
|
|
27
|
+
return jsx(Component, { ...props, ref: ref });
|
|
28
|
+
});
|
|
23
29
|
Header.displayName = "Header";
|
|
24
30
|
|
|
25
|
-
export { Header };
|
|
31
|
+
export { Header, HeaderContext, HeaderContextDefault };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
import { ImageStoryProps } from "../../ImageStoryProps-
|
|
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>>;
|
|
@@ -72,6 +72,6 @@ interface SettingsProps {
|
|
|
72
72
|
*/
|
|
73
73
|
seo: SeoProps;
|
|
74
74
|
}
|
|
75
|
-
export * from "../../BlogPostProps-
|
|
76
|
-
export * from "../../BlogOverviewProps-
|
|
75
|
+
export * from "../../BlogPostProps-83d399b4.js";
|
|
76
|
+
export * from "../../BlogOverviewProps-93230a76.js";
|
|
77
77
|
export { Sections, ToggleFloating, ToggleInverted, ToggleInverted1, PageProps, Header, Footer, SettingsProps };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ImgHTMLAttributes } from "react";
|
|
2
3
|
import { LogoProps } from "../../LogoProps-01796f0a.js";
|
|
3
|
-
declare const
|
|
4
|
-
|
|
4
|
+
declare const LogoContextDefault: import("react").ForwardRefExoticComponent<LogoProps & ImgHTMLAttributes<HTMLImageElement> & import("react").RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const LogoContext: import("react").Context<import("react").ForwardRefExoticComponent<LogoProps & ImgHTMLAttributes<HTMLImageElement> & import("react").RefAttributes<HTMLImageElement>>>;
|
|
6
|
+
declare const Logo: import("react").ForwardRefExoticComponent<LogoProps & ImgHTMLAttributes<HTMLImageElement> & import("react").RefAttributes<HTMLImageElement>>;
|
|
7
|
+
export { LogoContextDefault, LogoContext, Logo };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import "./logo.css";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
4
5
|
import { Picture } from '@kickstartds/base/lib/picture';
|
|
5
6
|
import { Link } from '@kickstartds/base/lib/link';
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
-
return (jsx(Link, { className: classnames("dsa-logo", className), href: homepageHref, children: jsx(Picture, { className: "dsa-logo__img", src: inverted && srcInverted ? srcInverted : src, alt: alt, width: width, height: height }) }));
|
|
9
|
-
};
|
|
8
|
+
const LogoContextDefault = forwardRef(({ src, srcInverted, alt, inverted = false, width, height, homepageHref, className, }, ref) => {
|
|
9
|
+
return (jsx(Link, { className: classnames("dsa-logo", className), href: homepageHref, children: jsx(Picture, { ref: ref, className: "dsa-logo__img", src: inverted && srcInverted ? srcInverted : src, alt: alt, width: width, height: height }) }));
|
|
10
|
+
});
|
|
11
|
+
const LogoContext = createContext(LogoContextDefault);
|
|
12
|
+
const Logo = forwardRef((props, ref) => {
|
|
13
|
+
const Component = useContext(LogoContext);
|
|
14
|
+
return jsx(Component, { ...props, ref: ref });
|
|
15
|
+
});
|
|
10
16
|
Logo.displayName = "Logo";
|
|
11
17
|
|
|
12
|
-
export { Logo };
|
|
18
|
+
export { Logo, LogoContext, LogoContextDefault };
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
--dsa-nav-dropdown__label--color_active: var(--ks-text-color-interface-interactive-active);
|
|
11
11
|
--dsa-nav-dropdown__label--font: var(--ks-font-interface-m);
|
|
12
12
|
--dsa-nav-dropdown__label--font-weight: var(--ks-font-weight-semi-bold);
|
|
13
|
-
--dsa-nav-dropdown__label--font-weight_active: var(--ks-font-weight-
|
|
13
|
+
--dsa-nav-dropdown__label--font-weight_active: var(--ks-font-weight-bold);
|
|
14
14
|
--dsa-nav-dropdown__label--padding: 0.35em 0.25em;
|
|
15
15
|
--dsa-nav-dropdown__label_dimmed--opacity: 0.6;
|
|
16
16
|
}
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
.dsa-nav-dropdown:hover .dsa-nav-dropdown__label:not(:hover) {
|
|
34
34
|
opacity: var(--dsa-nav-dropdown__label_dimmed--opacity);
|
|
35
35
|
}
|
|
36
|
+
.dsa-nav-dropdown .dsa-nav-dropdown__item--active .dsa-nav-dropdown__label {
|
|
37
|
+
color: var(--dsa-nav-dropdown__label--color_active);
|
|
38
|
+
font-weight: var(--dsa-nav-dropdown__label--font-weight_active);
|
|
39
|
+
}
|
|
36
40
|
.dsa-nav-dropdown .dsa-nav-dropdown__label {
|
|
37
41
|
text-decoration: var(--dsa-nav-dropdown__label--text-decoration);
|
|
38
42
|
font: inherit;
|
|
@@ -46,7 +50,4 @@
|
|
|
46
50
|
.dsa-nav-dropdown .dsa-nav-dropdown__label:hover, .dsa-nav-dropdown .dsa-nav-dropdown__label:focus, .dsa-nav-dropdown .dsa-nav-dropdown__label:active {
|
|
47
51
|
color: var(--dsa-nav-dropdown__label--color_hover);
|
|
48
52
|
text-decoration: var(--dsa-nav-dropdown__label--text-decoration_hover);
|
|
49
|
-
}
|
|
50
|
-
.dsa-nav-dropdown .dsa-nav-dropdown__label--active {
|
|
51
|
-
color: var(--dsa-nav-dropdown__label--color_active);
|
|
52
53
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/nav-dropdown.schema.json",
|
|
4
|
+
"title": "Nav Dropdown",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"inverted": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"title": "Dropdown Inverted",
|
|
10
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"href": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "uri"
|
|
21
|
+
},
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"active": {
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"className": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"type": {
|
|
36
|
+
"const": "nav-dropdown"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/nav-dropdown.schema.json",
|
|
4
|
+
"title": "Nav Dropdown",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"inverted": {
|
|
8
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/dropdownInverted"
|
|
9
|
+
},
|
|
10
|
+
"items": {
|
|
11
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/items/items/properties/items"
|
|
12
|
+
},
|
|
13
|
+
"className": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
}
|
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
5
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
6
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
7
|
+
*/
|
|
8
|
+
import { LogoProps } from "../../LogoProps-01796f0a.js";
|
|
9
|
+
import { HTMLAttributes } from "react";
|
|
10
|
+
/**
|
|
11
|
+
* Toggle the inversion of the flyout navigation
|
|
12
|
+
*/
|
|
13
|
+
type FlyoutInverted = boolean;
|
|
14
|
+
interface NavFlyoutProps {
|
|
15
|
+
items?: {
|
|
16
|
+
href: string;
|
|
17
|
+
label: string;
|
|
18
|
+
active?: boolean;
|
|
19
|
+
items?: {
|
|
20
|
+
href?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
active?: boolean;
|
|
23
|
+
}[];
|
|
24
|
+
}[];
|
|
25
|
+
inverted?: FlyoutInverted;
|
|
26
|
+
/**
|
|
27
|
+
* Referenced component LogoProps
|
|
28
|
+
*/
|
|
29
|
+
logo: LogoProps;
|
|
30
|
+
}
|
|
31
|
+
declare const NavFlyoutContextDefault: import("react").ForwardRefExoticComponent<NavFlyoutProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const NavFlyoutContext: import("react").Context<import("react").ForwardRefExoticComponent<NavFlyoutProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
33
|
+
declare const NavFlyout: import("react").ForwardRefExoticComponent<NavFlyoutProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export { NavFlyoutContextDefault, NavFlyoutContext, NavFlyout };
|
|
@@ -4,12 +4,19 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { Link } from '@kickstartds/base/lib/link';
|
|
5
5
|
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
6
|
import { Logo } from '../logo/index.js';
|
|
7
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
7
8
|
import '@kickstartds/base/lib/picture';
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
+
const NavFlyoutContextDefault = forwardRef(({ items, inverted, logo }, ref) => items && items.length > 0 ? (jsxs("nav", { className: "dsa-nav-flyout", "ks-inverted": inverted.toString(), id: "dsa-nav-flyout", "aria-label": "Hauptnavigation", ref: ref, children: [jsx(Logo, { ...logo, className: "dsa-nav-flyout__logo" }), jsx("ul", { className: "dsa-nav-flyout__list", children: items.map(({ label, href, active, items: subItems }) => {
|
|
10
11
|
return (jsxs("li", { className: classnames("dsa-nav-flyout__item", active && "dsa-nav-flyout__item--active"), children: [subItems?.length ? (jsxs("span", { tabIndex: 0, className: "dsa-nav-flyout__label", children: [label, subItems?.length ? (jsx(Icon, { className: "dsa-nav-flyout__label__icon", icon: "chevron-down" })) : ("")] })) : (jsx(Link, { href: href, className: `dsa-nav-flyout__label dsa-nav-flyout__link`, children: label })), subItems?.length ? (jsx("ul", { className: "dsa-nav-flyout__sublist", children: subItems.map(({ label, href, active }) => {
|
|
11
12
|
return (jsx("li", { className: classnames("dsa-nav-flyout__item", active && "dsa-nav-flyout__item--active"), children: jsx(Link, { href: href, className: `dsa-nav-flyout__label dsa-nav-flyout__link`, children: label }) }, href));
|
|
12
13
|
}) })) : null] }, href));
|
|
13
|
-
}) })] })) : null;
|
|
14
|
+
}) })] })) : null);
|
|
15
|
+
const NavFlyoutContext = createContext(NavFlyoutContextDefault);
|
|
16
|
+
const NavFlyout = forwardRef((props, ref) => {
|
|
17
|
+
const Component = useContext(NavFlyoutContext);
|
|
18
|
+
return jsx(Component, { ...props, ref: ref });
|
|
19
|
+
});
|
|
20
|
+
NavFlyout.displayName = "NavFlyout";
|
|
14
21
|
|
|
15
|
-
export { NavFlyout };
|
|
22
|
+
export { NavFlyout, NavFlyoutContext, NavFlyoutContextDefault };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.dsa-nav-flyout {
|
|
2
2
|
--dsa-nav-flyout--padding: 0 var(--ks-spacing-inset-xl);
|
|
3
|
-
--dsa-nav-flyout--max-width:
|
|
4
|
-
--dsa-nav-flyout--shadow: 20px 0px 30px var(--ks-color-fg-inverted-base);
|
|
3
|
+
--dsa-nav-flyout--max-width: 18em;
|
|
4
|
+
--dsa-nav-flyout--shadow: 20px 0px 30px var(--ks-color-fg-inverted-alpha-5-base);
|
|
5
5
|
--dsa-nav-flyout--gap: var(--ks-spacing-stack-m);
|
|
6
6
|
--dsa-nav-flyout--background: linear-gradient(
|
|
7
7
|
125deg,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
--dsa-nav-flyout__label--padding: 0.25em 0;
|
|
18
18
|
--dsa-nav-flyout__label--text-decoration: none;
|
|
19
19
|
--dsa-nav-flyout__label--text-decoration_hover: none;
|
|
20
|
-
--dsa-nav-flyout__label_dimmed--opacity: 0.
|
|
20
|
+
--dsa-nav-flyout__label_dimmed--opacity: 0.8;
|
|
21
21
|
--dsa-nav-flyout__label__icon--size: 1.5em;
|
|
22
22
|
--dsa-nav-flyout__sublist--padding: 0.25em 0 0.5em 0.75em;
|
|
23
23
|
--dsa-nav-flyout__sublist__label--color: var(--ks-color-fg);
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
.dsa-nav-flyout {
|
|
30
30
|
display: none;
|
|
31
|
+
font: var(--dsa-nav-flyout__label--font);
|
|
31
32
|
flex-direction: column;
|
|
32
33
|
gap: var(--dsa-nav-flyout--gap);
|
|
33
34
|
left: -100%;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/nav-flyout.schema.json",
|
|
4
|
+
"title": "Nav Flyout",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"href": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "uri"
|
|
15
|
+
},
|
|
16
|
+
"label": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"active": {
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
},
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"href": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "uri"
|
|
30
|
+
},
|
|
31
|
+
"label": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"active": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": [
|
|
44
|
+
"href",
|
|
45
|
+
"label"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"examples": [
|
|
49
|
+
[
|
|
50
|
+
{
|
|
51
|
+
"label": "Active Item",
|
|
52
|
+
"href": "#",
|
|
53
|
+
"active": true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"label": "Navigation Item",
|
|
57
|
+
"href": "#"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "Dropdown",
|
|
61
|
+
"href": "#",
|
|
62
|
+
"items": [
|
|
63
|
+
{
|
|
64
|
+
"label": "Level 2 Item",
|
|
65
|
+
"href": "#"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "Active Item",
|
|
69
|
+
"active": true,
|
|
70
|
+
"href": "#"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"label": "An Item with a longer Label",
|
|
74
|
+
"href": "#"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"label": "And One last one",
|
|
78
|
+
"href": "#"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": "One more Item",
|
|
84
|
+
"href": "#"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"label": "Last Item",
|
|
88
|
+
"href": "#"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"inverted": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"title": "Flyout Inverted",
|
|
96
|
+
"description": "Toggle the inversion of the flyout navigation",
|
|
97
|
+
"default": false
|
|
98
|
+
},
|
|
99
|
+
"logo": {
|
|
100
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
101
|
+
"$id": "http://schema.mydesignsystem.com/logo.schema.json",
|
|
102
|
+
"title": "Logo",
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"src": {
|
|
106
|
+
"title": "Source",
|
|
107
|
+
"description": "Picture source",
|
|
108
|
+
"type": "string",
|
|
109
|
+
"format": "image"
|
|
110
|
+
},
|
|
111
|
+
"srcInverted": {
|
|
112
|
+
"title": "Source",
|
|
113
|
+
"description": "Picture source",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"format": "image"
|
|
116
|
+
},
|
|
117
|
+
"alt": {
|
|
118
|
+
"title": "Alt text",
|
|
119
|
+
"description": "Alt text to display for picture",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"homepageHref": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"format": "uri",
|
|
125
|
+
"default": "/"
|
|
126
|
+
},
|
|
127
|
+
"inverted": {
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"title": "Inverted",
|
|
130
|
+
"description": "Toggle wether the inverted or default version of the logo is being displayed"
|
|
131
|
+
},
|
|
132
|
+
"width": {
|
|
133
|
+
"title": "Width",
|
|
134
|
+
"description": "Width of the picture",
|
|
135
|
+
"type": "integer",
|
|
136
|
+
"minimum": 0,
|
|
137
|
+
"examples": [
|
|
138
|
+
300
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"height": {
|
|
142
|
+
"title": "Height",
|
|
143
|
+
"description": "Height of the picture",
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"minimum": 0,
|
|
146
|
+
"examples": [
|
|
147
|
+
300
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"className": {
|
|
151
|
+
"title": "Additional Classes",
|
|
152
|
+
"description": "Add additional css classes that should be applied to the logo",
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"type": {
|
|
156
|
+
"const": "logo"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"additionalProperties": false
|
|
160
|
+
},
|
|
161
|
+
"type": {
|
|
162
|
+
"const": "nav-flyout"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"additionalProperties": false,
|
|
166
|
+
"required": [
|
|
167
|
+
"logo"
|
|
168
|
+
]
|
|
169
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/nav-flyout.schema.json",
|
|
4
|
+
"title": "Nav Flyout",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/items"
|
|
9
|
+
},
|
|
10
|
+
"inverted": {
|
|
11
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/flyoutInverted"
|
|
12
|
+
},
|
|
13
|
+
"logo": {
|
|
14
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/logo"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["logo"]
|
|
19
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
4
5
|
* This file was automatically generated by json-schema-to-typescript.
|
|
@@ -53,5 +54,7 @@ interface CTA {
|
|
|
53
54
|
label?: Label;
|
|
54
55
|
target?: Target;
|
|
55
56
|
}
|
|
56
|
-
declare const
|
|
57
|
-
|
|
57
|
+
declare const NavMainContextDefault: import("react").ForwardRefExoticComponent<NavMainProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
58
|
+
declare const NavMainContext: import("react").Context<import("react").ForwardRefExoticComponent<NavMainProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
59
|
+
declare const NavMain: import("react").ForwardRefExoticComponent<NavMainProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
60
|
+
export { NavMainContextDefault, NavMainContext, NavMain };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
import
|
|
2
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
3
|
+
import './js/NavToggle.client.js';
|
|
4
|
+
import './js/navMainEvents.client.js';
|
|
5
|
+
import { NavToggle } from '../nav-toggle/index.js';
|
|
5
6
|
import { NavTopbar } from '../nav-topbar/index.js';
|
|
6
7
|
import { NavFlyout } from '../nav-flyout/index.js';
|
|
7
8
|
import '@kickstartds/core/lib/component';
|
|
8
|
-
import '
|
|
9
|
+
import './js/body.client.js';
|
|
9
10
|
import '@kickstartds/core/lib/core';
|
|
10
11
|
import 'classnames';
|
|
11
12
|
import '@kickstartds/base/lib/link';
|
|
@@ -14,6 +15,12 @@ import '../nav-dropdown/index.js';
|
|
|
14
15
|
import '../logo/index.js';
|
|
15
16
|
import '@kickstartds/base/lib/picture';
|
|
16
17
|
|
|
17
|
-
const
|
|
18
|
+
const NavMainContextDefault = forwardRef(({ logo, items, flyoutInverted, dropdownInverted }, ref) => items && items.length > 0 ? (jsxs("div", { ref: ref, className: "dsa-nav-main", children: [jsx(NavToggle, {}), jsx(NavTopbar, { items: items, inverted: dropdownInverted }), jsx(NavFlyout, { items: items, inverted: flyoutInverted, logo: logo })] })) : null);
|
|
19
|
+
const NavMainContext = createContext(NavMainContextDefault);
|
|
20
|
+
const NavMain = forwardRef((props, ref) => {
|
|
21
|
+
const Component = useContext(NavMainContext);
|
|
22
|
+
return jsx(Component, { ...props, ref: ref });
|
|
23
|
+
});
|
|
24
|
+
NavMain.displayName = "NavMain";
|
|
18
25
|
|
|
19
|
-
export { NavMain };
|
|
26
|
+
export { NavMain, NavMainContext, NavMainContextDefault };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
declare const NavToggleContextDefault: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
declare const NavToggleContext: import("react").Context<import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
5
|
+
declare const NavToggle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export { NavToggleContextDefault, NavToggleContext, NavToggle };
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import "./nav-toggle.css";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
3
4
|
|
|
4
|
-
const
|
|
5
|
+
const NavToggleContextDefault = forwardRef((_, ref) => (jsxs("button", { ref: ref, 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" }) })] })));
|
|
6
|
+
const NavToggleContext = createContext(NavToggleContextDefault);
|
|
7
|
+
const NavToggle = forwardRef((props, ref) => {
|
|
8
|
+
const Component = useContext(NavToggleContext);
|
|
9
|
+
return jsx(Component, { ...props, ref: ref });
|
|
10
|
+
});
|
|
11
|
+
NavToggle.displayName = "NavToggle";
|
|
5
12
|
|
|
6
|
-
export {
|
|
13
|
+
export { NavToggle, NavToggleContext, NavToggleContextDefault };
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
--dsa-nav-toggle--size: var(--dsa-logo--height);
|
|
3
3
|
--dsa-nav-toggle--color: var(--ks-text-color-default);
|
|
4
4
|
--dsa-nav-toggle--color_open: var(--ks-text-color-default);
|
|
5
|
+
--dsa-nav-toggle--shadow: none;
|
|
6
|
+
--dsa-nav-toggle_floating--shadow: 0 0 20px 2px var(--ks-color-fg-inverted-alpha-5);
|
|
5
7
|
--dsa-nav-toggle_floating--color: var(--ks-text-color-interface-interactive);
|
|
6
8
|
--dsa-nav-toggle_floating--color_open: var(--ks-text-color-interface-interactive);
|
|
7
9
|
}
|
|
@@ -55,19 +57,20 @@ button.dsa-nav-toggle .dsa-nav-toggle__icon {
|
|
|
55
57
|
transform: scale(0.8) translate(2.5%, 2.5%);
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
.overlay-open button.dsa-nav-toggle .dsa-nav-toggle__icon
|
|
60
|
+
.overlay-open button.dsa-nav-toggle .dsa-nav-toggle__icon {
|
|
59
61
|
color: var(--dsa-nav-toggle--color_open);
|
|
60
62
|
}
|
|
61
|
-
.
|
|
62
|
-
|
|
63
|
+
.dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon .dsa-nav-toggle__icon__middle, .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon::before, .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
|
|
64
|
+
box-shadow: var(--dsa-nav-toggle_floating--shadow);
|
|
63
65
|
}
|
|
64
|
-
.
|
|
65
|
-
color: var(--dsa-nav-
|
|
66
|
+
.overlay-open .dsa-header--floating button.dsa-nav-toggle .dsa-nav-toggle__icon {
|
|
67
|
+
color: var(--dsa-nav-toggle_floating--color_open);
|
|
66
68
|
}
|
|
67
69
|
button.dsa-nav-toggle .dsa-nav-toggle__icon::before, button.dsa-nav-toggle .dsa-nav-toggle__icon::after {
|
|
68
70
|
content: "";
|
|
69
71
|
}
|
|
70
72
|
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 {
|
|
73
|
+
box-shadow: var(--dsa-nav-toggle--shadow);
|
|
71
74
|
position: absolute;
|
|
72
75
|
width: 100%;
|
|
73
76
|
height: 3px;
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Toggle the inversion of the dropdown navigation
|
|
11
|
+
*/
|
|
12
|
+
type DropdownInverted = boolean;
|
|
13
|
+
interface NavTopbarProps {
|
|
14
|
+
items?: {
|
|
15
|
+
href: string;
|
|
16
|
+
label: string;
|
|
17
|
+
active?: boolean;
|
|
18
|
+
items?: {
|
|
19
|
+
href?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
active?: boolean;
|
|
22
|
+
}[];
|
|
23
|
+
}[];
|
|
24
|
+
inverted?: DropdownInverted;
|
|
25
|
+
}
|
|
26
|
+
declare const NavTopbarContextDefault: import("react").ForwardRefExoticComponent<NavTopbarProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const NavTopbarContext: import("react").Context<import("react").ForwardRefExoticComponent<NavTopbarProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
28
|
+
declare const NavTopbar: import("react").ForwardRefExoticComponent<NavTopbarProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export { NavTopbarContextDefault, NavTopbarContext, NavTopbar };
|
|
@@ -4,9 +4,16 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { Link } from '@kickstartds/base/lib/link';
|
|
5
5
|
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
6
|
import { NavDropdown } from '../nav-dropdown/index.js';
|
|
7
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
7
8
|
|
|
8
|
-
const
|
|
9
|
-
return (jsxs("li", { className: classnames("dsa-nav-topbar__item", active && "dsa-nav-topbar__item--active", subItems?.length && "dsa-nav-topbar__item--dropdown"), children: [subItems?.length ? (jsxs("span", { tabIndex: 0, className: "dsa-nav-topbar__label", children: [label, subItems?.length ? (jsx(Icon, { className: "dsa-nav-topbar__label__icon", icon: "chevron-down" })) : ("")] })) : (jsx(Link, { href: href, className: `dsa-nav-topbar__label dsa-nav-topbar__link`, children: label })), subItems?.length ? (jsx(NavDropdown, { items: subItems, inverted:
|
|
10
|
-
}) }) })) : null;
|
|
9
|
+
const NavTopbarContextDefault = forwardRef(({ items, inverted }, ref) => items && items.length > 0 ? (jsx("nav", { className: "dsa-nav-topbar", id: "dsa-nav-main", "aria-label": "Hauptnavigation", ref: ref, children: jsx("ul", { className: "dsa-nav-topbar__list", children: items.map(({ label, href, active, items: subItems }) => {
|
|
10
|
+
return (jsxs("li", { className: classnames("dsa-nav-topbar__item", active && "dsa-nav-topbar__item--active", subItems?.length && "dsa-nav-topbar__item--dropdown"), children: [subItems?.length ? (jsxs("span", { tabIndex: 0, className: "dsa-nav-topbar__label", children: [label, subItems?.length ? (jsx(Icon, { className: "dsa-nav-topbar__label__icon", icon: "chevron-down" })) : ("")] })) : (jsx(Link, { href: href, className: `dsa-nav-topbar__label dsa-nav-topbar__link`, children: label })), subItems?.length ? (jsx(NavDropdown, { items: subItems, inverted: inverted })) : null] }, href));
|
|
11
|
+
}) }) })) : null);
|
|
12
|
+
const NavTopbarContext = createContext(NavTopbarContextDefault);
|
|
13
|
+
const NavTopbar = forwardRef((props, ref) => {
|
|
14
|
+
const Component = useContext(NavTopbarContext);
|
|
15
|
+
return jsx(Component, { ...props, ref: ref });
|
|
16
|
+
});
|
|
17
|
+
NavTopbar.displayName = "NavTopbar";
|
|
11
18
|
|
|
12
|
-
export { NavTopbar };
|
|
19
|
+
export { NavTopbar, NavTopbarContext, NavTopbarContextDefault };
|
|
@@ -20,12 +20,10 @@
|
|
|
20
20
|
--g-link--text-decoration: none;
|
|
21
21
|
--g-link--text-decoration_hover: none;
|
|
22
22
|
display: none;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
justify-content: flex-start;
|
|
25
23
|
}
|
|
26
24
|
@media (min-width: 62rem) {
|
|
27
25
|
.dsa-nav-topbar {
|
|
28
|
-
display:
|
|
26
|
+
display: block;
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
.dsa-nav-topbar ul {
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/nav-topbar.schema.json",
|
|
4
|
+
"title": "Nav Topbar",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"href": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"format": "uri"
|
|
15
|
+
},
|
|
16
|
+
"label": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"active": {
|
|
20
|
+
"type": "boolean"
|
|
21
|
+
},
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"href": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "uri"
|
|
30
|
+
},
|
|
31
|
+
"label": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"active": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": [
|
|
44
|
+
"href",
|
|
45
|
+
"label"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"examples": [
|
|
49
|
+
[
|
|
50
|
+
{
|
|
51
|
+
"label": "Active Item",
|
|
52
|
+
"href": "#",
|
|
53
|
+
"active": true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"label": "Navigation Item",
|
|
57
|
+
"href": "#"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "Dropdown",
|
|
61
|
+
"href": "#",
|
|
62
|
+
"items": [
|
|
63
|
+
{
|
|
64
|
+
"label": "Level 2 Item",
|
|
65
|
+
"href": "#"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "Active Item",
|
|
69
|
+
"active": true,
|
|
70
|
+
"href": "#"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"label": "An Item with a longer Label",
|
|
74
|
+
"href": "#"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"label": "And One last one",
|
|
78
|
+
"href": "#"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": "One more Item",
|
|
84
|
+
"href": "#"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"label": "Last Item",
|
|
88
|
+
"href": "#"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"inverted": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"title": "Dropdown Inverted",
|
|
96
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
97
|
+
"default": false
|
|
98
|
+
},
|
|
99
|
+
"type": {
|
|
100
|
+
"const": "nav-topbar"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": [
|
|
105
|
+
"logo"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "http://schema.mydesignsystem.com/nav-topbar.schema.json",
|
|
4
|
+
"title": "Nav Topbar",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/items"
|
|
9
|
+
},
|
|
10
|
+
"inverted": {
|
|
11
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/dropdownInverted"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": ["logo"]
|
|
16
|
+
}
|
package/dist/tokens/themes.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Fri, 23 Aug 2024
|
|
3
|
+
* Generated on Fri, 23 Aug 2024 12:31:58 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 Fri, 23 Aug 2024
|
|
2730
|
+
* Generated on Fri, 23 Aug 2024 12:32:03 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 Fri, 23 Aug 2024
|
|
5461
|
+
* Generated on Fri, 23 Aug 2024 12:32:01 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 Fri, 23 Aug 2024
|
|
8462
|
+
* Generated on Fri, 23 Aug 2024 12:32:06 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
package/dist/tokens/tokens.js
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|