@odx/websites-react 1.1.149 → 1.1.151
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/web/productFinder/navigation/ProductFinderNavigation.js +1 -1
- package/dist/web/sections/stageSection/StageSection.d.ts +3 -6
- package/dist/web/sections/stageSection/StageSection.d.ts.map +1 -1
- package/dist/web/sections/stageSection/StageSection.js +12 -17
- package/dist/web/sections/stageSection/StageSection.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ const ProductFinderNavigationItem = ({ LinkComponent = 'a', isActive, ...props }
|
|
|
11
11
|
return (_jsx(BodyText, { asChild: true, weight: isActive ? 'bold' : 'normal', tabIndex: 0, className: cn(productFinderNavigationItemClasses), children: _jsx(LinkComponent, { ...props }) }));
|
|
12
12
|
};
|
|
13
13
|
const ProductFinderNavigation = ({ children, ...props }) => {
|
|
14
|
-
return (_jsx("ul", { ...props, className: cn('[&_ul]:pl-
|
|
14
|
+
return (_jsx("ul", { ...props, className: cn('[&_ul]:pl-6 flex flex-col gap-2', props.className), children: children }));
|
|
15
15
|
};
|
|
16
16
|
export { ProductFinderNavigation, ProductFinderNavigationItem };
|
|
17
17
|
//# sourceMappingURL=ProductFinderNavigation.js.map
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type HeadlineProps } from '../../../components/typography/headline';
|
|
3
3
|
import { type ImageProps } from '../../../components/images-icons/image';
|
|
4
|
-
|
|
5
|
-
interface StageHeadlineBoxProps extends VariantProps<typeof stageHeadlineBoxVariants> {
|
|
4
|
+
interface StageHeadlineBoxProps {
|
|
6
5
|
button?: React.ReactNode;
|
|
7
6
|
headline?: string;
|
|
8
7
|
headlineColoredPart?: string;
|
|
9
8
|
headlineActAs?: HeadlineProps['actAs'];
|
|
9
|
+
variant: 'primary' | 'secondary';
|
|
10
10
|
}
|
|
11
|
-
export interface StageSectionProps extends React.HTMLAttributes<HTMLElement>, Omit<StageHeadlineBoxProps, 'color'> {
|
|
11
|
+
export interface StageSectionProps extends React.HTMLAttributes<HTMLElement>, Omit<StageHeadlineBoxProps, 'color' | 'variant'> {
|
|
12
12
|
image?: ImageProps;
|
|
13
13
|
}
|
|
14
|
-
declare const stageHeadlineBoxVariants: (props?: ({
|
|
15
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
16
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
17
14
|
declare const StageSection: React.FC<StageSectionProps>;
|
|
18
15
|
export { StageSection };
|
|
19
16
|
//# sourceMappingURL=StageSection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageSection.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StageSection.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAQ,KAAK,UAAU,EAAC,MAAM,wCAAwC,CAAC;AAG9E,UAAU,qBAAqB;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACvC,IAAI,CAAC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAC;IAClD,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAqED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgC7C,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
|
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Container } from '../../../components/layout/container';
|
|
3
|
+
import { BlockChildrenWidthContainer, BlockGrid, } from '../../../components/layout/block';
|
|
3
4
|
import { Headline, } from '../../../components/typography/headline';
|
|
4
5
|
import { Image } from '../../../components/images-icons/image';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
secondary: 'bg-surface-secondary',
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
defaultVariants: {
|
|
15
|
-
variant: 'primary',
|
|
16
|
-
},
|
|
17
|
-
});
|
|
6
|
+
import { cn, getHighlightText } from '../../../utils';
|
|
7
|
+
const stageHeadlineBoxClasses = `
|
|
8
|
+
max-w-content-block w-full xl:min-h-[135px]
|
|
9
|
+
flex flex-col items-start gap-y-16
|
|
10
|
+
xl:px-8 pt-6 pb-8
|
|
11
|
+
`;
|
|
18
12
|
const StageHeadlineBox = ({ headline, headlineColoredPart, headlineActAs, button, variant, }) => {
|
|
19
13
|
const headlineElement = (_jsx(Headline, { headingLevel: "h1", spacingBottom: false, actAs: headlineActAs, className: "w-full text-text-invert", children: getHighlightText(headline, headlineColoredPart).map((part, index) => (_jsx("span", { className: part.highlighted
|
|
20
14
|
? 'text-text-accent'
|
|
21
15
|
: variant === 'primary'
|
|
22
16
|
? 'text-text-invert'
|
|
23
17
|
: 'text-text-primary', children: part.text }, index))) }));
|
|
24
|
-
|
|
18
|
+
const isPrimaryVariant = variant === 'primary';
|
|
19
|
+
const isSecondaryVariant = variant === 'secondary';
|
|
20
|
+
return (_jsx(Container, { paddingTop: 'none', paddingBottom: 'none', className: isPrimaryVariant ? 'relative xl:-mt-[135px]' : undefined, background: isSecondaryVariant ? 'secondary' : undefined, children: _jsx(BlockGrid, { paddingBottom: 'none', children: _jsx(BlockChildrenWidthContainer, { background: isPrimaryVariant ? 'darkBlue' : undefined, paddingBottom: 'none', children: _jsxs("div", { className: cn(stageHeadlineBoxClasses, isSecondaryVariant && 'my-32'), children: [headlineElement, button] }) }) }) }));
|
|
25
21
|
};
|
|
26
22
|
const StageSection = ({ button, image, headline, headlineColoredPart, headlineActAs, ...props }) => {
|
|
27
23
|
const hasHeadline = !!headline;
|
|
28
24
|
const hasContent = Boolean(image || hasHeadline);
|
|
29
25
|
if (!hasContent)
|
|
30
26
|
return;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return (_jsxs("section", { ...props, children: [image && (_jsx("div", { className: "relative aspect-4/3 lg:aspect-16/6", children: _jsx(Image, { className: "w-full", ratio: "16/6", ...image }) })), hasHeadline && (_jsx(Container, { paddingTop: 'none', paddingBottom: 'none', className: "relative xl:-mt-[135px]", children: _jsx(StageHeadlineBox, { variant: 'primary', button: button, headline: headline, headlineActAs: headlineActAs, headlineColoredPart: headlineColoredPart }) }))] }));
|
|
27
|
+
const headlineBoxElement = hasHeadline && (_jsx(StageHeadlineBox, { variant: image ? 'primary' : 'secondary', button: button, headline: headline, headlineActAs: headlineActAs, headlineColoredPart: headlineColoredPart }));
|
|
28
|
+
return (_jsxs("section", { ...props, children: [image && (_jsx("div", { className: "aspect-4/3 lg:aspect-16/6", children: _jsx(Image, { ...image }) })), headlineBoxElement] }));
|
|
34
29
|
};
|
|
35
30
|
export { StageSection };
|
|
36
31
|
//# sourceMappingURL=StageSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../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