@vodafone_de/brix-components 7.0.8 → 7.0.9
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/README.md +0 -1
- package/dist/{FontWeight-CR22KTex.js → FontWeight-DEBGHbtO.js} +2 -2
- package/dist/NotificationErrorIcon-DMnAJgPN.js +83 -0
- package/dist/_5gPlusIcon-B_69VW4X.js +19443 -0
- package/dist/components/Accordion/index.js +6 -3
- package/dist/components/Accordion/props.d.ts +1 -1
- package/dist/components/Accordion/styled.d.ts +1 -1
- package/dist/components/AccordionGroup/index.js +1 -1
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Badge/props.d.ts +1 -1
- package/dist/components/Body/index.js +2 -2
- package/dist/components/Body/props.d.ts +1 -1
- package/dist/components/BottomBar/index.js +3 -3
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/styled.d.ts +1 -1
- package/dist/components/ButtonAsLink/index.js +3 -1
- package/dist/components/ButtonAsLink/styled.d.ts +1 -1
- package/dist/components/ButtonGroup/index.js +4 -4
- package/dist/components/ButtonGroup/props.d.ts +1 -1
- package/dist/components/Card/index.js +3 -3
- package/dist/components/Card/props.d.ts +2 -2
- package/dist/components/Carousel/components/CarouselContext.d.ts +2 -3
- package/dist/components/Carousel/components/CarouselNavigation.d.ts +0 -2
- package/dist/components/Carousel/index.js +58 -47
- package/dist/components/Checkbox/index.js +3 -2
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/ColorSwatch/index.js +2 -2
- package/dist/components/ColorSwatchGroup/index.js +4 -4
- package/dist/components/ColorSwatchGroup/props.d.ts +1 -1
- package/dist/components/ConsentMessage/index.js +1 -1
- package/dist/components/ConsentMessage/styled.d.ts +1 -1
- package/dist/components/Container/index.js +3 -2
- package/dist/components/Container/props.d.ts +12 -1
- package/dist/components/DateInput/index.js +4 -2
- package/dist/components/DateInput/styled.d.ts +1 -2
- package/dist/components/DemoBox/index.js +5 -3
- package/dist/components/Dialog/index.js +4 -4
- package/dist/components/Dialog/styled.d.ts +1 -1
- package/dist/components/DiscoveryCard/components/DiscoveryCardLinkedImage.d.ts +1 -1
- package/dist/components/DiscoveryCard/index.js +21 -12
- package/dist/components/DiscoveryCard/props.d.ts +3 -3
- package/dist/components/DiscoveryCard/styled.d.ts +2 -2
- package/dist/components/DiscoveryCardGroup/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Fieldset/index.js +2 -2
- package/dist/components/FilterGroup/index.js +4 -3
- package/dist/components/FilterGroup/props.d.ts +1 -1
- package/dist/components/FilterGroup/styled.d.ts +1 -1
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/FlexItem/index.js +1 -1
- package/dist/components/FootnoteContent/index.js +1 -1
- package/dist/components/FootnoteLink/index.js +10 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/FormHelperStatusIcon/index.d.ts +1 -1
- package/dist/components/FormHelperStatusIcon/index.js +2 -1
- package/dist/components/FormHelperStatusIcon/styled.d.ts +1 -1
- package/dist/components/GoogleMap/components/Map/props.d.ts +1 -1
- package/dist/components/GoogleMap/index.js +2 -2
- package/dist/components/GoogleMap/styled.d.ts +1 -1
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/Grid/props.d.ts +3 -3
- package/dist/components/GridItem/index.js +2 -2
- package/dist/components/GridItem/props.d.ts +2 -2
- package/dist/components/Heading/index.js +3 -10
- package/dist/components/HifiIcon/index.js +1 -1
- package/dist/components/HifiIcon/props.d.ts +2 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.js +1 -3
- package/dist/components/Icon/props.d.ts +1 -2
- package/dist/components/IconButton/index.js +4 -3
- package/dist/components/IconButton/props.d.ts +1 -1
- package/dist/components/IconLoader/index.d.ts +9 -0
- package/dist/components/IconLoader/index.js +655 -0
- package/dist/components/IconLoader/props.d.ts +23 -0
- package/dist/components/IconSnippet/index.js +10 -11
- package/dist/components/IconSnippet/props.d.ts +2 -2
- package/dist/components/IconSnippet/styled.d.ts +2 -2
- package/dist/components/IconSnippetList/index.js +1 -1
- package/dist/components/Image/index.js +1 -1
- package/dist/components/ImageHeader/index.js +7 -7
- package/dist/components/ImageHeader/props.d.ts +3 -3
- package/dist/components/ImageHeader/styled.d.ts +4 -4
- package/dist/components/InlineIcon/index.d.ts +6 -0
- package/dist/components/InlineIcon/index.js +35 -0
- package/dist/components/InlineIcon/props.d.ts +42 -0
- package/dist/components/InlineIcon/styled.d.ts +4 -0
- package/dist/components/InlineLink/index.js +19 -7
- package/dist/components/InlineLink/styled.d.ts +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.js +8 -3
- package/dist/components/Link/styled.d.ts +1 -1
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkList/index.js +4 -4
- package/dist/components/LinkListItem/index.js +40 -28
- package/dist/components/LinkListItem/props.d.ts +2 -2
- package/dist/components/LinkListItem/styled.d.ts +974 -3
- package/dist/components/LoadingSpinner/index.js +12 -5
- package/dist/components/MediaText/index.d.ts +5 -0
- package/dist/components/MediaText/index.js +121 -0
- package/dist/components/MediaText/props.d.ts +42 -0
- package/dist/components/MediaText/styled.d.ts +4 -0
- package/dist/components/Notification/index.js +4 -3
- package/dist/components/Notification/notificationStatusVariants.d.ts +1 -1
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/components/Picker/props.d.ts +6 -4
- package/dist/components/PickerGroup/components/PickerElementIcon/index.d.ts +1 -1
- package/dist/components/PickerGroup/components/PickerElementIcon/styled.d.ts +1 -1
- package/dist/components/PickerGroup/index.js +6 -5
- package/dist/components/Price/index.js +2 -4
- package/dist/components/Price/props.d.ts +1 -9
- package/dist/components/Price/styled.d.ts +1 -1
- package/dist/components/ProductCard/index.js +8 -8
- package/dist/components/ProductCard/styled.d.ts +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Rating/assets/StarSVG.d.ts +3 -0
- package/dist/components/Rating/index.d.ts +6 -0
- package/dist/components/Rating/index.js +153 -0
- package/dist/components/Rating/props.d.ts +22 -0
- package/dist/components/Rating/styled.d.ts +6 -0
- package/dist/components/ResponsiveImage/index.js +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/ScreenreaderOnly/index.js +1 -1
- package/dist/components/SearchInput/index.d.ts +2 -1
- package/dist/components/SearchInput/index.js +27 -26
- package/dist/components/SearchInput/props.d.ts +2 -1
- package/dist/components/SearchInput/styled.d.ts +3 -6
- package/dist/components/SelectInput/index.js +4 -2
- package/dist/components/Stepper/index.js +3 -3
- package/dist/components/SuggestInput/index.js +5 -4
- package/dist/components/SuggestInput/props.d.ts +1 -1
- package/dist/components/SuggestInput/styled.d.ts +2 -2
- package/dist/components/Switch/index.js +4 -3
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TextList/index.js +2 -2
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/styled.d.ts +1 -1
- package/dist/components/TimeInput/index.js +5 -3
- package/dist/components/TimeInput/styled.d.ts +1 -4
- package/dist/components/Tray/index.js +2 -2
- package/dist/components/Tray/props.d.ts +1 -1
- package/dist/components/YoutubeVideo/index.js +1 -2
- package/dist/components/YoutubeVideo/props.d.ts +1 -1
- package/dist/filterProps-CBnuV0LI.js +17 -0
- package/dist/foundations/GlobalStyle/index.js +2 -2
- package/dist/foundations/tags.d.ts +2 -0
- package/dist/foundations/types/PositionedIconInterface.d.ts +1 -1
- package/dist/foundations/types/SystemIconWithPosition.d.ts +1 -1
- package/dist/hooks/useLinkComponent/index.d.ts +11 -0
- package/dist/hooks/useLinkComponent/index.js +11 -0
- package/dist/hooks/useViewport/index.js +5 -22
- package/dist/icons/index.js +323 -340
- package/dist/{index-BeSd-V81.js → index-9io8adeQ.js} +3 -3
- package/dist/{index-ZHkR70j3.js → index-BdPmdY9v.js} +4 -3
- package/dist/{index-C5GzK6_0.js → index-Cqh8IRpl.js} +18 -8
- package/dist/index-Cs0Hw0dj.js +25 -0
- package/dist/{index-DQhtQZ85.js → index-GwyCjtti.js} +1 -1
- package/dist/{index-aUJfXBUI.js → index-TImInHXt.js} +5 -26
- package/dist/{index-C7meHOM4.js → index-hMlQuoyx.js} +36 -14
- package/dist/index.d.ts +9 -0
- package/dist/index.js +162 -133
- package/dist/{styled-ZpQohvyx.js → styled-BIc9Gu0G.js} +1 -1
- package/dist/{styled-BSqC5P9h.js → styled-C4eI47I1.js} +4 -4
- package/dist/{styled-DMUiOi24.js → styled-CFTspqJH.js} +2 -2
- package/dist/{styled-B0YKfXTz.js → styled-CPUu8mvT.js} +1 -1
- package/dist/{styled-03irSJOQ.js → styled-Cep52hpR.js} +1 -1
- package/dist/{styled-ODPFCF1a.js → styled-Cq-UMAjp.js} +1 -1
- package/dist/{styled-CYugcGtx.js → styled-DINwm57V.js} +1 -1
- package/dist/styled-DPHfwWsx.js +78 -0
- package/dist/{styled-Cqp2oSjW.js → styled-a-XazLSM.js} +3 -3
- package/dist/{tags-DI6H1biK.js → tags-D0ExIPLD.js} +4 -2
- package/package.json +1 -1
- package/dist/components/Carousel/utils/useScrollSpy.d.ts +0 -2
- package/dist/filterProps-Cewck8OH.js +0 -13
- package/dist/index-Cbojl4_Q.js +0 -7134
|
@@ -5,7 +5,7 @@ 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
|
-
import {
|
|
8
|
+
import { g as headingHtmlTags, o as olTagName, f as strongTagName, i as supTagName, u as ulTagName } from "./tags-D0ExIPLD.js";
|
|
9
9
|
import { s as spacingMd, b as spacingNone } from "./Spacing-D0HQH9YJ.js";
|
|
10
10
|
import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
11
11
|
import styled from "styled-components";
|
|
@@ -13,9 +13,9 @@ import { getBodySize } from "./foundations/token/getBodySize/index.js";
|
|
|
13
13
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
14
14
|
import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|
|
15
15
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
16
|
-
import {
|
|
16
|
+
import { a as fontWeightRegular } from "./FontWeight-DEBGHbtO.js";
|
|
17
17
|
import { a as textBodySm, t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
|
|
18
|
-
import {
|
|
18
|
+
import { a as filterProps } from "./filterProps-CBnuV0LI.js";
|
|
19
19
|
import { t as textHeadingXs, b as textHeadingSm, a as textHeadingMd, c as textHeadingLg, d as textHeadingXl } from "./HeadingSize-CfCRn3Lh.js";
|
|
20
20
|
import { v4 } from "uuid";
|
|
21
21
|
const getUid = () => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import IconLoader from "./components/IconLoader/index.js";
|
|
3
|
+
import { a as iconSizeXs, b as iconSizeSm } from "./styled-DPHfwWsx.js";
|
|
3
4
|
import { a as spacingXs, e as spacing2Xs, c as spacingSm, s as spacingMd } from "./Spacing-D0HQH9YJ.js";
|
|
4
5
|
import { s as smallSize, m as mediumSize } from "./SizeTypes-Ck_RdzIf.js";
|
|
5
6
|
import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
@@ -12,10 +13,10 @@ import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|
|
|
12
13
|
import { getObjectColor } from "./foundations/token/getObjectColor/index.js";
|
|
13
14
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
14
15
|
import { c as borderRadiusFull } from "./BorderRadius-ClUShVLu.js";
|
|
15
|
-
import { f as fontWeightBold } from "./FontWeight-
|
|
16
|
+
import { f as fontWeightBold } from "./FontWeight-DEBGHbtO.js";
|
|
16
17
|
import { a as textBodySm, t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
|
|
17
18
|
import { b as getForegroundColor } from "./colorUtils-BSfFfgbi.js";
|
|
18
|
-
import {
|
|
19
|
+
import { a as filterProps } from "./filterProps-CBnuV0LI.js";
|
|
19
20
|
import { e as colorObjectSuccess, f as colorObjectNeutral, g as colorObjectAccent, c as colorObjectBrand } from "./ObjectColor-BZDBuV8H.js";
|
|
20
21
|
const BadgeAppearanceColor = {
|
|
21
22
|
primary: colorObjectBrand,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { c as ButtonIconStyled } from "./styled-C4eI47I1.js";
|
|
3
|
+
import { b as iconSizeSm } from "./styled-DPHfwWsx.js";
|
|
4
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
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { b as spacingNone, a as spacingXs, s as spacingMd } from "./Spacing-D0HQH9YJ.js";
|
|
8
|
+
import { a as filterProps } from "./filterProps-CBnuV0LI.js";
|
|
9
9
|
import forcedColors from "./foundations/media-query/forcedColors/index.js";
|
|
10
10
|
import { getBodySize } from "./foundations/token/getBodySize/index.js";
|
|
11
11
|
import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
|
|
@@ -29,7 +29,7 @@ const linkBaseCssObject = {
|
|
|
29
29
|
cursor: "pointer",
|
|
30
30
|
gap: `${getSpacing(spacingNone)} ${getSpacing(spacingXs)}`,
|
|
31
31
|
...getBodySize(textBodyMd),
|
|
32
|
-
"&:focus-
|
|
32
|
+
"&:focus-within": {
|
|
33
33
|
...forcedColors({
|
|
34
34
|
outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`
|
|
35
35
|
}),
|
|
@@ -50,11 +50,21 @@ const linkBaseCssObject = {
|
|
|
50
50
|
textDecoration: "underline"
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
const LinkStyled = styled.
|
|
54
|
-
shouldForwardProp: filterProps(),
|
|
53
|
+
const LinkStyled = styled.span.withConfig({
|
|
54
|
+
shouldForwardProp: filterProps(["href"]),
|
|
55
55
|
displayName: "LinkStyled",
|
|
56
56
|
componentId: "sc-1eekm6o-0"
|
|
57
|
-
})(linkBaseCssObject,
|
|
57
|
+
})(linkBaseCssObject, {
|
|
58
|
+
"& a": {
|
|
59
|
+
color: "inherit",
|
|
60
|
+
display: "flex",
|
|
61
|
+
gap: `${getSpacing(spacingNone)} ${getSpacing(spacingXs)}`,
|
|
62
|
+
textDecoration: "none"
|
|
63
|
+
},
|
|
64
|
+
"& a:focus-visible": {
|
|
65
|
+
outline: "none"
|
|
66
|
+
}
|
|
67
|
+
}, ({
|
|
58
68
|
bottomSpacing = spacingMd
|
|
59
69
|
}) => getBottomSpacing({
|
|
60
70
|
bottomSpacing
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
2
|
+
import { l as largeMediaQuery, m as mediumMediaQuery } from "./index-Ck2bCrhT.js";
|
|
3
|
+
import { useMediaQuery } from "./hooks/useMediaQuery/index.js";
|
|
4
|
+
const viewportSm = "sm";
|
|
5
|
+
const viewportMd = "md";
|
|
6
|
+
const viewportLg = "lg";
|
|
7
|
+
const useViewport = () => {
|
|
8
|
+
const tablet = useMediaQuery(mediumMediaQuery);
|
|
9
|
+
const desktop = useMediaQuery(largeMediaQuery);
|
|
10
|
+
const [viewportState, setViewportState] = useState(viewportSm);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (desktop) {
|
|
13
|
+
setViewportState(viewportLg);
|
|
14
|
+
} else if (tablet) {
|
|
15
|
+
setViewportState(viewportMd);
|
|
16
|
+
} else {
|
|
17
|
+
setViewportState(viewportSm);
|
|
18
|
+
}
|
|
19
|
+
}, [tablet, desktop]);
|
|
20
|
+
return viewportState;
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
useViewport as u,
|
|
24
|
+
viewportSm as v
|
|
25
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import styled from "styled-components";
|
|
3
|
-
import {
|
|
3
|
+
import { a as filterProps } from "./filterProps-CBnuV0LI.js";
|
|
4
4
|
const screenreaderOnly = {
|
|
5
5
|
position: "absolute",
|
|
6
6
|
left: "-10000px",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { S as ScreenreaderOnly } from "./index-
|
|
3
|
-
import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
2
|
+
import { S as ScreenreaderOnly } from "./index-GwyCjtti.js";
|
|
4
3
|
import styled from "styled-components";
|
|
5
4
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
6
5
|
import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|
|
@@ -8,10 +7,11 @@ import { getHeadingSize } from "./foundations/token/getHeadingSize/index.js";
|
|
|
8
7
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
9
8
|
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
10
9
|
import { getTextDecoration } from "./foundations/token/getTextDecoration/index.js";
|
|
11
|
-
import { f as fontWeightBold,
|
|
10
|
+
import { f as fontWeightBold, a as fontWeightRegular } from "./FontWeight-DEBGHbtO.js";
|
|
12
11
|
import { s as spacingMd, b as spacingNone, a as spacingXs } from "./Spacing-D0HQH9YJ.js";
|
|
13
12
|
import { g as colorTextCritical, a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
14
|
-
import {
|
|
13
|
+
import { a as filterProps } from "./filterProps-CBnuV0LI.js";
|
|
14
|
+
import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
15
15
|
const priceOrientationHorizontal = "horizontal";
|
|
16
16
|
const priceOrientationVertical = "vertical";
|
|
17
17
|
const priceSizeSm = "sm";
|
|
@@ -19,25 +19,6 @@ const priceSizeMd = "md";
|
|
|
19
19
|
const priceSizeLg = "lg";
|
|
20
20
|
const priceAlignLeft = "left";
|
|
21
21
|
const priceAlignCenter = "center";
|
|
22
|
-
const priceDefaultProps = {
|
|
23
|
-
bottomSpacing: spacingMd,
|
|
24
|
-
orientation: priceOrientationVertical,
|
|
25
|
-
align: priceAlignLeft
|
|
26
|
-
};
|
|
27
|
-
const internalizePriceProps = (props) => {
|
|
28
|
-
const {
|
|
29
|
-
orientation,
|
|
30
|
-
align,
|
|
31
|
-
bottomSpacing,
|
|
32
|
-
...rest
|
|
33
|
-
} = props;
|
|
34
|
-
return {
|
|
35
|
-
...rest,
|
|
36
|
-
align,
|
|
37
|
-
bottomSpacing,
|
|
38
|
-
$orientation: orientation
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
22
|
const textDecorationStrikethrough = "Strikethrough";
|
|
42
23
|
const PriceOuterWrapperStyled = styled.div.withConfig({
|
|
43
24
|
displayName: "PriceOuterWrapperStyled",
|
|
@@ -134,7 +115,7 @@ const Price = (props) => {
|
|
|
134
115
|
}, children: [
|
|
135
116
|
offerProductName && /* @__PURE__ */ jsx("meta", { itemProp: "name", content: offerProductName }),
|
|
136
117
|
/* @__PURE__ */ jsx(ScreenreaderOnly, { children: createScreenReaderText(props.price, props.strikePrice, props.suffix) }),
|
|
137
|
-
/* @__PURE__ */ jsxs(PriceInnerWrapperStyled, { ...priceProps, orientation, align, ...{
|
|
118
|
+
/* @__PURE__ */ jsxs(PriceInnerWrapperStyled, { ...priceProps, price, orientation, align, ...{
|
|
138
119
|
"aria-hidden": true
|
|
139
120
|
}, itemProp: offerProductName ? "offers" : void 0, itemType: offerProductName ? "https://schema.org/Offer" : void 0, itemScope: offerProductName ? true : void 0, children: [
|
|
140
121
|
offerProductName && /* @__PURE__ */ jsx("meta", { itemProp: "priceCurrency", content: "EUR" }),
|
|
@@ -202,7 +183,5 @@ export {
|
|
|
202
183
|
priceSizeLg as e,
|
|
203
184
|
priceAlignLeft as f,
|
|
204
185
|
priceAlignCenter as g,
|
|
205
|
-
priceDefaultProps as h,
|
|
206
|
-
internalizePriceProps as i,
|
|
207
186
|
priceOrientationHorizontal as p
|
|
208
187
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { l as leftPosition, c as ButtonIconStyled, b as buttonHeight, g as getButtonAppearance, p as primaryAppearance } from "./styled-
|
|
2
|
+
import { b as iconSizeSm } from "./styled-DPHfwWsx.js";
|
|
3
|
+
import { l as leftPosition, c as ButtonIconStyled, b as buttonHeight, g as getButtonAppearance, p as primaryAppearance } from "./styled-C4eI47I1.js";
|
|
4
|
+
import { useLinkComponent } from "./hooks/useLinkComponent/index.js";
|
|
5
|
+
import { a as filterProps, f as filterPropsForUnstyledComponent } from "./filterProps-CBnuV0LI.js";
|
|
4
6
|
import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
7
|
import styled from "styled-components";
|
|
6
8
|
import { getBodySize } from "./foundations/token/getBodySize/index.js";
|
|
@@ -9,10 +11,9 @@ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js"
|
|
|
9
11
|
import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|
|
10
12
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
11
13
|
import { b as borderRadiusMd } from "./BorderRadius-ClUShVLu.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
+
import { a as fontWeightRegular } from "./FontWeight-DEBGHbtO.js";
|
|
15
|
+
import { b as spacingNone, a as spacingXs, d as spacingXl, s as spacingMd } from "./Spacing-D0HQH9YJ.js";
|
|
14
16
|
import { t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
|
|
15
|
-
import { f as filterProps } from "./filterProps-Cewck8OH.js";
|
|
16
17
|
const getButtonIcon = (icon) => {
|
|
17
18
|
if (!icon || !icon.name) {
|
|
18
19
|
return null;
|
|
@@ -20,25 +21,41 @@ const getButtonIcon = (icon) => {
|
|
|
20
21
|
const position = icon.position || leftPosition;
|
|
21
22
|
return /* @__PURE__ */ jsx(ButtonIconStyled, { iconPosition: position, size: iconSizeSm, name: icon.name });
|
|
22
23
|
};
|
|
23
|
-
const ButtonAsLinkStyled = styled.
|
|
24
|
-
shouldForwardProp: filterProps(),
|
|
24
|
+
const ButtonAsLinkStyled = styled.span.withConfig({
|
|
25
|
+
shouldForwardProp: filterProps(["href"]),
|
|
25
26
|
displayName: "ButtonAsLinkStyled",
|
|
26
27
|
componentId: "sc-c87xxk-0"
|
|
27
28
|
})({
|
|
28
29
|
appearance: "none",
|
|
29
|
-
display: "flex",
|
|
30
30
|
flexWrap: "nowrap",
|
|
31
31
|
alignItems: "center",
|
|
32
32
|
justifyContent: "center",
|
|
33
33
|
cursor: "pointer",
|
|
34
|
-
|
|
34
|
+
position: "relative",
|
|
35
35
|
padding: `${getSpacing(spacingXs)} ${getSpacing(spacingXl)}`,
|
|
36
36
|
borderRadius: getBorderRadius(borderRadiusMd),
|
|
37
37
|
fontWeight: getFontWeight(fontWeightRegular),
|
|
38
38
|
height: buttonHeight,
|
|
39
|
-
|
|
39
|
+
display: "flex",
|
|
40
40
|
"&:hover": {
|
|
41
41
|
textDecoration: "none"
|
|
42
|
+
},
|
|
43
|
+
"& a": {
|
|
44
|
+
color: "inherit",
|
|
45
|
+
display: "flex",
|
|
46
|
+
gap: `${getSpacing(spacingNone)} ${getSpacing(spacingXs)}`,
|
|
47
|
+
textDecoration: "none"
|
|
48
|
+
},
|
|
49
|
+
"& a:focus-visible": {
|
|
50
|
+
outline: "none"
|
|
51
|
+
},
|
|
52
|
+
"& a::after": {
|
|
53
|
+
content: '""',
|
|
54
|
+
position: "absolute",
|
|
55
|
+
width: "100%",
|
|
56
|
+
height: "100%",
|
|
57
|
+
top: 0,
|
|
58
|
+
left: 0
|
|
42
59
|
}
|
|
43
60
|
}, getBodySize(textBodyMd), ({
|
|
44
61
|
width = "auto"
|
|
@@ -51,10 +68,15 @@ const ButtonAsLinkStyled = styled.a.withConfig({
|
|
|
51
68
|
}) => getBottomSpacing({
|
|
52
69
|
bottomSpacing
|
|
53
70
|
}));
|
|
54
|
-
const ButtonAsLink = (props) =>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
71
|
+
const ButtonAsLink = (props) => {
|
|
72
|
+
const {
|
|
73
|
+
LinkComponent
|
|
74
|
+
} = useLinkComponent();
|
|
75
|
+
return /* @__PURE__ */ jsx(ButtonAsLinkStyled, { ...props, children: /* @__PURE__ */ jsxs(LinkComponent, { ...filterPropsForUnstyledComponent(props), children: [
|
|
76
|
+
renderInlineRichTextFromOpenText(props.children),
|
|
77
|
+
getButtonIcon(props == null ? void 0 : props.icon)
|
|
78
|
+
] }) });
|
|
79
|
+
};
|
|
58
80
|
export {
|
|
59
81
|
ButtonAsLink as B,
|
|
60
82
|
getButtonIcon as g
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export * from './components/RichText';
|
|
|
26
26
|
export { default as RichText } from './components/RichText';
|
|
27
27
|
export * from './components/ResponsiveImage';
|
|
28
28
|
export { default as ResponsiveImage } from './components/ResponsiveImage';
|
|
29
|
+
export * from './components/Rating';
|
|
30
|
+
export { default as Rating } from './components/Rating';
|
|
29
31
|
export * from './components/RadioGroup';
|
|
30
32
|
export { default as RadioGroup } from './components/RadioGroup';
|
|
31
33
|
export * from './components/ProductCard';
|
|
@@ -38,6 +40,8 @@ export * from './components/Overlay';
|
|
|
38
40
|
export { default as Overlay } from './components/Overlay';
|
|
39
41
|
export * from './components/Notification';
|
|
40
42
|
export { default as Notification } from './components/Notification';
|
|
43
|
+
export * from './components/MediaText';
|
|
44
|
+
export { default as MediaText } from './components/MediaText';
|
|
41
45
|
export * from './components/LoadingSpinner';
|
|
42
46
|
export { default as LoadingSpinner } from './components/LoadingSpinner';
|
|
43
47
|
export * from './components/LinkListItem';
|
|
@@ -56,6 +60,8 @@ export * from './components/Input';
|
|
|
56
60
|
export { default as Input } from './components/Input';
|
|
57
61
|
export * from './components/InlineLink';
|
|
58
62
|
export { default as InlineLink } from './components/InlineLink';
|
|
63
|
+
export * from './components/InlineIcon';
|
|
64
|
+
export { default as InlineIcon } from './components/InlineIcon';
|
|
59
65
|
export * from './components/ImageHeader';
|
|
60
66
|
export { default as ImageHeader } from './components/ImageHeader';
|
|
61
67
|
export * from './components/Image';
|
|
@@ -64,6 +70,8 @@ export * from './components/IconSnippetList';
|
|
|
64
70
|
export { default as IconSnippetList } from './components/IconSnippetList';
|
|
65
71
|
export * from './components/IconSnippet';
|
|
66
72
|
export { default as IconSnippet } from './components/IconSnippet';
|
|
73
|
+
export * from './components/IconLoader';
|
|
74
|
+
export { default as IconLoader } from './components/IconLoader';
|
|
67
75
|
export * from './components/IconButton';
|
|
68
76
|
export { default as IconButton } from './components/IconButton';
|
|
69
77
|
export * from './components/Icon';
|
|
@@ -171,5 +179,6 @@ export * from './hooks/useViewport';
|
|
|
171
179
|
export * from './hooks/useThirdPartyConsent';
|
|
172
180
|
export * from './hooks/useReducedMotion';
|
|
173
181
|
export * from './hooks/useMediaQuery';
|
|
182
|
+
export * from './hooks/useLinkComponent';
|
|
174
183
|
export * from './hooks/useForcedColors';
|
|
175
184
|
export * from './hooks/useFocusWithin';
|