@vodafone_de/brix-components 7.1.7 → 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.
- package/dist/{BorderRadius-ClUShVLu.js → BorderRadius-2LdggXbQ.js} +2 -2
- package/dist/{TableHead-C9Nyap9H.js → TableHead-Cfn2iQRg.js} +1 -1
- package/dist/{TableWrapper-BlScbDc6.js → TableWrapper-BrnjxwJz.js} +1 -1
- package/dist/breakpoint-CzBSbbY7.js +9 -0
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/AccordionGroup/index.js +1 -1
- package/dist/components/ArtDirectedImage/index.d.ts +5 -0
- package/dist/components/ArtDirectedImage/index.js +44 -0
- package/dist/components/ArtDirectedImage/props.d.ts +18 -0
- package/dist/components/ArtDirectedImage/styled.d.ts +2 -0
- package/dist/components/Badge/index.js +3 -3
- package/dist/components/Body/index.js +1 -1
- package/dist/components/BottomBar/index.js +3 -3
- package/dist/components/Button/index.js +2 -2
- package/dist/components/ButtonAsLink/index.js +2 -2
- package/dist/components/ButtonGroup/index.js +2 -2
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Carousel/index.js +6 -6
- package/dist/components/Checkbox/index.js +3 -3
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/ColorSwatch/index.js +2 -2
- package/dist/components/ColorSwatchGroup/index.js +3 -3
- package/dist/components/ConsentMessage/index.js +3 -3
- package/dist/components/Container/index.js +2 -2
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/DemoBox/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DiscoveryCard/index.js +10 -10
- package/dist/components/DiscoveryCard/styled.d.ts +1 -1
- package/dist/components/DiscoveryCardGroup/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FilterGroup/index.js +3 -3
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/FlexItem/index.js +1 -1
- package/dist/components/FootnoteContent/index.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/FormHelperStatusIcon/index.js +1 -1
- package/dist/components/GoogleMap/index.js +3 -3
- package/dist/components/Grid/index.js +1 -1
- package/dist/components/GridItem/index.js +4 -3
- package/dist/components/Heading/index.js +2 -2
- package/dist/components/HifiIcon/index.js +1 -1
- package/dist/components/IconButton/index.js +4 -4
- package/dist/components/IconSnippet/index.js +3 -3
- package/dist/components/Image/index.js +47 -39
- package/dist/components/Image/props.d.ts +35 -32
- package/dist/components/Image/styled.d.ts +1 -1
- package/dist/components/ImageHeader/index.js +7 -7
- package/dist/components/ImageHeader/props.d.ts +1 -1
- package/dist/components/ImageHeader/styled.d.ts +1 -1
- package/dist/components/InfoBanner/index.js +2 -2
- package/dist/components/InlineIcon/index.js +1 -1
- package/dist/components/InlineLink/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.js +2 -2
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkList/index.js +1 -1
- package/dist/components/LinkListItem/index.js +4 -4
- package/dist/components/LoadingSpinner/index.js +1 -1
- package/dist/components/LocalStyle/index.js +2 -2
- package/dist/components/MediaText/index.js +6 -6
- package/dist/components/Notification/index.js +4 -4
- package/dist/components/OpenTextFootnoteAdapter/index.js +1 -1
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/index.js +4 -4
- package/dist/components/Price/index.js +1 -1
- package/dist/components/ProductCard/index.js +3 -3
- package/dist/components/QuickLinkList/index.js +3 -3
- 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 -4
- package/dist/components/SelectInput/index.js +3 -3
- package/dist/components/Stepper/index.js +4 -3
- package/dist/components/SuggestInput/index.js +3 -3
- package/dist/components/Switch/index.js +3 -3
- package/dist/components/TabGroup/index.js +3 -3
- package/dist/components/Table/index.js +2 -2
- package/dist/components/TabularPrice/index.js +1 -1
- package/dist/components/TextList/index.js +2 -2
- package/dist/components/Textarea/index.js +2 -2
- package/dist/components/TimeInput/index.js +2 -2
- package/dist/components/Tray/index.js +2 -2
- package/dist/components/YoutubeVideo/index.js +1 -1
- package/dist/contentful/index.js +10 -10
- package/dist/contentful/live-preview-inspector/index.js +1 -1
- package/dist/contentful/live-preview-renderer/index.js +1 -1
- package/dist/contentful/renderer/index.js +1 -1
- package/dist/{cssVars-C3-c3zhv.js → cssVars-_wntC-Ac.js} +2 -2
- package/dist/filterProps-CPul3CC8.js +17 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/foundations/media-query/viewport/index.js +24 -4
- package/dist/hooks/useImageComponent/index.d.ts +28 -0
- package/dist/hooks/useImageComponent/index.js +17 -0
- package/dist/hooks/usePictureComponent/index.d.ts +25 -0
- package/dist/hooks/usePictureComponent/index.js +27 -0
- package/dist/hooks/useViewport/index.js +2 -2
- package/dist/{index-DXRuQeDl.js → index-BPweURE-.js} +4 -4
- package/dist/{index-G2mpsxF7.js → index-DKCzYjXw.js} +1 -1
- package/dist/{index-C69TqGKE.js → index-Vub90geg.js} +1 -1
- package/dist/{index-B5p4bosD.js → index-rbdl_kyF.js} +3 -3
- package/dist/{index-M27FMM9r.js → index-tpq3BGwZ.js} +3 -3
- package/dist/index.d.ts +4 -2
- package/dist/index.js +159 -152
- package/dist/{mapContentToComponents-DRp1r1ht.js → mapContentToComponents-bL4ms1AC.js} +10 -10
- package/dist/{styled-B-_SmQSA.js → styled-13a_Vk0D.js} +2 -2
- package/dist/{styled-CPNO3vN5.js → styled-BKmRVjNA.js} +1 -1
- package/dist/{styled-D8a-ap4J.js → styled-B_ihuvyB.js} +1 -1
- package/dist/{styled-jl0239KS.js → styled-C6Wms75x.js} +1 -1
- package/dist/{styled-SllFJc7o.js → styled-CKK_LUlC.js} +3 -3
- package/dist/{styled-1OrCdMDT.js → styled-CQLDmqmZ.js} +2 -2
- package/dist/{styled-BTBLpB_G.js → styled-CWusLu5R.js} +2 -2
- package/dist/{styled-VAsSnb5y.js → styled-Csv7V9ez.js} +1 -1
- package/dist/{styled-Djetw1lK.js → styled-D57p2ktn.js} +4 -4
- package/dist/{styled-CW4e5Qa3.js → styled-DCLv3G2j.js} +1 -1
- package/dist/{styled-CyZvsdJs.js → styled-DG6HSLPJ.js} +1 -1
- package/dist/{styled-RnVr222F.js → styled-DUsRG1Xh.js} +1 -1
- package/dist/{styled-U9du2n1i.js → styled-D_F38PuI.js} +2 -2
- package/dist/{styled-q7r_5eaz.js → styled-Dk6VS_Sg.js} +3 -3
- package/dist/{styled-DJWrbsIZ.js → styled-DoOOutJj.js} +1 -1
- package/dist/{styled-DOK4C5Ml.js → styled-QLVvcMdB.js} +1 -1
- package/package.json +1 -1
- package/dist/components/ResponsiveImage/index.d.ts +0 -5
- package/dist/components/ResponsiveImage/index.js +0 -89
- package/dist/components/ResponsiveImage/props.d.ts +0 -16
- package/dist/components/ResponsiveImage/styled.d.ts +0 -4
- package/dist/filterProps-CTn92eZw.js +0 -17
- package/dist/index-Ck2bCrhT.js +0 -32
|
@@ -7,9 +7,9 @@ import Flex from "../Flex/index.js";
|
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
8
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
|
-
import "../../styled-
|
|
10
|
+
import "../../styled-DUsRG1Xh.js";
|
|
11
11
|
import Link from "../Link/index.js";
|
|
12
|
-
import { R as RichText } from "../../index-
|
|
12
|
+
import { R as RichText } from "../../index-rbdl_kyF.js";
|
|
13
13
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
14
14
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
15
15
|
import { e as colorBorderCritical, g as colorBorderWarning, d as colorBorderSuccess, k as colorBorderInformation } from "../../BorderColor-CYdSW9dg.js";
|
|
@@ -23,11 +23,11 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
23
23
|
import { getIconColor } from "../../foundations/token/getIconColor/index.js";
|
|
24
24
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
25
25
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
26
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
26
|
+
import { b as borderRadiusMd } from "../../BorderRadius-2LdggXbQ.js";
|
|
27
27
|
import { g as borderWidthMd } from "../../BorderWidth-eg_mz82k.js";
|
|
28
28
|
import { d as colorIconInverse } from "../../IconColor-CtC9WUgr.js";
|
|
29
29
|
import { a as spacingMd, c as spacingSm } from "../../Spacing-BMQelJYr.js";
|
|
30
|
-
import { a as filterProps } from "../../filterProps-
|
|
30
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
31
31
|
const notificationStatusVariants = {
|
|
32
32
|
info: {
|
|
33
33
|
borderColor: getBorderColor(colorBorderInformation),
|
|
@@ -5,7 +5,7 @@ import AccordionGroup from "../AccordionGroup/index.js";
|
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import FootnoteContent from "../FootnoteContent/index.js";
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
|
-
import { R as RichText } from "../../index-
|
|
8
|
+
import { R as RichText } from "../../index-rbdl_kyF.js";
|
|
9
9
|
import { b as textHeadingSm, c as textHeadingLg } from "../../HeadingSize-CfCRn3Lh.js";
|
|
10
10
|
import { h as h3TagName } from "../../tags-38kBhOn6.js";
|
|
11
11
|
const getFootnoteContent = (content, footnoteContentBacklinkText) => {
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
5
5
|
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-DSOSZvNi.js";
|
|
6
|
-
import { a as filterProps } from "../../filterProps-
|
|
6
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
7
7
|
const overlayAppearancePrimary = "primary";
|
|
8
8
|
const overlayAppearanceSecondary = "secondary";
|
|
9
9
|
const OverlayStyled = styled.div.withConfig({
|
|
@@ -8,12 +8,12 @@ import Grid from "../Grid/index.js";
|
|
|
8
8
|
import Badge from "../Badge/index.js";
|
|
9
9
|
import ColorSwatch from "../ColorSwatch/index.js";
|
|
10
10
|
import { c as iconSizeMd } from "../../props-7dcsjRUx.js";
|
|
11
|
-
import "../../styled-
|
|
11
|
+
import "../../styled-DUsRG1Xh.js";
|
|
12
12
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
13
13
|
import styled from "styled-components";
|
|
14
14
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
15
15
|
import Image, { aspectRatio1_1 } from "../Image/index.js";
|
|
16
|
-
import
|
|
16
|
+
import viewport from "../../foundations/media-query/viewport/index.js";
|
|
17
17
|
import GridItem from "../GridItem/index.js";
|
|
18
18
|
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
19
19
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -27,12 +27,12 @@ import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
|
27
27
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
28
28
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
29
29
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
30
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
30
|
+
import { b as borderRadiusMd } from "../../BorderRadius-2LdggXbQ.js";
|
|
31
31
|
import { a as borderWidthFocus, c as borderWidthSelected } from "../../BorderWidth-eg_mz82k.js";
|
|
32
32
|
import { f as fontWeightRegular, a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
33
33
|
import { o as opacityOverlay } from "../../Opacity-smkGiwsf.js";
|
|
34
34
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
35
|
-
import { a as filterProps } from "../../filterProps-
|
|
35
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
36
36
|
import { getHeadingSize } from "../../foundations/token/getHeadingSize/index.js";
|
|
37
37
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
38
38
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "../ScreenreaderOnly/index.js";
|
|
4
|
-
import { c, P, g, f, p, a, e, d, b } from "../../index-
|
|
4
|
+
import { c, P, g, f, p, a, e, d, b } from "../../index-Vub90geg.js";
|
|
5
5
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
export {
|
|
7
7
|
c as createScreenReaderText,
|
|
@@ -7,9 +7,9 @@ import ColorSwatchGroup from "../ColorSwatchGroup/index.js";
|
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
8
|
import Image, { aspectRatio1_1 } from "../Image/index.js";
|
|
9
9
|
import { d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
10
|
-
import "../../styled-
|
|
10
|
+
import "../../styled-DUsRG1Xh.js";
|
|
11
11
|
import Link from "../Link/index.js";
|
|
12
|
-
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-
|
|
12
|
+
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-Vub90geg.js";
|
|
13
13
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
14
14
|
import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
|
|
15
15
|
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
@@ -17,7 +17,7 @@ import styled from "styled-components";
|
|
|
17
17
|
import Card from "../Card/index.js";
|
|
18
18
|
import Icon from "../Icon/index.js";
|
|
19
19
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
20
|
-
import { a as headingAlignCenter } from "../../styled-
|
|
20
|
+
import { a as headingAlignCenter } from "../../styled-Csv7V9ez.js";
|
|
21
21
|
const ProductCardStyled = styled(Card).withConfig({
|
|
22
22
|
displayName: "ProductCardStyled",
|
|
23
23
|
componentId: "sc-1ps8gys-0"
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Grid from "../Grid/index.js";
|
|
4
4
|
import GridItem from "../GridItem/index.js";
|
|
5
|
-
import { u as useViewport, v as viewportLg } from "../../index-
|
|
5
|
+
import { u as useViewport, v as viewportLg } from "../../index-DKCzYjXw.js";
|
|
6
6
|
import Icon from "../Icon/index.js";
|
|
7
7
|
import { d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
8
|
-
import "../../styled-
|
|
8
|
+
import "../../styled-DUsRG1Xh.js";
|
|
9
9
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
10
|
-
import { f as filterPropsForUnstyledComponent } from "../../filterProps-
|
|
10
|
+
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CPul3CC8.js";
|
|
11
11
|
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
13
|
import { B as ButtonAppearanceColor } from "../../ButtonAppearanceHelper-D2SlSoU8.js";
|
|
@@ -16,11 +16,11 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
16
16
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
17
17
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
18
|
import { c as colorBorderFocus, e as colorBorderCritical, j as colorBorderSelected, b as colorBorderUnselected } from "../../BorderColor-CYdSW9dg.js";
|
|
19
|
-
import {
|
|
19
|
+
import { a as borderRadiusFull } from "../../BorderRadius-2LdggXbQ.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
21
21
|
import { d as colorObjectSelected, b as colorObjectInverse } from "../../ObjectColor-0RAzLGI5.js";
|
|
22
22
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
23
|
-
import { a as filterProps } from "../../filterProps-
|
|
23
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
24
24
|
const RadioContainer = styled(Flex).withConfig({
|
|
25
25
|
shouldForwardProp: filterProps(["disabled"]),
|
|
26
26
|
displayName: "RadioContainer",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect, useRef } from "react";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import
|
|
6
|
-
import { a as filterProps } from "../../filterProps-
|
|
5
|
+
import viewport from "../../foundations/media-query/viewport/index.js";
|
|
6
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
7
7
|
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
8
8
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
9
9
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { d as distExports, r as richTextReactRenderer_es5Exports, R as RichTextContentfulStyled } from "../../styled-
|
|
3
|
+
import { d as distExports, r as richTextReactRenderer_es5Exports, R as RichTextContentfulStyled } from "../../styled-QLVvcMdB.js";
|
|
4
4
|
import Body from "../Body/index.js";
|
|
5
5
|
import Divider from "../Divider/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import InlineLink from "../InlineLink/index.js";
|
|
8
|
-
import { a as TextListItem, T as TextList } from "../../index-
|
|
8
|
+
import { a as TextListItem, T as TextList } from "../../index-rbdl_kyF.js";
|
|
9
9
|
const getOptions = (paragraphSpacing = void 0) => {
|
|
10
10
|
const options = {
|
|
11
11
|
renderMark: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
5
|
-
import { a as filterProps } from "../../filterProps-
|
|
5
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
6
6
|
const ScreenReaderOnlyStyled = styled.span.withConfig({
|
|
7
7
|
shouldForwardProp: filterProps(),
|
|
8
8
|
displayName: "ScreenReaderOnlyStyled",
|
|
@@ -4,13 +4,13 @@ import { useState, useRef } from "react";
|
|
|
4
4
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
5
5
|
import IconButton, { iconButtonShapeSquare } from "../IconButton/index.js";
|
|
6
6
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
7
|
-
import "../../styled-
|
|
8
|
-
import { p as primaryAppearance } from "../../styled-
|
|
7
|
+
import "../../styled-DUsRG1Xh.js";
|
|
8
|
+
import { p as primaryAppearance } from "../../styled-Dk6VS_Sg.js";
|
|
9
9
|
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
10
10
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
11
11
|
import { bn as CloseIcon } from "../../_5gPlusIcon-CnxmOo1u.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
13
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-CWusLu5R.js";
|
|
14
14
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
15
15
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
16
16
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
@@ -18,7 +18,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
18
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
19
|
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
21
|
-
import { a as filterProps } from "../../filterProps-
|
|
21
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
22
22
|
const SearchInputButtonWrapperStyled = styled.div.withConfig({
|
|
23
23
|
shouldForwardProp: filterProps(),
|
|
24
24
|
displayName: "SearchInputButtonWrapperStyled",
|
|
@@ -7,7 +7,7 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
|
7
7
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
8
8
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
|
-
import "../../styled-
|
|
10
|
+
import "../../styled-DUsRG1Xh.js";
|
|
11
11
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
12
12
|
import { b as spacingXs, c as spacingSm, a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
13
13
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
@@ -21,9 +21,9 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
21
21
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
22
22
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
23
23
|
import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-CYdSW9dg.js";
|
|
24
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
24
|
+
import { b as borderRadiusMd } from "../../BorderRadius-2LdggXbQ.js";
|
|
25
25
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
26
|
-
import { a as filterProps } from "../../filterProps-
|
|
26
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
27
27
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
28
28
|
const SelectInputWrapperStyled = styled.div.withConfig({
|
|
29
29
|
displayName: "SelectInputWrapperStyled",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { u as useViewport } from "../../index-
|
|
4
|
+
import { u as useViewport } from "../../index-DKCzYjXw.js";
|
|
5
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
8
|
-
import
|
|
8
|
+
import viewport from "../../foundations/media-query/viewport/index.js";
|
|
9
|
+
import { c as breakpoint_medium_number } from "../../breakpoint-CzBSbbY7.js";
|
|
9
10
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
10
11
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
11
12
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -16,7 +17,7 @@ import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
|
16
17
|
import { a as colorObjectBrand, b as colorObjectInverse } from "../../ObjectColor-0RAzLGI5.js";
|
|
17
18
|
import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
18
19
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
19
|
-
import { a as filterProps } from "../../filterProps-
|
|
20
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
20
21
|
const StepperItemStyled = styled.li.withConfig({
|
|
21
22
|
shouldForwardProp: filterProps(),
|
|
22
23
|
displayName: "StepperItemStyled",
|
|
@@ -7,9 +7,9 @@ import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
|
7
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
8
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
|
-
import "../../styled-
|
|
10
|
+
import "../../styled-DUsRG1Xh.js";
|
|
11
11
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
12
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-CWusLu5R.js";
|
|
13
13
|
import { c as spacingSm, b as spacingXs, a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
14
14
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
15
15
|
import Body from "../Body/index.js";
|
|
@@ -31,7 +31,7 @@ import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
|
31
31
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
32
32
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
33
33
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
34
|
-
import { a as filterProps } from "../../filterProps-
|
|
34
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
35
35
|
const calculateListMaxHeight = (numberOfVisibleItems) => {
|
|
36
36
|
return `calc((${getSpacing(spacingSm)} * 2 + ${getBodySize(textBodyMd).fontSize} * ${getBodySize(textBodyMd).lineHeight}) * ${numberOfVisibleItems})`;
|
|
37
37
|
};
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
5
5
|
import { i as iconSize2xs } from "../../props-7dcsjRUx.js";
|
|
6
|
-
import "../../styled-
|
|
6
|
+
import "../../styled-DUsRG1Xh.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
import Label from "../Label/index.js";
|
|
9
9
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -16,12 +16,12 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
16
16
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
17
17
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
18
|
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
19
|
-
import {
|
|
19
|
+
import { a as borderRadiusFull } from "../../BorderRadius-2LdggXbQ.js";
|
|
20
20
|
import { a as borderWidthFocus, d as borderWidthSm } from "../../BorderWidth-eg_mz82k.js";
|
|
21
21
|
import { b as colorObjectInverse, d as colorObjectSelected, g as colorObjectUnselected } from "../../ObjectColor-0RAzLGI5.js";
|
|
22
22
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
23
23
|
import { b as spacingXs, a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
24
|
-
import { a as filterProps } from "../../filterProps-
|
|
24
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
25
25
|
const getHandleIcon = (checked) => {
|
|
26
26
|
const iconName = checked ? "Tick" : "Close";
|
|
27
27
|
return /* @__PURE__ */ jsx(IconLoader, { size: iconSize2xs, name: iconName });
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
4
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
5
5
|
import { b as iconSizeSm, d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
6
|
-
import "../../styled-
|
|
6
|
+
import "../../styled-DUsRG1Xh.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
import Flex from "../Flex/index.js";
|
|
9
9
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -17,12 +17,12 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
17
17
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
18
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
19
19
|
import { f as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
20
|
-
import { d as borderRadiusSm } from "../../BorderRadius-
|
|
20
|
+
import { d as borderRadiusSm } from "../../BorderRadius-2LdggXbQ.js";
|
|
21
21
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
22
22
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
23
23
|
import { a as colorObjectBrand } from "../../ObjectColor-0RAzLGI5.js";
|
|
24
24
|
import { a as spacingMd, c as spacingSm, b as spacingXs, e as spacing2Xs, d as spacingXl } from "../../Spacing-BMQelJYr.js";
|
|
25
|
-
import { a as filterProps } from "../../filterProps-
|
|
25
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
26
26
|
const iconPositionLeft = "left";
|
|
27
27
|
const iconPositionTop = "top";
|
|
28
28
|
const tabGroupWidthFull = "full";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a, c, d, b, T, e } from "../../TableHead-
|
|
3
|
-
import { T as TableWrapper } from "../../TableWrapper-
|
|
2
|
+
import { a, c, d, b, T, e } from "../../TableHead-Cfn2iQRg.js";
|
|
3
|
+
import { T as TableWrapper } from "../../TableWrapper-BrnjxwJz.js";
|
|
4
4
|
export {
|
|
5
5
|
a as TableBody,
|
|
6
6
|
c as TableCell,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { a, T } from "../../index-
|
|
3
|
+
import { a, T } from "../../index-rbdl_kyF.js";
|
|
4
4
|
import "../../tags-38kBhOn6.js";
|
|
5
5
|
import "../../Spacing-BMQelJYr.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
|
-
import "../../styled-
|
|
7
|
+
import "../../styled-DoOOutJj.js";
|
|
8
8
|
export {
|
|
9
9
|
a as TextListItem,
|
|
10
10
|
T as default
|
|
@@ -19,10 +19,10 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
19
19
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
20
|
import { a as colorBackgroundSubtle } from "../../BackgroundColor-DSOSZvNi.js";
|
|
21
21
|
import { a as colorBorderNeutral, c as colorBorderFocus, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-CYdSW9dg.js";
|
|
22
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
22
|
+
import { b as borderRadiusMd } from "../../BorderRadius-2LdggXbQ.js";
|
|
23
23
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
24
24
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
25
|
-
import { a as filterProps } from "../../filterProps-
|
|
25
|
+
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
26
26
|
const TextareaWrapperStyled = styled.div.withConfig({
|
|
27
27
|
shouldForwardProp: filterProps(),
|
|
28
28
|
displayName: "TextareaWrapperStyled",
|
|
@@ -6,9 +6,9 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
|
6
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
7
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
8
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
9
|
-
import "../../styled-
|
|
9
|
+
import "../../styled-DUsRG1Xh.js";
|
|
10
10
|
import "../Input/index.js";
|
|
11
|
-
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-
|
|
11
|
+
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-CWusLu5R.js";
|
|
12
12
|
import { a as spacingMd, b as spacingXs } from "../../Spacing-BMQelJYr.js";
|
|
13
13
|
import { bm as ClockIcon } from "../../_5gPlusIcon-CnxmOo1u.js";
|
|
14
14
|
import styled from "styled-components";
|
|
@@ -11,7 +11,7 @@ import styled from "styled-components";
|
|
|
11
11
|
import Card from "../Card/index.js";
|
|
12
12
|
import Flex from "../Flex/index.js";
|
|
13
13
|
import IconButton from "../IconButton/index.js";
|
|
14
|
-
import
|
|
14
|
+
import viewport from "../../foundations/media-query/viewport/index.js";
|
|
15
15
|
import { s as shadow28 } from "../../shadow-u158mzuN.js";
|
|
16
16
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
17
17
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
@@ -19,7 +19,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
19
19
|
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-DSOSZvNi.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.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-DG6HSLPJ.js";
|
|
23
23
|
const TrayOverlayStyled = styled("div").withConfig({
|
|
24
24
|
displayName: "TrayOverlayStyled",
|
|
25
25
|
componentId: "sc-os3mq3-0"
|
|
@@ -5,7 +5,7 @@ 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 { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
10
10
|
const YoutubeVideoStyled = styled.div.withConfig({
|
|
11
11
|
displayName: "YoutubeVideoStyled",
|
package/dist/contentful/index.js
CHANGED
|
@@ -5,19 +5,19 @@ import "../components/ScreenreaderOnly/index.js";
|
|
|
5
5
|
import "../components/FootnoteLink/index.js";
|
|
6
6
|
import "html-react-parser";
|
|
7
7
|
import "../components/Body/index.js";
|
|
8
|
-
import "../styled-
|
|
8
|
+
import "../styled-C6Wms75x.js";
|
|
9
9
|
import "../components/Grid/index.js";
|
|
10
10
|
import "react";
|
|
11
|
-
import "../styled-
|
|
12
|
-
import "../styled-
|
|
11
|
+
import "../styled-D57p2ktn.js";
|
|
12
|
+
import "../styled-Csv7V9ez.js";
|
|
13
13
|
import "../NotificationErrorIcon-DMnAJgPN.js";
|
|
14
|
-
import "../styled-
|
|
15
|
-
import "../styled-
|
|
14
|
+
import "../styled-DUsRG1Xh.js";
|
|
15
|
+
import "../styled-13a_Vk0D.js";
|
|
16
16
|
import "../hooks/useLinkComponent/index.js";
|
|
17
|
-
import "../styled-
|
|
17
|
+
import "../styled-CKK_LUlC.js";
|
|
18
18
|
import "../styled-BlHKbHF4.js";
|
|
19
|
-
import "../styled-
|
|
20
|
-
import "../styled-
|
|
19
|
+
import "../styled-QLVvcMdB.js";
|
|
20
|
+
import "../styled-B_ihuvyB.js";
|
|
21
21
|
import "../components/InlineLink/index.js";
|
|
22
|
-
import "../TableHead-
|
|
23
|
-
import "../styled-
|
|
22
|
+
import "../TableHead-Cfn2iQRg.js";
|
|
23
|
+
import "../styled-DoOOutJj.js";
|
|
@@ -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-bL4ms1AC.js";
|
|
5
5
|
const BrixLiveRendererComponents = ({
|
|
6
6
|
data
|
|
7
7
|
}) => {
|
|
@@ -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-bL4ms1AC.js";
|
|
5
5
|
const Renderer = ({
|
|
6
6
|
content,
|
|
7
7
|
isDraftMode
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
|
-
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "./styled-
|
|
3
|
-
import {
|
|
2
|
+
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "./styled-D_F38PuI.js";
|
|
3
|
+
import { b as breakpoint_medium, a as breakpoint_large } from "./breakpoint-CzBSbbY7.js";
|
|
4
4
|
const colorVodafoneRed = "colorVodafoneRed";
|
|
5
5
|
const colorVodafoneRedTint = "colorVodafoneRedTint";
|
|
6
6
|
const colorRed = "colorRed";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "aspectRatio", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "badge", "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", "image", "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", "sources", "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,6 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as breakpoint_medium, a as breakpoint_large } from "../../../breakpoint-CzBSbbY7.js";
|
|
2
|
+
const mediumMediaQuery = `screen and (min-width: ${breakpoint_medium})`;
|
|
3
|
+
const largeMediaQuery = `screen and (min-width: ${breakpoint_large})`;
|
|
4
|
+
const md = (stylesInViewport) => {
|
|
5
|
+
return {
|
|
6
|
+
[`@media ${mediumMediaQuery}`]: {
|
|
7
|
+
...stylesInViewport
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
const lg = (stylesInViewport) => {
|
|
12
|
+
return {
|
|
13
|
+
[`@media ${largeMediaQuery}`]: {
|
|
14
|
+
...stylesInViewport
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const viewport = {
|
|
19
|
+
md,
|
|
20
|
+
lg
|
|
21
|
+
};
|
|
2
22
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
23
|
+
viewport as default,
|
|
24
|
+
largeMediaQuery,
|
|
25
|
+
mediumMediaQuery
|
|
6
26
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentType, JSX, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props of the image component.
|
|
4
|
+
*/
|
|
5
|
+
export type ImageComponentProps = JSX.IntrinsicElements['img'];
|
|
6
|
+
/**
|
|
7
|
+
* Image component type.
|
|
8
|
+
*/
|
|
9
|
+
export type ImageComponentType = ComponentType<ImageComponentProps>;
|
|
10
|
+
/**
|
|
11
|
+
* Default image component using `<img>`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DefaultImage: ImageComponentType;
|
|
14
|
+
/**
|
|
15
|
+
* Context for providing a custom image component.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ImageContext: import('react').Context<ImageComponentType>;
|
|
18
|
+
/**
|
|
19
|
+
* Hook to access the current image component from context.
|
|
20
|
+
*/
|
|
21
|
+
export declare const useImageComponent: () => ImageComponentType;
|
|
22
|
+
/**
|
|
23
|
+
* Provider for ImageContext
|
|
24
|
+
*/
|
|
25
|
+
export declare const ImageProvider: ({ imageComponent, children, }: {
|
|
26
|
+
imageComponent: ImageComponentType;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
const DefaultImage = (props) => /* @__PURE__ */ jsx("img", { ...props });
|
|
4
|
+
const ImageContext = createContext(DefaultImage);
|
|
5
|
+
const useImageComponent = () => useContext(ImageContext);
|
|
6
|
+
const ImageProvider = ({
|
|
7
|
+
imageComponent,
|
|
8
|
+
children
|
|
9
|
+
}) => {
|
|
10
|
+
return /* @__PURE__ */ jsx(ImageContext, { value: imageComponent, children });
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
DefaultImage,
|
|
14
|
+
ImageContext,
|
|
15
|
+
ImageProvider,
|
|
16
|
+
useImageComponent
|
|
17
|
+
};
|