@vodafone_de/brix-components 3.0.3 → 3.0.4

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 (36) hide show
  1. package/dist/components/Badge/index.js +2 -2
  2. package/dist/components/Body/index.js +1 -1
  3. package/dist/components/Button/index.js +2 -2
  4. package/dist/components/ButtonAsLink/index.js +2 -2
  5. package/dist/components/DemoBox/index.js +1 -1
  6. package/dist/components/DiscoveryCard/index.js +4 -4
  7. package/dist/components/DiscoveryCardGroup/index.js +1 -1
  8. package/dist/components/Heading/index.js +1 -1
  9. package/dist/components/IconSnippet/index.js +1 -1
  10. package/dist/components/ImageHeader/index.js +3 -3
  11. package/dist/components/Input/index.js +1 -1
  12. package/dist/components/Label/index.js +1 -1
  13. package/dist/components/Legend/index.js +1 -1
  14. package/dist/components/Link/index.js +2 -2
  15. package/dist/components/LinkAsButton/index.js +2 -2
  16. package/dist/components/LinkListItem/index.js +1 -1
  17. package/dist/components/Notification/index.js +1 -1
  18. package/dist/components/PickerGroup/index.js +2 -2
  19. package/dist/components/Price/index.js +2 -2
  20. package/dist/components/ProductCard/index.js +2 -2
  21. package/dist/components/RichText/index.js +1 -1
  22. package/dist/components/SearchInput/index.js +1 -1
  23. package/dist/components/SelectInput/index.js +1 -1
  24. package/dist/components/Stepper/index.js +1 -1
  25. package/dist/components/SuggestInput/index.js +1 -1
  26. package/dist/components/TabularPrice/index.js +2 -2
  27. package/dist/components/TextList/index.js +2 -2
  28. package/dist/components/Textarea/index.js +1 -1
  29. package/dist/{index-CeJsIf3Z.js → index-Bm66OyL0.js} +1 -1
  30. package/dist/{index-C0N671c1.js → index-Bt1uVtoc.js} +1 -1
  31. package/dist/{index-DUnDnTyk.js → index-BtMpJbZ-.js} +1 -1
  32. package/dist/{index-D6hvbziL.js → index-Cy-Cg4bU.js} +13 -12
  33. package/dist/{index-B5AxA0A-.js → index-eiZAFM1T.js} +1 -1
  34. package/dist/renderInlineRichTextFromOpenText-RvOG3QbI.js +13 -0
  35. package/package.json +1 -1
  36. package/dist/renderInlineRichTextFromOpenText-CA52y1-B.js +0 -2383
@@ -3,8 +3,8 @@ import "react/jsx-runtime";
3
3
  import "../../index-Cbojl4_Q.js";
4
4
  import "../../Spacing-D0HQH9YJ.js";
5
5
  import "../../SizeTypes-Ck_RdzIf.js";
6
- import "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
7
- import { b, B } from "../../index-C0N671c1.js";
6
+ import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
7
+ import { b, B } from "../../index-Bt1uVtoc.js";
8
8
  export {
9
9
  b as BadgeAppearanceColor,
10
10
  B as default
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { c as spacingSm, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
4
4
  import { t as textBodyMd, a as textBodySm } from "../../TextBodySize-BcZR9mh2.js";
5
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
5
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
6
6
  import styled from "styled-components";
7
7
  import { getBodySize } from "../../foundations/token/getBodySize/index.js";
8
8
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
4
- import { B as ButtonAsLink, g as getButtonIcon } from "../../index-DUnDnTyk.js";
3
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
4
+ import { B as ButtonAsLink, g as getButtonIcon } from "../../index-BtMpJbZ-.js";
5
5
  import { B as ButtonStyled } from "../../styled-BPTa90Cm.js";
6
6
  const buttonFullWidth = "full";
7
7
  const buttonAutoWidth = "auto";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
- import { B } from "../../index-DUnDnTyk.js";
4
- import "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
3
+ import { B } from "../../index-BtMpJbZ-.js";
4
+ import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  export {
6
6
  B as default
7
7
  };
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import IconSnippet from "../IconSnippet/index.js";
4
4
  import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
5
- import { g as getUid } from "../../index-D6hvbziL.js";
5
+ import { g as getUid } from "../../index-Cy-Cg4bU.js";
6
6
  import { D as DemoBoxStyled } from "../../styled-CXSdomF5.js";
7
7
  const heading = {
8
8
  component: "Heading",
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment } from "react";
4
- import { R as RichText } from "../../index-D6hvbziL.js";
4
+ import { R as RichText } from "../../index-Cy-Cg4bU.js";
5
5
  import { f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
6
6
  import { b as textHeadingSm } from "../../HeadingSize-CfCRn3Lh.js";
7
7
  import { s as spacingMd, b as spacingNone, a as spacingXs, c as spacingSm } from "../../Spacing-D0HQH9YJ.js";
8
8
  import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
9
- import { a as BadgeStyled, B as Badge } from "../../index-C0N671c1.js";
9
+ import { a as BadgeStyled, B as Badge } from "../../index-Bt1uVtoc.js";
10
10
  import Body, { bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
11
11
  import Heading from "../Heading/index.js";
12
12
  import Link from "../Link/index.js";
13
- import { P as Price, c as priceSizeSm, d as priceAlignLeft, a as priceAlignCenter, b as priceOrientationVertical } from "../../index-CeJsIf3Z.js";
13
+ import { P as Price, c as priceSizeSm, d as priceAlignLeft, a as priceAlignCenter, b as priceOrientationVertical } from "../../index-Bm66OyL0.js";
14
14
  import Image, { aspectRatio16_9, aspectRatio1_1 } from "../Image/index.js";
15
15
  import { a as cornerRounded } from "../../CornerStyle-JEbGNArR.js";
16
16
  import styled from "styled-components";
@@ -18,7 +18,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
18
18
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
19
19
  import { f as filterProps } from "../../filterProps-Cewck8OH.js";
20
20
  import Card from "../Card/index.js";
21
- import { a as LinkStyled } from "../../index-B5AxA0A-.js";
21
+ import { a as LinkStyled } from "../../index-eiZAFM1T.js";
22
22
  const discoveryCardOrientationVertical = "vertical";
23
23
  const discoveryCardOrientationHorizontal = "horizontal";
24
24
  const DiscoveryCardStyled = styled(Card).withConfig({
@@ -6,7 +6,7 @@ import Grid from "../Grid/index.js";
6
6
  import GridItem from "../GridItem/index.js";
7
7
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
8
8
  import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
9
- import { a as LinkStyled } from "../../index-B5AxA0A-.js";
9
+ import { a as LinkStyled } from "../../index-eiZAFM1T.js";
10
10
  const DiscoveryCardGroupGridStyled = styled(Grid).withConfig({
11
11
  displayName: "DiscoveryCardGroupGridStyled",
12
12
  componentId: "sc-6axszn-0"
@@ -2,7 +2,7 @@
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import FootnoteLink from "../FootnoteLink/index.js";
4
4
  import { a as spacingXs, c as spacingSm, s as spacingMd, f as spacingLg, d as spacingXl } from "../../Spacing-D0HQH9YJ.js";
5
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
5
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
6
6
  import styled from "styled-components";
7
7
  import { h as h5TagName, a as h4TagName, b as h3TagName, c as h2TagName, e as h1TagName, f as headingHtmlTags } from "../../tags-DI6H1biK.js";
8
8
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
@@ -4,7 +4,7 @@ import { df as IconLoader, iu as iconSizeMd, io as iconSize2xl } from "../../ind
4
4
  import Body from "../Body/index.js";
5
5
  import Heading from "../Heading/index.js";
6
6
  import InlineLink from "../InlineLink/index.js";
7
- import { R as RichText } from "../../index-D6hvbziL.js";
7
+ import { R as RichText } from "../../index-Cy-Cg4bU.js";
8
8
  import { d as divTagName } from "../../tags-DI6H1biK.js";
9
9
  import { a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
10
10
  import Link from "../Link/index.js";
@@ -4,13 +4,13 @@ import Body from "../Body/index.js";
4
4
  import { a as fontWeightLight } from "../../FontWeight-CR22KTex.js";
5
5
  import { s as spacingMd, c as spacingSm, d as spacingXl, a as spacingXs, e as spacing2Xs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
6
6
  import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
7
- import { g as getUid, R as RichText } from "../../index-D6hvbziL.js";
7
+ import { g as getUid, R as RichText } from "../../index-Cy-Cg4bU.js";
8
8
  import Button from "../Button/index.js";
9
9
  import Container from "../Container/index.js";
10
10
  import Heading, { headingAlignCenter } from "../Heading/index.js";
11
- import { P as Price, c as priceSizeSm } from "../../index-CeJsIf3Z.js";
11
+ import { P as Price, c as priceSizeSm } from "../../index-Bm66OyL0.js";
12
12
  import styled from "styled-components";
13
- import { B as Badge } from "../../index-C0N671c1.js";
13
+ import { B as Badge } from "../../index-Bt1uVtoc.js";
14
14
  import ButtonGroup from "../ButtonGroup/index.js";
15
15
  import Grid from "../Grid/index.js";
16
16
  import GridItem from "../GridItem/index.js";
@@ -6,7 +6,7 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
6
6
  import FormHelperMessage from "../FormHelperMessage/index.js";
7
7
  import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
8
8
  import { s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
9
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
9
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
10
10
  import { i as inputStateError } from "../../props-Czq9XX2J.js";
11
11
  import { a } from "../../props-Czq9XX2J.js";
12
12
  import { I as InputWrapperStyled, a as InputStyled } from "../../styled-CDWclYAa.js";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
3
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
4
4
  import styled from "styled-components";
5
5
  import { getBodySize } from "../../foundations/token/getBodySize/index.js";
6
6
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
@@ -3,7 +3,7 @@ import { jsx, Fragment } from "react/jsx-runtime";
3
3
  import Body from "../Body/index.js";
4
4
  import Heading from "../Heading/index.js";
5
5
  import IconSnippet, { iconSnippetAlignCenter } from "../IconSnippet/index.js";
6
- import { R as RichText } from "../../index-D6hvbziL.js";
6
+ import { R as RichText } from "../../index-Cy-Cg4bU.js";
7
7
  import styled from "styled-components";
8
8
  const LegendStyled = styled.legend.withConfig({
9
9
  displayName: "LegendStyled",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-B5AxA0A-.js";
4
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
3
+ import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-eiZAFM1T.js";
4
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  const isLinkAsButtonProp = (props) => {
6
6
  return props.href === void 0;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
- import { L } from "../../index-B5AxA0A-.js";
4
- import "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
3
+ import { L } from "../../index-eiZAFM1T.js";
4
+ import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  export {
6
6
  L as default
7
7
  };
@@ -4,7 +4,7 @@ import { iu as iconSizeMd, df as IconLoader } from "../../index-Cbojl4_Q.js";
4
4
  import { s as spanTagName } from "../../tags-DI6H1biK.js";
5
5
  import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
6
6
  import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
7
- import { B as Badge } from "../../index-C0N671c1.js";
7
+ import { B as Badge } from "../../index-Bt1uVtoc.js";
8
8
  import Body from "../Body/index.js";
9
9
  import styled from "styled-components";
10
10
  import forcedColors from "../../foundations/media-query/forcedColors/index.js";
@@ -7,7 +7,7 @@ import ButtonGroup from "../ButtonGroup/index.js";
7
7
  import Flex from "../Flex/index.js";
8
8
  import Heading from "../Heading/index.js";
9
9
  import Link from "../Link/index.js";
10
- import { R as RichText } from "../../index-D6hvbziL.js";
10
+ import { R as RichText } from "../../index-Cy-Cg4bU.js";
11
11
  import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
12
12
  import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
13
13
  import { e as colorBorderCritical, f as colorBorderWarning, d as colorBorderSuccess, k as colorBorderInformation } from "../../BorderColor-BummoQ1-.js";
@@ -6,9 +6,9 @@ import { e as spacing2Xs, s as spacingMd, c as spacingSm, b as spacingNone } fro
6
6
  import { useState, useEffect } from "react";
7
7
  import Grid from "../Grid/index.js";
8
8
  import { df as IconLoader, iu as iconSizeMd } from "../../index-Cbojl4_Q.js";
9
- import { B as Badge } from "../../index-C0N671c1.js";
9
+ import { B as Badge } from "../../index-Bt1uVtoc.js";
10
10
  import ColorSwatch from "../ColorSwatch/index.js";
11
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
11
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
12
12
  import styled from "styled-components";
13
13
  import Image, { aspectRatio1_1 } from "../Image/index.js";
14
14
  import { v as viewport } from "../../index-Ck2bCrhT.js";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
3
  import "../../index-DQhtQZ85.js";
4
- import "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
5
- import { e, P, i, a, d, h, f, b, g, p, c } from "../../index-CeJsIf3Z.js";
4
+ import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
+ import { e, P, i, a, d, h, f, b, g, p, c } from "../../index-Bm66OyL0.js";
6
6
  export {
7
7
  e as createScreenReaderText,
8
8
  P as default,
@@ -5,12 +5,12 @@ import Image, { aspectRatio1_1 } from "../Image/index.js";
5
5
  import { f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
6
6
  import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
7
7
  import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
8
- import { B as Badge } from "../../index-C0N671c1.js";
8
+ import { B as Badge } from "../../index-Bt1uVtoc.js";
9
9
  import Body from "../Body/index.js";
10
10
  import ColorSwatchGroup from "../ColorSwatchGroup/index.js";
11
11
  import Heading from "../Heading/index.js";
12
12
  import Link from "../Link/index.js";
13
- import { P as Price, p as priceSizeMd, a as priceAlignCenter, b as priceOrientationVertical } from "../../index-CeJsIf3Z.js";
13
+ import { P as Price, p as priceSizeMd, a as priceAlignCenter, b as priceOrientationVertical } from "../../index-Bm66OyL0.js";
14
14
  import styled from "styled-components";
15
15
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
16
16
  import Card from "../Card/index.js";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
- import { R } from "../../index-D6hvbziL.js";
4
+ import { R } from "../../index-Cy-Cg4bU.js";
5
5
  export {
6
6
  R as default
7
7
  };
@@ -6,7 +6,7 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
6
6
  import IconButton, { iconButtonShapeSquare } from "../IconButton/index.js";
7
7
  import { b as spacingNone, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
8
8
  import { p as primaryAppearance } from "../../styled-BPTa90Cm.js";
9
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
9
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
10
10
  import Form from "../Form/index.js";
11
11
  import styled from "styled-components";
12
12
  import { I as InputWrapperStyled, a as InputStyled } from "../../styled-CDWclYAa.js";
@@ -8,7 +8,7 @@ import FormHelperMessage from "../FormHelperMessage/index.js";
8
8
  import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
9
9
  import { i as inputStateError } from "../../props-Czq9XX2J.js";
10
10
  import { a as spacingXs, c as spacingSm, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
11
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
11
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
12
12
  import styled from "styled-components";
13
13
  import forcedColors from "../../foundations/media-query/forcedColors/index.js";
14
14
  import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { useState, useRef, useEffect } from "react";
4
4
  import { useViewport } from "../../hooks/useViewport/index.js";
5
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
5
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
6
6
  import styled from "styled-components";
7
7
  import forcedColors from "../../foundations/media-query/forcedColors/index.js";
8
8
  import { v as viewport, b as breakpoint_medium_number } from "../../index-Ck2bCrhT.js";
@@ -9,7 +9,7 @@ import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
9
9
  import { i as inputStateError } from "../../props-Czq9XX2J.js";
10
10
  import { I as InputWrapperStyled, a as InputStyled } from "../../styled-CDWclYAa.js";
11
11
  import { c as spacingSm, a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
12
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
12
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
13
13
  import Body from "../Body/index.js";
14
14
  import { g as strongTagName } from "../../tags-DI6H1biK.js";
15
15
  import styled from "styled-components";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
- import { T } from "../../index-CeJsIf3Z.js";
3
+ import { T } from "../../index-Bm66OyL0.js";
4
4
  import "../../index-DQhtQZ85.js";
5
- import "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
5
+ import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
6
6
  export {
7
7
  T as default
8
8
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
- import { T, a } from "../../index-D6hvbziL.js";
3
+ import { T, a } from "../../index-Cy-Cg4bU.js";
4
4
  import "../../tags-DI6H1biK.js";
5
5
  import "../../Spacing-D0HQH9YJ.js";
6
- import "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
6
+ import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
7
7
  export {
8
8
  T as TextListItem,
9
9
  a as default
@@ -6,7 +6,7 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
6
6
  import FormHelperMessage from "../FormHelperMessage/index.js";
7
7
  import { i as inputStateError } from "../../props-Czq9XX2J.js";
8
8
  import { c as spacingSm, d as spacingXl, s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
9
- import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-CA52y1-B.js";
9
+ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
10
10
  import styled from "styled-components";
11
11
  import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
12
12
  import forcedColors from "../../foundations/media-query/forcedColors/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { S as ScreenreaderOnly } from "./index-DQhtQZ85.js";
3
- import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-CA52y1-B.js";
3
+ import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
4
4
  import styled from "styled-components";
5
5
  import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
6
6
  import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { df as IconLoader, ix as iconSizeXs, iv as iconSizeSm } from "./index-Cbojl4_Q.js";
3
3
  import { a as spacingXs, e as spacing2Xs, c as spacingSm, s as spacingMd } from "./Spacing-D0HQH9YJ.js";
4
4
  import { s as smallSize, m as mediumSize } from "./SizeTypes-Ck_RdzIf.js";
5
- import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-CA52y1-B.js";
5
+ import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
6
6
  import styled from "styled-components";
7
7
  import forcedColors from "./foundations/media-query/forcedColors/index.js";
8
8
  import { getBodySize } from "./foundations/token/getBodySize/index.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { iv as iconSizeSm } from "./index-Cbojl4_Q.js";
3
3
  import { l as leftPosition, c as ButtonIconStyled, b as buttonHeight, g as getButtonAppearance, p as primaryAppearance } from "./styled-BPTa90Cm.js";
4
- import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-CA52y1-B.js";
4
+ import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  import styled from "styled-components";
6
6
  import { getBodySize } from "./foundations/token/getBodySize/index.js";
7
7
  import { getBorderRadius } from "./foundations/token/getBorderRadius/index.js";
@@ -1,12 +1,13 @@
1
1
  import { jsx, Fragment } from "react/jsx-runtime";
2
2
  import { cloneElement } from "react";
3
- import { p as parse, l as libExports, r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-CA52y1-B.js";
3
+ import parse, { Element, domToReact } from "html-react-parser";
4
4
  import Body from "./components/Body/index.js";
5
5
  import FootnoteLink from "./components/FootnoteLink/index.js";
6
6
  import Heading from "./components/Heading/index.js";
7
7
  import InlineLink from "./components/InlineLink/index.js";
8
8
  import { f as headingHtmlTags, o as olTagName, g as strongTagName, i as supTagName, u as ulTagName } from "./tags-DI6H1biK.js";
9
9
  import { s as spacingMd, b as spacingNone } from "./Spacing-D0HQH9YJ.js";
10
+ import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
10
11
  import styled from "styled-components";
11
12
  import { getBodySize } from "./foundations/token/getBodySize/index.js";
12
13
  import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
@@ -31,40 +32,40 @@ const mapSizeToTag = {
31
32
  const getOptions = (paragraphSpacing, additionalProps = {}) => {
32
33
  const options = {
33
34
  replace(domNode) {
34
- if (domNode instanceof libExports.Element) {
35
+ if (domNode instanceof Element) {
35
36
  if (headingHtmlTags.includes(domNode.name)) {
36
- return /* @__PURE__ */ jsx(Heading, { ...additionalProps.heading, size: mapSizeToTag[domNode.name], bottomSpacing: paragraphSpacing, children: libExports.domToReact(domNode.children, options) });
37
+ return /* @__PURE__ */ jsx(Heading, { ...additionalProps.heading, size: mapSizeToTag[domNode.name], bottomSpacing: paragraphSpacing, children: domToReact(domNode.children, options) });
37
38
  }
38
39
  if ("li" === domNode.name) {
39
- return /* @__PURE__ */ jsx(TextListItem, { ...additionalProps.li, children: libExports.domToReact(domNode.children, options) });
40
+ return /* @__PURE__ */ jsx(TextListItem, { ...additionalProps.li, children: domToReact(domNode.children, options) });
40
41
  }
41
42
  if ("ol" === domNode.name) {
42
- return /* @__PURE__ */ jsx(TextList, { ...additionalProps.ol, tag: olTagName, children: libExports.domToReact(domNode.children, options) });
43
+ return /* @__PURE__ */ jsx(TextList, { ...additionalProps.ol, tag: olTagName, children: domToReact(domNode.children, options) });
43
44
  }
44
45
  if ("ul" === domNode.name) {
45
- return /* @__PURE__ */ jsx(TextList, { ...additionalProps.ul, children: libExports.domToReact(domNode.children, options) });
46
+ return /* @__PURE__ */ jsx(TextList, { ...additionalProps.ul, children: domToReact(domNode.children, options) });
46
47
  }
47
48
  if ("strong" === domNode.name) {
48
- return /* @__PURE__ */ jsx(Body, { ...additionalProps.strong, tag: strongTagName, children: libExports.domToReact(domNode.children, options) });
49
+ return /* @__PURE__ */ jsx(Body, { ...additionalProps.strong, tag: strongTagName, children: domToReact(domNode.children, options) });
49
50
  }
50
51
  if ("small" === domNode.name) {
51
- return /* @__PURE__ */ jsx(Body, { ...additionalProps.small, size: textBodySm, children: libExports.domToReact(domNode.children, options) });
52
+ return /* @__PURE__ */ jsx(Body, { ...additionalProps.small, size: textBodySm, children: domToReact(domNode.children, options) });
52
53
  }
53
54
  if ("sup" === domNode.name) {
54
- return /* @__PURE__ */ jsx(Body, { ...additionalProps.sup, tag: supTagName, children: libExports.domToReact(domNode.children, options) });
55
+ return /* @__PURE__ */ jsx(Body, { ...additionalProps.sup, tag: supTagName, children: domToReact(domNode.children, options) });
55
56
  }
56
57
  if ("p" === domNode.name) {
57
- return /* @__PURE__ */ jsx(Body, { ...additionalProps.p, bottomSpacing: paragraphSpacing, children: libExports.domToReact(domNode.children, options) });
58
+ return /* @__PURE__ */ jsx(Body, { ...additionalProps.p, bottomSpacing: paragraphSpacing, children: domToReact(domNode.children, options) });
58
59
  }
59
60
  if ("a" === domNode.name) {
60
- const linkLabel = libExports.domToReact(domNode.children, options);
61
+ const linkLabel = domToReact(domNode.children, options);
61
62
  const isNumber = parseInt(linkLabel, 10);
62
63
  const href = domNode.attribs.href;
63
64
  const isAnchor = href.indexOf("#") === 0;
64
65
  if (!isNaN(isNumber) && isAnchor) {
65
66
  return /* @__PURE__ */ jsx(FootnoteLink, { uid: getUid(), contentUid: href.replace("#", ""), screenReaderLabel: "Details zur Fußnote", children: linkLabel });
66
67
  }
67
- return /* @__PURE__ */ jsx(InlineLink, { ...additionalProps.a, href: domNode.attribs.href, children: libExports.domToReact(domNode.children, options) });
68
+ return /* @__PURE__ */ jsx(InlineLink, { ...additionalProps.a, href: domNode.attribs.href, children: domToReact(domNode.children, options) });
68
69
  }
69
70
  }
70
71
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { iv as iconSizeSm } from "./index-Cbojl4_Q.js";
3
3
  import { c as ButtonIconStyled } from "./styled-BPTa90Cm.js";
4
- import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-CA52y1-B.js";
4
+ import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
5
5
  import styled from "styled-components";
6
6
  import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
7
7
  import { s as spacingMd, b as spacingNone, a as spacingXs } from "./Spacing-D0HQH9YJ.js";
@@ -0,0 +1,13 @@
1
+ import parse from "html-react-parser";
2
+ const renderInlineRichTextFromOpenText = (fromCms) => {
3
+ if (typeof fromCms === "string") {
4
+ return parse(fromCms);
5
+ }
6
+ if (Array.isArray(fromCms)) {
7
+ return fromCms.map(renderInlineRichTextFromOpenText);
8
+ }
9
+ return fromCms;
10
+ };
11
+ export {
12
+ renderInlineRichTextFromOpenText as r
13
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vodafone_de/brix-components",
3
3
  "description": "Brix is the digital design system for vodafone.de",
4
- "version": "3.0.3",
4
+ "version": "3.0.4",
5
5
  "exports": {
6
6
  "./components/*": {
7
7
  "import": "./dist/components/*/index.js",