@odx/websites-react 1.2.21 → 1.2.22

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.
@@ -7,6 +7,7 @@ export * from './sections/questionnaireFormSection';
7
7
  export * from './layout/contactListItem';
8
8
  export * from './layout/studentsJobList';
9
9
  export * from './sections/contentHeaders';
10
+ export * from './sections/shoutOutSection';
10
11
  /**
11
12
  * Layout
12
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/web/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAE1C;;GAEG;AACH,cAAc,yBAAyB,CAAC;AAExC;;GAEG;AACH,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAE7C;;GAEG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAEtD;;GAEG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/web/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAE3C;;GAEG;AACH,cAAc,yBAAyB,CAAC;AAExC;;GAEG;AACH,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAE7C;;GAEG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAEtD;;GAEG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
package/dist/web/index.js CHANGED
@@ -7,6 +7,7 @@ export * from './sections/questionnaireFormSection';
7
7
  export * from './layout/contactListItem';
8
8
  export * from './layout/studentsJobList';
9
9
  export * from './sections/contentHeaders';
10
+ export * from './sections/shoutOutSection';
10
11
  /**
11
12
  * Layout
12
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/web/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,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AAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAEtD;;GAEG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { type HeadlineProps } from '../../../components/typography/headline';
3
+ import { type ImageProps } from '../../../components/images-icons/image';
4
+ import { LinkButtonProps } from '../../../components/actions/button';
5
+ import { type VariantProps } from 'class-variance-authority';
6
+ declare const shoutOutSectionVariants: (props?: ({
7
+ background?: "primary" | "secondary" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export interface ShoutOutSectionProps extends VariantProps<typeof shoutOutSectionVariants>, React.HTMLAttributes<HTMLDivElement> {
10
+ headline: string;
11
+ headlineActAs?: HeadlineProps['actAs'];
12
+ copytext: string;
13
+ imageProps: ImageProps;
14
+ firstLinkButtonProps: Omit<LinkButtonProps, 'variant' | 'theme'>;
15
+ secondaryLinkButtonProps?: Omit<LinkButtonProps, 'variant' | 'theme'>;
16
+ }
17
+ declare const ShoutOutSection: React.FC<ShoutOutSectionProps>;
18
+ export { ShoutOutSection };
19
+ //# sourceMappingURL=ShoutOutSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShoutOutSection.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/shoutOutSection/ShoutOutSection.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;AAE9E,OAAO,EAAC,eAAe,EAAa,MAAM,oCAAoC,CAAC;AAE/E,OAAO,EAAM,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEhE,QAAA,MAAM,uBAAuB;;8EAU3B,CAAC;AAEH,MAAM,WAAW,oBACf,SAAQ,YAAY,CAAC,OAAO,uBAAuB,CAAC,EAClD,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;IACjE,wBAAwB,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;CACvE;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkEnD,CAAC;AAEF,OAAO,EAAC,eAAe,EAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Container } from '../../../components/layout/container';
3
+ import { BlockChildrenWidthContainer, BlockGrid, } from '../../../components/layout/block';
4
+ import { Headline, } from '../../../components/typography/headline';
5
+ import { Image } from '../../../components/images-icons/image';
6
+ import { cn } from '../../../utils';
7
+ import { LinkButton } from '../../../components/actions/button';
8
+ import { SlimRichText } from '../../../components/layout/text';
9
+ import { cva } from 'class-variance-authority';
10
+ const shoutOutSectionVariants = cva('rounded-md', {
11
+ variants: {
12
+ background: {
13
+ primary: 'bg-surface-brand text-draeger-white',
14
+ secondary: 'bg-surface-secondary',
15
+ },
16
+ },
17
+ defaultVariants: {
18
+ background: 'primary',
19
+ },
20
+ });
21
+ const ShoutOutSection = ({ background, imageProps, headline, headlineActAs, copytext, firstLinkButtonProps, secondaryLinkButtonProps, ...props }) => {
22
+ return (_jsx(Container, { children: _jsx(BlockGrid, { children: _jsx(BlockChildrenWidthContainer, { children: _jsxs("div", { className: cn(shoutOutSectionVariants({ background }), props.className), ...props, children: [_jsx(Image, { ...imageProps, className: cn('aspect-3/2 lg:aspect-16/6 p-6 pb-0', imageProps.className) }), _jsxs("div", { className: "flex flex-col gap-6 p-8 lg:p-12", children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsx(Headline, { textColor: 'inherit', headingLevel: 'h3', spacingBottom: false, actAs: headlineActAs, children: headline }), _jsx(SlimRichText, { textColor: 'inherit', text: copytext, bottomSpacing: false })] }), _jsxs("div", { className: "flex flex-col gap-4 lg:flex-row", children: [firstLinkButtonProps && (_jsx(LinkButton, { variant: 'secondary', theme: background === 'primary' ? 'dark' : undefined, ...firstLinkButtonProps })), secondaryLinkButtonProps && (_jsx(LinkButton, { variant: 'ghost', theme: background === 'primary' ? 'dark' : undefined, ...secondaryLinkButtonProps }))] })] })] }) }) }) }));
23
+ };
24
+ export { ShoutOutSection };
25
+ //# sourceMappingURL=ShoutOutSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShoutOutSection.js","sourceRoot":"","sources":["../../../../src/web/sections/shoutOutSection/ShoutOutSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EACL,2BAA2B,EAC3B,SAAS,GACV,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,QAAQ,GAET,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,KAAK,EAAkB,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAkB,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAC,GAAG,EAAoB,MAAM,0BAA0B,CAAC;AAEhE,MAAM,uBAAuB,GAAG,GAAG,CAAC,YAA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,CAAC,SAAS,KAChD,wBAAwB,GAC5B,CACH,IACG,IACF,IACF,GACsB,GACpB,GACF,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,eAAe,EAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ShoutOutSection';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/shoutOutSection/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ShoutOutSection';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/web/sections/shoutOutSection/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,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.2.21",
4
+ "version": "1.2.22",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "description": "ODX React component library for websites",
7
7
  "type": "module",
@@ -126,6 +126,7 @@
126
126
  "./web/productCompareSection": "./dist/web/productCompareSection/index.js",
127
127
  "./components/icon": "./dist/components/icon/index.js",
128
128
  "./web/sections/contentHeaders": "./dist/web/sections/contentHeaders/index.js",
129
+ "./web/sections/shoutOutSection": "./dist/web/sections/shoutOutSection/index.js",
129
130
  "./web/layout/studentsJobList": "./dist/web/layout/studentsJobList/index.js"
130
131
  },
131
132
  "typesVersions": {
@@ -484,6 +485,9 @@
484
485
  "web/sections/contentHeaders": [
485
486
  "./dist/web/sections/contentHeaders/index.d.ts"
486
487
  ],
488
+ "web/sections/shoutOutSection": [
489
+ "./dist/web/sections/shoutOutSection/index.d.ts"
490
+ ],
487
491
  "web/layout/studentsJobList": [
488
492
  "./dist/web/layout/studentsJobList/index.d.ts"
489
493
  ]