@kickstartds/ds-agency-premium 1.6.70--canary.45.1748.0 → 1.6.70
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/{BlogAsideProps-c760fd2a.d.ts → BlogAsideProps-d9decb7c.d.ts} +5 -5
- package/dist/{BlogAuthorProps-fb0241df.d.ts → BlogAuthorProps-88a11566.d.ts} +2 -7
- package/dist/BlogOverviewProps-9f207f1c.d.ts +2 -2
- package/dist/{BlogPostProps-6b3cff22.d.ts → BlogPostProps-d9decb7c.d.ts} +3 -3
- package/dist/{ButtonProps-00ddee3a.d.ts → ButtonProps-03ff6d21.d.ts} +4 -4
- package/dist/{CtaProps-babe4ee6.d.ts → CtaProps-93230a76.d.ts} +11 -21
- package/dist/{FeaturesProps-a9041d97.d.ts → FeaturesProps-e58616a5.d.ts} +4 -9
- package/dist/{FooterProps-a0a104ca.d.ts → FooterProps-171a3067.d.ts} +2 -2
- package/dist/{HeaderProps-72763967.d.ts → HeaderProps-e22382f1.d.ts} +2 -2
- package/dist/{HeroProps-40f6c7f5.d.ts → HeroProps-f704d270.d.ts} +4 -9
- package/dist/ImageStoryProps-e853e1e7.d.ts +1 -1
- package/dist/MosaicProps-d52c7151.d.ts +4 -4
- package/dist/PageProps-aa29c554.d.ts +1 -1
- package/dist/{SectionProps-7caa223c.d.ts → SectionProps-1cfcf6e8.d.ts} +9 -14
- package/dist/{SliderProps-babe4ee6.d.ts → SliderProps-93230a76.d.ts} +4 -4
- package/dist/{StatProps-12a3eae0.d.ts → StatProps-79109ad0.d.ts} +1 -1
- package/dist/StatsProps-bf5ef578.d.ts +1 -1
- package/dist/{TeaserCardProps-994cb119.d.ts → TeaserCardProps-b9c28e78.d.ts} +4 -4
- package/dist/{VideoCurtainProps-a2c0cc7f.d.ts → VideoCurtainProps-6c625a69.d.ts} +5 -5
- package/dist/components/blog-aside/blog-aside.schema.dereffed.json +8 -16
- package/dist/components/blog-aside/blog-aside.schema.json +4 -4
- package/dist/components/blog-aside/index.d.ts +1 -1
- package/dist/components/blog-aside/index.js +1 -1
- package/dist/components/blog-author/blog-author.schema.dereffed.json +4 -12
- package/dist/components/blog-author/index.d.ts +1 -1
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +89 -182
- package/dist/components/blog-post/blog-post.schema.dereffed.json +97 -198
- package/dist/components/blog-post/index.d.ts +1 -1
- package/dist/components/blog-teaser/index.js +7 -5
- package/dist/components/button/button.css +2 -2
- package/dist/components/button/button.schema.dereffed.json +3 -3
- package/dist/components/button/button.schema.json +3 -3
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/button-group.schema.dereffed.json +3 -3
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/contact/contact.schema.dereffed.json +5 -13
- package/dist/components/contact/contact.schema.json +5 -11
- package/dist/components/contact/index.d.ts +1 -6
- package/dist/components/contact/index.js +1 -1
- package/dist/components/cta/cta.css +56 -44
- package/dist/components/cta/cta.schema.dereffed.json +11 -28
- package/dist/components/cta/cta.schema.json +10 -23
- package/dist/components/cta/index.d.ts +1 -1
- package/dist/components/cta/index.js +26 -25
- package/dist/components/feature/feature.schema.dereffed.json +3 -13
- package/dist/components/feature/feature.schema.json +3 -11
- package/dist/components/feature/index.d.ts +3 -8
- package/dist/components/feature/index.js +3 -2
- package/dist/components/features/features.css +35 -15
- package/dist/components/features/features.schema.dereffed.json +3 -13
- package/dist/components/features/features.schema.json +2 -5
- package/dist/components/features/index.d.ts +1 -1
- package/dist/components/features/index.js +2 -2
- package/dist/components/footer/footer.css +1 -1
- package/dist/components/footer/footer.schema.dereffed.json +12 -12
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/footer/index.js +1 -1
- package/dist/components/gallery/gallery.schema.dereffed.json +1 -2
- package/dist/components/gallery/gallery.schema.json +1 -2
- package/dist/components/gallery/index.js +1 -1
- package/dist/components/header/header.css +9 -47
- package/dist/components/header/header.schema.dereffed.json +12 -12
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +5 -5
- package/dist/components/headline/headline.css +2 -2
- package/dist/components/hero/hero.css +25 -61
- package/dist/components/hero/hero.schema.dereffed.json +3 -9
- package/dist/components/hero/hero.schema.json +2 -8
- package/dist/components/hero/index.d.ts +1 -1
- package/dist/components/hero/index.js +39 -39
- package/dist/components/image-story/image-story.css +2 -5
- package/dist/components/image-story/image-story.schema.dereffed.json +3 -3
- package/dist/components/index/index.d.ts +3 -4
- package/dist/components/logos/index.js +1 -1
- package/dist/components/mosaic/index.js +1 -1
- package/dist/components/mosaic/mosaic.css +1 -1
- package/dist/components/mosaic/mosaic.schema.dereffed.json +3 -3
- package/dist/components/nav-dropdown/index.d.ts +1 -1
- package/dist/components/nav-dropdown/index.js +2 -2
- package/dist/components/nav-dropdown/nav-dropdown.css +3 -12
- package/dist/components/nav-dropdown/nav-dropdown.schema.dereffed.json +1 -1
- package/dist/components/nav-flyout/index.d.ts +2 -2
- package/dist/components/nav-flyout/index.js +8 -6
- package/dist/components/nav-flyout/nav-flyout.css +15 -29
- package/dist/components/nav-flyout/nav-flyout.schema.dereffed.json +12 -12
- package/dist/components/nav-main/index.d.ts +5 -5
- package/dist/components/nav-main/index.js +2 -0
- package/dist/components/nav-main/nav-main.schema.dereffed.json +15 -15
- package/dist/components/nav-main/nav-main.schema.json +14 -14
- package/dist/components/nav-toggle/index.js +1 -1
- package/dist/components/nav-topbar/index.d.ts +2 -2
- package/dist/components/nav-topbar/index.js +2 -2
- package/dist/components/nav-topbar/nav-topbar.css +2 -15
- package/dist/components/nav-topbar/nav-topbar.schema.dereffed.json +12 -12
- package/dist/components/page/page.schema.dereffed.json +78 -154
- package/dist/components/page-wrapper/index.js +0 -42
- package/dist/components/page-wrapper/tokens.css +731 -427
- package/dist/components/presets.json +267 -863
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +3 -11
- package/dist/components/section/section.css +58 -38
- package/dist/components/section/section.schema.dereffed.json +78 -154
- package/dist/components/section/section.schema.json +10 -8
- package/dist/components/settings/settings.schema.dereffed.json +24 -24
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/slider.schema.dereffed.json +28 -61
- package/dist/components/split/split.css +2 -2
- package/dist/components/stat/index.d.ts +1 -1
- package/dist/components/stat/index.js +12 -3
- package/dist/components/stat/stat.schema.dereffed.json +6 -5
- package/dist/components/stat/stat.schema.json +2 -2
- package/dist/components/stats/stats.schema.dereffed.json +6 -5
- package/dist/components/teaser-card/index.d.ts +1 -1
- package/dist/components/teaser-card/index.js +9 -9
- package/dist/components/teaser-card/teaser-card.css +47 -67
- package/dist/components/teaser-card/teaser-card.schema.dereffed.json +4 -4
- package/dist/components/teaser-card/teaser-card.schema.json +4 -4
- package/dist/components/testimonials/index.d.ts +1 -1
- package/dist/components/tile/tile.schema.dereffed.json +3 -3
- package/dist/components/tile/tile.schema.json +2 -2
- package/dist/components/video-curtain/index.d.ts +1 -1
- package/dist/components/video-curtain/index.js +4 -12
- package/dist/components/video-curtain/video-curtain.css +29 -52
- package/dist/components/video-curtain/video-curtain.schema.dereffed.json +4 -6
- package/dist/components/video-curtain/video-curtain.schema.json +3 -3
- package/dist/global.css +59 -283
- package/dist/static/img/screenshots/blog-blog-aside--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-author--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-head--default.png +0 -0
- package/dist/static/img/screenshots/blog-blog-teaser--default.png +0 -0
- package/dist/static/img/screenshots/components-contact--wide-image.png +0 -0
- package/dist/static/img/screenshots/components-cta--align-bottom.png +0 -0
- package/dist/static/img/screenshots/components-cta--angled-image.png +0 -0
- package/dist/static/img/screenshots/components-cta--banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--colored-banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--contact-banner.png +0 -0
- package/dist/static/img/screenshots/components-cta--highlighted.png +0 -0
- package/dist/static/img/screenshots/components-cta--left-aligned.png +0 -0
- package/dist/static/img/screenshots/components-cta--product-advertisement.png +0 -0
- package/dist/static/img/screenshots/components-cta--split-banner.png +0 -0
- package/dist/static/img/screenshots/components-faq--dropdown-list.png +0 -0
- package/dist/static/img/screenshots/components-faq--single-dropdown.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-beside-with-link-in-text.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-centered.png +0 -0
- package/dist/static/img/screenshots/components-features--icon-intext-with-link.png +0 -0
- package/dist/static/img/screenshots/components-features--list-view.png +0 -0
- package/dist/static/img/screenshots/components-features--stack-with-button.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-1.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-2.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-3.png +0 -0
- package/dist/static/img/screenshots/components-headline--h-4.png +0 -0
- package/dist/static/img/screenshots/components-headline--order-swapped.png +0 -0
- package/dist/static/img/screenshots/components-headline--with-markdown.png +0 -0
- package/dist/static/img/screenshots/components-headline--with-subheadline.png +0 -0
- package/dist/static/img/screenshots/components-hero--text-box-on-full-screen.png +0 -0
- package/dist/static/img/screenshots/components-hero--text-on-image-with-overlay.png +0 -0
- package/dist/static/img/screenshots/components-html--html.png +0 -0
- package/dist/static/img/screenshots/components-html--with-consent.png +0 -0
- package/dist/static/img/screenshots/components-html--with-script.png +0 -0
- package/dist/static/img/screenshots/components-logos--centered-with-button.png +0 -0
- package/dist/static/img/screenshots/components-logos--left-aligned-with-text-link.png +0 -0
- package/dist/static/img/screenshots/components-stats--count-up-with-description.png +0 -0
- package/dist/static/img/screenshots/components-stats--count-up-with-icons.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--alternating-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--list-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--simple.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--slider-layout.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--with-rating.png +0 -0
- package/dist/static/img/screenshots/components-testimonials--with-title.png +0 -0
- package/dist/static/img/screenshots/form-select-field--default.png +0 -0
- package/dist/static/img/screenshots/form-text-area--default.png +0 -0
- package/dist/static/img/screenshots/form-text-field--default.png +0 -0
- package/dist/static/img/screenshots/layout-divider--accent.png +0 -0
- package/dist/static/img/screenshots/layout-footer--footer.png +0 -0
- package/dist/static/img/screenshots/layout-header--header.png +0 -0
- package/dist/static/img/screenshots/layout-section--accent-background.png +0 -0
- package/dist/static/img/screenshots/layout-section--background-image.png +0 -0
- package/dist/static/img/screenshots/layout-section--bold-background.png +0 -0
- package/dist/static/img/screenshots/layout-section--cards.png +0 -0
- package/dist/static/img/screenshots/layout-section--colorful-gradient.png +0 -0
- package/dist/static/img/screenshots/layout-section--flex-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--inverted.png +0 -0
- package/dist/static/img/screenshots/layout-section--list-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--slider.png +0 -0
- package/dist/static/img/screenshots/layout-section--spotlight.png +0 -0
- package/dist/static/img/screenshots/layout-section--stagelights.png +0 -0
- package/dist/static/img/screenshots/layout-section--tile-layout.png +0 -0
- package/dist/static/img/screenshots/layout-section--with-buttons.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-arrows.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-autoplay.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-nav.png +0 -0
- package/dist/static/img/screenshots/layout-slider--with-teased-neighbours.png +0 -0
- package/dist/static/img/screenshots/{pages-archetypes--blog-overview.png → page-archetypes-blog-overview--blog-overview.png} +0 -0
- package/dist/static/img/screenshots/page-archetypes-blog-post--blog-post.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-landingpage--landingpage.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-overview--overview.png +0 -0
- package/dist/static/img/screenshots/page-archetypes-showcase--showcase.png +0 -0
- package/dist/static/logo-inverted.svg +25 -12
- package/dist/static/logo.svg +25 -12
- package/dist/tokens/IconSprite.js +0 -42
- package/dist/tokens/icon-sprite.html +0 -16
- package/dist/tokens/themes.css +4 -4
- package/dist/tokens/tokens.css +731 -427
- package/dist/tokens/tokens.js +730 -628
- package/package.json +1 -1
- package/dist/EventAppointmentProps-443cd1ce.d.ts +0 -38
- package/dist/EventDetailProps-42a7eebe.d.ts +0 -387
- package/dist/EventLatestTeaserProps-fc9d3281.d.ts +0 -58
- package/dist/EventLocationProps-871bc198.d.ts +0 -41
- package/dist/components/breadcrumb/breadcrumb.css +0 -32
- package/dist/components/breadcrumb/breadcrumb.schema.dereffed.json +0 -34
- package/dist/components/breadcrumb/breadcrumb.schema.json +0 -27
- package/dist/components/breadcrumb/index.d.ts +0 -28
- package/dist/components/breadcrumb/index.js +0 -17
- package/dist/components/downloads/downloads.css +0 -153
- package/dist/components/downloads/downloads.schema.dereffed.json +0 -55
- package/dist/components/downloads/downloads.schema.json +0 -44
- package/dist/components/downloads/index.d.ts +0 -41
- package/dist/components/downloads/index.js +0 -18
- package/dist/components/event-appointment/event-appointment.css +0 -62
- package/dist/components/event-appointment/event-appointment.schema.dereffed.json +0 -56
- package/dist/components/event-appointment/event-appointment.schema.json +0 -47
- package/dist/components/event-appointment/index.d.ts +0 -7
- package/dist/components/event-appointment/index.js +0 -14
- package/dist/components/event-detail/event-detail.schema.dereffed.json +0 -287
- package/dist/components/event-detail/event-detail.schema.json +0 -74
- package/dist/components/event-detail/index.d.ts +0 -5
- package/dist/components/event-detail/index.js +0 -36
- package/dist/components/event-header/event-header.css +0 -6
- package/dist/components/event-header/event-header.schema.dereffed.json +0 -38
- package/dist/components/event-header/event-header.schema.json +0 -34
- package/dist/components/event-header/index.d.ts +0 -35
- package/dist/components/event-header/index.js +0 -20
- package/dist/components/event-latest/event-latest.css +0 -5
- package/dist/components/event-latest/event-latest.schema.dereffed.json +0 -142
- package/dist/components/event-latest/event-latest.schema.json +0 -46
- package/dist/components/event-latest/index.d.ts +0 -30
- package/dist/components/event-latest/index.js +0 -19
- package/dist/components/event-latest-teaser/event-latest-teaser.css +0 -128
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.dereffed.json +0 -97
- package/dist/components/event-latest-teaser/event-latest-teaser.schema.json +0 -73
- package/dist/components/event-latest-teaser/index.d.ts +0 -8
- package/dist/components/event-latest-teaser/index.js +0 -18
- package/dist/components/event-location/event-location.css +0 -71
- package/dist/components/event-location/event-location.schema.dereffed.json +0 -126
- package/dist/components/event-location/event-location.schema.json +0 -61
- package/dist/components/event-location/index.d.ts +0 -7
- package/dist/components/event-location/index.js +0 -18
- package/dist/components/pagination/index.d.ts +0 -47
- package/dist/components/pagination/index.js +0 -52
- package/dist/components/pagination/pagination.css +0 -66
- package/dist/components/pagination/pagination.schema.dereffed.json +0 -64
- package/dist/components/pagination/pagination.schema.json +0 -57
- package/dist/static/fonts/systemics/Montserrat-Bold.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Light.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Medium.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-Regular.woff2 +0 -0
- package/dist/static/fonts/systemics/Montserrat-SemiBold.woff2 +0 -0
- package/dist/static/img/about/angled-image.png +0 -0
- package/dist/static/img/about/cta.png +0 -0
- package/dist/static/img/about/cutout.png +0 -0
- package/dist/static/img/about/disclaimer.png +0 -0
- package/dist/static/img/about/purpose.png +0 -0
- package/dist/static/img/about/spoiler.png +0 -0
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-01.svg +0 -72
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-02.svg +0 -112
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-03.svg +0 -197
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-04.svg +0 -76
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-05.svg +0 -82
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-06.svg +0 -219
- package/dist/static/img/kickstartDS/CMS-Starter producthunt-slide-07.svg +0 -85
- package/dist/static/img/screenshots/components-image--custom-aspect-ratio.png +0 -0
- package/dist/static/img/screenshots/components-image--preset-size.png +0 -0
- package/dist/static/img/screenshots/components-image--responsive-image.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--blog-post.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--content.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--overview.png +0 -0
- package/dist/static/img/screenshots/pages-archetypes--start.png +0 -0
- package/dist/static/logo-dark.svg +0 -13
- package/dist/static/logo-dsa-inverted.svg +0 -26
- package/dist/static/logo-dsa.svg +0 -26
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"Book a meeting"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"
|
|
16
|
+
"target": {
|
|
17
17
|
"type": "string",
|
|
18
|
-
"title": "
|
|
19
|
-
"description": "
|
|
18
|
+
"title": "Target",
|
|
19
|
+
"description": "Target that should be linked, makes the button behave like a link semantically",
|
|
20
20
|
"format": "uri"
|
|
21
21
|
},
|
|
22
22
|
"variant": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"description": "Text content to display inside the button",
|
|
12
12
|
"examples": ["Book a meeting"]
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"target": {
|
|
15
15
|
"type": "string",
|
|
16
|
-
"title": "
|
|
17
|
-
"description": "
|
|
16
|
+
"title": "Target",
|
|
17
|
+
"description": "Target that should be linked, makes the button behave like a link semantically",
|
|
18
18
|
"format": "uri"
|
|
19
19
|
},
|
|
20
20
|
"variant": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes, FC, PropsWithChildren } from "react";
|
|
3
|
-
import { ButtonProps } from "../../ButtonProps-
|
|
3
|
+
import { ButtonProps } from "../../ButtonProps-03ff6d21.js";
|
|
4
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 type { ButtonProps };
|
|
@@ -4,7 +4,7 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { ButtonContextDefault, ButtonContext } from '@kickstartds/base/lib/button';
|
|
6
6
|
|
|
7
|
-
const Button = forwardRef(({ label,
|
|
7
|
+
const Button = forwardRef(({ label, target, size = "medium", variant = "secondary", icon, disabled = false, className, ...props }, ref) => (jsx(ButtonContextDefault, { ...props, className: classnames("dsa-button", className), href: target, label: label, size: size, variant: variant === "primary"
|
|
8
8
|
? "solid"
|
|
9
9
|
: variant === "secondary"
|
|
10
10
|
? "clear"
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"Book a meeting"
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
|
-
"
|
|
26
|
+
"target": {
|
|
27
27
|
"type": "string",
|
|
28
|
-
"title": "
|
|
29
|
-
"description": "
|
|
28
|
+
"title": "Target",
|
|
29
|
+
"description": "Target that should be linked, makes the button behave like a link semantically",
|
|
30
30
|
"format": "uri"
|
|
31
31
|
},
|
|
32
32
|
"variant": {
|
|
@@ -6,7 +6,7 @@ import { FC, PropsWithChildren } from "react";
|
|
|
6
6
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
7
|
* and run json-schema-to-typescript to regenerate this file.
|
|
8
8
|
*/
|
|
9
|
-
import { ButtonProps } from "../../ButtonProps-
|
|
9
|
+
import { ButtonProps } from "../../ButtonProps-03ff6d21.js";
|
|
10
10
|
/**
|
|
11
11
|
* Buttons of the Button Group
|
|
12
12
|
*/
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"title": "Alt Text",
|
|
23
23
|
"description": "Alt text of the image",
|
|
24
24
|
"examples": [
|
|
25
|
-
"Picture of
|
|
25
|
+
"Picture of Jane Smith"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"fullWidth": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"description": "Name, company name, etc.",
|
|
51
51
|
"type": "string",
|
|
52
52
|
"examples": [
|
|
53
|
-
"
|
|
53
|
+
"Jane Smith"
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
56
|
"subtitle": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"label": {
|
|
74
74
|
"type": "string"
|
|
75
75
|
},
|
|
76
|
-
"
|
|
76
|
+
"href": {
|
|
77
77
|
"type": "string",
|
|
78
78
|
"format": "uri"
|
|
79
79
|
},
|
|
@@ -82,14 +82,6 @@
|
|
|
82
82
|
"description": "Open link in new Tab",
|
|
83
83
|
"type": "boolean",
|
|
84
84
|
"default": false
|
|
85
|
-
},
|
|
86
|
-
"ariaLabel": {
|
|
87
|
-
"title": "Aria Label",
|
|
88
|
-
"description": "Aria label for the link",
|
|
89
|
-
"type": "string",
|
|
90
|
-
"examples": [
|
|
91
|
-
"Link to Isabella Doe's social media profile"
|
|
92
|
-
]
|
|
93
85
|
}
|
|
94
86
|
},
|
|
95
87
|
"additionalProperties": false
|
|
@@ -99,12 +91,12 @@
|
|
|
99
91
|
{
|
|
100
92
|
"icon": "phone",
|
|
101
93
|
"label": "0228 / 688 966 20",
|
|
102
|
-
"
|
|
94
|
+
"href": "tel:+4922868896620"
|
|
103
95
|
},
|
|
104
96
|
{
|
|
105
97
|
"icon": "email",
|
|
106
98
|
"label": "mail@example.com",
|
|
107
|
-
"
|
|
99
|
+
"href": "mailto:mail@example.com"
|
|
108
100
|
}
|
|
109
101
|
]
|
|
110
102
|
]
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"type": "string",
|
|
20
20
|
"title": "Alt Text",
|
|
21
21
|
"description": "Alt text of the image",
|
|
22
|
-
"examples": ["Picture of
|
|
22
|
+
"examples": ["Picture of Jane Smith"]
|
|
23
23
|
},
|
|
24
24
|
"fullWidth": {
|
|
25
25
|
"type": "boolean",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"title": "Title",
|
|
41
41
|
"description": "Name, company name, etc.",
|
|
42
42
|
"type": "string",
|
|
43
|
-
"examples": ["
|
|
43
|
+
"examples": ["Jane Smith"]
|
|
44
44
|
},
|
|
45
45
|
"subtitle": {
|
|
46
46
|
"title": "Subtitle",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"label": {
|
|
61
61
|
"type": "string"
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"href": {
|
|
64
64
|
"type": "string",
|
|
65
65
|
"format": "uri"
|
|
66
66
|
},
|
|
@@ -69,12 +69,6 @@
|
|
|
69
69
|
"description": "Open link in new Tab",
|
|
70
70
|
"type": "boolean",
|
|
71
71
|
"default": false
|
|
72
|
-
},
|
|
73
|
-
"ariaLabel": {
|
|
74
|
-
"title": "Aria Label",
|
|
75
|
-
"description": "Aria label for the link",
|
|
76
|
-
"type": "string",
|
|
77
|
-
"examples": ["Link to Isabella Doe's social media profile"]
|
|
78
72
|
}
|
|
79
73
|
},
|
|
80
74
|
"additionalProperties": false
|
|
@@ -84,12 +78,12 @@
|
|
|
84
78
|
{
|
|
85
79
|
"icon": "phone",
|
|
86
80
|
"label": "0228 / 688 966 20",
|
|
87
|
-
"
|
|
81
|
+
"href": "tel:+4922868896620"
|
|
88
82
|
},
|
|
89
83
|
{
|
|
90
84
|
"icon": "email",
|
|
91
85
|
"label": "mail@example.com",
|
|
92
|
-
"
|
|
86
|
+
"href": "mailto:mail@example.com"
|
|
93
87
|
}
|
|
94
88
|
]
|
|
95
89
|
]
|
|
@@ -34,10 +34,6 @@ type Subtitle = string;
|
|
|
34
34
|
* Open link in new Tab
|
|
35
35
|
*/
|
|
36
36
|
type OpenLinkInNewTab = boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Aria label for the link
|
|
39
|
-
*/
|
|
40
|
-
type AriaLabel = string;
|
|
41
37
|
type CopyText = string;
|
|
42
38
|
/**
|
|
43
39
|
* Additional css classes attached to the wrapping element
|
|
@@ -62,9 +58,8 @@ interface ContactProps {
|
|
|
62
58
|
links?: {
|
|
63
59
|
icon?: string;
|
|
64
60
|
label?: string;
|
|
65
|
-
|
|
61
|
+
href?: string;
|
|
66
62
|
newTab?: OpenLinkInNewTab;
|
|
67
|
-
ariaLabel?: AriaLabel;
|
|
68
63
|
}[];
|
|
69
64
|
copy?: CopyText;
|
|
70
65
|
className?: Class;
|
|
@@ -9,7 +9,7 @@ import { Icon } from '@kickstartds/base/lib/icon';
|
|
|
9
9
|
import { RichText } from '@kickstartds/base/lib/rich-text';
|
|
10
10
|
import { Container } from '@kickstartds/core/lib/container';
|
|
11
11
|
|
|
12
|
-
const ContactContextDefault = forwardRef(({ title, subtitle, image, links, copy, className, ...props }, ref) => (jsx(Container, { name: "contact", children: jsxs("address", { className: classnames("dsa-contact", image?.aspectRatio && `dsa-contact--image-${image?.aspectRatio}`, image?.fullWidth && `dsa-contact--image-full-width`, className), ref: ref, ...props, children: [image && image.src
|
|
12
|
+
const ContactContextDefault = forwardRef(({ title, subtitle, image, links, copy, className, ...props }, ref) => (jsx(Container, { name: "contact", children: jsxs("address", { className: classnames("dsa-contact", image?.aspectRatio && `dsa-contact--image-${image?.aspectRatio}`, image?.fullWidth && `dsa-contact--image-full-width`, className), ref: ref, ...props, children: [image && image.src ? (jsx("div", { className: "dsa-contact__image-wrap", children: jsx(Picture, { src: image?.src, alt: image?.alt, className: "dsa-contact__image" }) })) : (""), jsxs("div", { className: "dsa-contact__body", children: [title && (jsxs("div", { className: "dsa-contact__header", children: [jsx("span", { className: "dsa-contact__title", children: title }), jsx("span", { className: "dsa-contact__subtitle", children: subtitle })] })), copy && jsx(RichText, { text: copy, className: "dsa-contact__copy" }), links && links.length ? (jsx("ul", { className: "dsa-contact__links", children: links.map(({ icon, href, label, newTab }, i) => (jsx("li", { children: jsxs(Link, { className: "dsa-contact__link", href: href, ...(newTab ? { target: "_blank", rel: "noopener" } : {}), children: [jsx(Icon, { icon: icon }), label] }) }, i))) })) : ("")] })] }) })));
|
|
13
13
|
const ContactContext = createContext(ContactContextDefault);
|
|
14
14
|
const Contact = forwardRef((props, ref) => {
|
|
15
15
|
const Component = useContext(ContactContext);
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
.dsa-cta {
|
|
2
|
-
--dsa-cta--
|
|
3
|
-
--dsa-cta--
|
|
4
|
-
--dsa-cta__content--vertical-padding: var(--dsa-content--vertical-spacing);
|
|
5
|
-
--dsa-cta__content--horizontal-padding: var(--dsa-content--horizontal-spacing);
|
|
6
|
-
--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);
|
|
7
4
|
--dsa-cta__copy--font: var(--dsa-rich-text--font);
|
|
8
5
|
--dsa-cta__copy--color: var(--ks-text-color-default);
|
|
9
6
|
--dsa-cta__headline--color: var(--dsa-headline--color);
|
|
10
7
|
--dsa-cta__headline--font: var(--dsa-headline_h2--font);
|
|
11
8
|
--dsa-cta__subheadline--color: var(--dsa-headline__subheadline--color);
|
|
12
9
|
--dsa-cta__subheadline--font: var(--dsa-headline_h2__subheadline--font);
|
|
13
|
-
--dsa-cta__image--padding: var(--ks-spacing-inset-m);
|
|
14
10
|
--dsa-cta_color-neutral__headline--color: var(--ks-text-color-default);
|
|
15
11
|
--dsa-cta_color-neutral__subheadline--color: var(--ks-text-color-default);
|
|
16
12
|
--dsa-cta_color-neutral__copy--color: var(--ks-text-color-default);
|
|
@@ -20,15 +16,11 @@
|
|
|
20
16
|
}
|
|
21
17
|
|
|
22
18
|
.dsa-cta.c-storytelling {
|
|
23
|
-
--c-storytelling--
|
|
24
|
-
--c-storytelling--
|
|
19
|
+
--c-storytelling--padding-ratio: 2;
|
|
20
|
+
--c-storytelling--horizontal-padding: var(--dsa-content--spacing);
|
|
25
21
|
justify-content: center;
|
|
26
22
|
align-items: stretch;
|
|
27
|
-
|
|
28
|
-
border-radius: var(--dsa-cta--border-radius, var(--ks-border-radius-surface));
|
|
29
|
-
}
|
|
30
|
-
.dsa-cta.c-storytelling:not(.dsa-cta--no-padding) {
|
|
31
|
-
overflow: hidden;
|
|
23
|
+
padding: 0;
|
|
32
24
|
}
|
|
33
25
|
.dsa-cta.c-storytelling.dsa-cta--color-neutral {
|
|
34
26
|
--dsa-cta__copy--color: var(--dsa-cta_color-neutral__copy--color, var(--ks-text-color-default));
|
|
@@ -43,22 +35,34 @@
|
|
|
43
35
|
var(--dsa-headline_h1__subheadline--font)
|
|
44
36
|
);
|
|
45
37
|
}
|
|
46
|
-
.dsa-cta.c-storytelling.
|
|
47
|
-
padding:
|
|
38
|
+
.dsa-cta.c-storytelling.c-storytelling--full {
|
|
39
|
+
--c-storytelling--padding-ratio: 1;
|
|
48
40
|
}
|
|
49
|
-
.dsa-cta.c-storytelling.
|
|
50
|
-
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);
|
|
51
43
|
}
|
|
52
|
-
.dsa-cta.c-storytelling
|
|
53
|
-
|
|
44
|
+
.dsa-cta.c-storytelling.dsa-cta--align-top {
|
|
45
|
+
align-items: flex-start;
|
|
54
46
|
}
|
|
55
|
-
.dsa-cta.c-storytelling
|
|
56
|
-
|
|
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));
|
|
53
|
+
}
|
|
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
|
+
}
|
|
57
61
|
}
|
|
58
62
|
.dsa-cta.c-storytelling .c-storytelling__box:only-child {
|
|
59
|
-
--
|
|
63
|
+
padding: var(--dsa-cta--vertical-padding, var(--l-section--space-default)) var(--dsa-cta--horizontal-padding, var(--dsa-content--spacing));
|
|
60
64
|
}
|
|
61
|
-
.dsa-cta.c-storytelling .c-
|
|
65
|
+
.dsa-cta.c-storytelling .c-storytelling__box__content {
|
|
62
66
|
max-width: 100%;
|
|
63
67
|
}
|
|
64
68
|
.dsa-cta.c-storytelling .c-storytelling__box .dsa-headline__headline {
|
|
@@ -75,42 +79,50 @@
|
|
|
75
79
|
font: var(--dsa-cta__copy--font, var(--dsa-rich-text--font, var(--ks-font-copy-m)));
|
|
76
80
|
color: var(--dsa-cta__copy--color, var(--dsa-rich-text--color, var(--ks-text-color-copy)));
|
|
77
81
|
}
|
|
78
|
-
.dsa-cta.c-storytelling
|
|
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 {
|
|
79
86
|
margin: 0;
|
|
80
87
|
}
|
|
81
|
-
@container storytelling (
|
|
82
|
-
.dsa-cta.c-storytelling.c-storytelling--order-
|
|
83
|
-
padding-
|
|
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));
|
|
84
91
|
}
|
|
85
|
-
.dsa-cta.c-storytelling.c-storytelling--order-
|
|
86
|
-
padding-
|
|
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));
|
|
87
94
|
}
|
|
88
|
-
.dsa-cta.c-storytelling
|
|
89
|
-
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));
|
|
90
97
|
}
|
|
91
|
-
.dsa-cta.c-storytelling
|
|
92
|
-
|
|
98
|
+
.dsa-cta.c-storytelling .c-storytelling__box__content--center .c-button-group {
|
|
99
|
+
justify-content: center;
|
|
93
100
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
padding-right: 0;
|
|
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));
|
|
98
104
|
}
|
|
99
|
-
.dsa-cta.c-storytelling
|
|
100
|
-
padding
|
|
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));
|
|
108
|
+
}
|
|
109
|
+
.dsa-cta.c-storytelling.c-storytelling--full > .c-storytelling__image {
|
|
110
|
+
padding: 0;
|
|
101
111
|
}
|
|
102
|
-
.dsa-cta.c-storytelling
|
|
103
|
-
|
|
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);
|
|
104
115
|
}
|
|
105
|
-
.dsa-cta.c-storytelling
|
|
106
|
-
|
|
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%;
|
|
107
119
|
}
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
@media (min-width: 640px) {
|
|
111
123
|
.dsa-header--floating + .l-container--storytelling .c-storytelling.dsa-cta,
|
|
112
124
|
.dsa-header--floating + .l-section .l-container--storytelling:first-child .c-storytelling.dsa-cta {
|
|
113
|
-
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)));
|
|
114
126
|
z-index: 1;
|
|
115
127
|
}
|
|
116
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": {
|
|
@@ -60,10 +66,10 @@
|
|
|
60
66
|
"title": "Icon",
|
|
61
67
|
"description": "Choose an icon"
|
|
62
68
|
},
|
|
63
|
-
"
|
|
69
|
+
"target": {
|
|
64
70
|
"type": "string",
|
|
65
|
-
"title": "
|
|
66
|
-
"description": "
|
|
71
|
+
"title": "Target",
|
|
72
|
+
"description": "Target that should be linked, makes the button behave like a link semantically",
|
|
67
73
|
"format": "uri"
|
|
68
74
|
}
|
|
69
75
|
},
|
|
@@ -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",
|
|
@@ -159,18 +154,6 @@
|
|
|
159
154
|
],
|
|
160
155
|
"default": "center"
|
|
161
156
|
},
|
|
162
|
-
"padding": {
|
|
163
|
-
"title": "Padding",
|
|
164
|
-
"description": "Toggle padding of the content",
|
|
165
|
-
"type": "boolean",
|
|
166
|
-
"default": false
|
|
167
|
-
},
|
|
168
|
-
"inverted": {
|
|
169
|
-
"title": "Inverted",
|
|
170
|
-
"description": "Toggle inversion of the component",
|
|
171
|
-
"type": "boolean",
|
|
172
|
-
"default": false
|
|
173
|
-
},
|
|
174
157
|
"type": {
|
|
175
158
|
"const": "cta"
|
|
176
159
|
}
|
|
@@ -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": {
|
|
@@ -48,8 +54,8 @@
|
|
|
48
54
|
"icon": {
|
|
49
55
|
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/icon"
|
|
50
56
|
},
|
|
51
|
-
"
|
|
52
|
-
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/
|
|
57
|
+
"target": {
|
|
58
|
+
"$ref": "http://schema.mydesignsystem.com/button.schema.json#/properties/target"
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
}
|
|
@@ -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,24 +118,12 @@
|
|
|
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"
|
|
128
|
-
},
|
|
129
|
-
"padding": {
|
|
130
|
-
"title": "Padding",
|
|
131
|
-
"description": "Toggle padding of the content",
|
|
132
|
-
"type": "boolean",
|
|
133
|
-
"default": false
|
|
134
|
-
},
|
|
135
|
-
"inverted": {
|
|
136
|
-
"title": "Inverted",
|
|
137
|
-
"description": "Toggle inversion of the component",
|
|
138
|
-
"type": "boolean",
|
|
139
|
-
"default": false
|
|
140
127
|
}
|
|
141
128
|
},
|
|
142
129
|
"additionalProperties": false
|
|
@@ -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>>;
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import "./cta.css";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, createContext, useContext } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Storytelling } from '@kickstartds/content/lib/storytelling';
|
|
5
5
|
import { ButtonContext } from '@kickstartds/base/lib/button';
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import { useButtonGroup } from '../button-group/index.js';
|
|
8
|
-
import { Container } from '@kickstartds/core/lib/container';
|
|
9
8
|
import '@kickstartds/base/lib/button-group';
|
|
10
9
|
|
|
11
|
-
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) => {
|
|
12
11
|
const ButtonGroup = useButtonGroup();
|
|
13
12
|
return (jsx(ButtonContext.Provider
|
|
14
13
|
// @ts-expect-error
|
|
15
14
|
, {
|
|
16
15
|
// @ts-expect-error
|
|
17
|
-
value: ButtonGroup, children: jsx(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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: {
|
|
19
|
+
source: image?.src,
|
|
20
|
+
order: order,
|
|
21
|
+
vAlign: contentAlign,
|
|
22
|
+
}, box: {
|
|
23
|
+
text: text,
|
|
24
|
+
textAlign: textAlign,
|
|
25
|
+
vAlign: contentAlign,
|
|
26
|
+
link: {
|
|
27
|
+
buttons,
|
|
28
|
+
colorNeutral: colorNeutral,
|
|
29
|
+
arrangement: textAlign,
|
|
30
|
+
},
|
|
31
|
+
headline: {
|
|
32
|
+
text: headline,
|
|
33
|
+
level: "h2",
|
|
34
|
+
style: highlightText === true ? "h1" : undefined,
|
|
35
|
+
sub: sub,
|
|
36
|
+
spaceAfter: highlightText === true ? "large" : undefined,
|
|
37
|
+
align: textAlign,
|
|
38
|
+
},
|
|
39
|
+
} }) }));
|
|
39
40
|
});
|
|
40
41
|
const CtaContext = createContext(CtaContextDefault);
|
|
41
42
|
const Cta = forwardRef((props, ref) => {
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"title": "Call to Action",
|
|
48
48
|
"description": "The call to action",
|
|
49
49
|
"properties": {
|
|
50
|
-
"
|
|
50
|
+
"target": {
|
|
51
51
|
"type": "string",
|
|
52
|
-
"title": "Call to Action
|
|
53
|
-
"description": "The CTA
|
|
52
|
+
"title": "Call to Action target",
|
|
53
|
+
"description": "The CTA target",
|
|
54
54
|
"default": "#",
|
|
55
55
|
"format": "uri"
|
|
56
56
|
},
|
|
@@ -63,16 +63,6 @@
|
|
|
63
63
|
"See all our partners"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"icon": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"format": "icon",
|
|
69
|
-
"title": "Icon",
|
|
70
|
-
"description": "Icon for the link style of the cta",
|
|
71
|
-
"examples": [
|
|
72
|
-
"arrow-right"
|
|
73
|
-
],
|
|
74
|
-
"default": "arrow-right"
|
|
75
|
-
},
|
|
76
66
|
"toggle": {
|
|
77
67
|
"type": "boolean",
|
|
78
68
|
"title": "Call to Action Toggle",
|