@kickstartds/ds-agency-premium 1.3.48 → 1.3.50--canary.663.b100f6e.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/{FooterProps-10c950a6.d.ts → FooterProps-22e0307b.d.ts} +6 -0
- package/dist/{HeaderProps-7be94a61.d.ts → HeaderProps-dd2071a8.d.ts} +16 -2
- package/dist/components/cta/cta.css +37 -37
- 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.schema.dereffed.json +36 -2
- 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 +44 -6
- 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/image.css +8 -8
- package/dist/components/image/index.js +1 -1
- package/dist/components/index/index.d.ts +2 -2
- package/dist/components/nav-dropdown/index.d.ts +23 -0
- package/dist/components/nav-dropdown/index.js +9 -0
- package/dist/components/nav-flyout/index.d.ts +8 -0
- package/dist/components/nav-flyout/index.js +15 -0
- package/dist/components/nav-flyout/nav-flyout.css +63 -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 +70 -2
- package/dist/components/nav-main/nav-main.schema.json +52 -3
- 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 +139 -0
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +29 -4
- package/dist/components/settings/settings.schema.dereffed.json +80 -8
- 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/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
|
@@ -27,6 +27,10 @@ type Height = number;
|
|
|
27
27
|
* Toggle the inversion of the flyout navigation
|
|
28
28
|
*/
|
|
29
29
|
type FlyoutInverted = boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Toggle the inversion of the dropdown navigation
|
|
32
|
+
*/
|
|
33
|
+
type DropdownInverted = boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Make the header float over the first Section
|
|
32
36
|
*/
|
|
@@ -35,15 +39,25 @@ type Floating = boolean;
|
|
|
35
39
|
* Invert the color scheme of the header
|
|
36
40
|
*/
|
|
37
41
|
type Inverted = boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Header layered on top by the CMS
|
|
44
|
+
*/
|
|
38
45
|
interface HeaderProps {
|
|
39
|
-
logo
|
|
46
|
+
logo?: Logo;
|
|
40
47
|
flyoutInverted?: FlyoutInverted;
|
|
48
|
+
dropdownInverted?: DropdownInverted;
|
|
41
49
|
floating?: Floating;
|
|
42
50
|
inverted?: Inverted;
|
|
43
51
|
navItems?: {
|
|
44
52
|
href: string;
|
|
45
53
|
label: string;
|
|
46
54
|
active?: boolean;
|
|
55
|
+
items?: {
|
|
56
|
+
href?: string;
|
|
57
|
+
id?: string;
|
|
58
|
+
label?: string;
|
|
59
|
+
active?: boolean;
|
|
60
|
+
}[];
|
|
47
61
|
}[];
|
|
48
62
|
}
|
|
49
63
|
interface Logo {
|
|
@@ -54,4 +68,4 @@ interface Logo {
|
|
|
54
68
|
width?: Width;
|
|
55
69
|
height?: Height;
|
|
56
70
|
}
|
|
57
|
-
export { Source, Source1, AltText, Width, Height, FlyoutInverted, Floating, Inverted, HeaderProps, Logo };
|
|
71
|
+
export { Source, Source1, AltText, Width, Height, FlyoutInverted, DropdownInverted, Floating, Inverted, HeaderProps, Logo };
|
|
@@ -15,27 +15,19 @@
|
|
|
15
15
|
--dsa-cta_highlight-text__copy--font: var(--ks-font-copy-l);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
.dsa-header--floating + .l-container--storytelling .c-storytelling.dsa-cta,
|
|
20
|
-
.dsa-header--floating + .l-section .l-container--storytelling:first-child .c-storytelling.dsa-cta {
|
|
21
|
-
padding-top: calc(var(--dsa-header--height) + var(--dsa-cta--horizontal-padding, var(--l-section--content-padding)));
|
|
22
|
-
z-index: 1;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.c-storytelling.dsa-cta {
|
|
18
|
+
.dsa-cta.c-storytelling {
|
|
27
19
|
--c-storytelling--padding-ratio: 2;
|
|
28
20
|
--c-storytelling--horizontal-padding: var(--l-section--content-padding);
|
|
29
21
|
justify-content: center;
|
|
30
22
|
align-items: center;
|
|
31
23
|
padding: 0;
|
|
32
24
|
}
|
|
33
|
-
.c-storytelling
|
|
25
|
+
.dsa-cta.c-storytelling--color-neutral {
|
|
34
26
|
--dsa-cta__copy--color: var(--dsa-cta_color-neutral__copy--color, var(--ks-text-color-default));
|
|
35
27
|
--dsa-cta__headline--color: var(--dsa-cta_color-neutral__headline--color, var(--ks-text-color-default));
|
|
36
28
|
--dsa-cta__subheadline--color: var(--dsa-cta_color-neutral__subheadline--color, var(--ks-text-color-default));
|
|
37
29
|
}
|
|
38
|
-
.c-storytelling
|
|
30
|
+
.dsa-cta.c-storytelling--highlight-text {
|
|
39
31
|
--dsa-cta__copy--font: var(--dsa-cta_highlight-text__copy--font, var(--ks-font-copy-l));
|
|
40
32
|
--dsa-cta__headline--font: var(--dsa-cta_highlight-text__headline--font, var(--dsa-headline_h1--font));
|
|
41
33
|
--dsa-cta__subheadline--font: var(
|
|
@@ -43,90 +35,98 @@
|
|
|
43
35
|
var(--dsa-headline_h1__subheadline--font)
|
|
44
36
|
);
|
|
45
37
|
}
|
|
46
|
-
.
|
|
38
|
+
.dsa-cta.c-storytelling.c-storytelling--full {
|
|
47
39
|
--c-storytelling--padding-ratio: 1;
|
|
48
40
|
}
|
|
49
|
-
.
|
|
41
|
+
.dsa-cta.c-storytelling.c-storytelling--full.c-storytelling--order-desktop-image-last .c-storytelling__box {
|
|
50
42
|
padding-left: var(--dsa-cta--horizontal-padding);
|
|
51
43
|
}
|
|
52
|
-
.c-storytelling.dsa-cta
|
|
44
|
+
.dsa-cta.c-storytelling.dsa-cta--align-top {
|
|
53
45
|
align-items: flex-start;
|
|
54
46
|
}
|
|
55
|
-
.c-storytelling.dsa-cta
|
|
47
|
+
.dsa-cta.c-storytelling.dsa-cta--align-bottom {
|
|
56
48
|
align-items: flex-end;
|
|
57
49
|
}
|
|
58
|
-
.c-storytelling.dsa-cta
|
|
50
|
+
.dsa-cta.c-storytelling.dsa-cta--highlight-text .c-storytelling__text {
|
|
59
51
|
font: var(--ks-font-copy-l);
|
|
60
52
|
color: var(--ks-color-fg);
|
|
61
53
|
}
|
|
62
|
-
.c-storytelling
|
|
54
|
+
.dsa-cta.c-storytelling .c-storytelling__box {
|
|
63
55
|
width: 100%;
|
|
64
56
|
padding: var(--dsa-cta--vertical-padding, var(--l-section--space-default)) var(--dsa-cta--horizontal-padding, var(--l-section--content-padding));
|
|
65
57
|
}
|
|
66
58
|
@container storytelling (max-width: 640px) {
|
|
67
|
-
.c-storytelling
|
|
59
|
+
.dsa-cta.c-storytelling .c-storytelling__box {
|
|
68
60
|
padding-top: calc(var(--dsa-cta--vertical-padding, var(--l-section--space-default)) / var(--c-storytelling--padding-ratio));
|
|
69
61
|
}
|
|
70
|
-
.c-storytelling
|
|
62
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
71
63
|
padding-top: var(--dsa-cta--vertical-padding, var(--l-section--space-default));
|
|
72
64
|
}
|
|
73
65
|
}
|
|
74
|
-
.c-storytelling
|
|
66
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
75
67
|
padding: var(--dsa-cta--vertical-padding, var(--l-section--space-default)) var(--dsa-cta--horizontal-padding, var(--l-section--content-padding));
|
|
76
68
|
}
|
|
77
|
-
.c-storytelling
|
|
69
|
+
.dsa-cta.c-storytelling .c-storytelling__box__content {
|
|
78
70
|
max-width: 100%;
|
|
79
71
|
}
|
|
80
|
-
.c-storytelling
|
|
72
|
+
.dsa-cta.c-storytelling .c-storytelling__box .dsa-headline__headline {
|
|
81
73
|
font: var(--dsa-cta__headline--font, var(--dsa-headline_h2--font, var(--ks-font-display-xl)));
|
|
82
74
|
color: var(--dsa-cta__headline--color, var(--ks-text-color-display));
|
|
83
75
|
font-weight: var(--dsa-headline--font-weight, var(--ks-font-weight-semi-bold));
|
|
84
76
|
}
|
|
85
|
-
.c-storytelling
|
|
77
|
+
.dsa-cta.c-storytelling .c-storytelling__box .dsa-headline__subheadline {
|
|
86
78
|
font: var(--dsa-cta__subheadline--font, var(--dsa-headline_h2__subheadline--font, var(--ks-font-display-xl)));
|
|
87
79
|
color: var(--dsa-cta__subheadline--color, var(--ks-text-color-primary));
|
|
88
80
|
font-weight: var(--dsa-headline__subheadline--font-weight, var(--ks-font-weight-medium));
|
|
89
81
|
}
|
|
90
|
-
.c-storytelling
|
|
82
|
+
.dsa-cta.c-storytelling .c-storytelling__box .c-rich-text {
|
|
91
83
|
font: var(--dsa-cta__copy--font, var(--dsa-rich-text--font, var(--ks-font-copy-m)));
|
|
92
84
|
color: var(--dsa-cta__copy--color, var(--dsa-rich-text--color, var(--ks-text-color-copy)));
|
|
93
85
|
}
|
|
94
|
-
.c-storytelling
|
|
86
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
95
87
|
--dsa-cta--horizontal-padding: var(--l-section--content-padding);
|
|
96
88
|
}
|
|
97
|
-
.c-storytelling
|
|
89
|
+
.dsa-cta.c-storytelling .c-storytelling__image {
|
|
98
90
|
margin: 0;
|
|
99
91
|
}
|
|
100
92
|
@container storytelling (min-width: 640px) {
|
|
101
|
-
.
|
|
93
|
+
.dsa-cta.c-storytelling.c-storytelling--order-desktop-image-last .c-storytelling__image {
|
|
102
94
|
padding-left: calc(var(--dsa-cta--horizontal-padding, var(--l-section--content-padding)) / var(--c-storytelling--padding-ratio));
|
|
103
95
|
}
|
|
104
|
-
.
|
|
96
|
+
.dsa-cta.c-storytelling.c-storytelling--order-desktop-image-last .c-storytelling__box {
|
|
105
97
|
padding-right: calc(var(--dsa-cta--horizontal-padding, var(--l-section--content-padding)) / var(--c-storytelling--padding-ratio));
|
|
106
98
|
}
|
|
107
|
-
.c-storytelling
|
|
99
|
+
.dsa-cta.c-storytelling .c-storytelling__box {
|
|
108
100
|
padding-left: calc(var(--dsa-cta--horizontal-padding, var(--l-section--content-padding)) / var(--c-storytelling--padding-ratio));
|
|
109
101
|
}
|
|
110
|
-
.c-storytelling
|
|
102
|
+
.dsa-cta.c-storytelling .c-storytelling__box__content--center .c-button-group {
|
|
111
103
|
justify-content: center;
|
|
112
104
|
}
|
|
113
|
-
.c-storytelling
|
|
105
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
114
106
|
width: 100%;
|
|
115
107
|
max-width: calc(var(--l-section--content-width-default) - var(--l-section--content-padding) * var(--c-storytelling--padding-ratio));
|
|
116
108
|
}
|
|
117
|
-
.c-storytelling
|
|
109
|
+
.dsa-cta.c-storytelling > .c-storytelling__image {
|
|
118
110
|
padding: var(--dsa-cta--vertical-padding, var(--l-section--space-default)) var(--dsa-cta--horizontal-padding, var(--l-section--content-padding));
|
|
119
111
|
padding-right: calc(var(--dsa-cta--horizontal-padding, var(--l-section--content-padding)) / var(--c-storytelling--padding-ratio));
|
|
120
112
|
}
|
|
121
|
-
.
|
|
113
|
+
.dsa-cta.c-storytelling.c-storytelling--full > .c-storytelling__image {
|
|
122
114
|
padding: 0;
|
|
123
115
|
}
|
|
124
|
-
.c-storytelling
|
|
125
|
-
.c-storytelling
|
|
116
|
+
.dsa-cta.c-storytelling > .c-storytelling__image,
|
|
117
|
+
.dsa-cta.c-storytelling > .c-storytelling__box {
|
|
126
118
|
max-width: calc(var(--l-section--content-width-wide) / 2);
|
|
127
119
|
}
|
|
128
|
-
.c-storytelling.dsa-cta
|
|
129
|
-
.c-storytelling.dsa-cta
|
|
120
|
+
.dsa-cta.c-storytelling.dsa-cta--full-width > .c-storytelling__image,
|
|
121
|
+
.dsa-cta.c-storytelling.dsa-cta--full-width > .c-storytelling__box {
|
|
130
122
|
max-width: 100%;
|
|
131
123
|
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (min-width: 640px) {
|
|
127
|
+
.dsa-header--floating + .l-container--storytelling .c-storytelling.dsa-cta,
|
|
128
|
+
.dsa-header--floating + .l-section .l-container--storytelling:first-child .c-storytelling.dsa-cta {
|
|
129
|
+
padding-top: calc(var(--dsa-header--height) + var(--dsa-cta--horizontal-padding, var(--l-section--content-padding)));
|
|
130
|
+
z-index: 1;
|
|
131
|
+
}
|
|
132
132
|
}
|
|
@@ -6,17 +6,17 @@ import { Button } from '../button/index.js';
|
|
|
6
6
|
import { Link } from '@kickstartds/base/lib/link';
|
|
7
7
|
import '@kickstartds/base/lib/button';
|
|
8
8
|
|
|
9
|
-
const FeatureContextDefault = forwardRef(({ style = "stack", title, text, icon, cta: { toggle = true, style: ctaStyle = "link", target, label = "Read more", }, ...rest }, ref) => (jsxs("div", { ...rest, ref: ref, className: classnames(`
|
|
10
|
-
? `stack
|
|
9
|
+
const FeatureContextDefault = forwardRef(({ style = "stack", title, text, icon, cta: { toggle = true, style: ctaStyle = "link", target, label = "Read more", }, ...rest }, ref) => (jsxs("div", { ...rest, ref: ref, className: classnames(`dsa-feature dsa-feature--${style === `stack`
|
|
10
|
+
? `stack dsa-feature--large`
|
|
11
11
|
: style === `besideSmall`
|
|
12
|
-
? `beside
|
|
12
|
+
? `beside dsa-feature--small`
|
|
13
13
|
: style === `besideLarge`
|
|
14
|
-
? `beside
|
|
14
|
+
? `beside dsa-feature--large`
|
|
15
15
|
: style === `intext`
|
|
16
|
-
? `intext
|
|
16
|
+
? `intext dsa-feature--small`
|
|
17
17
|
: style === `centered`
|
|
18
|
-
? `centered
|
|
19
|
-
: `${style}`}`), children: [jsxs("div", { className: "
|
|
18
|
+
? `centered dsa-feature--large`
|
|
19
|
+
: `${style}`}`), children: [jsxs("div", { className: "dsa-feature__header", children: [icon && jsx(Icon, { className: "dsa-feature__icon", icon: icon }), jsx("span", { className: "dsa-feature__title", children: title })] }), text || ctaStyle === "intext" ? (jsxs("p", { className: "dsa-feature__text", children: [text, ctaStyle === "intext" && toggle ? (jsxs(Fragment, { children: [" ", jsx(Link, { href: target, children: label ? label : "See more" })] })) : ("")] })) : (""), toggle && (ctaStyle === "link" || ctaStyle === "button") && (jsx("div", { className: "dsa-feature__cta", children: ctaStyle === "link" ? (jsxs(Link, { className: "dsa-feature__link", href: target, children: [label ? label : "See more", jsx(Icon, { icon: "arrow-right" })] })) : ctaStyle === "button" ? (jsx(Button, { className: "dsa-feature__button", size: "small", target: target, label: label ? label : "See more" })) : ("") }))] })));
|
|
20
20
|
const FeatureContext = createContext(FeatureContextDefault);
|
|
21
21
|
const Feature = forwardRef((props, ref) => {
|
|
22
22
|
const Component = useContext(FeatureContext);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.dsa-features {
|
|
2
2
|
--dsa-features--gap-vertical: var(--ks-spacing-stack-l);
|
|
3
3
|
--dsa-features--gap-horizontal: var(--ks-spacing-inline-m);
|
|
4
4
|
--dsa-feature__title--color: var(--dsa-topic--color);
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
--dsa-feature__copy--font: var(--ks-font-copy-s);
|
|
9
9
|
--dsa-feature__link-font: var(--ks-font-copy-s);
|
|
10
10
|
--dsa-feature__icon--color: var(--ks-text-color-primary);
|
|
11
|
-
--dsa-feature_small__icon--size: calc(
|
|
12
|
-
var(--ks-line-height-interface-m) * var(--ks-font-size-interface-m)
|
|
13
|
-
);
|
|
11
|
+
--dsa-feature_small__icon--size: calc(var(--ks-line-height-interface-m) * var(--ks-font-size-interface-m));
|
|
14
12
|
--dsa-feature_large__icon--size: calc(var(--ks-font-size-copy-m) * 2.5);
|
|
15
13
|
--dsa-feature_small--gap: var(--ks-spacing-stack-xs);
|
|
16
14
|
--dsa-feature_large--gap: var(--ks-spacing-stack-s);
|
|
@@ -18,42 +16,42 @@
|
|
|
18
16
|
--dsa-feature_large__icon--gap: var(--ks-spacing-s);
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
.
|
|
19
|
+
.dsa-features {
|
|
22
20
|
gap: var(--dsa-features--gap-vertical, var(--ks-spacing-stack-l)) var(--dsa-features--gap-horizontal, var(--ks-spacing-inline-m));
|
|
23
21
|
}
|
|
24
|
-
.
|
|
22
|
+
.dsa-features--list {
|
|
25
23
|
display: flex;
|
|
26
24
|
flex-direction: column;
|
|
27
25
|
gap: var(--dsa-features--gap-vertical);
|
|
28
26
|
}
|
|
29
|
-
.
|
|
27
|
+
.dsa-features--large-tiles {
|
|
30
28
|
display: grid;
|
|
31
29
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
32
30
|
}
|
|
33
|
-
.
|
|
31
|
+
.dsa-features--large-tiles .dsa-feature {
|
|
34
32
|
flex-basis: 300px;
|
|
35
33
|
flex-grow: 1;
|
|
36
34
|
flex-shrink: 0;
|
|
37
35
|
}
|
|
38
|
-
.
|
|
36
|
+
.dsa-features--small-tiles {
|
|
39
37
|
display: grid;
|
|
40
38
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
41
39
|
}
|
|
42
|
-
.l-section--align-center .
|
|
40
|
+
.l-section--align-center .dsa-features--small-tiles {
|
|
43
41
|
justify-content: center;
|
|
44
42
|
}
|
|
45
|
-
.
|
|
43
|
+
.dsa-features .dsa-feature {
|
|
46
44
|
display: flex;
|
|
47
45
|
position: relative;
|
|
48
46
|
flex-direction: column;
|
|
49
47
|
gap: var(--dsa-feature--gap);
|
|
50
48
|
}
|
|
51
|
-
.
|
|
49
|
+
.dsa-features .dsa-feature--large {
|
|
52
50
|
--dsa-feature__icon--size: var(--dsa-feature_large__icon--size, calc(var(--ks-font-size-copy-m) * 2.5));
|
|
53
51
|
--dsa-feature__icon--gap: var(--dsa-feature_large__icon--gap, var(--ks-spacing-xs));
|
|
54
52
|
--dsa-feature--gap: var(--dsa-feature_large--gap, var(--ks-spacing-stack-s));
|
|
55
53
|
}
|
|
56
|
-
.
|
|
54
|
+
.dsa-features .dsa-feature--small {
|
|
57
55
|
--dsa-feature__icon--size: var(
|
|
58
56
|
--dsa-feature_small__icon--size,
|
|
59
57
|
calc(var(--ks-line-height-interface-m) * var(--ks-font-size-interface-m))
|
|
@@ -61,67 +59,67 @@
|
|
|
61
59
|
--dsa-feature__icon--gap: var(--dsa-feature_small__icon--gap, var(--ks-spacing-xs));
|
|
62
60
|
--dsa-feature--gap: var(--dsa-feature_small--gap, var(--ks-spacing-stack-xs));
|
|
63
61
|
}
|
|
64
|
-
.
|
|
62
|
+
.dsa-features .dsa-feature--beside {
|
|
65
63
|
padding-left: calc(var(--dsa-feature__icon--size) + var(--dsa-feature__icon--gap));
|
|
66
64
|
}
|
|
67
|
-
.
|
|
65
|
+
.dsa-features .dsa-feature--beside .dsa-feature__icon {
|
|
68
66
|
position: absolute;
|
|
69
67
|
top: 0;
|
|
70
68
|
left: 0;
|
|
71
69
|
}
|
|
72
|
-
.
|
|
70
|
+
.dsa-features .dsa-feature--stack .dsa-feature__header {
|
|
73
71
|
display: flex;
|
|
74
72
|
flex-direction: column;
|
|
75
73
|
align-items: flex-start;
|
|
76
74
|
}
|
|
77
|
-
.
|
|
75
|
+
.dsa-features .dsa-feature--centered .dsa-feature__header {
|
|
78
76
|
display: flex;
|
|
79
77
|
flex-direction: column;
|
|
80
78
|
align-items: center;
|
|
81
79
|
}
|
|
82
|
-
.
|
|
83
|
-
.
|
|
80
|
+
.dsa-features .dsa-feature--centered .dsa-feature__title,
|
|
81
|
+
.dsa-features .dsa-feature--centered .dsa-feature__text {
|
|
84
82
|
text-align: center;
|
|
85
83
|
}
|
|
86
|
-
.
|
|
84
|
+
.dsa-features .dsa-feature--centered .dsa-feature__cta {
|
|
87
85
|
display: flex;
|
|
88
86
|
justify-content: center;
|
|
89
87
|
}
|
|
90
|
-
.
|
|
88
|
+
.dsa-features .dsa-feature__header {
|
|
91
89
|
display: flex;
|
|
92
90
|
align-items: center;
|
|
93
91
|
gap: var(--dsa-feature__icon--gap);
|
|
94
92
|
}
|
|
95
|
-
.
|
|
93
|
+
.dsa-features .dsa-feature__title {
|
|
96
94
|
font: var(--dsa-feature__title--font, var(--ks-font-interface-m));
|
|
97
95
|
color: var(--dsa-feature__title--color, var(--ks-topic-color));
|
|
98
96
|
font-family: var(--dsa-feature__title--font-family, var(--ks-font-family-display));
|
|
99
97
|
font-weight: var(--dsa-feature__title--font-weight, var(--ks-font-weight-semi-bold));
|
|
100
98
|
}
|
|
101
|
-
.
|
|
99
|
+
.dsa-features .dsa-feature__text {
|
|
102
100
|
color: var(--dsa-feature__copy--color, var(--dsa-rich-text-color), var(--ks-text-color-default));
|
|
103
101
|
font: var(--dsa-feature__copy--font, var(--ks-font-copy-s));
|
|
104
102
|
margin: 0;
|
|
105
103
|
}
|
|
106
|
-
.
|
|
104
|
+
.dsa-features .dsa-feature__icon {
|
|
107
105
|
color: var(--dsa-feature__icon--color, var(--ks-text-color-primary));
|
|
108
106
|
width: var(--dsa-feature__icon--size);
|
|
109
107
|
height: var(--dsa-feature__icon--size);
|
|
110
108
|
}
|
|
111
|
-
.
|
|
109
|
+
.dsa-features .dsa-feature__cta {
|
|
112
110
|
margin-top: auto;
|
|
113
111
|
}
|
|
114
|
-
.
|
|
112
|
+
.dsa-features .dsa-feature__link {
|
|
115
113
|
font: var(--dsa-feature__link-font, var(--ks-font-copy-s));
|
|
116
114
|
display: flex;
|
|
117
115
|
align-items: center;
|
|
118
116
|
gap: var(--ks-spacing-xxs);
|
|
119
117
|
width: fit-content;
|
|
120
118
|
}
|
|
121
|
-
.
|
|
119
|
+
.dsa-features .dsa-feature__link .icon {
|
|
122
120
|
width: 1.125em;
|
|
123
121
|
height: 1.125em;
|
|
124
122
|
}
|
|
125
|
-
.
|
|
123
|
+
.dsa-features .dsa-feature__button {
|
|
126
124
|
margin-top: calc(var(--dsa-feature--gap) * 0.5);
|
|
127
125
|
}
|
|
@@ -11,7 +11,7 @@ import '@kickstartds/base/lib/link';
|
|
|
11
11
|
const FeaturesContextDefault = forwardRef(({ layout = "largeTiles", ctas = {
|
|
12
12
|
style: "link",
|
|
13
13
|
toggle: true,
|
|
14
|
-
}, style = "intext", feature: features = [], ...rest }, ref) => (jsx("div", { ...rest, ref: ref, className: classnames(`
|
|
14
|
+
}, style = "intext", feature: features = [], ...rest }, ref) => (jsx("div", { ...rest, ref: ref, className: classnames(`dsa-features dsa-features--${layout === "largeTiles"
|
|
15
15
|
? "large-tiles"
|
|
16
16
|
: layout === "smallTiles"
|
|
17
17
|
? "small-tiles"
|
|
@@ -77,6 +77,28 @@
|
|
|
77
77
|
},
|
|
78
78
|
"active": {
|
|
79
79
|
"type": "boolean"
|
|
80
|
+
},
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"properties": {
|
|
86
|
+
"href": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"format": "uri"
|
|
89
|
+
},
|
|
90
|
+
"id": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"label": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"active": {
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
}
|
|
80
102
|
}
|
|
81
103
|
},
|
|
82
104
|
"additionalProperties": false,
|
|
@@ -88,8 +110,20 @@
|
|
|
88
110
|
"examples": [
|
|
89
111
|
[
|
|
90
112
|
{
|
|
91
|
-
"label": "Nav
|
|
92
|
-
"href": "#"
|
|
113
|
+
"label": "Nav With Children",
|
|
114
|
+
"href": "#",
|
|
115
|
+
"items": [
|
|
116
|
+
{
|
|
117
|
+
"label": "TEST1",
|
|
118
|
+
"href": "#",
|
|
119
|
+
"id": "TEST1"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"label": "TEST2",
|
|
123
|
+
"href": "#",
|
|
124
|
+
"id": "TEST2"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
93
127
|
},
|
|
94
128
|
{
|
|
95
129
|
"label": "Active Item",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "http://schema.mydesignsystem.com/header.schema.json",
|
|
4
4
|
"title": "Header",
|
|
5
|
+
"description": "Header layered on top by the CMS",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
8
|
"logo": {
|
|
@@ -57,6 +58,12 @@
|
|
|
57
58
|
"description": "Toggle the inversion of the flyout navigation",
|
|
58
59
|
"default": false
|
|
59
60
|
},
|
|
61
|
+
"dropdownInverted": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"title": "Dropdown Inverted",
|
|
64
|
+
"description": "Toggle the inversion of the dropdown navigation",
|
|
65
|
+
"default": false
|
|
66
|
+
},
|
|
60
67
|
"floating": {
|
|
61
68
|
"type": "boolean",
|
|
62
69
|
"title": "Floating",
|
|
@@ -83,6 +90,28 @@
|
|
|
83
90
|
},
|
|
84
91
|
"active": {
|
|
85
92
|
"type": "boolean"
|
|
93
|
+
},
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"properties": {
|
|
99
|
+
"href": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"format": "uri"
|
|
102
|
+
},
|
|
103
|
+
"id": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"label": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
},
|
|
109
|
+
"active": {
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
}
|
|
86
115
|
}
|
|
87
116
|
},
|
|
88
117
|
"additionalProperties": false,
|
|
@@ -94,8 +123,20 @@
|
|
|
94
123
|
"examples": [
|
|
95
124
|
[
|
|
96
125
|
{
|
|
97
|
-
"label": "Nav
|
|
98
|
-
"href": "#"
|
|
126
|
+
"label": "Nav With Children",
|
|
127
|
+
"href": "#",
|
|
128
|
+
"items": [
|
|
129
|
+
{
|
|
130
|
+
"label": "TEST1",
|
|
131
|
+
"href": "#",
|
|
132
|
+
"id": "TEST1"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"label": "TEST2",
|
|
136
|
+
"href": "#",
|
|
137
|
+
"id": "TEST2"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
99
140
|
},
|
|
100
141
|
{
|
|
101
142
|
"label": "Active Item",
|
|
@@ -121,8 +162,5 @@
|
|
|
121
162
|
"const": "header"
|
|
122
163
|
}
|
|
123
164
|
},
|
|
124
|
-
"additionalProperties": false
|
|
125
|
-
"required": [
|
|
126
|
-
"logo"
|
|
127
|
-
]
|
|
165
|
+
"additionalProperties": false
|
|
128
166
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "http://schema.mydesignsystem.com/header.schema.json",
|
|
4
4
|
"title": "Header",
|
|
5
|
+
"description": "Header layered on top by the CMS",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
8
|
"logo": {
|
|
@@ -31,6 +32,9 @@
|
|
|
31
32
|
"flyoutInverted": {
|
|
32
33
|
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/flyoutInverted"
|
|
33
34
|
},
|
|
35
|
+
"dropdownInverted": {
|
|
36
|
+
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/dropdownInverted"
|
|
37
|
+
},
|
|
34
38
|
"floating": {
|
|
35
39
|
"type": "boolean",
|
|
36
40
|
"title": "Floating",
|
|
@@ -46,7 +50,5 @@
|
|
|
46
50
|
"navItems": {
|
|
47
51
|
"$ref": "http://schema.mydesignsystem.com/nav-main.schema.json#/properties/items"
|
|
48
52
|
}
|
|
49
|
-
}
|
|
50
|
-
"additionalProperties": false,
|
|
51
|
-
"required": ["logo"]
|
|
53
|
+
}
|
|
52
54
|
}
|
|
@@ -3,16 +3,20 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { NavMain } from '../nav-main/index.js';
|
|
5
5
|
import { Logo } from '../logo/index.js';
|
|
6
|
-
import '
|
|
7
|
-
import '@kickstartds/base/lib/link';
|
|
8
|
-
import '../nav-main/js/NavToggle.client.js';
|
|
6
|
+
import '../nav/js/NavToggle.client.js';
|
|
9
7
|
import '@kickstartds/core/lib/component';
|
|
10
|
-
import '../nav
|
|
8
|
+
import '../nav/js/navMainEvents.client.js';
|
|
11
9
|
import '@kickstartds/core/lib/core';
|
|
12
|
-
import '../nav
|
|
10
|
+
import '../nav/js/body.client.js';
|
|
11
|
+
import '../nav-toggle/index.js';
|
|
12
|
+
import '../nav-topbar/index.js';
|
|
13
|
+
import '@kickstartds/base/lib/link';
|
|
14
|
+
import '@kickstartds/base/lib/icon';
|
|
15
|
+
import '../nav-dropdown/index.js';
|
|
16
|
+
import '../nav-flyout/index.js';
|
|
13
17
|
import '@kickstartds/base/lib/picture';
|
|
14
18
|
|
|
15
|
-
const Header = ({ logo, floating, inverted = false, flyoutInverted = false, navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), children: jsxs("div", { className: "dsa-header__content", children: [jsx(Logo, { ...logo, className: "dsa-header__logo", inverted: inverted }), jsx(NavMain, { flyoutInverted: flyoutInverted, items: navItems, logo: {
|
|
19
|
+
const Header = ({ logo, floating, inverted = false, flyoutInverted = false, dropdownInverted = false, navItems = [], }) => (jsx(Fragment, { children: jsx("div", { className: classnames("dsa-header", floating ? `dsa-header--floating` : ""), "ks-inverted": inverted.toString(), children: jsxs("div", { className: "dsa-header__content", children: [jsx(Logo, { ...logo, className: "dsa-header__logo", inverted: inverted }), jsx(NavMain, { flyoutInverted: flyoutInverted, dropdownInverted: dropdownInverted, items: navItems, logo: {
|
|
16
20
|
...logo,
|
|
17
21
|
inverted: flyoutInverted,
|
|
18
22
|
} })] }) }) }));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
1
|
+
.dsa-image {
|
|
2
|
+
--dsa-image--ratio-square: 1/1;
|
|
3
|
+
--dsa-image--ratio-wide: 4/3;
|
|
4
|
+
--dsa-image--ratio-landscape: 16/9;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.dsa-image {
|
|
8
8
|
object-fit: cover;
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.dsa-image--square {
|
|
11
11
|
aspect-ratio: var(--c-image--ratio-square);
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.dsa-image--wide {
|
|
14
14
|
aspect-ratio: var(--c-image--ratio-wide);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.dsa-image--landscape {
|
|
17
17
|
aspect-ratio: var(--c-image--ratio-landscape);
|
|
18
18
|
}
|
|
@@ -4,7 +4,7 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { PictureContextDefault, PictureContext } from '@kickstartds/base/lib/picture';
|
|
6
6
|
|
|
7
|
-
const Image = forwardRef(({ src, srcSet, alt, width, height, aspectRatio, className, id, itemProp, style, lazy, sources, pictureClassName, ...props }, ref) => (jsx(PictureContextDefault, { ...props, src: src, srcSet: srcSet, alt: alt, width: width, height: height, id: id, itemProp: itemProp, style: style, lazy: lazy, sources: sources, pictureClassName: pictureClassName, ref: ref, className: classnames("
|
|
7
|
+
const Image = forwardRef(({ src, srcSet, alt, width, height, aspectRatio, className, id, itemProp, style, lazy, sources, pictureClassName, ...props }, ref) => (jsx(PictureContextDefault, { ...props, src: src, srcSet: srcSet, alt: alt, width: width, height: height, id: id, itemProp: itemProp, style: style, lazy: lazy, sources: sources, pictureClassName: pictureClassName, ref: ref, className: classnames("dsa-image", aspectRatio !== "unset" && `dsa-image--${aspectRatio}`, className) })));
|
|
8
8
|
Image.displayName = "Image";
|
|
9
9
|
const ImageProvider = (props) => (jsx(PictureContext.Provider, { ...props, value: Image }));
|
|
10
10
|
|