@kickstartds/ds-agency-premium 1.6.71--canary.45.1992.0 → 1.6.71--canary.45.1999.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-9f207f1c.d.ts +1 -1
- package/dist/BlogPostProps-6b3cff22.d.ts +1 -1
- package/dist/BusinessCardProps-e10e7b62.d.ts +101 -0
- package/dist/ContentNavProps-0e282a9f.d.ts +36 -0
- package/dist/DownloadsProps-a49a977e.d.ts +34 -0
- package/dist/PageProps-aa29c554.d.ts +1 -1
- package/dist/{SectionProps-21d04028.d.ts → SectionProps-b9fd1bfd.d.ts} +6 -1
- package/dist/SplitEvenProps-789f8508.d.ts +65 -0
- package/dist/SplitWeightedProps-789f8508.d.ts +95 -0
- package/dist/components/blog-overview/blog-overview.schema.dereffed.json +11755 -0
- package/dist/components/blog-post/blog-post.schema.dereffed.json +11755 -0
- package/dist/components/blog-post/index.js +1 -1
- package/dist/components/breadcrumb/index.js +6 -1
- package/dist/components/business-card/index.d.ts +1 -101
- package/dist/components/business-card/index.js +11 -1
- package/dist/components/button/index.js +19 -9
- package/dist/components/button-group/index.js +11 -2
- package/dist/components/content-nav/index.d.ts +1 -36
- package/dist/components/content-nav/index.js +8 -1
- package/dist/components/downloads/index.d.ts +1 -34
- package/dist/components/downloads/index.js +6 -1
- package/dist/components/event-appointment/index.js +8 -1
- package/dist/components/event-detail/index.js +1 -1
- package/dist/components/event-filter/index.js +28 -1
- package/dist/components/event-header/index.js +6 -2
- package/dist/components/event-latest/index.js +6 -1
- package/dist/components/event-latest-teaser/index.js +6 -1
- package/dist/components/event-list-teaser/index.js +8 -1
- package/dist/components/event-location/index.js +8 -1
- package/dist/components/event-login/index.js +11 -1
- package/dist/components/event-registration/index.js +14 -1
- package/dist/components/headline/index.js +13 -4
- package/dist/components/page/page.schema.dereffed.json +11755 -0
- package/dist/components/page-wrapper/index.js +1 -1
- package/dist/components/page-wrapper/tokens.css +1 -1
- package/dist/components/pagination/index.js +13 -1
- package/dist/components/presets.json +4 -4
- package/dist/components/providers/index.js +1 -1
- package/dist/components/search-bar/index.js +4 -1
- package/dist/components/search-filter/index.js +6 -1
- package/dist/components/search-result/index.js +6 -1
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/section.schema.dereffed.json +11755 -0
- package/dist/components/section/section.schema.json +15 -0
- package/dist/components/slider/index.d.ts +3 -1
- package/dist/components/slider/index.js +19 -3
- package/dist/components/split-even/index.d.ts +9 -71
- package/dist/components/split-even/index.js +21 -2
- package/dist/components/split-weighted/index.d.ts +7 -99
- package/dist/components/split-weighted/index.js +33 -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
|
@@ -7,12 +7,12 @@ import '../button/index.js';
|
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import '@kickstartds/base/lib/button';
|
|
10
|
+
import '../../helpers-12f48df8.js';
|
|
10
11
|
import '../section/index.js';
|
|
11
12
|
import '@kickstartds/core/lib/react';
|
|
12
13
|
import '@kickstartds/base/lib/section';
|
|
13
14
|
import '../section/js/Section.client.js';
|
|
14
15
|
import '@kickstartds/core/lib/component';
|
|
15
|
-
import '../../helpers-12f48df8.js';
|
|
16
16
|
import '../teaser-card/index.js';
|
|
17
17
|
import '@kickstartds/base/lib/teaser-box';
|
|
18
18
|
import '@kickstartds/core/lib/container';
|
|
@@ -4,6 +4,18 @@ import classnames from 'classnames';
|
|
|
4
4
|
import { forwardRef, createContext, useContext } from 'react';
|
|
5
5
|
import { Icon } from '@kickstartds/base/lib/icon';
|
|
6
6
|
import { Link } from '@kickstartds/base/lib/link';
|
|
7
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
8
|
+
|
|
9
|
+
const defaults = {
|
|
10
|
+
"ariaLabels": {
|
|
11
|
+
"previousPage": "Go to previous page",
|
|
12
|
+
"nextPage": "Go to next page",
|
|
13
|
+
"skipToFirstPage": "Skip to first page",
|
|
14
|
+
"skipToLastPage": "Skip to last page",
|
|
15
|
+
"goToPage": "Go to page"
|
|
16
|
+
},
|
|
17
|
+
"pages": []
|
|
18
|
+
};
|
|
7
19
|
|
|
8
20
|
const PaginationContextDefault = forwardRef(({ pages, ariaLabels }, ref) => {
|
|
9
21
|
return (jsxs("div", { className: "dsa-pagination", ref: ref, children: [pages.findIndex((page) => page.active) !== 0 && (jsxs(Fragment, { children: [jsx(Link, { "aria-label": ariaLabels?.skipToFirstPage || "Skip to first page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--skip-back", href: pages[0]?.url, children: jsx(Icon, { icon: "skip-back" }) }), jsx(Link, { "aria-label": ariaLabels?.previousPage || "Go to previous page", className: "dsa-pagination__link dsa-pagination__link--icon dsa-pagination__link--prev", href: (() => {
|
|
@@ -45,7 +57,7 @@ const PaginationContextDefault = forwardRef(({ pages, ariaLabels }, ref) => {
|
|
|
45
57
|
const PaginationContext = createContext(PaginationContextDefault);
|
|
46
58
|
const Pagination = forwardRef((props, ref) => {
|
|
47
59
|
const Component = useContext(PaginationContext);
|
|
48
|
-
return jsx(Component, { ...props, ref: ref });
|
|
60
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
49
61
|
});
|
|
50
62
|
Pagination.displayName = "Pagination";
|
|
51
63
|
|
|
@@ -4079,7 +4079,7 @@
|
|
|
4079
4079
|
"id": "layout-slider--with-arrows",
|
|
4080
4080
|
"group": "Layout/Slider",
|
|
4081
4081
|
"name": "WithArrows",
|
|
4082
|
-
"code": "<
|
|
4082
|
+
"code": "<Slider\n arrows\n equalHeight\n gap={15}\n nav\n variant=\"carousel\"\n>\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Transformation Love Story\"\n image=\"/img/showcases/comp_tfe01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"See how we saved TechFusions a year's worth of development time\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Speed and Scale\"\n image=\"/img/showcases/comp_audio01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Thanks to rapid landing page creation for LaunchPad Audio Innovations\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Saving Time and Money\"\n image=\"/img/showcases/comp_eco01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Navigating the Headless Frontier for EcoTech's 'Brand Consistency\"\n url=\"#\"\n />\n</Slider>",
|
|
4083
4083
|
"args": {
|
|
4084
4084
|
"autoplay": false,
|
|
4085
4085
|
"nav": true,
|
|
@@ -4095,7 +4095,7 @@
|
|
|
4095
4095
|
"id": "layout-slider--with-teased-neighbours",
|
|
4096
4096
|
"group": "Layout/Slider",
|
|
4097
4097
|
"name": "WithTeasedNeighbours",
|
|
4098
|
-
"code": "<
|
|
4098
|
+
"code": "<Slider\n arrows\n equalHeight\n gap={15}\n nav\n teaseNeighbours\n variant=\"carousel\"\n>\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Transformation Love Story\"\n image=\"/img/showcases/comp_tfe01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"See how we saved TechFusions a year's worth of development time\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Speed and Scale\"\n image=\"/img/showcases/comp_audio01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Thanks to rapid landing page creation for LaunchPad Audio Innovations\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Saving Time and Money\"\n image=\"/img/showcases/comp_eco01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Navigating the Headless Frontier for EcoTech's 'Brand Consistency\"\n url=\"#\"\n />\n</Slider>",
|
|
4099
4099
|
"args": {
|
|
4100
4100
|
"autoplay": false,
|
|
4101
4101
|
"nav": true,
|
|
@@ -4111,7 +4111,7 @@
|
|
|
4111
4111
|
"id": "layout-slider--with-nav",
|
|
4112
4112
|
"group": "Layout/Slider",
|
|
4113
4113
|
"name": "WithNav",
|
|
4114
|
-
"code": "<
|
|
4114
|
+
"code": "<Slider\n arrows\n equalHeight\n gap={15}\n nav\n variant=\"carousel\"\n>\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Transformation Love Story\"\n image=\"/img/showcases/comp_tfe01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"See how we saved TechFusions a year's worth of development time\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Speed and Scale\"\n image=\"/img/showcases/comp_audio01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Thanks to rapid landing page creation for LaunchPad Audio Innovations\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Saving Time and Money\"\n image=\"/img/showcases/comp_eco01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Navigating the Headless Frontier for EcoTech's 'Brand Consistency\"\n url=\"#\"\n />\n</Slider>",
|
|
4115
4115
|
"args": {
|
|
4116
4116
|
"autoplay": false,
|
|
4117
4117
|
"nav": true,
|
|
@@ -4127,7 +4127,7 @@
|
|
|
4127
4127
|
"id": "layout-slider--with-autoplay",
|
|
4128
4128
|
"group": "Layout/Slider",
|
|
4129
4129
|
"name": "WithAutoplay",
|
|
4130
|
-
"code": "<
|
|
4130
|
+
"code": "<Slider\n arrows\n autoplay\n equalHeight\n gap={15}\n nav\n variant=\"carousel\"\n>\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Transformation Love Story\"\n image=\"/img/showcases/comp_tfe01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"See how we saved TechFusions a year's worth of development time\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Speed and Scale\"\n image=\"/img/showcases/comp_audio01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Thanks to rapid landing page creation for LaunchPad Audio Innovations\"\n url=\"#\"\n />\n <TeaserCard\n button={{\n hidden: true,\n label: 'View page'\n }}\n headline=\"Saving Time and Money\"\n image=\"/img/showcases/comp_eco01.jpg\"\n imageRatio=\"unset\"\n layout=\"row\"\n text=\"Navigating the Headless Frontier for EcoTech's 'Brand Consistency\"\n url=\"#\"\n />\n</Slider>",
|
|
4131
4131
|
"args": {
|
|
4132
4132
|
"autoplay": true,
|
|
4133
4133
|
"nav": true,
|
|
@@ -9,11 +9,11 @@ import { ButtonGroupProvider } from '../button-group/index.js';
|
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'classnames';
|
|
11
11
|
import '@kickstartds/base/lib/button';
|
|
12
|
+
import '../../helpers-12f48df8.js';
|
|
12
13
|
import '@kickstartds/core/lib/react';
|
|
13
14
|
import '@kickstartds/base/lib/section';
|
|
14
15
|
import '../section/js/Section.client.js';
|
|
15
16
|
import '@kickstartds/core/lib/component';
|
|
16
|
-
import '../../helpers-12f48df8.js';
|
|
17
17
|
import '@kickstartds/base/lib/teaser-box';
|
|
18
18
|
import '@kickstartds/core/lib/container';
|
|
19
19
|
import 'markdown-to-jsx';
|
|
@@ -5,12 +5,15 @@ import { TextField } from '@kickstartds/form/lib/text-field';
|
|
|
5
5
|
import Markdown from 'markdown-to-jsx';
|
|
6
6
|
import { Icon } from '@kickstartds/base/lib/icon';
|
|
7
7
|
import { Link } from '@kickstartds/base/lib/link';
|
|
8
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
9
|
+
|
|
10
|
+
const defaults = {};
|
|
8
11
|
|
|
9
12
|
const SearchBarContextDefault = forwardRef(({ placeholder, hint = "Press <kbd>Enter</kbd> to search", alternativeText = "Did you mean", alternativeResult = "AI Conference", }, ref) => (jsxs("div", { className: "dsa-search-bar", ref: ref, children: [jsxs("div", { className: "dsa-search-bar__input-container", children: [jsx(TextField, { hideLabel: true, type: "search", placeholder: placeholder || "Search...", className: "dsa-search-bar__input" }), jsx(Icon, { icon: "search" })] }), hint && jsx(Markdown, { className: "dsa-search-bar__hint", children: hint }), alternativeResult && (jsx("p", { className: "dsa-search-bar__alternative-text", children: jsxs(Fragment, { children: [alternativeText + " ", jsx(Link, { href: "#", children: alternativeResult })] }) }))] })));
|
|
10
13
|
const SearchBarContext = createContext(SearchBarContextDefault);
|
|
11
14
|
const SearchBar = forwardRef((props, ref) => {
|
|
12
15
|
const Component = useContext(SearchBarContext);
|
|
13
|
-
return jsx(Component, { ...props, ref: ref });
|
|
16
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
14
17
|
});
|
|
15
18
|
SearchBar.displayName = "SearchBar";
|
|
16
19
|
|
|
@@ -3,12 +3,17 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, createContext, useContext } from 'react';
|
|
4
4
|
import Markdown from 'markdown-to-jsx';
|
|
5
5
|
import { Link } from '@kickstartds/base/lib/link';
|
|
6
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
7
|
+
|
|
8
|
+
const defaults = {
|
|
9
|
+
"categories": []
|
|
10
|
+
};
|
|
6
11
|
|
|
7
12
|
const SearchFilterContextDefault = forwardRef(({ title, categories }, ref) => (jsxs("div", { className: "dsa-search-filter", ref: ref, children: [title && jsx(Markdown, { className: "dsa-search-filter__title", children: title }), jsx("div", { className: "dsa-search-filter__categories", children: categories.map((category, index) => (jsxs("div", { className: "dsa-search-filter__category", children: [jsx(Link, { href: category.url, className: "dsa-search-filter__category-title", children: category.title }), jsx("span", { className: "dsa-search-filter__category-amount", children: " (" + category.amount + ")" })] }, index))) })] })));
|
|
8
13
|
const SearchFilterContext = createContext(SearchFilterContextDefault);
|
|
9
14
|
const SearchFilter = forwardRef((props, ref) => {
|
|
10
15
|
const Component = useContext(SearchFilterContext);
|
|
11
|
-
return jsx(Component, { ...props, ref: ref });
|
|
16
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
12
17
|
});
|
|
13
18
|
SearchFilter.displayName = "SearchFilter";
|
|
14
19
|
|
|
@@ -3,12 +3,17 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { forwardRef, createContext, useContext } from 'react';
|
|
4
4
|
import { Link } from '@kickstartds/base/lib/link';
|
|
5
5
|
import { RichText } from '@kickstartds/base/lib/rich-text';
|
|
6
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
7
|
+
|
|
8
|
+
const defaults = {
|
|
9
|
+
"showLink": true
|
|
10
|
+
};
|
|
6
11
|
|
|
7
12
|
const SearchResultContextDefault = forwardRef(({ title, text, url, showLink, ariaLabel }, ref) => (jsxs(Link, { "aria-label": ariaLabel, href: url, className: "dsa-search-result", ref: ref, children: [jsx("span", { className: "dsa-search-result__title", children: title }), jsx(RichText, { text: text, className: "dsa-search-result__text" }), showLink && jsx("span", { className: "dsa-search-result__link", children: url })] })));
|
|
8
13
|
const SearchResultContext = createContext(SearchResultContextDefault);
|
|
9
14
|
const SearchResult = forwardRef((props, ref) => {
|
|
10
15
|
const Component = useContext(SearchResultContext);
|
|
11
|
-
return jsx(Component, { ...props, ref: ref });
|
|
16
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
12
17
|
});
|
|
13
18
|
SearchResult.displayName = "SearchResult";
|
|
14
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes, FC, PropsWithChildren } from "react";
|
|
3
|
-
import { SectionProps } from "../../SectionProps-
|
|
3
|
+
import { SectionProps } from "../../SectionProps-b9fd1bfd.js";
|
|
4
4
|
declare const SectionContextDefault: import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const SectionContext: import("react").Context<import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
6
6
|
declare const Section: import("react").ForwardRefExoticComponent<SectionProps & Omit<HTMLAttributes<HTMLElement>, "style" | "content"> & import("react").RefAttributes<HTMLDivElement>>;
|