@kickstartds/ds-agency-premium 1.6.58--canary.40.1476.0 → 1.6.58
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-9f207f1c.d.ts +1 -1
- package/dist/BlogPostProps-6b3cff22.d.ts +1 -1
- package/dist/{CtaProps-02e33bf1.d.ts → CtaProps-93230a76.d.ts} +8 -8
- package/dist/SectionProps-1cfcf6e8.d.ts +2 -2
- package/dist/{SliderProps-02e33bf1.d.ts → SliderProps-93230a76.d.ts} +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +24 -39
- package/dist/components/blog-post/blog-post.schema.dereffed.json +24 -39
- package/dist/components/cta/cta.css +61 -35
- package/dist/components/cta/cta.schema.dereffed.json +8 -13
- package/dist/components/cta/cta.schema.json +8 -9
- package/dist/components/cta/index.d.ts +1 -1
- package/dist/components/cta/index.js +6 -4
- package/dist/components/footer/footer.css +1 -1
- package/dist/components/header/header.css +1 -1
- package/dist/components/headline/headline.css +1 -1
- package/dist/components/hero/hero.css +2 -3
- package/dist/components/image-story/image-story.css +2 -5
- package/dist/components/mosaic/mosaic.css +1 -1
- package/dist/components/page/page.schema.dereffed.json +16 -26
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/presets.json +49 -45
- package/dist/components/section/section.css +2 -2
- package/dist/components/section/section.schema.dereffed.json +16 -26
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider.schema.dereffed.json +8 -13
- package/dist/components/split/split.css +2 -2
- package/dist/components/stats/stats.css +2 -6
- package/dist/components/testimonials/index.d.ts +1 -1
- package/dist/global.css +3 -4
- 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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { SectionProps } from "./SectionProps-1cfcf6e8.js";
|
|
7
7
|
import { BlogTeaserProps } from "./BlogTeaserProps-f5855e93.js";
|
|
8
|
-
import { CtaProps } from "./CtaProps-
|
|
8
|
+
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
9
9
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
10
10
|
/**
|
|
11
11
|
* Collection of sections (with their contents) to render as the blog overview intro
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { BlogHeadProps } from "./BlogHeadProps-c04a5ed8.js";
|
|
7
7
|
import { BlogAsideProps } from "./BlogAsideProps-d9decb7c.js";
|
|
8
8
|
import { SectionProps } from "./SectionProps-1cfcf6e8.js";
|
|
9
|
-
import { CtaProps } from "./CtaProps-
|
|
9
|
+
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
10
10
|
import { SeoProps } from "./SeoProps-f2d6dcaa.js";
|
|
11
11
|
/**
|
|
12
12
|
* Body text for the blog post, overwrites sections if present
|
|
@@ -23,6 +23,10 @@ type HighlightText = boolean;
|
|
|
23
23
|
* Make the text and buttons color neutral
|
|
24
24
|
*/
|
|
25
25
|
type ColorNeutral = boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Set the width of the content to the full width of the element
|
|
28
|
+
*/
|
|
29
|
+
type Width = boolean;
|
|
26
30
|
/**
|
|
27
31
|
* Text content to display inside the button
|
|
28
32
|
*/
|
|
@@ -55,10 +59,6 @@ type Padding = boolean;
|
|
|
55
59
|
* Image description
|
|
56
60
|
*/
|
|
57
61
|
type AltText = string;
|
|
58
|
-
/**
|
|
59
|
-
* Select a vertical alignment for the image
|
|
60
|
-
*/
|
|
61
|
-
type VerticalAlignmentOfTheImage = "center" | "top" | "bottom";
|
|
62
62
|
/**
|
|
63
63
|
* Switch to displaying the image after the text on mobile
|
|
64
64
|
*/
|
|
@@ -72,7 +72,7 @@ type DesktopImageAfterText = boolean;
|
|
|
72
72
|
*/
|
|
73
73
|
type TextAlignment = "left" | "center";
|
|
74
74
|
/**
|
|
75
|
-
* Select a vertical alignment for the
|
|
75
|
+
* Select a vertical alignment for the image
|
|
76
76
|
*/
|
|
77
77
|
type VerticalAlignmentOfTheContent = "center" | "top" | "bottom";
|
|
78
78
|
interface CtaProps {
|
|
@@ -81,13 +81,14 @@ interface CtaProps {
|
|
|
81
81
|
text?: ComponentText;
|
|
82
82
|
highlightText?: HighlightText;
|
|
83
83
|
colorNeutral?: ColorNeutral;
|
|
84
|
+
fullWidth?: Width;
|
|
84
85
|
buttons?: Button[];
|
|
85
86
|
backgroundColor?: BackgroundColor;
|
|
86
87
|
backgroundImage?: BackgroundImage;
|
|
87
88
|
image?: Image;
|
|
88
89
|
order?: Order;
|
|
89
90
|
textAlign?: TextAlignment;
|
|
90
|
-
|
|
91
|
+
contentAlign?: VerticalAlignmentOfTheContent;
|
|
91
92
|
}
|
|
92
93
|
interface Button {
|
|
93
94
|
label?: Label;
|
|
@@ -101,7 +102,6 @@ interface Image {
|
|
|
101
102
|
src?: ImageSource;
|
|
102
103
|
padding?: Padding;
|
|
103
104
|
alt?: AltText;
|
|
104
|
-
align?: VerticalAlignmentOfTheImage;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
107
|
* Choose what comes first on mobile and desktop: image or text
|
|
@@ -110,4 +110,4 @@ interface Order {
|
|
|
110
110
|
mobileImageLast?: MobileImageAfterText;
|
|
111
111
|
desktopImageLast?: DesktopImageAfterText;
|
|
112
112
|
}
|
|
113
|
-
export { ComponentHeadline, ComponentSubheadline, ComponentText, HighlightText, ColorNeutral, Label, Icon, Target, BackgroundColor, BackgroundImage, ImageSource, Padding, AltText,
|
|
113
|
+
export { ComponentHeadline, ComponentSubheadline, ComponentText, HighlightText, ColorNeutral, Width, Label, Icon, Target, BackgroundColor, BackgroundImage, ImageSource, Padding, AltText, MobileImageAfterText, DesktopImageAfterText, TextAlignment, VerticalAlignmentOfTheContent, CtaProps, Button, Image, Order };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { CtaProps } from "./CtaProps-
|
|
6
|
+
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
7
7
|
import { DividerProps } from "./DividerProps-2ef31901.js";
|
|
8
8
|
import { FaqProps } from "./FaqProps-ad618cd5.js";
|
|
9
9
|
import { FeaturesProps } from "./FeaturesProps-e58616a5.js";
|
|
@@ -14,7 +14,7 @@ import { ImageStoryProps } from "./ImageStoryProps-e853e1e7.js";
|
|
|
14
14
|
import { ImageTextProps } from "./ImageTextProps-9286cca4.js";
|
|
15
15
|
import { LogosProps } from "./LogosProps-f9474fe2.js";
|
|
16
16
|
import { MosaicProps } from "./MosaicProps-d52c7151.js";
|
|
17
|
-
import { SliderProps } from "./SliderProps-
|
|
17
|
+
import { SliderProps } from "./SliderProps-93230a76.js";
|
|
18
18
|
import { StatsProps } from "./StatsProps-bf5ef578.js";
|
|
19
19
|
import { TeaserCardProps } from "./TeaserCardProps-b9c28e78.js";
|
|
20
20
|
import { TestimonialsProps } from "./TestimonialsProps-f7211553.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
import { CtaProps } from "./CtaProps-
|
|
6
|
+
import { CtaProps } from "./CtaProps-93230a76.js";
|
|
7
7
|
import { FeaturesProps } from "./FeaturesProps-e58616a5.js";
|
|
8
8
|
import { GalleryProps } from "./GalleryProps-76e7de44.js";
|
|
9
9
|
import { HeroProps } from "./HeroProps-f704d270.js";
|
|
@@ -282,6 +282,12 @@
|
|
|
282
282
|
"default": false,
|
|
283
283
|
"type": "boolean"
|
|
284
284
|
},
|
|
285
|
+
"fullWidth": {
|
|
286
|
+
"title": "Width",
|
|
287
|
+
"description": "Set the width of the content to the full width of the element",
|
|
288
|
+
"type": "boolean",
|
|
289
|
+
"default": false
|
|
290
|
+
},
|
|
285
291
|
"buttons": {
|
|
286
292
|
"type": "array",
|
|
287
293
|
"items": {
|
|
@@ -345,17 +351,6 @@
|
|
|
345
351
|
"title": "Alt text",
|
|
346
352
|
"description": "Image description",
|
|
347
353
|
"type": "string"
|
|
348
|
-
},
|
|
349
|
-
"align": {
|
|
350
|
-
"title": "Vertical alignment of the image",
|
|
351
|
-
"description": "Select a vertical alignment for the image",
|
|
352
|
-
"type": "string",
|
|
353
|
-
"enum": [
|
|
354
|
-
"center",
|
|
355
|
-
"top",
|
|
356
|
-
"bottom"
|
|
357
|
-
],
|
|
358
|
-
"default": "center"
|
|
359
354
|
}
|
|
360
355
|
},
|
|
361
356
|
"additionalProperties": false
|
|
@@ -390,9 +385,9 @@
|
|
|
390
385
|
"type": "string",
|
|
391
386
|
"default": "left"
|
|
392
387
|
},
|
|
393
|
-
"
|
|
388
|
+
"contentAlign": {
|
|
394
389
|
"title": "Vertical alignment of the content",
|
|
395
|
-
"description": "Select a vertical alignment for the
|
|
390
|
+
"description": "Select a vertical alignment for the image",
|
|
396
391
|
"type": "string",
|
|
397
392
|
"enum": [
|
|
398
393
|
"center",
|
|
@@ -1543,6 +1538,12 @@
|
|
|
1543
1538
|
"default": false,
|
|
1544
1539
|
"type": "boolean"
|
|
1545
1540
|
},
|
|
1541
|
+
"fullWidth": {
|
|
1542
|
+
"title": "Width",
|
|
1543
|
+
"description": "Set the width of the content to the full width of the element",
|
|
1544
|
+
"type": "boolean",
|
|
1545
|
+
"default": false
|
|
1546
|
+
},
|
|
1546
1547
|
"buttons": {
|
|
1547
1548
|
"type": "array",
|
|
1548
1549
|
"items": {
|
|
@@ -1606,17 +1607,6 @@
|
|
|
1606
1607
|
"title": "Alt text",
|
|
1607
1608
|
"description": "Image description",
|
|
1608
1609
|
"type": "string"
|
|
1609
|
-
},
|
|
1610
|
-
"align": {
|
|
1611
|
-
"title": "Vertical alignment of the image",
|
|
1612
|
-
"description": "Select a vertical alignment for the image",
|
|
1613
|
-
"type": "string",
|
|
1614
|
-
"enum": [
|
|
1615
|
-
"center",
|
|
1616
|
-
"top",
|
|
1617
|
-
"bottom"
|
|
1618
|
-
],
|
|
1619
|
-
"default": "center"
|
|
1620
1610
|
}
|
|
1621
1611
|
},
|
|
1622
1612
|
"additionalProperties": false
|
|
@@ -1651,9 +1641,9 @@
|
|
|
1651
1641
|
"type": "string",
|
|
1652
1642
|
"default": "left"
|
|
1653
1643
|
},
|
|
1654
|
-
"
|
|
1644
|
+
"contentAlign": {
|
|
1655
1645
|
"title": "Vertical alignment of the content",
|
|
1656
|
-
"description": "Select a vertical alignment for the
|
|
1646
|
+
"description": "Select a vertical alignment for the image",
|
|
1657
1647
|
"type": "string",
|
|
1658
1648
|
"enum": [
|
|
1659
1649
|
"center",
|
|
@@ -3703,6 +3693,12 @@
|
|
|
3703
3693
|
"default": false,
|
|
3704
3694
|
"type": "boolean"
|
|
3705
3695
|
},
|
|
3696
|
+
"fullWidth": {
|
|
3697
|
+
"title": "Width",
|
|
3698
|
+
"description": "Set the width of the content to the full width of the element",
|
|
3699
|
+
"type": "boolean",
|
|
3700
|
+
"default": false
|
|
3701
|
+
},
|
|
3706
3702
|
"buttons": {
|
|
3707
3703
|
"type": "array",
|
|
3708
3704
|
"items": {
|
|
@@ -3766,17 +3762,6 @@
|
|
|
3766
3762
|
"title": "Alt text",
|
|
3767
3763
|
"description": "Image description",
|
|
3768
3764
|
"type": "string"
|
|
3769
|
-
},
|
|
3770
|
-
"align": {
|
|
3771
|
-
"title": "Vertical alignment of the image",
|
|
3772
|
-
"description": "Select a vertical alignment for the image",
|
|
3773
|
-
"type": "string",
|
|
3774
|
-
"enum": [
|
|
3775
|
-
"center",
|
|
3776
|
-
"top",
|
|
3777
|
-
"bottom"
|
|
3778
|
-
],
|
|
3779
|
-
"default": "center"
|
|
3780
3765
|
}
|
|
3781
3766
|
},
|
|
3782
3767
|
"additionalProperties": false
|
|
@@ -3811,9 +3796,9 @@
|
|
|
3811
3796
|
"type": "string",
|
|
3812
3797
|
"default": "left"
|
|
3813
3798
|
},
|
|
3814
|
-
"
|
|
3799
|
+
"contentAlign": {
|
|
3815
3800
|
"title": "Vertical alignment of the content",
|
|
3816
|
-
"description": "Select a vertical alignment for the
|
|
3801
|
+
"description": "Select a vertical alignment for the image",
|
|
3817
3802
|
"type": "string",
|
|
3818
3803
|
"enum": [
|
|
3819
3804
|
"center",
|
|
@@ -558,6 +558,12 @@
|
|
|
558
558
|
"default": false,
|
|
559
559
|
"type": "boolean"
|
|
560
560
|
},
|
|
561
|
+
"fullWidth": {
|
|
562
|
+
"title": "Width",
|
|
563
|
+
"description": "Set the width of the content to the full width of the element",
|
|
564
|
+
"type": "boolean",
|
|
565
|
+
"default": false
|
|
566
|
+
},
|
|
561
567
|
"buttons": {
|
|
562
568
|
"type": "array",
|
|
563
569
|
"items": {
|
|
@@ -621,17 +627,6 @@
|
|
|
621
627
|
"title": "Alt text",
|
|
622
628
|
"description": "Image description",
|
|
623
629
|
"type": "string"
|
|
624
|
-
},
|
|
625
|
-
"align": {
|
|
626
|
-
"title": "Vertical alignment of the image",
|
|
627
|
-
"description": "Select a vertical alignment for the image",
|
|
628
|
-
"type": "string",
|
|
629
|
-
"enum": [
|
|
630
|
-
"center",
|
|
631
|
-
"top",
|
|
632
|
-
"bottom"
|
|
633
|
-
],
|
|
634
|
-
"default": "center"
|
|
635
630
|
}
|
|
636
631
|
},
|
|
637
632
|
"additionalProperties": false
|
|
@@ -666,9 +661,9 @@
|
|
|
666
661
|
"type": "string",
|
|
667
662
|
"default": "left"
|
|
668
663
|
},
|
|
669
|
-
"
|
|
664
|
+
"contentAlign": {
|
|
670
665
|
"title": "Vertical alignment of the content",
|
|
671
|
-
"description": "Select a vertical alignment for the
|
|
666
|
+
"description": "Select a vertical alignment for the image",
|
|
672
667
|
"type": "string",
|
|
673
668
|
"enum": [
|
|
674
669
|
"center",
|
|
@@ -1819,6 +1814,12 @@
|
|
|
1819
1814
|
"default": false,
|
|
1820
1815
|
"type": "boolean"
|
|
1821
1816
|
},
|
|
1817
|
+
"fullWidth": {
|
|
1818
|
+
"title": "Width",
|
|
1819
|
+
"description": "Set the width of the content to the full width of the element",
|
|
1820
|
+
"type": "boolean",
|
|
1821
|
+
"default": false
|
|
1822
|
+
},
|
|
1822
1823
|
"buttons": {
|
|
1823
1824
|
"type": "array",
|
|
1824
1825
|
"items": {
|
|
@@ -1882,17 +1883,6 @@
|
|
|
1882
1883
|
"title": "Alt text",
|
|
1883
1884
|
"description": "Image description",
|
|
1884
1885
|
"type": "string"
|
|
1885
|
-
},
|
|
1886
|
-
"align": {
|
|
1887
|
-
"title": "Vertical alignment of the image",
|
|
1888
|
-
"description": "Select a vertical alignment for the image",
|
|
1889
|
-
"type": "string",
|
|
1890
|
-
"enum": [
|
|
1891
|
-
"center",
|
|
1892
|
-
"top",
|
|
1893
|
-
"bottom"
|
|
1894
|
-
],
|
|
1895
|
-
"default": "center"
|
|
1896
1886
|
}
|
|
1897
1887
|
},
|
|
1898
1888
|
"additionalProperties": false
|
|
@@ -1927,9 +1917,9 @@
|
|
|
1927
1917
|
"type": "string",
|
|
1928
1918
|
"default": "left"
|
|
1929
1919
|
},
|
|
1930
|
-
"
|
|
1920
|
+
"contentAlign": {
|
|
1931
1921
|
"title": "Vertical alignment of the content",
|
|
1932
|
-
"description": "Select a vertical alignment for the
|
|
1922
|
+
"description": "Select a vertical alignment for the image",
|
|
1933
1923
|
"type": "string",
|
|
1934
1924
|
"enum": [
|
|
1935
1925
|
"center",
|
|
@@ -3462,6 +3452,12 @@
|
|
|
3462
3452
|
"default": false,
|
|
3463
3453
|
"type": "boolean"
|
|
3464
3454
|
},
|
|
3455
|
+
"fullWidth": {
|
|
3456
|
+
"title": "Width",
|
|
3457
|
+
"description": "Set the width of the content to the full width of the element",
|
|
3458
|
+
"type": "boolean",
|
|
3459
|
+
"default": false
|
|
3460
|
+
},
|
|
3465
3461
|
"buttons": {
|
|
3466
3462
|
"type": "array",
|
|
3467
3463
|
"items": {
|
|
@@ -3525,17 +3521,6 @@
|
|
|
3525
3521
|
"title": "Alt text",
|
|
3526
3522
|
"description": "Image description",
|
|
3527
3523
|
"type": "string"
|
|
3528
|
-
},
|
|
3529
|
-
"align": {
|
|
3530
|
-
"title": "Vertical alignment of the image",
|
|
3531
|
-
"description": "Select a vertical alignment for the image",
|
|
3532
|
-
"type": "string",
|
|
3533
|
-
"enum": [
|
|
3534
|
-
"center",
|
|
3535
|
-
"top",
|
|
3536
|
-
"bottom"
|
|
3537
|
-
],
|
|
3538
|
-
"default": "center"
|
|
3539
3524
|
}
|
|
3540
3525
|
},
|
|
3541
3526
|
"additionalProperties": false
|
|
@@ -3570,9 +3555,9 @@
|
|
|
3570
3555
|
"type": "string",
|
|
3571
3556
|
"default": "left"
|
|
3572
3557
|
},
|
|
3573
|
-
"
|
|
3558
|
+
"contentAlign": {
|
|
3574
3559
|
"title": "Vertical alignment of the content",
|
|
3575
|
-
"description": "Select a vertical alignment for the
|
|
3560
|
+
"description": "Select a vertical alignment for the image",
|
|
3576
3561
|
"type": "string",
|
|
3577
3562
|
"enum": [
|
|
3578
3563
|
"center",
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
.dsa-cta {
|
|
2
|
-
--dsa-cta--
|
|
3
|
-
--dsa-
|
|
4
|
-
--dsa-cta__content--horizontal-padding: var(--dsa-content--horizontal-spacing);
|
|
5
|
-
--dsa-cta__content--max-width: var(--dsa-content--width_narrow);
|
|
2
|
+
--dsa-cta--vertical-padding: var(--l-section--space-default);
|
|
3
|
+
--dsa-cta--horizontal-padding: var(--dsa-content--spacing);
|
|
6
4
|
--dsa-cta__copy--font: var(--dsa-rich-text--font);
|
|
7
5
|
--dsa-cta__copy--color: var(--ks-text-color-default);
|
|
8
6
|
--dsa-cta__headline--color: var(--dsa-headline--color);
|
|
9
7
|
--dsa-cta__headline--font: var(--dsa-headline_h2--font);
|
|
10
8
|
--dsa-cta__subheadline--color: var(--dsa-headline__subheadline--color);
|
|
11
9
|
--dsa-cta__subheadline--font: var(--dsa-headline_h2__subheadline--font);
|
|
12
|
-
--dsa-cta__image--padding: var(--ks-spacing-inset-m);
|
|
13
10
|
--dsa-cta_color-neutral__headline--color: var(--ks-text-color-default);
|
|
14
11
|
--dsa-cta_color-neutral__subheadline--color: var(--ks-text-color-default);
|
|
15
12
|
--dsa-cta_color-neutral__copy--color: var(--ks-text-color-default);
|
|
@@ -19,11 +16,11 @@
|
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
.dsa-cta.c-storytelling {
|
|
22
|
-
--c-storytelling--
|
|
23
|
-
--c-storytelling--
|
|
19
|
+
--c-storytelling--padding-ratio: 2;
|
|
20
|
+
--c-storytelling--horizontal-padding: var(--dsa-content--spacing);
|
|
24
21
|
justify-content: center;
|
|
25
22
|
align-items: stretch;
|
|
26
|
-
|
|
23
|
+
padding: 0;
|
|
27
24
|
}
|
|
28
25
|
.dsa-cta.c-storytelling.dsa-cta--color-neutral {
|
|
29
26
|
--dsa-cta__copy--color: var(--dsa-cta_color-neutral__copy--color, var(--ks-text-color-default));
|
|
@@ -38,16 +35,34 @@
|
|
|
38
35
|
var(--dsa-headline_h1__subheadline--font)
|
|
39
36
|
);
|
|
40
37
|
}
|
|
41
|
-
.dsa-cta.c-storytelling.
|
|
42
|
-
padding:
|
|
38
|
+
.dsa-cta.c-storytelling.c-storytelling--full {
|
|
39
|
+
--c-storytelling--padding-ratio: 1;
|
|
43
40
|
}
|
|
44
|
-
.dsa-cta.c-storytelling.
|
|
45
|
-
padding: var(--dsa-
|
|
41
|
+
.dsa-cta.c-storytelling.c-storytelling--full.c-storytelling--order-desktop-image-last .c-storytelling__box {
|
|
42
|
+
padding-left: var(--dsa-cta--horizontal-padding);
|
|
46
43
|
}
|
|
47
|
-
.dsa-cta.c-storytelling
|
|
48
|
-
|
|
44
|
+
.dsa-cta.c-storytelling.dsa-cta--align-top {
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
}
|
|
47
|
+
.dsa-cta.c-storytelling.dsa-cta--align-bottom {
|
|
48
|
+
align-items: flex-end;
|
|
49
|
+
}
|
|
50
|
+
.dsa-cta.c-storytelling .c-storytelling__box {
|
|
51
|
+
width: 100%;
|
|
52
|
+
padding: var(--dsa-cta--vertical-padding, var(--l-section--space-default)) var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing));
|
|
49
53
|
}
|
|
50
|
-
|
|
54
|
+
@container storytelling (max-width: 640px) {
|
|
55
|
+
.dsa-cta.c-storytelling .c-storytelling__box {
|
|
56
|
+
padding-top: calc(var(--dsa-cta--vertical-padding, var(--l-section--space-default)) / var(--c-storytelling--padding-ratio));
|
|
57
|
+
}
|
|
58
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
59
|
+
padding-top: var(--dsa-cta--vertical-padding, var(--l-section--space-default));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
63
|
+
padding: var(--dsa-cta--vertical-padding, var(--l-section--space-default)) var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing));
|
|
64
|
+
}
|
|
65
|
+
.dsa-cta.c-storytelling .c-storytelling__box__content {
|
|
51
66
|
max-width: 100%;
|
|
52
67
|
}
|
|
53
68
|
.dsa-cta.c-storytelling .c-storytelling__box .dsa-headline__headline {
|
|
@@ -64,39 +79,50 @@
|
|
|
64
79
|
font: var(--dsa-cta__copy--font, var(--dsa-rich-text--font, var(--ks-font-copy-m)));
|
|
65
80
|
color: var(--dsa-cta__copy--color, var(--dsa-rich-text--color, var(--ks-text-color-copy)));
|
|
66
81
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
83
|
+
--dsa-cta--horizontal-padding: var(--dsa-content--spacing);
|
|
84
|
+
}
|
|
85
|
+
.dsa-cta.c-storytelling .c-storytelling__image {
|
|
86
|
+
margin: 0;
|
|
87
|
+
}
|
|
88
|
+
@container storytelling (min-width: 640px) {
|
|
89
|
+
.dsa-cta.c-storytelling.c-storytelling--order-desktop-image-last .c-storytelling__image {
|
|
90
|
+
padding-left: calc(var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing)) / var(--c-storytelling--padding-ratio));
|
|
91
|
+
}
|
|
92
|
+
.dsa-cta.c-storytelling.c-storytelling--order-desktop-image-last .c-storytelling__box {
|
|
93
|
+
padding-right: calc(var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing)) / var(--c-storytelling--padding-ratio));
|
|
70
94
|
}
|
|
71
|
-
.dsa-cta.c-storytelling
|
|
72
|
-
padding-
|
|
95
|
+
.dsa-cta.c-storytelling .c-storytelling__box {
|
|
96
|
+
padding-left: calc(var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing)) / var(--c-storytelling--padding-ratio));
|
|
73
97
|
}
|
|
74
|
-
.dsa-cta.c-storytelling
|
|
75
|
-
|
|
98
|
+
.dsa-cta.c-storytelling .c-storytelling__box__content--center .c-button-group {
|
|
99
|
+
justify-content: center;
|
|
76
100
|
}
|
|
77
|
-
.dsa-cta.c-storytelling
|
|
78
|
-
|
|
101
|
+
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
102
|
+
width: 100%;
|
|
103
|
+
max-width: calc(var(--dsa-content--width_default) - var(--dsa-content--spacing) * var(--c-storytelling--padding-ratio));
|
|
79
104
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
padding-right: 0;
|
|
105
|
+
.dsa-cta.c-storytelling > .c-storytelling__image {
|
|
106
|
+
padding: var(--dsa-cta--vertical-padding, var(--l-section--space-default)) var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing));
|
|
107
|
+
padding-right: calc(var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing)) / var(--c-storytelling--padding-ratio));
|
|
84
108
|
}
|
|
85
|
-
.dsa-cta.c-storytelling.c-storytelling--
|
|
86
|
-
padding
|
|
109
|
+
.dsa-cta.c-storytelling.c-storytelling--full > .c-storytelling__image {
|
|
110
|
+
padding: 0;
|
|
87
111
|
}
|
|
88
|
-
.dsa-cta.c-storytelling
|
|
89
|
-
|
|
112
|
+
.dsa-cta.c-storytelling > .c-storytelling__image,
|
|
113
|
+
.dsa-cta.c-storytelling > .c-storytelling__box {
|
|
114
|
+
max-width: calc(var(--dsa-content--width_wide) / 2);
|
|
90
115
|
}
|
|
91
|
-
.dsa-cta.c-storytelling
|
|
92
|
-
|
|
116
|
+
.dsa-cta.c-storytelling.dsa-cta--full-width > .c-storytelling__image,
|
|
117
|
+
.dsa-cta.c-storytelling.dsa-cta--full-width > .c-storytelling__box {
|
|
118
|
+
max-width: 100%;
|
|
93
119
|
}
|
|
94
120
|
}
|
|
95
121
|
|
|
96
122
|
@media (min-width: 640px) {
|
|
97
123
|
.dsa-header--floating + .l-container--storytelling .c-storytelling.dsa-cta,
|
|
98
124
|
.dsa-header--floating + .l-section .l-container--storytelling:first-child .c-storytelling.dsa-cta {
|
|
99
|
-
padding-top: calc(var(--dsa-header--height) + var(--dsa-
|
|
125
|
+
padding-top: calc(var(--dsa-header--height) + var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing)));
|
|
100
126
|
z-index: 1;
|
|
101
127
|
}
|
|
102
128
|
}
|
|
@@ -40,6 +40,12 @@
|
|
|
40
40
|
"default": false,
|
|
41
41
|
"type": "boolean"
|
|
42
42
|
},
|
|
43
|
+
"fullWidth": {
|
|
44
|
+
"title": "Width",
|
|
45
|
+
"description": "Set the width of the content to the full width of the element",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
},
|
|
43
49
|
"buttons": {
|
|
44
50
|
"type": "array",
|
|
45
51
|
"items": {
|
|
@@ -103,17 +109,6 @@
|
|
|
103
109
|
"title": "Alt text",
|
|
104
110
|
"description": "Image description",
|
|
105
111
|
"type": "string"
|
|
106
|
-
},
|
|
107
|
-
"align": {
|
|
108
|
-
"title": "Vertical alignment of the image",
|
|
109
|
-
"description": "Select a vertical alignment for the image",
|
|
110
|
-
"type": "string",
|
|
111
|
-
"enum": [
|
|
112
|
-
"center",
|
|
113
|
-
"top",
|
|
114
|
-
"bottom"
|
|
115
|
-
],
|
|
116
|
-
"default": "center"
|
|
117
112
|
}
|
|
118
113
|
},
|
|
119
114
|
"additionalProperties": false
|
|
@@ -148,9 +143,9 @@
|
|
|
148
143
|
"type": "string",
|
|
149
144
|
"default": "left"
|
|
150
145
|
},
|
|
151
|
-
"
|
|
146
|
+
"contentAlign": {
|
|
152
147
|
"title": "Vertical alignment of the content",
|
|
153
|
-
"description": "Select a vertical alignment for the
|
|
148
|
+
"description": "Select a vertical alignment for the image",
|
|
154
149
|
"type": "string",
|
|
155
150
|
"enum": [
|
|
156
151
|
"center",
|
|
@@ -36,6 +36,12 @@
|
|
|
36
36
|
"default": false,
|
|
37
37
|
"type": "boolean"
|
|
38
38
|
},
|
|
39
|
+
"fullWidth": {
|
|
40
|
+
"title": "Width",
|
|
41
|
+
"description": "Set the width of the content to the full width of the element",
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": false
|
|
44
|
+
},
|
|
39
45
|
"buttons": {
|
|
40
46
|
"type": "array",
|
|
41
47
|
"items": {
|
|
@@ -81,13 +87,6 @@
|
|
|
81
87
|
"title": "Alt text",
|
|
82
88
|
"description": "Image description",
|
|
83
89
|
"type": "string"
|
|
84
|
-
},
|
|
85
|
-
"align": {
|
|
86
|
-
"title": "Vertical alignment of the image",
|
|
87
|
-
"description": "Select a vertical alignment for the image",
|
|
88
|
-
"type": "string",
|
|
89
|
-
"enum": ["center", "top", "bottom"],
|
|
90
|
-
"default": "center"
|
|
91
90
|
}
|
|
92
91
|
},
|
|
93
92
|
"additionalProperties": false
|
|
@@ -119,9 +118,9 @@
|
|
|
119
118
|
"type": "string",
|
|
120
119
|
"default": "left"
|
|
121
120
|
},
|
|
122
|
-
"
|
|
121
|
+
"contentAlign": {
|
|
123
122
|
"title": "Vertical alignment of the content",
|
|
124
|
-
"description": "Select a vertical alignment for the
|
|
123
|
+
"description": "Select a vertical alignment for the image",
|
|
125
124
|
"type": "string",
|
|
126
125
|
"enum": ["center", "top", "bottom"],
|
|
127
126
|
"default": "center"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
import { CtaProps } from "../../CtaProps-
|
|
3
|
+
import { CtaProps } from "../../CtaProps-93230a76.js";
|
|
4
4
|
declare const CtaContextDefault: import("react").ForwardRefExoticComponent<CtaProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const CtaContext: import("react").Context<import("react").ForwardRefExoticComponent<CtaProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
declare const Cta: import("react").ForwardRefExoticComponent<CtaProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -7,20 +7,22 @@ import classnames from 'classnames';
|
|
|
7
7
|
import { useButtonGroup } from '../button-group/index.js';
|
|
8
8
|
import '@kickstartds/base/lib/button-group';
|
|
9
9
|
|
|
10
|
-
const CtaContextDefault = forwardRef(({ headline, highlightText = false, sub, image, text, textAlign, backgroundImage, backgroundColor, colorNeutral,
|
|
10
|
+
const CtaContextDefault = forwardRef(({ headline, highlightText = false, sub, image, text, textAlign, backgroundImage, backgroundColor, colorNeutral, contentAlign, order, fullWidth = false, buttons = [], ...rest }, ref) => {
|
|
11
11
|
const ButtonGroup = useButtonGroup();
|
|
12
12
|
return (jsx(ButtonContext.Provider
|
|
13
13
|
// @ts-expect-error
|
|
14
14
|
, {
|
|
15
15
|
// @ts-expect-error
|
|
16
|
-
value: ButtonGroup, children: jsx(Storytelling, { ...rest, ref: ref, className: classnames("dsa-cta",
|
|
16
|
+
value: ButtonGroup, children: jsx(Storytelling, { ...rest, ref: ref, className: classnames("dsa-cta", fullWidth ? `dsa-cta--full-width` : "", highlightText ? `dsa-cta--highlight-text` : "", colorNeutral ? `dsa-cta--color-neutral` : "", contentAlign && contentAlign !== "center"
|
|
17
|
+
? `dsa-cta--align-${contentAlign}`
|
|
18
|
+
: ""), backgroundImage: backgroundImage, backgroundColor: backgroundColor, full: image?.padding === false, image: {
|
|
17
19
|
source: image?.src,
|
|
18
20
|
order: order,
|
|
19
|
-
vAlign:
|
|
21
|
+
vAlign: contentAlign,
|
|
20
22
|
}, box: {
|
|
21
23
|
text: text,
|
|
22
24
|
textAlign: textAlign,
|
|
23
|
-
vAlign:
|
|
25
|
+
vAlign: contentAlign,
|
|
24
26
|
link: {
|
|
25
27
|
buttons,
|
|
26
28
|
colorNeutral: colorNeutral,
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
background-color: var(--dsa-footer--background-color, var(--ks-background-color-default));
|
|
28
28
|
}
|
|
29
29
|
.dsa-footer__content {
|
|
30
|
-
padding: var(--l-section--space-small) var(--dsa-content--
|
|
30
|
+
padding: var(--l-section--space-small) var(--dsa-content--spacing);
|
|
31
31
|
border-top: var(--dsa-footer--border-top, 1px solid var(--ks-border-color-default));
|
|
32
32
|
max-width: var(--dsa-footer--max-width, var(--dsa-content--width_wide));
|
|
33
33
|
width: 100%;
|