@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
|
@@ -167,12 +167,21 @@
|
|
|
167
167
|
"description": "Allowed components for content",
|
|
168
168
|
"items": {
|
|
169
169
|
"anyOf": [
|
|
170
|
+
{
|
|
171
|
+
"$ref": "http://schema.mydesignsystem.com/business-card.schema.json"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"$ref": "http://schema.mydesignsystem.com/content-nav.schema.json"
|
|
175
|
+
},
|
|
170
176
|
{
|
|
171
177
|
"$ref": "http://schema.mydesignsystem.com/cta.schema.json"
|
|
172
178
|
},
|
|
173
179
|
{
|
|
174
180
|
"$ref": "http://schema.mydesignsystem.com/divider.schema.json"
|
|
175
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"$ref": "http://schema.mydesignsystem.com/downloads.schema.json"
|
|
184
|
+
},
|
|
176
185
|
{
|
|
177
186
|
"$ref": "http://schema.mydesignsystem.com/faq.schema.json"
|
|
178
187
|
},
|
|
@@ -203,6 +212,12 @@
|
|
|
203
212
|
{
|
|
204
213
|
"$ref": "http://schema.mydesignsystem.com/slider.schema.json"
|
|
205
214
|
},
|
|
215
|
+
{
|
|
216
|
+
"$ref": "http://schema.mydesignsystem.com/split-even.schema.json"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"$ref": "http://schema.mydesignsystem.com/split-weighted.schema.json"
|
|
220
|
+
},
|
|
206
221
|
{
|
|
207
222
|
"$ref": "http://schema.mydesignsystem.com/stats.schema.json"
|
|
208
223
|
},
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
3
|
import { SliderProps } from "../../SliderProps-789f8508.js";
|
|
4
|
+
declare const SliderContextDefault: import("react").ForwardRefExoticComponent<SliderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SliderContext: import("react").Context<import("react").ForwardRefExoticComponent<SliderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
6
|
declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
7
|
export type { SliderProps };
|
|
6
|
-
export { Slider };
|
|
8
|
+
export { SliderContextDefault, SliderContext, Slider };
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import "./slider.css";
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
3
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { Slider as Slider$1 } from '@kickstartds/content/lib/slider';
|
|
6
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
+
const defaults = {
|
|
9
|
+
"autoplay": false,
|
|
10
|
+
"teaseNeighbours": false,
|
|
11
|
+
"equalHeight": true,
|
|
12
|
+
"gap": 0,
|
|
13
|
+
"variant": "carousel",
|
|
14
|
+
"components": []
|
|
15
|
+
};
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
const SliderContextDefault = forwardRef(({ gap, variant, autoplay, arrows, teaseNeighbours, equalHeight, children, className, ...props }, ref) => (jsx(Slider$1, { className: classnames(`dsa-slider`, className), gap: gap, type: variant, arrows: arrows, autoplay: autoplay, teaseNeighbours: teaseNeighbours, equalHeight: equalHeight, ...props, ref: ref, children: children })));
|
|
18
|
+
const SliderContext = createContext(SliderContextDefault);
|
|
19
|
+
const Slider = forwardRef((props, ref) => {
|
|
20
|
+
const Component = useContext(SliderContext);
|
|
21
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
22
|
+
});
|
|
23
|
+
Slider.displayName = "Slider";
|
|
24
|
+
|
|
25
|
+
export { Slider, SliderContext, SliderContextDefault };
|
|
@@ -1,74 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
8
|
-
*/
|
|
9
|
-
import { CtaProps } from "../../CtaProps-789f8508.js";
|
|
10
|
-
import { DividerProps } from "../../DividerProps-2ef31901.js";
|
|
11
|
-
import { FaqProps } from "../../FaqProps-ad618cd5.js";
|
|
12
|
-
import { FeaturesProps } from "../../FeaturesProps-a9041d97.js";
|
|
13
|
-
import { GalleryProps } from "../../GalleryProps-76e7de44.js";
|
|
14
|
-
import { HeroProps } from "../../HeroProps-fec6b267.js";
|
|
15
|
-
import { HtmlProps } from "../../HtmlProps-9d091769.js";
|
|
16
|
-
import { ImageStoryProps } from "../../ImageStoryProps-e853e1e7.js";
|
|
17
|
-
import { ImageTextProps } from "../../ImageTextProps-9286cca4.js";
|
|
18
|
-
import { LogosProps } from "../../LogosProps-f9474fe2.js";
|
|
19
|
-
import { MosaicProps } from "../../MosaicProps-d52c7151.js";
|
|
20
|
-
import { SliderProps } from "../../SliderProps-789f8508.js";
|
|
21
|
-
import { StatsProps } from "../../StatsProps-bf5ef578.js";
|
|
22
|
-
import { TeaserCardProps } from "../../TeaserCardProps-994cb119.js";
|
|
23
|
-
import { TestimonialsProps } from "../../TestimonialsProps-e344f597.js";
|
|
24
|
-
import { TextProps } from "../../TextProps-a23170d2.js";
|
|
25
|
-
import { VideoCurtainProps } from "../../VideoCurtainProps-a2c0cc7f.js";
|
|
26
|
-
/**
|
|
27
|
-
* Sets the minimum width for each half of the split layout
|
|
28
|
-
*/
|
|
29
|
-
type ContentMinimumWidth = "narrow" | "medium" | "wide";
|
|
30
|
-
/**
|
|
31
|
-
* Sets the space between the content inside the two halves of the split layout
|
|
32
|
-
*/
|
|
33
|
-
type ContentGutter = "small" | "default" | "large" | "none";
|
|
34
|
-
/**
|
|
35
|
-
* Reverses the order of the sections on mobile devices
|
|
36
|
-
*/
|
|
37
|
-
type MobileReverse = boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Aligns the content vertically within the sections
|
|
40
|
-
*/
|
|
41
|
-
type VerticalAlignment = "top" | "center" | "bottom" | "sticky";
|
|
42
|
-
/**
|
|
43
|
-
* Sets the vertical space between the content of the split layout
|
|
44
|
-
*/
|
|
45
|
-
type VerticalGutter = "large" | "default" | "small" | "none";
|
|
46
|
-
/**
|
|
47
|
-
* Sets the horizontal space between the content of the split layout
|
|
48
|
-
*/
|
|
49
|
-
type HorizontalGutter = "large" | "default" | "small" | "none";
|
|
50
|
-
/**
|
|
51
|
-
* Allowed components for the first half of the split layout
|
|
52
|
-
*/
|
|
53
|
-
type First = (CtaProps | DividerProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | HtmlProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
|
|
54
|
-
/**
|
|
55
|
-
* Allowed components for the second half of the split layout
|
|
56
|
-
*/
|
|
57
|
-
type Second = (CtaProps | DividerProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | HtmlProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
|
|
58
|
-
interface SplitEvenProps {
|
|
59
|
-
contentMinWidth?: ContentMinimumWidth;
|
|
60
|
-
contentGutter?: ContentGutter;
|
|
61
|
-
mobileReverse?: MobileReverse;
|
|
62
|
-
verticalAlign?: VerticalAlignment;
|
|
63
|
-
verticalGutter?: VerticalGutter;
|
|
64
|
-
horizontalGutter?: HorizontalGutter;
|
|
65
|
-
firstComponents?: First;
|
|
66
|
-
secondComponents?: Second;
|
|
67
|
-
}
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
import { SplitEvenProps } from "../../SplitEvenProps-789f8508.js";
|
|
68
4
|
interface ComponentProps {
|
|
69
|
-
|
|
70
|
-
|
|
5
|
+
firstComponents?: React.ReactNode;
|
|
6
|
+
secondComponents?: React.ReactNode;
|
|
71
7
|
}
|
|
72
|
-
type SplitEvenComponentProps = SplitEvenProps & ComponentProps;
|
|
73
|
-
declare const
|
|
74
|
-
|
|
8
|
+
type SplitEvenComponentProps = Omit<SplitEvenProps, "firstComponents" | "secondComponents"> & ComponentProps;
|
|
9
|
+
declare const SplitEvenContextDefault: import("react").ForwardRefExoticComponent<Omit<SplitEvenProps, "firstComponents" | "secondComponents"> & ComponentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SplitEvenContext: import("react").Context<import("react").ForwardRefExoticComponent<Omit<SplitEvenProps, "firstComponents" | "secondComponents"> & ComponentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
11
|
+
declare const SplitEven: import("react").ForwardRefExoticComponent<Omit<SplitEvenProps, "firstComponents" | "secondComponents"> & ComponentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { ComponentProps, SplitEvenComponentProps, SplitEvenContextDefault, SplitEvenContext, SplitEven };
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import "./split-even.css";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
5
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
4
6
|
|
|
5
|
-
const
|
|
7
|
+
const defaults = {
|
|
8
|
+
"contentMinWidth": "medium",
|
|
9
|
+
"contentGutter": "default",
|
|
10
|
+
"mobileReverse": false,
|
|
11
|
+
"verticalAlign": "top",
|
|
12
|
+
"verticalGutter": "default",
|
|
13
|
+
"horizontalGutter": "default",
|
|
14
|
+
"firstComponents": [],
|
|
15
|
+
"secondComponents": []
|
|
16
|
+
};
|
|
6
17
|
|
|
7
|
-
|
|
18
|
+
const SplitEvenContextDefault = forwardRef(({ mobileReverse = false, contentMinWidth = "medium", verticalAlign = "top", horizontalGutter = "default", verticalGutter = "default", contentGutter = "default", firstComponents, secondComponents, }, ref) => (jsxs("div", { ref: ref, className: classnames("l-split-even", mobileReverse && "l-split-even--mobile-reverse", horizontalGutter && `l-split-even--h-gutter-${horizontalGutter}`, verticalGutter && `l-split-even--v-gutter-${verticalGutter}`, contentMinWidth && `l-split-even--width-${contentMinWidth}`, verticalAlign && `l-split-even--align-${verticalAlign}`), children: [jsx("div", { className: classnames("l-split-even__content l-split-even__content--first", contentGutter && `l-split-even__content--gutter-${contentGutter}`), children: verticalAlign === "sticky" ? (jsx("div", { className: "l-split-even__sticky-container", children: firstComponents })) : (firstComponents) }), jsx("div", { className: classnames("l-split-even__content l-split-even__content--second", contentGutter && `l-split-even__content--gutter-${contentGutter}`), children: verticalAlign === "sticky" ? (jsx("div", { className: "l-split-even__sticky-container", children: secondComponents })) : (secondComponents) })] })));
|
|
19
|
+
const SplitEvenContext = createContext(SplitEvenContextDefault);
|
|
20
|
+
const SplitEven = forwardRef((props, ref) => {
|
|
21
|
+
const Component = useContext(SplitEvenContext);
|
|
22
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
23
|
+
});
|
|
24
|
+
SplitEven.displayName = "SplitEven";
|
|
25
|
+
|
|
26
|
+
export { SplitEven, SplitEvenContext, SplitEvenContextDefault };
|
|
@@ -1,104 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
6
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
7
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
8
|
-
*/
|
|
9
|
-
import { CtaProps } from "../../CtaProps-789f8508.js";
|
|
10
|
-
import { DividerProps } from "../../DividerProps-2ef31901.js";
|
|
11
|
-
import { FaqProps } from "../../FaqProps-ad618cd5.js";
|
|
12
|
-
import { FeaturesProps } from "../../FeaturesProps-a9041d97.js";
|
|
13
|
-
import { GalleryProps } from "../../GalleryProps-76e7de44.js";
|
|
14
|
-
import { HeroProps } from "../../HeroProps-fec6b267.js";
|
|
15
|
-
import { HtmlProps } from "../../HtmlProps-9d091769.js";
|
|
16
|
-
import { ImageStoryProps } from "../../ImageStoryProps-e853e1e7.js";
|
|
17
|
-
import { ImageTextProps } from "../../ImageTextProps-9286cca4.js";
|
|
18
|
-
import { LogosProps } from "../../LogosProps-f9474fe2.js";
|
|
19
|
-
import { MosaicProps } from "../../MosaicProps-d52c7151.js";
|
|
20
|
-
import { SliderProps } from "../../SliderProps-789f8508.js";
|
|
21
|
-
import { StatsProps } from "../../StatsProps-bf5ef578.js";
|
|
22
|
-
import { TeaserCardProps } from "../../TeaserCardProps-994cb119.js";
|
|
23
|
-
import { TestimonialsProps } from "../../TestimonialsProps-e344f597.js";
|
|
24
|
-
import { TextProps } from "../../TextProps-a23170d2.js";
|
|
25
|
-
import { VideoCurtainProps } from "../../VideoCurtainProps-a2c0cc7f.js";
|
|
26
|
-
/**
|
|
27
|
-
* Sets the vertical space between the content of the split layout
|
|
28
|
-
*/
|
|
29
|
-
type VerticalGutter = "large" | "default" | "small" | "none";
|
|
30
|
-
/**
|
|
31
|
-
* Sets the horizontal space between the content of the split layout
|
|
32
|
-
*/
|
|
33
|
-
type HorizontalGutter = "large" | "default" | "small" | "none";
|
|
34
|
-
/**
|
|
35
|
-
* Aligns the content vertically within the sections
|
|
36
|
-
*/
|
|
37
|
-
type VerticalAlignment = "top" | "center" | "bottom" | "sticky";
|
|
38
|
-
/**
|
|
39
|
-
* Sets the space between the content of the split layout
|
|
40
|
-
*/
|
|
41
|
-
type ContentGutter = "large" | "default" | "small" | "none";
|
|
42
|
-
/**
|
|
43
|
-
* Sets the minimum width of the main section
|
|
44
|
-
*/
|
|
45
|
-
type MinimumWidth = "narrow" | "default" | "wide";
|
|
46
|
-
/**
|
|
47
|
-
* Size of gutter to use
|
|
48
|
-
*/
|
|
49
|
-
type Gutter = "large" | "default" | "small" | "none";
|
|
50
|
-
/**
|
|
51
|
-
* Sets the minimum width of the main section
|
|
52
|
-
*/
|
|
53
|
-
type MinimumWidth1 = "narrow" | "default" | "wide";
|
|
54
|
-
/**
|
|
55
|
-
* Determines the order of sections on mobile devices
|
|
56
|
-
*/
|
|
57
|
-
type MobileOrder = "mainFirst" | "asideFirst";
|
|
58
|
-
/**
|
|
59
|
-
* Determines the order of sections on desktop devices
|
|
60
|
-
*/
|
|
61
|
-
type DesktopOrder = "mainFirst" | "asideFirst";
|
|
62
|
-
/**
|
|
63
|
-
* Allowed components for the main half of the split layout
|
|
64
|
-
*/
|
|
65
|
-
type Main = (CtaProps | DividerProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | HtmlProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
|
|
66
|
-
/**
|
|
67
|
-
* Allowed components for the aside half of the split layout
|
|
68
|
-
*/
|
|
69
|
-
type Aside = (CtaProps | DividerProps | FaqProps | FeaturesProps | GalleryProps | HeroProps | HtmlProps | ImageStoryProps | ImageTextProps | LogosProps | MosaicProps | SliderProps | StatsProps | TeaserCardProps | TestimonialsProps | TextProps | VideoCurtainProps)[];
|
|
70
|
-
interface SplitWeightedProps {
|
|
71
|
-
verticalGutter?: VerticalGutter;
|
|
72
|
-
horizontalGutter?: HorizontalGutter;
|
|
73
|
-
verticalAlign?: VerticalAlignment;
|
|
74
|
-
mainLayout?: MainLayout;
|
|
75
|
-
asideLayout?: AsideLayout;
|
|
76
|
-
order?: Order;
|
|
77
|
-
mainComponents?: Main;
|
|
78
|
-
asideComponents?: Aside;
|
|
79
|
-
}
|
|
80
|
-
interface MainLayout {
|
|
81
|
-
gutter?: ContentGutter;
|
|
82
|
-
minWidth?: MinimumWidth;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Layout settings for the aside section of the split layout
|
|
86
|
-
*/
|
|
87
|
-
interface AsideLayout {
|
|
88
|
-
gutter?: Gutter;
|
|
89
|
-
minWidth?: MinimumWidth1;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Sets the order of the main and aside sections in the split layout
|
|
93
|
-
*/
|
|
94
|
-
interface Order {
|
|
95
|
-
mobile?: MobileOrder;
|
|
96
|
-
desktop?: DesktopOrder;
|
|
97
|
-
}
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
import { SplitWeightedProps } from "../../SplitWeightedProps-789f8508.js";
|
|
98
4
|
interface ComponentProps {
|
|
99
5
|
main?: React.ReactNode;
|
|
100
6
|
aside?: React.ReactNode;
|
|
101
7
|
}
|
|
102
|
-
type SplitWeightedComponentProps = SplitWeightedProps & ComponentProps;
|
|
103
|
-
declare const
|
|
104
|
-
|
|
8
|
+
type SplitWeightedComponentProps = Omit<SplitWeightedProps, "main" | "aside"> & ComponentProps;
|
|
9
|
+
declare const SplitWeightedContextDefault: import("react").ForwardRefExoticComponent<Omit<SplitWeightedProps, "main" | "aside"> & ComponentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SplitWeightedContext: import("react").Context<import("react").ForwardRefExoticComponent<Omit<SplitWeightedProps, "main" | "aside"> & ComponentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>>;
|
|
11
|
+
declare const SplitWeighted: import("react").ForwardRefExoticComponent<Omit<SplitWeightedProps, "main" | "aside"> & ComponentProps & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { ComponentProps, SplitWeightedComponentProps, SplitWeightedContextDefault, SplitWeightedContext, SplitWeighted };
|
|
@@ -1,13 +1,42 @@
|
|
|
1
1
|
import "./split-weighted.css";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import classnames from 'classnames';
|
|
4
|
+
import { forwardRef, createContext, useContext } from 'react';
|
|
5
|
+
import { d as deepMergeDefaults } from '../../helpers-12f48df8.js';
|
|
4
6
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
+
const defaults = {
|
|
8
|
+
"verticalGutter": "default",
|
|
9
|
+
"horizontalGutter": "default",
|
|
10
|
+
"verticalAlign": "top",
|
|
11
|
+
"mainLayout": {
|
|
12
|
+
"gutter": "default",
|
|
13
|
+
"minWidth": "wide"
|
|
14
|
+
},
|
|
15
|
+
"asideLayout": {
|
|
16
|
+
"gutter": "default",
|
|
17
|
+
"minWidth": "default"
|
|
18
|
+
},
|
|
19
|
+
"order": {
|
|
20
|
+
"mobile": "mainFirst",
|
|
21
|
+
"desktop": "mainFirst"
|
|
22
|
+
},
|
|
23
|
+
"mainComponents": [],
|
|
24
|
+
"asideComponents": []
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const SplitWeightedContextDefault = forwardRef(({ order, mainLayout, asideLayout, horizontalGutter = "default", verticalGutter = "default", main, aside, verticalAlign = "top", }, ref) => (jsxs("div", { ref: ref, className: classnames("l-split-weighted", order?.desktop === "asideFirst" &&
|
|
28
|
+
"l-split-weighted--desktop-aside-first", order?.mobile === "asideFirst" &&
|
|
29
|
+
"l-split-weighted--mobile-aside-first", horizontalGutter && `l-split-weighted--h-gutter-${horizontalGutter}`, verticalGutter && `l-split-weighted--v-gutter-${verticalGutter}`, verticalAlign && `l-split-weighted--align-${verticalAlign}`), children: [jsx("div", { className: classnames("l-split-weighted__main l-split-weighted__content", mainLayout?.gutter &&
|
|
7
30
|
`l-split-weighted__main--gutter-${mainLayout.gutter}`, mainLayout?.minWidth &&
|
|
8
31
|
`l-split-weighted__main--width-${mainLayout.minWidth}`), children: jsx("div", { className: classnames("l-split-weighted__content-container", mainLayout?.gutter &&
|
|
9
32
|
`l-split-weighted__content-container--gutter-${mainLayout.gutter}`), children: main }) }), jsx("div", { className: classnames("l-split-weighted__aside l-split-weighted__content", asideLayout?.minWidth &&
|
|
10
33
|
`l-split-weighted__aside--width-${asideLayout.minWidth}`), children: jsx("div", { className: classnames("l-split-weighted__content-container", asideLayout?.gutter &&
|
|
11
|
-
`l-split-weighted__content-container--gutter-${asideLayout.gutter}`), children: aside }) })] }));
|
|
34
|
+
`l-split-weighted__content-container--gutter-${asideLayout.gutter}`), children: aside }) })] })));
|
|
35
|
+
const SplitWeightedContext = createContext(SplitWeightedContextDefault);
|
|
36
|
+
const SplitWeighted = forwardRef((props, ref) => {
|
|
37
|
+
const Component = useContext(SplitWeightedContext);
|
|
38
|
+
return jsx(Component, { ...deepMergeDefaults(defaults, props), ref: ref });
|
|
39
|
+
});
|
|
40
|
+
SplitWeighted.displayName = "SplitWeighted";
|
|
12
41
|
|
|
13
|
-
export { SplitWeighted };
|
|
42
|
+
export { SplitWeighted, SplitWeightedContext, SplitWeightedContextDefault };
|
package/dist/tokens/themes.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Fri, 01 Aug 2025 10:
|
|
3
|
+
* Generated on Fri, 01 Aug 2025 10:57:08 GMT
|
|
4
4
|
*/
|
|
5
5
|
:root [ks-theme=business] {
|
|
6
6
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
|
@@ -2727,7 +2727,7 @@
|
|
|
2727
2727
|
}
|
|
2728
2728
|
/**
|
|
2729
2729
|
* Do not edit directly
|
|
2730
|
-
* Generated on Fri, 01 Aug 2025 10:
|
|
2730
|
+
* Generated on Fri, 01 Aug 2025 10:57:13 GMT
|
|
2731
2731
|
*/
|
|
2732
2732
|
:root [ks-theme=google] {
|
|
2733
2733
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
|
@@ -5458,7 +5458,7 @@
|
|
|
5458
5458
|
}
|
|
5459
5459
|
/**
|
|
5460
5460
|
* Do not edit directly
|
|
5461
|
-
* Generated on Fri, 01 Aug 2025 10:
|
|
5461
|
+
* Generated on Fri, 01 Aug 2025 10:57:10 GMT
|
|
5462
5462
|
*/
|
|
5463
5463
|
:root [ks-theme=ngo] {
|
|
5464
5464
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
|
@@ -8459,7 +8459,7 @@
|
|
|
8459
8459
|
}
|
|
8460
8460
|
/**
|
|
8461
8461
|
* Do not edit directly
|
|
8462
|
-
* Generated on Fri, 01 Aug 2025 10:
|
|
8462
|
+
* Generated on Fri, 01 Aug 2025 10:57:15 GMT
|
|
8463
8463
|
*/
|
|
8464
8464
|
:root [ks-theme=telekom] {
|
|
8465
8465
|
--ks-background-color-accent-base: var(--ks-color-primary-to-bg-8-base);
|
package/dist/tokens/tokens.css
CHANGED
package/dist/tokens/tokens.js
CHANGED