@odx/websites-react 1.0.15 → 1.0.17
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/autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/actions/autocomplete/Autocomplete.js +4 -3
- package/dist/components/actions/autocomplete/Autocomplete.js.map +1 -1
- package/dist/components/actions/button/Button.js +2 -2
- package/dist/components/actions/button/Button.js.map +1 -1
- package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/actions/dropdown/Dropdown.js +2 -2
- package/dist/components/actions/dropdown/Dropdown.js.map +1 -1
- package/dist/components/actions/link/Link.d.ts +1 -2
- package/dist/components/actions/link/Link.d.ts.map +1 -1
- package/dist/components/actions/link/Link.js +5 -6
- package/dist/components/actions/link/Link.js.map +1 -1
- package/dist/components/actions/multiselect/Multiselect.d.ts +1 -0
- package/dist/components/actions/multiselect/Multiselect.d.ts.map +1 -1
- package/dist/components/actions/multiselect/Multiselect.js +4 -4
- package/dist/components/actions/multiselect/Multiselect.js.map +1 -1
- package/dist/components/images-icons/image/Image.d.ts.map +1 -1
- package/dist/components/images-icons/image/Image.js +3 -3
- package/dist/components/images-icons/image/Image.js.map +1 -1
- package/dist/components/layout/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/layout/accordion/Accordion.js +6 -4
- package/dist/components/layout/accordion/Accordion.js.map +1 -1
- package/dist/components/layout/block/Block.d.ts.map +1 -1
- package/dist/components/layout/block/Block.js +1 -1
- package/dist/components/layout/block/Block.js.map +1 -1
- package/dist/components/layout/calloutMedia/CalloutMedia.d.ts +6 -5
- package/dist/components/layout/calloutMedia/CalloutMedia.d.ts.map +1 -1
- package/dist/components/layout/calloutMedia/CalloutMedia.js +10 -3
- package/dist/components/layout/calloutMedia/CalloutMedia.js.map +1 -1
- package/dist/components/layout/calloutQuote/CalloutQuote.d.ts +1 -1
- package/dist/components/layout/calloutQuote/CalloutQuote.d.ts.map +1 -1
- package/dist/components/layout/calloutQuote/CalloutQuote.js +3 -3
- package/dist/components/layout/calloutQuote/CalloutQuote.js.map +1 -1
- package/dist/components/layout/card/Card.d.ts +10 -2
- package/dist/components/layout/card/Card.d.ts.map +1 -1
- package/dist/components/layout/card/Card.js +14 -9
- package/dist/components/layout/card/Card.js.map +1 -1
- package/dist/components/layout/carousel/Carousel.d.ts.map +1 -1
- package/dist/components/layout/carousel/Carousel.js +3 -1
- package/dist/components/layout/carousel/Carousel.js.map +1 -1
- package/dist/components/layout/container/Container.d.ts.map +1 -1
- package/dist/components/layout/container/Container.js +1 -1
- package/dist/components/layout/container/Container.js.map +1 -1
- package/dist/components/layout/contentItem/ContentItem.d.ts.map +1 -1
- package/dist/components/layout/contentItem/ContentItem.js +4 -4
- package/dist/components/layout/contentItem/ContentItem.js.map +1 -1
- package/dist/components/layout/contentSlider/ContentSlider.d.ts.map +1 -1
- package/dist/components/layout/contentSlider/ContentSlider.js +1 -2
- package/dist/components/layout/contentSlider/ContentSlider.js.map +1 -1
- package/dist/components/layout/dataTable/DataTable.d.ts +1 -1
- package/dist/components/layout/dataTable/DataTable.d.ts.map +1 -1
- package/dist/components/layout/downloadItem/DownloadItem.d.ts +4 -6
- package/dist/components/layout/downloadItem/DownloadItem.d.ts.map +1 -1
- package/dist/components/layout/downloadItem/DownloadItem.js +1 -2
- package/dist/components/layout/downloadItem/DownloadItem.js.map +1 -1
- package/dist/components/layout/list/List.d.ts.map +1 -1
- package/dist/components/layout/list/List.js +2 -2
- package/dist/components/layout/list/List.js.map +1 -1
- package/dist/components/layout/modal/Modal.d.ts +1 -1
- package/dist/components/layout/modal/Modal.d.ts.map +1 -1
- package/dist/components/layout/modal/Modal.js +6 -2
- package/dist/components/layout/modal/Modal.js.map +1 -1
- package/dist/components/layout/pagination/Pagination.d.ts.map +1 -1
- package/dist/components/layout/pagination/Pagination.js +2 -0
- package/dist/components/layout/pagination/Pagination.js.map +1 -1
- package/dist/components/layout/sectionWrapper/SectionWrapper.d.ts.map +1 -1
- package/dist/components/layout/sectionWrapper/SectionWrapper.js +1 -1
- package/dist/components/layout/sectionWrapper/SectionWrapper.js.map +1 -1
- package/dist/components/layout/showMore/ShowMore.d.ts.map +1 -1
- package/dist/components/layout/showMore/ShowMore.js +4 -1
- package/dist/components/layout/showMore/ShowMore.js.map +1 -1
- package/dist/components/layout/structuredList/StructuredListItem.d.ts +3 -3
- package/dist/components/layout/structuredList/StructuredListItem.d.ts.map +1 -1
- package/dist/components/layout/structuredList/StructuredListItem.js +6 -3
- package/dist/components/layout/structuredList/StructuredListItem.js.map +1 -1
- package/dist/components/layout/tabBar/TabBar.d.ts.map +1 -1
- package/dist/components/layout/tabBar/TabBar.js +4 -0
- package/dist/components/layout/tabBar/TabBar.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.js +3 -1
- package/dist/components/navigation/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/navigation/flyout/Flyout.d.ts.map +1 -1
- package/dist/components/navigation/flyout/Flyout.js +4 -0
- package/dist/components/navigation/flyout/Flyout.js.map +1 -1
- package/dist/components/navigation/footer/Footer.d.ts +8 -8
- package/dist/components/navigation/footer/Footer.d.ts.map +1 -1
- package/dist/components/navigation/footer/Footer.js +12 -5
- package/dist/components/navigation/footer/Footer.js.map +1 -1
- package/dist/components/navigation/header/Header.js +1 -1
- 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 +6 -5
- package/dist/components/navigation/searchInput/SearchInput.js.map +1 -1
- package/dist/components/typography/bodyText/BodyText.d.ts.map +1 -1
- package/dist/components/typography/bodyText/BodyText.js +1 -1
- package/dist/components/typography/bodyText/BodyText.js.map +1 -1
- package/dist/components/typography/headline/Headline.d.ts.map +1 -1
- package/dist/components/typography/headline/Headline.js +1 -1
- package/dist/components/typography/headline/Headline.js.map +1 -1
- package/dist/hooks/useBreakpoint/useBreakpoint.d.ts.map +1 -1
- package/dist/hooks/useBreakpoint/useBreakpoint.js +2 -2
- package/dist/hooks/useBreakpoint/useBreakpoint.js.map +1 -1
- package/dist/web/layout/contentHeadings/ContentHeadings.d.ts.map +1 -1
- package/dist/web/layout/contentHeadings/ContentHeadings.js +3 -0
- package/dist/web/layout/contentHeadings/ContentHeadings.js.map +1 -1
- package/dist/web/sections/calloutContact/CalloutContact.d.ts +3 -3
- package/dist/web/sections/calloutContact/CalloutContact.d.ts.map +1 -1
- package/dist/web/sections/calloutContact/CalloutContact.js +2 -2
- package/dist/web/sections/calloutContact/CalloutContact.js.map +1 -1
- package/dist/web/sections/contentBlock/ContentBlock.d.ts.map +1 -1
- package/dist/web/sections/contentBlock/ContentBlock.js +2 -2
- package/dist/web/sections/contentBlock/ContentBlock.js.map +1 -1
- package/dist/web/sections/contentGroup/ContentGroup.d.ts.map +1 -1
- package/dist/web/sections/contentGroup/ContentGroup.js +1 -1
- package/dist/web/sections/contentGroup/ContentGroup.js.map +1 -1
- package/dist/web/sections/contentSection/ContentSection.d.ts.map +1 -1
- package/dist/web/sections/contentSection/ContentSection.js +6 -1
- package/dist/web/sections/contentSection/ContentSection.js.map +1 -1
- package/dist/web/sections/stageSection/StageSection.d.ts +2 -2
- package/dist/web/sections/stageSection/StageSection.d.ts.map +1 -1
- package/dist/web/sections/stageSection/StageSection.js +7 -2
- package/dist/web/sections/stageSection/StageSection.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import { Block } from '../../../components/layout/block';
|
|
|
3
3
|
import { cn } from '../../../utils';
|
|
4
4
|
import { ContentHeadings } from '../../layout/contentHeadings';
|
|
5
5
|
const ContentBlock = ({ children, disableGutters = false, headline, text, ...props }) => (_jsxs(_Fragment, { children: [(headline || text) && (_jsx(Block, { className: cn(!disableGutters &&
|
|
6
|
-
'pt-section-padding-top-2xl pb-section-padding-bottom-2xl'), elementWidth: 'medium', ...props, children: _jsx(ContentHeadings, { type: "block", headline: headline, text: text }) })), _jsx(Block, { wrapperBlockProps: { 'data-name': 'ContentBlock-Grid' }, "data-name": "ContentBlock-Children-Width", className: cn(!disableGutters &&
|
|
7
|
-
'pt-section-padding-top-2xl pb-section-padding-bottom-2xl'), ...props, children: children })] }));
|
|
6
|
+
'pt-section-padding-top-2xl pb-section-padding-bottom-2xl'), elementWidth: 'medium', ...props, children: _jsx(ContentHeadings, { type: "block", headline: headline, text: text }) })), children && (_jsx(Block, { wrapperBlockProps: { 'data-name': 'ContentBlock-Grid' }, "data-name": "ContentBlock-Children-Width", className: cn(!disableGutters &&
|
|
7
|
+
'pt-section-padding-top-2xl pb-section-padding-bottom-2xl'), ...props, children: children }))] }));
|
|
8
8
|
export { ContentBlock };
|
|
9
9
|
//# sourceMappingURL=ContentBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBlock.js","sourceRoot":"","sources":["../../../../src/web/sections/contentBlock/ContentBlock.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,KAAK,EAAkB,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAQ7D,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,cAAc,GAAG,KAAK,EACtB,QAAQ,EACR,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,8BACG,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CACrB,KAAC,KAAK,IACJ,SAAS,EAAE,EAAE,CACX,CAAC,cAAc;gBACb,0DAA0D,CAC7D,EACD,YAAY,EAAE,QAAQ,KAClB,KAAK,YAET,KAAC,eAAe,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAI,GAC1D,CACT,
|
|
1
|
+
{"version":3,"file":"ContentBlock.js","sourceRoot":"","sources":["../../../../src/web/sections/contentBlock/ContentBlock.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,KAAK,EAAkB,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAQ7D,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,cAAc,GAAG,KAAK,EACtB,QAAQ,EACR,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,8BACG,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CACrB,KAAC,KAAK,IACJ,SAAS,EAAE,EAAE,CACX,CAAC,cAAc;gBACb,0DAA0D,CAC7D,EACD,YAAY,EAAE,QAAQ,KAClB,KAAK,YAET,KAAC,eAAe,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAI,GAC1D,CACT,EACA,QAAQ,IAAI,CACX,KAAC,KAAK,IACJ,iBAAiB,EAAE,EAAC,WAAW,EAAE,mBAAmB,EAAC,eAC3C,6BAA6B,EACvC,SAAS,EAAE,EAAE,CACX,CAAC,cAAc;gBACb,0DAA0D,CAC7D,KACG,KAAK,YAER,QAAQ,GACH,CACT,IACA,CACJ,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentGroup.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/contentGroup/ContentGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAM,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEhE,MAAM,WAAW,iBACf,SAAQ,YAAY,CAAC,OAAO,oBAAoB,CAAC,EAC/C,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,oBAAoB;;mFAWxB,CAAC;AAEH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"ContentGroup.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/contentGroup/ContentGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAM,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEhE,MAAM,WAAW,iBACf,SAAQ,YAAY,CAAC,OAAO,oBAAoB,CAAC,EAC/C,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,oBAAoB;;mFAWxB,CAAC;AAEH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAc3C,CAAC;AAEJ,OAAO,EAAC,YAAY,EAAC,CAAC"}
|
|
@@ -13,6 +13,6 @@ const contentGroupVariants = cva('grid grid-cols-1 gap-6', {
|
|
|
13
13
|
cols: 4,
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
|
-
const ContentGroup = ({ children, cols, className, ...props }) => (_jsx("div", { "data-name": `ContentGroup-${cols}-cols`, className: cn(contentGroupVariants({ cols }), className), ...props, children: children }));
|
|
16
|
+
const ContentGroup = ({ children, cols, className, ...props }) => children && (_jsx("div", { "data-name": `ContentGroup-${cols}-cols`, className: cn(contentGroupVariants({ cols }), className), ...props, children: children }));
|
|
17
17
|
export { ContentGroup };
|
|
18
18
|
//# sourceMappingURL=ContentGroup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentGroup.js","sourceRoot":"","sources":["../../../../src/web/sections/contentGroup/ContentGroup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,GAAG,EAAoB,MAAM,0BAA0B,CAAC;AAQhE,MAAM,oBAAoB,GAAG,GAAG,CAAC,wBAAwB,EAAE;IACzD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,CAAC,EAAE,gBAAgB;YACnB,CAAC,EAAE,gBAAgB;YACnB,CAAC,EAAE,gBAAgB;SACpB;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"ContentGroup.js","sourceRoot":"","sources":["../../../../src/web/sections/contentGroup/ContentGroup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,GAAG,EAAoB,MAAM,0BAA0B,CAAC;AAQhE,MAAM,oBAAoB,GAAG,GAAG,CAAC,wBAAwB,EAAE;IACzD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,CAAC,EAAE,gBAAgB;YACnB,CAAC,EAAE,gBAAgB;YACnB,CAAC,EAAE,gBAAgB;SACpB;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE,CACH,QAAQ,IAAI,CACV,2BACa,gBAAgB,IAAI,OAAO,EACtC,SAAS,EAAE,EAAE,CAAC,oBAAoB,CAAC,EAAC,IAAI,EAAC,CAAC,EAAE,SAAS,CAAC,KAClD,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AAEJ,OAAO,EAAC,YAAY,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentSection.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,sCAAsC,CAAC;AAK9C,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ContentSection.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,sCAAsC,CAAC;AAK9C,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwBjD,CAAC;AAEF,OAAO,EAAC,cAAc,EAAC,CAAC"}
|
|
@@ -4,6 +4,11 @@ import { Container, } from '../../../components/layout/container';
|
|
|
4
4
|
import { cn } from '../../../utils';
|
|
5
5
|
import { Block } from '../../../components';
|
|
6
6
|
import { ContentHeadings } from '../../layout/contentHeadings';
|
|
7
|
-
const ContentSection = ({ children, sectionProps, headline, text, }) =>
|
|
7
|
+
const ContentSection = ({ children, sectionProps, headline, text, }) => {
|
|
8
|
+
const hasTitle = Boolean(headline || text);
|
|
9
|
+
if (!hasTitle && !children)
|
|
10
|
+
return;
|
|
11
|
+
return (_jsx(SectionWrapper, { className: cn(sectionProps?.className), ...sectionProps, children: _jsxs(Container, { "data-name": "ContentSection", className: "pt-section-padding-top-2xl pb-section-padding-bottom-vertical", children: [hasTitle && (_jsx(Block, { elementWidth: 'medium', children: _jsx(ContentHeadings, { type: "section", headline: headline, text: text }) })), children] }) }));
|
|
12
|
+
};
|
|
8
13
|
export { ContentSection };
|
|
9
14
|
//# sourceMappingURL=ContentSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentSection.js","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,cAAc,GAEf,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,SAAS,GAEV,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,KAAK,EAAC,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAQ7D,MAAM,cAAc,GAAkC,CAAC,EACrD,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,IAAI,GACL,EAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"ContentSection.js","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,cAAc,GAEf,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,SAAS,GAEV,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,KAAK,EAAC,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAQ7D,MAAM,cAAc,GAAkC,CAAC,EACrD,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,IAAI,GACL,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC;IAC3C,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ;QAAE,OAAO;IAEnC,OAAO,CACL,KAAC,cAAc,IAAC,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,KAAM,YAAY,YACtE,MAAC,SAAS,iBACE,gBAAgB,EAC1B,SAAS,EAAC,+DAA+D,aAExE,QAAQ,IAAI,CACX,KAAC,KAAK,IAAC,YAAY,EAAE,QAAQ,YAC3B,KAAC,eAAe,IAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAI,GAC5D,CACT,EACA,QAAQ,IACC,GACG,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,cAAc,EAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SectionWrapperProps } from '../../../components';
|
|
3
3
|
export interface StageSectionProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
image
|
|
4
|
+
image?: React.ReactNode;
|
|
5
5
|
button?: React.ReactNode;
|
|
6
|
-
headline
|
|
6
|
+
headline?: string;
|
|
7
7
|
headlineColoredPart?: string;
|
|
8
8
|
sectionProps?: SectionWrapperProps;
|
|
9
9
|
}
|
|
@@ -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;AAC/B,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E,KAAK,EAAE,KAAK,CAAC,SAAS,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;AAC/B,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AAGD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqC7C,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Block, Headline, SectionWrapper, } from '../../../components';
|
|
3
3
|
// TODO adjust the text element layout after the usage of Container/Block is completed for this component
|
|
4
4
|
const StageSection = ({ button, image, headline, headlineColoredPart, sectionProps, }) => {
|
|
5
|
-
|
|
5
|
+
const hasHeadline = headline || headlineColoredPart;
|
|
6
|
+
const hasContent = Boolean(image || hasHeadline);
|
|
7
|
+
if (!hasContent)
|
|
8
|
+
return;
|
|
9
|
+
const headlineElement = hasHeadline && (_jsxs(Headline, { headingLevel: "h1", className: "text-text-invert", children: [headline, headlineColoredPart && (_jsxs("span", { className: 'text-text-accent', children: ["\u00A0", headlineColoredPart] }))] }));
|
|
10
|
+
return (_jsxs(SectionWrapper, { ...sectionProps, children: [image && _jsx("div", { className: "w-full -z-10", children: image }), Boolean(hasHeadline || button) && (_jsx("div", { className: "relative flex justify-center", children: _jsxs(Block, { className: "flex flex-col items-start p-8 pt-6 gap-y-16 lg:-mt-40", background: 'darkBlue', elementWidth: 'medium', children: [headlineElement, button] }) }))] }));
|
|
6
11
|
};
|
|
7
12
|
export { StageSection };
|
|
8
13
|
//# sourceMappingURL=StageSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,cAAc,GAEf,MAAM,qBAAqB,CAAC;AAU7B,yGAAyG;AACzG,MAAM,YAAY,GAAgC,CAAC,EACjD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,YAAY,GACb,EAAE,EAAE;IACH,
|
|
1
|
+
{"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,cAAc,GAEf,MAAM,qBAAqB,CAAC;AAU7B,yGAAyG;AACzG,MAAM,YAAY,GAAgC,CAAC,EACjD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,YAAY,GACb,EAAE,EAAE;IACH,MAAM,WAAW,GAAG,QAAQ,IAAI,mBAAmB,CAAC;IACpD,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,IAAI,WAAW,CAAC,CAAC;IACjD,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,MAAM,eAAe,GAAG,WAAW,IAAI,CACrC,MAAC,QAAQ,IAAC,YAAY,EAAC,IAAI,EAAC,SAAS,EAAC,kBAAkB,aACrD,QAAQ,EACR,mBAAmB,IAAI,CACtB,gBAAM,SAAS,EAAE,kBAAkB,uBAAS,mBAAmB,IAAQ,CACxE,IACQ,CACZ,CAAC;IAEF,OAAO,CACL,MAAC,cAAc,OAAK,YAAY,aAC7B,KAAK,IAAI,cAAK,SAAS,EAAC,cAAc,YAAE,KAAK,GAAO,EACpD,OAAO,CAAC,WAAW,IAAI,MAAM,CAAC,IAAI,CACjC,cAAK,SAAS,EAAC,8BAA8B,YAC3C,MAAC,KAAK,IACJ,SAAS,EAAC,uDAAuD,EACjE,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,QAAQ,aAErB,eAAe,EACf,MAAM,IACD,GACJ,CACP,IACc,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,YAAY,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.0.
|
|
4
|
+
"version": "1.0.17",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"description": "ODX React component library for websites",
|
|
7
7
|
"type": "module",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"typescript": "^5.3.2",
|
|
86
86
|
"@odx/eslint-config-websites": "0.0.0",
|
|
87
87
|
"@odx/websites-tsconfig": "0.0.0",
|
|
88
|
-
"@odx/websites-ui": "0.2.
|
|
88
|
+
"@odx/websites-ui": "0.2.5"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@odx/websites-ui": ">=0.2.1",
|