@kickstartds/ds-agency-premium 1.6.71--canary.1933.9f7ec0c.0 → 1.6.71--canary.45.1941.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/BlogOverviewProps-d62a0a9a.d.ts +1 -1
- package/dist/{BlogPostProps-c760fd2a.d.ts → BlogPostProps-c04a5ed8.d.ts} +2 -2
- package/dist/PageProps-aa29c554.d.ts +1 -1
- package/dist/{SectionProps-2fd5dbde.d.ts → SectionProps-00ddee3a.d.ts} +2 -2
- package/dist/SliderProps-789f8508.d.ts +1 -1
- package/dist/{StatProps-12a3eae0.d.ts → StatProps-79109ad0.d.ts} +1 -1
- package/dist/StatsProps-bf5ef578.d.ts +1 -1
- package/dist/components/blog-aside/index.d.ts +1 -1
- package/dist/components/blog-aside/index.js +6 -1
- package/dist/components/blog-author/index.js +10 -1
- package/dist/components/blog-head/index.js +6 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +33 -33
- package/dist/components/blog-overview/blog-overview.schema.json +2 -2
- package/dist/components/blog-overview/index.js +1 -0
- package/dist/components/blog-post/blog-post.schema.dereffed.json +33 -33
- package/dist/components/blog-post/blog-post.schema.json +2 -2
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-post/index.js +1 -0
- package/dist/components/blog-teaser/index.js +10 -1
- package/dist/components/button/button.css +2 -2
- package/dist/components/contact/index.js +10 -1
- package/dist/components/cta/cta.css +1 -1
- package/dist/components/cta/index.js +19 -1
- package/dist/components/divider/index.js +6 -1
- package/dist/components/event-detail/index.js +1 -0
- package/dist/components/event-header/index.js +1 -0
- package/dist/components/event-list/index.js +1 -0
- package/dist/components/faq/index.js +6 -1
- package/dist/components/feature/index.js +15 -2
- package/dist/components/features/features.css +25 -7
- package/dist/components/features/index.js +13 -1
- package/dist/components/footer/footer.css +3 -3
- package/dist/components/footer/footer.schema.dereffed.json +12 -20
- package/dist/components/footer/index.js +11 -1
- package/dist/components/gallery/index.js +9 -1
- package/dist/components/header/header.schema.dereffed.json +12 -20
- package/dist/components/header/index.js +13 -1
- package/dist/components/headline/headline.css +2 -44
- package/dist/components/hero/hero.css +0 -11
- package/dist/components/hero/hero.schema.dereffed.json +1 -1
- package/dist/components/hero/hero.schema.json +1 -1
- package/dist/components/hero/index.js +17 -1
- package/dist/components/html/index.js +8 -1
- package/dist/components/image-story/index.d.ts +1 -1
- package/dist/components/image-story/index.js +14 -1
- package/dist/components/image-text/index.js +7 -1
- package/dist/components/index/index.d.ts +1 -1
- package/dist/components/logo/index.js +6 -1
- package/dist/components/logos/index.js +12 -1
- package/dist/components/mosaic/index.js +8 -1
- package/dist/components/nav-dropdown/nav-dropdown.css +3 -3
- package/dist/components/nav-flyout/index.js +7 -1
- package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +12 -20
- package/dist/components/nav-main/index.js +11 -1
- package/dist/components/nav-main/nav-main.schema.dereffed.json +12 -20
- package/dist/components/nav-main/nav-main.schema.json +12 -20
- package/dist/components/nav-topbar/index.js +7 -1
- package/dist/components/nav-topbar/nav-topbar.css +3 -3
- package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +12 -20
- package/dist/components/page/page.schema.dereffed.json +33 -33
- package/dist/components/page/page.schema.json +2 -2
- package/dist/components/page-wrapper/index.js +1 -6
- package/dist/components/page-wrapper/tokens.css +251 -251
- package/dist/components/presets.json +70 -86
- package/dist/components/providers/index.js +1 -0
- package/dist/components/search/index.js +1 -0
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +27 -1
- package/dist/components/section/section.css +19 -20
- package/dist/components/section/section.schema.dereffed.json +28 -28
- package/dist/components/section/section.schema.json +2 -2
- package/dist/components/seo/seo.schema.dereffed.json +4 -4
- package/dist/components/seo/seo.schema.json +4 -3
- package/dist/components/settings/settings.schema.dereffed.json +29 -45
- package/dist/components/settings/settings.schema.json +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.schema.dereffed.json +18 -17
- package/dist/components/slider/slider.schema.json +1 -1
- package/dist/components/split-even/index.d.ts +1 -1
- package/dist/components/split-even/split-even.schema.dereffed.json +52 -48
- package/dist/components/split-weighted/index.d.ts +1 -1
- package/dist/components/split-weighted/split-weighted.schema.dereffed.json +52 -48
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +16 -4
- package/dist/components/stat/stat.schema.dereffed.json +6 -5
- package/dist/components/stat/stat.schema.json +2 -2
- package/dist/components/stats/index.js +6 -1
- package/dist/components/stats/stats.css +4 -4
- package/dist/components/stats/stats.schema.dereffed.json +6 -5
- package/dist/components/teaser-card/index.js +11 -1
- package/dist/components/teaser-card/teaser-card.css +11 -9
- package/dist/components/testimonial/index.js +7 -1
- package/dist/components/testimonials/index.js +8 -1
- package/dist/components/text/index.js +8 -1
- package/dist/components/video-curtain/index.js +11 -1
- package/dist/components/video-curtain/video-curtain.schema.dereffed.json +1 -1
- package/dist/components/video-curtain/video-curtain.schema.json +1 -1
- package/dist/global.css +2 -2
- package/dist/helpers-12f48df8.d.ts +6 -0
- package/dist/helpers-12f48df8.js +40 -0
- package/dist/static/favicon/android-chrome-192x192.png +0 -0
- package/dist/static/favicon/android-chrome-512x512.png +0 -0
- package/dist/static/favicon/apple-touch-icon.png +0 -0
- package/dist/static/favicon/browserconfig.xml +9 -0
- package/dist/static/favicon/favicon-16x16.png +0 -0
- package/dist/static/favicon/favicon-192-192.png +20 -0
- package/dist/static/favicon/favicon-32x32.png +0 -0
- package/dist/static/favicon/favicon.ico +0 -0
- package/dist/static/favicon/mstile-144x144.png +0 -0
- package/dist/static/favicon/mstile-150x150.png +0 -0
- package/dist/static/favicon/mstile-310x150.png +0 -0
- package/dist/static/favicon/mstile-310x310.png +0 -0
- package/dist/static/favicon/mstile-70x70.png +0 -0
- package/dist/static/favicon/safari-pinned-tab.svg +30 -0
- package/dist/static/favicon/site.webmanifest +19 -1
- package/dist/static/logo-inverted.svg +12 -27
- package/dist/static/logo.svg +12 -27
- package/dist/tokens/IconSprite.js +0 -6
- package/dist/tokens/icon-sprite.html +0 -2
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +251 -251
- package/dist/tokens/tokens.js +376 -377
- package/package.json +6 -4
- package/dist/static/guenther/brands/cadillac.png +0 -0
- package/dist/static/guenther/brands/corvette.png +0 -0
- package/dist/static/guenther/brands/infiniti.png +0 -0
- package/dist/static/guenther/brands/isuzu.png +0 -0
- package/dist/static/guenther/brands/kia.png +0 -0
- package/dist/static/guenther/brands/maserati.png +0 -0
- package/dist/static/guenther/brands/micro.png +0 -0
- package/dist/static/guenther/brands/msg.png +0 -0
- package/dist/static/guenther/brands/nissan.png +0 -0
- package/dist/static/guenther/brands/saab.png +0 -0
- package/dist/static/guenther/brands/subaru.png +0 -0
- package/dist/static/guenther/car-1.webp +0 -0
- package/dist/static/guenther/car-2.webp +0 -0
- package/dist/static/guenther/car-cutout-1.avif +0 -0
- package/dist/static/guenther/car-cutout-2.avif +0 -0
- package/dist/static/guenther/car-cutout-3.png +0 -0
- package/dist/static/guenther/car-red.png +0 -0
- package/dist/static/guenther/car-store.png +0 -0
- package/dist/static/guenther/contact.jpg +0 -0
- package/dist/static/guenther/header-2.png +0 -0
- package/dist/static/guenther/header.jpg +0 -0
- package/dist/static/guenther/header.png +0 -0
- /package/dist/{BlogAsideProps-c760fd2a.d.ts → BlogAsideProps-fb0241df.d.ts} +0 -0
- /package/dist/{ImageStoryProps-e853e1e7.d.ts → ImageStoryProps-00ddee3a.d.ts} +0 -0
|
@@ -3,10 +3,17 @@ import { forwardRef, createElement, createContext, useContext } from 'react';
|
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { Slider } from '../slider/index.js';
|
|
5
5
|
import { Testimonial } from '../testimonial/index.js';
|
|
6
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
6
7
|
import 'classnames';
|
|
7
8
|
import '@kickstartds/content/lib/slider';
|
|
8
9
|
import '@kickstartds/content/lib/quote';
|
|
9
10
|
|
|
11
|
+
const defaults = {
|
|
12
|
+
"layout": "slider",
|
|
13
|
+
"quoteSigns": "normal",
|
|
14
|
+
"testimonial": []
|
|
15
|
+
};
|
|
16
|
+
|
|
10
17
|
const ConditionalSlider = forwardRef(({ layout, children, arrows, nav, ...props }, ref) => {
|
|
11
18
|
if (layout === "slider") {
|
|
12
19
|
return (jsx(Slider, { className: "dsa-testimonials dsa-testimonials--slider", arrows: arrows, nav: nav, ...props, ref: ref, children: children }));
|
|
@@ -21,7 +28,7 @@ const TestimonialsContextDefault = forwardRef(({ testimonial: testimonials = [],
|
|
|
21
28
|
const TestimonialsContext = createContext(TestimonialsContextDefault);
|
|
22
29
|
const Testimonials = forwardRef((props, ref) => {
|
|
23
30
|
const Component = useContext(TestimonialsContext);
|
|
24
|
-
return jsx(Component, { ...props, ref: ref });
|
|
31
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
25
32
|
});
|
|
26
33
|
Testimonials.displayName = "Testimonials";
|
|
27
34
|
|
|
@@ -3,6 +3,13 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { forwardRef, createContext, useContext } from 'react';
|
|
5
5
|
import { RichText } from '@kickstartds/base/lib/rich-text';
|
|
6
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
7
|
+
|
|
8
|
+
const defaults = {
|
|
9
|
+
"layout": "singleColumn",
|
|
10
|
+
"align": "left",
|
|
11
|
+
"highlightText": false
|
|
12
|
+
};
|
|
6
13
|
|
|
7
14
|
const TextContextDefault = forwardRef(({ text, layout = "singleColumn", align = "left", highlightText = false, ...rest }, ref) => {
|
|
8
15
|
const layoutClass = `${layout === "multiColumn" ? "dsa-text--columns" : ""}`;
|
|
@@ -13,7 +20,7 @@ const TextContextDefault = forwardRef(({ text, layout = "singleColumn", align =
|
|
|
13
20
|
const TextContext = createContext(TextContextDefault);
|
|
14
21
|
const Text = forwardRef((props, ref) => {
|
|
15
22
|
const Component = useContext(TextContext);
|
|
16
|
-
return jsx(Component, { ...props, ref: ref });
|
|
23
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
17
24
|
});
|
|
18
25
|
Text.displayName = "Text";
|
|
19
26
|
|
|
@@ -6,8 +6,18 @@ import classnames from 'classnames';
|
|
|
6
6
|
import { Container } from '@kickstartds/core/lib/container';
|
|
7
7
|
import { ButtonContext } from '@kickstartds/base/lib/button';
|
|
8
8
|
import { useButtonGroup } from '../button-group/index.js';
|
|
9
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
9
10
|
import '@kickstartds/base/lib/button-group';
|
|
10
11
|
|
|
12
|
+
const defaults = {
|
|
13
|
+
"highlightText": false,
|
|
14
|
+
"colorNeutral": false,
|
|
15
|
+
"buttons": [],
|
|
16
|
+
"overlay": false,
|
|
17
|
+
"video": {},
|
|
18
|
+
"textPosition": "center"
|
|
19
|
+
};
|
|
20
|
+
|
|
11
21
|
const VideoCurtainContextDefault = forwardRef(({ headline, sub, text, highlightText, colorNeutral, textPosition, overlay, video, className, buttons = [], ...rest }, ref) => {
|
|
12
22
|
const ButtonGroup = useButtonGroup();
|
|
13
23
|
return (jsx(ButtonContext.Provider
|
|
@@ -54,7 +64,7 @@ const VideoCurtainContextDefault = forwardRef(({ headline, sub, text, highlightT
|
|
|
54
64
|
const VideoCurtainContext = createContext(VideoCurtainContextDefault);
|
|
55
65
|
const VideoCurtain = forwardRef((props, ref) => {
|
|
56
66
|
const Component = useContext(VideoCurtainContext);
|
|
57
|
-
return jsx(Component, { ...props, ref: ref });
|
|
67
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
58
68
|
});
|
|
59
69
|
VideoCurtain.displayName = "VideoCurtain";
|
|
60
70
|
|
package/dist/global.css
CHANGED
|
@@ -312,7 +312,7 @@ h3 {
|
|
|
312
312
|
--dsa-link--color_hover: var(--ks-text-color-default-interactive-hover);
|
|
313
313
|
--dsa-link--text-decoration: none;
|
|
314
314
|
--dsa-link--text-decoration_hover: none;
|
|
315
|
-
--dsa-typo--highlight: var(--ks-
|
|
315
|
+
--dsa-typo--highlight: var(--ks-color-primary);
|
|
316
316
|
--dsa-content--horizontal-spacing: var(--ks-spacing-inset-l);
|
|
317
317
|
--dsa-content--vertical-spacing: var(--ks-spacing-xxl);
|
|
318
318
|
--dsa-content--width_narrow: calc(var(--ks-font-size-copy-m) * 34);
|
|
@@ -340,7 +340,7 @@ h3 {
|
|
|
340
340
|
}
|
|
341
341
|
@media (min-width: 62em) {
|
|
342
342
|
:root, [ks-inverted], [ks-theme] {
|
|
343
|
-
--dsa-logo--height:
|
|
343
|
+
--dsa-logo--height: 2.5rem;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare function canBeCloned(val: unknown): boolean;
|
|
2
|
+
type DeepPartial<T> = T extends object ? {
|
|
3
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
|
+
} : T;
|
|
5
|
+
declare function deepMergeDefaults<T extends Record<string, any>>(defaults: DeepPartial<T>, props: T, replaceExamples?: boolean): T;
|
|
6
|
+
export { canBeCloned, DeepPartial, deepMergeDefaults };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function canBeCloned(val) {
|
|
2
|
+
try {
|
|
3
|
+
window.postMessage(val, "*");
|
|
4
|
+
}
|
|
5
|
+
catch (err) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
function deepMergeDefaults(defaults, props, replaceExamples = false) {
|
|
11
|
+
const keys = Array.from(new Set([...Object.keys(defaults), ...Object.keys(props)]));
|
|
12
|
+
return keys.reduce((acc, key) => {
|
|
13
|
+
const val1 = defaults[key];
|
|
14
|
+
const val2 = props[key];
|
|
15
|
+
if (Array.isArray(val1) && Array.isArray(val2)) {
|
|
16
|
+
acc[key] =
|
|
17
|
+
key === "examples" && replaceExamples
|
|
18
|
+
? val2
|
|
19
|
+
: (acc[key] = [...val1, ...val2].filter((value, index, self) => {
|
|
20
|
+
return self.findIndex((v) => v === value) === index;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
else if (typeof val1 === "object" &&
|
|
24
|
+
val1 !== null &&
|
|
25
|
+
typeof val2 === "object" &&
|
|
26
|
+
val2 !== null) {
|
|
27
|
+
acc[key] = deepMergeDefaults(val1, val2, replaceExamples);
|
|
28
|
+
}
|
|
29
|
+
else if (key in props) {
|
|
30
|
+
acc[key] = canBeCloned(val2) ? structuredClone(val2) : val2;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
acc[key] = canBeCloned(val1) ? structuredClone(val1) : val1;
|
|
34
|
+
}
|
|
35
|
+
return acc;
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
|
+
}, {});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { deepMergeDefaults as d };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|