@odx/websites-react 1.2.20 → 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.
@@ -5,7 +5,9 @@ export * from './sections/calloutContact';
5
5
  export * from './sections/stageSection';
6
6
  export * from './sections/questionnaireFormSection';
7
7
  export * from './layout/contactListItem';
8
+ export * from './layout/studentsJobList';
8
9
  export * from './sections/contentHeaders';
10
+ export * from './sections/shoutOutSection';
9
11
  /**
10
12
  * Layout
11
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,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
@@ -5,7 +5,9 @@ export * from './sections/calloutContact';
5
5
  export * from './sections/stageSection';
6
6
  export * from './sections/questionnaireFormSection';
7
7
  export * from './layout/contactListItem';
8
+ export * from './layout/studentsJobList';
8
9
  export * from './sections/contentHeaders';
10
+ export * from './sections/shoutOutSection';
9
11
  /**
10
12
  * Layout
11
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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AAwB,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"}
@@ -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,MA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AAC,CAAC,CAAC,MAAM,CAAC,CAAC,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.20",
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",
@@ -75,15 +75,12 @@
75
75
  "./components/navigation/flyout": "./dist/components/navigation/flyout/index.js",
76
76
  "./components/navigation/footer": "./dist/components/navigation/footer/index.js",
77
77
  "./components/navigation/header": "./dist/components/navigation/header/index.js",
78
- "./components/navigation/header/headerNavigationMenuList": [
79
- "./dist/components/navigation/header/headerNavigationMenuList/index.js"
80
- ],
78
+ "./components/navigation/header/headerNavigationMenuList": "./dist/components/navigation/header/headerNavigationMenuList/index.js",
81
79
  "./components/structures/divider": "./dist/components/structures/divider/index.js",
82
80
  "./components/structures/loadingSpinner": "./dist/components/structures/loadingSpinner/index.js",
83
81
  "./components/typography/bodyText": "./dist/components/typography/bodyText/index.js",
84
82
  "./components/typography/headline": "./dist/components/typography/headline/index.js",
85
83
  "./web/layout/contactListItem": "./dist/web/layout/contactListItem/index.js",
86
- "./web/layout/studentsJobList": "./dist/web/layout/studentsJobList/index.js",
87
84
  "./web/sections/calloutContact": "./dist/web/sections/calloutContact/index.js",
88
85
  "./web/sections/contentBlock": "./dist/web/sections/contentBlock/index.js",
89
86
  "./web/sections/contentGroup": "./dist/web/sections/contentGroup/index.js",
@@ -128,7 +125,9 @@
128
125
  "./web/productCompareBar": "./dist/web/productCompareBar/index.js",
129
126
  "./web/productCompareSection": "./dist/web/productCompareSection/index.js",
130
127
  "./components/icon": "./dist/components/icon/index.js",
131
- "./web/sections/contentHeaders": "./dist/web/sections/contentHeaders/index.js"
128
+ "./web/sections/contentHeaders": "./dist/web/sections/contentHeaders/index.js",
129
+ "./web/sections/shoutOutSection": "./dist/web/sections/shoutOutSection/index.js",
130
+ "./web/layout/studentsJobList": "./dist/web/layout/studentsJobList/index.js"
132
131
  },
133
132
  "typesVersions": {
134
133
  "*": {
@@ -348,9 +347,6 @@
348
347
  "web/layout/contactListItem": [
349
348
  "./dist/web/layout/contactListItem/index.d.ts"
350
349
  ],
351
- "web/layout/studentsJobList": [
352
- "./dist/web/layout/studentsJobList/index.d.ts"
353
- ],
354
350
  "web/sections/calloutContact": [
355
351
  "./dist/web/sections/calloutContact/index.d.ts"
356
352
  ],
@@ -488,6 +484,12 @@
488
484
  ],
489
485
  "web/sections/contentHeaders": [
490
486
  "./dist/web/sections/contentHeaders/index.d.ts"
487
+ ],
488
+ "web/sections/shoutOutSection": [
489
+ "./dist/web/sections/shoutOutSection/index.d.ts"
490
+ ],
491
+ "web/layout/studentsJobList": [
492
+ "./dist/web/layout/studentsJobList/index.d.ts"
491
493
  ]
492
494
  }
493
495
  },