@kickstartds/ds-agency-premium 1.3.31 → 1.3.32--canary.565.63e8986.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-9f94ed98.d.ts} +2 -7
- package/dist/{HeaderProps-7be94a61.d.ts → HeaderProps-c41aeb76.d.ts} +14 -9
- package/dist/LogosProps-58c84ccc.d.ts +242 -0
- package/dist/SectionProps-93230a76.d.ts +1 -1
- package/dist/SliderProps-93230a76.d.ts +1 -1
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/button/button.css +3 -0
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/cta/cta.css +2 -2
- package/dist/components/footer/footer.css +14 -10
- package/dist/components/footer/footer.schema.dereffed.json +9 -12
- package/dist/components/footer/footer.schema.json +25 -11
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/footer/index.js +2 -3
- package/dist/components/header/header.css +16 -0
- package/dist/components/header/header.schema.dereffed.json +26 -13
- package/dist/components/header/header.schema.json +6 -24
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +3 -7
- package/dist/components/image/image.schema.dereffed.json +1 -1
- package/dist/components/image/image.schema.json +1 -1
- package/dist/components/image/index.d.ts +1 -1
- package/dist/components/index/index.d.ts +3 -3
- package/dist/components/logo/logo.schema.dereffed.json +19 -43
- package/dist/components/logo/logo.schema.json +17 -41
- package/dist/components/logos/index.d.ts +1 -1
- package/dist/components/logos/index.js +1 -1
- package/dist/components/logos/logos.css +6 -10
- package/dist/components/logos/logos.schema.dereffed.json +5 -0
- package/dist/components/logos/logos.schema.json +1 -27
- package/dist/components/nav-main/index.d.ts +37 -8
- package/dist/components/nav-main/index.js +2 -3
- package/dist/components/nav-main/nav-main.css +45 -33
- package/dist/components/nav-main/nav-main.schema.dereffed.json +26 -28
- package/dist/components/nav-main/nav-main.schema.json +53 -4
- package/dist/components/page/page.schema.dereffed.json +10 -0
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/picture/picture.schema.json +1 -1
- package/dist/components/presets.json +9 -25
- package/dist/components/section/section.schema.dereffed.json +10 -0
- package/dist/components/settings/settings.schema.dereffed.json +35 -25
- package/dist/components/slider/slider.schema.dereffed.json +5 -0
- package/dist/global.css +1099 -0
- package/dist/static/favicon/favicon-192-192.png +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/LogoProps-01796f0a.d.ts +0 -44
- package/dist/LogosProps-f9474fe2.d.ts +0 -97
- package/dist/components/logo/index.d.ts +0 -4
- package/dist/components/logo/index.js +0 -12
- package/dist/components/logo/logo.css +0 -7
- /package/dist/{BlogPostProps-e1cbd5d3.d.ts → BlogPostProps-0910f130.d.ts} +0 -0
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
* Picture source
|
|
8
8
|
*/
|
|
9
9
|
type Source = string;
|
|
10
|
-
/**
|
|
11
|
-
* Picture source
|
|
12
|
-
*/
|
|
13
|
-
type Source1 = string;
|
|
14
10
|
/**
|
|
15
11
|
* Alt text to display for picture
|
|
16
12
|
*/
|
|
@@ -33,6 +29,7 @@ type Byline = string;
|
|
|
33
29
|
type Inverted = boolean;
|
|
34
30
|
interface FooterProps {
|
|
35
31
|
logo: Logo;
|
|
32
|
+
logoHref?: string;
|
|
36
33
|
byline?: Byline;
|
|
37
34
|
inverted?: Inverted;
|
|
38
35
|
navItems?: {
|
|
@@ -43,10 +40,8 @@ interface FooterProps {
|
|
|
43
40
|
}
|
|
44
41
|
interface Logo {
|
|
45
42
|
src?: Source;
|
|
46
|
-
srcInverted?: Source1;
|
|
47
43
|
alt?: AltText;
|
|
48
|
-
homepageHref?: string;
|
|
49
44
|
width?: Width;
|
|
50
45
|
height?: Height;
|
|
51
46
|
}
|
|
52
|
-
export { Source,
|
|
47
|
+
export { Source, AltText, Width, Height, Byline, Inverted, FooterProps, Logo };
|
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Add a link to the logo
|
|
8
|
+
*/
|
|
9
|
+
type Link = string;
|
|
10
|
+
/**
|
|
11
|
+
* Logo file source
|
|
8
12
|
*/
|
|
9
13
|
type Source = string;
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Logo inverted file source
|
|
12
16
|
*/
|
|
13
|
-
type
|
|
17
|
+
type SourceInverted = string;
|
|
14
18
|
/**
|
|
15
19
|
* Alt text to display for picture
|
|
16
20
|
*/
|
|
@@ -24,9 +28,9 @@ type Width = number;
|
|
|
24
28
|
*/
|
|
25
29
|
type Height = number;
|
|
26
30
|
/**
|
|
27
|
-
* Toggle the inversion of the
|
|
31
|
+
* Toggle the inversion of the logo inside the mobile navigation
|
|
28
32
|
*/
|
|
29
|
-
type
|
|
33
|
+
type FlyoutLogoInverted = boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Make the header float over the first Section
|
|
32
36
|
*/
|
|
@@ -37,7 +41,8 @@ type Floating = boolean;
|
|
|
37
41
|
type Inverted = boolean;
|
|
38
42
|
interface HeaderProps {
|
|
39
43
|
logo: Logo;
|
|
40
|
-
|
|
44
|
+
logoHref?: string;
|
|
45
|
+
flyoutLogoInverted?: FlyoutLogoInverted;
|
|
41
46
|
floating?: Floating;
|
|
42
47
|
inverted?: Inverted;
|
|
43
48
|
navItems?: {
|
|
@@ -47,11 +52,11 @@ interface HeaderProps {
|
|
|
47
52
|
}[];
|
|
48
53
|
}
|
|
49
54
|
interface Logo {
|
|
55
|
+
href?: Link;
|
|
50
56
|
src?: Source;
|
|
51
|
-
srcInverted?:
|
|
57
|
+
srcInverted?: SourceInverted;
|
|
52
58
|
alt?: AltText;
|
|
53
|
-
homepageHref?: string;
|
|
54
59
|
width?: Width;
|
|
55
60
|
height?: Height;
|
|
56
61
|
}
|
|
57
|
-
export { Source,
|
|
62
|
+
export { Link, Source, SourceInverted, AltText, Width, Height, FlyoutLogoInverted, Floating, Inverted, HeaderProps, Logo };
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The URL of the logo image
|
|
9
|
+
*/
|
|
10
|
+
type URL = string;
|
|
11
|
+
/**
|
|
12
|
+
* The alt text of the logo
|
|
13
|
+
*/
|
|
14
|
+
type Caption = string;
|
|
15
|
+
/**
|
|
16
|
+
* Logo entry for Logos component
|
|
17
|
+
*/
|
|
18
|
+
interface LogoProps {
|
|
19
|
+
src: URL;
|
|
20
|
+
alt?: Caption;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A short tagline atop the logos
|
|
24
|
+
*/
|
|
25
|
+
type LogoTagline = string;
|
|
26
|
+
/**
|
|
27
|
+
* The logos to display
|
|
28
|
+
*
|
|
29
|
+
* @minItems 1
|
|
30
|
+
* @maxItems 20
|
|
31
|
+
*/
|
|
32
|
+
type Logos = [LogoProps] | [LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps, LogoProps] | [
|
|
33
|
+
LogoProps,
|
|
34
|
+
LogoProps,
|
|
35
|
+
LogoProps,
|
|
36
|
+
LogoProps,
|
|
37
|
+
LogoProps,
|
|
38
|
+
LogoProps,
|
|
39
|
+
LogoProps,
|
|
40
|
+
LogoProps,
|
|
41
|
+
LogoProps,
|
|
42
|
+
LogoProps,
|
|
43
|
+
LogoProps
|
|
44
|
+
] | [
|
|
45
|
+
LogoProps,
|
|
46
|
+
LogoProps,
|
|
47
|
+
LogoProps,
|
|
48
|
+
LogoProps,
|
|
49
|
+
LogoProps,
|
|
50
|
+
LogoProps,
|
|
51
|
+
LogoProps,
|
|
52
|
+
LogoProps,
|
|
53
|
+
LogoProps,
|
|
54
|
+
LogoProps,
|
|
55
|
+
LogoProps,
|
|
56
|
+
LogoProps
|
|
57
|
+
] | [
|
|
58
|
+
LogoProps,
|
|
59
|
+
LogoProps,
|
|
60
|
+
LogoProps,
|
|
61
|
+
LogoProps,
|
|
62
|
+
LogoProps,
|
|
63
|
+
LogoProps,
|
|
64
|
+
LogoProps,
|
|
65
|
+
LogoProps,
|
|
66
|
+
LogoProps,
|
|
67
|
+
LogoProps,
|
|
68
|
+
LogoProps,
|
|
69
|
+
LogoProps,
|
|
70
|
+
LogoProps
|
|
71
|
+
] | [
|
|
72
|
+
LogoProps,
|
|
73
|
+
LogoProps,
|
|
74
|
+
LogoProps,
|
|
75
|
+
LogoProps,
|
|
76
|
+
LogoProps,
|
|
77
|
+
LogoProps,
|
|
78
|
+
LogoProps,
|
|
79
|
+
LogoProps,
|
|
80
|
+
LogoProps,
|
|
81
|
+
LogoProps,
|
|
82
|
+
LogoProps,
|
|
83
|
+
LogoProps,
|
|
84
|
+
LogoProps,
|
|
85
|
+
LogoProps
|
|
86
|
+
] | [
|
|
87
|
+
LogoProps,
|
|
88
|
+
LogoProps,
|
|
89
|
+
LogoProps,
|
|
90
|
+
LogoProps,
|
|
91
|
+
LogoProps,
|
|
92
|
+
LogoProps,
|
|
93
|
+
LogoProps,
|
|
94
|
+
LogoProps,
|
|
95
|
+
LogoProps,
|
|
96
|
+
LogoProps,
|
|
97
|
+
LogoProps,
|
|
98
|
+
LogoProps,
|
|
99
|
+
LogoProps,
|
|
100
|
+
LogoProps,
|
|
101
|
+
LogoProps
|
|
102
|
+
] | [
|
|
103
|
+
LogoProps,
|
|
104
|
+
LogoProps,
|
|
105
|
+
LogoProps,
|
|
106
|
+
LogoProps,
|
|
107
|
+
LogoProps,
|
|
108
|
+
LogoProps,
|
|
109
|
+
LogoProps,
|
|
110
|
+
LogoProps,
|
|
111
|
+
LogoProps,
|
|
112
|
+
LogoProps,
|
|
113
|
+
LogoProps,
|
|
114
|
+
LogoProps,
|
|
115
|
+
LogoProps,
|
|
116
|
+
LogoProps,
|
|
117
|
+
LogoProps,
|
|
118
|
+
LogoProps
|
|
119
|
+
] | [
|
|
120
|
+
LogoProps,
|
|
121
|
+
LogoProps,
|
|
122
|
+
LogoProps,
|
|
123
|
+
LogoProps,
|
|
124
|
+
LogoProps,
|
|
125
|
+
LogoProps,
|
|
126
|
+
LogoProps,
|
|
127
|
+
LogoProps,
|
|
128
|
+
LogoProps,
|
|
129
|
+
LogoProps,
|
|
130
|
+
LogoProps,
|
|
131
|
+
LogoProps,
|
|
132
|
+
LogoProps,
|
|
133
|
+
LogoProps,
|
|
134
|
+
LogoProps,
|
|
135
|
+
LogoProps,
|
|
136
|
+
LogoProps
|
|
137
|
+
] | [
|
|
138
|
+
LogoProps,
|
|
139
|
+
LogoProps,
|
|
140
|
+
LogoProps,
|
|
141
|
+
LogoProps,
|
|
142
|
+
LogoProps,
|
|
143
|
+
LogoProps,
|
|
144
|
+
LogoProps,
|
|
145
|
+
LogoProps,
|
|
146
|
+
LogoProps,
|
|
147
|
+
LogoProps,
|
|
148
|
+
LogoProps,
|
|
149
|
+
LogoProps,
|
|
150
|
+
LogoProps,
|
|
151
|
+
LogoProps,
|
|
152
|
+
LogoProps,
|
|
153
|
+
LogoProps,
|
|
154
|
+
LogoProps,
|
|
155
|
+
LogoProps
|
|
156
|
+
] | [
|
|
157
|
+
LogoProps,
|
|
158
|
+
LogoProps,
|
|
159
|
+
LogoProps,
|
|
160
|
+
LogoProps,
|
|
161
|
+
LogoProps,
|
|
162
|
+
LogoProps,
|
|
163
|
+
LogoProps,
|
|
164
|
+
LogoProps,
|
|
165
|
+
LogoProps,
|
|
166
|
+
LogoProps,
|
|
167
|
+
LogoProps,
|
|
168
|
+
LogoProps,
|
|
169
|
+
LogoProps,
|
|
170
|
+
LogoProps,
|
|
171
|
+
LogoProps,
|
|
172
|
+
LogoProps,
|
|
173
|
+
LogoProps,
|
|
174
|
+
LogoProps,
|
|
175
|
+
LogoProps
|
|
176
|
+
] | [
|
|
177
|
+
LogoProps,
|
|
178
|
+
LogoProps,
|
|
179
|
+
LogoProps,
|
|
180
|
+
LogoProps,
|
|
181
|
+
LogoProps,
|
|
182
|
+
LogoProps,
|
|
183
|
+
LogoProps,
|
|
184
|
+
LogoProps,
|
|
185
|
+
LogoProps,
|
|
186
|
+
LogoProps,
|
|
187
|
+
LogoProps,
|
|
188
|
+
LogoProps,
|
|
189
|
+
LogoProps,
|
|
190
|
+
LogoProps,
|
|
191
|
+
LogoProps,
|
|
192
|
+
LogoProps,
|
|
193
|
+
LogoProps,
|
|
194
|
+
LogoProps,
|
|
195
|
+
LogoProps,
|
|
196
|
+
LogoProps
|
|
197
|
+
];
|
|
198
|
+
/**
|
|
199
|
+
* The alignment of the logo layout
|
|
200
|
+
*/
|
|
201
|
+
type Alignment = "left" | "center";
|
|
202
|
+
/**
|
|
203
|
+
* The amount of logos to display per row
|
|
204
|
+
*/
|
|
205
|
+
type LogosPerRow = number;
|
|
206
|
+
/**
|
|
207
|
+
* Activate/disable the CTA
|
|
208
|
+
*/
|
|
209
|
+
type CTAToggle = boolean;
|
|
210
|
+
/**
|
|
211
|
+
* A short CTA text
|
|
212
|
+
*/
|
|
213
|
+
type CallToActionText = string;
|
|
214
|
+
/**
|
|
215
|
+
* The CTA link
|
|
216
|
+
*/
|
|
217
|
+
type CallToActionLink = string;
|
|
218
|
+
/**
|
|
219
|
+
* The text label displayed on the link
|
|
220
|
+
*/
|
|
221
|
+
type LinkLabel = string;
|
|
222
|
+
/**
|
|
223
|
+
* Component used to display a set of logos
|
|
224
|
+
*/
|
|
225
|
+
interface LogosProps {
|
|
226
|
+
tagline?: LogoTagline;
|
|
227
|
+
logo?: Logos;
|
|
228
|
+
align?: Alignment;
|
|
229
|
+
logosPerRow?: LogosPerRow;
|
|
230
|
+
cta?: CallToAction;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The call to action
|
|
234
|
+
*/
|
|
235
|
+
interface CallToAction {
|
|
236
|
+
toggle?: CTAToggle;
|
|
237
|
+
text?: CallToActionText;
|
|
238
|
+
link: CallToActionLink;
|
|
239
|
+
label: LinkLabel;
|
|
240
|
+
style: "button" | "text";
|
|
241
|
+
}
|
|
242
|
+
export { URL, Caption, LogoProps, LogoTagline, Logos, Alignment, LogosPerRow, CTAToggle, CallToActionText, CallToActionLink, LinkLabel, LogosProps, CallToAction };
|
|
@@ -10,7 +10,7 @@ import { GalleryProps } from "./GalleryProps-76e7de44.js";
|
|
|
10
10
|
import { HeroProps } from "./HeroProps-cf82a16d.js";
|
|
11
11
|
import { ImageStoryProps } from "./ImageStoryProps-24e0335c.js";
|
|
12
12
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
13
|
-
import { LogosProps } from "./LogosProps-
|
|
13
|
+
import { LogosProps } from "./LogosProps-58c84ccc.js";
|
|
14
14
|
import { MosaicProps } from "./MosaicProps-d52c7151.js";
|
|
15
15
|
import { SliderProps } from "./SliderProps-93230a76.js";
|
|
16
16
|
import { StatsProps } from "./StatsProps-bf5ef578.js";
|
|
@@ -8,7 +8,7 @@ import { FeaturesProps } from "./FeaturesProps-b05859d6.js";
|
|
|
8
8
|
import { GalleryProps } from "./GalleryProps-76e7de44.js";
|
|
9
9
|
import { HeroProps } from "./HeroProps-cf82a16d.js";
|
|
10
10
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
11
|
-
import { LogosProps } from "./LogosProps-
|
|
11
|
+
import { LogosProps } from "./LogosProps-58c84ccc.js";
|
|
12
12
|
import { StatsProps } from "./StatsProps-bf5ef578.js";
|
|
13
13
|
import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
|
|
14
14
|
import { TestimonialsProps } from "./TestimonialsProps-f7211553.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BlogPostProps } from "../../BlogPostProps-
|
|
2
|
+
import { BlogPostProps } from "../../BlogPostProps-0910f130.js";
|
|
3
3
|
declare const BlogPost: {
|
|
4
4
|
({ head, content, aside, cta }: BlogPostProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
text-transform: var(--dsa-button--text-transform);
|
|
37
37
|
transition-property: box-shadow, transform, background-color, color, border;
|
|
38
38
|
}
|
|
39
|
+
.dsa-button.c-button .icon {
|
|
40
|
+
margin-left: var(--ks-spacing-xxs);
|
|
41
|
+
}
|
|
39
42
|
.dsa-button.c-button.c-button--solid {
|
|
40
43
|
--c-button--color: var(--dsa-button_primary--color, var(--dsa-text-color-on-primary));
|
|
41
44
|
--c-button--color-hover: var(--dsa-button_primary--color_hover, var(--dsa-text-color-on-primary));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes, FC, PropsWithChildren } from "react";
|
|
3
3
|
import { ButtonProps } from "../../ButtonProps-03ff6d21.js";
|
|
4
|
-
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<
|
|
4
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
5
|
declare const ButtonProvider: FC<PropsWithChildren>;
|
|
6
6
|
export { Button, ButtonProvider };
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@media (min-width: 640px) {
|
|
19
|
-
.
|
|
20
|
-
.
|
|
19
|
+
.c-header--floating + .l-container--storytelling .c-storytelling.dsa-cta,
|
|
20
|
+
.c-header--floating + .l-section .l-container--storytelling:first-child .c-storytelling.dsa-cta {
|
|
21
21
|
padding-top: calc(var(--dsa-header--height) + var(--dsa-cta--horizontal-padding, var(--l-section--content-padding)));
|
|
22
22
|
z-index: 1;
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.c-footer {
|
|
2
2
|
--dsa-footer--background-color: var(--ks-background-color-default);
|
|
3
3
|
--dsa-footer--border-top: 1px solid var(--ks-border-color-accent);
|
|
4
4
|
--dsa-footer--max-width: var(--l-section--content-width-wide);
|
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
--dsa-footer__logo--height: 1.5rem;
|
|
12
12
|
}
|
|
13
13
|
@media (min-width: 62em) {
|
|
14
|
-
.
|
|
15
|
-
--dsa-footer__logo--height:
|
|
14
|
+
.c-footer {
|
|
15
|
+
--dsa-footer__logo--height: 2rem;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.
|
|
19
|
+
.c-footer {
|
|
20
20
|
position: relative;
|
|
21
21
|
z-index: 1;
|
|
22
22
|
width: 100%;
|
|
23
23
|
display: flex;
|
|
24
24
|
background-color: var(--dsa-footer--background-color, var(--ks-background-color-default));
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
.c-footer__content {
|
|
27
27
|
padding: var(--l-section--space-small) var(--l-section--content-padding);
|
|
28
28
|
border-top: var(--dsa-footer--border-top, 1px solid var(--ks-border-color-accent));
|
|
29
29
|
max-width: var(--dsa-footer--max-width, var(--l-section--content-width-wide));
|
|
@@ -34,20 +34,24 @@
|
|
|
34
34
|
align-items: center;
|
|
35
35
|
gap: var(--dsa-footer--gap-vertical, var(--ks-spacing-stack-m));
|
|
36
36
|
}
|
|
37
|
-
.
|
|
38
|
-
|
|
37
|
+
.c-footer__logo {
|
|
38
|
+
display: block;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.c-footer__logo img {
|
|
41
|
+
height: var(--dsa-footer__logo--height);
|
|
42
|
+
width: auto;
|
|
43
|
+
}
|
|
44
|
+
.c-footer__byline {
|
|
41
45
|
font: var(--dsa-footer__byline--font, var(--ks-font-copy-xs));
|
|
42
46
|
color: var(--dsa-footer__byline--color, var(--ks-text-color-default));
|
|
43
47
|
}
|
|
44
|
-
.
|
|
48
|
+
.c-footer__links {
|
|
45
49
|
display: flex;
|
|
46
50
|
flex-wrap: wrap;
|
|
47
51
|
justify-content: center;
|
|
48
52
|
gap: var(--dsa-footer__links--gap, var(--ks-spacing-stack-s) var(--ks-spacing-inline-m));
|
|
49
53
|
}
|
|
50
|
-
.
|
|
54
|
+
.c-footer__link {
|
|
51
55
|
font: var(--dsa-footer__links--font, var(--ks-font-interface-s));
|
|
52
56
|
color: var(--dsa-footer__links--color, var(--dsa-link--color));
|
|
53
57
|
}
|
|
@@ -12,24 +12,16 @@
|
|
|
12
12
|
"title": "Source",
|
|
13
13
|
"description": "Picture source",
|
|
14
14
|
"type": "string",
|
|
15
|
-
"format": "image"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"description": "Picture source",
|
|
20
|
-
"type": "string",
|
|
21
|
-
"format": "image"
|
|
15
|
+
"format": "image",
|
|
16
|
+
"examples": [
|
|
17
|
+
"https://picsum.photos/seed/kdspicture/300/300"
|
|
18
|
+
]
|
|
22
19
|
},
|
|
23
20
|
"alt": {
|
|
24
21
|
"title": "Alt text",
|
|
25
22
|
"description": "Alt text to display for picture",
|
|
26
23
|
"type": "string"
|
|
27
24
|
},
|
|
28
|
-
"homepageHref": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": "uri",
|
|
31
|
-
"default": "/"
|
|
32
|
-
},
|
|
33
25
|
"width": {
|
|
34
26
|
"title": "Width",
|
|
35
27
|
"description": "Width of the picture",
|
|
@@ -51,6 +43,11 @@
|
|
|
51
43
|
},
|
|
52
44
|
"additionalProperties": false
|
|
53
45
|
},
|
|
46
|
+
"logoHref": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "uri",
|
|
49
|
+
"default": "/"
|
|
50
|
+
},
|
|
54
51
|
"byline": {
|
|
55
52
|
"title": "Byline",
|
|
56
53
|
"description": "Small line of text displayed below the logo",
|
|
@@ -9,24 +9,38 @@
|
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
11
11
|
"src": {
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
12
|
+
"title": "Source",
|
|
13
|
+
"description": "Picture source",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "image",
|
|
16
|
+
"examples": ["https://picsum.photos/seed/kdspicture/300/300"]
|
|
16
17
|
},
|
|
17
18
|
"alt": {
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"$ref": "http://schema.mydesignsystem.com/logo.schema.json#/properties/homepageHref"
|
|
19
|
+
"title": "Alt text",
|
|
20
|
+
"description": "Alt text to display for picture",
|
|
21
|
+
"type": "string"
|
|
22
22
|
},
|
|
23
23
|
"width": {
|
|
24
|
-
"
|
|
24
|
+
"title": "Width",
|
|
25
|
+
"description": "Width of the picture",
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"minimum": 0,
|
|
28
|
+
"examples": [300]
|
|
25
29
|
},
|
|
26
30
|
"height": {
|
|
27
|
-
"
|
|
31
|
+
"title": "Height",
|
|
32
|
+
"description": "Height of the picture",
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"minimum": 0,
|
|
35
|
+
"examples": [300]
|
|
28
36
|
}
|
|
29
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
},
|
|
40
|
+
"logoHref": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": "uri",
|
|
43
|
+
"default": "/"
|
|
30
44
|
},
|
|
31
45
|
"byline": {
|
|
32
46
|
"title": "Byline",
|
|
@@ -2,11 +2,10 @@ import "./footer.css";
|
|
|
2
2
|
import { createElement } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
+
import { Picture } from '@kickstartds/base/lib/picture';
|
|
5
6
|
import { Link } from '@kickstartds/base/lib/link';
|
|
6
|
-
import { Logo } from '../logo/index.js';
|
|
7
|
-
import '@kickstartds/base/lib/picture';
|
|
8
7
|
|
|
9
|
-
const Footer = ({ logo, byline, inverted = false, navItems = [], }) => (jsx("div", { className: classnames("
|
|
8
|
+
const Footer = ({ logo, logoHref = "/", byline, inverted = false, navItems = [], }) => (jsx("div", { className: classnames("c-footer"), "ks-inverted": inverted.toString(), children: jsxs("div", { className: "c-footer__content", children: [jsx(Link, { className: "c-footer__logo", href: logoHref, children: jsx(Picture, { ...logo, lazy: true }) }), byline && jsx("span", { className: "c-footer__byline", children: byline }), navItems.length > 0 ? (jsx("div", { className: "c-footer__links", children: navItems.map(({ label, active, ...linkProps }) => (createElement(Link, { ...linkProps, className: "c-footer__link", key: linkProps.href + label }, label))) })) : null] }) }));
|
|
10
9
|
Footer.displayName = "Footer";
|
|
11
10
|
|
|
12
11
|
export { Footer };
|
|
@@ -33,6 +33,22 @@
|
|
|
33
33
|
display: flex;
|
|
34
34
|
justify-content: space-between;
|
|
35
35
|
}
|
|
36
|
+
.dsa-header__logo {
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
.dsa-header__logo__img {
|
|
40
|
+
height: var(--dsa-header__logo--height);
|
|
41
|
+
width: auto;
|
|
42
|
+
}
|
|
43
|
+
[ks-inverted=true] .dsa-header__logo__img {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
.dsa-header__logo__img--inverted {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
[ks-inverted=true] .dsa-header__logo__img--inverted {
|
|
50
|
+
display: block;
|
|
51
|
+
}
|
|
36
52
|
|
|
37
53
|
.dsa-header--spacer {
|
|
38
54
|
display: none;
|
|
@@ -8,28 +8,36 @@
|
|
|
8
8
|
"title": "Logo",
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
11
|
+
"href": {
|
|
12
|
+
"title": "Link",
|
|
13
|
+
"description": "Add a link to the logo",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "uri",
|
|
16
|
+
"default": "/"
|
|
17
|
+
},
|
|
11
18
|
"src": {
|
|
12
19
|
"title": "Source",
|
|
13
|
-
"description": "
|
|
20
|
+
"description": "Logo file source",
|
|
14
21
|
"type": "string",
|
|
15
|
-
"format": "image"
|
|
22
|
+
"format": "image",
|
|
23
|
+
"examples": [
|
|
24
|
+
"logo.svg"
|
|
25
|
+
]
|
|
16
26
|
},
|
|
17
27
|
"srcInverted": {
|
|
18
|
-
"title": "Source",
|
|
19
|
-
"description": "
|
|
28
|
+
"title": "Source Inverted",
|
|
29
|
+
"description": "Logo inverted file source",
|
|
20
30
|
"type": "string",
|
|
21
|
-
"format": "image"
|
|
31
|
+
"format": "image",
|
|
32
|
+
"examples": [
|
|
33
|
+
"logo-inverted.svg"
|
|
34
|
+
]
|
|
22
35
|
},
|
|
23
36
|
"alt": {
|
|
24
37
|
"title": "Alt text",
|
|
25
38
|
"description": "Alt text to display for picture",
|
|
26
39
|
"type": "string"
|
|
27
40
|
},
|
|
28
|
-
"homepageHref": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": "uri",
|
|
31
|
-
"default": "/"
|
|
32
|
-
},
|
|
33
41
|
"width": {
|
|
34
42
|
"title": "Width",
|
|
35
43
|
"description": "Width of the picture",
|
|
@@ -51,10 +59,15 @@
|
|
|
51
59
|
},
|
|
52
60
|
"additionalProperties": false
|
|
53
61
|
},
|
|
54
|
-
"
|
|
62
|
+
"logoHref": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"format": "uri",
|
|
65
|
+
"default": "/"
|
|
66
|
+
},
|
|
67
|
+
"flyoutLogoInverted": {
|
|
55
68
|
"type": "boolean",
|
|
56
|
-
"title": "Flyout Inverted",
|
|
57
|
-
"description": "Toggle the inversion of the
|
|
69
|
+
"title": "Flyout Logo Inverted",
|
|
70
|
+
"description": "Toggle the inversion of the logo inside the mobile navigation",
|
|
58
71
|
"default": false
|
|
59
72
|
},
|
|
60
73
|
"floating": {
|