@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.
Files changed (59) hide show
  1. package/dist/components/actions/button/Button.d.ts +67 -17
  2. package/dist/components/actions/button/Button.d.ts.map +1 -1
  3. package/dist/components/actions/button/Button.js +65 -34
  4. package/dist/components/actions/button/Button.js.map +1 -1
  5. package/dist/components/actions/filterPanel/FilterPanel.d.ts.map +1 -1
  6. package/dist/components/actions/filterPanel/FilterPanel.js +2 -1
  7. package/dist/components/actions/filterPanel/FilterPanel.js.map +1 -1
  8. package/dist/components/actions/link/Link.d.ts +17 -4
  9. package/dist/components/actions/link/Link.d.ts.map +1 -1
  10. package/dist/components/actions/link/Link.js +66 -23
  11. package/dist/components/actions/link/Link.js.map +1 -1
  12. package/dist/components/actions/tag/Tag.d.ts +1 -1
  13. package/dist/components/actions/tooltip/Tooltip.d.ts.map +1 -1
  14. package/dist/components/actions/tooltip/Tooltip.js +1 -1
  15. package/dist/components/actions/tooltip/Tooltip.js.map +1 -1
  16. package/dist/components/images-icons/icon/Icon.d.ts +1 -1
  17. package/dist/components/layout/card/Card.js +1 -1
  18. package/dist/components/layout/card/Card.js.map +1 -1
  19. package/dist/components/layout/carousel/Carousel.d.ts +1 -1
  20. package/dist/components/layout/carousel/Carousel.d.ts.map +1 -1
  21. package/dist/components/layout/carousel/Carousel.js +2 -2
  22. package/dist/components/layout/carousel/Carousel.js.map +1 -1
  23. package/dist/components/layout/contentSlider/ContentSlider.d.ts.map +1 -1
  24. package/dist/components/layout/contentSlider/ContentSlider.js +1 -1
  25. package/dist/components/layout/contentSlider/ContentSlider.js.map +1 -1
  26. package/dist/components/layout/mediaGallery/MediaGallery.d.ts.map +1 -1
  27. package/dist/components/layout/mediaGallery/MediaGallery.js +1 -1
  28. package/dist/components/layout/mediaGallery/MediaGallery.js.map +1 -1
  29. package/dist/components/layout/sectionWrapper/SectionWrapper.d.ts.map +1 -1
  30. package/dist/components/layout/sectionWrapper/SectionWrapper.js +0 -1
  31. package/dist/components/layout/sectionWrapper/SectionWrapper.js.map +1 -1
  32. package/dist/components/layout/slimRichText/SlimRichText.js +1 -1
  33. package/dist/components/navigation/flyout/Flyout.d.ts.map +1 -1
  34. package/dist/components/navigation/flyout/Flyout.js +2 -2
  35. package/dist/components/navigation/flyout/Flyout.js.map +1 -1
  36. package/dist/components/navigation/footer/Footer.d.ts.map +1 -1
  37. package/dist/components/navigation/footer/Footer.js +3 -3
  38. package/dist/components/navigation/footer/Footer.js.map +1 -1
  39. package/dist/components/navigation/footer/FooterNavigationUpButton.d.ts.map +1 -1
  40. package/dist/components/navigation/footer/FooterNavigationUpButton.js +1 -1
  41. package/dist/components/navigation/footer/FooterNavigationUpButton.js.map +1 -1
  42. package/dist/components/navigation/header/AnimatedHeader.d.ts.map +1 -1
  43. package/dist/components/navigation/header/AnimatedHeader.js +2 -2
  44. package/dist/components/navigation/header/AnimatedHeader.js.map +1 -1
  45. package/dist/components/navigation/header/Header.js +3 -3
  46. package/dist/components/navigation/header/Header.js.map +1 -1
  47. package/dist/components/navigation/searchInput/SearchInput.d.ts.map +1 -1
  48. package/dist/components/navigation/searchInput/SearchInput.js +1 -1
  49. package/dist/components/navigation/searchInput/SearchInput.js.map +1 -1
  50. package/dist/components/structures/divider/Divider.js +1 -1
  51. package/dist/components/structures/divider/Divider.js.map +1 -1
  52. package/dist/utils/utils.d.ts.map +1 -1
  53. package/dist/utils/utils.js +15 -1
  54. package/dist/utils/utils.js.map +1 -1
  55. package/dist/web/sections/stageSection/StageSection.d.ts +9 -4
  56. package/dist/web/sections/stageSection/StageSection.d.ts.map +1 -1
  57. package/dist/web/sections/stageSection/StageSection.js +23 -6
  58. package/dist/web/sections/stageSection/StageSection.js.map +1 -1
  59. package/package.json +2 -2
@@ -1,13 +1,30 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { Block, Headline, SectionWrapper, } from '../../../components';
3
- // TODO adjust the text element layout after the usage of Container/Block is completed for this component
4
- const StageSection = ({ button, image, headline, headlineColoredPart, sectionProps, headlineActAs, }) => {
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
- const headlineElement = hasHeadline && (_jsxs(Headline, { headingLevel: "h1", actAs: headlineActAs, 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 xl:px-8", background: 'darkBlue', elementWidth: 'medium', paddingBottom: 'none', children: [headlineElement, button] }) }))] }));
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,EACL,KAAK,EACL,QAAQ,EAER,cAAc,GAEf,MAAM,qBAAqB,CAAC;AAW7B,yGAAyG;AACzG,MAAM,YAAY,GAAgC,CAAC,EACjD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,aAAa,GACd,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,IACP,YAAY,EAAC,IAAI,EACjB,KAAK,EAAE,aAAa,EACpB,SAAS,EAAC,kBAAkB,aAE3B,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,+DAA+D,EACzE,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,QAAQ,EACtB,aAAa,EAAE,MAAM,aAEpB,eAAe,EACf,MAAM,IACD,GACJ,CACP,IACc,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
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,C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-1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odx/websites-react",
3
3
  "author": "Drägerwerk AG & Co. KGaA",
4
- "version": "1.0.34",
4
+ "version": "1.0.36",
5
5
  "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.11"
85
+ "@odx/websites-ui": "0.2.12"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@odx/websites-ui": ">=0.2.1",