@vodafone_de/brix-components 7.1.8 → 7.1.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.
Files changed (137) hide show
  1. package/dist/{BorderRadius-ClUShVLu.js → BorderRadius-2LdggXbQ.js} +2 -2
  2. package/dist/{HeadingSize-CqqUYZWV.js → HeadingSize-CfCRn3Lh.js} +2 -2
  3. package/dist/{TableHead-C2zQ4jce.js → TableHead-Cfn2iQRg.js} +5 -28
  4. package/dist/{TableWrapper-C8SpplcL.js → TableWrapper-BrnjxwJz.js} +1 -1
  5. package/dist/breakpoint-CzBSbbY7.js +9 -0
  6. package/dist/components/Accordion/index.js +2 -2
  7. package/dist/components/AccordionGroup/index.js +1 -1
  8. package/dist/components/ArtDirectedImage/index.d.ts +5 -0
  9. package/dist/components/ArtDirectedImage/index.js +44 -0
  10. package/dist/components/ArtDirectedImage/props.d.ts +18 -0
  11. package/dist/components/ArtDirectedImage/styled.d.ts +2 -0
  12. package/dist/components/Badge/index.js +3 -3
  13. package/dist/components/Body/index.js +1 -1
  14. package/dist/components/BottomBar/index.js +3 -3
  15. package/dist/components/Button/index.js +2 -2
  16. package/dist/components/ButtonAsLink/index.js +2 -2
  17. package/dist/components/ButtonGroup/index.js +2 -2
  18. package/dist/components/Card/index.js +2 -2
  19. package/dist/components/Carousel/index.js +6 -6
  20. package/dist/components/Checkbox/index.js +3 -3
  21. package/dist/components/CheckboxGroup/index.js +2 -2
  22. package/dist/components/Collapsible/index.js +1 -1
  23. package/dist/components/ColorSwatch/index.js +2 -2
  24. package/dist/components/ColorSwatchGroup/index.js +3 -3
  25. package/dist/components/ConsentMessage/index.js +4 -4
  26. package/dist/components/Container/index.js +2 -2
  27. package/dist/components/DateInput/index.js +2 -2
  28. package/dist/components/DemoBox/index.js +2 -8
  29. package/dist/components/Dialog/index.js +2 -2
  30. package/dist/components/DiscoveryCard/index.js +11 -11
  31. package/dist/components/DiscoveryCard/styled.d.ts +1 -1
  32. package/dist/components/DiscoveryCardGroup/index.js +1 -1
  33. package/dist/components/Divider/index.js +1 -1
  34. package/dist/components/Fieldset/index.js +1 -1
  35. package/dist/components/FilterGroup/index.js +3 -3
  36. package/dist/components/Flex/index.js +2 -2
  37. package/dist/components/FlexItem/index.js +1 -1
  38. package/dist/components/FootnoteContent/index.js +1 -1
  39. package/dist/components/Form/index.js +1 -1
  40. package/dist/components/FormElement/index.js +1 -1
  41. package/dist/components/FormHelperStatusIcon/index.js +1 -1
  42. package/dist/components/GoogleMap/index.js +3 -3
  43. package/dist/components/Grid/index.js +1 -1
  44. package/dist/components/GridItem/index.js +1 -1
  45. package/dist/components/Heading/index.js +3 -3
  46. package/dist/components/HifiIcon/index.js +1 -1
  47. package/dist/components/IconButton/index.js +4 -4
  48. package/dist/components/IconSnippet/index.js +3 -3
  49. package/dist/components/Image/index.js +47 -39
  50. package/dist/components/Image/props.d.ts +35 -32
  51. package/dist/components/Image/styled.d.ts +1 -1
  52. package/dist/components/ImageHeader/index.js +7 -7
  53. package/dist/components/ImageHeader/props.d.ts +1 -1
  54. package/dist/components/ImageHeader/styled.d.ts +1 -1
  55. package/dist/components/InfoBanner/index.js +3 -3
  56. package/dist/components/InlineIcon/index.js +1 -1
  57. package/dist/components/InlineLink/index.js +1 -1
  58. package/dist/components/Input/index.js +1 -1
  59. package/dist/components/Label/index.js +1 -1
  60. package/dist/components/Legend/index.js +1 -1
  61. package/dist/components/Link/index.js +2 -2
  62. package/dist/components/LinkAsButton/index.js +1 -1
  63. package/dist/components/LinkList/index.js +1 -1
  64. package/dist/components/LinkListItem/index.js +4 -4
  65. package/dist/components/LoadingSpinner/index.js +1 -1
  66. package/dist/components/LocalStyle/index.js +2 -2
  67. package/dist/components/MediaText/index.js +7 -7
  68. package/dist/components/Notification/index.js +4 -4
  69. package/dist/components/OpenTextFootnoteAdapter/index.js +2 -2
  70. package/dist/components/Overlay/index.js +1 -1
  71. package/dist/components/PickerGroup/index.js +5 -5
  72. package/dist/components/Price/index.js +1 -1
  73. package/dist/components/ProductCard/index.js +4 -4
  74. package/dist/components/QuickLinkList/index.js +4 -4
  75. package/dist/components/RadioGroup/index.js +2 -2
  76. package/dist/components/Rating/index.js +2 -2
  77. package/dist/components/RichText/index.js +1 -1
  78. package/dist/components/RichtTextContentful/index.js +2 -2
  79. package/dist/components/ScreenreaderOnly/index.js +1 -1
  80. package/dist/components/SearchInput/index.js +4 -4
  81. package/dist/components/SelectInput/index.js +3 -3
  82. package/dist/components/Stepper/index.js +4 -3
  83. package/dist/components/SuggestInput/index.js +4 -5
  84. package/dist/components/Switch/index.js +3 -3
  85. package/dist/components/TabGroup/index.js +3 -3
  86. package/dist/components/Table/index.js +2 -2
  87. package/dist/components/Table/styled.d.ts +0 -2
  88. package/dist/components/TabularPrice/index.js +1 -1
  89. package/dist/components/TextList/index.js +2 -2
  90. package/dist/components/Textarea/index.js +3 -3
  91. package/dist/components/TimeInput/index.js +2 -2
  92. package/dist/components/Tray/index.js +3 -3
  93. package/dist/components/YoutubeVideo/index.js +1 -1
  94. package/dist/contentful/index.js +10 -10
  95. package/dist/contentful/live-preview-inspector/index.js +1 -1
  96. package/dist/contentful/live-preview-renderer/index.js +1 -1
  97. package/dist/contentful/renderer/index.js +1 -1
  98. package/dist/{cssVars-CR3xqdPx.js → cssVars-_wntC-Ac.js} +2 -2
  99. package/dist/filterProps-CPul3CC8.js +17 -0
  100. package/dist/foundations/GlobalStyle/index.js +1 -1
  101. package/dist/foundations/media-query/viewport/index.js +24 -4
  102. package/dist/hooks/useImageComponent/index.d.ts +28 -0
  103. package/dist/hooks/useImageComponent/index.js +17 -0
  104. package/dist/hooks/usePictureComponent/index.d.ts +25 -0
  105. package/dist/hooks/usePictureComponent/index.js +27 -0
  106. package/dist/hooks/useViewport/index.js +2 -2
  107. package/dist/{index-CHzok6W_.js → index-BPweURE-.js} +4 -4
  108. package/dist/{index-G2mpsxF7.js → index-DKCzYjXw.js} +1 -1
  109. package/dist/{index-DLvMM1Dq.js → index-Vub90geg.js} +1 -1
  110. package/dist/{index-CifS-Z_9.js → index-rbdl_kyF.js} +4 -4
  111. package/dist/{index-ByPSWRQ0.js → index-tpq3BGwZ.js} +3 -3
  112. package/dist/index.d.ts +4 -2
  113. package/dist/index.js +159 -152
  114. package/dist/{mapContentToComponents-DLxIwtHo.js → mapContentToComponents-bL4ms1AC.js} +10 -10
  115. package/dist/{styled-BBO2jrba.js → styled-13a_Vk0D.js} +2 -2
  116. package/dist/{styled-DGMsuBML.js → styled-BKmRVjNA.js} +1 -1
  117. package/dist/{styled-BKWEE3dx.js → styled-B_ihuvyB.js} +1 -1
  118. package/dist/{styled-BXtzJJFu.js → styled-C6Wms75x.js} +1 -1
  119. package/dist/{styled-BBG87P4U.js → styled-CKK_LUlC.js} +4 -4
  120. package/dist/{styled-CE_Y6O4R.js → styled-CQLDmqmZ.js} +2 -2
  121. package/dist/{styled-BQGCfF-s.js → styled-CWusLu5R.js} +2 -2
  122. package/dist/{styled-Dmb8-99g.js → styled-Csv7V9ez.js} +1 -1
  123. package/dist/{styled-Cz2kpbgE.js → styled-D57p2ktn.js} +4 -4
  124. package/dist/{styled-Dr-tPBqx.js → styled-DCLv3G2j.js} +1 -1
  125. package/dist/{styled-O5mL4jlL.js → styled-DG6HSLPJ.js} +1 -1
  126. package/dist/{styled-B1bxWqtW.js → styled-DUsRG1Xh.js} +1 -1
  127. package/dist/{styled-Du4LgXoA.js → styled-D_F38PuI.js} +2 -2
  128. package/dist/{styled-Dgv3RBlg.js → styled-Dk6VS_Sg.js} +3 -3
  129. package/dist/{styled-BYYivuzh.js → styled-DoOOutJj.js} +1 -1
  130. package/dist/{styled-VuUKI7PE.js → styled-QLVvcMdB.js} +1 -1
  131. package/package.json +1 -1
  132. package/dist/components/ResponsiveImage/index.d.ts +0 -5
  133. package/dist/components/ResponsiveImage/index.js +0 -89
  134. package/dist/components/ResponsiveImage/props.d.ts +0 -16
  135. package/dist/components/ResponsiveImage/styled.d.ts +0 -4
  136. package/dist/filterProps-BWnAPYBL.js +0 -17
  137. package/dist/index-Ck2bCrhT.js +0 -32
@@ -2,7 +2,7 @@ import styled, { keyframes, css } from "styled-components";
2
2
  import Body from "./components/Body/index.js";
3
3
  import forcedColors from "./foundations/media-query/forcedColors/index.js";
4
4
  import reducedMotion from "./foundations/media-query/reducedMotion/index.js";
5
- import { v as viewport } from "./index-Ck2bCrhT.js";
5
+ import viewport from "./foundations/media-query/viewport/index.js";
6
6
  import { getBackgroundColor } from "./foundations/token/getBackgroundColor/index.js";
7
7
  import { getBodySize } from "./foundations/token/getBodySize/index.js";
8
8
  import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
@@ -14,7 +14,7 @@ import { b as colorBackgroundOverlay } from "./BackgroundColor-DSOSZvNi.js";
14
14
  import { o as opacityOverlay } from "./Opacity-smkGiwsf.js";
15
15
  import { l as largeSize } from "./SizeTypes-Ck_RdzIf.js";
16
16
  import { s as spacingNone } from "./Spacing-BMQelJYr.js";
17
- import { a as filterProps } from "./filterProps-BWnAPYBL.js";
17
+ import { a as filterProps } from "./filterProps-CPul3CC8.js";
18
18
  const loadingSpinnerOverlays = {
19
19
  Light: `rgba(255, 255, 255, ${getOpacity(opacityOverlay)})`,
20
20
  Dark: `rgba(38, 38, 38, ${getOpacity(opacityOverlay)})`
@@ -1,19 +1,19 @@
1
1
  import styled from "styled-components";
2
2
  import { g as getButtonAppearance } from "./ButtonAppearanceHelper-D2SlSoU8.js";
3
3
  import { I as IconLoader } from "./index-C3dW-7e_.js";
4
- import { v as viewport } from "./index-Ck2bCrhT.js";
4
+ import viewport from "./foundations/media-query/viewport/index.js";
5
5
  import { getBodySize } from "./foundations/token/getBodySize/index.js";
6
6
  import { getBorderRadius } from "./foundations/token/getBorderRadius/index.js";
7
7
  import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
8
8
  import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
9
9
  import { getOpacity } from "./foundations/token/getOpacity/index.js";
10
10
  import { getSpacing } from "./foundations/token/getSpacing/index.js";
11
- import { b as borderRadiusMd } from "./BorderRadius-ClUShVLu.js";
11
+ import { b as borderRadiusMd } from "./BorderRadius-2LdggXbQ.js";
12
12
  import { f as fontWeightRegular } from "./FontWeight-C2pGs7aR.js";
13
13
  import { a as opacityDisabled } from "./Opacity-smkGiwsf.js";
14
14
  import { b as spacingXs, d as spacingXl, s as spacingNone, a as spacingMd } from "./Spacing-BMQelJYr.js";
15
15
  import { t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
16
- import { a as filterProps } from "./filterProps-BWnAPYBL.js";
16
+ import { a as filterProps } from "./filterProps-CPul3CC8.js";
17
17
  const leftPosition = "left";
18
18
  const primaryAppearance = "primary";
19
19
  const tertiaryAppearance = "tertiary";
@@ -7,7 +7,7 @@ import { getSpacing } from "./foundations/token/getSpacing/index.js";
7
7
  import { f as fontWeightRegular } from "./FontWeight-C2pGs7aR.js";
8
8
  import { a as spacingMd, s as spacingNone } from "./Spacing-BMQelJYr.js";
9
9
  import { t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
10
- import { a as filterProps } from "./filterProps-BWnAPYBL.js";
10
+ import { a as filterProps } from "./filterProps-CPul3CC8.js";
11
11
  const TextListItemStyled = styled.li.withConfig({
12
12
  shouldForwardProp: filterProps(),
13
13
  displayName: "TextListItemStyled",
@@ -1,6 +1,6 @@
1
1
  import require$$0 from "react";
2
2
  import styled from "styled-components";
3
- import { a as filterProps } from "./filterProps-BWnAPYBL.js";
3
+ import { a as filterProps } from "./filterProps-CPul3CC8.js";
4
4
  var richTextReactRenderer_es5 = {};
5
5
  var dist = {};
6
6
  var isPlainObj;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vodafone_de/brix-components",
3
3
  "description": "Brix is the digital design system for vodafone.de",
4
- "version": "7.1.8",
4
+ "version": "7.1.9",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
7
7
  ".": {
@@ -1,5 +0,0 @@
1
- import { FC } from 'react';
2
- import { ResponsiveImageProps } from './props';
3
- declare const ResponsiveImage: FC<ResponsiveImageProps>;
4
- export default ResponsiveImage;
5
- export * from './props';
@@ -1,89 +0,0 @@
1
- "use client";
2
- import { jsxs, jsx } from "react/jsx-runtime";
3
- import { v as viewport, a as breakpoint_large, c as breakpoint_medium } from "../../index-Ck2bCrhT.js";
4
- import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
5
- import styled from "styled-components";
6
- import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
7
- import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
8
- import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
9
- import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
10
- const ResponsiveImagePictureStyled = styled.picture.withConfig({
11
- shouldForwardProp: filterProps(),
12
- displayName: "ResponsiveImagePictureStyled",
13
- componentId: "sc-1itvcas-0"
14
- })({});
15
- const ResponsiveImageStyled = styled.img.withConfig({
16
- shouldForwardProp: filterProps(),
17
- displayName: "ResponsiveImageStyled",
18
- componentId: "sc-1itvcas-1"
19
- })({
20
- display: "block",
21
- width: "100%"
22
- }, ({
23
- images
24
- }) => {
25
- var _a, _b;
26
- return {
27
- ...images.sm.objectFit && {
28
- objectFit: images.sm.objectFit
29
- },
30
- ...((_a = images.md) == null ? void 0 : _a.objectFit) && viewport.md({
31
- objectFit: images.md.objectFit
32
- }),
33
- ...((_b = images.lg) == null ? void 0 : _b.objectFit) && viewport.lg({
34
- objectFit: images.lg.objectFit
35
- })
36
- };
37
- }, ({
38
- images
39
- }) => {
40
- var _a, _b;
41
- return {
42
- ...images.sm.objectPosition && {
43
- objectPosition: images.sm.objectPosition
44
- },
45
- ...((_a = images.md) == null ? void 0 : _a.objectPosition) && viewport.md({
46
- objectPosition: images.md.objectPosition
47
- }),
48
- ...((_b = images.lg) == null ? void 0 : _b.objectPosition) && viewport.lg({
49
- objectPosition: images.lg.objectPosition
50
- })
51
- };
52
- }, ({
53
- images = {}
54
- }) => {
55
- var _a, _b, _c;
56
- return {
57
- ...((_a = images.sm) == null ? void 0 : _a.aspectRatio) && {
58
- aspectRatio: images.sm.aspectRatio
59
- },
60
- ...((_b = images.md) == null ? void 0 : _b.aspectRatio) && viewport.md({
61
- aspectRatio: images.md.aspectRatio
62
- }),
63
- ...((_c = images.lg) == null ? void 0 : _c.aspectRatio) && viewport.lg({
64
- aspectRatio: images.lg.aspectRatio
65
- })
66
- };
67
- }, ({
68
- images: {
69
- sm: {
70
- corners
71
- }
72
- }
73
- }) => ({
74
- borderRadius: corners === "rounded" ? getBorderRadius(borderRadiusMd) : getBorderRadius(borderRadiusNone)
75
- }), getBottomSpacing);
76
- const ResponsiveImage = ({
77
- images,
78
- bottomSpacing = spacingMd,
79
- ...props
80
- }) => /* @__PURE__ */ jsxs(ResponsiveImagePictureStyled, { ...props, children: [
81
- images.lg && /* @__PURE__ */ jsx("source", { media: `(min-width: ${breakpoint_large})`, srcSet: images.lg.src }),
82
- images.md && /* @__PURE__ */ jsx("source", { media: `(min-width: ${breakpoint_medium})`, srcSet: images.md.src }),
83
- /* @__PURE__ */ jsx(ResponsiveImageStyled, { ..."" === images.sm.alt ? {
84
- "aria-hidden": true
85
- } : {}, images, ...images.sm, bottomSpacing })
86
- ] });
87
- export {
88
- ResponsiveImage as default
89
- };
@@ -1,16 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
- import { ImageProps } from '../Image/props';
3
- import { PatternProps } from '../../foundations/PatternProps';
4
- import { ViewportName } from '../../foundations/types/Viewport';
5
- export type ResponsiveImageType = {
6
- sm: ImageProps;
7
- } & {
8
- [key in Exclude<ViewportName, 'sm'>]?: ImageProps;
9
- };
10
- export interface ResponsiveImageProps extends PatternProps, HTMLAttributes<HTMLElement> {
11
- /**
12
- * Pin component's name from string to the concrete name
13
- */
14
- component?: 'ResponsiveImage';
15
- images: ResponsiveImageType;
16
- }
@@ -1,4 +0,0 @@
1
- import { ImageProps } from '../Image/props';
2
- import { ResponsiveImageProps } from './props';
3
- export declare const ResponsiveImagePictureStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, Omit<ResponsiveImageProps, "bottomSpacing" | "images">>> & string;
4
- export declare const ResponsiveImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, ImageProps & Pick<ResponsiveImageProps, "images">>> & string;
@@ -1,17 +0,0 @@
1
- const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "badge", "border", "borderBottom", "bottomSpacing", "buttonLink", "buttons", "coloringMode", "colorSwatch", "component", "contentGridDesktopColumns", "corners", "coversFullPage", "description", "elevation", "expanded", "filterItems", "footnote", "gapSpacing", "grow", "handleOnClick", "handleOnToogle", "hasOverlay", "heading", "heightSm", "heightMd", "heightLg", "horizontalAlignment", "icon", "iconAlign", "iconName", "iconPosition", "images", "internal", "isActive", "isChecked", "isDisabled", "isFullscreen", "isInHoverRange", "isLastItemInList", "isOpen", "isOrdered", "isSelected", "isTransparentBackground", "items", "jumpToClickedItem", "justify", "justifyHorizontal", "label", "lg", "loadingSpinnerChild", "mapId", "md", "message", "more", "needsBorder", "nextAriaLabel", "notificationType", "objectFit", "objectPosition", "offset", "onUpdate", "openMultiple", "orientation", "padding", "prefix", "prefixWeight", "prevAriaLabel", "price", "productId", "promoPrice", "screenReaderInstruction", "showList", "size", "sm", "spacing", "spinnerType", "status", "stretch", "strikePrice", "suffix", "tag", "textContent", "uid", "variant", "verticalPadding", "viewportHeight", "weight", "width"];
2
- const filterProps = (propsNotPassToDom = []) => {
3
- const shouldForwardProp = (prop) => {
4
- if ("string" !== typeof prop) {
5
- return false;
6
- }
7
- return ![...propsNotPassToDom, ...propsNotPassToDomDefault].includes(prop);
8
- };
9
- return shouldForwardProp;
10
- };
11
- const filterPropsForUnstyledComponent = (props) => {
12
- return Object.fromEntries(Object.entries(props).filter(([key]) => !propsNotPassToDomDefault.includes(key)));
13
- };
14
- export {
15
- filterProps as a,
16
- filterPropsForUnstyledComponent as f
17
- };
@@ -1,32 +0,0 @@
1
- const breakpoint_medium_number = 768;
2
- const breakpoint_medium = `${breakpoint_medium_number}px`;
3
- const breakpoint_large_number = 1025;
4
- const breakpoint_large = `${breakpoint_large_number}px`;
5
- const mediumMediaQuery = `screen and (min-width: ${breakpoint_medium})`;
6
- const largeMediaQuery = `screen and (min-width: ${breakpoint_large})`;
7
- const md = (stylesInViewport) => {
8
- return {
9
- [`@media ${mediumMediaQuery}`]: {
10
- ...stylesInViewport
11
- }
12
- };
13
- };
14
- const lg = (stylesInViewport) => {
15
- return {
16
- [`@media ${largeMediaQuery}`]: {
17
- ...stylesInViewport
18
- }
19
- };
20
- };
21
- const viewport = {
22
- md,
23
- lg
24
- };
25
- export {
26
- breakpoint_large as a,
27
- breakpoint_medium_number as b,
28
- breakpoint_medium as c,
29
- largeMediaQuery as l,
30
- mediumMediaQuery as m,
31
- viewport as v
32
- };