@odx/websites-react 1.1.79 → 1.1.80
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.
|
@@ -9,9 +9,9 @@ const ReplacementProductTeaserBox = ({ className, image, headline, headlineActAs
|
|
|
9
9
|
const hasContent = Boolean(hasTextContent || hasImage);
|
|
10
10
|
if (!hasContent)
|
|
11
11
|
return;
|
|
12
|
-
const textElement = hasTextContent && (_jsxs("div", { className: cn('flex flex-col justify-center items-start self-stretch py-12 px-6 xl:p-6 2xl:px-9 2xl:py-12 w-full text-center
|
|
12
|
+
const textElement = hasTextContent && (_jsxs("div", { className: cn('flex flex-col justify-center items-start self-stretch py-12 px-6 xl:p-6 2xl:px-9 2xl:py-12 w-full text-center lg:text-left'), children: [_jsxs("div", { className: "flex flex-col gap-4 w-full", children: [_jsx(Headline, { headingLevel: "h4", spacingBottom: false, actAs: headlineActAs, textColor: 'white', children: headline }), _jsx(SlimRichText, { variant: "small", bottomSpacing: false, textColor: 'white', text: text })] }), button && (_jsx("div", { className: "flex w-full justify-center lg:justify-start pt-6", children: button }))] }));
|
|
13
13
|
const imageElement = hasImage && (_jsx("div", { className: "relative w-full h-full overflow-hidden xl:col-span-2 aspect-4/3", children: _jsx(Image, { ...image, fit: "cover", ratio: "4/3", className: "inset-0 w-full h-full xl:absolute" }) }));
|
|
14
|
-
return (_jsx("div", { className: cn('bg-surface-brand', className), ...props, children: _jsx(Container, { paddingTop: 'none', paddingBottom: 'none', fullWidth: true, children: _jsxs("div", { className: cn('grid
|
|
14
|
+
return (_jsx("div", { className: cn('bg-surface-brand', className), ...props, children: _jsx(Container, { paddingTop: 'none', paddingBottom: 'none', fullWidth: true, children: _jsxs("div", { className: cn('grid lg:grid-flow-col w-full min-h-full', hasImage && 'lg:grid-cols-2 lg:h-full', !hasImage && '2xl:min-h-[30rem] lg:min-h-[22rem] min-h-[18rem]'), children: [textElement, imageElement] }) }) }));
|
|
15
15
|
};
|
|
16
16
|
export { ReplacementProductTeaserBox };
|
|
17
17
|
//# sourceMappingURL=ReplacementProductTeaserBox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplacementProductTeaserBox.js","sourceRoot":"","sources":["../../../../src/web/product/replacementProductTeaserBox/ReplacementProductTeaserBox.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,GAET,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,KAAK,EAAa,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAW5D,MAAM,2BAA2B,GAE7B,CAAC,EAAC,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,EAAE;IAC1E,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7C,MAAM,cAAc,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC;IACjD,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,IAAI,QAAQ,CAAC,CAAC;IAEvD,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,MAAM,WAAW,GAAG,cAAc,IAAI,CACpC,eACE,SAAS,EAAE,EAAE,CACX,4HAA4H,CAC7H,aAED,eAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"ReplacementProductTeaserBox.js","sourceRoot":"","sources":["../../../../src/web/product/replacementProductTeaserBox/ReplacementProductTeaserBox.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,QAAQ,GAET,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,KAAK,EAAa,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAC,SAAS,E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E,MAAM,EAAE,SAAS,kBAC7D,eACE,SAAS,EAAE,EAAE,CACX,yCAAyC,EACzC,QAAQ,IAAI,0BAA0B,EACtC,CAAC,QAAQ,IAAI,kDAAkD,CAChE,aAEA,WAAW,EACX,YAAY,IACT,GACI,GACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,2BAA2B,EAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odx/websites-react",
|
|
3
3
|
"author": "Drägerwerk AG & Co. KGaA",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.80",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"description": "ODX React component library for websites",
|
|
7
7
|
"type": "module",
|
|
@@ -528,8 +528,8 @@
|
|
|
528
528
|
"ts-node": "^10.9.2",
|
|
529
529
|
"typescript": "^5.4.5",
|
|
530
530
|
"vitest": "^3.1.0-beta.1",
|
|
531
|
-
"@odx/websites-tsconfig": "0.0.0",
|
|
532
531
|
"@odx/eslint-config-websites": "0.0.1",
|
|
532
|
+
"@odx/websites-tsconfig": "0.0.0",
|
|
533
533
|
"@odx/websites-ui": "0.2.32"
|
|
534
534
|
},
|
|
535
535
|
"peerDependencies": {
|