@vodafone_de/brix-components 7.1.9 → 7.1.11

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.
Files changed (146) hide show
  1. package/dist/{BorderRadius-2LdggXbQ.js → BorderRadius-ClUShVLu.js} +2 -2
  2. package/dist/{HeadingSize-CfCRn3Lh.js → HeadingSize-CqqUYZWV.js} +2 -2
  3. package/dist/{TableHead-Cfn2iQRg.js → TableHead-ogeZ901P.js} +40 -17
  4. package/dist/{TableWrapper-BrnjxwJz.js → TableWrapper-Og83COGw.js} +1 -1
  5. package/dist/components/Accordion/index.js +2 -2
  6. package/dist/components/AccordionGroup/index.js +1 -1
  7. package/dist/components/Badge/index.js +9 -5
  8. package/dist/components/Badge/props.d.ts +8 -3
  9. package/dist/components/Body/index.js +2 -2
  10. package/dist/components/BottomBar/index.js +3 -3
  11. package/dist/components/Button/index.js +2 -2
  12. package/dist/components/ButtonAsLink/index.js +2 -2
  13. package/dist/components/ButtonGroup/index.js +2 -2
  14. package/dist/components/Card/index.js +2 -2
  15. package/dist/components/Carousel/index.js +7 -7
  16. package/dist/components/Checkbox/index.js +3 -3
  17. package/dist/components/CheckboxGroup/index.js +2 -2
  18. package/dist/components/Collapsible/index.js +1 -1
  19. package/dist/components/ColorSwatch/index.js +2 -2
  20. package/dist/components/ColorSwatchGroup/index.js +3 -3
  21. package/dist/components/ConsentMessage/index.js +4 -4
  22. package/dist/components/Container/index.js +2 -2
  23. package/dist/components/DateInput/index.js +3 -2
  24. package/dist/components/DemoBox/index.js +8 -2
  25. package/dist/components/Dialog/index.js +9 -7
  26. package/dist/components/DiscoveryCard/index.js +13 -13
  27. package/dist/components/DiscoveryCard/styled.d.ts +1 -1
  28. package/dist/components/DiscoveryCardGroup/index.js +1 -1
  29. package/dist/components/Divider/index.js +1 -1
  30. package/dist/components/Fieldset/index.js +2 -1
  31. package/dist/components/FilterGroup/index.js +4 -4
  32. package/dist/components/Flex/index.js +2 -2
  33. package/dist/components/FlexItem/index.js +1 -1
  34. package/dist/components/FootnoteContent/index.js +1 -1
  35. package/dist/components/FootnoteLink/index.js +4 -52
  36. package/dist/components/Form/index.js +1 -1
  37. package/dist/components/FormElement/index.js +1 -1
  38. package/dist/components/FormHelperStatusIcon/index.js +1 -1
  39. package/dist/components/GoogleMap/index.js +3 -3
  40. package/dist/components/Grid/index.js +1 -1
  41. package/dist/components/GridItem/index.js +1 -1
  42. package/dist/components/Heading/index.js +4 -4
  43. package/dist/components/HifiIcon/index.js +1 -1
  44. package/dist/components/IconButton/index.js +4 -4
  45. package/dist/components/IconSnippet/index.js +3 -3
  46. package/dist/components/Image/index.js +39 -47
  47. package/dist/components/Image/props.d.ts +32 -35
  48. package/dist/components/Image/styled.d.ts +1 -1
  49. package/dist/components/ImageHeader/index.js +7 -7
  50. package/dist/components/ImageHeader/props.d.ts +1 -1
  51. package/dist/components/ImageHeader/styled.d.ts +1 -1
  52. package/dist/components/InfoBanner/index.js +3 -3
  53. package/dist/components/InlineIcon/index.js +1 -1
  54. package/dist/components/InlineLink/index.js +11 -12
  55. package/dist/components/Input/index.js +2 -1
  56. package/dist/components/Label/index.js +1 -1
  57. package/dist/components/Legend/index.js +12 -2
  58. package/dist/components/Link/index.js +2 -2
  59. package/dist/components/LinkAsButton/index.js +1 -1
  60. package/dist/components/LinkList/index.js +1 -1
  61. package/dist/components/LinkListItem/index.js +4 -4
  62. package/dist/components/LoadingSpinner/index.js +2 -2
  63. package/dist/components/LocalStyle/index.js +2 -2
  64. package/dist/components/MediaText/index.js +7 -7
  65. package/dist/components/Notification/index.js +4 -4
  66. package/dist/components/OpenTextFootnoteAdapter/index.js +2 -2
  67. package/dist/components/Overlay/index.js +1 -1
  68. package/dist/components/PickerGroup/index.js +6 -6
  69. package/dist/components/Price/index.js +2 -2
  70. package/dist/components/ProductCard/index.js +4 -4
  71. package/dist/components/QuickLinkList/index.js +4 -4
  72. package/dist/components/RadioGroup/index.js +2 -2
  73. package/dist/components/Rating/index.js +6 -5
  74. package/dist/components/ResponsiveImage/index.d.ts +5 -0
  75. package/dist/components/ResponsiveImage/index.js +89 -0
  76. package/dist/components/ResponsiveImage/props.d.ts +16 -0
  77. package/dist/components/ResponsiveImage/styled.d.ts +4 -0
  78. package/dist/components/RichText/index.js +1 -1
  79. package/dist/components/RichtTextContentful/index.js +2 -2
  80. package/dist/components/ScreenreaderOnly/index.js +3 -14
  81. package/dist/components/SearchInput/index.js +4 -4
  82. package/dist/components/SelectInput/index.js +4 -3
  83. package/dist/components/Stepper/index.js +3 -4
  84. package/dist/components/SuggestInput/index.js +22 -17
  85. package/dist/components/SuggestInput/props.d.ts +2 -1
  86. package/dist/components/Switch/index.js +3 -3
  87. package/dist/components/TabGroup/index.js +3 -3
  88. package/dist/components/Table/index.d.ts +1 -1
  89. package/dist/components/Table/index.js +7 -7
  90. package/dist/components/Table/props.d.ts +1 -1
  91. package/dist/components/Table/styled.d.ts +2 -0
  92. package/dist/components/TabularPrice/index.js +2 -2
  93. package/dist/components/TextList/index.js +2 -2
  94. package/dist/components/Textarea/index.js +4 -3
  95. package/dist/components/TimeInput/index.js +3 -2
  96. package/dist/components/Tray/index.js +3 -3
  97. package/dist/components/YoutubeVideo/index.js +1 -1
  98. package/dist/contentful/index.js +12 -12
  99. package/dist/contentful/live-preview-inspector/index.js +1 -1
  100. package/dist/contentful/live-preview-renderer/index.js +1 -1
  101. package/dist/contentful/renderer/index.js +1 -1
  102. package/dist/{cssVars-_wntC-Ac.js → cssVars-CR3xqdPx.js} +2 -2
  103. package/dist/filterProps-BWnAPYBL.js +17 -0
  104. package/dist/foundations/GlobalStyle/index.js +1 -1
  105. package/dist/foundations/media-query/viewport/index.js +4 -24
  106. package/dist/hooks/useViewport/index.js +2 -2
  107. package/dist/{index-tpq3BGwZ.js → index-ByPSWRQ0.js} +3 -3
  108. package/dist/index-Ck2bCrhT.js +32 -0
  109. package/dist/{index-rbdl_kyF.js → index-Cmrx-D-0.js} +5 -5
  110. package/dist/{index-BPweURE-.js → index-Cv2XdnwK.js} +9 -5
  111. package/dist/index-DSF1zGyd.js +24 -0
  112. package/dist/{index-DKCzYjXw.js → index-G2mpsxF7.js} +1 -1
  113. package/dist/index-UJLGt4uV.js +54 -0
  114. package/dist/{index-Vub90geg.js → index-tT4JzApY.js} +2 -2
  115. package/dist/index.d.ts +2 -4
  116. package/dist/index.js +94 -101
  117. package/dist/{mapContentToComponents-bL4ms1AC.js → mapContentToComponents-CbN3OD_t.js} +15 -13
  118. package/dist/{styled-DUsRG1Xh.js → styled-B1bxWqtW.js} +1 -1
  119. package/dist/{styled-CKK_LUlC.js → styled-BBG87P4U.js} +4 -4
  120. package/dist/{styled-B_ihuvyB.js → styled-BKWEE3dx.js} +1 -1
  121. package/dist/{styled-CWusLu5R.js → styled-BQGCfF-s.js} +2 -2
  122. package/dist/{styled-C6Wms75x.js → styled-BXtzJJFu.js} +1 -1
  123. package/dist/{styled-DoOOutJj.js → styled-BYYivuzh.js} +1 -1
  124. package/dist/{styled-CQLDmqmZ.js → styled-CE_Y6O4R.js} +2 -2
  125. package/dist/{styled-13a_Vk0D.js → styled-CIwf9Ebu.js} +22 -2
  126. package/dist/{styled-D57p2ktn.js → styled-Cz2kpbgE.js} +4 -4
  127. package/dist/{styled-BKmRVjNA.js → styled-DGMsuBML.js} +1 -1
  128. package/dist/{styled-Dk6VS_Sg.js → styled-Dgv3RBlg.js} +3 -3
  129. package/dist/{styled-Csv7V9ez.js → styled-Dmb8-99g.js} +1 -1
  130. package/dist/{styled-DCLv3G2j.js → styled-Dr-tPBqx.js} +1 -1
  131. package/dist/{styled-D_F38PuI.js → styled-Du4LgXoA.js} +2 -2
  132. package/dist/{styled-DG6HSLPJ.js → styled-O5mL4jlL.js} +1 -1
  133. package/dist/{styled-QLVvcMdB.js → styled-VuUKI7PE.js} +1 -1
  134. package/package.json +1 -1
  135. package/dist/breakpoint-CzBSbbY7.js +0 -9
  136. package/dist/components/ArtDirectedImage/index.d.ts +0 -5
  137. package/dist/components/ArtDirectedImage/index.js +0 -44
  138. package/dist/components/ArtDirectedImage/props.d.ts +0 -18
  139. package/dist/components/ArtDirectedImage/styled.d.ts +0 -2
  140. package/dist/filterProps-CPul3CC8.js +0 -17
  141. package/dist/hooks/useImageComponent/index.d.ts +0 -28
  142. package/dist/hooks/useImageComponent/index.js +0 -17
  143. package/dist/hooks/usePictureComponent/index.d.ts +0 -25
  144. package/dist/hooks/usePictureComponent/index.js +0 -27
  145. package/dist/screenreaderOnly-Dv2v6MAr.js +0 -11
  146. package/dist/styled-CH1kr8ZR.js +0 -14
@@ -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-tpq3BGwZ.js";
7
+ import { a as LinkStyled } from "../../index-ByPSWRQ0.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({
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { D as DividerLineStyled } from "../../styled-B_ihuvyB.js";
3
+ import { D as DividerLineStyled } from "../../styled-BKWEE3dx.js";
4
4
  const Divider = (props) => /* @__PURE__ */ jsx(DividerLineStyled, { ...props });
5
5
  export {
6
6
  Divider as default
@@ -8,7 +8,7 @@ import Legend from "../Legend/index.js";
8
8
  import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
9
9
  import styled from "styled-components";
10
10
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
11
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
11
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
12
12
  const fieldsetCssObject = {
13
13
  // Chrome gives a fieldset a min-width equal to its content, so we need to reset it here
14
14
  minWidth: "0px"
@@ -34,6 +34,7 @@ const Fieldset = forwardRef(({
34
34
  inputStateError !== status && helperText || inputStateError === status && errorMessage ? /* @__PURE__ */ jsx(FormHelperMessage, { id: `fieldset-message-${uid}`, message: inputStateError === status ? errorMessage : helperText, status, children: status === inputStateError && /* @__PURE__ */ jsx(NotificationErrorIcon, { size: "iconSizeXs" }) }) : null
35
35
  ] });
36
36
  });
37
+ Fieldset.displayName = "Fieldset";
37
38
  export {
38
39
  Fieldset as default
39
40
  };
@@ -3,10 +3,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { useState } from "react";
4
4
  import Fieldset from "../Fieldset/index.js";
5
5
  import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
6
- import "../../styled-DUsRG1Xh.js";
6
+ import "../../styled-B1bxWqtW.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 "../../screenreaderOnly-Dv2v6MAr.js";
9
+ import { s as screenreaderOnly } from "../../index-DSF1zGyd.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";
@@ -19,13 +19,13 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
19
19
  import { getTextColor } from "../../foundations/token/getTextColor/index.js";
20
20
  import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
21
21
  import { b as colorBorderUnselected, j as colorBorderSelected, c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
22
- import { a as borderRadiusFull } from "../../BorderRadius-2LdggXbQ.js";
22
+ import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
23
23
  import { b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
24
24
  import { d as colorObjectSelected } from "../../ObjectColor-0RAzLGI5.js";
25
25
  import { b as spacingXs, s as spacingNone, e as spacing2Xs, c as spacingSm } from "../../Spacing-BMQelJYr.js";
26
26
  import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
27
27
  import { a as colorTextNeutral, b as colorTextInverseStatic } from "../../TextColor-DsntmDNw.js";
28
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
28
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
29
29
  const FilterGroupStyled = styled.div.withConfig({
30
30
  shouldForwardProp: filterProps(),
31
31
  displayName: "FilterGroupStyled",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { F as FlexStyled } from "../../styled-DG6HSLPJ.js";
4
- import { e, d, c, b, f, a } from "../../styled-DG6HSLPJ.js";
3
+ import { F as FlexStyled } from "../../styled-O5mL4jlL.js";
4
+ import { e, d, c, b, f, a } from "../../styled-O5mL4jlL.js";
5
5
  const Flex = ({
6
6
  children,
7
7
  ...props
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { cloneElement } from "react";
4
4
  import { s as spacingNone } from "../../Spacing-BMQelJYr.js";
5
5
  import styled from "styled-components";
6
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
6
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
7
7
  const flexItemFullGrow = "full";
8
8
  const flexItemAutoGrow = "auto";
9
9
  const FlexItemStyled = styled.div.withConfig({
@@ -7,7 +7,7 @@ import { getBorderColor } from "../../foundations/token/getBorderColor/index.js"
7
7
  import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
8
8
  import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
9
9
  import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
10
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
10
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
11
11
  const rotate = keyframes(["0%{box-shadow:transparent 0px 0px 0px 0px;}50%{box-shadow:", " 0px 0px 2px ", ";}100%{box-shadow:transparent 0px 0px 0px 0px;}}"], getBorderColor(colorBorderFocus), getBorderWidth(borderWidthFocus));
12
12
  const FootnoteContentStyled = styled.div.withConfig({
13
13
  shouldForwardProp: filterProps(),
@@ -1,55 +1,7 @@
1
1
  "use client";
2
- import { jsxs, jsx } from "react/jsx-runtime";
3
- import ScreenreaderOnly from "../ScreenreaderOnly/index.js";
4
- import styled from "styled-components";
5
- import InlineLink from "../InlineLink/index.js";
6
- import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
7
- import { getSpacing } from "../../foundations/token/getSpacing/index.js";
8
- import { e as spacing2Xs } from "../../Spacing-BMQelJYr.js";
9
- const FootnoteLinkStyled = styled(InlineLink).withConfig({
10
- displayName: "FootnoteLinkStyled",
11
- componentId: "sc-ydos3j-0"
12
- })({
13
- verticalAlign: "top",
14
- fontSize: "0.7em",
15
- fontWeight: getFontWeight("bold"),
16
- textDecoration: "none",
17
- display: "inline-block",
18
- "& a": {
19
- textDecoration: "underline",
20
- paddingLeft: getSpacing(spacing2Xs),
21
- paddingRight: getSpacing(spacing2Xs),
22
- verticalAlign: "baseline",
23
- fontSize: "inherit"
24
- }
25
- });
26
- const FootnoteLink = ({
27
- uid,
28
- contentUid,
29
- screenReaderLabel,
30
- children,
31
- component: _component
32
- }) => {
33
- const onClick = (event) => {
34
- const linkbackToContent = document.getElementById(`back-${contentUid}`);
35
- if (!linkbackToContent) {
36
- return;
37
- }
38
- linkbackToContent.setAttribute("href", `#${uid}`);
39
- const details = linkbackToContent.closest("details");
40
- if (details && null === details.getAttribute("open")) {
41
- event.preventDefault();
42
- details.setAttribute("open", "open");
43
- setTimeout(() => {
44
- event.target.click();
45
- }, 15);
46
- }
47
- };
48
- return /* @__PURE__ */ jsxs(FootnoteLinkStyled, { id: uid, href: `#${contentUid}`, onClick, children: [
49
- children,
50
- /* @__PURE__ */ jsx(ScreenreaderOnly, { children: screenReaderLabel })
51
- ] });
52
- };
2
+ import "react/jsx-runtime";
3
+ import "../../index-DSF1zGyd.js";
4
+ import { F } from "../../index-UJLGt4uV.js";
53
5
  export {
54
- FootnoteLink as default
6
+ F as default
55
7
  };
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { s as spacingNone } from "../../Spacing-BMQelJYr.js";
4
4
  import styled from "styled-components";
5
5
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
6
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
6
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
7
7
  const FormStyled = styled.form.withConfig({
8
8
  shouldForwardProp: filterProps(),
9
9
  displayName: "FormStyled",
@@ -5,7 +5,7 @@ import { getBodySize } from "../../foundations/token/getBodySize/index.js";
5
5
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
6
6
  import { getOpacity } from "../../foundations/token/getOpacity/index.js";
7
7
  import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
8
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
8
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
9
9
  const FormElementStyled = styled.div.withConfig({
10
10
  shouldForwardProp: filterProps(),
11
11
  displayName: "FormElementStyled",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
4
- import "../../styled-DUsRG1Xh.js";
4
+ import "../../styled-B1bxWqtW.js";
5
5
  import styled from "styled-components";
6
6
  import { I as IconLoader } from "../../index-C3dW-7e_.js";
7
7
  import forcedColors from "../../foundations/media-query/forcedColors/index.js";
@@ -6,16 +6,16 @@ import ConsentMessage from "../ConsentMessage/index.js";
6
6
  import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
7
7
  import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js";
8
8
  import styled from "styled-components";
9
- import viewport from "../../foundations/media-query/viewport/index.js";
9
+ import { v as viewport } from "../../index-Ck2bCrhT.js";
10
10
  import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
11
11
  import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
12
12
  import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
13
13
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
14
14
  import { f as colorBorderSubtle } from "../../BorderColor-CYdSW9dg.js";
15
- import { b as borderRadiusMd, c as borderRadiusNone } from "../../BorderRadius-2LdggXbQ.js";
15
+ import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
16
16
  import { d as borderWidthSm } from "../../BorderWidth-eg_mz82k.js";
17
17
  import { c as cornerStraight } from "../../CornerStyle-JEbGNArR.js";
18
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
18
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
19
19
  const MapInner = ({
20
20
  setMap,
21
21
  children
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { createContext } from "react";
4
4
  import { d as divTagName, u as ulTagName, o as olTagName } from "../../tags-38kBhOn6.js";
5
5
  import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
6
- import { G as GridStyled } from "../../styled-BKmRVjNA.js";
6
+ import { G as GridStyled } from "../../styled-DGMsuBML.js";
7
7
  import { i as isObject, h as hasMatchingComponentName, a as isBottomSpacing } from "../../isObject-cuWKq2kY.js";
8
8
  const gridTags = [divTagName, ulTagName, olTagName];
9
9
  const gridAligns = ["left", "center", "right"];
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { useContext } from "react";
4
4
  import { d as divTagName, l as liTagName, n as navTagName, m as mainTagName, g as sectionTagName, i as asideTagName, j as articleTagName, u as ulTagName, o as olTagName } from "../../tags-38kBhOn6.js";
5
5
  import { validateGridColSpan, GridContext } from "../Grid/index.js";
6
- import { G as GridItemStyled } from "../../styled-D57p2ktn.js";
6
+ import { G as GridItemStyled } from "../../styled-Cz2kpbgE.js";
7
7
  import { i as isObject, h as hasMatchingComponentName } from "../../isObject-cuWKq2kY.js";
8
8
  const gridItemTags = [divTagName, liTagName, navTagName, mainTagName, sectionTagName, asideTagName, articleTagName];
9
9
  const gridItemAligns = ["left", "center", "right"];
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
- import FootnoteLink from "../FootnoteLink/index.js";
3
+ import { F as FootnoteLink } from "../../index-UJLGt4uV.js";
4
4
  import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
5
5
  import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
6
- import { H as HeadingStyled } from "../../styled-Csv7V9ez.js";
7
- import { a, h } from "../../styled-Csv7V9ez.js";
6
+ import { H as HeadingStyled } from "../../styled-Dmb8-99g.js";
7
+ import { a, h } from "../../styled-Dmb8-99g.js";
8
8
  import { a as h1TagName, b as h2TagName, h as h3TagName, c as h4TagName, e as h5TagName, f as h6TagName, d as divTagName, s as spanTagName, p as pTagName } from "../../tags-38kBhOn6.js";
9
9
  import { b as fontWeightLight, f as fontWeightRegular, a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
10
- import { d as textHeadingXl, c as textHeadingLg, a as textHeadingMd, b as textHeadingSm, t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
10
+ import { d as textHeadingXl, c as textHeadingLg, t as textHeadingMd, b as textHeadingSm, a as textHeadingXs } from "../../HeadingSize-CqqUYZWV.js";
11
11
  import { i as isObject, h as hasMatchingComponentName, a as isBottomSpacing } from "../../isObject-cuWKq2kY.js";
12
12
  const headingSizes = [textHeadingXl, textHeadingLg, textHeadingMd, textHeadingSm, textHeadingXs];
13
13
  const headlingAligns = ["left", "center"];
@@ -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 { a as spacingMd } from "../../Spacing-BMQelJYr.js";
6
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
6
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
7
7
  import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
8
8
  const IconStyled = styled.img.withConfig({
9
9
  shouldForwardProp: filterProps(),
@@ -2,7 +2,7 @@
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { I as IconLoader } from "../../index-C3dW-7e_.js";
4
4
  import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
5
- import "../../styled-DUsRG1Xh.js";
5
+ import "../../styled-B1bxWqtW.js";
6
6
  import styled from "styled-components";
7
7
  import { s as shadow28 } from "../../shadow-u158mzuN.js";
8
8
  import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
@@ -11,12 +11,12 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
11
11
  import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
12
12
  import { getOpacity } from "../../foundations/token/getOpacity/index.js";
13
13
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
14
- import { b as borderRadiusMd, a as borderRadiusFull } from "../../BorderRadius-2LdggXbQ.js";
14
+ import { b as borderRadiusMd, c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
15
15
  import { c as borderWidthSelected } from "../../BorderWidth-eg_mz82k.js";
16
- import { b as buttonHeight, p as primaryAppearance } from "../../styled-Dk6VS_Sg.js";
16
+ import { b as buttonHeight, p as primaryAppearance } from "../../styled-Dgv3RBlg.js";
17
17
  import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
18
18
  import { b as spacingXs, a as spacingMd } from "../../Spacing-BMQelJYr.js";
19
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
19
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
20
20
  import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
21
21
  import { g as getButtonAppearance, B as ButtonAppearanceColor } from "../../ButtonAppearanceHelper-D2SlSoU8.js";
22
22
  const iconButtonShapeSquare = "square";
@@ -3,17 +3,17 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import Body from "../Body/index.js";
4
4
  import Heading from "../Heading/index.js";
5
5
  import { d as iconSizeLg, g as iconSize3xl, b as iconSizeSm } from "../../props-7dcsjRUx.js";
6
- import "../../styled-DUsRG1Xh.js";
6
+ import "../../styled-B1bxWqtW.js";
7
7
  import InlineLink from "../InlineLink/index.js";
8
8
  import Link from "../Link/index.js";
9
- import { R as RichText } from "../../index-rbdl_kyF.js";
9
+ import { R as RichText } from "../../index-Cmrx-D-0.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";
13
13
  import { I as IconLoader } from "../../index-C3dW-7e_.js";
14
14
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
15
15
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
16
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
16
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
17
17
  const iconSnippetSizeSmall = "sm";
18
18
  const iconSnippetSizeLarge = "lg";
19
19
  const iconSnippetSize3Xl = "3xl";
@@ -1,16 +1,17 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { useImageComponent } from "../../hooks/useImageComponent/index.js";
4
3
  import styled from "styled-components";
5
4
  import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
6
- import { b as borderRadiusMd, c as borderRadiusNone } from "../../BorderRadius-2LdggXbQ.js";
7
- import { a as filterProps } from "../../filterProps-CPul3CC8.js";
8
- const aspectRatio1_1 = "1/1";
9
- const aspectRatio4_3 = "4/3";
10
- const aspectRatio16_9 = "16/9";
11
- const aspectRatio21_9 = "21/9";
12
- const aspectRatio32_9 = "32/9";
13
- const aspectRatio48_9 = "48/9";
5
+ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
6
+ import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
7
+ import { c as cornerStraight } from "../../CornerStyle-JEbGNArR.js";
8
+ import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
9
+ const objectFitContain = "contain";
10
+ const objectFitCover = "cover";
11
+ const objectFitNone = "none";
12
+ const horizontalAlignmentLeft = "left";
13
+ const horizontalAlignmentRight = "right";
14
+ const horizontalAlignmentCenter = "center";
14
15
  const objectPositionCenter = "center";
15
16
  const objectPositionLeftTop = "top left";
16
17
  const objectPositionLeftCenter = "center left";
@@ -18,59 +19,47 @@ const objectPositionLeftBottom = "bottom left";
18
19
  const objectPositionRightTop = "top right";
19
20
  const objectPositionRightCenter = "center right";
20
21
  const objectPositionRightBottom = "bottom right";
21
- const objectFitContain = "contain";
22
- const objectFitCover = "cover";
23
- const objectFitNone = "none";
24
- const ImageContainerStyled = styled.div.withConfig({
22
+ const aspectRatio1_1 = "1/1";
23
+ const aspectRatio4_3 = "4/3";
24
+ const aspectRatio16_9 = "16/9";
25
+ const aspectRatio21_9 = "21/9";
26
+ const aspectRatio32_9 = "32/9";
27
+ const aspectRatio48_9 = "48/9";
28
+ const ImageStyled = styled.img.withConfig({
25
29
  shouldForwardProp: filterProps(),
26
- displayName: "ImageContainerStyled",
30
+ displayName: "ImageStyled",
27
31
  componentId: "sc-z3qszb-0"
28
32
  })({
29
- overflow: "hidden",
30
- position: "relative",
31
- width: "100%",
32
- height: "100%",
33
- "& img": {
34
- position: "absolute",
35
- top: 0,
36
- left: 0,
37
- height: "100%",
38
- objectFit: "cover",
39
- width: "100%"
40
- }
33
+ display: "block",
34
+ width: "100%"
41
35
  }, ({
42
- aspectRatio
36
+ objectFit = "contain"
43
37
  }) => ({
44
- aspectRatio
38
+ objectFit
45
39
  }), ({
46
- roundedCorners
40
+ objectPosition
47
41
  }) => ({
48
- borderRadius: roundedCorners ? getBorderRadius(borderRadiusMd) : getBorderRadius(borderRadiusNone)
42
+ objectPosition
49
43
  }), ({
50
- objectFit = "contain"
44
+ horizontalAlignment = "left"
51
45
  }) => ({
52
- "& img": {
53
- objectFit
54
- }
46
+ marginLeft: horizontalAlignment === "left" ? 0 : "auto",
47
+ marginRight: horizontalAlignment === "right" ? 0 : "auto"
55
48
  }), ({
56
- objectPosition
49
+ corners = cornerStraight
57
50
  }) => ({
58
- "& img": {
59
- objectPosition
60
- }
51
+ borderRadius: corners === "rounded" ? getBorderRadius(borderRadiusMd) : getBorderRadius(borderRadiusNone)
61
52
  }), ({
62
- width,
63
- height
53
+ aspectRatio
64
54
  }) => ({
65
- width: width ? width : "100%",
66
- height: height ? height : "100%"
67
- }));
55
+ aspectRatio
56
+ }), getBottomSpacing);
68
57
  const Image = ({
58
+ alt = "",
69
59
  ...props
70
- }) => {
71
- const ImageComponent = useImageComponent();
72
- return /* @__PURE__ */ jsx(ImageContainerStyled, { aspectRatio: props.aspectRatio, roundedCorners: props.roundedCorners, objectFit: props.objectFit, objectPosition: props.objectPosition, width: props.width, height: props.height, children: /* @__PURE__ */ jsx(ImageComponent, { ...props }) });
73
- };
60
+ }) => /* @__PURE__ */ jsx(ImageStyled, { ..."" === alt ? {
61
+ "aria-hidden": true
62
+ } : {}, ...props, alt });
74
63
  export {
75
64
  aspectRatio16_9,
76
65
  aspectRatio1_1,
@@ -79,6 +68,9 @@ export {
79
68
  aspectRatio48_9,
80
69
  aspectRatio4_3,
81
70
  Image as default,
71
+ horizontalAlignmentCenter,
72
+ horizontalAlignmentLeft,
73
+ horizontalAlignmentRight,
82
74
  objectFitContain,
83
75
  objectFitCover,
84
76
  objectFitNone,
@@ -1,12 +1,14 @@
1
1
  import { ImgHTMLAttributes } from 'react';
2
2
  import { PatternProps } from '../../foundations/PatternProps';
3
- export declare const aspectRatio1_1 = "1/1";
4
- export declare const aspectRatio4_3 = "4/3";
5
- export declare const aspectRatio16_9 = "16/9";
6
- export declare const aspectRatio21_9 = "21/9";
7
- export declare const aspectRatio32_9 = "32/9";
8
- export declare const aspectRatio48_9 = "48/9";
9
- export type AspectRatio = typeof aspectRatio1_1 | typeof aspectRatio4_3 | typeof aspectRatio16_9 | typeof aspectRatio21_9 | typeof aspectRatio32_9 | typeof aspectRatio48_9;
3
+ import { CornerStyle } from '../../foundations/types/CornerStyle';
4
+ export declare const objectFitContain = "contain";
5
+ export declare const objectFitCover = "cover";
6
+ export declare const objectFitNone = "none";
7
+ export type ImageObjectFit = typeof objectFitContain | typeof objectFitCover | typeof objectFitNone;
8
+ export declare const horizontalAlignmentLeft = "left";
9
+ export declare const horizontalAlignmentRight = "right";
10
+ export declare const horizontalAlignmentCenter = "center";
11
+ export type ImageAlignment = typeof horizontalAlignmentLeft | typeof horizontalAlignmentRight | typeof horizontalAlignmentCenter;
10
12
  export declare const objectPositionCenter = "center";
11
13
  export declare const objectPositionLeftTop = "top left";
12
14
  export declare const objectPositionLeftCenter = "center left";
@@ -15,50 +17,45 @@ export declare const objectPositionRightTop = "top right";
15
17
  export declare const objectPositionRightCenter = "center right";
16
18
  export declare const objectPositionRightBottom = "bottom right";
17
19
  export type ImageObjectPosition = typeof objectPositionCenter | typeof objectPositionLeftTop | typeof objectPositionLeftCenter | typeof objectPositionLeftBottom | typeof objectPositionRightTop | typeof objectPositionRightCenter | typeof objectPositionRightBottom;
18
- export declare const objectFitContain = "contain";
19
- export declare const objectFitCover = "cover";
20
- export declare const objectFitNone = "none";
21
- export type ImageObjectFit = typeof objectFitContain | typeof objectFitCover | typeof objectFitNone;
22
- export interface ImageProps extends PatternProps, ImgHTMLAttributes<HTMLImageElement> {
20
+ export declare const aspectRatio1_1 = "1/1";
21
+ export declare const aspectRatio4_3 = "4/3";
22
+ export declare const aspectRatio16_9 = "16/9";
23
+ export declare const aspectRatio21_9 = "21/9";
24
+ export declare const aspectRatio32_9 = "32/9";
25
+ export declare const aspectRatio48_9 = "48/9";
26
+ export type AspectRatio = typeof aspectRatio1_1 | typeof aspectRatio4_3 | typeof aspectRatio16_9 | typeof aspectRatio21_9 | typeof aspectRatio32_9 | typeof aspectRatio48_9;
27
+ export interface ImageProps extends PatternProps, ImgHTMLAttributes<HTMLImageElement & HTMLSourceElement> {
23
28
  /**
24
29
  * Pin component's name from string to the concrete name
25
30
  */
26
31
  component?: 'Image';
27
32
  /**
28
- * Image source URL
29
- */
30
- src: string;
31
- /**
32
- * Multiple sources for responsiveness
33
- */
34
- srcSet?: string;
35
- /**
36
- * Alternative description of image. Leave empty to mark image as decorative and hidden for screen readers.
33
+ * Object-fit variations
37
34
  */
38
- alt?: string;
35
+ objectFit?: ImageObjectFit;
39
36
  /**
40
- * Image aspect-ratio
37
+ * objectPosition can be used for fine-tuning if the aspect ratio of the asset
38
+ * does not match the aspect ratio for the component in the layout 100%.
41
39
  */
42
- aspectRatio?: AspectRatio;
40
+ objectPosition?: ImageObjectPosition;
43
41
  /**
44
- * Images can optionally have rounded corners by using the “roundedCorners” property.
42
+ * Horizontal alignment of image inside its container
45
43
  */
46
- roundedCorners?: boolean;
44
+ horizontalAlignment?: ImageAlignment;
47
45
  /**
48
- * Object-fit variations
46
+ * Corner variations
49
47
  */
50
- objectFit?: ImageObjectFit;
48
+ corners?: CornerStyle;
51
49
  /**
52
- * objectPosition can be used for fine-tuning if the aspect ratio of the asset
53
- * does not match the aspect ratio for the component in the layout 100%.
50
+ * Image source URL
54
51
  */
55
- objectPosition?: ImageObjectPosition;
52
+ src: string;
56
53
  /**
57
- * While using aspectRatio is preferred, setting of a fixed height is also valid
54
+ * Alternative description of image. Leave empty to mark image as decorative and hidden for screen readers.
58
55
  */
59
- height?: number;
56
+ alt?: string;
60
57
  /**
61
- * While using aspectRatio is preferred, setting of a fixed width is also valid
58
+ * Image aspect-ratio
62
59
  */
63
- width?: number;
60
+ aspectRatio: AspectRatio;
64
61
  }
@@ -1,2 +1,2 @@
1
1
  import { ImageProps } from './props';
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" | "objectFit" | "objectPosition" | "roundedCorners">>> & string;
2
+ export declare const ImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, ImageProps>> & string;
@@ -4,25 +4,25 @@ 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-Vub90geg.js";
8
- import { R as RichText } from "../../index-rbdl_kyF.js";
7
+ import { P as Price, b as priceSizeSm } from "../../index-tT4JzApY.js";
8
+ import { R as RichText } from "../../index-Cmrx-D-0.js";
9
9
  import { b as fontWeightLight } from "../../FontWeight-C2pGs7aR.js";
10
10
  import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
11
11
  import { a as spacingMd, c as spacingSm, d as spacingXl, b as spacingXs, e as spacing2Xs, s as spacingNone } from "../../Spacing-BMQelJYr.js";
12
12
  import styled from "styled-components";
13
- import ArtDirectedImage from "../ArtDirectedImage/index.js";
14
13
  import Badge from "../Badge/index.js";
15
14
  import ButtonGroup from "../ButtonGroup/index.js";
16
15
  import Grid from "../Grid/index.js";
17
16
  import GridItem from "../GridItem/index.js";
18
- import viewport from "../../foundations/media-query/viewport/index.js";
17
+ import ResponsiveImage from "../ResponsiveImage/index.js";
18
+ import { v as viewport } from "../../index-Ck2bCrhT.js";
19
19
  import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
20
20
  import { getBodySize } from "../../foundations/token/getBodySize/index.js";
21
21
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
22
22
  import { b as colorBackgroundOverlay } from "../../BackgroundColor-DSOSZvNi.js";
23
23
  import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
24
- import { a as flexOrientationVertical } from "../../styled-DG6HSLPJ.js";
25
- import { a as headingAlignCenter } from "../../styled-Csv7V9ez.js";
24
+ import { a as flexOrientationVertical } from "../../styled-O5mL4jlL.js";
25
+ import { a as headingAlignCenter } from "../../styled-Dmb8-99g.js";
26
26
  const imageHeaderVariantFull = "full";
27
27
  const imageHeaderVariantSplit = "split";
28
28
  const imageHeaderPositionRight = "right";
@@ -87,7 +87,7 @@ const ImageHeaderImagesContainerStyled = styled(GridItem).withConfig({
87
87
  };
88
88
  }
89
89
  });
90
- const ImageHeaderResponsiveImageStyled = styled(ArtDirectedImage).withConfig({
90
+ const ImageHeaderResponsiveImageStyled = styled(ResponsiveImage).withConfig({
91
91
  displayName: "ImageHeaderResponsiveImageStyled",
92
92
  componentId: "sc-7ig3h-2"
93
93
  })({
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { ResponsiveImageProps } from '../ArtDirectedImage/props';
3
2
  import { BadgeProps } from '../Badge/props';
4
3
  import { BodyProps } from '../Body/props';
5
4
  import { ButtonProps } from '../Button/props';
@@ -8,6 +7,7 @@ import { ButtonGroupProps } from '../ButtonGroup/props';
8
7
  import { GridColSpan } from '../Grid/props';
9
8
  import { HeadingProps } from '../Heading/props';
10
9
  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';
@@ -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 ImageHeaderResponsiveImageStyled: 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>>;
5
+ export declare const ImageHeaderResponsiveImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../ResponsiveImage').ResponsiveImageProps, Pick<ImageHeaderProps, "position" | "variant">>> & string & Omit<import('react').FC<import('../ResponsiveImage').ResponsiveImageProps>, 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>>;