@vodafone_de/brix-components 11.3.2 → 11.3.3
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/DiscoveryCard/index.js +15 -4
- package/dist/components/DiscoveryCard/styled.d.ts +1 -0
- package/dist/components/FeatureCardGroup/components/FeatureCard/index.js +1 -1
- package/dist/components/Footnote/index.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/IconSnippet/index.js +1 -1
- package/dist/components/ImageHeader/index.js +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/MediaText/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OpenTextFootnoteAdapter/index.js +1 -1
- package/dist/components/ProductCard/index.js +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichTextContentful/index.js +1 -1
- package/dist/components/TextList/components/TextListItem/index.js +1 -1
- package/dist/components/TextList/index.js +1 -1
- package/dist/{index-BBTjURdS.js → index-t33oCIxk.js} +7 -5
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { b as bodyComponentName } from "../../componentName-BoJP6JLf.js";
|
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
8
|
import Link from "../Link/index.js";
|
|
9
9
|
import { P as Price } from "../../index-BfQ2X8ye.js";
|
|
10
|
-
import { b as RichText, R as RichTextContentful } from "../../index-
|
|
10
|
+
import { b as RichText, R as RichTextContentful } from "../../index-t33oCIxk.js";
|
|
11
11
|
import { a as richTextComponentName, r as richTextContentfulComponentName } from "../../props-B4nvU2Fb.js";
|
|
12
12
|
import { a as fontWeightBold } from "../../FontWeight-C8c-UnWu.js";
|
|
13
13
|
import { a as textHeadingSm } from "../../HeadingSize-O8nxnNUv.js";
|
|
@@ -16,6 +16,9 @@ import { s as spacingMd, b as spacingNone, a as spacingXs, c as spacingSm } from
|
|
|
16
16
|
import { d as discoveryCardOrientationVertical, a as discoveryCardOrientationHorizontal } from "../../props-DX29PlMd.js";
|
|
17
17
|
import { b } from "../../props-DX29PlMd.js";
|
|
18
18
|
import styled from "styled-components";
|
|
19
|
+
import "../../index-YejaekcB.js";
|
|
20
|
+
import "../../index-BY3OGN8u.js";
|
|
21
|
+
import { a as bodyAlignLeft, c as bodyAlignCenter } from "../../props-Dg-dNUZp.js";
|
|
19
22
|
import Card from "../Card/index.js";
|
|
20
23
|
import Image from "../Image/index.js";
|
|
21
24
|
import { a as LinkStyled } from "../../index-WDSqDzDP.js";
|
|
@@ -23,7 +26,6 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
23
26
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
24
27
|
import { a as filterProps } from "../../filterProps-Byd2u_z1.js";
|
|
25
28
|
import { s as aspectRatio16_9, q as aspectRatio1_1 } from "../../props-BhyhAixN.js";
|
|
26
|
-
import { a as bodyAlignLeft, c as bodyAlignCenter } from "../../props-Dg-dNUZp.js";
|
|
27
29
|
import { c as priceSizeSm, g as priceAlignLeft, h as priceAlignCenter, a as priceOrientationVertical } from "../../props-BqRtRlbH.js";
|
|
28
30
|
const DiscoveryCardStyled = styled(Card).withConfig({
|
|
29
31
|
shouldForwardProp: filterProps(),
|
|
@@ -92,6 +94,15 @@ styled(Image).withConfig({
|
|
|
92
94
|
width: "100%",
|
|
93
95
|
height: "100%"
|
|
94
96
|
});
|
|
97
|
+
const DiscoveryCardRichTextAlignStyled = styled.div.withConfig({
|
|
98
|
+
shouldForwardProp: filterProps(),
|
|
99
|
+
displayName: "DiscoveryCardRichTextAlignStyled",
|
|
100
|
+
componentId: "sc-6ng9yt-4"
|
|
101
|
+
})(({
|
|
102
|
+
orientation
|
|
103
|
+
}) => ({
|
|
104
|
+
textAlign: discoveryCardOrientationHorizontal === orientation ? bodyAlignLeft : bodyAlignCenter
|
|
105
|
+
}));
|
|
95
106
|
const DiscoveryCardLinkedImage = ({
|
|
96
107
|
uid,
|
|
97
108
|
image,
|
|
@@ -121,8 +132,8 @@ const DiscoveryCard = ({
|
|
|
121
132
|
badge && /* @__PURE__ */ jsx(Badge, { ...badge, size: smallSize, bottomSpacing: spacingXs }),
|
|
122
133
|
/* @__PURE__ */ jsx(Heading, { ...heading, size: textHeadingSm, weight: fontWeightBold, align: discoveryCardOrientationHorizontal === orientation ? bodyAlignLeft : bodyAlignCenter, id: `headingId-${uid}`, bottomSpacing: !body && !price ? spacingSm : spacingXs, children: heading.children }),
|
|
123
134
|
body && body.component === bodyComponentName && /* @__PURE__ */ jsx(Body, { ...body, align: discoveryCardOrientationHorizontal === orientation ? bodyAlignLeft : bodyAlignCenter, bottomSpacing: !price ? spacingSm : spacingXs, children: body.children }),
|
|
124
|
-
body && body.component === richTextComponentName && /* @__PURE__ */ jsx(RichText, { ...body, bottomSpacing: !price ? spacingSm : spacingXs }),
|
|
125
|
-
body && body.component === richTextContentfulComponentName && /* @__PURE__ */ jsx(RichTextContentful, { ...body, bottomSpacing: spacingMd }),
|
|
135
|
+
body && body.component === richTextComponentName && /* @__PURE__ */ jsx(DiscoveryCardRichTextAlignStyled, { orientation, children: /* @__PURE__ */ jsx(RichText, { ...body, bottomSpacing: !price ? spacingSm : spacingXs }) }),
|
|
136
|
+
body && body.component === richTextContentfulComponentName && /* @__PURE__ */ jsx(DiscoveryCardRichTextAlignStyled, { orientation, children: /* @__PURE__ */ jsx(RichTextContentful, { ...body, bottomSpacing: spacingMd }) }),
|
|
126
137
|
price && /* @__PURE__ */ jsx(Price, { ...price, orientation: priceOrientationVertical, align: discoveryCardOrientationHorizontal === orientation ? priceAlignLeft : priceAlignCenter, size: priceSizeSm, bottomSpacing: spacingSm }),
|
|
127
138
|
/* @__PURE__ */ jsx(Link, { ...link, "aria-describedby": `headingId-${uid}`, bottomSpacing: spacingNone })
|
|
128
139
|
] })
|
|
@@ -4,3 +4,4 @@ export declare const DiscoveryCardStyled: import('styled-components/dist/types')
|
|
|
4
4
|
export declare const DiscoveryCardContentyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
5
|
export declare const DiscoveryCardImageLinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, Pick<DiscoveryCardProps, "bottomSpacing" | "orientation"> & AnchorHTMLAttributes<HTMLAnchorElement>>> & string;
|
|
6
6
|
export declare const DiscoveryCardImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Image').ImageProps, never>> & string & Omit<import('react').FC<import('../Image').ImageProps>, keyof import('react').Component<any, {}, any>>;
|
|
7
|
+
export declare const DiscoveryCardRichTextAlignStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<DiscoveryCardProps, "orientation">>> & string;
|
|
@@ -12,7 +12,7 @@ import Image from "../../../Image/index.js";
|
|
|
12
12
|
import { q as aspectRatio1_1 } from "../../../../props-BhyhAixN.js";
|
|
13
13
|
import Link from "../../../Link/index.js";
|
|
14
14
|
import { P as Price } from "../../../../index-BfQ2X8ye.js";
|
|
15
|
-
import { b as RichText, R as RichTextContentful } from "../../../../index-
|
|
15
|
+
import { b as RichText, R as RichTextContentful } from "../../../../index-t33oCIxk.js";
|
|
16
16
|
import { a as richTextComponentName, r as richTextContentfulComponentName } from "../../../../props-B4nvU2Fb.js";
|
|
17
17
|
import ToggleButton from "../../../ToggleButton/index.js";
|
|
18
18
|
import { a as fontWeightBold } from "../../../../FontWeight-C8c-UnWu.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import Accordion from "../Accordion/index.js";
|
|
4
4
|
import FootnoteContent from "../FootnoteContent/index.js";
|
|
5
|
-
import { R as RichTextContentful } from "../../index-
|
|
5
|
+
import { R as RichTextContentful } from "../../index-t33oCIxk.js";
|
|
6
6
|
const Footnote = ({
|
|
7
7
|
uid,
|
|
8
8
|
heading,
|
|
@@ -4,7 +4,7 @@ import Body from "../Body/index.js";
|
|
|
4
4
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
5
5
|
import Heading from "../Heading/index.js";
|
|
6
6
|
import IconSnippet from "../IconSnippet/index.js";
|
|
7
|
-
import { b as RichText } from "../../index-
|
|
7
|
+
import { b as RichText } from "../../index-t33oCIxk.js";
|
|
8
8
|
import { b as spacingNone } from "../../Spacing-CwWBV8DU.js";
|
|
9
9
|
import styled from "styled-components";
|
|
10
10
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -9,7 +9,7 @@ import { g as iconSnippetAlignTop, d as iconSnippetPositionLeft, i as iconSnippe
|
|
|
9
9
|
import { h, j, e, f, c, k } from "../../props-IkQSZ4Yn.js";
|
|
10
10
|
import Link from "../Link/index.js";
|
|
11
11
|
import { l as linkComponentName } from "../../componentName-D74Io-Fs.js";
|
|
12
|
-
import { b as RichText, R as RichTextContentful } from "../../index-
|
|
12
|
+
import { b as RichText, R as RichTextContentful } from "../../index-t33oCIxk.js";
|
|
13
13
|
import { a as richTextComponentName, r as richTextContentfulComponentName } from "../../props-B4nvU2Fb.js";
|
|
14
14
|
import { d as divTagName } from "../../tags-DbqTyULW.js";
|
|
15
15
|
import { j as iconSizeLg, b as iconSize3xl, g as iconSizeSm } from "../../IconSize-BknHGJXj.js";
|
|
@@ -7,7 +7,7 @@ import { C as Container } from "../../index-C9s7aJQ9.js";
|
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
8
|
import { h as headingComponentName } from "../../componentName-C1oXAOj7.js";
|
|
9
9
|
import { P as Price } from "../../index-BfQ2X8ye.js";
|
|
10
|
-
import { R as RichTextContentful, b as RichText } from "../../index-
|
|
10
|
+
import { R as RichTextContentful, b as RichText } from "../../index-t33oCIxk.js";
|
|
11
11
|
import { r as richTextContentfulComponentName, a as richTextComponentName } from "../../props-B4nvU2Fb.js";
|
|
12
12
|
import { a as breakpoint_large } from "../../breakpoint-CzBSbbY7.js";
|
|
13
13
|
import { b as fontWeightLight } from "../../FontWeight-C8c-UnWu.js";
|
|
@@ -4,7 +4,7 @@ import Body from "../Body/index.js";
|
|
|
4
4
|
import Heading from "../Heading/index.js";
|
|
5
5
|
import IconSnippet from "../IconSnippet/index.js";
|
|
6
6
|
import { h as iconSnippetAlignCenter } from "../../props-IkQSZ4Yn.js";
|
|
7
|
-
import { b as RichText } from "../../index-
|
|
7
|
+
import { b as RichText } from "../../index-t33oCIxk.js";
|
|
8
8
|
import styled from "styled-components";
|
|
9
9
|
const LegendStyled = styled.legend.withConfig({
|
|
10
10
|
displayName: "LegendStyled",
|
|
@@ -8,7 +8,7 @@ import Image from "../Image/index.js";
|
|
|
8
8
|
import { a as mediaTextPositionLeft, y as youTubeVideoComponentName, i as imageComponentName } from "../../props-D8pFDmiN.js";
|
|
9
9
|
import { b, m, c } from "../../props-D8pFDmiN.js";
|
|
10
10
|
import Link from "../Link/index.js";
|
|
11
|
-
import { R as RichTextContentful, b as RichText } from "../../index-
|
|
11
|
+
import { R as RichTextContentful, b as RichText } from "../../index-t33oCIxk.js";
|
|
12
12
|
import YouTubeVideo from "../YouTubeVideo/index.js";
|
|
13
13
|
import { p as pTagName, u as ulTagName, d as divTagName, l as liTagName } from "../../tags-DbqTyULW.js";
|
|
14
14
|
import { f as fontWeightRegular } from "../../FontWeight-C8c-UnWu.js";
|
|
@@ -12,7 +12,7 @@ import { h as headingComponentName } from "../../componentName-C1oXAOj7.js";
|
|
|
12
12
|
import IconLoader from "../IconLoader/index.js";
|
|
13
13
|
import Link from "../Link/index.js";
|
|
14
14
|
import { l as linkComponentName } from "../../componentName-D74Io-Fs.js";
|
|
15
|
-
import { b as RichText, R as RichTextContentful } from "../../index-
|
|
15
|
+
import { b as RichText, R as RichTextContentful } from "../../index-t33oCIxk.js";
|
|
16
16
|
import { a as richTextComponentName, r as richTextContentfulComponentName } from "../../props-B4nvU2Fb.js";
|
|
17
17
|
import { g as iconSizeSm } from "../../IconSize-BknHGJXj.js";
|
|
18
18
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
@@ -5,7 +5,7 @@ import AccordionGroup from "../AccordionGroup/index.js";
|
|
|
5
5
|
import { C as Container } from "../../index-C9s7aJQ9.js";
|
|
6
6
|
import FootnoteContent from "../FootnoteContent/index.js";
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
|
-
import { b as RichText } from "../../index-
|
|
8
|
+
import { b as RichText } from "../../index-t33oCIxk.js";
|
|
9
9
|
import { a as textHeadingSm, b as textHeadingLg } from "../../HeadingSize-O8nxnNUv.js";
|
|
10
10
|
import { g as h3TagName } from "../../tags-DbqTyULW.js";
|
|
11
11
|
const getFootnoteContent = (content, footnoteContentBacklinkText) => {
|
|
@@ -14,7 +14,7 @@ import { P as Price } from "../../index-BfQ2X8ye.js";
|
|
|
14
14
|
import { a as fontWeightBold } from "../../FontWeight-C8c-UnWu.js";
|
|
15
15
|
import { j as iconSizeLg } from "../../IconSize-BknHGJXj.js";
|
|
16
16
|
import EnergySnippet from "../EnergySnippet/index.js";
|
|
17
|
-
import { b as RichText } from "../../index-
|
|
17
|
+
import { b as RichText } from "../../index-t33oCIxk.js";
|
|
18
18
|
import styled from "styled-components";
|
|
19
19
|
import Card from "../Card/index.js";
|
|
20
20
|
import Flex from "../Flex/index.js";
|
|
@@ -3,7 +3,7 @@ import "react/jsx-runtime";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../tags-DbqTyULW.js";
|
|
5
5
|
import "../../Spacing-CwWBV8DU.js";
|
|
6
|
-
import { T } from "../../index-
|
|
6
|
+
import { T } from "../../index-t33oCIxk.js";
|
|
7
7
|
import { t } from "../../props-B4nvU2Fb.js";
|
|
8
8
|
export {
|
|
9
9
|
T as default,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx,
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { cloneElement, createElement } from "react";
|
|
3
3
|
import { h as headingHtmlTags, q as olTagName, e as strongTagName, f as supTagName, u as ulTagName } from "./tags-DbqTyULW.js";
|
|
4
4
|
import { b as spacingNone, s as spacingMd } from "./Spacing-CwWBV8DU.js";
|
|
@@ -500,7 +500,8 @@ const RichText = ({
|
|
|
500
500
|
html,
|
|
501
501
|
paragraphSpacing,
|
|
502
502
|
bottomSpacing,
|
|
503
|
-
tagProps = {}
|
|
503
|
+
tagProps = {},
|
|
504
|
+
...props
|
|
504
505
|
}) => {
|
|
505
506
|
let parsedHtml = parseHtml(html, paragraphSpacing, tagProps);
|
|
506
507
|
if (parsedHtml && typeof parsedHtml !== "string" && bottomSpacing) {
|
|
@@ -513,7 +514,7 @@ const RichText = ({
|
|
|
513
514
|
});
|
|
514
515
|
}
|
|
515
516
|
}
|
|
516
|
-
return /* @__PURE__ */ jsx(
|
|
517
|
+
return /* @__PURE__ */ jsx("div", { ...props, children: parsedHtml });
|
|
517
518
|
};
|
|
518
519
|
var richTextReactRenderer_es5 = {};
|
|
519
520
|
var cjs = {};
|
|
@@ -2309,10 +2310,11 @@ const RichTextContentfulStyled = styled.div.withConfig({
|
|
|
2309
2310
|
const RichTextContentful = ({
|
|
2310
2311
|
html,
|
|
2311
2312
|
paragraphSpacing,
|
|
2312
|
-
bottomSpacing
|
|
2313
|
+
bottomSpacing,
|
|
2314
|
+
...props
|
|
2313
2315
|
}) => {
|
|
2314
2316
|
const rendered = richTextReactRenderer_es5Exports.documentToReactComponents(html, getOptions(paragraphSpacing));
|
|
2315
|
-
return /* @__PURE__ */ jsx(RichTextContentfulStyled, { bottomSpacing, children: rendered });
|
|
2317
|
+
return /* @__PURE__ */ jsx(RichTextContentfulStyled, { ...props, bottomSpacing, children: rendered });
|
|
2316
2318
|
};
|
|
2317
2319
|
const TextListItemStyled = styled.li.withConfig({
|
|
2318
2320
|
shouldForwardProp: filterProps(),
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { default as default5 } from "./components/ToggleButtonProvider/index.js"
|
|
|
5
5
|
import { default as default6 } from "./components/ToggleButton/index.js";
|
|
6
6
|
import { default as default7 } from "./components/TimeInput/index.js";
|
|
7
7
|
import { default as default8 } from "./components/Textarea/index.js";
|
|
8
|
-
import { b, R, T, a } from "./index-
|
|
8
|
+
import { b, R, T, a } from "./index-t33oCIxk.js";
|
|
9
9
|
import { P, T as T2, c } from "./index-BfQ2X8ye.js";
|
|
10
10
|
import { T as T3, a as a2, b as b2, c as c2, d, T as T4 } from "./TableWrapper-D_uMGOJf.js";
|
|
11
11
|
import { PanelStyled, default as default9, TabGroupContainerStyled, TabGroupIndicatorStyled, TabGroupTabsScrollableContainerStyled, TabGroupTabsStyled, TabLabelStyled, TabStyled } from "./components/TabGroup/index.js";
|