@odx/websites-react 1.0.34 → 1.0.36
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/components/actions/button/Button.d.ts +67 -17
- package/dist/components/actions/button/Button.d.ts.map +1 -1
- package/dist/components/actions/button/Button.js +65 -34
- package/dist/components/actions/button/Button.js.map +1 -1
- package/dist/components/actions/filterPanel/FilterPanel.d.ts.map +1 -1
- package/dist/components/actions/filterPanel/FilterPanel.js +2 -1
- package/dist/components/actions/filterPanel/FilterPanel.js.map +1 -1
- package/dist/components/actions/link/Link.d.ts +17 -4
- package/dist/components/actions/link/Link.d.ts.map +1 -1
- package/dist/components/actions/link/Link.js +66 -23
- package/dist/components/actions/link/Link.js.map +1 -1
- package/dist/components/actions/tag/Tag.d.ts +1 -1
- package/dist/components/actions/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/actions/tooltip/Tooltip.js +1 -1
- package/dist/components/actions/tooltip/Tooltip.js.map +1 -1
- package/dist/components/images-icons/icon/Icon.d.ts +1 -1
- package/dist/components/layout/card/Card.js +1 -1
- package/dist/components/layout/card/Card.js.map +1 -1
- package/dist/components/layout/carousel/Carousel.d.ts +1 -1
- package/dist/components/layout/carousel/Carousel.d.ts.map +1 -1
- package/dist/components/layout/carousel/Carousel.js +2 -2
- package/dist/components/layout/carousel/Carousel.js.map +1 -1
- package/dist/components/layout/contentSlider/ContentSlider.d.ts.map +1 -1
- package/dist/components/layout/contentSlider/ContentSlider.js +1 -1
- package/dist/components/layout/contentSlider/ContentSlider.js.map +1 -1
- package/dist/components/layout/mediaGallery/MediaGallery.d.ts.map +1 -1
- package/dist/components/layout/mediaGallery/MediaGallery.js +1 -1
- package/dist/components/layout/mediaGallery/MediaGallery.js.map +1 -1
- package/dist/components/layout/sectionWrapper/SectionWrapper.d.ts.map +1 -1
- package/dist/components/layout/sectionWrapper/SectionWrapper.js +0 -1
- package/dist/components/layout/sectionWrapper/SectionWrapper.js.map +1 -1
- package/dist/components/layout/slimRichText/SlimRichText.js +1 -1
- package/dist/components/navigation/flyout/Flyout.d.ts.map +1 -1
- package/dist/components/navigation/flyout/Flyout.js +2 -2
- package/dist/components/navigation/flyout/Flyout.js.map +1 -1
- package/dist/components/navigation/footer/Footer.d.ts.map +1 -1
- package/dist/components/navigation/footer/Footer.js +3 -3
- package/dist/components/navigation/footer/Footer.js.map +1 -1
- package/dist/components/navigation/footer/FooterNavigationUpButton.d.ts.map +1 -1
- package/dist/components/navigation/footer/FooterNavigationUpButton.js +1 -1
- package/dist/components/navigation/footer/FooterNavigationUpButton.js.map +1 -1
- package/dist/components/navigation/header/AnimatedHeader.d.ts.map +1 -1
- package/dist/components/navigation/header/AnimatedHeader.js +2 -2
- package/dist/components/navigation/header/AnimatedHeader.js.map +1 -1
- package/dist/components/navigation/header/Header.js +3 -3
- package/dist/components/navigation/header/Header.js.map +1 -1
- package/dist/components/navigation/searchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/navigation/searchInput/SearchInput.js +1 -1
- package/dist/components/navigation/searchInput/SearchInput.js.map +1 -1
- package/dist/components/structures/divider/Divider.js +1 -1
- package/dist/components/structures/divider/Divider.js.map +1 -1
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +15 -1
- package/dist/utils/utils.js.map +1 -1
- package/dist/web/sections/stageSection/StageSection.d.ts +9 -4
- package/dist/web/sections/stageSection/StageSection.d.ts.map +1 -1
- package/dist/web/sections/stageSection/StageSection.js +23 -6
- package/dist/web/sections/stageSection/StageSection.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Block, Headline
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Block, Headline } from '../../../components';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
const stageHeadlineBoxVariants = cva('flex flex-col items-start p-8 pt-6 gap-y-16', {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
primary: 'bg-surface-brand',
|
|
8
|
+
secondary: 'bg-surface-secondary',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
defaultVariants: {
|
|
12
|
+
variant: 'primary',
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
const StageHeadlineBox = ({ headline, headlineColoredPart, headlineActAs, button, variant, }) => {
|
|
16
|
+
const hasHeadline = headline || headlineColoredPart;
|
|
17
|
+
const headlineElement = hasHeadline && (_jsxs(Headline, { headingLevel: "h1", actAs: headlineActAs, className: "text-text-invert", children: [_jsx("span", { className: variant === 'primary' ? 'text-text-invert' : 'text-text-primary', children: headline }), headlineColoredPart && (_jsxs("span", { className: 'text-text-accent', children: ["\u00A0", headlineColoredPart] }))] }));
|
|
18
|
+
return (_jsx(Block, { elementWidth: 'large', paddingBottom: 'none', className: "!px-0", children: _jsxs("div", { className: stageHeadlineBoxVariants({ variant }), children: [headlineElement, button] }) }));
|
|
19
|
+
};
|
|
20
|
+
const StageSection = ({ button, image, headline, headlineColoredPart, headlineActAs, }) => {
|
|
5
21
|
const hasHeadline = headline || headlineColoredPart;
|
|
6
22
|
const hasContent = Boolean(image || hasHeadline);
|
|
7
23
|
if (!hasContent)
|
|
8
24
|
return;
|
|
9
|
-
|
|
10
|
-
|
|
25
|
+
if (!image && hasHeadline)
|
|
26
|
+
return (_jsx("section", { className: "flex flex-col items-center w-full bg-surface-secondary", children: _jsx("div", { className: "py-32", children: _jsx(StageHeadlineBox, { variant: 'secondary', button: button, headline: headline, headlineActAs: headlineActAs, headlineColoredPart: headlineColoredPart }) }) }));
|
|
27
|
+
return (_jsxs("section", { children: [image && _jsx("div", { className: "w-full", children: image }), hasHeadline && (_jsx("div", { className: "relative flex flex-col items-center w-full 2xl:px-6 lg:-mt-40", children: _jsx(StageHeadlineBox, { variant: 'primary', button: button, headline: headline, headlineActAs: headlineActAs, headlineColoredPart: headlineColoredPart }) }))] }));
|
|
11
28
|
};
|
|
12
29
|
export { StageSection };
|
|
13
30
|
//# sourceMappingURL=StageSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAC,GAAG,EAAe,MAAM,0BAA0B,CAAC;AAgB3D,MAAM,wBAAwB,GAAG,GAAG,CAClC,6CAA6C,EAC7C;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,kBAAkB;YAC3B,SAAS,EAAE,sBAAsB;SAClC;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;CACF,CACF,CAAC;AAEF,MAAM,gBAAgB,GAAoC,CAAC,EACzD,QAAQ,EACR,mBAAmB,EACnB,aAAa,EACb,MAAM,EACN,OAAO,GACR,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,QAAQ,IAAI,mBAAmB,CAAC;IACpD,MAAM,eAAe,GAAG,WAAW,IAAI,CACrC,MAAC,QAAQ,IACP,YAAY,EAAC,IAAI,EACjB,KAAK,EAAE,aAAa,EACpB,SAAS,EAAC,kBAAkB,aAE5B,eACE,SAAS,EACP,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,YAGjE,QAAQ,GACJ,EACN,mBAAmB,IAAI,CACtB,gBAAM,SAAS,EAAE,kBAAkB,uBAAS,mBAAmB,IAAQ,CACxE,IACQ,CACZ,CAAC;IAEF,OAAO,CACL,KAAC,KAAK,IAAC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,SA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|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"description": "ODX React component library for websites",
|
|
7
7
|
"type": "module",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"typescript": "^5.4.5",
|
|
83
83
|
"@odx/eslint-config-websites": "0.0.1",
|
|
84
84
|
"@odx/websites-tsconfig": "0.0.0",
|
|
85
|
-
"@odx/websites-ui": "0.2.
|
|
85
|
+
"@odx/websites-ui": "0.2.12"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@odx/websites-ui": ">=0.2.1",
|