@vodafone_de/brix-components 9.0.4 → 10.0.0
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/{BorderRadius-ClUShVLu.js → BorderRadius-2LdggXbQ.js} +2 -2
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionGroup/index.js +1 -1
- package/dist/components/ArtDirectedImage/index.d.ts +5 -0
- package/dist/components/ArtDirectedImage/index.js +75 -0
- package/dist/components/ArtDirectedImage/props.d.ts +24 -0
- package/dist/components/ArtDirectedImage/styled.d.ts +2 -0
- package/dist/components/ArtDirectedImage/validate.d.ts +3 -0
- package/dist/components/Badge/index.js +2 -3
- package/dist/components/Body/index.js +4 -5
- package/dist/components/BottomBar/index.js +4 -4
- package/dist/components/BottomBar/props.d.ts +1 -1
- package/dist/components/Button/index.js +4 -5
- package/dist/components/ButtonAsLink/index.js +2 -3
- package/dist/components/ButtonGroup/index.js +6 -6
- package/dist/components/ButtonGroup/props.d.ts +2 -2
- package/dist/components/ButtonGroup/validate.d.ts +2 -2
- package/dist/components/Calendar/index.js +305 -72
- package/dist/components/Card/index.js +3 -3
- package/dist/components/Carousel/index.js +6 -7
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Collapsible/index.js +19 -5
- package/dist/components/Collapsible/props.d.ts +5 -0
- package/dist/components/Collapsible/styled.d.ts +1 -1
- package/dist/components/ColorSwatch/index.js +1 -1
- package/dist/components/ColorSwatchGroup/index.js +2 -2
- package/dist/components/ConsentMessage/index.js +2 -2
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/index.js +10 -105
- package/dist/components/Container/styled.d.ts +2 -0
- package/dist/components/DateInput/index.js +1 -1
- package/dist/components/DemoBox/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DiscoveryCard/index.js +14 -11
- package/dist/components/DiscoveryCard/styled.d.ts +1 -1
- package/dist/components/DiscoveryCardGroup/index.js +12 -10
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/EnergySnippet/index.js +2 -2
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FilterGroup/index.js +3 -3
- package/dist/components/Flex/index.js +5 -2
- package/dist/components/Flex/props.d.ts +11 -3
- package/dist/components/Flex/stories/alignCenterArgs.d.ts +2 -0
- package/dist/components/Flex/stories/alignEndArgs.d.ts +2 -0
- package/dist/components/Flex/stories/alignStartArgs.d.ts +2 -0
- package/dist/components/Flex/styled.d.ts +3 -2
- package/dist/components/FlexItem/index.js +1 -1
- package/dist/components/FootnoteContent/index.js +1 -1
- package/dist/components/FootnoteLink/index.js +2 -2
- package/dist/components/Form/index.js +2 -2
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/GoogleMap/index.js +2 -2
- package/dist/components/Grid/index.d.ts +3 -1
- package/dist/components/Grid/index.js +16 -91
- package/dist/components/GridItem/index.d.ts +7 -0
- package/dist/components/GridItem/index.js +11 -54
- package/dist/components/Heading/index.js +4 -5
- package/dist/components/HifiIcon/index.js +1 -1
- package/dist/components/IconButton/index.js +3 -3
- package/dist/components/IconSnippet/index.js +3 -3
- package/dist/components/IconSnippetList/index.js +2 -3
- package/dist/components/Image/index.js +111 -52
- package/dist/components/Image/props.d.ts +21 -35
- package/dist/components/Image/styled.d.ts +1 -1
- package/dist/components/Image/validate.d.ts +1 -4
- package/dist/components/ImageHeader/index.js +18 -25
- package/dist/components/ImageHeader/props.d.ts +2 -2
- package/dist/components/ImageHeader/styled.d.ts +1 -1
- package/dist/components/InfoBanner/index.js +1 -1
- package/dist/components/InlineIcon/index.js +1 -1
- package/dist/components/InlineLink/index.js +1 -1
- package/dist/components/Input/index.js +2 -3
- package/dist/components/Label/index.js +2 -3
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.js +4 -5
- package/dist/components/LinkAsButton/index.js +1 -2
- package/dist/components/LinkList/index.js +2 -3
- package/dist/components/LinkListItem/index.js +5 -5
- package/dist/components/LoadingSpinner/index.js +2 -2
- package/dist/components/LocalStyle/index.js +2 -2
- package/dist/components/MediaText/index.js +5 -6
- package/dist/components/Notification/index.js +3 -3
- package/dist/components/OpenTextFootnoteAdapter/index.js +3 -3
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/index.js +8 -11
- package/dist/components/Price/index.d.ts +1 -1
- package/dist/components/Price/index.js +2 -3
- package/dist/components/ProductCard/index.js +29 -22
- package/dist/components/ProductCard/props.d.ts +11 -14
- package/dist/components/ProductCard/styled.d.ts +1 -0
- package/dist/components/QuickLinkList/index.js +3 -5
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Rating/index.js +2 -2
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +2 -2
- package/dist/components/ScreenreaderOnly/index.js +1 -1
- package/dist/components/SearchInput/index.js +4 -5
- package/dist/components/SelectInput/index.js +3 -4
- package/dist/components/Stepper/index.js +3 -4
- package/dist/components/SuggestInput/index.js +4 -5
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/TabGroup/index.js +2 -2
- package/dist/components/TabularPrice/index.js +2 -3
- package/dist/components/TextList/index.js +2 -3
- package/dist/components/Textarea/index.js +3 -4
- package/dist/components/TimeInput/index.js +1 -1
- package/dist/components/Tray/index.js +1 -1
- package/dist/components/UtilityLink/index.js +20 -2
- package/dist/components/UtilityLink/styled.d.ts +1 -0
- package/dist/components/YoutubeVideo/index.js +2 -2
- package/dist/contentful/components.d.ts +1 -1
- package/dist/contentful/live-preview-inspector/index.js +1 -1
- package/dist/contentful/live-preview-renderer/index.js +1 -1
- package/dist/contentful/map/artDirectedImage.d.ts +4 -0
- package/dist/contentful/renderer/index.js +1 -1
- package/dist/{cssVars-ZsZIfkeD.js → cssVars-TmhA1NpG.js} +1 -1
- package/dist/filterProps-CxkibNnG.js +18 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/getSizesFromGridConfig-DKOLupyb.js +48 -0
- package/dist/hooks/useImageComponent/index.d.ts +37 -0
- package/dist/hooks/useImageComponent/index.js +23 -0
- package/dist/hooks/usePictureComponent/index.d.ts +49 -0
- package/dist/hooks/usePictureComponent/index.js +38 -0
- package/dist/hooks/useViewport/index.js +5 -20
- package/dist/{index-ClAH0TNC.js → index-72IFVw5W.js} +14 -12
- package/dist/{index-BJHhIBYl.js → index-BsykXBqC.js} +1 -1
- package/dist/index-Bu-7sSif.js +201 -0
- package/dist/{index-DCE5HNIR.js → index-C2E3JrhF.js} +1 -1
- package/dist/{index-TL0X3rXH.js → index-DCXRnuHz.js} +7 -8
- package/dist/index-DKCzYjXw.js +25 -0
- package/dist/{index-C4eCcl02.js → index-DP6Nlg-a.js} +4 -5
- package/dist/index-DbG0QL9D.js +113 -0
- package/dist/{index-CEotMXpL.js → index-Dd-A7i9Y.js} +3 -4
- package/dist/{index-j22agtAk.js → index-DwGcrvTh.js} +4 -5
- package/dist/index.d.ts +4 -2
- package/dist/index.js +213 -212
- package/dist/{mapContentToComponents-C_O2rRrX.js → mapContentToComponents-DcPjYAXH.js} +155 -140
- package/dist/{styled-Dw5c-xwf.js → styled-BIcsESkS.js} +1 -1
- package/dist/{styled-7vJ7mrAA.js → styled-BKH3egch.js} +2 -2
- package/dist/{styled-BxkvYuWW.js → styled-CUp4EbPh.js} +23 -2
- package/dist/{styled-BBXC0aka.js → styled-D-fzMZNS.js} +1 -1
- package/dist/{styled-0KSRG-Fv.js → styled-DdeOXNN9.js} +26 -4
- package/dist/{styled-xKyZg4q9.js → styled-DmMk0W0J.js} +2 -2
- package/dist/{styled-Dq0NuP5r.js → styled-rsUoUFyl.js} +2 -2
- package/dist/{tags-D7CRQqc1.js → tags-Cwgg3Gx2.js} +7 -7
- package/dist/{validate-Dlzxlfzp.js → validate-CLBUbscx.js} +4 -6
- package/package.json +1 -1
- package/dist/Viewport-C35jx6QE.js +0 -8
- package/dist/components/ResponsiveImage/index.d.ts +0 -6
- package/dist/components/ResponsiveImage/index.js +0 -124
- package/dist/components/ResponsiveImage/props.d.ts +0 -16
- package/dist/components/ResponsiveImage/styled.d.ts +0 -4
- package/dist/components/ResponsiveImage/validate.d.ts +0 -3
- package/dist/components/ResponsiveImage/validate.test.d.ts +0 -1
- package/dist/contentful/map/responsiveImage.d.ts +0 -4
- package/dist/filterProps-BJ5SpbnA.js +0 -17
- package/dist/renderInlineRichTextFromOpenText-RvOG3QbI.js +0 -13
- package/dist/styled-BiCOjvNq.js +0 -29
- package/dist/validate-DYmFz2FF.js +0 -85
|
@@ -1,57 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
8
|
-
const gridItemTags = [divTagName, liTagName, navTagName, mainTagName, sectionTagName, asideTagName, articleTagName];
|
|
9
|
-
const gridItemAligns = ["left", "center", "right"];
|
|
10
|
-
const validateGridItemProps = (props) => {
|
|
11
|
-
if (!isObject(props)) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
const itemProps = props;
|
|
15
|
-
if (!hasMatchingComponentName(itemProps.component, "GridItem")) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
if (itemProps.sm && false === validateGridColSpan(itemProps.sm)) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
if (itemProps.md && false === validateGridColSpan(itemProps.md)) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
if (itemProps.lg && false === validateGridColSpan(itemProps.lg)) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
if (itemProps.align !== void 0 && !gridItemAligns.includes(itemProps.align)) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
if (itemProps.tag !== void 0 && !gridItemTags.includes(itemProps.tag)) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
if (itemProps.children === void 0) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
return true;
|
|
37
|
-
};
|
|
38
|
-
const isGridItemProps = (props) => {
|
|
39
|
-
return validateGridItemProps(props);
|
|
40
|
-
};
|
|
41
|
-
const GridItem = ({
|
|
42
|
-
sm = 12,
|
|
43
|
-
tag = divTagName,
|
|
44
|
-
...props
|
|
45
|
-
}) => {
|
|
46
|
-
const gridTag = useContext(GridContext).tag;
|
|
47
|
-
const gridSpacing = useContext(GridContext).spacing;
|
|
48
|
-
const gridAutoLayout = useContext(GridContext).autoLayout;
|
|
49
|
-
return /* @__PURE__ */ jsx(GridItemStyled, { ...props, as: gridTag === ulTagName || gridTag === olTagName ? liTagName : tag, spacing: gridSpacing, sm, ...gridAutoLayout, children: props.children });
|
|
50
|
-
};
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../tags-Cwgg3Gx2.js";
|
|
5
|
+
import { b, G, c, g, i, v } from "../../index-Bu-7sSif.js";
|
|
6
|
+
import "../../styled-DdeOXNN9.js";
|
|
51
7
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
8
|
+
b as GridItemContext,
|
|
9
|
+
G as default,
|
|
10
|
+
c as gridItemAligns,
|
|
11
|
+
g as gridItemTags,
|
|
12
|
+
i as isGridItemProps,
|
|
13
|
+
v as validateGridItemProps
|
|
57
14
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { F as FootnoteLink } from "../../index-
|
|
3
|
+
import { F as FootnoteLink } from "../../index-BsykXBqC.js";
|
|
4
4
|
import { a as spacingXs, b as spacingSm, s as spacingMd, g as spacingLg, e as spacingXl } from "../../Spacing-8v6hcO2x.js";
|
|
5
|
-
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
5
|
import styled from "styled-components";
|
|
7
|
-
import { i as h5TagName, j as h4TagName, h as h3TagName, k as h2TagName,
|
|
6
|
+
import { i as h5TagName, j as h4TagName, h as h3TagName, k as h2TagName, m as h1TagName, n as h6TagName, d as divTagName, c as spanTagName, p as pTagName } from "../../tags-Cwgg3Gx2.js";
|
|
8
7
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
9
8
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
10
9
|
import { getHeadingSize } from "../../foundations/token/getHeadingSize/index.js";
|
|
11
10
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
12
11
|
import { f as fontWeightBold, b as fontWeightLight, a as fontWeightRegular } from "../../FontWeight-DEBGHbtO.js";
|
|
13
12
|
import { a as colorTextNeutral } from "../../TextColor-BXVMXUVE.js";
|
|
14
|
-
import { a as filterProps } from "../../filterProps-
|
|
13
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
15
14
|
import { d as textHeadingXl, c as textHeadingLg, a as textHeadingMd, b as textHeadingSm, t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
16
15
|
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
17
16
|
import { i as isBottomSpacing } from "../../isBottomSpacing-BxfreCZU.js";
|
|
@@ -116,7 +115,7 @@ const Heading = ({
|
|
|
116
115
|
bottomSpacing = spacingMd,
|
|
117
116
|
...props
|
|
118
117
|
}) => /* @__PURE__ */ jsxs(HeadingStyled, { ...props, bottomSpacing, children: [
|
|
119
|
-
|
|
118
|
+
props.children,
|
|
120
119
|
footnoteLink && /* @__PURE__ */ jsx(FootnoteLink, { ...footnoteLink })
|
|
121
120
|
] });
|
|
122
121
|
export {
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
5
5
|
import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
6
|
-
import { a as filterProps } from "../../filterProps-
|
|
6
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
7
7
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
8
8
|
import { h as iconSize5xl, j as iconSize6xl, k as iconSize7xl, l as iconSize8xl, m as iconSize9xl } from "../../IconSize-AJp7xdJi.js";
|
|
9
9
|
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
@@ -10,12 +10,12 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
10
10
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
11
11
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
12
12
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
13
|
-
import { b as borderRadiusMd,
|
|
13
|
+
import { b as borderRadiusMd, a as borderRadiusFull } from "../../BorderRadius-2LdggXbQ.js";
|
|
14
14
|
import { c as borderWidthSelected } from "../../BorderWidth-BjXpOdM5.js";
|
|
15
|
-
import { b as buttonHeight, p as primaryAppearance } from "../../styled-
|
|
15
|
+
import { b as buttonHeight, p as primaryAppearance } from "../../styled-BKH3egch.js";
|
|
16
16
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
17
17
|
import { a as spacingXs, s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
18
|
-
import { a as filterProps } from "../../filterProps-
|
|
18
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
19
19
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
20
20
|
import { g as getButtonAppearance, B as ButtonAppearanceColor } from "../../ButtonAppearanceHelper-DBCLijF0.js";
|
|
21
21
|
const iconButtonShapeSquare = "square";
|
|
@@ -4,15 +4,15 @@ import Body from "../Body/index.js";
|
|
|
4
4
|
import Heading from "../Heading/index.js";
|
|
5
5
|
import InlineLink from "../InlineLink/index.js";
|
|
6
6
|
import Link from "../Link/index.js";
|
|
7
|
-
import { R as RichText } from "../../index-
|
|
8
|
-
import { d as divTagName, c as spanTagName } from "../../tags-
|
|
7
|
+
import { R as RichText } from "../../index-DP6Nlg-a.js";
|
|
8
|
+
import { d as divTagName, c as spanTagName } from "../../tags-Cwgg3Gx2.js";
|
|
9
9
|
import { a as iconSizeLg, f as iconSize3xl, i as iconSizeSm } from "../../IconSize-AJp7xdJi.js";
|
|
10
10
|
import { b as spacingSm, s as spacingMd, c as spacingNone, a as spacingXs } from "../../Spacing-8v6hcO2x.js";
|
|
11
11
|
import styled from "styled-components";
|
|
12
12
|
import { I as IconLoader } from "../../index--RjkzZm0.js";
|
|
13
13
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
14
14
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
15
|
-
import { a as filterProps } from "../../filterProps-
|
|
15
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
16
16
|
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
17
17
|
const iconSnippetSizeSmall = "sm";
|
|
18
18
|
const iconSnippetSizeLarge = "lg";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import Grid from "
|
|
4
|
-
import GridItem from "../GridItem/index.js";
|
|
3
|
+
import { a as Grid, G as GridItem } from "../../index-Bu-7sSif.js";
|
|
5
4
|
import IconSnippet from "../IconSnippet/index.js";
|
|
6
|
-
import { u as ulTagName, l as liTagName } from "../../tags-
|
|
5
|
+
import { u as ulTagName, l as liTagName } from "../../tags-Cwgg3Gx2.js";
|
|
7
6
|
import { c as spacingNone } from "../../Spacing-8v6hcO2x.js";
|
|
8
7
|
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
9
8
|
const validateIconSnippetListProps = (props) => {
|
|
@@ -1,81 +1,140 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useContext } from "react";
|
|
4
|
+
import { a as ContainerContext } from "../../index-DbG0QL9D.js";
|
|
5
|
+
import { d as GridContext, b as GridItemContext } from "../../index-Bu-7sSif.js";
|
|
3
6
|
import UtilityLink from "../UtilityLink/index.js";
|
|
7
|
+
import { useImageComponent, filterImagePropsToImageComponentProps } from "../../hooks/useImageComponent/index.js";
|
|
8
|
+
import { g as getSizesFromGridConfig } from "../../getSizesFromGridConfig-DKOLupyb.js";
|
|
4
9
|
import styled from "styled-components";
|
|
5
10
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
11
|
+
import { b as borderRadiusMd, c as borderRadiusNone } from "../../BorderRadius-2LdggXbQ.js";
|
|
12
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
6
13
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
14
|
+
import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
15
|
+
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
16
|
+
const aspectRatio1_1 = "1/1";
|
|
17
|
+
const aspectRatio3_4 = "3/4";
|
|
18
|
+
const aspectRatio16_9 = "16/9";
|
|
19
|
+
const aspectRatio21_9 = "21/9";
|
|
20
|
+
const aspectRatio32_9 = "32/9";
|
|
21
|
+
const aspectRatio48_9 = "48/9";
|
|
22
|
+
const objectFitContain = "contain";
|
|
23
|
+
const objectFitCover = "cover";
|
|
24
|
+
const objectFitNone = "none";
|
|
25
|
+
const ImageContainerStyled = styled.div.withConfig({
|
|
12
26
|
shouldForwardProp: filterProps(),
|
|
13
|
-
displayName: "
|
|
27
|
+
displayName: "ImageContainerStyled",
|
|
14
28
|
componentId: "sc-z3qszb-0"
|
|
15
29
|
})({
|
|
16
|
-
|
|
17
|
-
|
|
30
|
+
overflow: "hidden",
|
|
31
|
+
position: "relative",
|
|
32
|
+
"& img": {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
top: 0,
|
|
35
|
+
left: 0,
|
|
36
|
+
height: "100%",
|
|
37
|
+
width: "100%"
|
|
38
|
+
}
|
|
18
39
|
}, ({
|
|
19
|
-
|
|
40
|
+
aspectRatio
|
|
20
41
|
}) => ({
|
|
21
|
-
|
|
42
|
+
aspectRatio
|
|
22
43
|
}), ({
|
|
23
|
-
|
|
44
|
+
roundedCorners
|
|
24
45
|
}) => ({
|
|
25
|
-
|
|
46
|
+
borderRadius: roundedCorners ? getBorderRadius(borderRadiusMd) : getBorderRadius(borderRadiusNone)
|
|
26
47
|
}), ({
|
|
27
|
-
|
|
48
|
+
objectFit = "cover"
|
|
28
49
|
}) => ({
|
|
29
|
-
|
|
30
|
-
|
|
50
|
+
"& img": {
|
|
51
|
+
objectFit
|
|
52
|
+
}
|
|
31
53
|
}), ({
|
|
32
|
-
|
|
54
|
+
width,
|
|
55
|
+
height
|
|
33
56
|
}) => ({
|
|
34
|
-
|
|
57
|
+
width: width ? width : height ? "auto" : "100%",
|
|
58
|
+
height: height ? height : "auto"
|
|
35
59
|
}), ({
|
|
36
|
-
|
|
37
|
-
}) => ({
|
|
38
|
-
|
|
39
|
-
})
|
|
60
|
+
bottomSpacing = spacingMd
|
|
61
|
+
}) => getBottomSpacing({
|
|
62
|
+
bottomSpacing
|
|
63
|
+
}));
|
|
64
|
+
const aspectRatios = [aspectRatio1_1, aspectRatio3_4, aspectRatio16_9, aspectRatio21_9, aspectRatio32_9, aspectRatio48_9];
|
|
65
|
+
const objectFits = [objectFitContain, objectFitCover, objectFitNone];
|
|
66
|
+
const validateImageProps = (props) => {
|
|
67
|
+
if (!isObject(props)) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
const p = props;
|
|
71
|
+
if (!hasMatchingComponentName(p.component, "Image")) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
if (!p.src || typeof p.src !== "string") {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
if (!p.aspectRatio || !aspectRatios.includes(p.aspectRatio)) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
if (p.objectFit !== void 0 && !objectFits.includes(p.objectFit)) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (p.roundedCorners !== void 0 && typeof p.roundedCorners !== "boolean") {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
};
|
|
88
|
+
const isImageProps = (props) => {
|
|
89
|
+
return validateImageProps(props);
|
|
90
|
+
};
|
|
40
91
|
const Image = ({
|
|
41
|
-
alt = "",
|
|
42
92
|
link,
|
|
93
|
+
aspectRatio,
|
|
94
|
+
roundedCorners,
|
|
95
|
+
objectFit,
|
|
96
|
+
width,
|
|
97
|
+
height,
|
|
98
|
+
bottomSpacing,
|
|
43
99
|
...props
|
|
44
100
|
}) => {
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
101
|
+
const ImageComponent = useImageComponent();
|
|
102
|
+
const gridContext = useContext(GridContext);
|
|
103
|
+
const gridItemContext = useContext(GridItemContext);
|
|
104
|
+
const containerContext = useContext(ContainerContext);
|
|
105
|
+
const sizes = (gridContext == null ? void 0 : gridContext.nestedGridConfig) ? getSizesFromGridConfig(gridContext.nestedGridConfig, containerContext) : gridItemContext.nestedGridConfig ? getSizesFromGridConfig(gridItemContext.nestedGridConfig, containerContext) : getSizesFromGridConfig({
|
|
106
|
+
sm: 12
|
|
107
|
+
}, containerContext);
|
|
108
|
+
const imageComponentProps = {
|
|
109
|
+
...filterImagePropsToImageComponentProps(props),
|
|
110
|
+
aspectRatio,
|
|
111
|
+
width,
|
|
112
|
+
height,
|
|
113
|
+
alt: props.alt || "",
|
|
114
|
+
// fallback value is needed because alt is optional in ImageProps but required in ImageComponentProps
|
|
115
|
+
sizes
|
|
116
|
+
};
|
|
117
|
+
const image = /* @__PURE__ */ jsx(ImageContainerStyled, { aspectRatio, roundedCorners, objectFit, width, height, bottomSpacing, children: /* @__PURE__ */ jsx(ImageComponent, { ...imageComponentProps }) });
|
|
48
118
|
if (!link) {
|
|
49
119
|
return image;
|
|
50
120
|
}
|
|
51
|
-
return /* @__PURE__ */ jsx(UtilityLink, { ...link,
|
|
121
|
+
return /* @__PURE__ */ jsx(UtilityLink, { ...link, style: {
|
|
122
|
+
display: width || height ? "inline-block" : "block"
|
|
123
|
+
}, children: image });
|
|
52
124
|
};
|
|
53
125
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
x as cornerStyles,
|
|
126
|
+
aspectRatio16_9,
|
|
127
|
+
aspectRatio1_1,
|
|
128
|
+
aspectRatio21_9,
|
|
129
|
+
aspectRatio32_9,
|
|
130
|
+
aspectRatio3_4,
|
|
131
|
+
aspectRatio48_9,
|
|
132
|
+
aspectRatios,
|
|
62
133
|
Image as default,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
a as objectFitCover,
|
|
70
|
-
b as objectFitNone,
|
|
71
|
-
u as objectFits,
|
|
72
|
-
e as objectPositionCenter,
|
|
73
|
-
i as objectPositionLeftBottom,
|
|
74
|
-
g as objectPositionLeftCenter,
|
|
75
|
-
f as objectPositionLeftTop,
|
|
76
|
-
l as objectPositionRightBottom,
|
|
77
|
-
k as objectPositionRightCenter,
|
|
78
|
-
j as objectPositionRightTop,
|
|
79
|
-
v as objectPositions,
|
|
80
|
-
y as validateImageProps
|
|
134
|
+
isImageProps,
|
|
135
|
+
objectFitContain,
|
|
136
|
+
objectFitCover,
|
|
137
|
+
objectFitNone,
|
|
138
|
+
objectFits,
|
|
139
|
+
validateImageProps
|
|
81
140
|
};
|
|
@@ -1,64 +1,50 @@
|
|
|
1
1
|
import { ImgHTMLAttributes } from 'react';
|
|
2
2
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
-
import { CornerStyle } from '../../foundations/types/CornerStyle';
|
|
4
3
|
import { UtilityLinkProps } from '../UtilityLink/props';
|
|
5
|
-
export declare const objectFitContain = "contain";
|
|
6
|
-
export declare const objectFitCover = "cover";
|
|
7
|
-
export declare const objectFitNone = "none";
|
|
8
|
-
export type ImageObjectFit = typeof objectFitContain | typeof objectFitCover | typeof objectFitNone;
|
|
9
|
-
export declare const horizontalAlignmentLeft = "left";
|
|
10
|
-
export declare const horizontalAlignmentRight = "right";
|
|
11
|
-
export declare const horizontalAlignmentCenter = "center";
|
|
12
|
-
export type ImageAlignment = typeof horizontalAlignmentLeft | typeof horizontalAlignmentRight | typeof horizontalAlignmentCenter;
|
|
13
|
-
export declare const objectPositionCenter = "center";
|
|
14
|
-
export declare const objectPositionLeftTop = "top left";
|
|
15
|
-
export declare const objectPositionLeftCenter = "center left";
|
|
16
|
-
export declare const objectPositionLeftBottom = "bottom left";
|
|
17
|
-
export declare const objectPositionRightTop = "top right";
|
|
18
|
-
export declare const objectPositionRightCenter = "center right";
|
|
19
|
-
export declare const objectPositionRightBottom = "bottom right";
|
|
20
|
-
export type ImageObjectPosition = typeof objectPositionCenter | typeof objectPositionLeftTop | typeof objectPositionLeftCenter | typeof objectPositionLeftBottom | typeof objectPositionRightTop | typeof objectPositionRightCenter | typeof objectPositionRightBottom;
|
|
21
4
|
export declare const aspectRatio1_1 = "1/1";
|
|
22
|
-
export declare const
|
|
5
|
+
export declare const aspectRatio3_4 = "3/4";
|
|
23
6
|
export declare const aspectRatio16_9 = "16/9";
|
|
24
7
|
export declare const aspectRatio21_9 = "21/9";
|
|
25
8
|
export declare const aspectRatio32_9 = "32/9";
|
|
26
9
|
export declare const aspectRatio48_9 = "48/9";
|
|
27
|
-
export type AspectRatio = typeof aspectRatio1_1 | typeof
|
|
28
|
-
export
|
|
10
|
+
export type AspectRatio = typeof aspectRatio1_1 | typeof aspectRatio3_4 | typeof aspectRatio16_9 | typeof aspectRatio21_9 | typeof aspectRatio32_9 | typeof aspectRatio48_9;
|
|
11
|
+
export declare const objectFitContain = "contain";
|
|
12
|
+
export declare const objectFitCover = "cover";
|
|
13
|
+
export declare const objectFitNone = "none";
|
|
14
|
+
export type ImageObjectFit = typeof objectFitContain | typeof objectFitCover | typeof objectFitNone;
|
|
15
|
+
export interface ImageProps extends PatternProps, ImgHTMLAttributes<HTMLImageElement> {
|
|
29
16
|
/**
|
|
30
17
|
* Pin component's name from string to the concrete name
|
|
31
18
|
*/
|
|
32
19
|
component?: 'Image';
|
|
33
20
|
/**
|
|
34
|
-
*
|
|
21
|
+
* Image source URL
|
|
35
22
|
*/
|
|
36
|
-
|
|
23
|
+
src: string;
|
|
37
24
|
/**
|
|
38
|
-
*
|
|
39
|
-
* does not match the aspect ratio for the component in the layout 100%.
|
|
25
|
+
* Alternative description of image. Leave empty to mark image as decorative and hidden for screen readers.
|
|
40
26
|
*/
|
|
41
|
-
|
|
27
|
+
alt?: string;
|
|
42
28
|
/**
|
|
43
|
-
*
|
|
29
|
+
* Image aspect-ratio
|
|
44
30
|
*/
|
|
45
|
-
|
|
31
|
+
aspectRatio?: AspectRatio;
|
|
46
32
|
/**
|
|
47
|
-
*
|
|
33
|
+
* Images can optionally have rounded corners by using the “roundedCorners” property.
|
|
48
34
|
*/
|
|
49
|
-
|
|
35
|
+
roundedCorners?: boolean;
|
|
50
36
|
/**
|
|
51
|
-
*
|
|
37
|
+
* Object-fit variations
|
|
52
38
|
*/
|
|
53
|
-
|
|
39
|
+
objectFit?: ImageObjectFit;
|
|
54
40
|
/**
|
|
55
|
-
*
|
|
41
|
+
* While using aspectRatio is preferred, setting of a fixed height is also valid
|
|
56
42
|
*/
|
|
57
|
-
|
|
43
|
+
height?: number;
|
|
58
44
|
/**
|
|
59
|
-
*
|
|
45
|
+
* While using aspectRatio is preferred, setting of a fixed width is also valid
|
|
60
46
|
*/
|
|
61
|
-
|
|
47
|
+
width?: number;
|
|
62
48
|
/**
|
|
63
49
|
* Utility link in case image should be wrapped in an Anchor element
|
|
64
50
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ImageProps } from './props';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ImageContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ImageProps, "width" | "height" | "aspectRatio" | "bottomSpacing" | "objectFit" | "roundedCorners">>> & string;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { AspectRatio, ImageObjectFit,
|
|
1
|
+
import { AspectRatio, ImageObjectFit, ImageProps } from './props';
|
|
2
2
|
export declare const aspectRatios: AspectRatio[];
|
|
3
3
|
export declare const objectFits: ImageObjectFit[];
|
|
4
|
-
export declare const objectPositions: ImageObjectPosition[];
|
|
5
|
-
export declare const horizontalAlignments: string[];
|
|
6
|
-
export declare const cornerStyles: string[];
|
|
7
4
|
export declare const validateImageProps: (props: unknown) => props is ImageProps;
|
|
8
5
|
export declare const isImageProps: (props: unknown) => props is ImageProps;
|
|
@@ -2,20 +2,19 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Body from "../Body/index.js";
|
|
4
4
|
import Button from "../Button/index.js";
|
|
5
|
-
import Container from "
|
|
5
|
+
import { C as Container } from "../../index-DbG0QL9D.js";
|
|
6
6
|
import Heading, { headingAlignCenter } 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-DCXRnuHz.js";
|
|
8
|
+
import { R as RichText } from "../../index-DP6Nlg-a.js";
|
|
9
9
|
import { b as fontWeightLight } from "../../FontWeight-DEBGHbtO.js";
|
|
10
10
|
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
11
11
|
import { s as spacingMd, b as spacingSm, e as spacingXl, a as spacingXs, f as spacing2Xs, c as spacingNone } from "../../Spacing-8v6hcO2x.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
|
-
import
|
|
13
|
+
import ArtDirectedImage from "../ArtDirectedImage/index.js";
|
|
14
|
+
import { B as Badge } from "../../index-DwGcrvTh.js";
|
|
14
15
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
15
|
-
import { a as flexOrientationVertical } from "../../styled-
|
|
16
|
-
import Grid from "
|
|
17
|
-
import GridItem from "../GridItem/index.js";
|
|
18
|
-
import ResponsiveImage from "../ResponsiveImage/index.js";
|
|
16
|
+
import { a as flexOrientationVertical } from "../../styled-CUp4EbPh.js";
|
|
17
|
+
import { a as Grid, G as GridItem } from "../../index-Bu-7sSif.js";
|
|
19
18
|
import viewport from "../../foundations/media-query/viewport/index.js";
|
|
20
19
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
21
20
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
@@ -88,29 +87,23 @@ const ImageHeaderImagesContainerStyled = styled(GridItem).withConfig({
|
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
89
|
});
|
|
91
|
-
const
|
|
92
|
-
displayName: "
|
|
90
|
+
const ImageHeaderArtDirectedImageStyled = styled(ArtDirectedImage).withConfig({
|
|
91
|
+
displayName: "ImageHeaderArtDirectedImageStyled",
|
|
93
92
|
componentId: "sc-7ig3h-2"
|
|
94
93
|
})({
|
|
94
|
+
width: "100%",
|
|
95
95
|
...viewport.lg({
|
|
96
|
-
|
|
97
|
-
})
|
|
98
|
-
img: {
|
|
99
|
-
...viewport.lg({
|
|
100
|
-
height: "450px"
|
|
101
|
-
})
|
|
102
|
-
}
|
|
96
|
+
height: "450px"
|
|
97
|
+
})
|
|
103
98
|
}, ({
|
|
104
99
|
variant
|
|
105
100
|
}) => {
|
|
106
101
|
if (variant === imageHeaderVariantFull) {
|
|
107
102
|
return {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
})
|
|
113
|
-
}
|
|
103
|
+
minHeight: "450px",
|
|
104
|
+
...viewport.lg({
|
|
105
|
+
minHeight: "unset"
|
|
106
|
+
})
|
|
114
107
|
};
|
|
115
108
|
}
|
|
116
109
|
}, ({
|
|
@@ -244,7 +237,7 @@ const isImageHeaderProps = (props) => {
|
|
|
244
237
|
return validateImageHeaderProps(props);
|
|
245
238
|
};
|
|
246
239
|
const ImageHeader = ({
|
|
247
|
-
|
|
240
|
+
artDirectedImage,
|
|
248
241
|
badge,
|
|
249
242
|
heading,
|
|
250
243
|
subline,
|
|
@@ -286,7 +279,7 @@ const ImageHeader = ({
|
|
|
286
279
|
}
|
|
287
280
|
};
|
|
288
281
|
return /* @__PURE__ */ jsx(Container, { padding: "None", className: props.className, children: /* @__PURE__ */ jsxs(ImageHeaderStyled, { ...props, position, variant, spacing: spacingNone, component: "Grid", children: [
|
|
289
|
-
/* @__PURE__ */ jsx(ImageHeaderImagesContainerStyled, { align: "center", variant, position, lg: 12 - contentGridDesktopColumns, children: /* @__PURE__ */ jsx(
|
|
282
|
+
/* @__PURE__ */ jsx(ImageHeaderImagesContainerStyled, { align: "center", variant, position, lg: 12 - contentGridDesktopColumns, children: /* @__PURE__ */ jsx(ImageHeaderArtDirectedImageStyled, { sources: artDirectedImage.sources, image: artDirectedImage.image, variant, position, bottomSpacing: spacingNone }) }),
|
|
290
283
|
/* @__PURE__ */ jsxs(ImageHeaderContentStyled, { variant, position, contentGridDesktopColumns, lg: contentGridDesktopColumns, className: "Dark" === theme ? " Dark" : "", children: [
|
|
291
284
|
badge && /* @__PURE__ */ jsx(ImageHeaderBadgeStyled, { ...badge, size: mediumSize, bottomSpacing: spacingNone }),
|
|
292
285
|
/* @__PURE__ */ jsx(ImageHeaderHeadingStyled, { ...heading, id: headingId, align: headingAlignCenter, weight: fontWeightLight, bottomSpacing: spacingNone }),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { ArtDirectedImageProps } from '../ArtDirectedImage/props';
|
|
2
3
|
import { BadgeProps } from '../Badge/props';
|
|
3
4
|
import { BodyProps } from '../Body/props';
|
|
4
5
|
import { ButtonProps } from '../Button/props';
|
|
@@ -7,7 +8,6 @@ import { ButtonGroupProps } from '../ButtonGroup/props';
|
|
|
7
8
|
import { GridColSpan } from '../Grid/props';
|
|
8
9
|
import { HeadingProps } from '../Heading/props';
|
|
9
10
|
import { PriceProps } from '../Price/props';
|
|
10
|
-
import { ResponsiveImageProps } from '../ResponsiveImage/props';
|
|
11
11
|
import { RichTextProps } from '../RichText/props';
|
|
12
12
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
13
13
|
import { Theme } from '../../foundations/types/Theme';
|
|
@@ -29,7 +29,7 @@ export interface ImageHeaderProps extends PatternProps, HTMLAttributes<HTMLDivEl
|
|
|
29
29
|
/**
|
|
30
30
|
* Image header images for each viewport
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
artDirectedImage: ArtDirectedImageProps;
|
|
33
33
|
/**
|
|
34
34
|
* Badge
|
|
35
35
|
*/
|
|
@@ -2,7 +2,7 @@ import { ImageHeaderProps } from './props';
|
|
|
2
2
|
export declare const getBadgeTopPosition: () => string;
|
|
3
3
|
export declare const ImageHeaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Grid').GridProps, Pick<ImageHeaderProps, "position" | "variant">>> & string & Omit<import('react').FC<import('../Grid').GridProps>, keyof import('react').Component<any, {}, any>>;
|
|
4
4
|
export declare const ImageHeaderImagesContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "position" | "variant">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const ImageHeaderArtDirectedImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../ArtDirectedImage').ArtDirectedImageProps, Pick<ImageHeaderProps, "position" | "variant">>> & string & Omit<import('react').FC<import('../ArtDirectedImage').ArtDirectedImageProps>, keyof import('react').Component<any, {}, any>>;
|
|
6
6
|
export declare const ImageHeaderContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "position" | "contentGridDesktopColumns" | "variant">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
|
|
7
7
|
export declare const ImageHeaderBadgeStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Badge').BadgeProps, never>> & string & Omit<import('react').FC<import('../Badge').BadgeProps>, keyof import('react').Component<any, {}, any>>;
|
|
8
8
|
export declare const ImageHeaderHeadingStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Heading').HeadingProps, never>> & string & Omit<import('react').FC<import('../Heading').HeadingProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -17,7 +17,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
17
17
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
18
|
import { a as colorBackgroundSubtle, f as colorBackgroundBrand } from "../../BackgroundColor-e0N9tdDR.js";
|
|
19
19
|
import { g as getForegroundColor } from "../../colorUtils-oJmiUVBK.js";
|
|
20
|
-
import { a as filterProps } from "../../filterProps-
|
|
20
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
21
21
|
const InfoBannerContainerStyled = styled.div.withConfig({
|
|
22
22
|
shouldForwardProp: filterProps(),
|
|
23
23
|
displayName: "InfoBannerContainerStyled",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { d as iconSizeXl, e as iconSize2xl, f as iconSize3xl, g as iconSize4xl, h as iconSize5xl } from "../../IconSize-AJp7xdJi.js";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import { a as filterProps } from "../../filterProps-
|
|
5
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
6
6
|
const IconWithAccent = [iconSizeXl, iconSize2xl, iconSize3xl, iconSize4xl, iconSize5xl];
|
|
7
7
|
const inlineIconModeFill = "fill";
|
|
8
8
|
const inlineIconModeStroke = "stroke";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
4
|
-
import { f as filterPropsForUnstyledComponent } from "../../filterProps-
|
|
4
|
+
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CxkibNnG.js";
|
|
5
5
|
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -6,10 +6,9 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
|
6
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
7
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
8
|
import { s as spacingMd, a as spacingXs } from "../../Spacing-8v6hcO2x.js";
|
|
9
|
-
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
10
9
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
11
10
|
import { i } from "../../props-DDpgcryb.js";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
11
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-DmMk0W0J.js";
|
|
13
12
|
const Input = forwardRef(({
|
|
14
13
|
uid,
|
|
15
14
|
status,
|
|
@@ -42,7 +41,7 @@ const Input = forwardRef(({
|
|
|
42
41
|
return /* @__PURE__ */ jsxs(FormElement, { bottomSpacing, disabled: props.disabled, children: [
|
|
43
42
|
/* @__PURE__ */ jsx(FormHelperLabel, { label, uid }),
|
|
44
43
|
/* @__PURE__ */ jsxs(InputWrapperStyled, { status, readOnly: props.readOnly, bottomSpacing: inputStateError !== status && helperText || inputStateError === status && errorMessage ? spacingXs : void 0, children: [
|
|
45
|
-
/* @__PURE__ */ jsx(InputStyled, { ...inputProps, placeholder
|
|
44
|
+
/* @__PURE__ */ jsx(InputStyled, { ...inputProps, placeholder, ref, onChange }),
|
|
46
45
|
/* @__PURE__ */ jsx(FormHelperStatusIcon, { status })
|
|
47
46
|
] }),
|
|
48
47
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|