@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.
Files changed (160) hide show
  1. package/dist/{BorderRadius-ClUShVLu.js → BorderRadius-2LdggXbQ.js} +2 -2
  2. package/dist/components/Accordion/index.js +1 -1
  3. package/dist/components/AccordionGroup/index.js +1 -1
  4. package/dist/components/ArtDirectedImage/index.d.ts +5 -0
  5. package/dist/components/ArtDirectedImage/index.js +75 -0
  6. package/dist/components/ArtDirectedImage/props.d.ts +24 -0
  7. package/dist/components/ArtDirectedImage/styled.d.ts +2 -0
  8. package/dist/components/ArtDirectedImage/validate.d.ts +3 -0
  9. package/dist/components/Badge/index.js +2 -3
  10. package/dist/components/Body/index.js +4 -5
  11. package/dist/components/BottomBar/index.js +4 -4
  12. package/dist/components/BottomBar/props.d.ts +1 -1
  13. package/dist/components/Button/index.js +4 -5
  14. package/dist/components/ButtonAsLink/index.js +2 -3
  15. package/dist/components/ButtonGroup/index.js +6 -6
  16. package/dist/components/ButtonGroup/props.d.ts +2 -2
  17. package/dist/components/ButtonGroup/validate.d.ts +2 -2
  18. package/dist/components/Calendar/index.js +305 -72
  19. package/dist/components/Card/index.js +3 -3
  20. package/dist/components/Carousel/index.js +6 -7
  21. package/dist/components/Checkbox/index.js +2 -2
  22. package/dist/components/CheckboxGroup/index.js +2 -2
  23. package/dist/components/Collapsible/index.js +19 -5
  24. package/dist/components/Collapsible/props.d.ts +5 -0
  25. package/dist/components/Collapsible/styled.d.ts +1 -1
  26. package/dist/components/ColorSwatch/index.js +1 -1
  27. package/dist/components/ColorSwatchGroup/index.js +2 -2
  28. package/dist/components/ConsentMessage/index.js +2 -2
  29. package/dist/components/Container/index.d.ts +1 -0
  30. package/dist/components/Container/index.js +10 -105
  31. package/dist/components/Container/styled.d.ts +2 -0
  32. package/dist/components/DateInput/index.js +1 -1
  33. package/dist/components/DemoBox/index.js +1 -1
  34. package/dist/components/Dialog/index.js +1 -1
  35. package/dist/components/DiscoveryCard/index.js +14 -11
  36. package/dist/components/DiscoveryCard/styled.d.ts +1 -1
  37. package/dist/components/DiscoveryCardGroup/index.js +12 -10
  38. package/dist/components/Divider/index.js +1 -1
  39. package/dist/components/EnergySnippet/index.js +2 -2
  40. package/dist/components/Fieldset/index.js +1 -1
  41. package/dist/components/FilterGroup/index.js +3 -3
  42. package/dist/components/Flex/index.js +5 -2
  43. package/dist/components/Flex/props.d.ts +11 -3
  44. package/dist/components/Flex/stories/alignCenterArgs.d.ts +2 -0
  45. package/dist/components/Flex/stories/alignEndArgs.d.ts +2 -0
  46. package/dist/components/Flex/stories/alignStartArgs.d.ts +2 -0
  47. package/dist/components/Flex/styled.d.ts +3 -2
  48. package/dist/components/FlexItem/index.js +1 -1
  49. package/dist/components/FootnoteContent/index.js +1 -1
  50. package/dist/components/FootnoteLink/index.js +2 -2
  51. package/dist/components/Form/index.js +2 -2
  52. package/dist/components/FormElement/index.js +1 -1
  53. package/dist/components/GoogleMap/index.js +2 -2
  54. package/dist/components/Grid/index.d.ts +3 -1
  55. package/dist/components/Grid/index.js +16 -91
  56. package/dist/components/GridItem/index.d.ts +7 -0
  57. package/dist/components/GridItem/index.js +11 -54
  58. package/dist/components/Heading/index.js +4 -5
  59. package/dist/components/HifiIcon/index.js +1 -1
  60. package/dist/components/IconButton/index.js +3 -3
  61. package/dist/components/IconSnippet/index.js +3 -3
  62. package/dist/components/IconSnippetList/index.js +2 -3
  63. package/dist/components/Image/index.js +111 -52
  64. package/dist/components/Image/props.d.ts +21 -35
  65. package/dist/components/Image/styled.d.ts +1 -1
  66. package/dist/components/Image/validate.d.ts +1 -4
  67. package/dist/components/ImageHeader/index.js +18 -25
  68. package/dist/components/ImageHeader/props.d.ts +2 -2
  69. package/dist/components/ImageHeader/styled.d.ts +1 -1
  70. package/dist/components/InfoBanner/index.js +1 -1
  71. package/dist/components/InlineIcon/index.js +1 -1
  72. package/dist/components/InlineLink/index.js +1 -1
  73. package/dist/components/Input/index.js +2 -3
  74. package/dist/components/Label/index.js +2 -3
  75. package/dist/components/Legend/index.js +1 -1
  76. package/dist/components/Link/index.js +4 -5
  77. package/dist/components/LinkAsButton/index.js +1 -2
  78. package/dist/components/LinkList/index.js +2 -3
  79. package/dist/components/LinkListItem/index.js +5 -5
  80. package/dist/components/LoadingSpinner/index.js +2 -2
  81. package/dist/components/LocalStyle/index.js +2 -2
  82. package/dist/components/MediaText/index.js +5 -6
  83. package/dist/components/Notification/index.js +3 -3
  84. package/dist/components/OpenTextFootnoteAdapter/index.js +3 -3
  85. package/dist/components/Overlay/index.js +1 -1
  86. package/dist/components/PickerGroup/index.js +8 -11
  87. package/dist/components/Price/index.d.ts +1 -1
  88. package/dist/components/Price/index.js +2 -3
  89. package/dist/components/ProductCard/index.js +29 -22
  90. package/dist/components/ProductCard/props.d.ts +11 -14
  91. package/dist/components/ProductCard/styled.d.ts +1 -0
  92. package/dist/components/QuickLinkList/index.js +3 -5
  93. package/dist/components/RadioGroup/index.js +2 -2
  94. package/dist/components/Rating/index.js +2 -2
  95. package/dist/components/RichText/index.js +1 -1
  96. package/dist/components/RichtTextContentful/index.js +2 -2
  97. package/dist/components/ScreenreaderOnly/index.js +1 -1
  98. package/dist/components/SearchInput/index.js +4 -5
  99. package/dist/components/SelectInput/index.js +3 -4
  100. package/dist/components/Stepper/index.js +3 -4
  101. package/dist/components/SuggestInput/index.js +4 -5
  102. package/dist/components/Switch/index.js +2 -2
  103. package/dist/components/TabGroup/index.js +2 -2
  104. package/dist/components/TabularPrice/index.js +2 -3
  105. package/dist/components/TextList/index.js +2 -3
  106. package/dist/components/Textarea/index.js +3 -4
  107. package/dist/components/TimeInput/index.js +1 -1
  108. package/dist/components/Tray/index.js +1 -1
  109. package/dist/components/UtilityLink/index.js +20 -2
  110. package/dist/components/UtilityLink/styled.d.ts +1 -0
  111. package/dist/components/YoutubeVideo/index.js +2 -2
  112. package/dist/contentful/components.d.ts +1 -1
  113. package/dist/contentful/live-preview-inspector/index.js +1 -1
  114. package/dist/contentful/live-preview-renderer/index.js +1 -1
  115. package/dist/contentful/map/artDirectedImage.d.ts +4 -0
  116. package/dist/contentful/renderer/index.js +1 -1
  117. package/dist/{cssVars-ZsZIfkeD.js → cssVars-TmhA1NpG.js} +1 -1
  118. package/dist/filterProps-CxkibNnG.js +18 -0
  119. package/dist/foundations/GlobalStyle/index.js +1 -1
  120. package/dist/getSizesFromGridConfig-DKOLupyb.js +48 -0
  121. package/dist/hooks/useImageComponent/index.d.ts +37 -0
  122. package/dist/hooks/useImageComponent/index.js +23 -0
  123. package/dist/hooks/usePictureComponent/index.d.ts +49 -0
  124. package/dist/hooks/usePictureComponent/index.js +38 -0
  125. package/dist/hooks/useViewport/index.js +5 -20
  126. package/dist/{index-ClAH0TNC.js → index-72IFVw5W.js} +14 -12
  127. package/dist/{index-BJHhIBYl.js → index-BsykXBqC.js} +1 -1
  128. package/dist/index-Bu-7sSif.js +201 -0
  129. package/dist/{index-DCE5HNIR.js → index-C2E3JrhF.js} +1 -1
  130. package/dist/{index-TL0X3rXH.js → index-DCXRnuHz.js} +7 -8
  131. package/dist/index-DKCzYjXw.js +25 -0
  132. package/dist/{index-C4eCcl02.js → index-DP6Nlg-a.js} +4 -5
  133. package/dist/index-DbG0QL9D.js +113 -0
  134. package/dist/{index-CEotMXpL.js → index-Dd-A7i9Y.js} +3 -4
  135. package/dist/{index-j22agtAk.js → index-DwGcrvTh.js} +4 -5
  136. package/dist/index.d.ts +4 -2
  137. package/dist/index.js +213 -212
  138. package/dist/{mapContentToComponents-C_O2rRrX.js → mapContentToComponents-DcPjYAXH.js} +155 -140
  139. package/dist/{styled-Dw5c-xwf.js → styled-BIcsESkS.js} +1 -1
  140. package/dist/{styled-7vJ7mrAA.js → styled-BKH3egch.js} +2 -2
  141. package/dist/{styled-BxkvYuWW.js → styled-CUp4EbPh.js} +23 -2
  142. package/dist/{styled-BBXC0aka.js → styled-D-fzMZNS.js} +1 -1
  143. package/dist/{styled-0KSRG-Fv.js → styled-DdeOXNN9.js} +26 -4
  144. package/dist/{styled-xKyZg4q9.js → styled-DmMk0W0J.js} +2 -2
  145. package/dist/{styled-Dq0NuP5r.js → styled-rsUoUFyl.js} +2 -2
  146. package/dist/{tags-D7CRQqc1.js → tags-Cwgg3Gx2.js} +7 -7
  147. package/dist/{validate-Dlzxlfzp.js → validate-CLBUbscx.js} +4 -6
  148. package/package.json +1 -1
  149. package/dist/Viewport-C35jx6QE.js +0 -8
  150. package/dist/components/ResponsiveImage/index.d.ts +0 -6
  151. package/dist/components/ResponsiveImage/index.js +0 -124
  152. package/dist/components/ResponsiveImage/props.d.ts +0 -16
  153. package/dist/components/ResponsiveImage/styled.d.ts +0 -4
  154. package/dist/components/ResponsiveImage/validate.d.ts +0 -3
  155. package/dist/components/ResponsiveImage/validate.test.d.ts +0 -1
  156. package/dist/contentful/map/responsiveImage.d.ts +0 -4
  157. package/dist/filterProps-BJ5SpbnA.js +0 -17
  158. package/dist/renderInlineRichTextFromOpenText-RvOG3QbI.js +0 -13
  159. package/dist/styled-BiCOjvNq.js +0 -29
  160. package/dist/validate-DYmFz2FF.js +0 -85
@@ -3,9 +3,9 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
3
3
  import { useState, useEffect } from "react";
4
4
  import Body, { bodyAlignCenter } from "../Body/index.js";
5
5
  import Button from "../Button/index.js";
6
- import { a as buttonAutoWidth } from "../../validate-Dlzxlfzp.js";
6
+ import { a as buttonAutoWidth } from "../../validate-CLBUbscx.js";
7
7
  import styled from "styled-components";
8
- import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-7vJ7mrAA.js";
8
+ import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-BKH3egch.js";
9
9
  import viewport from "../../foundations/media-query/viewport/index.js";
10
10
  import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
11
11
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
@@ -1,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { ContainerProps } from './props';
3
+ export declare const ContainerContext: import('react').Context<boolean>;
3
4
  declare const Container: FC<ContainerProps>;
4
5
  export default Container;
5
6
  export * from './props';
@@ -1,108 +1,13 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import styled from "styled-components";
4
- import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
5
- import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
6
- import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
7
- import { getSpacing } from "../../foundations/token/getSpacing/index.js";
8
- import { getTextColor } from "../../foundations/token/getTextColor/index.js";
9
- import { j as colorBorderSubtle } from "../../BorderColor-BummoQ1-.js";
10
- import { f as borderWidthDivider } from "../../BorderWidth-BjXpOdM5.js";
11
- import { e as spacingXl, s as spacingMd, c as spacingNone, h as spacing5Xl } from "../../Spacing-8v6hcO2x.js";
12
- import { a as colorTextNeutral } from "../../TextColor-BXVMXUVE.js";
13
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
14
- import { f as colorBackgroundBrand, e as colorBackgroundBrandGradient, a as colorBackgroundSubtle, c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
15
- const ContainerAppearanceColor = {
16
- primary: colorBackgroundNeutral,
17
- secondary: colorBackgroundSubtle,
18
- tertiary: colorBackgroundBrandGradient,
19
- alternative: colorBackgroundBrand
20
- };
21
- const ContainerBackgroundStyled = styled.div.withConfig({
22
- shouldForwardProp: filterProps(),
23
- displayName: "ContainerBackgroundStyled",
24
- componentId: "sc-a9r652-0"
25
- })({
26
- color: getTextColor(colorTextNeutral)
27
- }, ({
28
- padding = spacingXl
29
- }) => ({
30
- paddingTop: getSpacing(padding),
31
- paddingBottom: getSpacing(padding)
32
- }), ({
33
- appearance = "primary"
34
- }) => {
35
- return {
36
- background: getBackgroundColor(ContainerAppearanceColor[appearance])
37
- };
38
- }, ({
39
- border = false
40
- }) => {
41
- if (!border) {
42
- return {};
43
- }
44
- return {
45
- borderBottom: `${getBorderWidth(borderWidthDivider)} solid ${getBorderColor(colorBorderSubtle)}`
46
- };
47
- });
48
- const maxWidthBreakpoint = "1280px";
49
- const maxWidthViewport = (stylesInViewport) => {
50
- return {
51
- [`@media screen and (min-width: ${maxWidthBreakpoint})`]: {
52
- ...stylesInViewport
53
- }
54
- };
55
- };
56
- const ContainerCenterStyled = styled.div.withConfig({
57
- displayName: "ContainerCenterStyled",
58
- componentId: "sc-a9r652-1"
59
- })({
60
- marginLeft: getSpacing(spacingMd),
61
- marginRight: getSpacing(spacingMd)
62
- }, maxWidthViewport({
63
- maxWidth: `1240px`,
64
- marginLeft: "auto",
65
- marginRight: "auto"
66
- }));
67
- const containerAppearances = ["primary", "secondary", "tertiary", "alternative"];
68
- const containerPaddings = [spacingNone, spacingXl, spacing5Xl];
69
- const validateContainerProps = (props) => {
70
- if (!props || typeof props !== "object") {
71
- return false;
72
- }
73
- const containerProps = props;
74
- if (!containerProps.component || containerProps.component !== "Container") {
75
- return false;
76
- }
77
- if (containerProps.appearance !== void 0 && !containerAppearances.includes(containerProps.appearance)) {
78
- return false;
79
- }
80
- if (containerProps.border !== void 0 && typeof containerProps.border !== "boolean") {
81
- return false;
82
- }
83
- if (containerProps.padding !== void 0 && !containerPaddings.includes(containerProps.padding)) {
84
- return false;
85
- }
86
- if (containerProps.children === void 0) {
87
- return false;
88
- }
89
- return true;
90
- };
91
- const isContainerProps = (props) => {
92
- return validateContainerProps(props);
93
- };
94
- const Container = ({
95
- className,
96
- children,
97
- appearance = "primary",
98
- tag = "div",
99
- ...props
100
- }) => /* @__PURE__ */ jsx(ContainerBackgroundStyled, { className: `${className ? className : ""} ${["tertiary", "alternative"].indexOf(appearance) > -1 ? "Dark" : props.theme}`, appearance, as: tag, ...props, children: /* @__PURE__ */ jsx(ContainerCenterStyled, { children }) });
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import { b, a, c, d, C, i, v } from "../../index-DbG0QL9D.js";
101
5
  export {
102
- ContainerAppearanceColor,
103
- containerAppearances,
104
- containerPaddings,
105
- Container as default,
106
- isContainerProps,
107
- validateContainerProps
6
+ b as ContainerAppearanceColor,
7
+ a as ContainerContext,
8
+ c as containerAppearances,
9
+ d as containerPaddings,
10
+ C as default,
11
+ i as isContainerProps,
12
+ v as validateContainerProps
108
13
  };
@@ -1,3 +1,5 @@
1
1
  import { ContainerProps } from './props';
2
2
  export declare const ContainerBackgroundStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>> & string;
3
+ export declare const maxWidthBreakpoint = 1280;
4
+ export declare const containerMaxWidth = 1240;
3
5
  export declare const ContainerCenterStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -6,7 +6,7 @@ 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 { a as inputStateError } from "../../props-DDpgcryb.js";
9
- import { a as InputStyled, I as InputWrapperStyled } from "../../styled-xKyZg4q9.js";
9
+ import { a as InputStyled, I as InputWrapperStyled } from "../../styled-DmMk0W0J.js";
10
10
  import { i as iconSizeSm } from "../../IconSize-AJp7xdJi.js";
11
11
  import { s as spacingMd, a as spacingXs } from "../../Spacing-8v6hcO2x.js";
12
12
  import { aW as CalendarMonthIcon } from "../../_5gPlusIcon-CnxmOo1u.js";
@@ -2,7 +2,7 @@
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import IconSnippet from "../IconSnippet/index.js";
4
4
  import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
5
- import { D as DemoBoxStyled } from "../../styled-Dw5c-xwf.js";
5
+ import { D as DemoBoxStyled } from "../../styled-BIcsESkS.js";
6
6
  const DemoBox = ({
7
7
  children,
8
8
  ...props
@@ -16,7 +16,7 @@ import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js"
16
16
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
17
17
  import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-e0N9tdDR.js";
18
18
  import { a as borderWidthFocus } from "../../BorderWidth-BjXpOdM5.js";
19
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
19
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
20
20
  const DialogOverlayStyled = styled.div.withConfig({
21
21
  shouldForwardProp: filterProps(),
22
22
  displayName: "DialogOverlayStyled",
@@ -1,32 +1,35 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { Fragment } from "react";
4
- import { e as BadgeStyled, i as isBadgeProps, B as Badge } from "../../index-j22agtAk.js";
4
+ import { e as BadgeStyled, i as isBadgeProps, B as Badge } from "../../index-DwGcrvTh.js";
5
5
  import Body, { isBodyProps, bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
6
6
  import Heading, { isHeadingProps } from "../Heading/index.js";
7
7
  import Link, { isLinkProps } from "../Link/index.js";
8
- import { k as isPriceProps, b as priceSizeSm, P as Price, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-TL0X3rXH.js";
9
- import { R as RichText } from "../../index-C4eCcl02.js";
8
+ import { k as isPriceProps, b as priceSizeSm, P as Price, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-DCXRnuHz.js";
9
+ import { R as RichText } from "../../index-DP6Nlg-a.js";
10
10
  import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
11
11
  import { b as textHeadingSm } from "../../HeadingSize-CfCRn3Lh.js";
12
12
  import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
13
13
  import { s as spacingMd, c as spacingNone, a as spacingXs, b as spacingSm } from "../../Spacing-8v6hcO2x.js";
14
- import "../../index-DCE5HNIR.js";
15
- import "../../index-BJHhIBYl.js";
16
- import "html-react-parser";
17
- import "../../styled-7vJ7mrAA.js";
18
- import { a as LinkStyled } from "../../index-CEotMXpL.js";
14
+ import "../../index-C2E3JrhF.js";
15
+ import "../../index-BsykXBqC.js";
16
+ import "../../styled-BKH3egch.js";
17
+ import { a as LinkStyled } from "../../index-Dd-A7i9Y.js";
19
18
  import "../../hooks/useLinkComponent/index.js";
19
+ import "html-react-parser";
20
20
  import "../InlineLink/index.js";
21
21
  import "../../TableWrapper-Do9KCTGV.js";
22
22
  import styled from "styled-components";
23
23
  import Card from "../Card/index.js";
24
- import Image from "../Image/index.js";
24
+ import Image, { aspectRatio16_9, aspectRatio1_1, isImageProps } from "../Image/index.js";
25
25
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
26
26
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
27
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
28
- import { p as aspectRatio16_9, m as aspectRatio1_1, z as isImageProps } from "../../validate-DYmFz2FF.js";
27
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
29
28
  import { a as cornerRounded } from "../../CornerStyle-JEbGNArR.js";
29
+ import "../../index-DbG0QL9D.js";
30
+ import "../../index-Bu-7sSif.js";
31
+ import "../UtilityLink/index.js";
32
+ import "../../hooks/useImageComponent/index.js";
30
33
  import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
31
34
  const discoveryCardOrientationVertical = "vertical";
32
35
  const discoveryCardOrientationHorizontal = "horizontal";
@@ -1,6 +1,6 @@
1
1
  import { AnchorHTMLAttributes } from 'react';
2
2
  import { DiscoveryCardProps } from './props';
3
- export declare const DiscoveryCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Card').CardProps, Omit<DiscoveryCardProps, "badge" | "heading" | "link" | "price" | "uid" | "body" | "image">>> & string & Omit<import('react').FC<import('../Card').CardProps>, keyof import('react').Component<any, {}, any>>;
3
+ export declare const DiscoveryCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Card').CardProps, Omit<DiscoveryCardProps, "badge" | "heading" | "image" | "link" | "price" | "uid" | "body">>> & string & Omit<import('react').FC<import('../Card').CardProps>, keyof import('react').Component<any, {}, any>>;
4
4
  export declare const DiscoveryCardContentyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
5
  export declare const DiscoveryCardImageLinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, Pick<DiscoveryCardProps, "bottomSpacing" | "orientation"> & AnchorHTMLAttributes<HTMLAnchorElement>>> & string;
6
6
  export declare const DiscoveryCardImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Image').ImageProps, never>> & string & Omit<import('react').FC<import('../Image').ImageProps>, keyof import('react').Component<any, {}, any>>;
@@ -2,25 +2,27 @@
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import styled from "styled-components";
4
4
  import DiscoveryCard, { discoveryCardOrientationVertical, validateDiscoveryCardProps, discoveryCardOrientationHorizontal } from "../DiscoveryCard/index.js";
5
- import Grid from "../Grid/index.js";
6
- import GridItem from "../GridItem/index.js";
7
- import { a as LinkStyled } from "../../index-CEotMXpL.js";
5
+ import { a as Grid, G as GridItem } from "../../index-Bu-7sSif.js";
6
+ import { a as LinkStyled } from "../../index-Dd-A7i9Y.js";
8
7
  import { getSpacing } from "../../foundations/token/getSpacing/index.js";
9
8
  import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
10
9
  import "react";
11
- import "../../index-DCE5HNIR.js";
12
- import "../../index-BJHhIBYl.js";
13
- import "html-react-parser";
14
- import "../../index-j22agtAk.js";
10
+ import "../../index-C2E3JrhF.js";
11
+ import "../../index-BsykXBqC.js";
12
+ import "../../index-DwGcrvTh.js";
15
13
  import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
16
14
  import "../Body/index.js";
17
15
  import "../Heading/index.js";
18
- import "../../styled-7vJ7mrAA.js";
16
+ import "../../styled-BKH3egch.js";
19
17
  import "../../hooks/useLinkComponent/index.js";
20
- import "../../index-TL0X3rXH.js";
18
+ import "../../index-DCXRnuHz.js";
19
+ import "html-react-parser";
21
20
  import "../InlineLink/index.js";
22
21
  import "../../TableWrapper-Do9KCTGV.js";
23
- import "../../index-C4eCcl02.js";
22
+ import "../../index-DP6Nlg-a.js";
23
+ import "../../index-DbG0QL9D.js";
24
+ import "../UtilityLink/index.js";
25
+ import "../../hooks/useImageComponent/index.js";
24
26
  import "../Image/index.js";
25
27
  const DiscoveryCardGroupGridStyled = styled(Grid).withConfig({
26
28
  displayName: "DiscoveryCardGroupGridStyled",
@@ -7,7 +7,7 @@ import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js"
7
7
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
8
8
  import { j as colorBorderSubtle } from "../../BorderColor-BummoQ1-.js";
9
9
  import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
10
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
10
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
11
11
  const DividerLineStyled = styled.hr.withConfig({
12
12
  shouldForwardProp: filterProps(),
13
13
  displayName: "DividerLineStyled",
@@ -3,8 +3,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import Link from "../Link/index.js";
4
4
  import styled from "styled-components";
5
5
  import viewport from "../../foundations/media-query/viewport/index.js";
6
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
7
- import { F as FlexStyled } from "../../styled-BxkvYuWW.js";
6
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
7
+ import { F as FlexStyled } from "../../styled-CUp4EbPh.js";
8
8
  import UtilityLink from "../UtilityLink/index.js";
9
9
  const letterPathMapping = {
10
10
  A: "M46.99,29.398c0.118,0.365 0.186,0.649 0.22,0.86c0.025,0.211 -0.009,0.365 -0.118,0.47c-0.11,0.106 -0.296,0.171 -0.566,0.195c-0.269,0.024 -0.64,0.04 -1.113,0.04c-0.472,0 -0.877,0 -1.147,-0.024c-0.27,-0.024 -0.489,-0.049 -0.633,-0.089c-0.143,-0.049 -0.244,-0.106 -0.303,-0.187c-0.059,-0.081 -0.11,-0.186 -0.143,-0.316l-1.257,-3.916l-7.035,-0l-1.189,3.811c-0.042,0.138 -0.092,0.259 -0.151,0.357c-0.06,0.097 -0.161,0.17 -0.304,0.227c-0.143,0.056 -0.337,0.089 -0.591,0.113c-0.253,0.016 -0.59,0.033 -1.003,0.033c-0.447,-0 -0.793,-0.017 -1.046,-0.049c-0.253,-0.033 -0.422,-0.106 -0.523,-0.219c-0.093,-0.114 -0.126,-0.276 -0.101,-0.487c0.025,-0.21 0.101,-0.494 0.219,-0.843l5.778,-17.28c0.059,-0.17 0.126,-0.308 0.202,-0.413c0.076,-0.105 0.202,-0.186 0.371,-0.243c0.169,-0.057 0.405,-0.089 0.7,-0.106c0.295,-0.016 0.692,-0.024 1.189,-0.024c0.566,0 1.021,0 1.358,0.024c0.338,0.025 0.599,0.049 0.793,0.106c0.194,0.057 0.321,0.138 0.405,0.251c0.084,0.114 0.152,0.26 0.211,0.454l5.786,17.272l-0.009,-0.017Zm-8.594,-14.287l-0.017,-0l-2.648,8.279l5.313,-0l-2.648,-8.279Z",
@@ -8,7 +8,7 @@ import Legend from "../Legend/index.js";
8
8
  import { s as spacingMd } from "../../Spacing-8v6hcO2x.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-BJ5SpbnA.js";
11
+ import { a as filterProps } from "../../filterProps-CxkibNnG.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"
@@ -5,7 +5,7 @@ import Fieldset from "../Fieldset/index.js";
5
5
  import { i as iconSizeSm } from "../../IconSize-AJp7xdJi.js";
6
6
  import styled from "styled-components";
7
7
  import { I as IconLoader } from "../../index--RjkzZm0.js";
8
- import { s as screenreaderOnly } from "../../index-DCE5HNIR.js";
8
+ import { s as screenreaderOnly } from "../../index-C2E3JrhF.js";
9
9
  import forcedColors from "../../foundations/media-query/forcedColors/index.js";
10
10
  import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
11
11
  import { getBodySize } from "../../foundations/token/getBodySize/index.js";
@@ -18,13 +18,13 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
18
18
  import { getTextColor } from "../../foundations/token/getTextColor/index.js";
19
19
  import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
20
20
  import { b as colorBorderUnselected, i as colorBorderSelected, c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
21
- import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
21
+ import { a as borderRadiusFull } from "../../BorderRadius-2LdggXbQ.js";
22
22
  import { b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-BjXpOdM5.js";
23
23
  import { d as colorObjectSelected } from "../../ObjectColor-DxgEnOBM.js";
24
24
  import { a as spacingXs, c as spacingNone, f as spacing2Xs, b as spacingSm } from "../../Spacing-8v6hcO2x.js";
25
25
  import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
26
26
  import { a as colorTextNeutral, b as colorTextInverseStatic } from "../../TextColor-BXVMXUVE.js";
27
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
27
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
28
28
  const FilterGroupStyled = styled.div.withConfig({
29
29
  shouldForwardProp: filterProps(),
30
30
  displayName: "FilterGroupStyled",
@@ -1,13 +1,16 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { F as FlexStyled } from "../../styled-BxkvYuWW.js";
4
- import { e, d, c, b, f, a } from "../../styled-BxkvYuWW.js";
3
+ import { F as FlexStyled } from "../../styled-CUp4EbPh.js";
4
+ import { i, h, g, e, d, c, b, f, a } from "../../styled-CUp4EbPh.js";
5
5
  const Flex = ({
6
6
  children,
7
7
  ...props
8
8
  }) => /* @__PURE__ */ jsx(FlexStyled, { ...props, children });
9
9
  export {
10
10
  Flex as default,
11
+ i as flexAlignCenter,
12
+ h as flexAlignEnd,
13
+ g as flexAlignStart,
11
14
  e as flexJustifyBetween,
12
15
  d as flexJustifyCenter,
13
16
  c as flexJustifyEnd,
@@ -8,7 +8,11 @@ export declare const flexJustifyStart = "start";
8
8
  export declare const flexJustifyEnd = "end";
9
9
  export declare const flexJustifyCenter = "center";
10
10
  export declare const flexJustifyBetween = "between";
11
- export type FlexJustifyBehavior = typeof flexJustifyStart | typeof flexJustifyEnd | typeof flexJustifyCenter | typeof flexJustifyBetween;
11
+ export type FlexJustifyBehaviour = typeof flexJustifyStart | typeof flexJustifyEnd | typeof flexJustifyCenter | typeof flexJustifyBetween;
12
+ export declare const flexAlignStart = "start";
13
+ export declare const flexAlignEnd = "end";
14
+ export declare const flexAlignCenter = "center";
15
+ export type FlexAlignBehaviour = typeof flexAlignStart | typeof flexAlignEnd | typeof flexAlignCenter;
12
16
  export interface FlexProps extends PatternProps, HTMLAttributes<HTMLDivElement> {
13
17
  children: ReactNode;
14
18
  /**
@@ -16,9 +20,13 @@ export interface FlexProps extends PatternProps, HTMLAttributes<HTMLDivElement>
16
20
  */
17
21
  orientation?: FlexOrientation;
18
22
  /**
19
- * Justify controls how the elements are distributed within the container.
23
+ * Justify controls how the elements are distributed along the primary axis (e.g. justify-content).
20
24
  */
21
- justify?: FlexJustifyBehavior;
25
+ justify?: FlexJustifyBehaviour;
26
+ /**
27
+ * Controls how the elements are distributed along the secondary axis (e.g. align-items).
28
+ */
29
+ alignItems?: FlexAlignBehaviour;
22
30
  /**
23
31
  * Spacing between items inside of the flex container.
24
32
  */
@@ -0,0 +1,2 @@
1
+ import { FlexProps } from '../props';
2
+ export declare const alignCenterArgs: FlexProps;
@@ -0,0 +1,2 @@
1
+ import { FlexProps } from '../props';
2
+ export declare const alignEndArgs: FlexProps;
@@ -0,0 +1,2 @@
1
+ import { FlexProps } from '../props';
2
+ export declare const alignStartArgs: FlexProps;
@@ -1,3 +1,4 @@
1
- import { FlexJustifyBehavior, FlexProps } from './props';
2
- export declare const translateToJustifyContent: (justify: FlexJustifyBehavior | undefined) => string | undefined;
1
+ import { FlexAlignBehaviour, FlexJustifyBehaviour, FlexProps } from './props';
2
+ export declare const translateToJustifyContent: (justify: FlexJustifyBehaviour | undefined) => string | undefined;
3
+ export declare const translateToAlignItems: (alignItems: FlexAlignBehaviour | undefined) => string | undefined;
3
4
  export declare const FlexStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FlexProps>> & string;
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { cloneElement } from "react";
4
4
  import { c as spacingNone } from "../../Spacing-8v6hcO2x.js";
5
5
  import styled from "styled-components";
6
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
6
+ import { a as filterProps } from "../../filterProps-CxkibNnG.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-BummoQ1-.js";
9
9
  import { a as borderWidthFocus } from "../../BorderWidth-BjXpOdM5.js";
10
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
10
+ import { a as filterProps } from "../../filterProps-CxkibNnG.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,7 +1,7 @@
1
1
  "use client";
2
2
  import "react/jsx-runtime";
3
- import "../../index-DCE5HNIR.js";
4
- import { F } from "../../index-BJHhIBYl.js";
3
+ import "../../index-C2E3JrhF.js";
4
+ import { F } from "../../index-BsykXBqC.js";
5
5
  export {
6
6
  F as default
7
7
  };
@@ -4,11 +4,11 @@ import Body from "../Body/index.js";
4
4
  import ButtonGroup from "../ButtonGroup/index.js";
5
5
  import Heading from "../Heading/index.js";
6
6
  import IconSnippet from "../IconSnippet/index.js";
7
- import { R as RichText } from "../../index-C4eCcl02.js";
7
+ import { R as RichText } from "../../index-DP6Nlg-a.js";
8
8
  import { c as spacingNone } from "../../Spacing-8v6hcO2x.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-BJ5SpbnA.js";
11
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
12
12
  const FormStyled = styled.form.withConfig({
13
13
  shouldForwardProp: filterProps(),
14
14
  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-BJ5SpbnA.js";
8
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
9
9
  const FormElementStyled = styled.div.withConfig({
10
10
  shouldForwardProp: filterProps(),
11
11
  displayName: "FormElementStyled",
@@ -12,10 +12,10 @@ import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.j
12
12
  import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
13
13
  import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
14
14
  import { j as colorBorderSubtle } from "../../BorderColor-BummoQ1-.js";
15
- import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
15
+ import { b as borderRadiusMd, c as borderRadiusNone } from "../../BorderRadius-2LdggXbQ.js";
16
16
  import { d as borderWidthSm } from "../../BorderWidth-BjXpOdM5.js";
17
17
  import { c as cornerStraight } from "../../CornerStyle-JEbGNArR.js";
18
- import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
18
+ import { a as filterProps } from "../../filterProps-CxkibNnG.js";
19
19
  const MapInner = ({
20
20
  setMap,
21
21
  children
@@ -1,11 +1,13 @@
1
1
  import { FC } from 'react';
2
+ import { NestedGridConfig } from '../../utils/calculateNestedGridConfig';
2
3
  import { GridConfig, GridProps, GridSpacing, GridTag } from './props';
3
4
  type GridContextType = {
4
5
  tag: GridTag;
5
6
  spacing: GridSpacing;
6
7
  autoLayout?: GridConfig;
8
+ nestedGridConfig?: NestedGridConfig;
7
9
  };
8
- export declare const GridContext: import('react').Context<GridContextType>;
10
+ export declare const GridContext: import('react').Context<GridContextType | undefined>;
9
11
  declare const Grid: FC<GridProps>;
10
12
  export default Grid;
11
13
  export * from './props';
@@ -1,94 +1,19 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { createContext } from "react";
4
- import { d as divTagName, u as ulTagName, o as olTagName, n as navTagName, m as mainTagName, s as sectionTagName, a as asideTagName, b as articleTagName } from "../../tags-D7CRQqc1.js";
5
- import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
6
- import { G as GridStyled } from "../../styled-BiCOjvNq.js";
7
- import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
8
- import { i as isBottomSpacing } from "../../isBottomSpacing-BxfreCZU.js";
9
- const gridTags = [divTagName, ulTagName, olTagName, navTagName, mainTagName, sectionTagName, asideTagName, articleTagName];
10
- const gridAligns = ["left", "center", "right"];
11
- const gridSpacings = ["None", "Md"];
12
- const gridColSpan = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
13
- const validateGridColSpan = (colSpan) => {
14
- if (!Number.isInteger(colSpan)) {
15
- return false;
16
- }
17
- if (!gridColSpan.includes(colSpan)) {
18
- return false;
19
- }
20
- return true;
21
- };
22
- const validateGridConfig = (config) => {
23
- if (!isObject(config)) {
24
- return false;
25
- }
26
- const gridConfig = config;
27
- if (!gridConfig.sm || false === validateGridColSpan(gridConfig.sm)) {
28
- return false;
29
- }
30
- if (gridConfig.md && false === validateGridColSpan(gridConfig.md)) {
31
- return false;
32
- }
33
- if (gridConfig.lg && false === validateGridColSpan(gridConfig.lg)) {
34
- return false;
35
- }
36
- return true;
37
- };
38
- const isGridConfig = (config) => validateGridConfig(config);
39
- const validateGridProps = (props) => {
40
- if (!isObject(props)) {
41
- return false;
42
- }
43
- const gridProps = props;
44
- if (!hasMatchingComponentName(gridProps.component, "Grid")) {
45
- return false;
46
- }
47
- if (gridProps.align !== void 0 && !gridAligns.includes(gridProps.align)) {
48
- return false;
49
- }
50
- if (gridProps.tag !== void 0 && !gridTags.includes(gridProps.tag)) {
51
- return false;
52
- }
53
- if (gridProps.spacing !== void 0 && !gridSpacings.includes(gridProps.spacing)) {
54
- return false;
55
- }
56
- if (gridProps.bottomSpacing && !isBottomSpacing(gridProps.bottomSpacing)) {
57
- return false;
58
- }
59
- return true;
60
- };
61
- const isGridProps = (props) => {
62
- return validateGridProps(props);
63
- };
64
- const GridContext = createContext({
65
- tag: divTagName,
66
- spacing: spacingMd,
67
- autoLayout: {
68
- sm: 12
69
- }
70
- });
71
- const Grid = ({
72
- tag = divTagName,
73
- spacing = spacingMd,
74
- autoLayout,
75
- ...props
76
- }) => {
77
- return /* @__PURE__ */ jsx(GridContext, { value: {
78
- tag,
79
- spacing,
80
- autoLayout
81
- }, children: /* @__PURE__ */ jsx(GridStyled, { ...props, as: tag, spacing, children: props.children }) });
82
- };
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "../../tags-Cwgg3Gx2.js";
5
+ import "../../Spacing-8v6hcO2x.js";
6
+ import { d, a, f, h, e, l, n, j, k, m } from "../../index-Bu-7sSif.js";
7
+ import "../../styled-DdeOXNN9.js";
83
8
  export {
84
- GridContext,
85
- Grid as default,
86
- gridAligns,
87
- gridSpacings,
88
- gridTags,
89
- isGridConfig,
90
- isGridProps,
91
- validateGridColSpan,
92
- validateGridConfig,
93
- validateGridProps
9
+ d as GridContext,
10
+ a as default,
11
+ f as gridAligns,
12
+ h as gridSpacings,
13
+ e as gridTags,
14
+ l as isGridConfig,
15
+ n as isGridProps,
16
+ j as validateGridColSpan,
17
+ k as validateGridConfig,
18
+ m as validateGridProps
94
19
  };
@@ -1,5 +1,12 @@
1
1
  import { FC } from 'react';
2
+ import { NestedGridConfig } from '../../utils/calculateNestedGridConfig';
3
+ import { GridConfig } from '../Grid';
2
4
  import { GridItemProps } from './props';
5
+ type GridItemContextType = {
6
+ gridConfig: GridConfig;
7
+ nestedGridConfig?: NestedGridConfig;
8
+ };
9
+ export declare const GridItemContext: import('react').Context<GridItemContextType>;
3
10
  declare const GridItem: FC<GridItemProps>;
4
11
  export default GridItem;
5
12
  export * from './props';