@vodafone_de/brix-components 7.0.3 → 7.0.5
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/README.md +0 -1
- package/dist/{FontWeight-CR22KTex.js → FontWeight-DEBGHbtO.js} +2 -2
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Body/index.js +1 -1
- package/dist/components/Button/index.js +2 -2
- package/dist/components/ButtonAsLink/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/ConsentMessage/index.js +1 -1
- package/dist/components/ConsentMessage/styled.d.ts +1 -1
- package/dist/components/DemoBox/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dialog/styled.d.ts +1 -1
- package/dist/components/DiscoveryCard/index.js +5 -5
- package/dist/components/DiscoveryCard/styled.d.ts +1 -1
- package/dist/components/DiscoveryCardGroup/index.js +1 -1
- package/dist/components/GoogleMap/styled.d.ts +1 -1
- package/dist/components/Heading/index.js +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/IconSnippet/index.js +1 -1
- package/dist/components/IconSnippet/styled.d.ts +1 -1
- package/dist/components/ImageHeader/index.js +5 -4
- package/dist/components/ImageHeader/styled.d.ts +4 -4
- package/dist/components/InlineLink/index.js +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkListItem/index.js +1 -1
- package/dist/components/MediaText/index.d.ts +5 -0
- package/dist/components/MediaText/index.js +123 -0
- package/dist/components/MediaText/props.d.ts +42 -0
- package/dist/components/MediaText/styled.d.ts +4 -0
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PickerGroup/index.js +2 -2
- package/dist/components/Price/index.js +1 -1
- package/dist/components/ProductCard/index.js +3 -3
- package/dist/components/Rating/assets/StarSVG.d.ts +3 -0
- package/dist/components/Rating/index.d.ts +6 -0
- package/dist/components/Rating/index.js +154 -0
- package/dist/components/Rating/props.d.ts +22 -0
- package/dist/components/Rating/styled.d.ts +6 -0
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/SearchInput/index.js +1 -1
- package/dist/components/SearchInput/styled.d.ts +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/TabularPrice/index.js +1 -1
- package/dist/components/TextList/index.js +1 -1
- package/dist/components/Tray/index.js +1 -1
- package/dist/components/YoutubeVideo/index.js +1 -2
- package/dist/hooks/useViewport/index.js +5 -22
- package/dist/{index-C7meHOM4.js → index-57IF0yrd.js} +2 -2
- package/dist/{index-ZHkR70j3.js → index-CKvLGUdD.js} +1 -1
- package/dist/{index-BeSd-V81.js → index-ClmKFtnx.js} +3 -7
- package/dist/index-Cs0Hw0dj.js +25 -0
- package/dist/index-DR3e19BE.js +7 -0
- package/dist/{index-C5GzK6_0.js → index-DrySIh-D.js} +1 -1
- package/dist/{index-aUJfXBUI.js → index-WLBo71sp.js} +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +129 -119
- package/dist/{styled-BSqC5P9h.js → styled-DLS1p_AJ.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
16
16
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
17
17
|
import { j as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
18
18
|
import { f as borderWidthNone, b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
19
|
-
import {
|
|
19
|
+
import { a as fontWeightRegular, f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
20
20
|
import { s as spacingMd, b as spacingNone, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
|
|
21
21
|
import { a as colorTextNeutral, f as colorTextBrand } from "../../TextColor-DsntmDNw.js";
|
|
22
22
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
@@ -4,7 +4,7 @@ import "../../index-Cbojl4_Q.js";
|
|
|
4
4
|
import "../../Spacing-D0HQH9YJ.js";
|
|
5
5
|
import "../../SizeTypes-Ck_RdzIf.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
|
-
import { a, B } from "../../index-
|
|
7
|
+
import { a, B } from "../../index-CKvLGUdD.js";
|
|
8
8
|
export {
|
|
9
9
|
a as BadgeAppearanceColor,
|
|
10
10
|
B as default
|
|
@@ -8,7 +8,7 @@ import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
|
8
8
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
9
9
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
10
10
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
11
|
-
import { f as fontWeightBold } from "../../FontWeight-
|
|
11
|
+
import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
12
12
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
13
13
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
14
14
|
const BodyStyled = styled.p.withConfig({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
4
|
-
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-
|
|
5
|
-
import { B as ButtonStyled } from "../../styled-
|
|
4
|
+
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-57IF0yrd.js";
|
|
5
|
+
import { B as ButtonStyled } from "../../styled-DLS1p_AJ.js";
|
|
6
6
|
const buttonFullWidth = "full";
|
|
7
7
|
const buttonAutoWidth = "auto";
|
|
8
8
|
const isButtonAsLinkProp = (props) => {
|
|
@@ -5,7 +5,7 @@ import Flex from "../Flex/index.js";
|
|
|
5
5
|
import { f as flexOrientationHorizontal, b as flexJustifyStart } from "../../styled-B0YKfXTz.js";
|
|
6
6
|
import FlexItem from "../FlexItem/index.js";
|
|
7
7
|
import { c as spacingSm, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
8
|
-
import { useViewport } from "../../
|
|
8
|
+
import { u as useViewport } from "../../index-Cs0Hw0dj.js";
|
|
9
9
|
const renderButtons = (buttons, isMobile, isReversed = false) => {
|
|
10
10
|
if (!isMobile && isReversed) {
|
|
11
11
|
buttons = buttons.slice().reverse();
|
|
@@ -4,7 +4,7 @@ import { useState, useEffect } from "react";
|
|
|
4
4
|
import Body, { bodyAlignCenter } from "../Body/index.js";
|
|
5
5
|
import Button, { buttonAutoWidth } from "../Button/index.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-
|
|
7
|
+
import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-DLS1p_AJ.js";
|
|
8
8
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
9
9
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
10
10
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
@@ -4,5 +4,5 @@ export declare const ConsentMessageBackgroundStyled: import('styled-components/d
|
|
|
4
4
|
* Blurring the image create artifacts on the edges,
|
|
5
5
|
* so I position these edges outside the visible area with 16px from each side to hide them
|
|
6
6
|
*/
|
|
7
|
-
export declare const ConsentMessageBackgroundMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ConsentMessageProps, "
|
|
7
|
+
export declare const ConsentMessageBackgroundMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ConsentMessageProps, "theme" | "backgroundImage">>> & string;
|
|
8
8
|
export declare const ConsentMessageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import IconSnippet from "../IconSnippet/index.js";
|
|
4
4
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
5
|
-
import { g as getUid } from "../../index-
|
|
5
|
+
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
6
6
|
import { D as DemoBoxStyled } from "../../styled-ODPFCF1a.js";
|
|
7
7
|
const heading = {
|
|
8
8
|
component: "Heading",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import { f as fontWeightBold } from "../../FontWeight-
|
|
5
|
+
import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
6
6
|
import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
|
|
7
7
|
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
8
8
|
import Heading from "../Heading/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DialogProps } from './props';
|
|
2
|
-
export declare const DialogOverlayStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<DialogProps, "
|
|
2
|
+
export declare const DialogOverlayStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<DialogProps, "buttons" | "heading"> & {
|
|
3
3
|
open: boolean;
|
|
4
4
|
}>> & string;
|
|
5
5
|
export declare const DialogCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Card').CardProps, never>> & string & Omit<import('react').FC<import('../Card').CardProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment } from "react";
|
|
4
|
-
import { R as RichText } from "../../index-
|
|
5
|
-
import { f as fontWeightBold } from "../../FontWeight-
|
|
4
|
+
import { R as RichText } from "../../index-ClmKFtnx.js";
|
|
5
|
+
import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
6
6
|
import { b as textHeadingSm } from "../../HeadingSize-CfCRn3Lh.js";
|
|
7
7
|
import { s as spacingMd, b as spacingNone, a as spacingXs, c as spacingSm } from "../../Spacing-D0HQH9YJ.js";
|
|
8
8
|
import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
9
|
-
import { b as BadgeStyled, B as Badge } from "../../index-
|
|
9
|
+
import { b as BadgeStyled, B as Badge } from "../../index-CKvLGUdD.js";
|
|
10
10
|
import Body, { bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
|
|
11
11
|
import Heading from "../Heading/index.js";
|
|
12
12
|
import Link from "../Link/index.js";
|
|
13
|
-
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-
|
|
13
|
+
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-WLBo71sp.js";
|
|
14
14
|
import Image, { aspectRatio16_9, aspectRatio1_1 } from "../Image/index.js";
|
|
15
15
|
import { a as cornerRounded } from "../../CornerStyle-JEbGNArR.js";
|
|
16
16
|
import styled from "styled-components";
|
|
@@ -18,7 +18,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
18
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
19
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
20
20
|
import Card from "../Card/index.js";
|
|
21
|
-
import { a as LinkStyled } from "../../index-
|
|
21
|
+
import { a as LinkStyled } from "../../index-DrySIh-D.js";
|
|
22
22
|
const discoveryCardOrientationVertical = "vertical";
|
|
23
23
|
const discoveryCardOrientationHorizontal = "horizontal";
|
|
24
24
|
const DiscoveryCardStyled = styled(Card).withConfig({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from 'react';
|
|
2
2
|
import { DiscoveryCardProps } from './props';
|
|
3
|
-
export declare const DiscoveryCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Card').CardProps, Omit<DiscoveryCardProps, "
|
|
3
|
+
export declare const DiscoveryCardStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Card').CardProps, Omit<DiscoveryCardProps, "badge" | "heading" | "price" | "uid" | "body" | "link" | "image">>> & string & Omit<import('react').FC<import('../Card').CardProps>, keyof import('react').Component<any, {}, any>>;
|
|
4
4
|
export declare const DiscoveryCardContentyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
5
|
export declare const DiscoveryCardImageLinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, Pick<DiscoveryCardProps, "orientation" | "bottomSpacing"> & AnchorHTMLAttributes<HTMLAnchorElement>>> & string;
|
|
6
6
|
export declare const DiscoveryCardImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Image').ImageProps, never>> & string & Omit<import('react').FC<import('../Image').ImageProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -6,7 +6,7 @@ import Grid from "../Grid/index.js";
|
|
|
6
6
|
import GridItem from "../GridItem/index.js";
|
|
7
7
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
8
8
|
import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
9
|
-
import { a as LinkStyled } from "../../index-
|
|
9
|
+
import { a as LinkStyled } from "../../index-DrySIh-D.js";
|
|
10
10
|
const DiscoveryCardGroupGridStyled = styled(Grid).withConfig({
|
|
11
11
|
displayName: "DiscoveryCardGroupGridStyled",
|
|
12
12
|
componentId: "sc-6axszn-0"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GoogleMapProps } from './props';
|
|
2
|
-
export declare const GoogleMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<GoogleMapProps, "
|
|
2
|
+
export declare const GoogleMapStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<GoogleMapProps, "apiKey" | "consentMessage">>> & string;
|
|
@@ -9,7 +9,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
9
9
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
10
10
|
import { getHeadingSize } from "../../foundations/token/getHeadingSize/index.js";
|
|
11
11
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
12
|
-
import { f as fontWeightBold,
|
|
12
|
+
import { f as fontWeightBold, b as fontWeightLight } from "../../FontWeight-DEBGHbtO.js";
|
|
13
13
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
14
14
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
15
15
|
const headingAlignLeft = "left";
|
|
@@ -13,7 +13,7 @@ import { b as borderRadiusMd, c as borderRadiusFull } from "../../BorderRadius-C
|
|
|
13
13
|
import { d as borderWidthSelected } from "../../BorderWidth-DfOlyKK7.js";
|
|
14
14
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
15
15
|
import { a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
16
|
-
import { b as buttonHeight, g as getButtonAppearance, p as primaryAppearance, a as ButtonAppearanceColor } from "../../styled-
|
|
16
|
+
import { b as buttonHeight, g as getButtonAppearance, p as primaryAppearance, a as ButtonAppearanceColor } from "../../styled-DLS1p_AJ.js";
|
|
17
17
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
18
18
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
19
19
|
const iconButtonShapeSquare = "square";
|
|
@@ -4,7 +4,7 @@ import { df as IconLoader, it as iconSizeLg, iq as iconSize3xl, iv as iconSizeSm
|
|
|
4
4
|
import Body from "../Body/index.js";
|
|
5
5
|
import Heading from "../Heading/index.js";
|
|
6
6
|
import InlineLink from "../InlineLink/index.js";
|
|
7
|
-
import { R as RichText } from "../../index-
|
|
7
|
+
import { R as RichText } from "../../index-ClmKFtnx.js";
|
|
8
8
|
import { d as divTagName } from "../../tags-DI6H1biK.js";
|
|
9
9
|
import { a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
10
10
|
import Link from "../Link/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IconSnippetPosition, IconSnippetProps } from './props';
|
|
2
|
-
export declare const IconSnippetStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<IconSnippetProps, "size" | "
|
|
2
|
+
export declare const IconSnippetStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<IconSnippetProps, "size" | "icon" | "contents">>> & string;
|
|
3
3
|
export declare const IconLoaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('@vfde-react/inline-icon-library').IconLoaderProps, never>> & string & Omit<import('react').FC<import('@vfde-react/inline-icon-library').IconLoaderProps>, keyof import('react').Component<any, {}, any>>;
|
|
4
4
|
export declare const IconSnippetContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
5
|
iconPosition: IconSnippetPosition;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Body from "../Body/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { b as fontWeightLight } from "../../FontWeight-DEBGHbtO.js";
|
|
5
5
|
import { s as spacingMd, c as spacingSm, d as spacingXl, a as spacingXs, e as spacing2Xs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
6
6
|
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
7
|
-
import { g as getUid
|
|
7
|
+
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
8
8
|
import Button from "../Button/index.js";
|
|
9
9
|
import Container from "../Container/index.js";
|
|
10
10
|
import Heading, { headingAlignCenter } from "../Heading/index.js";
|
|
11
|
-
import { P as Price, b as priceSizeSm } from "../../index-
|
|
11
|
+
import { P as Price, b as priceSizeSm } from "../../index-WLBo71sp.js";
|
|
12
|
+
import { R as RichText } from "../../index-ClmKFtnx.js";
|
|
12
13
|
import styled from "styled-components";
|
|
13
|
-
import { B as Badge } from "../../index-
|
|
14
|
+
import { B as Badge } from "../../index-CKvLGUdD.js";
|
|
14
15
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
15
16
|
import Grid from "../Grid/index.js";
|
|
16
17
|
import GridItem from "../GridItem/index.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ImageHeaderProps } from './props';
|
|
2
2
|
export declare const getBadgeTopPosition: () => string;
|
|
3
|
-
export declare const ImageHeaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Grid').GridProps, Pick<ImageHeaderProps, "
|
|
4
|
-
export declare const ImageHeaderImagesContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "
|
|
5
|
-
export declare const ImageHeaderResponsiveImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../ResponsiveImage').ResponsiveImageProps, Pick<ImageHeaderProps, "
|
|
6
|
-
export declare const ImageHeaderContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "
|
|
3
|
+
export declare const ImageHeaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Grid').GridProps, Pick<ImageHeaderProps, "variant" | "position">>> & string & Omit<import('react').FC<import('../Grid').GridProps>, keyof import('react').Component<any, {}, any>>;
|
|
4
|
+
export declare const ImageHeaderImagesContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "variant" | "position">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
|
|
5
|
+
export declare const ImageHeaderResponsiveImageStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../ResponsiveImage').ResponsiveImageProps, Pick<ImageHeaderProps, "variant" | "position">>> & string & Omit<import('react').FC<import('../ResponsiveImage').ResponsiveImageProps>, keyof import('react').Component<any, {}, any>>;
|
|
6
|
+
export declare const ImageHeaderContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../GridItem').GridItemProps, Pick<ImageHeaderProps, "variant" | "position" | "contentGridDesktopColumns">>> & string & Omit<import('react').FC<import('../GridItem').GridItemProps>, keyof import('react').Component<any, {}, any>>;
|
|
7
7
|
export declare const ImageHeaderBadgeStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Badge').BadgeProps, never>> & string & Omit<import('react').FC<import('../Badge').BadgeProps>, keyof import('react').Component<any, {}, any>>;
|
|
8
8
|
export declare const ImageHeaderHeadingStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Heading').HeadingProps, never>> & string & Omit<import('react').FC<import('../Heading').HeadingProps>, keyof import('react').Component<any, {}, any>>;
|
|
9
9
|
export declare const ImageHeaderButtonGroupStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../ButtonGroup').ButtonGroupProps, never>> & string & Omit<import('react').FC<import('../ButtonGroup').ButtonGroupProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -8,7 +8,7 @@ import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js"
|
|
|
8
8
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
9
9
|
import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
10
10
|
import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
11
|
-
import {
|
|
11
|
+
import { f as colorTextBrand, a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
12
12
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
13
13
|
const hover = {
|
|
14
14
|
textDecoration: "none",
|
|
@@ -3,7 +3,7 @@ import { jsx, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import Body from "../Body/index.js";
|
|
4
4
|
import Heading from "../Heading/index.js";
|
|
5
5
|
import IconSnippet, { iconSnippetAlignCenter } from "../IconSnippet/index.js";
|
|
6
|
-
import { R as RichText } from "../../index-
|
|
6
|
+
import { R as RichText } from "../../index-ClmKFtnx.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
const LegendStyled = styled.legend.withConfig({
|
|
9
9
|
displayName: "LegendStyled",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-
|
|
3
|
+
import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../index-DrySIh-D.js";
|
|
4
4
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
5
|
const isLinkAsButtonProp = (props) => {
|
|
6
6
|
return props.href === void 0;
|
|
@@ -4,7 +4,7 @@ import { iu as iconSizeMd, df as IconLoader } from "../../index-Cbojl4_Q.js";
|
|
|
4
4
|
import { s as spanTagName } from "../../tags-DI6H1biK.js";
|
|
5
5
|
import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
6
6
|
import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
7
|
-
import { B as Badge } from "../../index-
|
|
7
|
+
import { B as Badge } from "../../index-CKvLGUdD.js";
|
|
8
8
|
import styled from "styled-components";
|
|
9
9
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
10
10
|
import { e as ease_in_sine } from "../../easing-Dm-pO8SY.js";
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import Body from "../Body/index.js";
|
|
5
|
+
import Flex from "../Flex/index.js";
|
|
6
|
+
import FlexItem from "../FlexItem/index.js";
|
|
7
|
+
import Heading, { headingAlignLeft } from "../Heading/index.js";
|
|
8
|
+
import Image, { aspectRatio16_9 } from "../Image/index.js";
|
|
9
|
+
import Link from "../Link/index.js";
|
|
10
|
+
import YoutubeVideo from "../YoutubeVideo/index.js";
|
|
11
|
+
import { u as ulTagName, d as divTagName, l as liTagName } from "../../tags-DI6H1biK.js";
|
|
12
|
+
import { a as fontWeightRegular } from "../../FontWeight-DEBGHbtO.js";
|
|
13
|
+
import { b as textHeadingSm, t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
14
|
+
import { s as spacingMd, e as spacing2Xs, c as spacingSm, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
15
|
+
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
16
|
+
import { u as useViewport } from "../../index-Cs0Hw0dj.js";
|
|
17
|
+
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
18
|
+
import styled from "styled-components";
|
|
19
|
+
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
20
|
+
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
21
|
+
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
22
|
+
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
23
|
+
import { a as flexOrientationVertical, f as flexOrientationHorizontal, b as flexJustifyStart } from "../../styled-B0YKfXTz.js";
|
|
24
|
+
const mediaTextOrientationTop = "top";
|
|
25
|
+
const mediaTextOrientationLeft = "left";
|
|
26
|
+
const mediaTextOrientationRight = "right";
|
|
27
|
+
const MediaTextStyled = styled.div.withConfig({
|
|
28
|
+
shouldForwardProp: filterProps(),
|
|
29
|
+
displayName: "MediaTextStyled",
|
|
30
|
+
componentId: "sc-zs2pry-0"
|
|
31
|
+
})(({
|
|
32
|
+
orientation,
|
|
33
|
+
bottomSpacing = spacingMd
|
|
34
|
+
}) => ({
|
|
35
|
+
display: "flex",
|
|
36
|
+
flexDirection: "column",
|
|
37
|
+
...viewport.md({
|
|
38
|
+
flexDirection: orientation === "top" ? "column" : orientation === "left" ? "row" : "row-reverse"
|
|
39
|
+
}),
|
|
40
|
+
...getBottomSpacing({
|
|
41
|
+
bottomSpacing
|
|
42
|
+
})
|
|
43
|
+
}));
|
|
44
|
+
const MediaTextMediaStyled = styled.div.withConfig({
|
|
45
|
+
shouldForwardProp: filterProps(),
|
|
46
|
+
displayName: "MediaTextMediaStyled",
|
|
47
|
+
componentId: "sc-zs2pry-1"
|
|
48
|
+
})(({
|
|
49
|
+
orientation,
|
|
50
|
+
bottomSpacing = spacingMd
|
|
51
|
+
}) => ({
|
|
52
|
+
flex: 1,
|
|
53
|
+
...getBottomSpacing({
|
|
54
|
+
bottomSpacing
|
|
55
|
+
}),
|
|
56
|
+
...viewport.md({
|
|
57
|
+
...orientation != mediaTextOrientationTop ? {
|
|
58
|
+
marginBottom: 0
|
|
59
|
+
} : {}
|
|
60
|
+
})
|
|
61
|
+
}));
|
|
62
|
+
const MediaTextContentStyled = styled.div.withConfig({
|
|
63
|
+
shouldForwardProp: filterProps(),
|
|
64
|
+
displayName: "MediaTextContentStyled",
|
|
65
|
+
componentId: "sc-zs2pry-2"
|
|
66
|
+
})(({
|
|
67
|
+
orientation
|
|
68
|
+
}) => ({
|
|
69
|
+
flex: 1,
|
|
70
|
+
...viewport.md({
|
|
71
|
+
...orientation === "left" && {
|
|
72
|
+
paddingLeft: getSpacing(spacingMd)
|
|
73
|
+
},
|
|
74
|
+
...orientation === "right" && {
|
|
75
|
+
paddingRight: getSpacing(spacingMd)
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
}));
|
|
79
|
+
const MediaText = ({
|
|
80
|
+
media,
|
|
81
|
+
orientation = mediaTextOrientationLeft,
|
|
82
|
+
heading,
|
|
83
|
+
subline,
|
|
84
|
+
body,
|
|
85
|
+
action,
|
|
86
|
+
...props
|
|
87
|
+
}) => {
|
|
88
|
+
const headingId = `heading-${getUid()}`;
|
|
89
|
+
const sublineId = `subline-${getUid()}`;
|
|
90
|
+
const viewport2 = useViewport();
|
|
91
|
+
const headingSpacing = subline ? spacing2Xs : spacingMd;
|
|
92
|
+
const hasMultipleActions = Array.isArray(action) && action.length > 1;
|
|
93
|
+
const actionFlexAs = hasMultipleActions ? ulTagName : divTagName;
|
|
94
|
+
const linkFlexItemAs = hasMultipleActions ? liTagName : divTagName;
|
|
95
|
+
const renderMedia = (media2) => {
|
|
96
|
+
if (!media2) return null;
|
|
97
|
+
switch (media2.component) {
|
|
98
|
+
case "Image":
|
|
99
|
+
return /* @__PURE__ */ jsx(Image, { ...media2, aspectRatio: aspectRatio16_9, bottomSpacing: spacingNone });
|
|
100
|
+
case "YoutubeVideo":
|
|
101
|
+
return /* @__PURE__ */ jsx(YoutubeVideo, { ...media2, bottomSpacing: spacingNone });
|
|
102
|
+
default:
|
|
103
|
+
console.warn(`Unsupported media component: ${media2.component}`);
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const mediaContent = useMemo(() => renderMedia(media), [media]);
|
|
108
|
+
return /* @__PURE__ */ jsxs(MediaTextStyled, { orientation, ...props, children: [
|
|
109
|
+
/* @__PURE__ */ jsx(MediaTextMediaStyled, { orientation, children: mediaContent }),
|
|
110
|
+
/* @__PURE__ */ jsxs(MediaTextContentStyled, { orientation, children: [
|
|
111
|
+
/* @__PURE__ */ jsx(Heading, { ...heading, id: headingId, align: headingAlignLeft, size: textHeadingSm, bottomSpacing: headingSpacing }),
|
|
112
|
+
subline && /* @__PURE__ */ jsx(Heading, { ...subline, id: sublineId, align: headingAlignLeft, size: textHeadingXs, weight: fontWeightRegular, bottomSpacing: spacingMd }),
|
|
113
|
+
/* @__PURE__ */ jsx(Body, { ...body, size: textBodyMd, bottomSpacing: spacingMd }),
|
|
114
|
+
/* @__PURE__ */ jsx(Flex, { bottomSpacing: spacingMd, gapSpacing: spacingSm, justify: flexJustifyStart, orientation: "sm" === viewport2 ? flexOrientationVertical : flexOrientationHorizontal, as: actionFlexAs, children: action && action.map((action2) => /* @__PURE__ */ jsx(FlexItem, { as: linkFlexItemAs, bottomSpacing: spacingNone, children: /* @__PURE__ */ jsx(Link, { ...action2 }) }, action2.uid)) })
|
|
115
|
+
] })
|
|
116
|
+
] });
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
MediaText as default,
|
|
120
|
+
mediaTextOrientationLeft,
|
|
121
|
+
mediaTextOrientationRight,
|
|
122
|
+
mediaTextOrientationTop
|
|
123
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { BodyProps } from '../Body/props';
|
|
3
|
+
import { HeadingProps } from '../Heading/props';
|
|
4
|
+
import { ImageProps } from '../Image';
|
|
5
|
+
import { LinkProps } from '../Link';
|
|
6
|
+
import { YoutubeVideoProps } from '../YoutubeVideo';
|
|
7
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
8
|
+
export declare const mediaTextOrientationTop = "top";
|
|
9
|
+
export declare const mediaTextOrientationLeft = "left";
|
|
10
|
+
export declare const mediaTextOrientationRight = "right";
|
|
11
|
+
export type MediaTextOrientation = typeof mediaTextOrientationTop | typeof mediaTextOrientationLeft | typeof mediaTextOrientationRight;
|
|
12
|
+
export interface MediaTextProps extends PatternProps, HTMLAttributes<HTMLDivElement> {
|
|
13
|
+
/**
|
|
14
|
+
* Pin component's name from string to the concrete name
|
|
15
|
+
*/
|
|
16
|
+
component?: 'MediaText';
|
|
17
|
+
/**
|
|
18
|
+
* media prop can be either an Image or a YoutubeVideo
|
|
19
|
+
* The aspect ratio is always 16 to 1. This must be taken into account when selecting the asset.
|
|
20
|
+
*/
|
|
21
|
+
media: Omit<ImageProps, 'bottomSpacing'> | Omit<YoutubeVideoProps, 'bottomSpacing'>;
|
|
22
|
+
/**
|
|
23
|
+
* MediaText media can be orientated top, left or right.
|
|
24
|
+
*/
|
|
25
|
+
orientation?: MediaTextOrientation;
|
|
26
|
+
/**
|
|
27
|
+
* Heading
|
|
28
|
+
*/
|
|
29
|
+
heading: Omit<HeadingProps, 'size' | 'weight' | 'bottomSpacing'>;
|
|
30
|
+
/**
|
|
31
|
+
* Subline
|
|
32
|
+
*/
|
|
33
|
+
subline?: Omit<HeadingProps, 'size' | 'weight' | 'bottomSpacing'>;
|
|
34
|
+
/**
|
|
35
|
+
* Body
|
|
36
|
+
*/
|
|
37
|
+
body: Omit<BodyProps, 'size' | 'weight' | 'bottomSpacing'>;
|
|
38
|
+
/**
|
|
39
|
+
* Action, list of links
|
|
40
|
+
*/
|
|
41
|
+
action?: LinkProps[];
|
|
42
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MediaTextProps } from './props';
|
|
2
|
+
export declare const MediaTextStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<MediaTextProps, "orientation" | "bottomSpacing">>> & string;
|
|
3
|
+
export declare const MediaTextMediaStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<MediaTextProps, "orientation" | "bottomSpacing">>> & string;
|
|
4
|
+
export declare const MediaTextContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<MediaTextProps, "orientation">>> & string;
|
|
@@ -7,7 +7,7 @@ import ButtonGroup from "../ButtonGroup/index.js";
|
|
|
7
7
|
import Flex from "../Flex/index.js";
|
|
8
8
|
import Heading from "../Heading/index.js";
|
|
9
9
|
import Link from "../Link/index.js";
|
|
10
|
-
import { R as RichText } from "../../index-
|
|
10
|
+
import { R as RichText } from "../../index-ClmKFtnx.js";
|
|
11
11
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
12
12
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
13
13
|
import { e as colorBorderCritical, f as colorBorderWarning, d as colorBorderSuccess, k as colorBorderInformation } from "../../BorderColor-BummoQ1-.js";
|
|
@@ -6,7 +6,7 @@ import { e as spacing2Xs, s as spacingMd, c as spacingSm, b as spacingNone } fro
|
|
|
6
6
|
import { useState, useEffect } from "react";
|
|
7
7
|
import Grid from "../Grid/index.js";
|
|
8
8
|
import { df as IconLoader, iu as iconSizeMd } from "../../index-Cbojl4_Q.js";
|
|
9
|
-
import { B as Badge } from "../../index-
|
|
9
|
+
import { B as Badge } from "../../index-CKvLGUdD.js";
|
|
10
10
|
import ColorSwatch from "../ColorSwatch/index.js";
|
|
11
11
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
12
12
|
import styled from "styled-components";
|
|
@@ -27,7 +27,7 @@ import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
|
27
27
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
28
28
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
29
29
|
import { a as borderWidthFocus, d as borderWidthSelected } from "../../BorderWidth-DfOlyKK7.js";
|
|
30
|
-
import {
|
|
30
|
+
import { a as fontWeightRegular, f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
31
31
|
import { o as opacityOverlay } from "../../Opacity-smkGiwsf.js";
|
|
32
32
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
33
33
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "../../index-DQhtQZ85.js";
|
|
4
4
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
|
-
import { c, P, i, g, f, h, p, a, e, d, b } from "../../index-
|
|
5
|
+
import { c, P, i, g, f, h, p, a, e, d, b } from "../../index-WLBo71sp.js";
|
|
6
6
|
export {
|
|
7
7
|
c as createScreenReaderText,
|
|
8
8
|
P as default,
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { it as iconSizeLg } from "../../index-Cbojl4_Q.js";
|
|
4
4
|
import Image, { aspectRatio1_1 } from "../Image/index.js";
|
|
5
|
-
import { f as fontWeightBold } from "../../FontWeight-
|
|
5
|
+
import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
6
6
|
import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
|
|
7
7
|
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
8
|
-
import { B as Badge } from "../../index-
|
|
8
|
+
import { B as Badge } from "../../index-CKvLGUdD.js";
|
|
9
9
|
import Body from "../Body/index.js";
|
|
10
10
|
import ColorSwatchGroup from "../ColorSwatchGroup/index.js";
|
|
11
11
|
import Heading from "../Heading/index.js";
|
|
12
12
|
import Link from "../Link/index.js";
|
|
13
|
-
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-
|
|
13
|
+
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-WLBo71sp.js";
|
|
14
14
|
import styled from "styled-components";
|
|
15
15
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
16
16
|
import Card from "../Card/index.js";
|