@vodafone_de/brix-components 7.1.10 → 7.1.11
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/{TableHead-C2zQ4jce.js → TableHead-ogeZ901P.js} +12 -12
- package/dist/{TableWrapper-C8SpplcL.js → TableWrapper-Og83COGw.js} +1 -1
- package/dist/components/Badge/index.js +8 -4
- package/dist/components/Badge/props.d.ts +8 -3
- package/dist/components/Body/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonAsLink/index.js +1 -1
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/DateInput/index.js +1 -0
- package/dist/components/Dialog/index.js +7 -5
- package/dist/components/DiscoveryCard/index.js +6 -6
- package/dist/components/Fieldset/index.js +1 -0
- package/dist/components/FilterGroup/index.js +1 -1
- package/dist/components/FootnoteLink/index.js +4 -52
- package/dist/components/Heading/index.js +1 -1
- package/dist/components/IconSnippet/index.js +1 -1
- package/dist/components/ImageHeader/index.js +2 -2
- package/dist/components/InlineLink/index.js +10 -11
- package/dist/components/Input/index.js +1 -0
- package/dist/components/Legend/index.js +12 -2
- package/dist/components/LoadingSpinner/index.js +1 -1
- package/dist/components/MediaText/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OpenTextFootnoteAdapter/index.js +1 -1
- package/dist/components/PickerGroup/index.js +1 -1
- package/dist/components/Price/index.js +2 -2
- package/dist/components/ProductCard/index.js +1 -1
- package/dist/components/Rating/index.js +4 -3
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +1 -1
- package/dist/components/ScreenreaderOnly/index.js +3 -14
- package/dist/components/SelectInput/index.js +1 -0
- package/dist/components/SuggestInput/index.js +17 -13
- package/dist/components/SuggestInput/props.d.ts +2 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.js +7 -7
- package/dist/components/Table/props.d.ts +1 -1
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TextList/index.js +1 -1
- package/dist/components/Textarea/index.js +1 -0
- package/dist/components/TimeInput/index.js +1 -0
- package/dist/contentful/index.js +4 -4
- package/dist/contentful/live-preview-inspector/index.js +1 -1
- package/dist/contentful/live-preview-renderer/index.js +1 -1
- package/dist/contentful/renderer/index.js +1 -1
- package/dist/{index-CifS-Z_9.js → index-Cmrx-D-0.js} +3 -3
- package/dist/{index-CHzok6W_.js → index-Cv2XdnwK.js} +5 -1
- package/dist/index-DSF1zGyd.js +24 -0
- package/dist/index-UJLGt4uV.js +54 -0
- package/dist/{index-DLvMM1Dq.js → index-tT4JzApY.js} +1 -1
- package/dist/index.js +146 -146
- package/dist/{mapContentToComponents-DLxIwtHo.js → mapContentToComponents-CbN3OD_t.js} +7 -5
- package/dist/{styled-BBO2jrba.js → styled-CIwf9Ebu.js} +20 -0
- package/package.json +1 -1
- package/dist/screenreaderOnly-Dv2v6MAr.js +0 -11
- package/dist/styled-CH1kr8ZR.js +0 -14
|
@@ -75,6 +75,13 @@ const TableCellStyled = styled.td.withConfig({
|
|
|
75
75
|
fontWeight: getFontWeight(fontWeightBold)
|
|
76
76
|
}
|
|
77
77
|
}));
|
|
78
|
+
const TableContext = createContext({});
|
|
79
|
+
const TableProvider = ({
|
|
80
|
+
columns,
|
|
81
|
+
children
|
|
82
|
+
}) => /* @__PURE__ */ jsx(TableContext.Provider, { value: {
|
|
83
|
+
columns
|
|
84
|
+
}, children });
|
|
78
85
|
const TableCell = ({
|
|
79
86
|
children,
|
|
80
87
|
align = "left",
|
|
@@ -85,13 +92,6 @@ const TableCell = ({
|
|
|
85
92
|
}) => {
|
|
86
93
|
return /* @__PURE__ */ jsx(TableCellStyled, { as, align, colSpan, scope, ...rest, children });
|
|
87
94
|
};
|
|
88
|
-
const TableContext = createContext({});
|
|
89
|
-
const TableProvider = ({
|
|
90
|
-
columns,
|
|
91
|
-
children
|
|
92
|
-
}) => /* @__PURE__ */ jsx(TableContext.Provider, { value: {
|
|
93
|
-
columns
|
|
94
|
-
}, children });
|
|
95
95
|
const TableBody = ({
|
|
96
96
|
rows,
|
|
97
97
|
sideHeader
|
|
@@ -121,11 +121,11 @@ const TableHead = ({
|
|
|
121
121
|
};
|
|
122
122
|
TableHead.displayName = "TableHead";
|
|
123
123
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
TableBody as T,
|
|
125
|
+
TableCell as a,
|
|
126
|
+
TableContext as b,
|
|
127
|
+
TableFoot as c,
|
|
128
|
+
TableHead as d,
|
|
129
129
|
TableProvider as e,
|
|
130
130
|
TableWrapperDiv as f,
|
|
131
131
|
TableStyled as g
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Children, isValidElement } from "react";
|
|
3
|
-
import { e as TableProvider, f as TableWrapperDiv, g as TableStyled } from "./TableHead-
|
|
3
|
+
import { e as TableProvider, f as TableWrapperDiv, g as TableStyled } from "./TableHead-ogeZ901P.js";
|
|
4
4
|
const allowedTypes = ["TableHead", "TableBody", "TableFoot"];
|
|
5
5
|
const TableWrapper = ({
|
|
6
6
|
children,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { F as FootnoteLink } from "../../index-UJLGt4uV.js";
|
|
3
4
|
import { b as iconNames, I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
4
5
|
import { a as iconSizeXs, b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
5
6
|
import "../../styled-B1bxWqtW.js";
|
|
6
7
|
import { s as smallSize, m as mediumSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
7
8
|
import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
8
9
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
9
|
-
import { p as primaryBadgeAppearance, s as secondaryBadgeAppearance, t as tertiaryBadgeAppearance, a as successBadgeAppearance, b as BadgeStyled } from "../../styled-
|
|
10
|
-
import { B } from "../../styled-
|
|
10
|
+
import { p as primaryBadgeAppearance, s as secondaryBadgeAppearance, t as tertiaryBadgeAppearance, a as successBadgeAppearance, b as BadgeStyled } from "../../styled-CIwf9Ebu.js";
|
|
11
|
+
import { B } from "../../styled-CIwf9Ebu.js";
|
|
11
12
|
const badgeAppearances = [primaryBadgeAppearance, secondaryBadgeAppearance, tertiaryBadgeAppearance, successBadgeAppearance];
|
|
12
13
|
const badgeSizes = [smallSize, mediumSize];
|
|
13
14
|
const validateBadgeProps = (props) => {
|
|
@@ -37,11 +38,14 @@ const isBadgeProps = (props) => {
|
|
|
37
38
|
};
|
|
38
39
|
const Badge = ({
|
|
39
40
|
children,
|
|
41
|
+
icon,
|
|
42
|
+
footnote,
|
|
40
43
|
bottomSpacing = spacingMd,
|
|
41
44
|
...props
|
|
42
45
|
}) => /* @__PURE__ */ jsxs(BadgeStyled, { ...props, bottomSpacing, children: [
|
|
43
|
-
|
|
44
|
-
renderInlineRichTextFromOpenText(children)
|
|
46
|
+
icon ? /* @__PURE__ */ jsx(IconLoader, { name: icon, size: props.size === smallSize ? iconSizeXs : iconSizeSm }) : null,
|
|
47
|
+
renderInlineRichTextFromOpenText(children),
|
|
48
|
+
footnote && /* @__PURE__ */ jsx(FootnoteLink, { ...footnote })
|
|
45
49
|
] });
|
|
46
50
|
export {
|
|
47
51
|
B as BadgeAppearanceColor,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
4
|
import { ObjectColor } from '../../foundations/types/ObjectColor';
|
|
5
5
|
import { mediumSize, smallSize } from '../../foundations/types/SizeTypes';
|
|
6
|
+
import { FootnoteLinkProps } from '../FootnoteLink';
|
|
6
7
|
export declare const primaryBadgeAppearance = "primary";
|
|
7
8
|
export declare const secondaryBadgeAppearance = "secondary";
|
|
8
9
|
export declare const tertiaryBadgeAppearance = "tertiary";
|
|
@@ -28,7 +29,11 @@ export interface BadgeProps extends PatternProps, HTMLAttributes<HTMLSpanElement
|
|
|
28
29
|
*/
|
|
29
30
|
icon?: IconName;
|
|
30
31
|
/**
|
|
31
|
-
* Children are mandatory
|
|
32
|
+
* Children are mandatory
|
|
32
33
|
*/
|
|
33
|
-
children:
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* add a footnote next the badge
|
|
37
|
+
*/
|
|
38
|
+
footnote?: FootnoteLinkProps;
|
|
34
39
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import FootnoteLink from "
|
|
3
|
+
import { F as FootnoteLink } from "../../index-UJLGt4uV.js";
|
|
4
4
|
import { c as spacingSm, a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
5
5
|
import { t as textBodyMd, a as textBodySm } from "../../TextBodySize-BcZR9mh2.js";
|
|
6
6
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
@@ -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-Cv2XdnwK.js";
|
|
4
4
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
5
5
|
import { B as ButtonStyled } from "../../styled-Dgv3RBlg.js";
|
|
6
6
|
const buttonFullWidth = "full";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { B } from "../../index-
|
|
3
|
+
import { B } from "../../index-Cv2XdnwK.js";
|
|
4
4
|
import "../../hooks/useLinkComponent/index.js";
|
|
5
5
|
import "../../filterProps-BWnAPYBL.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
@@ -18,7 +18,7 @@ import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
|
|
|
18
18
|
import { a as colorObjectBrand, g as colorObjectUnselected } from "../../ObjectColor-0RAzLGI5.js";
|
|
19
19
|
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
20
20
|
import IconButton from "../IconButton/index.js";
|
|
21
|
-
import ScreenreaderOnly from "
|
|
21
|
+
import { S as ScreenreaderOnly } from "../../index-DSF1zGyd.js";
|
|
22
22
|
const getItems = (items, loop) => {
|
|
23
23
|
const normalizedItems = [...items].map((item, index) => ({
|
|
24
24
|
...item,
|
|
@@ -83,6 +83,7 @@ const DateInput = forwardRef(({
|
|
|
83
83
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
84
84
|
] });
|
|
85
85
|
});
|
|
86
|
+
DateInput.displayName = "DateInput";
|
|
86
87
|
export {
|
|
87
88
|
DateInput as default
|
|
88
89
|
};
|
|
@@ -96,7 +96,9 @@ const Dialog = ({
|
|
|
96
96
|
size: textHeadingMd,
|
|
97
97
|
weight: fontWeightBold,
|
|
98
98
|
uid: headingId,
|
|
99
|
-
|
|
99
|
+
id: headingId,
|
|
100
|
+
bottomSpacing: spacingNone,
|
|
101
|
+
tabIndex: focusElementOnOpen ? void 0 : -1
|
|
100
102
|
};
|
|
101
103
|
const closeWithEscape = (event) => {
|
|
102
104
|
if (event.key !== "Escape") return;
|
|
@@ -141,16 +143,16 @@ const Dialog = ({
|
|
|
141
143
|
};
|
|
142
144
|
}, []);
|
|
143
145
|
useEffect(() => {
|
|
144
|
-
var _a;
|
|
146
|
+
var _a, _b;
|
|
145
147
|
if (open) {
|
|
146
148
|
updateElements(true);
|
|
147
|
-
focusElementOnOpen
|
|
149
|
+
focusElementOnOpen ? (_a = document.getElementById(focusElementOnOpen)) == null ? void 0 : _a.focus() : (_b = document.getElementById(headingId)) == null ? void 0 : _b.focus();
|
|
148
150
|
dismissable && document.addEventListener("keydown", closeWithEscape);
|
|
149
151
|
}
|
|
150
152
|
return () => {
|
|
151
|
-
var _a2,
|
|
153
|
+
var _a2, _b2;
|
|
152
154
|
updateElements(false);
|
|
153
|
-
focusElementOnClose ? (_a2 = document.getElementById(focusElementOnClose)) == null ? void 0 : _a2.focus() : (
|
|
155
|
+
focusElementOnClose ? (_a2 = document.getElementById(focusElementOnClose)) == null ? void 0 : _a2.focus() : (_b2 = invokingElement.current) == null ? void 0 : _b2.focus();
|
|
154
156
|
dismissable && document.removeEventListener("keydown", closeWithEscape);
|
|
155
157
|
};
|
|
156
158
|
}, [open]);
|
|
@@ -5,24 +5,24 @@ import Badge from "../Badge/index.js";
|
|
|
5
5
|
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
|
-
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-
|
|
9
|
-
import { R as RichText } from "../../index-
|
|
8
|
+
import { P as Price, b as priceSizeSm, f as priceAlignLeft, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-tT4JzApY.js";
|
|
9
|
+
import { R as RichText } from "../../index-Cmrx-D-0.js";
|
|
10
10
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
11
11
|
import { b as textHeadingSm } from "../../HeadingSize-CqqUYZWV.js";
|
|
12
12
|
import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
13
13
|
import { a as spacingMd, s as spacingNone, b as spacingXs, c as spacingSm } from "../../Spacing-BMQelJYr.js";
|
|
14
|
+
import "../../index-DSF1zGyd.js";
|
|
15
|
+
import "../../index-UJLGt4uV.js";
|
|
14
16
|
import "../../NotificationErrorIcon-DMnAJgPN.js";
|
|
15
17
|
import "../../styled-B1bxWqtW.js";
|
|
16
18
|
import "html-react-parser";
|
|
17
|
-
import { b as BadgeStyled } from "../../styled-
|
|
18
|
-
import "../ScreenreaderOnly/index.js";
|
|
19
|
-
import "../FootnoteLink/index.js";
|
|
19
|
+
import { b as BadgeStyled } from "../../styled-CIwf9Ebu.js";
|
|
20
20
|
import "../../styled-Dmb8-99g.js";
|
|
21
21
|
import "../../styled-Dgv3RBlg.js";
|
|
22
22
|
import { a as LinkStyled } from "../../index-ByPSWRQ0.js";
|
|
23
23
|
import "../../hooks/useLinkComponent/index.js";
|
|
24
24
|
import "../InlineLink/index.js";
|
|
25
|
-
import "../../TableHead-
|
|
25
|
+
import "../../TableHead-ogeZ901P.js";
|
|
26
26
|
import "../../styled-BYYivuzh.js";
|
|
27
27
|
import styled from "styled-components";
|
|
28
28
|
import Card from "../Card/index.js";
|
|
@@ -34,6 +34,7 @@ const Fieldset = forwardRef(({
|
|
|
34
34
|
inputStateError !== status && helperText || inputStateError === status && errorMessage ? /* @__PURE__ */ jsx(FormHelperMessage, { id: `fieldset-message-${uid}`, message: inputStateError === status ? errorMessage : helperText, status, children: status === inputStateError && /* @__PURE__ */ jsx(NotificationErrorIcon, { size: "iconSizeXs" }) }) : null
|
|
35
35
|
] });
|
|
36
36
|
});
|
|
37
|
+
Fieldset.displayName = "Fieldset";
|
|
37
38
|
export {
|
|
38
39
|
Fieldset as default
|
|
39
40
|
};
|
|
@@ -6,7 +6,7 @@ import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
|
6
6
|
import "../../styled-B1bxWqtW.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
9
|
-
import { s as screenreaderOnly } from "../../
|
|
9
|
+
import { s as screenreaderOnly } from "../../index-DSF1zGyd.js";
|
|
10
10
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
11
11
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
12
12
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
@@ -1,55 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import InlineLink from "../InlineLink/index.js";
|
|
6
|
-
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
7
|
-
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
8
|
-
import { e as spacing2Xs } from "../../Spacing-BMQelJYr.js";
|
|
9
|
-
const FootnoteLinkStyled = styled(InlineLink).withConfig({
|
|
10
|
-
displayName: "FootnoteLinkStyled",
|
|
11
|
-
componentId: "sc-ydos3j-0"
|
|
12
|
-
})({
|
|
13
|
-
verticalAlign: "top",
|
|
14
|
-
fontSize: "0.7em",
|
|
15
|
-
fontWeight: getFontWeight("bold"),
|
|
16
|
-
textDecoration: "none",
|
|
17
|
-
display: "inline-block",
|
|
18
|
-
"& a": {
|
|
19
|
-
textDecoration: "underline",
|
|
20
|
-
paddingLeft: getSpacing(spacing2Xs),
|
|
21
|
-
paddingRight: getSpacing(spacing2Xs),
|
|
22
|
-
verticalAlign: "baseline",
|
|
23
|
-
fontSize: "inherit"
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
const FootnoteLink = ({
|
|
27
|
-
uid,
|
|
28
|
-
contentUid,
|
|
29
|
-
screenReaderLabel,
|
|
30
|
-
children,
|
|
31
|
-
component: _component
|
|
32
|
-
}) => {
|
|
33
|
-
const onClick = (event) => {
|
|
34
|
-
const linkbackToContent = document.getElementById(`back-${contentUid}`);
|
|
35
|
-
if (!linkbackToContent) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
linkbackToContent.setAttribute("href", `#${uid}`);
|
|
39
|
-
const details = linkbackToContent.closest("details");
|
|
40
|
-
if (details && null === details.getAttribute("open")) {
|
|
41
|
-
event.preventDefault();
|
|
42
|
-
details.setAttribute("open", "open");
|
|
43
|
-
setTimeout(() => {
|
|
44
|
-
event.target.click();
|
|
45
|
-
}, 15);
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ jsxs(FootnoteLinkStyled, { id: uid, href: `#${contentUid}`, onClick, children: [
|
|
49
|
-
children,
|
|
50
|
-
/* @__PURE__ */ jsx(ScreenreaderOnly, { children: screenReaderLabel })
|
|
51
|
-
] });
|
|
52
|
-
};
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "../../index-DSF1zGyd.js";
|
|
4
|
+
import { F } from "../../index-UJLGt4uV.js";
|
|
53
5
|
export {
|
|
54
|
-
|
|
6
|
+
F as default
|
|
55
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import FootnoteLink from "
|
|
3
|
+
import { F as FootnoteLink } from "../../index-UJLGt4uV.js";
|
|
4
4
|
import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
5
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
import { H as HeadingStyled } from "../../styled-Dmb8-99g.js";
|
|
@@ -6,7 +6,7 @@ import { d as iconSizeLg, g as iconSize3xl, b as iconSizeSm } from "../../props-
|
|
|
6
6
|
import "../../styled-B1bxWqtW.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-Cmrx-D-0.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";
|
|
@@ -4,8 +4,8 @@ import Body from "../Body/index.js";
|
|
|
4
4
|
import Button from "../Button/index.js";
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
|
-
import { P as Price, b as priceSizeSm } from "../../index-
|
|
8
|
-
import { R as RichText } from "../../index-
|
|
7
|
+
import { P as Price, b as priceSizeSm } from "../../index-tT4JzApY.js";
|
|
8
|
+
import { R as RichText } from "../../index-Cmrx-D-0.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";
|
|
@@ -20,12 +20,14 @@ const InlineLinkStyled = styled.span.withConfig({
|
|
|
20
20
|
displayName: "InlineLinkStyled",
|
|
21
21
|
componentId: "sc-ztdjf-0"
|
|
22
22
|
})({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
"& a": {
|
|
24
|
+
cursor: "pointer",
|
|
25
|
+
color: getTextColor(colorTextNeutral),
|
|
26
|
+
textDecoration: "underline",
|
|
27
|
+
transition: `color 0.2s ${ease_in_sine}`,
|
|
28
|
+
verticalAlign: "baseline"
|
|
29
|
+
},
|
|
30
|
+
"&:focus-within a": {
|
|
29
31
|
...forcedColors({
|
|
30
32
|
outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`
|
|
31
33
|
}),
|
|
@@ -33,13 +35,10 @@ const InlineLinkStyled = styled.span.withConfig({
|
|
|
33
35
|
outline: "none",
|
|
34
36
|
...hover
|
|
35
37
|
},
|
|
36
|
-
"&:visited": {
|
|
38
|
+
"&:visited a": {
|
|
37
39
|
color: getTextColor(colorTextNeutral)
|
|
38
40
|
},
|
|
39
|
-
"&:hover": hover,
|
|
40
|
-
"& a": {
|
|
41
|
-
color: "inherit"
|
|
42
|
-
},
|
|
41
|
+
"&:hover a": hover,
|
|
43
42
|
"& a:focus-visible": {
|
|
44
43
|
outline: "none"
|
|
45
44
|
}
|
|
@@ -48,6 +48,7 @@ const Input = forwardRef(({
|
|
|
48
48
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
49
49
|
] });
|
|
50
50
|
});
|
|
51
|
+
Input.displayName = "Input";
|
|
51
52
|
export {
|
|
52
53
|
Input as default,
|
|
53
54
|
inputStateError,
|
|
@@ -3,8 +3,18 @@ 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-
|
|
7
|
-
import
|
|
6
|
+
import { R as RichText } from "../../index-Cmrx-D-0.js";
|
|
7
|
+
import styled from "styled-components";
|
|
8
|
+
const LegendStyled = styled.legend.withConfig({
|
|
9
|
+
displayName: "LegendStyled",
|
|
10
|
+
componentId: "sc-1vyrzt5-0"
|
|
11
|
+
})({
|
|
12
|
+
/**
|
|
13
|
+
* minimal hack to disable the wired position of a legend in a fieldset
|
|
14
|
+
*/
|
|
15
|
+
all: "unset",
|
|
16
|
+
width: "100%"
|
|
17
|
+
});
|
|
8
18
|
const Legend = ({
|
|
9
19
|
contents,
|
|
10
20
|
...props
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
|
-
import ScreenreaderOnly from "
|
|
5
|
+
import { S as ScreenreaderOnly } from "../../index-DSF1zGyd.js";
|
|
6
6
|
import { L as LoadingSpinnerSVGStyled, a as LoadingSpinnerPathXsStyled, b as LoadingSpinnerPathOuter3Styled, c as LoadingSpinnerPathOuter2Styled, d as LoadingSpinnerPathOuter1Styled, e as LoadingSpinnerPathCenterStyled, f as LoadingSpinnerContainerStyled, g as LoadingSpinnerContentStyled, h as LoadingSpinnerLabelStyled, i as LoadingSpinnerChildrenStyled } from "../../styled-Du4LgXoA.js";
|
|
7
7
|
const LoadingSpinnerSVG = ({
|
|
8
8
|
size = "lg",
|
|
@@ -6,7 +6,7 @@ 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 { R as RichText } from "../../index-
|
|
9
|
+
import { R as RichText } from "../../index-Cmrx-D-0.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";
|
|
@@ -9,7 +9,7 @@ import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
10
|
import "../../styled-B1bxWqtW.js";
|
|
11
11
|
import Link from "../Link/index.js";
|
|
12
|
-
import { R as RichText } from "../../index-
|
|
12
|
+
import { R as RichText } from "../../index-Cmrx-D-0.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-Cmrx-D-0.js";
|
|
9
9
|
import { b as textHeadingSm, c as textHeadingLg } from "../../HeadingSize-CqqUYZWV.js";
|
|
10
10
|
import { h as h3TagName } from "../../tags-38kBhOn6.js";
|
|
11
11
|
const getFootnoteContent = (content, footnoteContentBacklinkText) => {
|
|
@@ -15,7 +15,7 @@ import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
|
15
15
|
import Image, { aspectRatio1_1 } from "../Image/index.js";
|
|
16
16
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
17
17
|
import GridItem from "../GridItem/index.js";
|
|
18
|
-
import { s as screenreaderOnly } from "../../
|
|
18
|
+
import { s as screenreaderOnly } from "../../index-DSF1zGyd.js";
|
|
19
19
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
20
20
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
21
21
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import "
|
|
4
|
-
import { c, P, g, f, p, a, e, d, b } from "../../index-
|
|
3
|
+
import "../../index-DSF1zGyd.js";
|
|
4
|
+
import { c, P, g, f, p, a, e, d, b } from "../../index-tT4JzApY.js";
|
|
5
5
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
export {
|
|
7
7
|
c as createScreenReaderText,
|
|
@@ -9,7 +9,7 @@ import Image, { aspectRatio1_1 } from "../Image/index.js";
|
|
|
9
9
|
import { d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
10
10
|
import "../../styled-B1bxWqtW.js";
|
|
11
11
|
import Link from "../Link/index.js";
|
|
12
|
-
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-
|
|
12
|
+
import { P as Price, d as priceSizeMd, g as priceAlignCenter, a as priceOrientationVertical } from "../../index-tT4JzApY.js";
|
|
13
13
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
14
14
|
import { t as textHeadingMd } from "../../HeadingSize-CqqUYZWV.js";
|
|
15
15
|
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect, useRef } from "react";
|
|
4
|
+
import Legend from "../Legend/index.js";
|
|
4
5
|
import styled from "styled-components";
|
|
5
6
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
6
7
|
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
7
|
-
import { s as screenreaderOnly } from "../../
|
|
8
|
+
import { s as screenreaderOnly } from "../../index-DSF1zGyd.js";
|
|
8
9
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
9
10
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
10
11
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -16,7 +17,6 @@ import { c as colorBorderFocus, j as colorBorderSelected, a as colorBorderNeutra
|
|
|
16
17
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
17
18
|
import { d as colorObjectSelected } from "../../ObjectColor-0RAzLGI5.js";
|
|
18
19
|
import { b as spacingXs } from "../../Spacing-BMQelJYr.js";
|
|
19
|
-
import { L as LegendStyled } from "../../styled-CH1kr8ZR.js";
|
|
20
20
|
const StarSvg = () => {
|
|
21
21
|
return /* @__PURE__ */ jsx(StarSvgStyled, { viewBox: "0 0 26 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M1 9.95223L9.26911 8.58599L12.8296 1L16.6847 8.44108L25 9.48408L19.1147 15.449L20.6911 23.6799L13.199 19.9252L5.85987 23.9682L7.11465 15.6831L1 9.95223Z", fill: "white", stroke: "#7E7E7E", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
22
22
|
};
|
|
@@ -107,6 +107,7 @@ const Rating = ({
|
|
|
107
107
|
onUpdate,
|
|
108
108
|
className,
|
|
109
109
|
groupName,
|
|
110
|
+
legend,
|
|
110
111
|
uid,
|
|
111
112
|
component: _component,
|
|
112
113
|
...props
|
|
@@ -141,7 +142,7 @@ const Rating = ({
|
|
|
141
142
|
};
|
|
142
143
|
const ref = useRef(null);
|
|
143
144
|
return /* @__PURE__ */ jsxs(RatingFieldsetStyled, { ...props, uid, ref, children: [
|
|
144
|
-
/* @__PURE__ */ jsx(
|
|
145
|
+
legend && /* @__PURE__ */ jsx(Legend, { ...legend }),
|
|
145
146
|
/* @__PURE__ */ jsx(StarsWrapperStyled, { className, role: "radiogroup", children: [...Array(5)].map((_, index) => {
|
|
146
147
|
const starValue = index + 1;
|
|
147
148
|
const isInHoverRange = hoverValue !== null && starValue <= hoverValue;
|
|
@@ -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-Cmrx-D-0.js";
|
|
9
9
|
const getOptions = (paragraphSpacing = void 0) => {
|
|
10
10
|
const options = {
|
|
11
11
|
renderMark: {
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { s as screenreaderOnly } from "../../screenreaderOnly-Dv2v6MAr.js";
|
|
5
|
-
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
6
|
-
const ScreenReaderOnlyStyled = styled.span.withConfig({
|
|
7
|
-
shouldForwardProp: filterProps(),
|
|
8
|
-
displayName: "ScreenReaderOnlyStyled",
|
|
9
|
-
componentId: "sc-1r7az4k-0"
|
|
10
|
-
})(screenreaderOnly);
|
|
11
|
-
const ScreenreaderOnly = ({
|
|
12
|
-
children,
|
|
13
|
-
...props
|
|
14
|
-
}) => /* @__PURE__ */ jsx(ScreenReaderOnlyStyled, { ...props, children });
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import { S } from "../../index-DSF1zGyd.js";
|
|
15
4
|
export {
|
|
16
|
-
|
|
5
|
+
S as default
|
|
17
6
|
};
|
|
@@ -157,6 +157,7 @@ const SelectInput = forwardRef(({
|
|
|
157
157
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
158
158
|
] });
|
|
159
159
|
});
|
|
160
|
+
SelectInput.displayName = "SelectInput";
|
|
160
161
|
export {
|
|
161
162
|
SelectInput as default
|
|
162
163
|
};
|