@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
|
@@ -6,13 +6,13 @@ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js"
|
|
|
6
6
|
import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|
|
7
7
|
import { getObjectColor } from "./foundations/token/getObjectColor/index.js";
|
|
8
8
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as borderRadiusFull } from "./BorderRadius-2LdggXbQ.js";
|
|
10
10
|
import { a as fontWeightBold } from "./FontWeight-C2pGs7aR.js";
|
|
11
11
|
import { s as smallSize, m as mediumSize } from "./SizeTypes-Ck_RdzIf.js";
|
|
12
12
|
import { b as spacingXs, e as spacing2Xs, c as spacingSm, a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
13
13
|
import { a as textBodySm, t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
|
|
14
14
|
import { g as getForegroundColor } from "./colorUtils-lb0oJttx.js";
|
|
15
|
-
import { a as filterProps } from "./filterProps-
|
|
15
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
16
16
|
import { e as colorObjectSuccess, c as colorObjectNeutral, f as colorObjectAccent, a as colorObjectBrand } from "./ObjectColor-0RAzLGI5.js";
|
|
17
17
|
const primaryBadgeAppearance = "primary";
|
|
18
18
|
const secondaryBadgeAppearance = "secondary";
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
3
3
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
4
4
|
import { a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
5
|
-
import { a as filterProps } from "./filterProps-
|
|
5
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
6
6
|
const GridStyled = styled.div.withConfig({
|
|
7
7
|
shouldForwardProp: filterProps(),
|
|
8
8
|
displayName: "GridStyled",
|
|
@@ -5,7 +5,7 @@ import { getBorderWidth } from "./foundations/token/getBorderWidth/index.js";
|
|
|
5
5
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
6
6
|
import { f as colorBorderSubtle } from "./BorderColor-CYdSW9dg.js";
|
|
7
7
|
import { a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
8
|
-
import { a as filterProps } from "./filterProps-
|
|
8
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
9
9
|
const DividerLineStyled = styled.hr.withConfig({
|
|
10
10
|
shouldForwardProp: filterProps(),
|
|
11
11
|
displayName: "DividerLineStyled",
|
|
@@ -8,7 +8,7 @@ import { f as colorBorderSubtle } from "./BorderColor-CYdSW9dg.js";
|
|
|
8
8
|
import { e as borderWidthDivider } from "./BorderWidth-eg_mz82k.js";
|
|
9
9
|
import { d as spacingXl, a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
10
10
|
import { a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
11
|
-
import { a as filterProps } from "./filterProps-
|
|
11
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
12
12
|
import { e as colorBackgroundBrand, f as colorBackgroundBrandGradient, a as colorBackgroundSubtle, c as colorBackgroundNeutral } from "./BackgroundColor-DSOSZvNi.js";
|
|
13
13
|
const ContainerAppearanceColor = {
|
|
14
14
|
primary: colorBackgroundNeutral,
|
|
@@ -14,14 +14,14 @@ import { getIconColor } from "./foundations/token/getIconColor/index.js";
|
|
|
14
14
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
15
15
|
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
16
16
|
import { c as colorBorderFocus, f as colorBorderSubtle } from "./BorderColor-CYdSW9dg.js";
|
|
17
|
-
import { b as borderRadiusMd,
|
|
17
|
+
import { b as borderRadiusMd, c as borderRadiusNone } from "./BorderRadius-2LdggXbQ.js";
|
|
18
18
|
import { a as borderWidthFocus, d as borderWidthSm } from "./BorderWidth-eg_mz82k.js";
|
|
19
19
|
import { t as textHeadingXs } from "./HeadingSize-CfCRn3Lh.js";
|
|
20
20
|
import { b as colorIconBrand } from "./IconColor-CtC9WUgr.js";
|
|
21
21
|
import { a as spacingMd, b as spacingXs, s as spacingNone } from "./Spacing-BMQelJYr.js";
|
|
22
22
|
import { a as colorTextNeutral, f as colorTextBrand } from "./TextColor-DsntmDNw.js";
|
|
23
|
-
import { a as filterProps } from "./filterProps-
|
|
24
|
-
import { C as CardAppearanceColor } from "./styled-
|
|
23
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
24
|
+
import { C as CardAppearanceColor } from "./styled-CQLDmqmZ.js";
|
|
25
25
|
const linkListItemVariantVertical = "vertical";
|
|
26
26
|
const linkListItemVariantHorizontal = "horizontal";
|
|
27
27
|
const focusStyles = {
|
|
@@ -6,10 +6,10 @@ import { getBorderRadius } from "./foundations/token/getBorderRadius/index.js";
|
|
|
6
6
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
7
7
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
8
8
|
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
9
|
-
import { b as borderRadiusMd } from "./BorderRadius-
|
|
9
|
+
import { b as borderRadiusMd } from "./BorderRadius-2LdggXbQ.js";
|
|
10
10
|
import { a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
11
11
|
import { a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
12
|
-
import { a as filterProps } from "./filterProps-
|
|
12
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
13
13
|
import { g as getCssVar } from "./getCssVar-BP6T9pFM.js";
|
|
14
14
|
import { f as colorBackgroundBrandGradient, c as colorBackgroundNeutral } from "./BackgroundColor-DSOSZvNi.js";
|
|
15
15
|
const CardAppearanceColor = {
|
|
@@ -10,11 +10,11 @@ import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
|
10
10
|
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
11
11
|
import { c as colorBackgroundNeutral, a as colorBackgroundSubtle } from "./BackgroundColor-DSOSZvNi.js";
|
|
12
12
|
import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "./BorderColor-CYdSW9dg.js";
|
|
13
|
-
import { b as borderRadiusMd } from "./BorderRadius-
|
|
13
|
+
import { b as borderRadiusMd } from "./BorderRadius-2LdggXbQ.js";
|
|
14
14
|
import { b as borderWidthUnselected } from "./BorderWidth-eg_mz82k.js";
|
|
15
15
|
import { c as spacingSm, b as spacingXs } from "./Spacing-BMQelJYr.js";
|
|
16
16
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
17
|
-
import { a as filterProps } from "./filterProps-
|
|
17
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
18
18
|
const InputWrapperStyled = styled.div.withConfig({
|
|
19
19
|
shouldForwardProp: filterProps(["readOnly"]),
|
|
20
20
|
displayName: "InputWrapperStyled",
|
|
@@ -7,7 +7,7 @@ import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
|
7
7
|
import { a as fontWeightBold, b as fontWeightLight } from "./FontWeight-C2pGs7aR.js";
|
|
8
8
|
import { b as spacingXs, c as spacingSm, a as spacingMd, g as spacingLg, d as spacingXl } from "./Spacing-BMQelJYr.js";
|
|
9
9
|
import { a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
10
|
-
import { a as filterProps } from "./filterProps-
|
|
10
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
11
11
|
const headingAlignLeft = "left";
|
|
12
12
|
const headingAlignCenter = "center";
|
|
13
13
|
const mapHeadingSizeToFontWeight = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import { a as CardStyled } from "./styled-
|
|
3
|
-
import { D as DemoBoxStyled } from "./styled-
|
|
4
|
-
import
|
|
2
|
+
import { a as CardStyled } from "./styled-CQLDmqmZ.js";
|
|
3
|
+
import { D as DemoBoxStyled } from "./styled-DCLv3G2j.js";
|
|
4
|
+
import viewport from "./foundations/media-query/viewport/index.js";
|
|
5
5
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
6
6
|
import { a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
7
7
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
8
|
-
import { a as filterProps } from "./filterProps-
|
|
8
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
9
9
|
const getColumnWidth = ({
|
|
10
10
|
sm,
|
|
11
11
|
md,
|
|
@@ -6,7 +6,7 @@ import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
|
6
6
|
import { g as colorBorderWarning } from "./BorderColor-CYdSW9dg.js";
|
|
7
7
|
import { c as spacingSm, a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
8
8
|
import { b as colorTextInverseStatic } from "./TextColor-DsntmDNw.js";
|
|
9
|
-
import { a as filterProps } from "./filterProps-
|
|
9
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
10
10
|
const DemoBoxStyled = styled.div.withConfig({
|
|
11
11
|
shouldForwardProp: filterProps(),
|
|
12
12
|
displayName: "DemoBoxStyled",
|
|
@@ -2,7 +2,7 @@ import styled from "styled-components";
|
|
|
2
2
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
3
3
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
4
4
|
import { a as spacingMd, s as spacingNone } from "./Spacing-BMQelJYr.js";
|
|
5
|
-
import { a as filterProps } from "./filterProps-
|
|
5
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
6
6
|
const flexOrientationHorizontal = "horizontal";
|
|
7
7
|
const flexOrientationVertical = "vertical";
|
|
8
8
|
const flexJustifyStart = "start";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import { a as filterProps } from "./filterProps-
|
|
2
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
3
3
|
import { l as inlineIconModeStroke, I as IconWithAccent } from "./props-7dcsjRUx.js";
|
|
4
4
|
const InlineIconStyled = styled.svg.withConfig({
|
|
5
5
|
shouldForwardProp: filterProps(),
|
|
@@ -2,7 +2,7 @@ import styled, { keyframes, css } from "styled-components";
|
|
|
2
2
|
import Body from "./components/Body/index.js";
|
|
3
3
|
import forcedColors from "./foundations/media-query/forcedColors/index.js";
|
|
4
4
|
import reducedMotion from "./foundations/media-query/reducedMotion/index.js";
|
|
5
|
-
import
|
|
5
|
+
import viewport from "./foundations/media-query/viewport/index.js";
|
|
6
6
|
import { getBackgroundColor } from "./foundations/token/getBackgroundColor/index.js";
|
|
7
7
|
import { getBodySize } from "./foundations/token/getBodySize/index.js";
|
|
8
8
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
@@ -14,7 +14,7 @@ import { b as colorBackgroundOverlay } from "./BackgroundColor-DSOSZvNi.js";
|
|
|
14
14
|
import { o as opacityOverlay } from "./Opacity-smkGiwsf.js";
|
|
15
15
|
import { l as largeSize } from "./SizeTypes-Ck_RdzIf.js";
|
|
16
16
|
import { s as spacingNone } from "./Spacing-BMQelJYr.js";
|
|
17
|
-
import { a as filterProps } from "./filterProps-
|
|
17
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
18
18
|
const loadingSpinnerOverlays = {
|
|
19
19
|
Light: `rgba(255, 255, 255, ${getOpacity(opacityOverlay)})`,
|
|
20
20
|
Dark: `rgba(38, 38, 38, ${getOpacity(opacityOverlay)})`
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { g as getButtonAppearance } from "./ButtonAppearanceHelper-D2SlSoU8.js";
|
|
3
3
|
import { I as IconLoader } from "./index-C3dW-7e_.js";
|
|
4
|
-
import
|
|
4
|
+
import viewport from "./foundations/media-query/viewport/index.js";
|
|
5
5
|
import { getBodySize } from "./foundations/token/getBodySize/index.js";
|
|
6
6
|
import { getBorderRadius } from "./foundations/token/getBorderRadius/index.js";
|
|
7
7
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
8
8
|
import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
|
|
9
9
|
import { getOpacity } from "./foundations/token/getOpacity/index.js";
|
|
10
10
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
11
|
-
import { b as borderRadiusMd } from "./BorderRadius-
|
|
11
|
+
import { b as borderRadiusMd } from "./BorderRadius-2LdggXbQ.js";
|
|
12
12
|
import { f as fontWeightRegular } from "./FontWeight-C2pGs7aR.js";
|
|
13
13
|
import { a as opacityDisabled } from "./Opacity-smkGiwsf.js";
|
|
14
14
|
import { b as spacingXs, d as spacingXl, s as spacingNone, a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
15
15
|
import { t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
|
|
16
|
-
import { a as filterProps } from "./filterProps-
|
|
16
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
17
17
|
const leftPosition = "left";
|
|
18
18
|
const primaryAppearance = "primary";
|
|
19
19
|
const tertiaryAppearance = "tertiary";
|
|
@@ -7,7 +7,7 @@ import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
|
7
7
|
import { f as fontWeightRegular } from "./FontWeight-C2pGs7aR.js";
|
|
8
8
|
import { a as spacingMd, s as spacingNone } from "./Spacing-BMQelJYr.js";
|
|
9
9
|
import { t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
|
|
10
|
-
import { a as filterProps } from "./filterProps-
|
|
10
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
11
11
|
const TextListItemStyled = styled.li.withConfig({
|
|
12
12
|
shouldForwardProp: filterProps(),
|
|
13
13
|
displayName: "TextListItemStyled",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import require$$0 from "react";
|
|
2
2
|
import styled from "styled-components";
|
|
3
|
-
import { a as filterProps } from "./filterProps-
|
|
3
|
+
import { a as filterProps } from "./filterProps-CPul3CC8.js";
|
|
4
4
|
var richTextReactRenderer_es5 = {};
|
|
5
5
|
var dist = {};
|
|
6
6
|
var isPlainObj;
|
package/package.json
CHANGED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { v as viewport, a as breakpoint_large, c as breakpoint_medium } from "../../index-Ck2bCrhT.js";
|
|
4
|
-
import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
7
|
-
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
8
|
-
import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
9
|
-
import { a as filterProps } from "../../filterProps-CTn92eZw.js";
|
|
10
|
-
const ResponsiveImagePictureStyled = styled.picture.withConfig({
|
|
11
|
-
shouldForwardProp: filterProps(),
|
|
12
|
-
displayName: "ResponsiveImagePictureStyled",
|
|
13
|
-
componentId: "sc-1itvcas-0"
|
|
14
|
-
})({});
|
|
15
|
-
const ResponsiveImageStyled = styled.img.withConfig({
|
|
16
|
-
shouldForwardProp: filterProps(),
|
|
17
|
-
displayName: "ResponsiveImageStyled",
|
|
18
|
-
componentId: "sc-1itvcas-1"
|
|
19
|
-
})({
|
|
20
|
-
display: "block",
|
|
21
|
-
width: "100%"
|
|
22
|
-
}, ({
|
|
23
|
-
images
|
|
24
|
-
}) => {
|
|
25
|
-
var _a, _b;
|
|
26
|
-
return {
|
|
27
|
-
...images.sm.objectFit && {
|
|
28
|
-
objectFit: images.sm.objectFit
|
|
29
|
-
},
|
|
30
|
-
...((_a = images.md) == null ? void 0 : _a.objectFit) && viewport.md({
|
|
31
|
-
objectFit: images.md.objectFit
|
|
32
|
-
}),
|
|
33
|
-
...((_b = images.lg) == null ? void 0 : _b.objectFit) && viewport.lg({
|
|
34
|
-
objectFit: images.lg.objectFit
|
|
35
|
-
})
|
|
36
|
-
};
|
|
37
|
-
}, ({
|
|
38
|
-
images
|
|
39
|
-
}) => {
|
|
40
|
-
var _a, _b;
|
|
41
|
-
return {
|
|
42
|
-
...images.sm.objectPosition && {
|
|
43
|
-
objectPosition: images.sm.objectPosition
|
|
44
|
-
},
|
|
45
|
-
...((_a = images.md) == null ? void 0 : _a.objectPosition) && viewport.md({
|
|
46
|
-
objectPosition: images.md.objectPosition
|
|
47
|
-
}),
|
|
48
|
-
...((_b = images.lg) == null ? void 0 : _b.objectPosition) && viewport.lg({
|
|
49
|
-
objectPosition: images.lg.objectPosition
|
|
50
|
-
})
|
|
51
|
-
};
|
|
52
|
-
}, ({
|
|
53
|
-
images = {}
|
|
54
|
-
}) => {
|
|
55
|
-
var _a, _b, _c;
|
|
56
|
-
return {
|
|
57
|
-
...((_a = images.sm) == null ? void 0 : _a.aspectRatio) && {
|
|
58
|
-
aspectRatio: images.sm.aspectRatio
|
|
59
|
-
},
|
|
60
|
-
...((_b = images.md) == null ? void 0 : _b.aspectRatio) && viewport.md({
|
|
61
|
-
aspectRatio: images.md.aspectRatio
|
|
62
|
-
}),
|
|
63
|
-
...((_c = images.lg) == null ? void 0 : _c.aspectRatio) && viewport.lg({
|
|
64
|
-
aspectRatio: images.lg.aspectRatio
|
|
65
|
-
})
|
|
66
|
-
};
|
|
67
|
-
}, ({
|
|
68
|
-
images: {
|
|
69
|
-
sm: {
|
|
70
|
-
corners
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}) => ({
|
|
74
|
-
borderRadius: corners === "rounded" ? getBorderRadius(borderRadiusMd) : getBorderRadius(borderRadiusNone)
|
|
75
|
-
}), getBottomSpacing);
|
|
76
|
-
const ResponsiveImage = ({
|
|
77
|
-
images,
|
|
78
|
-
bottomSpacing = spacingMd,
|
|
79
|
-
...props
|
|
80
|
-
}) => /* @__PURE__ */ jsxs(ResponsiveImagePictureStyled, { ...props, children: [
|
|
81
|
-
images.lg && /* @__PURE__ */ jsx("source", { media: `(min-width: ${breakpoint_large})`, srcSet: images.lg.src }),
|
|
82
|
-
images.md && /* @__PURE__ */ jsx("source", { media: `(min-width: ${breakpoint_medium})`, srcSet: images.md.src }),
|
|
83
|
-
/* @__PURE__ */ jsx(ResponsiveImageStyled, { ..."" === images.sm.alt ? {
|
|
84
|
-
"aria-hidden": true
|
|
85
|
-
} : {}, images, ...images.sm, bottomSpacing })
|
|
86
|
-
] });
|
|
87
|
-
export {
|
|
88
|
-
ResponsiveImage as default
|
|
89
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { ImageProps } from '../Image/props';
|
|
3
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
|
-
import { ViewportName } from '../../foundations/types/Viewport';
|
|
5
|
-
export type ResponsiveImageType = {
|
|
6
|
-
sm: ImageProps;
|
|
7
|
-
} & {
|
|
8
|
-
[key in Exclude<ViewportName, 'sm'>]?: ImageProps;
|
|
9
|
-
};
|
|
10
|
-
export interface ResponsiveImageProps extends PatternProps, HTMLAttributes<HTMLElement> {
|
|
11
|
-
/**
|
|
12
|
-
* Pin component's name from string to the concrete name
|
|
13
|
-
*/
|
|
14
|
-
component?: 'ResponsiveImage';
|
|
15
|
-
images: ResponsiveImageType;
|
|
16
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ImageProps } from '../Image/props';
|
|
2
|
-
import { ResponsiveImageProps } from './props';
|
|
3
|
-
export declare const ResponsiveImagePictureStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, Omit<ResponsiveImageProps, "bottomSpacing" | "images">>> & string;
|
|
4
|
-
export declare const ResponsiveImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, ImageProps & Pick<ResponsiveImageProps, "images">>> & string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "badge", "borderBottom", "bottomSpacing", "buttonLink", "buttons", "coloringMode", "colorSwatch", "component", "contentGridDesktopColumns", "corners", "coversFullPage", "description", "elevation", "expanded", "filterItems", "footnote", "gapSpacing", "grow", "handleOnClick", "handleOnToogle", "hasOverlay", "heading", "heightSm", "heightMd", "heightLg", "horizontalAlignment", "icon", "iconAlign", "iconName", "iconPosition", "images", "internal", "isActive", "isChecked", "isDisabled", "isFullscreen", "isInHoverRange", "isLastItemInList", "isOpen", "isOrdered", "isSelected", "isTransparentBackground", "items", "jumpToClickedItem", "justify", "justifyHorizontal", "label", "lg", "loadingSpinnerChild", "mapId", "md", "message", "more", "needsBorder", "nextAriaLabel", "notificationType", "objectFit", "objectPosition", "offset", "onUpdate", "openMultiple", "orientation", "padding", "prefix", "prefixWeight", "prevAriaLabel", "price", "productId", "promoPrice", "screenReaderInstruction", "showList", "size", "sm", "spacing", "spinnerType", "status", "stretch", "strikePrice", "suffix", "tag", "textContent", "uid", "variant", "verticalPadding", "viewportHeight", "weight", "width"];
|
|
2
|
-
const filterProps = (propsNotPassToDom = []) => {
|
|
3
|
-
const shouldForwardProp = (prop) => {
|
|
4
|
-
if ("string" !== typeof prop) {
|
|
5
|
-
return false;
|
|
6
|
-
}
|
|
7
|
-
return ![...propsNotPassToDom, ...propsNotPassToDomDefault].includes(prop);
|
|
8
|
-
};
|
|
9
|
-
return shouldForwardProp;
|
|
10
|
-
};
|
|
11
|
-
const filterPropsForUnstyledComponent = (props) => {
|
|
12
|
-
return Object.fromEntries(Object.entries(props).filter(([key]) => !propsNotPassToDomDefault.includes(key)));
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
filterProps as a,
|
|
16
|
-
filterPropsForUnstyledComponent as f
|
|
17
|
-
};
|
package/dist/index-Ck2bCrhT.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const breakpoint_medium_number = 768;
|
|
2
|
-
const breakpoint_medium = `${breakpoint_medium_number}px`;
|
|
3
|
-
const breakpoint_large_number = 1025;
|
|
4
|
-
const breakpoint_large = `${breakpoint_large_number}px`;
|
|
5
|
-
const mediumMediaQuery = `screen and (min-width: ${breakpoint_medium})`;
|
|
6
|
-
const largeMediaQuery = `screen and (min-width: ${breakpoint_large})`;
|
|
7
|
-
const md = (stylesInViewport) => {
|
|
8
|
-
return {
|
|
9
|
-
[`@media ${mediumMediaQuery}`]: {
|
|
10
|
-
...stylesInViewport
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
const lg = (stylesInViewport) => {
|
|
15
|
-
return {
|
|
16
|
-
[`@media ${largeMediaQuery}`]: {
|
|
17
|
-
...stylesInViewport
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
const viewport = {
|
|
22
|
-
md,
|
|
23
|
-
lg
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
breakpoint_large as a,
|
|
27
|
-
breakpoint_medium_number as b,
|
|
28
|
-
breakpoint_medium as c,
|
|
29
|
-
largeMediaQuery as l,
|
|
30
|
-
mediumMediaQuery as m,
|
|
31
|
-
viewport as v
|
|
32
|
-
};
|