@vodafone_de/brix-components 9.0.4 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BorderRadius-ClUShVLu.js → BorderRadius-2LdggXbQ.js} +2 -2
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionGroup/index.js +1 -1
- package/dist/components/ArtDirectedImage/index.d.ts +5 -0
- package/dist/components/ArtDirectedImage/index.js +75 -0
- package/dist/components/ArtDirectedImage/props.d.ts +24 -0
- package/dist/components/ArtDirectedImage/styled.d.ts +2 -0
- package/dist/components/ArtDirectedImage/validate.d.ts +3 -0
- package/dist/components/Badge/index.js +2 -3
- package/dist/components/Body/index.js +4 -5
- package/dist/components/BottomBar/index.js +4 -4
- package/dist/components/BottomBar/props.d.ts +1 -1
- package/dist/components/Button/index.js +4 -5
- package/dist/components/ButtonAsLink/index.js +2 -3
- package/dist/components/ButtonGroup/index.js +6 -6
- package/dist/components/ButtonGroup/props.d.ts +2 -2
- package/dist/components/ButtonGroup/validate.d.ts +2 -2
- package/dist/components/Calendar/index.js +305 -72
- package/dist/components/Card/index.js +3 -3
- package/dist/components/Carousel/index.js +6 -7
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Collapsible/index.js +19 -5
- package/dist/components/Collapsible/props.d.ts +5 -0
- package/dist/components/Collapsible/styled.d.ts +1 -1
- package/dist/components/ColorSwatch/index.js +1 -1
- package/dist/components/ColorSwatchGroup/index.js +2 -2
- package/dist/components/ConsentMessage/index.js +2 -2
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/index.js +10 -105
- package/dist/components/Container/styled.d.ts +2 -0
- package/dist/components/DateInput/index.js +1 -1
- package/dist/components/DemoBox/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DiscoveryCard/index.js +14 -11
- package/dist/components/DiscoveryCard/styled.d.ts +1 -1
- package/dist/components/DiscoveryCardGroup/index.js +12 -10
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/EnergySnippet/index.js +2 -2
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FilterGroup/index.js +3 -3
- package/dist/components/Flex/index.js +5 -2
- package/dist/components/Flex/props.d.ts +11 -3
- package/dist/components/Flex/stories/alignCenterArgs.d.ts +2 -0
- package/dist/components/Flex/stories/alignEndArgs.d.ts +2 -0
- package/dist/components/Flex/stories/alignStartArgs.d.ts +2 -0
- package/dist/components/Flex/styled.d.ts +3 -2
- package/dist/components/FlexItem/index.js +1 -1
- package/dist/components/FootnoteContent/index.js +1 -1
- package/dist/components/FootnoteLink/index.js +2 -2
- package/dist/components/Form/index.js +2 -2
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/GoogleMap/index.js +2 -2
- package/dist/components/Grid/index.d.ts +3 -1
- package/dist/components/Grid/index.js +16 -91
- package/dist/components/GridItem/index.d.ts +7 -0
- package/dist/components/GridItem/index.js +11 -54
- package/dist/components/Heading/index.js +4 -5
- package/dist/components/HifiIcon/index.js +1 -1
- package/dist/components/IconButton/index.js +3 -3
- package/dist/components/IconSnippet/index.js +3 -3
- package/dist/components/IconSnippetList/index.js +2 -3
- package/dist/components/Image/index.js +111 -52
- package/dist/components/Image/props.d.ts +21 -35
- package/dist/components/Image/styled.d.ts +1 -1
- package/dist/components/Image/validate.d.ts +1 -4
- package/dist/components/ImageHeader/index.js +18 -25
- package/dist/components/ImageHeader/props.d.ts +2 -2
- package/dist/components/ImageHeader/styled.d.ts +1 -1
- package/dist/components/InfoBanner/index.js +1 -1
- package/dist/components/InlineIcon/index.js +1 -1
- package/dist/components/InlineLink/index.js +1 -1
- package/dist/components/Input/index.js +2 -3
- package/dist/components/Label/index.js +2 -3
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.js +4 -5
- package/dist/components/LinkAsButton/index.js +1 -2
- package/dist/components/LinkList/index.js +2 -3
- package/dist/components/LinkListItem/index.js +5 -5
- package/dist/components/LoadingSpinner/index.js +2 -2
- package/dist/components/LocalStyle/index.js +2 -2
- package/dist/components/MediaText/index.js +5 -6
- package/dist/components/Notification/index.js +3 -3
- package/dist/components/OpenTextFootnoteAdapter/index.js +3 -3
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/index.js +8 -11
- package/dist/components/Price/index.d.ts +1 -1
- package/dist/components/Price/index.js +2 -3
- package/dist/components/ProductCard/index.js +29 -22
- package/dist/components/ProductCard/props.d.ts +11 -14
- package/dist/components/ProductCard/styled.d.ts +1 -0
- package/dist/components/QuickLinkList/index.js +3 -5
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Rating/index.js +2 -2
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +2 -2
- package/dist/components/ScreenreaderOnly/index.js +1 -1
- package/dist/components/SearchInput/index.js +4 -5
- package/dist/components/SelectInput/index.js +3 -4
- package/dist/components/Stepper/index.js +3 -4
- package/dist/components/SuggestInput/index.js +4 -5
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/TabGroup/index.js +2 -2
- package/dist/components/TabularPrice/index.js +2 -3
- package/dist/components/TextList/index.js +2 -3
- package/dist/components/Textarea/index.js +3 -4
- package/dist/components/TimeInput/index.js +1 -1
- package/dist/components/Tray/index.js +1 -1
- package/dist/components/UtilityLink/index.js +20 -2
- package/dist/components/UtilityLink/styled.d.ts +1 -0
- package/dist/components/YoutubeVideo/index.js +2 -2
- package/dist/contentful/components.d.ts +1 -1
- package/dist/contentful/live-preview-inspector/index.js +1 -1
- package/dist/contentful/live-preview-renderer/index.js +1 -1
- package/dist/contentful/map/artDirectedImage.d.ts +4 -0
- package/dist/contentful/renderer/index.js +1 -1
- package/dist/{cssVars-ZsZIfkeD.js → cssVars-TmhA1NpG.js} +1 -1
- package/dist/filterProps-CxkibNnG.js +18 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/getSizesFromGridConfig-DKOLupyb.js +48 -0
- package/dist/hooks/useImageComponent/index.d.ts +37 -0
- package/dist/hooks/useImageComponent/index.js +23 -0
- package/dist/hooks/usePictureComponent/index.d.ts +49 -0
- package/dist/hooks/usePictureComponent/index.js +38 -0
- package/dist/hooks/useViewport/index.js +5 -20
- package/dist/{index-ClAH0TNC.js → index-72IFVw5W.js} +14 -12
- package/dist/{index-BJHhIBYl.js → index-BsykXBqC.js} +1 -1
- package/dist/index-Bu-7sSif.js +201 -0
- package/dist/{index-DCE5HNIR.js → index-C2E3JrhF.js} +1 -1
- package/dist/{index-TL0X3rXH.js → index-DCXRnuHz.js} +7 -8
- package/dist/index-DKCzYjXw.js +25 -0
- package/dist/{index-C4eCcl02.js → index-DP6Nlg-a.js} +4 -5
- package/dist/index-DbG0QL9D.js +113 -0
- package/dist/{index-CEotMXpL.js → index-Dd-A7i9Y.js} +3 -4
- package/dist/{index-j22agtAk.js → index-DwGcrvTh.js} +4 -5
- package/dist/index.d.ts +4 -2
- package/dist/index.js +213 -212
- package/dist/{mapContentToComponents-C_O2rRrX.js → mapContentToComponents-DcPjYAXH.js} +155 -140
- package/dist/{styled-Dw5c-xwf.js → styled-BIcsESkS.js} +1 -1
- package/dist/{styled-7vJ7mrAA.js → styled-BKH3egch.js} +2 -2
- package/dist/{styled-BxkvYuWW.js → styled-CUp4EbPh.js} +23 -2
- package/dist/{styled-BBXC0aka.js → styled-D-fzMZNS.js} +1 -1
- package/dist/{styled-0KSRG-Fv.js → styled-DdeOXNN9.js} +26 -4
- package/dist/{styled-xKyZg4q9.js → styled-DmMk0W0J.js} +2 -2
- package/dist/{styled-Dq0NuP5r.js → styled-rsUoUFyl.js} +2 -2
- package/dist/{tags-D7CRQqc1.js → tags-Cwgg3Gx2.js} +7 -7
- package/dist/{validate-Dlzxlfzp.js → validate-CLBUbscx.js} +4 -6
- package/package.json +1 -1
- package/dist/Viewport-C35jx6QE.js +0 -8
- package/dist/components/ResponsiveImage/index.d.ts +0 -6
- package/dist/components/ResponsiveImage/index.js +0 -124
- package/dist/components/ResponsiveImage/props.d.ts +0 -16
- package/dist/components/ResponsiveImage/styled.d.ts +0 -4
- package/dist/components/ResponsiveImage/validate.d.ts +0 -3
- package/dist/components/ResponsiveImage/validate.test.d.ts +0 -1
- package/dist/contentful/map/responsiveImage.d.ts +0 -4
- package/dist/filterProps-BJ5SpbnA.js +0 -17
- package/dist/renderInlineRichTextFromOpenText-RvOG3QbI.js +0 -13
- package/dist/styled-BiCOjvNq.js +0 -29
- package/dist/validate-DYmFz2FF.js +0 -85
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { useViewport } from "../../
|
|
5
|
-
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
4
|
+
import { u as useViewport } from "../../index-DKCzYjXw.js";
|
|
6
5
|
import styled from "styled-components";
|
|
7
6
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
8
7
|
import viewport from "../../foundations/media-query/viewport/index.js";
|
|
@@ -17,7 +16,7 @@ import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
|
17
16
|
import { a as colorObjectBrand, b as colorObjectInverse } from "../../ObjectColor-DxgEnOBM.js";
|
|
18
17
|
import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
19
18
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
20
|
-
import { a as filterProps } from "../../filterProps-
|
|
19
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
21
20
|
const StepperItemStyled = styled.li.withConfig({
|
|
22
21
|
shouldForwardProp: filterProps(),
|
|
23
22
|
displayName: "StepperItemStyled",
|
|
@@ -199,7 +198,7 @@ const Stepper = ({
|
|
|
199
198
|
activeStep,
|
|
200
199
|
steps,
|
|
201
200
|
ariaLabelTemplate
|
|
202
|
-
}), children: /* @__PURE__ */ jsx(StepperStyled, { ref: stepperRef, ...props, children: steps.map((step, index) => /* @__PURE__ */ jsx(StepperItemStyled, { isActive: index + 1 === activeStep, next: index < activeStep, children: index + 1 === activeStep ? /* @__PURE__ */ jsx(StepperActiveItemStyled, { offset, "aria-current": "step", children:
|
|
201
|
+
}), children: /* @__PURE__ */ jsx(StepperStyled, { ref: stepperRef, ...props, children: steps.map((step, index) => /* @__PURE__ */ jsx(StepperItemStyled, { isActive: index + 1 === activeStep, next: index < activeStep, children: index + 1 === activeStep ? /* @__PURE__ */ jsx(StepperActiveItemStyled, { offset, "aria-current": "step", children: step }) : step }, `${step}`)) }) });
|
|
203
202
|
};
|
|
204
203
|
export {
|
|
205
204
|
Stepper as default
|
|
@@ -7,12 +7,11 @@ import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
|
7
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
8
|
import { I as IconLoader } from "../../index--RjkzZm0.js";
|
|
9
9
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
10
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
10
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-DmMk0W0J.js";
|
|
11
11
|
import { i as iconSizeSm } from "../../IconSize-AJp7xdJi.js";
|
|
12
12
|
import { b as spacingSm, a as spacingXs, s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
13
|
-
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
14
13
|
import Body from "../Body/index.js";
|
|
15
|
-
import { f as strongTagName } from "../../tags-
|
|
14
|
+
import { f as strongTagName } from "../../tags-Cwgg3Gx2.js";
|
|
16
15
|
import styled from "styled-components";
|
|
17
16
|
import Card from "../Card/index.js";
|
|
18
17
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -23,7 +22,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
23
22
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
24
23
|
import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
25
24
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
26
|
-
import { a as filterProps } from "../../filterProps-
|
|
25
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
27
26
|
import Flex from "../Flex/index.js";
|
|
28
27
|
import LoadingSpinner from "../LoadingSpinner/index.js";
|
|
29
28
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -375,7 +374,7 @@ const SuggestInput = forwardRef(({
|
|
|
375
374
|
"aria-activedescendant": selectedOption > -1 ? `${uid}-item-${selectedOption}` : void 0,
|
|
376
375
|
"aria-busy": isLoading ? isLoading : void 0,
|
|
377
376
|
"aria-autocomplete": "list"
|
|
378
|
-
}, disabled, placeholder
|
|
377
|
+
}, disabled, placeholder, id: inputId }),
|
|
379
378
|
/* @__PURE__ */ jsxs(SuggestInputIconsBarStyled, { children: [
|
|
380
379
|
/* @__PURE__ */ jsx(FlexItem, { grow: "full", children: /* @__PURE__ */ jsx(SuggestInputLoadingSpinner, { size: "xs", isActive: isLoading }) }),
|
|
381
380
|
status && /* @__PURE__ */ jsx(FlexItem, { grow: "full", children: /* @__PURE__ */ jsx(FormHelperStatusIcon, { status }) }),
|
|
@@ -15,12 +15,12 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
15
15
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
16
16
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
17
17
|
import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
18
|
-
import {
|
|
18
|
+
import { a as borderRadiusFull } from "../../BorderRadius-2LdggXbQ.js";
|
|
19
19
|
import { a as borderWidthFocus, d as borderWidthSm } from "../../BorderWidth-BjXpOdM5.js";
|
|
20
20
|
import { b as colorObjectInverse, d as colorObjectSelected, e as colorObjectUnselected } from "../../ObjectColor-DxgEnOBM.js";
|
|
21
21
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
22
22
|
import { a as spacingXs, s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
23
|
-
import { a as filterProps } from "../../filterProps-
|
|
23
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
24
24
|
const getHandleIcon = (checked) => {
|
|
25
25
|
const iconName = checked ? "Tick" : "Close";
|
|
26
26
|
return /* @__PURE__ */ jsx(IconLoader, { size: iconSize2xs, name: iconName });
|
|
@@ -16,12 +16,12 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
16
16
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
17
17
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
18
18
|
import { j as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
19
|
-
import { d as borderRadiusSm } from "../../BorderRadius-
|
|
19
|
+
import { d as borderRadiusSm } from "../../BorderRadius-2LdggXbQ.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-BjXpOdM5.js";
|
|
21
21
|
import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
22
22
|
import { a as colorObjectBrand } from "../../ObjectColor-DxgEnOBM.js";
|
|
23
23
|
import { s as spacingMd, b as spacingSm, a as spacingXs, f as spacing2Xs, e as spacingXl } from "../../Spacing-8v6hcO2x.js";
|
|
24
|
-
import { a as filterProps } from "../../filterProps-
|
|
24
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
25
25
|
const iconPositionLeft = "left";
|
|
26
26
|
const iconPositionTop = "top";
|
|
27
27
|
const tabGroupWidthFull = "full";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { T } from "../../index-
|
|
4
|
-
import "../../index-
|
|
5
|
-
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
3
|
+
import { T } from "../../index-DCXRnuHz.js";
|
|
4
|
+
import "../../index-C2E3JrhF.js";
|
|
6
5
|
export {
|
|
7
6
|
T as default
|
|
8
7
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { a, T } from "../../index-
|
|
4
|
-
import "../../tags-
|
|
3
|
+
import { a, T } from "../../index-DP6Nlg-a.js";
|
|
4
|
+
import "../../tags-Cwgg3Gx2.js";
|
|
5
5
|
import "../../Spacing-8v6hcO2x.js";
|
|
6
|
-
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
6
|
export {
|
|
8
7
|
a as TextListItem,
|
|
9
8
|
T as default
|
|
@@ -6,7 +6,6 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
|
6
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
7
7
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
8
8
|
import { b as spacingSm, e as spacingXl, s as spacingMd, a as spacingXs } from "../../Spacing-8v6hcO2x.js";
|
|
9
|
-
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
10
9
|
import styled from "styled-components";
|
|
11
10
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
12
11
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -19,11 +18,11 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
19
18
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
19
|
import { c as colorBackgroundNeutral, a as colorBackgroundSubtle } from "../../BackgroundColor-e0N9tdDR.js";
|
|
21
20
|
import { a as colorBorderNeutral, c as colorBorderFocus, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-BummoQ1-.js";
|
|
22
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
21
|
+
import { b as borderRadiusMd } from "../../BorderRadius-2LdggXbQ.js";
|
|
23
22
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
24
23
|
import { i as iconSizeSm } from "../../IconSize-AJp7xdJi.js";
|
|
25
24
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "../../TextColor-BXVMXUVE.js";
|
|
26
|
-
import { a as filterProps } from "../../filterProps-
|
|
25
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
27
26
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
28
27
|
const TextareaWrapperStyled = styled.div.withConfig({
|
|
29
28
|
shouldForwardProp: filterProps(),
|
|
@@ -158,7 +157,7 @@ const Textarea = forwardRef(({
|
|
|
158
157
|
return /* @__PURE__ */ jsxs(FormElement, { bottomSpacing, disabled, children: [
|
|
159
158
|
/* @__PURE__ */ jsx(FormHelperLabel, { label, uid }),
|
|
160
159
|
/* @__PURE__ */ jsxs(TextareaWrapperStyled, { bottomSpacing: inputStateError !== status && helperText || inputStateError === status && errorMessage ? spacingXs : void 0, children: [
|
|
161
|
-
/* @__PURE__ */ jsx(TextareaStyled, { ...textAreaProps, rows, status, placeholder
|
|
160
|
+
/* @__PURE__ */ jsx(TextareaStyled, { ...textAreaProps, rows, status, placeholder, isResizable, ref: innerRef }),
|
|
162
161
|
/* @__PURE__ */ jsx(TextareaStatusIcon, { status, hasScrollbar })
|
|
163
162
|
] }),
|
|
164
163
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
@@ -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 "../Input/index.js";
|
|
9
|
-
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-
|
|
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 { bm as ClockIcon } from "../../_5gPlusIcon-CnxmOo1u.js";
|
|
@@ -19,7 +19,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
19
19
|
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-e0N9tdDR.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-BjXpOdM5.js";
|
|
21
21
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
22
|
-
import { a as flexOrientationVertical } from "../../styled-
|
|
22
|
+
import { a as flexOrientationVertical } from "../../styled-CUp4EbPh.js";
|
|
23
23
|
const TrayOverlayStyled = styled("div").withConfig({
|
|
24
24
|
displayName: "TrayOverlayStyled",
|
|
25
25
|
componentId: "sc-os3mq3-0"
|
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
4
|
-
import { f as filterPropsForUnstyledComponent } from "../../filterProps-
|
|
4
|
+
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CxkibNnG.js";
|
|
5
5
|
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
6
|
+
import styled from "styled-components";
|
|
7
|
+
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
8
|
+
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
9
|
+
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
10
|
+
import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
11
|
+
import { a as borderWidthFocus } from "../../BorderWidth-BjXpOdM5.js";
|
|
12
|
+
const UtilityLinkStyled = styled("a").withConfig({
|
|
13
|
+
displayName: "UtilityLinkStyled",
|
|
14
|
+
componentId: "sc-otjsul-0"
|
|
15
|
+
})({
|
|
16
|
+
"&:focus-within": {
|
|
17
|
+
...forcedColors({
|
|
18
|
+
outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`
|
|
19
|
+
}),
|
|
20
|
+
outline: `${getBorderWidth(borderWidthFocus)} solid ${getBorderColor(colorBorderFocus)}`,
|
|
21
|
+
textDecoration: "underline"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
6
24
|
const UtilityLink = ({
|
|
7
25
|
children,
|
|
8
26
|
...props
|
|
9
27
|
}) => {
|
|
10
28
|
const LinkComponent = useLinkComponent();
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
29
|
+
return /* @__PURE__ */ jsx(UtilityLinkStyled, { as: LinkComponent, ...sanitizeLinkProps(filterPropsForUnstyledComponent(props)), children });
|
|
12
30
|
};
|
|
13
31
|
export {
|
|
14
32
|
UtilityLink as default
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UtilityLinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').ClassAttributes<HTMLAnchorElement> & import('react').AnchorHTMLAttributes<HTMLAnchorElement>, never>> & string;
|
|
@@ -5,9 +5,9 @@ import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js"
|
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
7
7
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
8
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
8
|
+
import { b as borderRadiusMd } from "../../BorderRadius-2LdggXbQ.js";
|
|
9
9
|
import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
10
|
-
import { a as filterProps } from "../../filterProps-
|
|
10
|
+
import { a as filterProps } from "../../filterProps-CxkibNnG.js";
|
|
11
11
|
const YoutubeVideoStyled = styled.div.withConfig({
|
|
12
12
|
shouldForwardProp: filterProps(),
|
|
13
13
|
displayName: "YoutubeVideoStyled",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { MapFunction } from './map/MapFunction';
|
|
3
|
-
export declare const supportedComponents: readonly ["Accordion", "AccordionGroup", "Badge", "Body", "Button", "ButtonGroup", "ButtonAsLink", "Card", "Container", "ConsentMessage", "DiscoveryCard", "DiscoveryCardGroup", "Divider", "Grid", "GridItem", "Heading", "HifiIcon", "Link", "LinkAsButton", "LinkList", "IconSnippet", "IconSnippetList", "Image", "ImageHeader", "IconLoader", "Price", "MediaText", "
|
|
3
|
+
export declare const supportedComponents: readonly ["Accordion", "AccordionGroup", "Badge", "Body", "Button", "ButtonGroup", "ButtonAsLink", "Card", "Container", "ConsentMessage", "DiscoveryCard", "DiscoveryCardGroup", "Divider", "Grid", "GridItem", "Heading", "HifiIcon", "Link", "LinkAsButton", "LinkList", "IconSnippet", "IconSnippetList", "Image", "ImageHeader", "IconLoader", "Price", "MediaText", "ArtDirectedImage", "RichTextContentful", "YoutubeVideo"];
|
|
4
4
|
type ComponentFeatures = {
|
|
5
5
|
component: FC<any>;
|
|
6
6
|
inspectorField: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useContentfulLiveUpdates, ContentfulLivePreviewProvider } from "@contentful/live-preview/react";
|
|
4
|
-
import { m as mapContentToComponents } from "../../mapContentToComponents-
|
|
4
|
+
import { m as mapContentToComponents } from "../../mapContentToComponents-DcPjYAXH.js";
|
|
5
5
|
const BrixLiveRendererComponents = ({
|
|
6
6
|
data
|
|
7
7
|
}) => {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ArtDirectedImageProps } from '../../components/ArtDirectedImage';
|
|
2
|
+
import { MapFunction } from './MapFunction';
|
|
3
|
+
export declare const mapArtDirectedImageProps: (content: unknown) => ArtDirectedImageProps | false;
|
|
4
|
+
export declare const mapArtDirectedImage: MapFunction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import LivePreviewRenderer from "../live-preview-renderer/index.js";
|
|
4
|
-
import { m as mapContentToComponents } from "../../mapContentToComponents-
|
|
4
|
+
import { m as mapContentToComponents } from "../../mapContentToComponents-DcPjYAXH.js";
|
|
5
5
|
const Renderer = ({
|
|
6
6
|
content,
|
|
7
7
|
isDraftMode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
|
-
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "./styled-
|
|
2
|
+
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "./styled-D-fzMZNS.js";
|
|
3
3
|
import { b as breakpoint_medium, a as breakpoint_large } from "./breakpoint-CzBSbbY7.js";
|
|
4
4
|
const colorVodafoneRed = "colorVodafoneRed";
|
|
5
5
|
const colorVodafoneRedTint = "colorVodafoneRedTint";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "aspectRatio", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "backgroundImage", "badge", "border", "borderBottom", "bottomSpacing", "buttonLink", "buttons", "coloringMode", "colorSwatch", "component", "contentGridDesktopColumns", "corners", "coversFullPage", "description", "elevation", "energyClass", "expanded", "filterItems", "footnote", "footnoteLink", "gapSpacing", "grow", "handleOnClick", "handleOnToogle", "hasOverlay", "heading", "height", "heightSm", "heightMd", "heightLg", "horizontalAlignment", "icon", "iconAlign", "iconName", "iconPosition", "image", "imageLink", "images", "internal", "isActive", "isChecked", "isDisabled", "isFullscreen", "isInHoverRange", "isLastItemInList", "isOpen", "isOrdered", "isSelected", "isTransparentBackground", "items", "jumpToClickedItem", "justify", "justifyHorizontal", "label", "lg", "link", "loadingSpinnerChild", "mapId", "md", "message", "more", "needsBorder", "nextAriaLabel", "notificationType", "objectFit", "objectPosition", "offset", "onUpdate", "openMultiple", "orientation", "padding", "prefix", "prefixWeight", "prevAriaLabel", "price", "productId", "promoPrice", "roundedCorner", "screenReaderInstruction", "showList", "size", "sm", "sources", "spacing", "spinnerType", "status", "stretch", "strikePrice", "suffix", "tag", "textContent", "uid", "variant", "verticalPadding", "viewportHeight", "visible", "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, propsNotToPass = propsNotPassToDomDefault) => {
|
|
12
|
+
return Object.fromEntries(Object.entries(props).filter(([key]) => !propsNotToPass.includes(key)));
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
filterProps as a,
|
|
16
|
+
filterPropsForUnstyledComponent as f,
|
|
17
|
+
propsNotPassToDomDefault as p
|
|
18
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { m as maxWidthBreakpoint, e as containerMaxWidth } from "./index-DbG0QL9D.js";
|
|
2
|
+
import { b as breakpoint_medium, a as breakpoint_large } from "./breakpoint-CzBSbbY7.js";
|
|
3
|
+
const toVw = (cols) => cols ? `${cols / 12 * 100}vw` : void 0;
|
|
4
|
+
const toPx = (cols) => cols ? `${containerMaxWidth * cols / 12}px` : void 0;
|
|
5
|
+
const getSizesFromGridConfig = (gridConfig, containerContext = false) => {
|
|
6
|
+
const sm = toVw(gridConfig.sm) ?? "100vw";
|
|
7
|
+
const smPx = toPx(gridConfig.sm) ?? "1240px";
|
|
8
|
+
const md = toVw(gridConfig.md);
|
|
9
|
+
const mdPx = toPx(gridConfig.md);
|
|
10
|
+
const lgVw = toVw(gridConfig.lg);
|
|
11
|
+
const lgPx = toPx(gridConfig.lg);
|
|
12
|
+
if (containerContext) {
|
|
13
|
+
if (!md && !lgPx) {
|
|
14
|
+
return `(max-width: ${maxWidthBreakpoint}px) ${sm}, ${smPx}`;
|
|
15
|
+
}
|
|
16
|
+
if (md && !lgPx) {
|
|
17
|
+
if (sm === md) {
|
|
18
|
+
return `(max-width: ${maxWidthBreakpoint}px) ${md}, ${mdPx}`;
|
|
19
|
+
}
|
|
20
|
+
return `(max-width: ${breakpoint_medium}) ${sm}, (max-width: ${maxWidthBreakpoint}px) ${md}, ${mdPx}`;
|
|
21
|
+
}
|
|
22
|
+
if (lgPx) {
|
|
23
|
+
if (!md) {
|
|
24
|
+
return `(max-width: ${breakpoint_large}) ${sm}, (max-width: ${maxWidthBreakpoint}px) ${lgVw}, ${lgPx}`;
|
|
25
|
+
}
|
|
26
|
+
if (sm === md) {
|
|
27
|
+
return `(max-width: ${breakpoint_large}) ${md}, (max-width: ${maxWidthBreakpoint}px) ${lgVw}, ${lgPx}`;
|
|
28
|
+
}
|
|
29
|
+
return `(max-width: ${breakpoint_medium}) ${sm}, (max-width: ${breakpoint_large}) ${md}, (max-width: ${maxWidthBreakpoint}px) ${lgVw}, ${lgPx}`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (!md && !lgVw) {
|
|
33
|
+
return sm;
|
|
34
|
+
}
|
|
35
|
+
if (md && !lgVw) {
|
|
36
|
+
return sm === md ? md : `(max-width: ${breakpoint_medium}) ${sm}, ${md}`;
|
|
37
|
+
}
|
|
38
|
+
if (!md && lgVw) {
|
|
39
|
+
return `(max-width: ${breakpoint_large}) ${sm}, ${lgVw}`;
|
|
40
|
+
}
|
|
41
|
+
if (md && lgVw) {
|
|
42
|
+
return sm === md ? `(max-width: ${breakpoint_large}) ${md}, ${lgVw}` : `(max-width: ${breakpoint_medium}) ${sm}, (max-width: ${breakpoint_large}) ${md}, ${lgVw}`;
|
|
43
|
+
}
|
|
44
|
+
return "";
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
getSizesFromGridConfig as g
|
|
48
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentType, JSX, ReactNode } from 'react';
|
|
2
|
+
import { ImageProps } from '../../components/Image';
|
|
3
|
+
/**
|
|
4
|
+
* Props of the image component.
|
|
5
|
+
*/
|
|
6
|
+
export type ImageComponentProps = JSX.IntrinsicElements['img'] & {
|
|
7
|
+
src: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
aspectRatio?: `${number}/${number}`;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Image component type.
|
|
15
|
+
*/
|
|
16
|
+
export type ImageComponentType = ComponentType<ImageComponentProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Default image component using `<img>`.
|
|
19
|
+
* @todo Filter out non-standard image props here
|
|
20
|
+
*/
|
|
21
|
+
export declare const DefaultImage: ImageComponentType;
|
|
22
|
+
/**
|
|
23
|
+
* Context for providing a custom image component.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ImageContext: import('react').Context<ImageComponentType>;
|
|
26
|
+
/**
|
|
27
|
+
* Hook to access the current image component from context.
|
|
28
|
+
*/
|
|
29
|
+
export declare const useImageComponent: () => ImageComponentType;
|
|
30
|
+
/**
|
|
31
|
+
* Provider for ImageContext
|
|
32
|
+
*/
|
|
33
|
+
export declare const ImageProvider: ({ imageComponent, children, }: {
|
|
34
|
+
imageComponent: ImageComponentType;
|
|
35
|
+
children?: ReactNode;
|
|
36
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const filterImagePropsToImageComponentProps: (props: ImageProps) => ImageComponentProps;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import { f as filterPropsForUnstyledComponent, p as propsNotPassToDomDefault } from "../../filterProps-CxkibNnG.js";
|
|
4
|
+
const DefaultImage = (props) => /* @__PURE__ */ jsx("img", { ...filterPropsForUnstyledComponent(props) });
|
|
5
|
+
const ImageContext = createContext(DefaultImage);
|
|
6
|
+
const useImageComponent = () => useContext(ImageContext);
|
|
7
|
+
const ImageProvider = ({
|
|
8
|
+
imageComponent,
|
|
9
|
+
children
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(ImageContext, { value: imageComponent, children });
|
|
12
|
+
};
|
|
13
|
+
const imagePropsToPassOn = ["aspectRatio", "width", "height"];
|
|
14
|
+
const filterImagePropsToImageComponentProps = (props) => {
|
|
15
|
+
return Object.fromEntries(Object.entries(props).filter(([key]) => imagePropsToPassOn.includes(key) || !propsNotPassToDomDefault.includes(key)));
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
DefaultImage,
|
|
19
|
+
ImageContext,
|
|
20
|
+
ImageProvider,
|
|
21
|
+
filterImagePropsToImageComponentProps,
|
|
22
|
+
useImageComponent
|
|
23
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentType, JSX, ReactNode } from 'react';
|
|
2
|
+
import { ArtDirectedImageSourceType } from '../../components/ArtDirectedImage';
|
|
3
|
+
import { ImageProps } from '../../components/Image';
|
|
4
|
+
/**
|
|
5
|
+
* Props of a single source for the picture component.
|
|
6
|
+
*/
|
|
7
|
+
type PictureComponentSourceProps = JSX.IntrinsicElements['source'] & {
|
|
8
|
+
srcSet: string;
|
|
9
|
+
media: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Props of the picture component.
|
|
13
|
+
*/
|
|
14
|
+
export type PictureComponentProps = JSX.IntrinsicElements['picture'] & {
|
|
15
|
+
sources: PictureComponentSourceProps[];
|
|
16
|
+
image: JSX.IntrinsicElements['img'] & {
|
|
17
|
+
src: string;
|
|
18
|
+
alt: string;
|
|
19
|
+
width?: number;
|
|
20
|
+
height?: number;
|
|
21
|
+
aspectRatio: `${number}/${number}`;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Picture component type.
|
|
26
|
+
*/
|
|
27
|
+
export type PictureComponentType = ComponentType<PictureComponentProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Default picture component using `<picture>`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const DefaultPicture: PictureComponentType;
|
|
32
|
+
/**
|
|
33
|
+
* Context for providing a custom picture component.
|
|
34
|
+
*/
|
|
35
|
+
export declare const PictureContext: import('react').Context<PictureComponentType>;
|
|
36
|
+
/**
|
|
37
|
+
* Hook to access the current picture component from context.
|
|
38
|
+
*/
|
|
39
|
+
export declare const usePictureComponent: () => PictureComponentType;
|
|
40
|
+
/**
|
|
41
|
+
* Provider for PictureContext
|
|
42
|
+
*/
|
|
43
|
+
export declare const PictureProvider: ({ pictureComponent, children, }: {
|
|
44
|
+
pictureComponent: PictureComponentType;
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare const filterImagePropsToPictureComponentImageProps: (props: ImageProps) => PictureComponentProps["image"];
|
|
48
|
+
export declare const filterAspectRatioFromSources: (source: ArtDirectedImageSourceType) => PictureComponentSourceProps;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, createElement, useContext } from "react";
|
|
3
|
+
import { f as filterPropsForUnstyledComponent, p as propsNotPassToDomDefault } from "../../filterProps-CxkibNnG.js";
|
|
4
|
+
const DefaultPicture = ({
|
|
5
|
+
sources,
|
|
6
|
+
image,
|
|
7
|
+
...props
|
|
8
|
+
}) => /* @__PURE__ */ jsxs("picture", { ...filterPropsForUnstyledComponent(props), children: [
|
|
9
|
+
sources.map(({
|
|
10
|
+
srcSet,
|
|
11
|
+
...otherSourceProps
|
|
12
|
+
}) => /* @__PURE__ */ createElement("source", { ...filterPropsForUnstyledComponent(otherSourceProps), key: srcSet, srcSet })),
|
|
13
|
+
/* @__PURE__ */ jsx("img", { ...filterPropsForUnstyledComponent(image) })
|
|
14
|
+
] });
|
|
15
|
+
const PictureContext = createContext(DefaultPicture);
|
|
16
|
+
const usePictureComponent = () => useContext(PictureContext);
|
|
17
|
+
const PictureProvider = ({
|
|
18
|
+
pictureComponent,
|
|
19
|
+
children
|
|
20
|
+
}) => {
|
|
21
|
+
return /* @__PURE__ */ jsx(PictureContext, { value: pictureComponent, children });
|
|
22
|
+
};
|
|
23
|
+
const imagePropsToPassOn = ["aspectRatio"];
|
|
24
|
+
const filterImagePropsToPictureComponentImageProps = (props) => {
|
|
25
|
+
return Object.fromEntries(Object.entries(props).filter(([key]) => imagePropsToPassOn.includes(key) || !propsNotPassToDomDefault.includes(key)));
|
|
26
|
+
};
|
|
27
|
+
const filterAspectRatioFromSources = (source) => {
|
|
28
|
+
console.log(source);
|
|
29
|
+
return Object.fromEntries(Object.entries(source).filter(([key]) => key !== "aspectRatio"));
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
DefaultPicture,
|
|
33
|
+
PictureContext,
|
|
34
|
+
PictureProvider,
|
|
35
|
+
filterAspectRatioFromSources,
|
|
36
|
+
filterImagePropsToPictureComponentImageProps,
|
|
37
|
+
usePictureComponent
|
|
38
|
+
};
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const useViewport = () => {
|
|
6
|
-
const tablet = useMediaQuery(mediumMediaQuery);
|
|
7
|
-
const desktop = useMediaQuery(largeMediaQuery);
|
|
8
|
-
const [viewportState, setViewportState] = useState(viewportSm);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (desktop) {
|
|
11
|
-
setViewportState(viewportLg);
|
|
12
|
-
} else if (tablet) {
|
|
13
|
-
setViewportState(viewportMd);
|
|
14
|
-
} else {
|
|
15
|
-
setViewportState(viewportSm);
|
|
16
|
-
}
|
|
17
|
-
}, [tablet, desktop]);
|
|
18
|
-
return viewportState;
|
|
19
|
-
};
|
|
1
|
+
import "react";
|
|
2
|
+
import "../../foundations/media-query/viewport/index.js";
|
|
3
|
+
import { u } from "../../index-DKCzYjXw.js";
|
|
4
|
+
import "../useMediaQuery/index.js";
|
|
20
5
|
export {
|
|
21
|
-
useViewport
|
|
6
|
+
u as useViewport
|
|
22
7
|
};
|
|
@@ -3,31 +3,33 @@ import { useMemo } from "react";
|
|
|
3
3
|
import Flex from "./components/Flex/index.js";
|
|
4
4
|
import FlexItem from "./components/FlexItem/index.js";
|
|
5
5
|
import Heading, { isHeadingProps, headingAlignLeft } from "./components/Heading/index.js";
|
|
6
|
-
import Image from "./components/Image/index.js";
|
|
6
|
+
import Image, { isImageProps, aspectRatio16_9 } from "./components/Image/index.js";
|
|
7
7
|
import Link, { isLinkProps } from "./components/Link/index.js";
|
|
8
|
-
import { R as RichText } from "./index-
|
|
8
|
+
import { R as RichText } from "./index-DP6Nlg-a.js";
|
|
9
9
|
import RichTextContentful from "./components/RichtTextContentful/index.js";
|
|
10
10
|
import YoutubeVideo from "./components/YoutubeVideo/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { p as pTagName, u as ulTagName, d as divTagName, l as liTagName } from "./tags-Cwgg3Gx2.js";
|
|
12
12
|
import { a as fontWeightRegular } from "./FontWeight-DEBGHbtO.js";
|
|
13
13
|
import { t as textHeadingXs, b as textHeadingSm } from "./HeadingSize-CfCRn3Lh.js";
|
|
14
14
|
import { s as spacingMd, f as spacing2Xs, b as spacingSm, c as spacingNone } from "./Spacing-8v6hcO2x.js";
|
|
15
|
-
import { useViewport } from "./
|
|
15
|
+
import { u as useViewport } from "./index-DKCzYjXw.js";
|
|
16
16
|
import styled from "styled-components";
|
|
17
17
|
import viewport from "./foundations/media-query/viewport/index.js";
|
|
18
18
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
19
19
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
20
|
-
import { a as filterProps } from "./filterProps-
|
|
21
|
-
import "./index-
|
|
22
|
-
import "./index-
|
|
23
|
-
import "
|
|
20
|
+
import { a as filterProps } from "./filterProps-CxkibNnG.js";
|
|
21
|
+
import "./index-C2E3JrhF.js";
|
|
22
|
+
import "./index-BsykXBqC.js";
|
|
23
|
+
import "./index-DbG0QL9D.js";
|
|
24
|
+
import "./index-Bu-7sSif.js";
|
|
24
25
|
import "./hooks/useLinkComponent/index.js";
|
|
25
|
-
import
|
|
26
|
-
import "./
|
|
27
|
-
import "./
|
|
26
|
+
import "./components/UtilityLink/index.js";
|
|
27
|
+
import "./hooks/useImageComponent/index.js";
|
|
28
|
+
import "./styled-BKH3egch.js";
|
|
29
|
+
import "./index-Dd-A7i9Y.js";
|
|
28
30
|
import { i as isObject, h as hasMatchingComponentName } from "./isObject-BYBrvoVW.js";
|
|
29
31
|
import { i as isBottomSpacing } from "./isBottomSpacing-BxfreCZU.js";
|
|
30
|
-
import { a as flexOrientationVertical, f as flexOrientationHorizontal, b as flexJustifyStart } from "./styled-
|
|
32
|
+
import { a as flexOrientationVertical, f as flexOrientationHorizontal, b as flexJustifyStart } from "./styled-CUp4EbPh.js";
|
|
31
33
|
const mediaTextPositionTop = "top";
|
|
32
34
|
const mediaTextPositionLeft = "left";
|
|
33
35
|
const mediaTextPositionRight = "right";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { S as ScreenreaderOnly } from "./index-
|
|
2
|
+
import { S as ScreenreaderOnly } from "./index-C2E3JrhF.js";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import InlineLink from "./components/InlineLink/index.js";
|
|
5
5
|
import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|