@vodafone_de/brix-components 7.1.5 → 7.1.7
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/TableHead-C9Nyap9H.js +109 -0
- package/dist/TableWrapper-BlScbDc6.js +25 -0
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/DiscoveryCard/index.js +5 -4
- package/dist/components/DiscoveryCardGroup/index.js +1 -1
- package/dist/components/FilterGroup/index.js +1 -1
- package/dist/components/FootnoteLink/index.js +3 -4
- package/dist/components/IconSnippet/index.js +1 -1
- package/dist/components/ImageHeader/index.js +2 -2
- package/dist/components/Legend/index.js +2 -12
- package/dist/components/Link/getLinkIcon.d.ts +2 -2
- package/dist/components/Link/index.js +5 -4
- package/dist/components/Link/props.d.ts +19 -7
- package/dist/components/Link/styled.d.ts +3 -3
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkAsButton/props.d.ts +2 -2
- package/dist/components/LinkList/index.js +1 -1
- package/dist/components/LinkListItem/index.js +2 -2
- package/dist/components/LoadingSpinner/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/PickerGroup/index.js +1 -1
- package/dist/components/Price/index.js +2 -2
- package/dist/components/ProductCard/index.js +1 -1
- package/dist/components/Rating/index.js +10 -9
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +1 -1
- package/dist/components/ScreenreaderOnly/index.js +14 -3
- package/dist/components/Table/TableContext.d.ts +12 -0
- package/dist/components/Table/components/TableBody.d.ts +4 -0
- package/dist/components/Table/components/TableCell.d.ts +4 -0
- package/dist/components/Table/components/TableFoot.d.ts +4 -0
- package/dist/components/Table/components/TableHead.d.ts +7 -0
- package/dist/components/Table/components/TableWrapper.d.ts +4 -0
- package/dist/components/Table/index.d.ts +8 -0
- package/dist/components/Table/index.js +13 -0
- package/dist/components/Table/props.d.ts +30 -0
- package/dist/components/Table/styled.d.ts +6 -0
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TextList/index.js +1 -1
- package/dist/contentful/index.js +3 -2
- 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/foundations/types/Appearance.d.ts +6 -0
- package/dist/{index-7A9g1r9L.js → index-B5p4bosD.js} +72 -1
- package/dist/{index-BjtnAuPr.js → index-C69TqGKE.js} +1 -1
- package/dist/{index-C69FNo1a.js → index-M27FMM9r.js} +44 -36
- package/dist/index.d.ts +2 -0
- package/dist/index.js +172 -162
- package/dist/{mapContentToComponents-wTK3ndvI.js → mapContentToComponents-DRp1r1ht.js} +3 -2
- package/dist/screenreaderOnly-Dv2v6MAr.js +11 -0
- package/dist/styled-CH1kr8ZR.js +14 -0
- package/dist/{styled-BM1Yo9eD.js → styled-SllFJc7o.js} +6 -2
- package/package.json +1 -1
- package/dist/index-B2VrT4fo.js +0 -24
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { v as viewport } from "./index-Ck2bCrhT.js";
|
|
5
|
+
import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
|
|
6
|
+
import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|
|
7
|
+
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
8
|
+
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
9
|
+
import { f as colorBorderSubtle, a as colorBorderNeutral } from "./BorderColor-CYdSW9dg.js";
|
|
10
|
+
import { a as fontWeightBold, f as fontWeightRegular } from "./FontWeight-C2pGs7aR.js";
|
|
11
|
+
import { c as spacingSm } from "./Spacing-BMQelJYr.js";
|
|
12
|
+
import { a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
13
|
+
const TableWrapperDiv = styled.div.withConfig({
|
|
14
|
+
displayName: "TableWrapperDiv",
|
|
15
|
+
componentId: "sc-wxnzfr-0"
|
|
16
|
+
})({
|
|
17
|
+
overflowX: "auto"
|
|
18
|
+
});
|
|
19
|
+
const TableStyled = styled.table.withConfig({
|
|
20
|
+
displayName: "TableStyled",
|
|
21
|
+
componentId: "sc-wxnzfr-1"
|
|
22
|
+
})({
|
|
23
|
+
width: "100%",
|
|
24
|
+
overflow: "auto"
|
|
25
|
+
});
|
|
26
|
+
const cellAlign = {
|
|
27
|
+
left: "left",
|
|
28
|
+
right: "right"
|
|
29
|
+
};
|
|
30
|
+
const TableCellStyled = styled.td.withConfig({
|
|
31
|
+
displayName: "TableCellStyled",
|
|
32
|
+
componentId: "sc-wxnzfr-2"
|
|
33
|
+
})(({
|
|
34
|
+
align,
|
|
35
|
+
as
|
|
36
|
+
}) => ({
|
|
37
|
+
padding: `${getSpacing(spacingSm)}`,
|
|
38
|
+
textAlign: cellAlign[align],
|
|
39
|
+
color: getTextColor(colorTextNeutral),
|
|
40
|
+
borderBottom: `1px solid ${as === "th" ? getBorderColor(colorBorderNeutral) : getBorderColor(colorBorderSubtle)}`,
|
|
41
|
+
fontWeight: as === "th" ? getFontWeight(fontWeightBold) : getFontWeight(fontWeightRegular),
|
|
42
|
+
minWidth: 180,
|
|
43
|
+
wordBreak: "break-word",
|
|
44
|
+
whiteSpace: "normal",
|
|
45
|
+
overflowWrap: "break-word",
|
|
46
|
+
...viewport.lg({
|
|
47
|
+
minWidth: 248
|
|
48
|
+
}),
|
|
49
|
+
// Style for tfoot cells
|
|
50
|
+
"tfoot &": {
|
|
51
|
+
borderBottom: `1px solid ${getBorderColor(colorBorderSubtle)}`,
|
|
52
|
+
fontWeight: getFontWeight(fontWeightBold)
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
const TableCell = ({
|
|
56
|
+
children,
|
|
57
|
+
align = "left",
|
|
58
|
+
colSpan,
|
|
59
|
+
as = "td",
|
|
60
|
+
scope,
|
|
61
|
+
...rest
|
|
62
|
+
}) => {
|
|
63
|
+
return /* @__PURE__ */ jsx(TableCellStyled, { as, align, colSpan, scope, ...rest, children });
|
|
64
|
+
};
|
|
65
|
+
const TableContext = createContext({});
|
|
66
|
+
const TableProvider = ({
|
|
67
|
+
columns,
|
|
68
|
+
children
|
|
69
|
+
}) => /* @__PURE__ */ jsx(TableContext.Provider, { value: {
|
|
70
|
+
columns
|
|
71
|
+
}, children });
|
|
72
|
+
const TableBody = ({
|
|
73
|
+
rows,
|
|
74
|
+
sideHeader
|
|
75
|
+
}) => {
|
|
76
|
+
const {
|
|
77
|
+
columns
|
|
78
|
+
} = useContext(TableContext);
|
|
79
|
+
return /* @__PURE__ */ jsx("tbody", { children: rows.map((row) => /* @__PURE__ */ jsx("tr", { children: row.cells.map((cell, i) => {
|
|
80
|
+
var _a;
|
|
81
|
+
const align = ((_a = columns == null ? void 0 : columns[i]) == null ? void 0 : _a.align) || "left";
|
|
82
|
+
if (sideHeader && i === 0) {
|
|
83
|
+
return /* @__PURE__ */ jsx(TableCell, { as: "th", scope: "row", align, children: cell.children }, row.key + "-" + i);
|
|
84
|
+
}
|
|
85
|
+
return /* @__PURE__ */ jsx(TableCell, { align, children: cell.children }, row.key + "-" + i);
|
|
86
|
+
}) }, row.key)) });
|
|
87
|
+
};
|
|
88
|
+
TableBody.displayName = "TableBody";
|
|
89
|
+
const TableFoot = ({
|
|
90
|
+
cells
|
|
91
|
+
}) => /* @__PURE__ */ jsx("tfoot", { children: /* @__PURE__ */ jsx("tr", { children: cells.map((cell, i) => /* @__PURE__ */ jsx(TableCell, { ...cell, as: "td", children: cell.children }, "foot-" + i)) }) });
|
|
92
|
+
TableFoot.displayName = "TableFoot";
|
|
93
|
+
const TableHead = ({
|
|
94
|
+
columns
|
|
95
|
+
}) => {
|
|
96
|
+
if (!columns) return null;
|
|
97
|
+
return /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: columns.map((col) => /* @__PURE__ */ jsx(TableCell, { align: col.align, as: "th", scope: "col", children: col.label }, col.key)) }) });
|
|
98
|
+
};
|
|
99
|
+
TableHead.displayName = "TableHead";
|
|
100
|
+
export {
|
|
101
|
+
TableHead as T,
|
|
102
|
+
TableBody as a,
|
|
103
|
+
TableFoot as b,
|
|
104
|
+
TableCell as c,
|
|
105
|
+
TableContext as d,
|
|
106
|
+
TableProvider as e,
|
|
107
|
+
TableWrapperDiv as f,
|
|
108
|
+
TableStyled as g
|
|
109
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Children, isValidElement } from "react";
|
|
3
|
+
import { e as TableProvider, f as TableWrapperDiv, g as TableStyled } from "./TableHead-C9Nyap9H.js";
|
|
4
|
+
const allowedTypes = ["TableHead", "TableBody", "TableFoot"];
|
|
5
|
+
const TableWrapper = ({
|
|
6
|
+
children,
|
|
7
|
+
...rest
|
|
8
|
+
}) => {
|
|
9
|
+
let columns = void 0;
|
|
10
|
+
Children.forEach(children, (child) => {
|
|
11
|
+
if (isValidElement(child) && typeof child.type === "function" && child.type.displayName === "TableHead") {
|
|
12
|
+
const head = child;
|
|
13
|
+
columns = head.props.columns;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const filteredChildren = Children.map(children, (child) => {
|
|
17
|
+
if (!isValidElement(child)) return null;
|
|
18
|
+
const typeName = typeof child.type === "function" && child.type.displayName;
|
|
19
|
+
return allowedTypes.includes(typeName || "") ? child : null;
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ jsx(TableProvider, { columns, children: /* @__PURE__ */ jsx(TableWrapperDiv, { ...rest, children: /* @__PURE__ */ jsx(TableStyled, { role: "table", children: filteredChildren }) }) });
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
TableWrapper as T
|
|
25
|
+
};
|
|
@@ -18,7 +18,7 @@ import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
|
|
|
18
18
|
import { a as colorObjectBrand, g as colorObjectUnselected } from "../../ObjectColor-0RAzLGI5.js";
|
|
19
19
|
import { a as filterProps } from "../../filterProps-CTn92eZw.js";
|
|
20
20
|
import IconButton from "../IconButton/index.js";
|
|
21
|
-
import
|
|
21
|
+
import ScreenreaderOnly from "../ScreenreaderOnly/index.js";
|
|
22
22
|
const getItems = (items, loop) => {
|
|
23
23
|
const normalizedItems = [...items].map((item, index) => ({
|
|
24
24
|
...item,
|
|
@@ -5,8 +5,8 @@ import Badge from "../Badge/index.js";
|
|
|
5
5
|
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
|
-
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-
|
|
9
|
-
import { R as RichText } from "../../index-
|
|
8
|
+
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-C69TqGKE.js";
|
|
9
|
+
import { R as RichText } from "../../index-B5p4bosD.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";
|
|
@@ -15,13 +15,14 @@ import "../../NotificationErrorIcon-DMnAJgPN.js";
|
|
|
15
15
|
import "../../styled-RnVr222F.js";
|
|
16
16
|
import "html-react-parser";
|
|
17
17
|
import { b as BadgeStyled } from "../../styled-B-_SmQSA.js";
|
|
18
|
-
import "
|
|
18
|
+
import "../ScreenreaderOnly/index.js";
|
|
19
19
|
import "../FootnoteLink/index.js";
|
|
20
20
|
import "../../styled-VAsSnb5y.js";
|
|
21
21
|
import "../../styled-q7r_5eaz.js";
|
|
22
|
-
import { a as LinkStyled } from "../../index-
|
|
22
|
+
import { a as LinkStyled } from "../../index-M27FMM9r.js";
|
|
23
23
|
import "../../hooks/useLinkComponent/index.js";
|
|
24
24
|
import "../InlineLink/index.js";
|
|
25
|
+
import "../../TableHead-C9Nyap9H.js";
|
|
25
26
|
import "../../styled-DJWrbsIZ.js";
|
|
26
27
|
import styled from "styled-components";
|
|
27
28
|
import Card from "../Card/index.js";
|
|
@@ -4,7 +4,7 @@ import styled from "styled-components";
|
|
|
4
4
|
import DiscoveryCard, { discoveryCardOrientationVertical } from "../DiscoveryCard/index.js";
|
|
5
5
|
import Grid from "../Grid/index.js";
|
|
6
6
|
import GridItem from "../GridItem/index.js";
|
|
7
|
-
import { a as LinkStyled } from "../../index-
|
|
7
|
+
import { a as LinkStyled } from "../../index-M27FMM9r.js";
|
|
8
8
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
9
9
|
import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
10
10
|
const DiscoveryCardGroupGridStyled = styled(Grid).withConfig({
|
|
@@ -6,7 +6,7 @@ import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
|
6
6
|
import "../../styled-RnVr222F.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
9
|
-
import { s as screenreaderOnly } from "../../
|
|
9
|
+
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
10
10
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
11
11
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
12
12
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import ScreenreaderOnly from "../ScreenreaderOnly/index.js";
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import InlineLink from "../InlineLink/index.js";
|
|
6
6
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
@@ -13,13 +13,12 @@ const FootnoteLinkStyled = styled(InlineLink).withConfig({
|
|
|
13
13
|
verticalAlign: "top",
|
|
14
14
|
fontSize: "0.7em",
|
|
15
15
|
fontWeight: getFontWeight("bold"),
|
|
16
|
-
paddingLeft: getSpacing(spacing2Xs),
|
|
17
|
-
paddingRight: getSpacing(spacing2Xs),
|
|
18
16
|
textDecoration: "none",
|
|
19
17
|
display: "inline-block",
|
|
20
18
|
"& a": {
|
|
21
19
|
textDecoration: "underline",
|
|
22
|
-
|
|
20
|
+
paddingLeft: getSpacing(spacing2Xs),
|
|
21
|
+
paddingRight: getSpacing(spacing2Xs),
|
|
23
22
|
verticalAlign: "baseline",
|
|
24
23
|
fontSize: "inherit"
|
|
25
24
|
}
|
|
@@ -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-B5p4bosD.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";
|
|
@@ -4,8 +4,8 @@ import Body from "../Body/index.js";
|
|
|
4
4
|
import Button from "../Button/index.js";
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
|
-
import { P as Price, b as priceSizeSm } from "../../index-
|
|
8
|
-
import { R as RichText } from "../../index-
|
|
7
|
+
import { P as Price, b as priceSizeSm } from "../../index-C69TqGKE.js";
|
|
8
|
+
import { R as RichText } from "../../index-B5p4bosD.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";
|
|
@@ -3,18 +3,8 @@ 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-
|
|
7
|
-
import
|
|
8
|
-
const LegendStyled = styled.legend.withConfig({
|
|
9
|
-
displayName: "LegendStyled",
|
|
10
|
-
componentId: "sc-1vyrzt5-0"
|
|
11
|
-
})({
|
|
12
|
-
/**
|
|
13
|
-
* minimal hack to disable the wired position of a legend in a fieldset
|
|
14
|
-
*/
|
|
15
|
-
all: "unset",
|
|
16
|
-
width: "100%"
|
|
17
|
-
});
|
|
6
|
+
import { R as RichText } from "../../index-B5p4bosD.js";
|
|
7
|
+
import { L as LegendStyled } from "../../styled-CH1kr8ZR.js";
|
|
18
8
|
const Legend = ({
|
|
19
9
|
contents,
|
|
20
10
|
...props
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getLinkIcon: (icon:
|
|
2
|
+
import { LinkProps } from './props';
|
|
3
|
+
export declare const getLinkIcon: (icon: LinkProps["icon"], iconPosition: LinkProps["iconPosition"]) => ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
+
import { L as LinkAsButton, p as primaryAppearance, a as LinkStyled, g as getLinkIcon } from "../../index-M27FMM9r.js";
|
|
4
4
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
5
5
|
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CTn92eZw.js";
|
|
6
6
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
@@ -11,15 +11,16 @@ const isLinkAsButtonProp = (props) => {
|
|
|
11
11
|
const Link = ({
|
|
12
12
|
className,
|
|
13
13
|
bottomSpacing,
|
|
14
|
+
appearance = primaryAppearance,
|
|
14
15
|
...props
|
|
15
16
|
}) => {
|
|
16
17
|
if (isLinkAsButtonProp(props)) {
|
|
17
|
-
return /* @__PURE__ */ jsx(LinkAsButton, { className, bottomSpacing, ...props, children: props.children });
|
|
18
|
+
return /* @__PURE__ */ jsx(LinkAsButton, { className, bottomSpacing, appearance, ...props, children: props.children });
|
|
18
19
|
}
|
|
19
20
|
const LinkComponent = useLinkComponent();
|
|
20
|
-
return /* @__PURE__ */ jsx(LinkStyled, { className, bottomSpacing, children: /* @__PURE__ */ jsxs(LinkComponent, { ...sanitizeLinkProps(filterPropsForUnstyledComponent(props)), children: [
|
|
21
|
+
return /* @__PURE__ */ jsx(LinkStyled, { className, bottomSpacing, appearance, children: /* @__PURE__ */ jsxs(LinkComponent, { ...sanitizeLinkProps(filterPropsForUnstyledComponent(props)), children: [
|
|
21
22
|
renderInlineRichTextFromOpenText(props.children),
|
|
22
|
-
getLinkIcon(props.icon)
|
|
23
|
+
getLinkIcon(props.icon, props.iconPosition)
|
|
23
24
|
] }) });
|
|
24
25
|
};
|
|
25
26
|
export {
|
|
@@ -1,17 +1,29 @@
|
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
1
2
|
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
-
import {
|
|
4
|
-
|
|
4
|
+
import { primaryAppearance, secondaryAppearance } from '../../foundations/types/Appearance';
|
|
5
|
+
import { leftPosition, rightPosition } from '../../foundations/types/PositionType';
|
|
6
|
+
export type LinkAppearance = typeof primaryAppearance | typeof secondaryAppearance;
|
|
7
|
+
export type LinkIconPosition = typeof leftPosition | typeof rightPosition;
|
|
8
|
+
export interface LinkSharedProps {
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
10
|
+
* Name of the icon to be used
|
|
7
11
|
*/
|
|
8
|
-
icon:
|
|
12
|
+
icon: IconName;
|
|
13
|
+
/**
|
|
14
|
+
* Position of the icon in relation to text
|
|
15
|
+
*/
|
|
16
|
+
iconPosition: LinkIconPosition;
|
|
17
|
+
/**
|
|
18
|
+
* Different appearances for emphasis
|
|
19
|
+
*/
|
|
20
|
+
appearance?: LinkAppearance;
|
|
9
21
|
/**
|
|
10
22
|
* Pin component's name from string to the concrete name
|
|
11
23
|
*/
|
|
12
24
|
component?: 'Link' | 'LinkAsButton';
|
|
13
25
|
}
|
|
14
|
-
export interface LinkProps extends
|
|
26
|
+
export interface LinkProps extends LinkSharedProps, PatternProps, AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
15
27
|
/**
|
|
16
28
|
* Link has mandatory children
|
|
17
29
|
*/
|
|
@@ -21,8 +33,8 @@ export interface LinkProps extends LinkedSharedProps, PatternProps, AnchorHTMLAt
|
|
|
21
33
|
*/
|
|
22
34
|
component?: 'Link';
|
|
23
35
|
/**
|
|
24
|
-
* As long as href is given, this pattern is rendered as a
|
|
25
|
-
* if it is left out, then a button is rendered
|
|
36
|
+
* As long as href is given, this pattern is rendered as an <a> and
|
|
37
|
+
* if it is left out, then a <button> is rendered
|
|
26
38
|
*/
|
|
27
39
|
href: string;
|
|
28
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
|
-
import { LinkProps } from './props';
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const LinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<LinkProps, "bottomSpacing">>> & string;
|
|
2
|
+
import { LinkProps, LinkSharedProps } from './props';
|
|
3
|
+
export declare const getLinkStyles: (appearance: LinkSharedProps["appearance"]) => CSSObject;
|
|
4
|
+
export declare const LinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<LinkProps, "appearance" | "bottomSpacing">>> & string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LinkSharedProps } from '../Link/props';
|
|
3
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
|
-
export interface LinkAsButtonProps extends
|
|
4
|
+
export interface LinkAsButtonProps extends LinkSharedProps, PatternProps, ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Pin component's name from string to the concrete name
|
|
7
7
|
*/
|
|
@@ -5,7 +5,7 @@ import { u as ulTagName, l as liTagName } from "../../tags-38kBhOn6.js";
|
|
|
5
5
|
import { s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
6
6
|
import { L as LinkListStyled, b as LinkListLiStyled, l as linkListVariantRow } from "../../styled-BlHKbHF4.js";
|
|
7
7
|
import { a } from "../../styled-BlHKbHF4.js";
|
|
8
|
-
import { l as linkListItemVariantVertical, a as linkListItemVariantHorizontal } from "../../styled-
|
|
8
|
+
import { l as linkListItemVariantVertical, a as linkListItemVariantHorizontal } from "../../styled-SllFJc7o.js";
|
|
9
9
|
const LinkList = ({
|
|
10
10
|
items,
|
|
11
11
|
variant,
|
|
@@ -10,8 +10,8 @@ import { s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
|
10
10
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
11
11
|
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CTn92eZw.js";
|
|
12
12
|
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
13
|
-
import { L as LinkListItemElevatedStyled, b as LinkListItemStyled, c as LinkListItemButtonStyled, d as LinkListItemAnchorStyled, e as LinkListItemContentWrapperStyled, a as linkListItemVariantHorizontal, f as LinkListItemContentStyled, g as LinkListItemLabelWrapperStyled, h as LinkListItemVerticalContentStyled, i as LinkListItemChevronStyled, j as LinkListLabelStyled, k as LinkListSuffixStyled } from "../../styled-
|
|
14
|
-
import { l } from "../../styled-
|
|
13
|
+
import { L as LinkListItemElevatedStyled, b as LinkListItemStyled, c as LinkListItemButtonStyled, d as LinkListItemAnchorStyled, e as LinkListItemContentWrapperStyled, a as linkListItemVariantHorizontal, f as LinkListItemContentStyled, g as LinkListItemLabelWrapperStyled, h as LinkListItemVerticalContentStyled, i as LinkListItemChevronStyled, j as LinkListLabelStyled, k as LinkListSuffixStyled } from "../../styled-SllFJc7o.js";
|
|
14
|
+
import { l } from "../../styled-SllFJc7o.js";
|
|
15
15
|
const isLinkListItemAsButtonProp = (props) => {
|
|
16
16
|
return props.href === void 0;
|
|
17
17
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import
|
|
5
|
+
import ScreenreaderOnly from "../ScreenreaderOnly/index.js";
|
|
6
6
|
import { L as LoadingSpinnerSVGStyled, a as LoadingSpinnerPathXsStyled, b as LoadingSpinnerPathOuter3Styled, c as LoadingSpinnerPathOuter2Styled, d as LoadingSpinnerPathOuter1Styled, e as LoadingSpinnerPathCenterStyled, f as LoadingSpinnerContainerStyled, g as LoadingSpinnerContentStyled, h as LoadingSpinnerLabelStyled, i as LoadingSpinnerChildrenStyled } from "../../styled-U9du2n1i.js";
|
|
7
7
|
const LoadingSpinnerSVG = ({
|
|
8
8
|
size = "lg",
|
|
@@ -6,7 +6,7 @@ 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-B5p4bosD.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";
|
|
@@ -9,7 +9,7 @@ import { I as IconLoader } from "../../index-C3dW-7e_.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-B5p4bosD.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-B5p4bosD.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) => {
|
|
@@ -15,7 +15,7 @@ import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
|
15
15
|
import Image, { aspectRatio1_1 } from "../Image/index.js";
|
|
16
16
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
17
17
|
import GridItem from "../GridItem/index.js";
|
|
18
|
-
import { s as screenreaderOnly } from "../../
|
|
18
|
+
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
19
19
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
20
20
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
21
21
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import "
|
|
4
|
-
import { c, P, g, f, p, a, e, d, b } from "../../index-
|
|
3
|
+
import "../ScreenreaderOnly/index.js";
|
|
4
|
+
import { c, P, g, f, p, a, e, d, b } from "../../index-C69TqGKE.js";
|
|
5
5
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
export {
|
|
7
7
|
c as createScreenReaderText,
|
|
@@ -9,7 +9,7 @@ import Image, { aspectRatio1_1 } from "../Image/index.js";
|
|
|
9
9
|
import { d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
10
10
|
import "../../styled-RnVr222F.js";
|
|
11
11
|
import Link from "../Link/index.js";
|
|
12
|
-
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-
|
|
12
|
+
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-C69TqGKE.js";
|
|
13
13
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
14
14
|
import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
|
|
15
15
|
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect, useRef } from "react";
|
|
4
|
-
import Legend from "../Legend/index.js";
|
|
5
4
|
import styled from "styled-components";
|
|
6
5
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
7
6
|
import { a as filterProps } from "../../filterProps-CTn92eZw.js";
|
|
8
|
-
import { s as screenreaderOnly } from "../../
|
|
7
|
+
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
9
8
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
10
9
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
11
10
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -17,10 +16,14 @@ import { c as colorBorderFocus, j as colorBorderSelected, a as colorBorderNeutra
|
|
|
17
16
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
18
17
|
import { d as colorObjectSelected } from "../../ObjectColor-0RAzLGI5.js";
|
|
19
18
|
import { b as spacingXs } from "../../Spacing-BMQelJYr.js";
|
|
20
|
-
|
|
19
|
+
import { L as LegendStyled } from "../../styled-CH1kr8ZR.js";
|
|
20
|
+
const StarSvg = () => {
|
|
21
|
+
return /* @__PURE__ */ jsx(StarSvgStyled, { viewBox: "0 0 26 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M1 9.95223L9.26911 8.58599L12.8296 1L16.6847 8.44108L25 9.48408L19.1147 15.449L20.6911 23.6799L13.199 19.9252L5.85987 23.9682L7.11465 15.6831L1 9.95223Z", fill: "white", stroke: "#7E7E7E", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
22
|
+
};
|
|
23
|
+
const StarSvgStyled = styled.svg.withConfig({
|
|
21
24
|
shouldForwardProp: filterProps(),
|
|
22
|
-
displayName: "
|
|
23
|
-
componentId: "sc-
|
|
25
|
+
displayName: "StarSvgStyled",
|
|
26
|
+
componentId: "sc-iheyat-0"
|
|
24
27
|
})({
|
|
25
28
|
display: "inline-block",
|
|
26
29
|
width: "24px",
|
|
@@ -30,7 +33,6 @@ const StarStyled = styled.svg.withConfig({
|
|
|
30
33
|
height: "30.624px"
|
|
31
34
|
})
|
|
32
35
|
});
|
|
33
|
-
const Star = () => /* @__PURE__ */ jsx(StarStyled, { viewBox: "0 0 26 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M1 9.95223L9.26911 8.58599L12.8296 1L16.6847 8.44108L25 9.48408L19.1147 15.449L20.6911 23.6799L13.199 19.9252L5.85987 23.9682L7.11465 15.6831L1 9.95223Z", fill: "white", stroke: "#7E7E7E", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
34
36
|
const RatingFieldsetStyled = styled.fieldset.withConfig({
|
|
35
37
|
shouldForwardProp: filterProps(),
|
|
36
38
|
displayName: "RatingFieldsetStyled",
|
|
@@ -107,7 +109,6 @@ const Rating = ({
|
|
|
107
109
|
groupName,
|
|
108
110
|
uid,
|
|
109
111
|
component: _component,
|
|
110
|
-
legend,
|
|
111
112
|
...props
|
|
112
113
|
}) => {
|
|
113
114
|
const [internalValue, setInternalValue] = useState(value ?? 0);
|
|
@@ -140,13 +141,13 @@ const Rating = ({
|
|
|
140
141
|
};
|
|
141
142
|
const ref = useRef(null);
|
|
142
143
|
return /* @__PURE__ */ jsxs(RatingFieldsetStyled, { ...props, uid, ref, children: [
|
|
143
|
-
|
|
144
|
+
/* @__PURE__ */ jsx(LegendStyled, { ...props.legend }),
|
|
144
145
|
/* @__PURE__ */ jsx(StarsWrapperStyled, { className, role: "radiogroup", children: [...Array(5)].map((_, index) => {
|
|
145
146
|
const starValue = index + 1;
|
|
146
147
|
const isInHoverRange = hoverValue !== null && starValue <= hoverValue;
|
|
147
148
|
return /* @__PURE__ */ jsxs(StarLabelStyled, { selected: starValue <= internalValue, isInHoverRange, htmlFor: `${uid}-star-${starValue}`, onMouseEnter: () => handleMouseEnter(index), onMouseLeave: handleMouseLeave, "aria-label": `${starValue} von 5 Sternen`, children: [
|
|
148
149
|
/* @__PURE__ */ jsx(HiddenRadioStyled, { type: "radio", id: `${uid}-star-${starValue}`, name: groupName || uid, value: starValue, checked: starValue === internalValue, onChange: handleChange, onClick: () => handleClick(starValue) }),
|
|
149
|
-
/* @__PURE__ */ jsx(
|
|
150
|
+
/* @__PURE__ */ jsx(StarSvg, {})
|
|
150
151
|
] }, `star-${starValue}-${uid}`);
|
|
151
152
|
}) })
|
|
152
153
|
] });
|
|
@@ -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-B5p4bosD.js";
|
|
9
9
|
const getOptions = (paragraphSpacing = void 0) => {
|
|
10
10
|
const options = {
|
|
11
11
|
renderMark: {
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
5
|
+
import { a as filterProps } from "../../filterProps-CTn92eZw.js";
|
|
6
|
+
const ScreenReaderOnlyStyled = styled.span.withConfig({
|
|
7
|
+
shouldForwardProp: filterProps(),
|
|
8
|
+
displayName: "ScreenReaderOnlyStyled",
|
|
9
|
+
componentId: "sc-1r7az4k-0"
|
|
10
|
+
})(screenreaderOnly);
|
|
11
|
+
const ScreenreaderOnly = ({
|
|
12
|
+
children,
|
|
13
|
+
...props
|
|
14
|
+
}) => /* @__PURE__ */ jsx(ScreenReaderOnlyStyled, { ...props, children });
|
|
4
15
|
export {
|
|
5
|
-
|
|
16
|
+
ScreenreaderOnly as default
|
|
6
17
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { TableColumn } from './props';
|
|
3
|
+
export type TableContextType = {
|
|
4
|
+
columns?: TableColumn[];
|
|
5
|
+
};
|
|
6
|
+
export declare const TableContext: import('react').Context<TableContextType>;
|
|
7
|
+
interface TableProviderProps {
|
|
8
|
+
columns?: TableColumn[];
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const TableProvider: FC<TableProviderProps>;
|
|
12
|
+
export {};
|