@vodafone_de/brix-components 7.0.18 → 7.0.19
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/components/Button/index.js +1 -1
- package/dist/components/ButtonAsLink/index.js +2 -1
- package/dist/components/DemoBox/index.js +1 -1
- package/dist/components/Dialog/index.js +3 -2
- package/dist/components/DiscoveryCard/index.js +1 -1
- package/dist/components/IconSnippet/index.js +1 -1
- package/dist/components/ImageHeader/index.js +2 -1
- package/dist/components/InfoBanner/index.d.ts +5 -0
- package/dist/components/InfoBanner/index.js +86 -0
- package/dist/components/InfoBanner/props.d.ts +32 -0
- package/dist/components/InfoBanner/styled.d.ts +2 -0
- package/dist/components/InlineLink/index.js +2 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.js +2 -1
- package/dist/components/LinkListItem/index.js +2 -1
- package/dist/components/LocalStyle/index.d.ts +12 -0
- package/dist/components/LocalStyle/index.js +20 -0
- package/dist/components/LocalStyle/props.d.ts +5 -0
- package/dist/components/LocalStyle/styled.d.ts +2 -0
- package/dist/components/MediaText/index.js +2 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OpenTextFootnoteAdapter/index.js +1 -1
- package/dist/components/QuickLinkList/components/QuickLink/styled.d.ts +1 -1
- package/dist/components/QuickLinkList/index.js +55 -48
- package/dist/components/RadioGroup/index.js +1 -0
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +1 -1
- package/dist/components/SuggestInput/index.js +5 -4
- package/dist/components/TabGroup/index.js +15 -15
- package/dist/components/TabGroup/props.d.ts +29 -34
- package/dist/components/TabGroup/styled.d.ts +2 -2
- package/dist/components/TextList/index.js +1 -1
- package/dist/cssVars-C3-c3zhv.js +726 -0
- package/dist/foundations/GlobalStyle/index.d.ts +1 -0
- package/dist/foundations/GlobalStyle/index.js +211 -217
- package/dist/foundations/cssVars.d.ts +1 -0
- package/dist/{index-Cy0Uf6Y5.js → index-CVHmFLr5.js} +2 -6
- package/dist/index-DR3e19BE.js +7 -0
- package/dist/{index-Dy21IAhD.js → index-DSTYuyEd.js} +2 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +120 -112
- package/dist/sanitizeLinkProps-D2Kkovy1.js +12 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-
|
|
3
|
+
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-DSTYuyEd.js";
|
|
4
4
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
5
|
import { B as ButtonStyled } from "../../styled-DtUIJa88.js";
|
|
6
6
|
const buttonFullWidth = "full";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { B } from "../../index-
|
|
3
|
+
import { B } from "../../index-DSTYuyEd.js";
|
|
4
4
|
import "../../hooks/useLinkComponent/index.js";
|
|
5
5
|
import "../../filterProps-CTn92eZw.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
|
+
import "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
7
8
|
export {
|
|
8
9
|
B as default
|
|
9
10
|
};
|
|
@@ -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-CW4e5Qa3.js";
|
|
7
7
|
const heading = {
|
|
8
8
|
component: "Heading",
|
|
@@ -58,7 +58,8 @@ const DialogButtonGroupStyled = styled(ButtonGroup).withConfig({
|
|
|
58
58
|
componentId: "sc-z6nqyy-3"
|
|
59
59
|
})({
|
|
60
60
|
justifyContent: "flex-end",
|
|
61
|
-
padding: `0 ${getBorderWidth(borderWidthFocus)}
|
|
61
|
+
padding: `0 ${getBorderWidth(borderWidthFocus)}`,
|
|
62
|
+
height: "auto"
|
|
62
63
|
});
|
|
63
64
|
const DialogChildrenContainerStyled = styled("div").withConfig({
|
|
64
65
|
displayName: "DialogChildrenContainerStyled",
|
|
@@ -163,7 +164,7 @@ const Dialog = ({
|
|
|
163
164
|
dismissable && /* @__PURE__ */ jsx(DialogIconButtonStyled, { label: "Schließen", iconName: "Close", appearance: "tertiary", bottomSpacing: spacingNone, onClick: onCloseIconButtonClick })
|
|
164
165
|
] }),
|
|
165
166
|
/* @__PURE__ */ jsx(DialogChildrenContainerStyled, { children }),
|
|
166
|
-
/* @__PURE__ */ jsx(DialogButtonGroupStyled, { ...buttons, orientation: "horizontal", justifyHorizontal: "end", isReversed: true })
|
|
167
|
+
/* @__PURE__ */ jsx(DialogButtonGroupStyled, { ...buttons, orientation: "horizontal", justifyHorizontal: "end", isReversed: true, bottomSpacing: spacingNone })
|
|
167
168
|
] }) });
|
|
168
169
|
return open ? createPortal(dialog, document.body) : null;
|
|
169
170
|
};
|
|
@@ -6,7 +6,7 @@ import Body, { bodyAlignLeft, bodyAlignCenter } from "../Body/index.js";
|
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import Link from "../Link/index.js";
|
|
8
8
|
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-C8lpS44n.js";
|
|
9
|
-
import { R as RichText } from "../../index-
|
|
9
|
+
import { R as RichText } from "../../index-CVHmFLr5.js";
|
|
10
10
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
11
11
|
import { b as textHeadingSm } from "../../HeadingSize-CfCRn3Lh.js";
|
|
12
12
|
import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
@@ -6,7 +6,7 @@ import { d as iconSizeLg, g as iconSize3xl, b as iconSizeSm } from "../../props-
|
|
|
6
6
|
import "../../styled-RnVr222F.js";
|
|
7
7
|
import InlineLink from "../InlineLink/index.js";
|
|
8
8
|
import Link from "../Link/index.js";
|
|
9
|
-
import { R as RichText } from "../../index-
|
|
9
|
+
import { R as RichText } from "../../index-CVHmFLr5.js";
|
|
10
10
|
import { d as divTagName } from "../../tags-38kBhOn6.js";
|
|
11
11
|
import { c as spacingSm, a as spacingMd, s as spacingNone, b as spacingXs } from "../../Spacing-BMQelJYr.js";
|
|
12
12
|
import styled from "styled-components";
|
|
@@ -5,10 +5,11 @@ import Button from "../Button/index.js";
|
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import { P as Price, b as priceSizeSm } from "../../index-C8lpS44n.js";
|
|
8
|
-
import {
|
|
8
|
+
import { R as RichText } from "../../index-CVHmFLr5.js";
|
|
9
9
|
import { b as fontWeightLight } from "../../FontWeight-C2pGs7aR.js";
|
|
10
10
|
import { m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
11
11
|
import { a as spacingMd, c as spacingSm, d as spacingXl, b as spacingXs, e as spacing2Xs, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
12
|
+
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
12
13
|
import styled from "styled-components";
|
|
13
14
|
import Badge from "../Badge/index.js";
|
|
14
15
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import Button from "../Button/index.js";
|
|
4
|
+
import Heading from "../Heading/index.js";
|
|
5
|
+
import Icon from "../Icon/index.js";
|
|
6
|
+
import { d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
7
|
+
import "../../styled-RnVr222F.js";
|
|
8
|
+
import { f as fontWeightRegular } from "../../FontWeight-C2pGs7aR.js";
|
|
9
|
+
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
10
|
+
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
11
|
+
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
12
|
+
import styled from "styled-components";
|
|
13
|
+
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
14
|
+
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
15
|
+
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
16
|
+
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
17
|
+
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
|
+
import { a as colorBackgroundSubtle, e as colorBackgroundBrand } from "../../BackgroundColor-DSOSZvNi.js";
|
|
19
|
+
import { c as colorObjectNeutral } from "../../ObjectColor-0RAzLGI5.js";
|
|
20
|
+
import { g as getForegroundColor } from "../../colorUtils-lb0oJttx.js";
|
|
21
|
+
import { a as filterProps } from "../../filterProps-CTn92eZw.js";
|
|
22
|
+
const InfoBannerContainerStyled = styled.div.withConfig({
|
|
23
|
+
shouldForwardProp: filterProps(),
|
|
24
|
+
displayName: "InfoBannerContainerStyled",
|
|
25
|
+
componentId: "sc-1j7zpxr-0"
|
|
26
|
+
})({
|
|
27
|
+
display: "flex",
|
|
28
|
+
gap: getSpacing(spacingMd),
|
|
29
|
+
padding: getSpacing(spacingMd),
|
|
30
|
+
justifyContent: "center",
|
|
31
|
+
alignItems: "center"
|
|
32
|
+
}, ({
|
|
33
|
+
appearance = "primary"
|
|
34
|
+
}) => {
|
|
35
|
+
let background = getObjectColor(colorObjectNeutral);
|
|
36
|
+
let color = getForegroundColor(colorObjectNeutral);
|
|
37
|
+
switch (appearance) {
|
|
38
|
+
case "secondary":
|
|
39
|
+
background = getBackgroundColor(colorBackgroundBrand);
|
|
40
|
+
color = getForegroundColor(colorBackgroundBrand);
|
|
41
|
+
break;
|
|
42
|
+
case "tertiary":
|
|
43
|
+
background = getBackgroundColor(colorBackgroundSubtle);
|
|
44
|
+
color = getForegroundColor(colorBackgroundSubtle);
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
...forcedColors({
|
|
49
|
+
background: "CanvasText",
|
|
50
|
+
color: "Canvas"
|
|
51
|
+
}),
|
|
52
|
+
background,
|
|
53
|
+
color
|
|
54
|
+
};
|
|
55
|
+
}, ({
|
|
56
|
+
bottomSpacing = spacingNone
|
|
57
|
+
}) => ({
|
|
58
|
+
...getBottomSpacing({
|
|
59
|
+
bottomSpacing
|
|
60
|
+
})
|
|
61
|
+
}));
|
|
62
|
+
const infoBannerAppearancePrimary = "primary";
|
|
63
|
+
const infoBannerAppearanceSecondary = "secondary";
|
|
64
|
+
const infoBannerAppearanceTertiary = "tertiary";
|
|
65
|
+
const InfoBanner = ({
|
|
66
|
+
appearance,
|
|
67
|
+
icon,
|
|
68
|
+
heading,
|
|
69
|
+
button,
|
|
70
|
+
...props
|
|
71
|
+
}) => {
|
|
72
|
+
const headingId = `heading-${getUid()}`;
|
|
73
|
+
return /* @__PURE__ */ jsxs(InfoBannerContainerStyled, { ...props, appearance, "aria-labelledby": headingId, role: "group", children: [
|
|
74
|
+
icon && /* @__PURE__ */ jsx(Icon, { name: icon, size: iconSizeLg, "aria-hidden": true }),
|
|
75
|
+
/* @__PURE__ */ jsx(Heading, { ...heading, id: headingId, size: textHeadingXs, weight: fontWeightRegular, style: {
|
|
76
|
+
color: "inherit"
|
|
77
|
+
}, bottomSpacing: spacingNone }),
|
|
78
|
+
button && /* @__PURE__ */ jsx(Button, { ...button, bottomSpacing: spacingNone, "aria-describedby": headingId })
|
|
79
|
+
] });
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
InfoBanner as default,
|
|
83
|
+
infoBannerAppearancePrimary,
|
|
84
|
+
infoBannerAppearanceSecondary,
|
|
85
|
+
infoBannerAppearanceTertiary
|
|
86
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
import { ButtonProps } from '../Button';
|
|
4
|
+
import { HeadingProps } from '../Heading';
|
|
5
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
6
|
+
export declare const infoBannerAppearancePrimary = "primary";
|
|
7
|
+
export declare const infoBannerAppearanceSecondary = "secondary";
|
|
8
|
+
export declare const infoBannerAppearanceTertiary = "tertiary";
|
|
9
|
+
export type InfoBannerAppearance = typeof infoBannerAppearancePrimary | typeof infoBannerAppearanceSecondary | typeof infoBannerAppearanceTertiary;
|
|
10
|
+
export interface InfoBannerProps extends PatternProps, HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/**
|
|
12
|
+
* Pin component's name from string to the concrete name
|
|
13
|
+
*/
|
|
14
|
+
component?: 'InfoBanner';
|
|
15
|
+
/**
|
|
16
|
+
* Info Banner appearance. Can be primary, secondary or tertiary
|
|
17
|
+
* Based on that, the background color of the banner will change
|
|
18
|
+
*/
|
|
19
|
+
appearance: InfoBannerAppearance;
|
|
20
|
+
/**
|
|
21
|
+
* Icon to display in the banner
|
|
22
|
+
*/
|
|
23
|
+
icon?: IconName;
|
|
24
|
+
/**
|
|
25
|
+
* Heading
|
|
26
|
+
*/
|
|
27
|
+
heading: Omit<HeadingProps, 'size' | 'weight' | 'bottomSpacing'>;
|
|
28
|
+
/**
|
|
29
|
+
* Button
|
|
30
|
+
*/
|
|
31
|
+
button?: Omit<ButtonProps, 'bottomSpacing'>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { InfoBannerProps } from './props';
|
|
2
|
+
export declare const InfoBannerContainerStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<InfoBannerProps, "appearance" | "bottomSpacing">>> & string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
4
4
|
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CTn92eZw.js";
|
|
5
|
+
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
5
6
|
import styled from "styled-components";
|
|
6
7
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
7
8
|
import { e as ease_in_sine } from "../../easing-Dm-pO8SY.js";
|
|
@@ -48,7 +49,7 @@ const InlineLink = ({
|
|
|
48
49
|
...props
|
|
49
50
|
}) => {
|
|
50
51
|
const LinkComponent = useLinkComponent();
|
|
51
|
-
return /* @__PURE__ */ jsx(InlineLinkStyled, { className, children: /* @__PURE__ */ jsx(LinkComponent, { ...filterPropsForUnstyledComponent(props), children: props.children }) });
|
|
52
|
+
return /* @__PURE__ */ jsx(InlineLinkStyled, { className, children: /* @__PURE__ */ jsx(LinkComponent, { ...sanitizeLinkProps(filterPropsForUnstyledComponent(props)), children: props.children }) });
|
|
52
53
|
};
|
|
53
54
|
export {
|
|
54
55
|
InlineLink as default
|
|
@@ -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-CVHmFLr5.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
const LegendStyled = styled.legend.withConfig({
|
|
9
9
|
displayName: "LegendStyled",
|
|
@@ -4,6 +4,7 @@ import { L as LinkAsButton, a as LinkStyled, g as getLinkIcon } from "../../inde
|
|
|
4
4
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
5
5
|
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CTn92eZw.js";
|
|
6
6
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
|
+
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
7
8
|
const isLinkAsButtonProp = (props) => {
|
|
8
9
|
return props.href === void 0;
|
|
9
10
|
};
|
|
@@ -16,7 +17,7 @@ const Link = ({
|
|
|
16
17
|
return /* @__PURE__ */ jsx(LinkAsButton, { className, bottomSpacing, ...props, children: props.children });
|
|
17
18
|
}
|
|
18
19
|
const LinkComponent = useLinkComponent();
|
|
19
|
-
return /* @__PURE__ */ jsx(LinkStyled, { className, bottomSpacing, children: /* @__PURE__ */ jsxs(LinkComponent, { ...filterPropsForUnstyledComponent(props), children: [
|
|
20
|
+
return /* @__PURE__ */ jsx(LinkStyled, { className, bottomSpacing, children: /* @__PURE__ */ jsxs(LinkComponent, { ...sanitizeLinkProps(filterPropsForUnstyledComponent(props)), children: [
|
|
20
21
|
renderInlineRichTextFromOpenText(props.children),
|
|
21
22
|
getLinkIcon(props.icon)
|
|
22
23
|
] }) });
|
|
@@ -9,6 +9,7 @@ import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
|
9
9
|
import { s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
10
10
|
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
11
11
|
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CTn92eZw.js";
|
|
12
|
+
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
12
13
|
import { L as LinkListItemElevatedStyled, b as LinkListItemStyled, c as LinkListItemButtonStyled, d as LinkListItemAnchorStyled, e as LinkListItemContentWrapperStyled, a as linkListItemVariantHorizontal, f as LinkListItemContentStyled, g as LinkListItemLabelWrapperStyled, h as LinkListItemVerticalContentStyled, i as LinkListItemChevronStyled, j as LinkListLabelStyled, k as LinkListSuffixStyled } from "../../styled-BM1Yo9eD.js";
|
|
13
14
|
import { l } from "../../styled-BM1Yo9eD.js";
|
|
14
15
|
const isLinkListItemAsButtonProp = (props) => {
|
|
@@ -57,7 +58,7 @@ const LinkListItem = (props) => {
|
|
|
57
58
|
return /* @__PURE__ */ jsx(LinkListItemButtonStyled, { ...props, children: Item });
|
|
58
59
|
}
|
|
59
60
|
const LinkComponent = useLinkComponent();
|
|
60
|
-
return /* @__PURE__ */ jsx(LinkListItemAnchorStyled, { elevation, orientation, children: /* @__PURE__ */ jsx(LinkComponent, { ...filterPropsForUnstyledComponent(props), children: Item }) });
|
|
61
|
+
return /* @__PURE__ */ jsx(LinkListItemAnchorStyled, { elevation, orientation, children: /* @__PURE__ */ jsx(LinkComponent, { ...sanitizeLinkProps(filterPropsForUnstyledComponent(props)), children: Item }) });
|
|
61
62
|
};
|
|
62
63
|
export {
|
|
63
64
|
LinkListItem as default,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LocalStyleProps } from './props';
|
|
3
|
+
/**
|
|
4
|
+
* Local style is only working on pages that also include older styles
|
|
5
|
+
* e.g.
|
|
6
|
+
* https://www.vodafone.de/simplicity/assets/css/core.css"
|
|
7
|
+
* https://www.vodafone.de/simplicity/pattern-library-ws10/standalone/brix-ws10-bundle.css"
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
declare const LocalStyle: FC<LocalStyleProps>;
|
|
11
|
+
export default LocalStyle;
|
|
12
|
+
export * from './props';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import styled, { css } from "styled-components";
|
|
4
|
+
import { a as cssVarsString } from "../../cssVars-C3-c3zhv.js";
|
|
5
|
+
import { a as filterProps } from "../../filterProps-CTn92eZw.js";
|
|
6
|
+
const LocalStyleStyled = styled.div.withConfig({
|
|
7
|
+
shouldForwardProp: filterProps(),
|
|
8
|
+
displayName: "LocalStyleStyled",
|
|
9
|
+
componentId: "sc-1wrnevd-0"
|
|
10
|
+
})({}, () => {
|
|
11
|
+
const localCssVarsString = cssVarsString.replace(/:root/g, "&");
|
|
12
|
+
return css(["", ""], localCssVarsString);
|
|
13
|
+
});
|
|
14
|
+
const LocalStyle = ({
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}) => /* @__PURE__ */ jsx(LocalStyleStyled, { ...props, children });
|
|
18
|
+
export {
|
|
19
|
+
LocalStyle as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { LocalStyleProps } from './props';
|
|
2
|
+
export declare const LocalStyleStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, LocalStyleProps>> & string;
|
|
@@ -6,13 +6,14 @@ import FlexItem from "../FlexItem/index.js";
|
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import Image, { aspectRatio16_9 } from "../Image/index.js";
|
|
8
8
|
import Link from "../Link/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { R as RichText } from "../../index-CVHmFLr5.js";
|
|
10
10
|
import YoutubeVideo from "../YoutubeVideo/index.js";
|
|
11
11
|
import { p as pTagName, u as ulTagName, d as divTagName, l as liTagName } from "../../tags-38kBhOn6.js";
|
|
12
12
|
import { f as fontWeightRegular } from "../../FontWeight-C2pGs7aR.js";
|
|
13
13
|
import { b as textHeadingSm, t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
14
14
|
import { a as spacingMd, e as spacing2Xs, c as spacingSm, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
15
15
|
import { u as useViewport } from "../../index-G2mpsxF7.js";
|
|
16
|
+
import { g as getUid } from "../../index-DR3e19BE.js";
|
|
16
17
|
import styled from "styled-components";
|
|
17
18
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
18
19
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -9,7 +9,7 @@ import { I as IconLoader } from "../../index-BdUFiKHr.js";
|
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
10
|
import "../../styled-RnVr222F.js";
|
|
11
11
|
import Link from "../Link/index.js";
|
|
12
|
-
import { R as RichText } from "../../index-
|
|
12
|
+
import { R as RichText } from "../../index-CVHmFLr5.js";
|
|
13
13
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
14
14
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
15
15
|
import { e as colorBorderCritical, g as colorBorderWarning, d as colorBorderSuccess, k as colorBorderInformation } from "../../BorderColor-CYdSW9dg.js";
|
|
@@ -5,7 +5,7 @@ import AccordionGroup from "../AccordionGroup/index.js";
|
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import FootnoteContent from "../FootnoteContent/index.js";
|
|
7
7
|
import Heading from "../Heading/index.js";
|
|
8
|
-
import { R as RichText } from "../../index-
|
|
8
|
+
import { R as RichText } from "../../index-CVHmFLr5.js";
|
|
9
9
|
import { b as textHeadingSm, c as textHeadingLg } from "../../HeadingSize-CfCRn3Lh.js";
|
|
10
10
|
import { h as h3TagName } from "../../tags-38kBhOn6.js";
|
|
11
11
|
const getFootnoteContent = (content, footnoteContentBacklinkText) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const QuickLinkAnchorStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').
|
|
1
|
+
export declare const QuickLinkAnchorStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
2
2
|
export declare const QuickLinkIconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const QuickLinkLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import Grid from "../Grid/index.js";
|
|
4
4
|
import GridItem from "../GridItem/index.js";
|
|
5
5
|
import { u as useViewport, v as viewportLg } from "../../index-G2mpsxF7.js";
|
|
6
6
|
import Icon from "../Icon/index.js";
|
|
7
7
|
import { d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
8
8
|
import "../../styled-RnVr222F.js";
|
|
9
|
+
import { useLinkComponent } from "../../hooks/useLinkComponent/index.js";
|
|
10
|
+
import { f as filterPropsForUnstyledComponent } from "../../filterProps-CTn92eZw.js";
|
|
11
|
+
import { s as sanitizeLinkProps } from "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
9
12
|
import styled from "styled-components";
|
|
10
13
|
import { B as ButtonAppearanceColor } from "../../ButtonAppearanceHelper-D2SlSoU8.js";
|
|
11
14
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -20,60 +23,63 @@ import { c as colorBorderFocus, a as colorBorderNeutral } from "../../BorderColo
|
|
|
20
23
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
21
24
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
22
25
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
23
|
-
const QuickLinkAnchorStyled = styled.
|
|
26
|
+
const QuickLinkAnchorStyled = styled.span.withConfig({
|
|
24
27
|
displayName: "QuickLinkAnchorStyled",
|
|
25
28
|
componentId: "sc-ejqu78-0"
|
|
26
29
|
})({
|
|
27
|
-
display: "flex",
|
|
28
|
-
flexDirection: "column",
|
|
29
|
-
justifyContent: "center",
|
|
30
|
-
textAlign: "center",
|
|
31
|
-
textDecoration: "none !important",
|
|
32
|
-
color: getTextColor(colorTextNeutral),
|
|
33
|
-
alignItems: "center",
|
|
34
|
-
cursor: "pointer",
|
|
35
|
-
gap: getSpacing("Sm"),
|
|
36
|
-
padding: getSpacing("Sm"),
|
|
37
30
|
width: "100%",
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
"& a": {
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexDirection: "column",
|
|
34
|
+
justifyContent: "center",
|
|
35
|
+
textAlign: "center",
|
|
36
|
+
textDecoration: "none !important",
|
|
43
37
|
color: getTextColor(colorTextNeutral),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
position: "absolute",
|
|
49
|
-
top: 0,
|
|
50
|
-
left: 0,
|
|
38
|
+
alignItems: "center",
|
|
39
|
+
cursor: "pointer",
|
|
40
|
+
gap: getSpacing("Sm"),
|
|
41
|
+
padding: getSpacing("Sm"),
|
|
51
42
|
width: "100%",
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
43
|
+
maxWidth: 190,
|
|
44
|
+
borderRadius: getBorderRadius("borderRadiusMd"),
|
|
45
|
+
transition: "background 0.2s, outline 0.2s",
|
|
46
|
+
position: "relative",
|
|
47
|
+
"&:visited": {
|
|
48
|
+
color: getTextColor(colorTextNeutral),
|
|
49
|
+
textDecoration: "none"
|
|
50
|
+
},
|
|
51
|
+
"&::after": {
|
|
52
|
+
content: '""',
|
|
53
|
+
position: "absolute",
|
|
54
|
+
top: 0,
|
|
55
|
+
left: 0,
|
|
56
|
+
width: "100%",
|
|
57
|
+
height: "100%",
|
|
58
|
+
transition: "opacity 0.3s",
|
|
59
|
+
pointerEvents: "none",
|
|
60
|
+
zIndex: 1,
|
|
61
|
+
borderRadius: getBorderRadius("borderRadiusMd")
|
|
62
|
+
},
|
|
69
63
|
"&:focus-visible": {
|
|
70
|
-
outline: `${getBorderWidth(borderWidthFocus)} solid
|
|
64
|
+
outline: `${getBorderWidth(borderWidthFocus)} solid ${getBorderColor(colorBorderFocus)}`
|
|
71
65
|
},
|
|
72
66
|
"&:hover > div, &:focus-visible > div": {
|
|
73
|
-
background:
|
|
74
|
-
color: "
|
|
75
|
-
}
|
|
76
|
-
|
|
67
|
+
background: getObjectColor(ButtonAppearanceColor.secondary),
|
|
68
|
+
color: getObjectColor("colorObjectInverse")
|
|
69
|
+
},
|
|
70
|
+
...forcedColors({
|
|
71
|
+
background: "ButtonFace",
|
|
72
|
+
color: "ButtonText",
|
|
73
|
+
border: `${getBorderWidth("Sm")} solid ButtonBorder`,
|
|
74
|
+
"&:focus-visible": {
|
|
75
|
+
outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`
|
|
76
|
+
},
|
|
77
|
+
"&:hover > div, &:focus-visible > div": {
|
|
78
|
+
background: "Highlight",
|
|
79
|
+
color: "HighlightText"
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
}
|
|
77
83
|
});
|
|
78
84
|
const QuickLinkIconWrapper = styled.div.withConfig({
|
|
79
85
|
displayName: "QuickLinkIconWrapper",
|
|
@@ -108,10 +114,11 @@ const QuickLink = ({
|
|
|
108
114
|
href,
|
|
109
115
|
...props
|
|
110
116
|
}) => {
|
|
111
|
-
|
|
117
|
+
const LinkComponent = useLinkComponent();
|
|
118
|
+
return /* @__PURE__ */ jsx(QuickLinkAnchorStyled, { ...props, children: /* @__PURE__ */ jsxs(LinkComponent, { ...sanitizeLinkProps(filterPropsForUnstyledComponent(props)), href, children: [
|
|
112
119
|
/* @__PURE__ */ jsx(QuickLinkIconWrapper, { children: /* @__PURE__ */ jsx(Icon, { name: icon, size: iconSizeLg }) }),
|
|
113
120
|
/* @__PURE__ */ jsx(QuickLinkLabel, { children: label })
|
|
114
|
-
] });
|
|
121
|
+
] }) });
|
|
115
122
|
};
|
|
116
123
|
const QuickLinkList = ({
|
|
117
124
|
quickLinks,
|
|
@@ -5,7 +5,7 @@ import Body from "../Body/index.js";
|
|
|
5
5
|
import Divider from "../Divider/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import InlineLink from "../InlineLink/index.js";
|
|
8
|
-
import { a as TextListItem, T as TextList } from "../../index-
|
|
8
|
+
import { a as TextListItem, T as TextList } from "../../index-CVHmFLr5.js";
|
|
9
9
|
const getOptions = (paragraphSpacing = void 0) => {
|
|
10
10
|
const options = {
|
|
11
11
|
renderMark: {
|
|
@@ -128,7 +128,7 @@ const SuggestInputList = ({
|
|
|
128
128
|
useEffect(() => {
|
|
129
129
|
setOptions(listItems);
|
|
130
130
|
}, [listItems]);
|
|
131
|
-
return /* @__PURE__ */ jsx(SuggestInputListWrapperStyled, { showList, children: /* @__PURE__ */ jsx(SuggestInputListStyled, { role: "listbox", id: "listbox", children: options == null ? void 0 : options.filter((listItem) => filterItems(listItem.label)).sort((a, b) => {
|
|
131
|
+
return /* @__PURE__ */ jsx(SuggestInputListWrapperStyled, { showList, children: /* @__PURE__ */ jsx(SuggestInputListStyled, { role: "listbox", id: "listbox", tabIndex: -1, children: options == null ? void 0 : options.filter((listItem) => filterItems(listItem.label)).sort((a, b) => {
|
|
132
132
|
return sortItems(query, a.label, b.label);
|
|
133
133
|
}).map((listItem, index) => {
|
|
134
134
|
const isSelected = index === selectedOption;
|
|
@@ -231,6 +231,7 @@ const SuggestInput = forwardRef(({
|
|
|
231
231
|
const [confirmedValue, setConfirmedValue] = useState(initialValueState);
|
|
232
232
|
const [value, setValue] = useState(initialValueState);
|
|
233
233
|
const messageId = `text-${uid}`;
|
|
234
|
+
const inputId = `suggest-input-${uid}`;
|
|
234
235
|
const inputProps = {
|
|
235
236
|
...props,
|
|
236
237
|
type: "text",
|
|
@@ -355,8 +356,8 @@ const SuggestInput = forwardRef(({
|
|
|
355
356
|
break;
|
|
356
357
|
}
|
|
357
358
|
};
|
|
358
|
-
return /* @__PURE__ */ jsxs(SuggestInputFormElement, {
|
|
359
|
-
/* @__PURE__ */ jsx(FormHelperLabel, { label, uid }),
|
|
359
|
+
return /* @__PURE__ */ jsxs(SuggestInputFormElement, { ref: formElementRef, bottomSpacing, disabled, children: [
|
|
360
|
+
/* @__PURE__ */ jsx(FormHelperLabel, { label, uid: inputId }),
|
|
360
361
|
/* @__PURE__ */ jsxs(SuggestInputWrapperStyled, { status, bottomSpacing: inputStateError !== status && helperText || inputStateError === status && errorMessage ? spacingXs : void 0, children: [
|
|
361
362
|
/* @__PURE__ */ jsx(InputStyled, { ...inputProps, ref: inputRef, onChange: (e) => handleChange(e.target.value), onClick: () => {
|
|
362
363
|
if (disabled) return;
|
|
@@ -368,7 +369,7 @@ const SuggestInput = forwardRef(({
|
|
|
368
369
|
"aria-live": isLoading !== void 0 ? "polite" : void 0,
|
|
369
370
|
"aria-busy": isLoading ? isLoading : void 0,
|
|
370
371
|
"aria-autocomplete": "list"
|
|
371
|
-
}, disabled, placeholder: renderInlineRichTextFromOpenText(placeholder) }),
|
|
372
|
+
}, disabled, placeholder: renderInlineRichTextFromOpenText(placeholder), id: inputId }),
|
|
372
373
|
/* @__PURE__ */ jsxs(SuggestInputIconsBarStyled, { children: [
|
|
373
374
|
/* @__PURE__ */ jsx(FlexItem, { grow: "full", children: /* @__PURE__ */ jsx(SuggestInputLoadingSpinner, { size: "xs", isActive: isLoading }) }),
|
|
374
375
|
status && /* @__PURE__ */ jsx(FlexItem, { grow: "full", children: /* @__PURE__ */ jsx(FormHelperStatusIcon, { status }) }),
|