@vodafone_de/brix-components 7.1.1 → 7.1.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/DemoBox/index.js +2 -5
- package/dist/components/DiscoveryCard/index.js +1 -2
- package/dist/components/IconSnippet/index.js +1 -1
- package/dist/components/ImageHeader/index.js +2 -3
- package/dist/components/InfoBanner/index.js +1 -2
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/MediaText/index.js +3 -4
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OpenTextFootnoteAdapter/index.js +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +1 -1
- package/dist/components/TextList/index.js +1 -1
- package/dist/contentful/index.js +0 -1
- package/dist/contentful/live-preview-inspector/index.js +1 -1
- package/dist/contentful/live-preview-renderer/index.js +1 -1
- package/dist/contentful/renderer/index.js +1 -1
- package/dist/{index-CVHmFLr5.js → index-7A9g1r9L.js} +1 -2
- package/dist/index.js +2 -2
- package/dist/{mapContentToComponents-CbXgjoiV.js → mapContentToComponents-CnKuM6pW.js} +0 -1
- package/package.json +1 -1
- package/dist/index-DR3e19BE.js +0 -7
|
@@ -2,18 +2,15 @@
|
|
|
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-DR3e19BE.js";
|
|
6
5
|
import { D as DemoBoxStyled } from "../../styled-CW4e5Qa3.js";
|
|
7
6
|
const heading = {
|
|
8
7
|
component: "Heading",
|
|
9
8
|
children: "Child component",
|
|
10
|
-
size: textHeadingXs
|
|
11
|
-
uid: getUid()
|
|
9
|
+
size: textHeadingXs
|
|
12
10
|
};
|
|
13
11
|
const richText = {
|
|
14
12
|
component: "RichText",
|
|
15
|
-
html: "<p>This is a placeholder.</p>"
|
|
16
|
-
uid: getUid()
|
|
13
|
+
html: "<p>This is a placeholder.</p>"
|
|
17
14
|
};
|
|
18
15
|
const DemoBox = (props) => /* @__PURE__ */ jsx(DemoBoxStyled, { ...props, children: /* @__PURE__ */ jsx(IconSnippet, { size: "sm", icon: {
|
|
19
16
|
name: "Sync"
|
|
@@ -6,7 +6,7 @@ import Body, { bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
|
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import Link from "../Link/index.js";
|
|
8
8
|
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-C8lpS44n.js";
|
|
9
|
-
import { R as RichText } from "../../index-
|
|
9
|
+
import { R as RichText } from "../../index-7A9g1r9L.js";
|
|
10
10
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
11
11
|
import { b as textHeadingSm } from "../../HeadingSize-CfCRn3Lh.js";
|
|
12
12
|
import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
@@ -23,7 +23,6 @@ import { a as LinkStyled } from "../../index-R87ALCWk.js";
|
|
|
23
23
|
import "../../hooks/useLinkComponent/index.js";
|
|
24
24
|
import "../InlineLink/index.js";
|
|
25
25
|
import "../../styled-DJWrbsIZ.js";
|
|
26
|
-
import "uuid";
|
|
27
26
|
import styled from "styled-components";
|
|
28
27
|
import Card from "../Card/index.js";
|
|
29
28
|
import Image, { aspectRatio16_9, aspectRatio1_1 } from "../Image/index.js";
|
|
@@ -6,7 +6,7 @@ import { d as iconSizeLg, g as iconSize3xl, b as iconSizeSm } from "../../props-
|
|
|
6
6
|
import "../../styled-RnVr222F.js";
|
|
7
7
|
import InlineLink from "../InlineLink/index.js";
|
|
8
8
|
import Link from "../Link/index.js";
|
|
9
|
-
import { R as RichText } from "../../index-
|
|
9
|
+
import { R as RichText } from "../../index-7A9g1r9L.js";
|
|
10
10
|
import { d as divTagName } from "../../tags-38kBhOn6.js";
|
|
11
11
|
import { c as spacingSm, a as spacingMd, s as spacingNone, b as spacingXs } from "../../Spacing-BMQelJYr.js";
|
|
12
12
|
import styled from "styled-components";
|
|
@@ -5,11 +5,10 @@ import Button from "../Button/index.js";
|
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import { P as Price, b as priceSizeSm } from "../../index-C8lpS44n.js";
|
|
8
|
-
import { R as RichText } from "../../index-
|
|
8
|
+
import { R as RichText } from "../../index-7A9g1r9L.js";
|
|
9
9
|
import { b as fontWeightLight } from "../../FontWeight-C2pGs7aR.js";
|
|
10
10
|
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
11
11
|
import { a as spacingMd, c as spacingSm, d as spacingXl, b as spacingXs, e as spacing2Xs, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
12
|
-
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
13
12
|
import styled from "styled-components";
|
|
14
13
|
import Badge from "../Badge/index.js";
|
|
15
14
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
@@ -214,7 +213,7 @@ const ImageHeader = ({
|
|
|
214
213
|
theme,
|
|
215
214
|
...props
|
|
216
215
|
}) => {
|
|
217
|
-
const headingId = `heading-${
|
|
216
|
+
const headingId = `heading-${props.uid}`;
|
|
218
217
|
const getSubline = (subline2) => {
|
|
219
218
|
if (!subline2) return null;
|
|
220
219
|
const bottomSpacing = {
|
|
@@ -8,7 +8,6 @@ import "../../styled-RnVr222F.js";
|
|
|
8
8
|
import { f as fontWeightRegular } from "../../FontWeight-C2pGs7aR.js";
|
|
9
9
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
10
10
|
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
11
|
-
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
12
11
|
import styled from "styled-components";
|
|
13
12
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
14
13
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
@@ -69,7 +68,7 @@ const InfoBanner = ({
|
|
|
69
68
|
button,
|
|
70
69
|
...props
|
|
71
70
|
}) => {
|
|
72
|
-
const headingId = `heading-${
|
|
71
|
+
const headingId = `heading-${props.uid}`;
|
|
73
72
|
return /* @__PURE__ */ jsxs(InfoBannerContainerStyled, { ...props, appearance, "aria-labelledby": headingId, role: "group", children: [
|
|
74
73
|
icon && /* @__PURE__ */ jsx(Icon, { name: icon, size: iconSizeLg, "aria-hidden": true }),
|
|
75
74
|
/* @__PURE__ */ jsx(Heading, { ...heading, id: headingId, size: textHeadingXs, weight: fontWeightRegular, style: {
|
|
@@ -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-
|
|
6
|
+
import { R as RichText } from "../../index-7A9g1r9L.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
const LegendStyled = styled.legend.withConfig({
|
|
9
9
|
displayName: "LegendStyled",
|
|
@@ -6,14 +6,13 @@ import FlexItem from "../FlexItem/index.js";
|
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import Image, { aspectRatio16_9 } from "../Image/index.js";
|
|
8
8
|
import Link from "../Link/index.js";
|
|
9
|
-
import { R as RichText } from "../../index-
|
|
9
|
+
import { R as RichText } from "../../index-7A9g1r9L.js";
|
|
10
10
|
import YoutubeVideo from "../YoutubeVideo/index.js";
|
|
11
11
|
import { p as pTagName, u as ulTagName, d as divTagName, l as liTagName } from "../../tags-38kBhOn6.js";
|
|
12
12
|
import { f as fontWeightRegular } from "../../FontWeight-C2pGs7aR.js";
|
|
13
13
|
import { b as textHeadingSm, t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
14
14
|
import { a as spacingMd, e as spacing2Xs, c as spacingSm, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
15
15
|
import { u as useViewport } from "../../index-G2mpsxF7.js";
|
|
16
|
-
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
17
16
|
import styled from "styled-components";
|
|
18
17
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
19
18
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -85,8 +84,8 @@ const MediaText = ({
|
|
|
85
84
|
action,
|
|
86
85
|
...props
|
|
87
86
|
}) => {
|
|
88
|
-
const headingId = `heading-${
|
|
89
|
-
const sublineId = `subline-${
|
|
87
|
+
const headingId = `heading-${props.uid}`;
|
|
88
|
+
const sublineId = `subline-${props.uid}`;
|
|
90
89
|
const viewport2 = useViewport();
|
|
91
90
|
const headingSpacing = subline ? spacing2Xs : spacingMd;
|
|
92
91
|
const hasMultipleActions = Array.isArray(action) && action.length > 1;
|
|
@@ -9,7 +9,7 @@ import { I as IconLoader } from "../../index-BdUFiKHr.js";
|
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
10
|
import "../../styled-RnVr222F.js";
|
|
11
11
|
import Link from "../Link/index.js";
|
|
12
|
-
import { R as RichText } from "../../index-
|
|
12
|
+
import { R as RichText } from "../../index-7A9g1r9L.js";
|
|
13
13
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
14
14
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
15
15
|
import { e as colorBorderCritical, g as colorBorderWarning, d as colorBorderSuccess, k as colorBorderInformation } from "../../BorderColor-CYdSW9dg.js";
|
|
@@ -5,7 +5,7 @@ import AccordionGroup from "../AccordionGroup/index.js";
|
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import FootnoteContent from "../FootnoteContent/index.js";
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
|
-
import { R as RichText } from "../../index-
|
|
8
|
+
import { R as RichText } from "../../index-7A9g1r9L.js";
|
|
9
9
|
import { b as textHeadingSm, c as textHeadingLg } from "../../HeadingSize-CfCRn3Lh.js";
|
|
10
10
|
import { h as h3TagName } from "../../tags-38kBhOn6.js";
|
|
11
11
|
const getFootnoteContent = (content, footnoteContentBacklinkText) => {
|
|
@@ -5,7 +5,7 @@ import Body from "../Body/index.js";
|
|
|
5
5
|
import Divider from "../Divider/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import InlineLink from "../InlineLink/index.js";
|
|
8
|
-
import { a as TextListItem, T as TextList } from "../../index-
|
|
8
|
+
import { a as TextListItem, T as TextList } from "../../index-7A9g1r9L.js";
|
|
9
9
|
const getOptions = (paragraphSpacing = void 0) => {
|
|
10
10
|
const options = {
|
|
11
11
|
renderMark: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { a, T } from "../../index-
|
|
3
|
+
import { a, T } from "../../index-7A9g1r9L.js";
|
|
4
4
|
import "../../tags-38kBhOn6.js";
|
|
5
5
|
import "../../Spacing-BMQelJYr.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
package/dist/contentful/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useContentfulLiveUpdates, ContentfulLivePreviewProvider } from "@contentful/live-preview/react";
|
|
4
|
-
import { m as mapContentToComponents } from "../../mapContentToComponents-
|
|
4
|
+
import { m as mapContentToComponents } from "../../mapContentToComponents-CnKuM6pW.js";
|
|
5
5
|
const BrixLiveRendererComponents = ({
|
|
6
6
|
data
|
|
7
7
|
}) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import LivePreviewRenderer from "../live-preview-renderer/index.js";
|
|
4
|
-
import { m as mapContentToComponents } from "../../mapContentToComponents-
|
|
4
|
+
import { m as mapContentToComponents } from "../../mapContentToComponents-CnKuM6pW.js";
|
|
5
5
|
const Renderer = ({
|
|
6
6
|
content,
|
|
7
7
|
isDraftMode
|
|
@@ -11,7 +11,6 @@ import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFro
|
|
|
11
11
|
import { T as TextListItemStyled, a as TextListStyled } from "./styled-DJWrbsIZ.js";
|
|
12
12
|
import { t as textHeadingXs, b as textHeadingSm, a as textHeadingMd, c as textHeadingLg, d as textHeadingXl } from "./HeadingSize-CfCRn3Lh.js";
|
|
13
13
|
import { a as textBodySm } from "./TextBodySize-BcZR9mh2.js";
|
|
14
|
-
import { g as getUid } from "./index-DR3e19BE.js";
|
|
15
14
|
const mapSizeToTag = {
|
|
16
15
|
h1: textHeadingXl,
|
|
17
16
|
h2: textHeadingLg,
|
|
@@ -60,7 +59,7 @@ const getOptions = (paragraphSpacing, additionalProps = {}) => {
|
|
|
60
59
|
const href = domNode.attribs.href;
|
|
61
60
|
const isAnchor = href.indexOf("#") === 0;
|
|
62
61
|
if (!isNaN(isNumber) && isAnchor) {
|
|
63
|
-
return /* @__PURE__ */ jsx(FootnoteLink, { uid:
|
|
62
|
+
return /* @__PURE__ */ jsx(FootnoteLink, { uid: `${uid}`, contentUid: href.replace("#", ""), screenReaderLabel: "Details zur Fußnote", children: linkLabel });
|
|
64
63
|
}
|
|
65
64
|
return /* @__PURE__ */ jsx(InlineLink, { ...additionalProps.a, href: domNode.attribs.href, children: domToReact(domNode.children, options) });
|
|
66
65
|
}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { default as default2, YoutubeVideoIframeStyled, YoutubeVideoStyled } fro
|
|
|
2
2
|
import { default as default3 } from "./components/Tray/index.js";
|
|
3
3
|
import { default as default4 } from "./components/TimeInput/index.js";
|
|
4
4
|
import { default as default5 } from "./components/Textarea/index.js";
|
|
5
|
-
import { R, T, a } from "./index-
|
|
5
|
+
import { R, T, a } from "./index-7A9g1r9L.js";
|
|
6
6
|
import { P, T as T2, c, g, f, p, a as a2, e, d, b } from "./index-C8lpS44n.js";
|
|
7
7
|
import { PanelStyled, default as default6, TabGroupContainerStyled, TabGroupIndicatorStyled, TabGroupTabsScrollableContainerStyled, TabGroupTabsStyled, TabLabelStyled, TabStyled, iconPositionLeft, iconPositionTop, tabGroupWidthAuto, tabGroupWidthFull } from "./components/TabGroup/index.js";
|
|
8
8
|
import { default as default7 } from "./components/Switch/index.js";
|
|
@@ -110,7 +110,7 @@ import { useForcedColors } from "./hooks/useForcedColors/index.js";
|
|
|
110
110
|
import { useFocusWithin } from "./hooks/useFocusWithin/index.js";
|
|
111
111
|
import "react/jsx-runtime";
|
|
112
112
|
import "@contentful/live-preview/react";
|
|
113
|
-
import { L as L2 } from "./mapContentToComponents-
|
|
113
|
+
import { L as L2 } from "./mapContentToComponents-CnKuM6pW.js";
|
|
114
114
|
import { a as a4, l as l2 } from "./styled-BlHKbHF4.js";
|
|
115
115
|
import { a as a5, l as l3 } from "./styled-BM1Yo9eD.js";
|
|
116
116
|
import { a as a6, i as i2 } from "./props-DDpgcryb.js";
|
|
@@ -26,7 +26,6 @@ import { l as linkListVariantRow, a as linkListVariantColumn } from "./styled-Bl
|
|
|
26
26
|
import "./styled-DOK4C5Ml.js";
|
|
27
27
|
import "./styled-D8a-ap4J.js";
|
|
28
28
|
import "./components/InlineLink/index.js";
|
|
29
|
-
import "uuid";
|
|
30
29
|
import "./styled-DJWrbsIZ.js";
|
|
31
30
|
const validateLegibleContent = (check) => {
|
|
32
31
|
var _a, _b, _c, _d;
|
package/package.json
CHANGED