@vodafone_de/brix-components 7.0.8 → 7.0.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/README.md +0 -1
- package/dist/{FontWeight-CR22KTex.js → FontWeight-DEBGHbtO.js} +2 -2
- package/dist/NotificationErrorIcon-DMnAJgPN.js +83 -0
- package/dist/_5gPlusIcon-B_69VW4X.js +19443 -0
- package/dist/components/Accordion/index.js +6 -3
- package/dist/components/Accordion/props.d.ts +1 -1
- package/dist/components/Accordion/styled.d.ts +1 -1
- package/dist/components/AccordionGroup/index.js +1 -1
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Badge/props.d.ts +1 -1
- package/dist/components/Body/index.js +2 -2
- package/dist/components/Body/props.d.ts +1 -1
- package/dist/components/BottomBar/index.js +3 -3
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/styled.d.ts +1 -1
- package/dist/components/ButtonAsLink/index.js +3 -1
- package/dist/components/ButtonAsLink/styled.d.ts +1 -1
- package/dist/components/ButtonGroup/index.js +4 -4
- package/dist/components/ButtonGroup/props.d.ts +1 -1
- package/dist/components/Card/index.js +3 -3
- package/dist/components/Card/props.d.ts +2 -2
- package/dist/components/Carousel/components/CarouselContext.d.ts +2 -3
- package/dist/components/Carousel/components/CarouselNavigation.d.ts +0 -2
- package/dist/components/Carousel/index.js +58 -47
- package/dist/components/Checkbox/index.js +3 -2
- 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 +4 -4
- package/dist/components/ColorSwatchGroup/props.d.ts +1 -1
- package/dist/components/ConsentMessage/index.js +1 -1
- package/dist/components/ConsentMessage/styled.d.ts +1 -1
- package/dist/components/Container/index.js +3 -2
- package/dist/components/Container/props.d.ts +12 -1
- package/dist/components/DateInput/index.js +4 -2
- package/dist/components/DateInput/styled.d.ts +1 -2
- package/dist/components/DemoBox/index.js +5 -3
- package/dist/components/Dialog/index.js +4 -4
- package/dist/components/Dialog/styled.d.ts +1 -1
- package/dist/components/DiscoveryCard/components/DiscoveryCardLinkedImage.d.ts +1 -1
- package/dist/components/DiscoveryCard/index.js +21 -12
- package/dist/components/DiscoveryCard/props.d.ts +3 -3
- package/dist/components/DiscoveryCard/styled.d.ts +2 -2
- package/dist/components/DiscoveryCardGroup/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Fieldset/index.js +2 -2
- package/dist/components/FilterGroup/index.js +4 -3
- package/dist/components/FilterGroup/props.d.ts +1 -1
- package/dist/components/FilterGroup/styled.d.ts +1 -1
- 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/FootnoteLink/index.js +10 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/FormHelperStatusIcon/index.d.ts +1 -1
- package/dist/components/FormHelperStatusIcon/index.js +2 -1
- package/dist/components/FormHelperStatusIcon/styled.d.ts +1 -1
- package/dist/components/GoogleMap/components/Map/props.d.ts +1 -1
- package/dist/components/GoogleMap/index.js +2 -2
- package/dist/components/GoogleMap/styled.d.ts +1 -1
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/Grid/props.d.ts +3 -3
- package/dist/components/GridItem/index.js +2 -2
- package/dist/components/GridItem/props.d.ts +2 -2
- package/dist/components/Heading/index.js +3 -10
- package/dist/components/HifiIcon/index.js +1 -1
- package/dist/components/HifiIcon/props.d.ts +2 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.js +1 -3
- package/dist/components/Icon/props.d.ts +1 -2
- package/dist/components/IconButton/index.js +4 -3
- package/dist/components/IconButton/props.d.ts +1 -1
- package/dist/components/IconLoader/index.d.ts +9 -0
- package/dist/components/IconLoader/index.js +655 -0
- package/dist/components/IconLoader/props.d.ts +23 -0
- package/dist/components/IconSnippet/index.js +10 -11
- package/dist/components/IconSnippet/props.d.ts +2 -2
- package/dist/components/IconSnippet/styled.d.ts +2 -2
- package/dist/components/IconSnippetList/index.js +1 -1
- package/dist/components/Image/index.js +1 -1
- package/dist/components/ImageHeader/index.js +7 -7
- package/dist/components/ImageHeader/props.d.ts +3 -3
- package/dist/components/ImageHeader/styled.d.ts +4 -4
- package/dist/components/InlineIcon/index.d.ts +6 -0
- package/dist/components/InlineIcon/index.js +35 -0
- package/dist/components/InlineIcon/props.d.ts +42 -0
- package/dist/components/InlineIcon/styled.d.ts +4 -0
- package/dist/components/InlineLink/index.js +19 -7
- package/dist/components/InlineLink/styled.d.ts +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 +8 -3
- package/dist/components/Link/styled.d.ts +1 -1
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkList/index.js +4 -4
- package/dist/components/LinkListItem/index.js +40 -28
- package/dist/components/LinkListItem/props.d.ts +2 -2
- package/dist/components/LinkListItem/styled.d.ts +974 -3
- package/dist/components/LoadingSpinner/index.js +12 -5
- package/dist/components/MediaText/index.d.ts +5 -0
- package/dist/components/MediaText/index.js +121 -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 +4 -3
- package/dist/components/Notification/notificationStatusVariants.d.ts +1 -1
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/components/Picker/props.d.ts +6 -4
- package/dist/components/PickerGroup/components/PickerElementIcon/index.d.ts +1 -1
- package/dist/components/PickerGroup/components/PickerElementIcon/styled.d.ts +1 -1
- package/dist/components/PickerGroup/index.js +6 -5
- package/dist/components/Price/index.js +2 -4
- package/dist/components/Price/props.d.ts +1 -9
- package/dist/components/Price/styled.d.ts +1 -1
- package/dist/components/ProductCard/index.js +8 -8
- package/dist/components/ProductCard/styled.d.ts +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- 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 +153 -0
- package/dist/components/Rating/props.d.ts +22 -0
- package/dist/components/Rating/styled.d.ts +6 -0
- package/dist/components/ResponsiveImage/index.js +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/ScreenreaderOnly/index.js +1 -1
- package/dist/components/SearchInput/index.d.ts +2 -1
- package/dist/components/SearchInput/index.js +27 -26
- package/dist/components/SearchInput/props.d.ts +2 -1
- package/dist/components/SearchInput/styled.d.ts +3 -6
- package/dist/components/SelectInput/index.js +4 -2
- package/dist/components/Stepper/index.js +3 -3
- package/dist/components/SuggestInput/index.js +5 -4
- package/dist/components/SuggestInput/props.d.ts +1 -1
- package/dist/components/SuggestInput/styled.d.ts +2 -2
- package/dist/components/Switch/index.js +4 -3
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TextList/index.js +2 -2
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/styled.d.ts +1 -1
- package/dist/components/TimeInput/index.js +5 -3
- package/dist/components/TimeInput/styled.d.ts +1 -4
- package/dist/components/Tray/index.js +2 -2
- package/dist/components/Tray/props.d.ts +1 -1
- package/dist/components/YoutubeVideo/index.js +1 -2
- package/dist/components/YoutubeVideo/props.d.ts +1 -1
- package/dist/filterProps-CBnuV0LI.js +17 -0
- package/dist/foundations/GlobalStyle/index.js +2 -2
- package/dist/foundations/tags.d.ts +2 -0
- package/dist/foundations/types/PositionedIconInterface.d.ts +1 -1
- package/dist/foundations/types/SystemIconWithPosition.d.ts +1 -1
- package/dist/hooks/useLinkComponent/index.d.ts +11 -0
- package/dist/hooks/useLinkComponent/index.js +11 -0
- package/dist/hooks/useViewport/index.js +5 -22
- package/dist/icons/index.js +323 -340
- package/dist/{index-BeSd-V81.js → index-9io8adeQ.js} +3 -3
- package/dist/{index-ZHkR70j3.js → index-BdPmdY9v.js} +4 -3
- package/dist/{index-C5GzK6_0.js → index-Cqh8IRpl.js} +18 -8
- package/dist/index-Cs0Hw0dj.js +25 -0
- package/dist/{index-DQhtQZ85.js → index-GwyCjtti.js} +1 -1
- package/dist/{index-aUJfXBUI.js → index-TImInHXt.js} +5 -26
- package/dist/{index-C7meHOM4.js → index-hMlQuoyx.js} +36 -14
- package/dist/index.d.ts +9 -0
- package/dist/index.js +162 -133
- package/dist/{styled-ZpQohvyx.js → styled-BIc9Gu0G.js} +1 -1
- package/dist/{styled-BSqC5P9h.js → styled-C4eI47I1.js} +4 -4
- package/dist/{styled-DMUiOi24.js → styled-CFTspqJH.js} +2 -2
- package/dist/{styled-B0YKfXTz.js → styled-CPUu8mvT.js} +1 -1
- package/dist/{styled-03irSJOQ.js → styled-Cep52hpR.js} +1 -1
- package/dist/{styled-ODPFCF1a.js → styled-Cq-UMAjp.js} +1 -1
- package/dist/{styled-CYugcGtx.js → styled-DINwm57V.js} +1 -1
- package/dist/styled-DPHfwWsx.js +78 -0
- package/dist/{styled-Cqp2oSjW.js → styled-a-XazLSM.js} +3 -3
- package/dist/{tags-DI6H1biK.js → tags-D0ExIPLD.js} +4 -2
- package/package.json +1 -1
- package/dist/components/Carousel/utils/useScrollSpy.d.ts +0 -2
- package/dist/filterProps-Cewck8OH.js +0 -13
- package/dist/index-Cbojl4_Q.js +0 -7134
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
|
+
import { SVGAttributes } from 'react';
|
|
3
|
+
import { IconSize } from '../InlineIcon';
|
|
4
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
5
|
+
export interface IconLoaderProps extends PatternProps, SVGAttributes<SVGElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Pin component's name from string to the concrete name
|
|
8
|
+
*/
|
|
9
|
+
component?: 'IconLoader';
|
|
10
|
+
/**
|
|
11
|
+
* Icon name
|
|
12
|
+
*/
|
|
13
|
+
name: IconName;
|
|
14
|
+
/**
|
|
15
|
+
* size defines the height and width of the icon
|
|
16
|
+
*/
|
|
17
|
+
size: IconSize;
|
|
18
|
+
/**
|
|
19
|
+
* Icons are generally assumed to be decorative and not content-bearing.
|
|
20
|
+
* If an icon transports content, then alt text must be used to store a text for screen readers
|
|
21
|
+
*/
|
|
22
|
+
alt?: string;
|
|
23
|
+
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { df as IconLoader, it as iconSizeLg, iq as iconSize3xl, iv as iconSizeSm } from "../../index-Cbojl4_Q.js";
|
|
4
3
|
import Body from "../Body/index.js";
|
|
5
4
|
import Heading from "../Heading/index.js";
|
|
5
|
+
import { d as iconSizeLg, g as iconSize3xl, b as iconSizeSm } from "../../styled-DPHfwWsx.js";
|
|
6
6
|
import InlineLink from "../InlineLink/index.js";
|
|
7
|
-
import { R as RichText } from "../../index-BeSd-V81.js";
|
|
8
|
-
import { d as divTagName } from "../../tags-DI6H1biK.js";
|
|
9
|
-
import { a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
10
7
|
import Link from "../Link/index.js";
|
|
8
|
+
import { R as RichText } from "../../index-9io8adeQ.js";
|
|
9
|
+
import { d as divTagName } from "../../tags-D0ExIPLD.js";
|
|
10
|
+
import { c as spacingSm, s as spacingMd, b as spacingNone, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
|
|
11
11
|
import styled from "styled-components";
|
|
12
|
+
import IconLoader from "../IconLoader/index.js";
|
|
12
13
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
13
14
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
14
|
-
import {
|
|
15
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
15
16
|
const iconSnippetSizeSmall = "sm";
|
|
16
17
|
const iconSnippetSizeLarge = "lg";
|
|
17
18
|
const iconSnippetSize3Xl = "3xl";
|
|
@@ -24,12 +25,9 @@ const IconSnippetStyled = styled.div.withConfig({
|
|
|
24
25
|
displayName: "IconSnippetStyled",
|
|
25
26
|
componentId: "sc-uw0x7w-0"
|
|
26
27
|
})({
|
|
27
|
-
display: "flex"
|
|
28
|
+
display: "flex",
|
|
29
|
+
gap: getSpacing(spacingSm)
|
|
28
30
|
}, ({
|
|
29
|
-
iconPosition
|
|
30
|
-
}) => ({
|
|
31
|
-
gap: getSpacing("center" === iconPosition ? spacingXs : spacingMd)
|
|
32
|
-
}), ({
|
|
33
31
|
iconAlign
|
|
34
32
|
}) => ({
|
|
35
33
|
alignItems: "top" === iconAlign ? "start" : iconAlign
|
|
@@ -95,10 +93,11 @@ const IconSnippet = ({
|
|
|
95
93
|
iconPosition = iconSnippetPositionLeft,
|
|
96
94
|
iconAlign = iconSnippetAlignTop,
|
|
97
95
|
tag = divTagName,
|
|
96
|
+
icon,
|
|
98
97
|
...props
|
|
99
98
|
}) => {
|
|
100
99
|
return /* @__PURE__ */ jsxs(IconSnippetStyled, { ...props, iconPosition, iconAlign, as: tag, children: [
|
|
101
|
-
/* @__PURE__ */ jsx(IconLoaderStyled, { size: size === iconSnippetSizeLarge ? iconSizeLg : size === iconSnippetSize3Xl ? iconSize3xl : iconSizeSm
|
|
100
|
+
/* @__PURE__ */ jsx(IconLoaderStyled, { ...icon, bottomSpacing: spacingNone, size: size === iconSnippetSizeLarge ? iconSizeLg : size === iconSnippetSize3Xl ? iconSize3xl : iconSizeSm }),
|
|
102
101
|
/* @__PURE__ */ jsx(IconSnippetContentStyled, { as: tag, iconPosition, children: getContents(contents) })
|
|
103
102
|
] });
|
|
104
103
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IconName } from '@vfde-react/inline-icon-library';
|
|
2
1
|
import { HTMLAttributes } from 'react';
|
|
3
2
|
import { BodyProps } from '../Body';
|
|
4
3
|
import { HeadingProps } from '../Heading';
|
|
4
|
+
import { IconLoaderProps } from '../IconLoader';
|
|
5
5
|
import { InlineLinkProps } from '../InlineLink';
|
|
6
6
|
import { LinkProps } from '../Link';
|
|
7
7
|
import { LinkAsButtonProps } from '../LinkAsButton';
|
|
@@ -28,7 +28,7 @@ export interface IconSnippetProps extends PatternProps, HTMLAttributes<HTMLDivEl
|
|
|
28
28
|
/**
|
|
29
29
|
* Icon
|
|
30
30
|
*/
|
|
31
|
-
icon:
|
|
31
|
+
icon: Omit<IconLoaderProps, 'size' | 'bottomSpacing'>;
|
|
32
32
|
/**
|
|
33
33
|
* contents must be an array containing any combination of HeadingProps, BodyProps, RichTextProps and/or InlineLinkProps;
|
|
34
34
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
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" | "
|
|
3
|
-
export declare const IconLoaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('
|
|
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
|
+
export declare const IconLoaderStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../IconLoader').IconLoaderProps, never>> & string & Omit<import('react').FC<import('../IconLoader').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;
|
|
6
6
|
}>> & string;
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import Grid from "../Grid/index.js";
|
|
4
4
|
import GridItem from "../GridItem/index.js";
|
|
5
5
|
import IconSnippet from "../IconSnippet/index.js";
|
|
6
|
-
import { u as ulTagName, l as liTagName } from "../../tags-
|
|
6
|
+
import { u as ulTagName, l as liTagName } from "../../tags-D0ExIPLD.js";
|
|
7
7
|
import { b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
8
8
|
const IconSnippetList = ({
|
|
9
9
|
component: _component,
|
|
@@ -5,7 +5,7 @@ import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.j
|
|
|
5
5
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
6
6
|
import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
7
7
|
import { c as cornerStraight } from "../../CornerStyle-JEbGNArR.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
9
9
|
const objectFitContain = "contain";
|
|
10
10
|
const objectFitCover = "cover";
|
|
11
11
|
const objectFitNone = "none";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Body from "../Body/index.js";
|
|
4
|
-
import { a as fontWeightLight } from "../../FontWeight-CR22KTex.js";
|
|
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
|
-
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
7
|
-
import { g as getUid, R as RichText } from "../../index-BeSd-V81.js";
|
|
8
4
|
import Button from "../Button/index.js";
|
|
9
5
|
import Container from "../Container/index.js";
|
|
10
6
|
import Heading, { headingAlignCenter } from "../Heading/index.js";
|
|
11
|
-
import { P as Price, b as priceSizeSm } from "../../index-
|
|
7
|
+
import { P as Price, b as priceSizeSm } from "../../index-TImInHXt.js";
|
|
8
|
+
import { g as getUid, R as RichText } from "../../index-9io8adeQ.js";
|
|
9
|
+
import { b as fontWeightLight } from "../../FontWeight-DEBGHbtO.js";
|
|
10
|
+
import { s as spacingMd, c as spacingSm, d as spacingXl, a as spacingXs, e as spacing2Xs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
11
|
+
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
|
-
import { B as Badge } from "../../index-
|
|
13
|
+
import { B as Badge } from "../../index-BdPmdY9v.js";
|
|
14
14
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
15
15
|
import Grid from "../Grid/index.js";
|
|
16
16
|
import GridItem from "../GridItem/index.js";
|
|
@@ -21,7 +21,7 @@ import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
|
21
21
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
22
22
|
import { b as colorBackgroundOverlay } from "../../BackgroundColor-e0N9tdDR.js";
|
|
23
23
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
24
|
-
import { a as flexOrientationVertical } from "../../styled-
|
|
24
|
+
import { a as flexOrientationVertical } from "../../styled-CPUu8mvT.js";
|
|
25
25
|
const imageHeaderVariantFull = "full";
|
|
26
26
|
const imageHeaderVariantSplit = "split";
|
|
27
27
|
const imageHeaderPositionRight = "right";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { BadgeProps } from '../Badge/props';
|
|
3
|
-
import { HeadingProps } from '../Heading/props';
|
|
4
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
5
|
-
import { Theme } from '../../foundations/types/Theme';
|
|
6
3
|
import { BodyProps } from '../Body/props';
|
|
7
4
|
import { ButtonProps } from '../Button/props';
|
|
8
5
|
import { ButtonAsLinkProps } from '../ButtonAsLink/props';
|
|
9
6
|
import { ButtonGroupProps } from '../ButtonGroup/props';
|
|
10
7
|
import { GridColSpan } from '../Grid/props';
|
|
8
|
+
import { HeadingProps } from '../Heading/props';
|
|
11
9
|
import { PriceProps } from '../Price/props';
|
|
12
10
|
import { ResponsiveImageProps } from '../ResponsiveImage/props';
|
|
13
11
|
import { RichTextProps } from '../RichText/props';
|
|
12
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
13
|
+
import { Theme } from '../../foundations/types/Theme';
|
|
14
14
|
export declare const imageHeaderVariantFull = "full";
|
|
15
15
|
export declare const imageHeaderVariantSplit = "split";
|
|
16
16
|
export declare const imageHeaderPositionRight = "right";
|
|
@@ -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>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { m as InlineIconStyled, l as inlineIconModeStroke } from "../../styled-DPHfwWsx.js";
|
|
4
|
+
import { I, f, i, g, h, j, d, c, b, e, a, k } from "../../styled-DPHfwWsx.js";
|
|
5
|
+
const InlineIcon = ({
|
|
6
|
+
className,
|
|
7
|
+
alt = "",
|
|
8
|
+
coloringMode = inlineIconModeStroke,
|
|
9
|
+
viewBox = "0 0 192 192",
|
|
10
|
+
...props
|
|
11
|
+
}) => {
|
|
12
|
+
return /* @__PURE__ */ jsxs(InlineIconStyled, { ...props, className, $coloringMode: coloringMode, version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", viewBox, xmlSpace: "preserve", ..."" === alt ? {
|
|
13
|
+
"aria-hidden": true
|
|
14
|
+
} : {}, children: [
|
|
15
|
+
"" !== alt && /* @__PURE__ */ jsx("title", { children: alt }),
|
|
16
|
+
props.children
|
|
17
|
+
] });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
I as IconWithAccent,
|
|
21
|
+
InlineIconStyled,
|
|
22
|
+
InlineIcon as default,
|
|
23
|
+
f as iconSize2xl,
|
|
24
|
+
i as iconSize2xs,
|
|
25
|
+
g as iconSize3xl,
|
|
26
|
+
h as iconSize4xl,
|
|
27
|
+
j as iconSize5xl,
|
|
28
|
+
d as iconSizeLg,
|
|
29
|
+
c as iconSizeMd,
|
|
30
|
+
b as iconSizeSm,
|
|
31
|
+
e as iconSizeXl,
|
|
32
|
+
a as iconSizeXs,
|
|
33
|
+
k as inlineIconModeFill,
|
|
34
|
+
inlineIconModeStroke
|
|
35
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SVGAttributes } from 'react';
|
|
2
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
+
export declare const iconSize2xs = "iconSize2xs";
|
|
4
|
+
export declare const iconSizeXs = "iconSizeXs";
|
|
5
|
+
export declare const iconSizeSm = "iconSizeSm";
|
|
6
|
+
export declare const iconSizeMd = "iconSizeMd";
|
|
7
|
+
export declare const iconSizeLg = "iconSizeLg";
|
|
8
|
+
export declare const iconSizeXl = "iconSizeXl";
|
|
9
|
+
export declare const iconSize2xl = "iconSize2xl";
|
|
10
|
+
export declare const iconSize3xl = "iconSize3xl";
|
|
11
|
+
export declare const iconSize4xl = "iconSize4xl";
|
|
12
|
+
export declare const iconSize5xl = "iconSize5xl";
|
|
13
|
+
export type IconSize = typeof iconSize2xs | typeof iconSizeXs | typeof iconSizeSm | typeof iconSizeMd | typeof iconSizeLg | typeof iconSizeXl | typeof iconSize2xl | typeof iconSize3xl | typeof iconSize4xl | typeof iconSize5xl;
|
|
14
|
+
export declare const IconWithAccent: string[];
|
|
15
|
+
export declare const inlineIconModeFill = "fill";
|
|
16
|
+
export declare const inlineIconModeStroke = "stroke";
|
|
17
|
+
export type InlineIconMode = typeof inlineIconModeFill | typeof inlineIconModeStroke;
|
|
18
|
+
export interface InlineIconProps extends PatternProps, SVGAttributes<SVGElement> {
|
|
19
|
+
/**
|
|
20
|
+
* Pin component's name from string to the concrete name
|
|
21
|
+
*/
|
|
22
|
+
component?: 'InlineIcon';
|
|
23
|
+
/**
|
|
24
|
+
* Icons are generally assumed to be decorative and not content-bearing.
|
|
25
|
+
* If an icon transports content, then alt text must be used to store a text for screen readers
|
|
26
|
+
*/
|
|
27
|
+
alt?: string;
|
|
28
|
+
/**
|
|
29
|
+
* This props is an workaround for the inconsistent svg
|
|
30
|
+
* Some need coloring mode fill,
|
|
31
|
+
*/
|
|
32
|
+
coloringMode?: InlineIconMode;
|
|
33
|
+
/**
|
|
34
|
+
* This props is an workaround for the inconsistent svg
|
|
35
|
+
* Some icons have a different viewbox the '0 0 192 192'
|
|
36
|
+
*/
|
|
37
|
+
viewBox?: string;
|
|
38
|
+
/**
|
|
39
|
+
* size defines the height and width of the icon
|
|
40
|
+
*/
|
|
41
|
+
size: IconSize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InlineIconMode, InlineIconProps } from './props';
|
|
2
|
+
export declare const InlineIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, Omit<InlineIconProps, "coloringMode"> & {
|
|
3
|
+
$coloringMode: InlineIconMode;
|
|
4
|
+
}>> & string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
4
|
+
import { a as filterProps, f as filterPropsForUnstyledComponent } from "../../filterProps-CBnuV0LI.js";
|
|
3
5
|
import styled from "styled-components";
|
|
4
6
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
5
7
|
import { e as ease_in_sine } from "../../easing-Dm-pO8SY.js";
|
|
@@ -8,14 +10,13 @@ import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js"
|
|
|
8
10
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
9
11
|
import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
10
12
|
import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
11
|
-
import {
|
|
12
|
-
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
13
|
+
import { f as colorTextBrand, a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
13
14
|
const hover = {
|
|
14
15
|
textDecoration: "none",
|
|
15
16
|
color: getTextColor(colorTextBrand)
|
|
16
17
|
};
|
|
17
|
-
const InlineLinkStyled = styled.
|
|
18
|
-
shouldForwardProp: filterProps(),
|
|
18
|
+
const InlineLinkStyled = styled.span.withConfig({
|
|
19
|
+
shouldForwardProp: filterProps(["href"]),
|
|
19
20
|
displayName: "InlineLinkStyled",
|
|
20
21
|
componentId: "sc-ztdjf-0"
|
|
21
22
|
})({
|
|
@@ -24,7 +25,7 @@ const InlineLinkStyled = styled.a.withConfig({
|
|
|
24
25
|
textDecoration: "underline",
|
|
25
26
|
transition: `color 0.2s ${ease_in_sine}`,
|
|
26
27
|
verticalAlign: "baseline",
|
|
27
|
-
"&:focus-
|
|
28
|
+
"&:focus-within": {
|
|
28
29
|
...forcedColors({
|
|
29
30
|
outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`
|
|
30
31
|
}),
|
|
@@ -35,9 +36,20 @@ const InlineLinkStyled = styled.a.withConfig({
|
|
|
35
36
|
"&:visited": {
|
|
36
37
|
color: getTextColor(colorTextNeutral)
|
|
37
38
|
},
|
|
38
|
-
"&:hover": hover
|
|
39
|
+
"&:hover": hover,
|
|
40
|
+
"& a": {
|
|
41
|
+
color: "inherit"
|
|
42
|
+
},
|
|
43
|
+
"& a:focus-visible": {
|
|
44
|
+
outline: "none"
|
|
45
|
+
}
|
|
39
46
|
});
|
|
40
|
-
const InlineLink = (props) =>
|
|
47
|
+
const InlineLink = (props) => {
|
|
48
|
+
const {
|
|
49
|
+
LinkComponent
|
|
50
|
+
} = useLinkComponent();
|
|
51
|
+
return /* @__PURE__ */ jsx(InlineLinkStyled, { ...props, children: /* @__PURE__ */ jsx(LinkComponent, { ...filterPropsForUnstyledComponent(props), children: props.children }) });
|
|
52
|
+
};
|
|
41
53
|
export {
|
|
42
54
|
InlineLink as default
|
|
43
55
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InlineLinkProps } from './props';
|
|
2
|
-
export declare const InlineLinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').
|
|
2
|
+
export declare const InlineLinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, InlineLinkProps>> & string;
|
|
@@ -9,7 +9,7 @@ import { s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
|
|
|
9
9
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
10
10
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
11
11
|
import { i } from "../../props-DDpgcryb.js";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
12
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-Cep52hpR.js";
|
|
13
13
|
const Input = forwardRef(({
|
|
14
14
|
uid,
|
|
15
15
|
status,
|
|
@@ -4,7 +4,7 @@ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTex
|
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
6
6
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
8
8
|
const LabelStyled = styled.label.withConfig({
|
|
9
9
|
shouldForwardProp: filterProps(),
|
|
10
10
|
displayName: "LabelStyled",
|
|
@@ -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-9io8adeQ.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
const LegendStyled = styled.legend.withConfig({
|
|
9
9
|
displayName: "LegendStyled",
|
|
@@ -1,6 +1,8 @@
|
|
|
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-Cqh8IRpl.js";
|
|
4
|
+
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
5
|
+
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CBnuV0LI.js";
|
|
4
6
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
7
|
const isLinkAsButtonProp = (props) => {
|
|
6
8
|
return props.href === void 0;
|
|
@@ -9,10 +11,13 @@ const Link = (props) => {
|
|
|
9
11
|
if (isLinkAsButtonProp(props)) {
|
|
10
12
|
return /* @__PURE__ */ jsx(LinkAsButton, { ...props, children: props.children });
|
|
11
13
|
}
|
|
12
|
-
|
|
14
|
+
const {
|
|
15
|
+
LinkComponent
|
|
16
|
+
} = useLinkComponent();
|
|
17
|
+
return /* @__PURE__ */ jsx(LinkStyled, { ...props, children: /* @__PURE__ */ jsxs(LinkComponent, { ...filterPropsForUnstyledComponent(props), children: [
|
|
13
18
|
renderInlineRichTextFromOpenText(props.children),
|
|
14
19
|
getLinkIcon(props.icon)
|
|
15
|
-
] });
|
|
20
|
+
] }) });
|
|
16
21
|
};
|
|
17
22
|
export {
|
|
18
23
|
Link as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CSSObject } from 'styled-components';
|
|
2
2
|
import { LinkProps } from './props';
|
|
3
3
|
export declare const linkBaseCssObject: CSSObject;
|
|
4
|
-
export declare const LinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').
|
|
4
|
+
export declare const LinkStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LinkProps>> & string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { u as ulTagName, l as liTagName } from "../../tags-DI6H1biK.js";
|
|
4
|
-
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
5
3
|
import LinkListItem, { linkListItemVariantVertical, linkListItemVariantHorizontal } from "../LinkListItem/index.js";
|
|
4
|
+
import { u as ulTagName, l as liTagName } from "../../tags-D0ExIPLD.js";
|
|
5
|
+
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import Grid from "../Grid/index.js";
|
|
8
8
|
import GridItem from "../GridItem/index.js";
|
|
@@ -53,9 +53,9 @@ const LinkList = ({
|
|
|
53
53
|
},
|
|
54
54
|
...props
|
|
55
55
|
}) => {
|
|
56
|
-
return /* @__PURE__ */ jsx(LinkListStyled, { bottomSpacing: props.bottomSpacing, variant, tag: ulTagName, autoLayout: gridConfig, elevation: props.elevation, stretch: true, children: items.map((item, index) => {
|
|
56
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], children: /* @__PURE__ */ jsx(LinkListStyled, { bottomSpacing: props.bottomSpacing, variant, tag: ulTagName, autoLayout: gridConfig, elevation: props.elevation, stretch: true, children: items.map((item, index) => {
|
|
57
57
|
return /* @__PURE__ */ jsx(LinkListLiStyled, { tag: liTagName, variant, children: /* @__PURE__ */ jsx(LinkListItem, { ...item, orientation: variant === linkListVariantRow ? linkListItemVariantVertical : linkListItemVariantHorizontal, elevation: props.elevation, bottomSpacing: spacingNone, isLastItemInList: index === items.length - 1 }) }, item.uid);
|
|
58
|
-
}) });
|
|
58
|
+
}) }) });
|
|
59
59
|
};
|
|
60
60
|
export {
|
|
61
61
|
LinkList as default,
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { B as Badge } from "../../index-BdPmdY9v.js";
|
|
4
|
+
import IconLoader from "../IconLoader/index.js";
|
|
5
|
+
import { c as iconSizeMd } from "../../styled-DPHfwWsx.js";
|
|
6
|
+
import { s as spanTagName } from "../../tags-D0ExIPLD.js";
|
|
5
7
|
import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
6
8
|
import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
7
|
-
import {
|
|
9
|
+
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
10
|
+
import { a as filterProps, f as filterPropsForUnstyledComponent } from "../../filterProps-CBnuV0LI.js";
|
|
8
11
|
import styled from "styled-components";
|
|
12
|
+
import Body from "../Body/index.js";
|
|
13
|
+
import Card from "../Card/index.js";
|
|
14
|
+
import Icon from "../Icon/index.js";
|
|
9
15
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
10
16
|
import { e as ease_in_sine } from "../../easing-Dm-pO8SY.js";
|
|
11
17
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
@@ -23,11 +29,7 @@ import { a as borderWidthFocus, c as borderWidthSm } from "../../BorderWidth-DfO
|
|
|
23
29
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
24
30
|
import { b as colorIconBrand } from "../../IconColor-CtC9WUgr.js";
|
|
25
31
|
import { a as colorTextNeutral, f as colorTextBrand } from "../../TextColor-DsntmDNw.js";
|
|
26
|
-
import {
|
|
27
|
-
import Body from "../Body/index.js";
|
|
28
|
-
import Card from "../Card/index.js";
|
|
29
|
-
import Icon from "../Icon/index.js";
|
|
30
|
-
import { C as CardAppearanceColor } from "../../styled-CYugcGtx.js";
|
|
32
|
+
import { C as CardAppearanceColor } from "../../styled-DINwm57V.js";
|
|
31
33
|
const linkListItemVariantVertical = "vertical";
|
|
32
34
|
const linkListItemVariantHorizontal = "horizontal";
|
|
33
35
|
const focusStyles = {
|
|
@@ -81,21 +83,24 @@ const LinkListItemButtonStyled = styled.button.withConfig({
|
|
|
81
83
|
}
|
|
82
84
|
});
|
|
83
85
|
const buttonParent = `${LinkListItemButtonStyled.toString()} &`;
|
|
84
|
-
const LinkListItemAnchorStyled = styled.
|
|
85
|
-
shouldForwardProp: filterProps(),
|
|
86
|
+
const LinkListItemAnchorStyled = styled.span.withConfig({
|
|
87
|
+
shouldForwardProp: filterProps(["href"]),
|
|
86
88
|
displayName: "LinkListItemAnchorStyled",
|
|
87
89
|
componentId: "sc-1dmfu9f-1"
|
|
88
90
|
})({
|
|
89
|
-
textDecoration: "none",
|
|
90
|
-
display: "block",
|
|
91
91
|
height: "100%",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
"& > a": {
|
|
93
|
+
textDecoration: "none",
|
|
94
|
+
display: "block",
|
|
95
|
+
height: "100%",
|
|
96
|
+
color: getTextColor(colorTextNeutral),
|
|
97
|
+
"&:focus-visible": focusStyles,
|
|
98
|
+
"&:hover, &:focus": {
|
|
99
|
+
textDecoration: "none"
|
|
100
|
+
},
|
|
101
|
+
"&:visited": {
|
|
102
|
+
color: getTextColor(colorTextNeutral)
|
|
103
|
+
}
|
|
99
104
|
}
|
|
100
105
|
}, ({
|
|
101
106
|
elevation = true,
|
|
@@ -103,17 +108,21 @@ const LinkListItemAnchorStyled = styled.a.withConfig({
|
|
|
103
108
|
}) => {
|
|
104
109
|
if (!elevation && orientation === linkListItemVariantHorizontal) {
|
|
105
110
|
return {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
"& > a": {
|
|
112
|
+
borderRadius: getBorderRadius(borderRadiusNone),
|
|
113
|
+
transitionProperty: "color",
|
|
114
|
+
transitionDuration: "0.2s",
|
|
115
|
+
transitionTimingFunction: ease_in_sine,
|
|
116
|
+
"&:hover, &:focus-visible": {
|
|
117
|
+
color: getTextColor(colorTextBrand)
|
|
118
|
+
}
|
|
112
119
|
}
|
|
113
120
|
};
|
|
114
121
|
}
|
|
115
122
|
return {
|
|
116
|
-
|
|
123
|
+
"& > a": {
|
|
124
|
+
borderRadius: getBorderRadius(borderRadiusMd)
|
|
125
|
+
}
|
|
117
126
|
};
|
|
118
127
|
});
|
|
119
128
|
const parentHasFocusSelector = `${LinkListItemAnchorStyled.toString()}:focus-within &, ${LinkListItemButtonStyled.toString()}:focus-within &`;
|
|
@@ -314,11 +323,14 @@ const LinkListItem = (props) => {
|
|
|
314
323
|
] }),
|
|
315
324
|
LinkListBadge
|
|
316
325
|
] }) });
|
|
317
|
-
const Item = elevation ? /* @__PURE__ */ jsx(LinkListItemElevatedStyled, {
|
|
326
|
+
const Item = elevation ? /* @__PURE__ */ jsx(LinkListItemElevatedStyled, { tag: "span", children: Content }) : /* @__PURE__ */ jsx(LinkListItemStyled, { orientation, bottomSpacing: props.bottomSpacing, isLastItemInList, children: Content });
|
|
318
327
|
if (isLinkListItemAsButtonProp(props)) {
|
|
319
328
|
return /* @__PURE__ */ jsx(LinkListItemButtonStyled, { ...props, children: Item });
|
|
320
329
|
}
|
|
321
|
-
|
|
330
|
+
const {
|
|
331
|
+
LinkComponent
|
|
332
|
+
} = useLinkComponent();
|
|
333
|
+
return /* @__PURE__ */ jsx(LinkListItemAnchorStyled, { elevation, orientation, children: /* @__PURE__ */ jsx(LinkComponent, { ...filterPropsForUnstyledComponent(props), children: Item }) });
|
|
322
334
|
};
|
|
323
335
|
export {
|
|
324
336
|
LinkListItem as default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IconName } from '@vfde-react/inline-icon-library';
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
2
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
3
|
import { BadgeProps } from '../Badge';
|
|
4
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
5
5
|
export declare const linkListItemVariantVertical = "vertical";
|
|
6
6
|
export declare const linkListItemVariantHorizontal = "horizontal";
|
|
7
7
|
export type LinkListItemOrientation = typeof linkListItemVariantVertical | typeof linkListItemVariantHorizontal;
|