@vodafone_de/brix-components 7.1.9 → 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/{BorderRadius-2LdggXbQ.js → BorderRadius-ClUShVLu.js} +2 -2
- package/dist/{HeadingSize-CfCRn3Lh.js → HeadingSize-CqqUYZWV.js} +2 -2
- package/dist/{TableHead-Cfn2iQRg.js → TableHead-ogeZ901P.js} +40 -17
- package/dist/{TableWrapper-BrnjxwJz.js → TableWrapper-Og83COGw.js} +1 -1
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/AccordionGroup/index.js +1 -1
- package/dist/components/Badge/index.js +9 -5
- package/dist/components/Badge/props.d.ts +8 -3
- package/dist/components/Body/index.js +2 -2
- package/dist/components/BottomBar/index.js +3 -3
- package/dist/components/Button/index.js +2 -2
- package/dist/components/ButtonAsLink/index.js +2 -2
- package/dist/components/ButtonGroup/index.js +2 -2
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Carousel/index.js +7 -7
- package/dist/components/Checkbox/index.js +3 -3
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/ColorSwatch/index.js +2 -2
- package/dist/components/ColorSwatchGroup/index.js +3 -3
- package/dist/components/ConsentMessage/index.js +4 -4
- package/dist/components/Container/index.js +2 -2
- package/dist/components/DateInput/index.js +3 -2
- package/dist/components/DemoBox/index.js +8 -2
- package/dist/components/Dialog/index.js +9 -7
- package/dist/components/DiscoveryCard/index.js +13 -13
- package/dist/components/DiscoveryCard/styled.d.ts +1 -1
- package/dist/components/DiscoveryCardGroup/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Fieldset/index.js +2 -1
- package/dist/components/FilterGroup/index.js +4 -4
- 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 +4 -52
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/FormHelperStatusIcon/index.js +1 -1
- package/dist/components/GoogleMap/index.js +3 -3
- package/dist/components/Grid/index.js +1 -1
- package/dist/components/GridItem/index.js +1 -1
- package/dist/components/Heading/index.js +4 -4
- package/dist/components/HifiIcon/index.js +1 -1
- package/dist/components/IconButton/index.js +4 -4
- package/dist/components/IconSnippet/index.js +3 -3
- package/dist/components/Image/index.js +39 -47
- package/dist/components/Image/props.d.ts +32 -35
- package/dist/components/Image/styled.d.ts +1 -1
- package/dist/components/ImageHeader/index.js +7 -7
- package/dist/components/ImageHeader/props.d.ts +1 -1
- package/dist/components/ImageHeader/styled.d.ts +1 -1
- package/dist/components/InfoBanner/index.js +3 -3
- package/dist/components/InlineIcon/index.js +1 -1
- package/dist/components/InlineLink/index.js +11 -12
- package/dist/components/Input/index.js +2 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Legend/index.js +12 -2
- package/dist/components/Link/index.js +2 -2
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkList/index.js +1 -1
- package/dist/components/LinkListItem/index.js +4 -4
- package/dist/components/LoadingSpinner/index.js +2 -2
- package/dist/components/LocalStyle/index.js +2 -2
- package/dist/components/MediaText/index.js +7 -7
- package/dist/components/Notification/index.js +4 -4
- package/dist/components/OpenTextFootnoteAdapter/index.js +2 -2
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/index.js +6 -6
- package/dist/components/Price/index.js +2 -2
- package/dist/components/ProductCard/index.js +4 -4
- package/dist/components/QuickLinkList/index.js +4 -4
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Rating/index.js +6 -5
- package/dist/components/ResponsiveImage/index.d.ts +5 -0
- package/dist/components/ResponsiveImage/index.js +89 -0
- package/dist/components/ResponsiveImage/props.d.ts +16 -0
- package/dist/components/ResponsiveImage/styled.d.ts +4 -0
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichtTextContentful/index.js +2 -2
- package/dist/components/ScreenreaderOnly/index.js +3 -14
- package/dist/components/SearchInput/index.js +4 -4
- package/dist/components/SelectInput/index.js +4 -3
- package/dist/components/Stepper/index.js +3 -4
- package/dist/components/SuggestInput/index.js +22 -17
- package/dist/components/SuggestInput/props.d.ts +2 -1
- package/dist/components/Switch/index.js +3 -3
- package/dist/components/TabGroup/index.js +3 -3
- 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/Table/styled.d.ts +2 -0
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TextList/index.js +2 -2
- package/dist/components/Textarea/index.js +4 -3
- package/dist/components/TimeInput/index.js +3 -2
- package/dist/components/Tray/index.js +3 -3
- package/dist/components/YoutubeVideo/index.js +1 -1
- package/dist/contentful/index.js +12 -12
- package/dist/contentful/live-preview-inspector/index.js +1 -1
- package/dist/contentful/live-preview-renderer/index.js +1 -1
- package/dist/contentful/renderer/index.js +1 -1
- package/dist/{cssVars-_wntC-Ac.js → cssVars-CR3xqdPx.js} +2 -2
- package/dist/filterProps-BWnAPYBL.js +17 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/foundations/media-query/viewport/index.js +4 -24
- package/dist/hooks/useViewport/index.js +2 -2
- package/dist/{index-tpq3BGwZ.js → index-ByPSWRQ0.js} +3 -3
- package/dist/index-Ck2bCrhT.js +32 -0
- package/dist/{index-rbdl_kyF.js → index-Cmrx-D-0.js} +5 -5
- package/dist/{index-BPweURE-.js → index-Cv2XdnwK.js} +9 -5
- package/dist/index-DSF1zGyd.js +24 -0
- package/dist/{index-DKCzYjXw.js → index-G2mpsxF7.js} +1 -1
- package/dist/index-UJLGt4uV.js +54 -0
- package/dist/{index-Vub90geg.js → index-tT4JzApY.js} +2 -2
- package/dist/index.d.ts +2 -4
- package/dist/index.js +94 -101
- package/dist/{mapContentToComponents-bL4ms1AC.js → mapContentToComponents-CbN3OD_t.js} +15 -13
- package/dist/{styled-DUsRG1Xh.js → styled-B1bxWqtW.js} +1 -1
- package/dist/{styled-CKK_LUlC.js → styled-BBG87P4U.js} +4 -4
- package/dist/{styled-B_ihuvyB.js → styled-BKWEE3dx.js} +1 -1
- package/dist/{styled-CWusLu5R.js → styled-BQGCfF-s.js} +2 -2
- package/dist/{styled-C6Wms75x.js → styled-BXtzJJFu.js} +1 -1
- package/dist/{styled-DoOOutJj.js → styled-BYYivuzh.js} +1 -1
- package/dist/{styled-CQLDmqmZ.js → styled-CE_Y6O4R.js} +2 -2
- package/dist/{styled-13a_Vk0D.js → styled-CIwf9Ebu.js} +22 -2
- package/dist/{styled-D57p2ktn.js → styled-Cz2kpbgE.js} +4 -4
- package/dist/{styled-BKmRVjNA.js → styled-DGMsuBML.js} +1 -1
- package/dist/{styled-Dk6VS_Sg.js → styled-Dgv3RBlg.js} +3 -3
- package/dist/{styled-Csv7V9ez.js → styled-Dmb8-99g.js} +1 -1
- package/dist/{styled-DCLv3G2j.js → styled-Dr-tPBqx.js} +1 -1
- package/dist/{styled-D_F38PuI.js → styled-Du4LgXoA.js} +2 -2
- package/dist/{styled-DG6HSLPJ.js → styled-O5mL4jlL.js} +1 -1
- package/dist/{styled-QLVvcMdB.js → styled-VuUKI7PE.js} +1 -1
- package/package.json +1 -1
- package/dist/breakpoint-CzBSbbY7.js +0 -9
- package/dist/components/ArtDirectedImage/index.d.ts +0 -5
- package/dist/components/ArtDirectedImage/index.js +0 -44
- package/dist/components/ArtDirectedImage/props.d.ts +0 -18
- package/dist/components/ArtDirectedImage/styled.d.ts +0 -2
- package/dist/filterProps-CPul3CC8.js +0 -17
- package/dist/hooks/useImageComponent/index.d.ts +0 -28
- package/dist/hooks/useImageComponent/index.js +0 -17
- package/dist/hooks/usePictureComponent/index.d.ts +0 -25
- package/dist/hooks/usePictureComponent/index.js +0 -27
- package/dist/screenreaderOnly-Dv2v6MAr.js +0 -11
- package/dist/styled-CH1kr8ZR.js +0 -14
|
@@ -4,13 +4,13 @@ import { useState, useRef } from "react";
|
|
|
4
4
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
5
5
|
import IconButton, { iconButtonShapeSquare } from "../IconButton/index.js";
|
|
6
6
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
7
|
-
import "../../styled-
|
|
8
|
-
import { p as primaryAppearance } from "../../styled-
|
|
7
|
+
import "../../styled-B1bxWqtW.js";
|
|
8
|
+
import { p as primaryAppearance } from "../../styled-Dgv3RBlg.js";
|
|
9
9
|
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
10
10
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
11
11
|
import { bn as CloseIcon } from "../../_5gPlusIcon-CnxmOo1u.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
13
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-BQGCfF-s.js";
|
|
14
14
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
15
15
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
16
16
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
@@ -18,7 +18,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
18
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
19
|
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
21
|
-
import { a as filterProps } from "../../filterProps-
|
|
21
|
+
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
22
22
|
const SearchInputButtonWrapperStyled = styled.div.withConfig({
|
|
23
23
|
shouldForwardProp: filterProps(),
|
|
24
24
|
displayName: "SearchInputButtonWrapperStyled",
|
|
@@ -7,7 +7,7 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
|
7
7
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
8
8
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
|
-
import "../../styled-
|
|
10
|
+
import "../../styled-B1bxWqtW.js";
|
|
11
11
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
12
12
|
import { b as spacingXs, c as spacingSm, a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
13
13
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
@@ -21,9 +21,9 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
21
21
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
22
22
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
23
23
|
import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-CYdSW9dg.js";
|
|
24
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
24
|
+
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
25
25
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
26
|
-
import { a as filterProps } from "../../filterProps-
|
|
26
|
+
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
27
27
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
28
28
|
const SelectInputWrapperStyled = styled.div.withConfig({
|
|
29
29
|
displayName: "SelectInputWrapperStyled",
|
|
@@ -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
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { u as useViewport } from "../../index-
|
|
4
|
+
import { u as useViewport } from "../../index-G2mpsxF7.js";
|
|
5
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
8
|
-
import viewport from "../../
|
|
9
|
-
import { c as breakpoint_medium_number } from "../../breakpoint-CzBSbbY7.js";
|
|
8
|
+
import { v as viewport, b as breakpoint_medium_number } from "../../index-Ck2bCrhT.js";
|
|
10
9
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
11
10
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
12
11
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -17,7 +16,7 @@ import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
|
17
16
|
import { a as colorObjectBrand, b as colorObjectInverse } from "../../ObjectColor-0RAzLGI5.js";
|
|
18
17
|
import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
19
18
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
20
|
-
import { a as filterProps } from "../../filterProps-
|
|
19
|
+
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
21
20
|
const StepperItemStyled = styled.li.withConfig({
|
|
22
21
|
shouldForwardProp: filterProps(),
|
|
23
22
|
displayName: "StepperItemStyled",
|
|
@@ -7,9 +7,9 @@ import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
|
7
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
8
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
9
9
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
10
|
-
import "../../styled-
|
|
10
|
+
import "../../styled-B1bxWqtW.js";
|
|
11
11
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
12
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-BQGCfF-s.js";
|
|
13
13
|
import { c as spacingSm, b as spacingXs, a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
14
14
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
15
15
|
import Body from "../Body/index.js";
|
|
@@ -24,6 +24,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
24
24
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
25
25
|
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
26
26
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
27
|
+
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
27
28
|
import Flex from "../Flex/index.js";
|
|
28
29
|
import LoadingSpinner from "../LoadingSpinner/index.js";
|
|
29
30
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -31,7 +32,6 @@ import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
|
31
32
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
32
33
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
33
34
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
34
|
-
import { a as filterProps } from "../../filterProps-CPul3CC8.js";
|
|
35
35
|
const calculateListMaxHeight = (numberOfVisibleItems) => {
|
|
36
36
|
return `calc((${getSpacing(spacingSm)} * 2 + ${getBodySize(textBodyMd).fontSize} * ${getBodySize(textBodyMd).lineHeight}) * ${numberOfVisibleItems})`;
|
|
37
37
|
};
|
|
@@ -72,6 +72,7 @@ const SuggestInputListStyled = styled.ul.withConfig({
|
|
|
72
72
|
maxHeight: calculateListMaxHeight(5)
|
|
73
73
|
});
|
|
74
74
|
const SuggestInputListItemStyled = styled.li.withConfig({
|
|
75
|
+
shouldForwardProp: filterProps(),
|
|
75
76
|
displayName: "SuggestInputListItemStyled",
|
|
76
77
|
componentId: "sc-5e6nao-2"
|
|
77
78
|
})({
|
|
@@ -108,7 +109,7 @@ const highlightQuery = (label, query) => {
|
|
|
108
109
|
if (query.length > 0 && index !== -1) {
|
|
109
110
|
const beforeQuery = label.slice(0, index);
|
|
110
111
|
const afterQuery = label.slice(index + lowerQuery.length);
|
|
111
|
-
const boldQuery = /* @__PURE__ */ jsx(Body, { tag: strongTagName, children: label.slice(index, index + lowerQuery.length) });
|
|
112
|
+
const boldQuery = /* @__PURE__ */ jsx(Body, { tag: strongTagName, children: label.slice(index, index + lowerQuery.length) }, label);
|
|
112
113
|
return [beforeQuery, boldQuery, afterQuery];
|
|
113
114
|
}
|
|
114
115
|
return label;
|
|
@@ -134,7 +135,7 @@ const SuggestInputList = ({
|
|
|
134
135
|
const isSelected = index === selectedOption;
|
|
135
136
|
return /* @__PURE__ */ jsx(SuggestInputListItemStyled, { ref: (el) => {
|
|
136
137
|
listItemsRef.current[index] = el;
|
|
137
|
-
}, onMouseDown: () => pickOption(listItem.
|
|
138
|
+
}, onMouseDown: () => pickOption(listItem.value), "aria-selected": isSelected ? "true" : void 0, isSelected, role: "option", id: `${uid}-item-${index}`, "data-value": listItem.value, children: highlightQuery(listItem.label, query) }, listItem.label);
|
|
138
139
|
}) }) });
|
|
139
140
|
};
|
|
140
141
|
const SuggestInputFormElementStyled = styled.div.withConfig({
|
|
@@ -208,6 +209,7 @@ const SuggestInputFormElement = forwardRef(({
|
|
|
208
209
|
}, ref) => {
|
|
209
210
|
return /* @__PURE__ */ jsx(SuggestInputFormElementStyled, { ...props, ref, children });
|
|
210
211
|
});
|
|
212
|
+
SuggestInputFormElement.displayName = "SuggestInputFormElement";
|
|
211
213
|
const SuggestInput = forwardRef(({
|
|
212
214
|
bottomSpacing = spacingMd,
|
|
213
215
|
isLoading = false,
|
|
@@ -224,6 +226,7 @@ const SuggestInput = forwardRef(({
|
|
|
224
226
|
placeholder,
|
|
225
227
|
...props
|
|
226
228
|
}, outerRef) => {
|
|
229
|
+
var _a;
|
|
227
230
|
const initialValueState = !props.value ? "" : props.value;
|
|
228
231
|
const [buttonIcon, setButtonIcon] = useState("ChevronDown");
|
|
229
232
|
const [selectedOption, setSelectedOption] = useState(-1);
|
|
@@ -257,13 +260,13 @@ const SuggestInput = forwardRef(({
|
|
|
257
260
|
setConfirmedValue(props.value);
|
|
258
261
|
}, [props.value]);
|
|
259
262
|
useEffect(() => {
|
|
260
|
-
var
|
|
263
|
+
var _a2;
|
|
261
264
|
document.addEventListener("click", onClick);
|
|
262
|
-
(
|
|
265
|
+
(_a2 = formElementRef.current) == null ? void 0 : _a2.addEventListener("keydown", onKeyDown);
|
|
263
266
|
return () => {
|
|
264
|
-
var
|
|
267
|
+
var _a3;
|
|
265
268
|
document.removeEventListener("click", onClick);
|
|
266
|
-
(
|
|
269
|
+
(_a3 = formElementRef.current) == null ? void 0 : _a3.removeEventListener("keydown", onKeyDown);
|
|
267
270
|
};
|
|
268
271
|
});
|
|
269
272
|
const closeList = () => {
|
|
@@ -299,16 +302,17 @@ const SuggestInput = forwardRef(({
|
|
|
299
302
|
onUpdate && onUpdate(userInput);
|
|
300
303
|
};
|
|
301
304
|
const pickOption = (value2) => {
|
|
302
|
-
var
|
|
303
|
-
|
|
305
|
+
var _a2;
|
|
306
|
+
const pickedListItem = listItems == null ? void 0 : listItems.find((listItem) => listItem.value === value2);
|
|
307
|
+
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
304
308
|
setShowList(false);
|
|
305
309
|
setValue(value2);
|
|
306
310
|
setConfirmedValue(value2);
|
|
307
|
-
onPick && onPick(
|
|
311
|
+
onPick && pickedListItem && onPick(pickedListItem);
|
|
308
312
|
onClose && onClose();
|
|
309
313
|
};
|
|
310
314
|
const onClick = (event) => {
|
|
311
|
-
if (formElementRef.current && !formElementRef.current.contains(event.target)) {
|
|
315
|
+
if (formElementRef.current && !formElementRef.current.contains(event.target) && showList && !formElementRef.current.contains(document.activeElement)) {
|
|
312
316
|
formElementRef.current.blur();
|
|
313
317
|
closeList();
|
|
314
318
|
}
|
|
@@ -321,7 +325,7 @@ const SuggestInput = forwardRef(({
|
|
|
321
325
|
});
|
|
322
326
|
};
|
|
323
327
|
const onKeyDown = (event) => {
|
|
324
|
-
var
|
|
328
|
+
var _a2;
|
|
325
329
|
switch (event.key) {
|
|
326
330
|
case "ArrowDown":
|
|
327
331
|
if (!showList) setShowList(true);
|
|
@@ -345,8 +349,8 @@ const SuggestInput = forwardRef(({
|
|
|
345
349
|
break;
|
|
346
350
|
case "Enter":
|
|
347
351
|
if (showList) {
|
|
348
|
-
pickOption(listItemsRef.current[selectedOption].
|
|
349
|
-
(
|
|
352
|
+
pickOption(listItemsRef.current[selectedOption].dataset.value);
|
|
353
|
+
(_a2 = inputRef.current) == null ? void 0 : _a2.setSelectionRange(value.length, value.length);
|
|
350
354
|
}
|
|
351
355
|
break;
|
|
352
356
|
case "Escape":
|
|
@@ -362,7 +366,7 @@ const SuggestInput = forwardRef(({
|
|
|
362
366
|
/* @__PURE__ */ jsx(InputStyled, { ...inputProps, ref: inputRef, onChange: (e) => handleChange(e.target.value), onClick: () => {
|
|
363
367
|
if (disabled) return;
|
|
364
368
|
setShowList(true);
|
|
365
|
-
}, role: "combobox", value, ...{
|
|
369
|
+
}, role: "combobox", value: (_a = listItems == null ? void 0 : listItems.find((listItem) => listItem.value === value)) == null ? void 0 : _a.label, ...{
|
|
366
370
|
"aria-expanded": showList,
|
|
367
371
|
"aria-controls": "listbox",
|
|
368
372
|
"aria-activedescendant": selectedOption > -1 ? `${uid}-item-${selectedOption}` : void 0,
|
|
@@ -385,6 +389,7 @@ const SuggestInput = forwardRef(({
|
|
|
385
389
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
386
390
|
] });
|
|
387
391
|
});
|
|
392
|
+
SuggestInput.displayName = "SuggestInput";
|
|
388
393
|
export {
|
|
389
394
|
SuggestInput as default
|
|
390
395
|
};
|
|
@@ -5,6 +5,7 @@ export interface SuggestInputItemProps {
|
|
|
5
5
|
icon?: IconName;
|
|
6
6
|
image?: string;
|
|
7
7
|
label: string;
|
|
8
|
+
value: string;
|
|
8
9
|
}
|
|
9
10
|
export interface SuggestInputProps extends InputSharedProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'accept' | 'alt' | 'capture' | 'checked' | 'formEncType' | 'formTarget' | 'height' | 'max' | 'min' | 'multiple' | 'size' | 'step' | 'type' | 'width' | 'readOnly'> {
|
|
10
11
|
value?: string;
|
|
@@ -19,7 +20,7 @@ export interface SuggestInputProps extends InputSharedProps, Omit<InputHTMLAttri
|
|
|
19
20
|
/**
|
|
20
21
|
* function that is called when an option from the list is picked
|
|
21
22
|
*/
|
|
22
|
-
onPick?: (value:
|
|
23
|
+
onPick?: (value: SuggestInputItemProps) => void;
|
|
23
24
|
/**
|
|
24
25
|
* function that is called when the input or the list is closed (either by clicking the close button or escape key)
|
|
25
26
|
*/
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
5
5
|
import { i as iconSize2xs } from "../../props-7dcsjRUx.js";
|
|
6
|
-
import "../../styled-
|
|
6
|
+
import "../../styled-B1bxWqtW.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
import Label from "../Label/index.js";
|
|
9
9
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -16,12 +16,12 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
16
16
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
17
17
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
18
|
import { c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
19
|
-
import {
|
|
19
|
+
import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
|
|
20
20
|
import { a as borderWidthFocus, d as borderWidthSm } from "../../BorderWidth-eg_mz82k.js";
|
|
21
21
|
import { b as colorObjectInverse, d as colorObjectSelected, g as colorObjectUnselected } from "../../ObjectColor-0RAzLGI5.js";
|
|
22
22
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
23
23
|
import { b as spacingXs, a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
24
|
-
import { a as filterProps } from "../../filterProps-
|
|
24
|
+
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
25
25
|
const getHandleIcon = (checked) => {
|
|
26
26
|
const iconName = checked ? "Tick" : "Close";
|
|
27
27
|
return /* @__PURE__ */ jsx(IconLoader, { size: iconSize2xs, name: iconName });
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
4
|
import { I as IconLoader } from "../../index-C3dW-7e_.js";
|
|
5
5
|
import { b as iconSizeSm, d as iconSizeLg } from "../../props-7dcsjRUx.js";
|
|
6
|
-
import "../../styled-
|
|
6
|
+
import "../../styled-B1bxWqtW.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
8
|
import Flex from "../Flex/index.js";
|
|
9
9
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -17,12 +17,12 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
17
17
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
18
|
import { c as colorBackgroundNeutral } from "../../BackgroundColor-DSOSZvNi.js";
|
|
19
19
|
import { f as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-CYdSW9dg.js";
|
|
20
|
-
import { d as borderRadiusSm } from "../../BorderRadius-
|
|
20
|
+
import { d as borderRadiusSm } from "../../BorderRadius-ClUShVLu.js";
|
|
21
21
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
22
22
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
23
23
|
import { a as colorObjectBrand } from "../../ObjectColor-0RAzLGI5.js";
|
|
24
24
|
import { a as spacingMd, c as spacingSm, b as spacingXs, e as spacing2Xs, d as spacingXl } from "../../Spacing-BMQelJYr.js";
|
|
25
|
-
import { a as filterProps } from "../../filterProps-
|
|
25
|
+
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
26
26
|
const iconPositionLeft = "left";
|
|
27
27
|
const iconPositionTop = "top";
|
|
28
28
|
const tabGroupWidthFull = "full";
|
|
@@ -4,5 +4,5 @@ import { default as TableFoot } from './components/TableFoot';
|
|
|
4
4
|
import { default as TableHead } from './components/TableHead';
|
|
5
5
|
import { default as TableWrapper } from './components/TableWrapper';
|
|
6
6
|
import { TableContext, TableProvider } from './TableContext';
|
|
7
|
-
export {
|
|
7
|
+
export { TableBody, TableCell, TableContext, TableFoot, TableHead, TableProvider, TableWrapper };
|
|
8
8
|
export default TableWrapper;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { T as TableWrapper } from "../../TableWrapper-
|
|
2
|
+
import { T, a, b, c, d, e } from "../../TableHead-ogeZ901P.js";
|
|
3
|
+
import { T as TableWrapper } from "../../TableWrapper-Og83COGw.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
T as TableBody,
|
|
6
|
+
a as TableCell,
|
|
7
|
+
b as TableContext,
|
|
8
|
+
c as TableFoot,
|
|
9
|
+
d as TableHead,
|
|
10
10
|
e as TableProvider,
|
|
11
11
|
TableWrapper,
|
|
12
12
|
TableWrapper as default
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const TableWrapperDiv: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
2
|
export declare const TableStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>> & string;
|
|
3
|
+
export declare const TableHeadStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
4
|
+
export declare const TableRowStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>> & string;
|
|
3
5
|
export declare const TableCellStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {
|
|
4
6
|
align: "left" | "right";
|
|
5
7
|
as: "td" | "th";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { T } from "../../index-
|
|
4
|
-
import "
|
|
3
|
+
import { T } from "../../index-tT4JzApY.js";
|
|
4
|
+
import "../../index-DSF1zGyd.js";
|
|
5
5
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
export {
|
|
7
7
|
T as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { a, T } from "../../index-
|
|
3
|
+
import { a, T } from "../../index-Cmrx-D-0.js";
|
|
4
4
|
import "../../tags-38kBhOn6.js";
|
|
5
5
|
import "../../Spacing-BMQelJYr.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
|
-
import "../../styled-
|
|
7
|
+
import "../../styled-BYYivuzh.js";
|
|
8
8
|
export {
|
|
9
9
|
a as TextListItem,
|
|
10
10
|
T as default
|
|
@@ -19,10 +19,10 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
19
19
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
20
|
import { a as colorBackgroundSubtle } from "../../BackgroundColor-DSOSZvNi.js";
|
|
21
21
|
import { a as colorBorderNeutral, c as colorBorderFocus, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-CYdSW9dg.js";
|
|
22
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
23
|
-
import {
|
|
22
|
+
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
23
|
+
import { a as textHeadingXs } from "../../HeadingSize-CqqUYZWV.js";
|
|
24
24
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
25
|
-
import { a as filterProps } from "../../filterProps-
|
|
25
|
+
import { a as filterProps } from "../../filterProps-BWnAPYBL.js";
|
|
26
26
|
const TextareaWrapperStyled = styled.div.withConfig({
|
|
27
27
|
shouldForwardProp: filterProps(),
|
|
28
28
|
displayName: "TextareaWrapperStyled",
|
|
@@ -159,6 +159,7 @@ const Textarea = forwardRef(({
|
|
|
159
159
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status, message: inputStateError === status ? errorMessage : helperText })
|
|
160
160
|
] });
|
|
161
161
|
});
|
|
162
|
+
Textarea.displayName = "Textarea";
|
|
162
163
|
export {
|
|
163
164
|
Textarea as default
|
|
164
165
|
};
|
|
@@ -6,9 +6,9 @@ import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
|
6
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
7
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
8
|
import { b as iconSizeSm } from "../../props-7dcsjRUx.js";
|
|
9
|
-
import "../../styled-
|
|
9
|
+
import "../../styled-B1bxWqtW.js";
|
|
10
10
|
import "../Input/index.js";
|
|
11
|
-
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-
|
|
11
|
+
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-BQGCfF-s.js";
|
|
12
12
|
import { a as spacingMd, b as spacingXs } from "../../Spacing-BMQelJYr.js";
|
|
13
13
|
import { bm as ClockIcon } from "../../_5gPlusIcon-CnxmOo1u.js";
|
|
14
14
|
import styled from "styled-components";
|
|
@@ -101,6 +101,7 @@ const TimeInput = forwardRef(({
|
|
|
101
101
|
/* @__PURE__ */ jsx(FormHelperMessage, { id: messageId, status: internalStatus, message: inputStateError === internalStatus ? errorMessage : helperText })
|
|
102
102
|
] });
|
|
103
103
|
});
|
|
104
|
+
TimeInput.displayName = "TimeInput";
|
|
104
105
|
export {
|
|
105
106
|
TimeInput as default
|
|
106
107
|
};
|
|
@@ -5,13 +5,13 @@ import { createPortal } from "react-dom";
|
|
|
5
5
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
7
|
import { a as fontWeightBold } from "../../FontWeight-C2pGs7aR.js";
|
|
8
|
-
import {
|
|
8
|
+
import { t as textHeadingMd } from "../../HeadingSize-CqqUYZWV.js";
|
|
9
9
|
import { a as spacingMd, s as spacingNone } from "../../Spacing-BMQelJYr.js";
|
|
10
10
|
import styled from "styled-components";
|
|
11
11
|
import Card from "../Card/index.js";
|
|
12
12
|
import Flex from "../Flex/index.js";
|
|
13
13
|
import IconButton from "../IconButton/index.js";
|
|
14
|
-
import viewport from "../../
|
|
14
|
+
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
15
15
|
import { s as shadow28 } from "../../shadow-u158mzuN.js";
|
|
16
16
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
17
17
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
@@ -19,7 +19,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
19
19
|
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-DSOSZvNi.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-eg_mz82k.js";
|
|
21
21
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
22
|
-
import { a as flexOrientationVertical } from "../../styled-
|
|
22
|
+
import { a as flexOrientationVertical } from "../../styled-O5mL4jlL.js";
|
|
23
23
|
const TrayOverlayStyled = styled("div").withConfig({
|
|
24
24
|
displayName: "TrayOverlayStyled",
|
|
25
25
|
componentId: "sc-os3mq3-0"
|
|
@@ -5,7 +5,7 @@ import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js"
|
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
7
7
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
8
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
8
|
+
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
9
9
|
import { a as spacingMd } from "../../Spacing-BMQelJYr.js";
|
|
10
10
|
const YoutubeVideoStyled = styled.div.withConfig({
|
|
11
11
|
displayName: "YoutubeVideoStyled",
|
package/dist/contentful/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "@contentful/live-preview/react";
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
4
|
+
import "../index-DSF1zGyd.js";
|
|
5
|
+
import "../index-UJLGt4uV.js";
|
|
6
6
|
import "html-react-parser";
|
|
7
7
|
import "../components/Body/index.js";
|
|
8
|
-
import "../styled-
|
|
8
|
+
import "../styled-BXtzJJFu.js";
|
|
9
9
|
import "../components/Grid/index.js";
|
|
10
10
|
import "react";
|
|
11
|
-
import "../styled-
|
|
12
|
-
import "../styled-
|
|
11
|
+
import "../styled-Cz2kpbgE.js";
|
|
12
|
+
import "../styled-Dmb8-99g.js";
|
|
13
13
|
import "../NotificationErrorIcon-DMnAJgPN.js";
|
|
14
|
-
import "../styled-
|
|
15
|
-
import "../styled-
|
|
14
|
+
import "../styled-B1bxWqtW.js";
|
|
15
|
+
import "../styled-CIwf9Ebu.js";
|
|
16
16
|
import "../hooks/useLinkComponent/index.js";
|
|
17
|
-
import "../styled-
|
|
17
|
+
import "../styled-BBG87P4U.js";
|
|
18
18
|
import "../styled-BlHKbHF4.js";
|
|
19
|
-
import "../styled-
|
|
20
|
-
import "../styled-
|
|
19
|
+
import "../styled-VuUKI7PE.js";
|
|
20
|
+
import "../styled-BKWEE3dx.js";
|
|
21
21
|
import "../components/InlineLink/index.js";
|
|
22
|
-
import "../TableHead-
|
|
23
|
-
import "../styled-
|
|
22
|
+
import "../TableHead-ogeZ901P.js";
|
|
23
|
+
import "../styled-BYYivuzh.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useContentfulLiveUpdates, ContentfulLivePreviewProvider } from "@contentful/live-preview/react";
|
|
4
|
-
import { m as mapContentToComponents } from "../../mapContentToComponents-
|
|
4
|
+
import { m as mapContentToComponents } from "../../mapContentToComponents-CbN3OD_t.js";
|
|
5
5
|
const BrixLiveRendererComponents = ({
|
|
6
6
|
data
|
|
7
7
|
}) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import LivePreviewRenderer from "../live-preview-renderer/index.js";
|
|
4
|
-
import { m as mapContentToComponents } from "../../mapContentToComponents-
|
|
4
|
+
import { m as mapContentToComponents } from "../../mapContentToComponents-CbN3OD_t.js";
|
|
5
5
|
const Renderer = ({
|
|
6
6
|
content,
|
|
7
7
|
isDraftMode
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "styled-components";
|
|
2
|
-
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "./styled-
|
|
3
|
-
import {
|
|
2
|
+
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "./styled-Du4LgXoA.js";
|
|
3
|
+
import { c as breakpoint_medium, a as breakpoint_large } from "./index-Ck2bCrhT.js";
|
|
4
4
|
const colorVodafoneRed = "colorVodafoneRed";
|
|
5
5
|
const colorVodafoneRedTint = "colorVodafoneRedTint";
|
|
6
6
|
const colorRed = "colorRed";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "badge", "border", "borderBottom", "bottomSpacing", "buttonLink", "buttons", "coloringMode", "colorSwatch", "component", "contentGridDesktopColumns", "corners", "coversFullPage", "description", "elevation", "expanded", "filterItems", "footnote", "gapSpacing", "grow", "handleOnClick", "handleOnToogle", "hasOverlay", "heading", "heightSm", "heightMd", "heightLg", "horizontalAlignment", "icon", "iconAlign", "iconName", "iconPosition", "images", "internal", "isActive", "isChecked", "isDisabled", "isFullscreen", "isInHoverRange", "isLastItemInList", "isOpen", "isOrdered", "isSelected", "isTransparentBackground", "items", "jumpToClickedItem", "justify", "justifyHorizontal", "label", "lg", "loadingSpinnerChild", "mapId", "md", "message", "more", "needsBorder", "nextAriaLabel", "notificationType", "objectFit", "objectPosition", "offset", "onUpdate", "openMultiple", "orientation", "padding", "prefix", "prefixWeight", "prevAriaLabel", "price", "productId", "promoPrice", "screenReaderInstruction", "showList", "size", "sm", "spacing", "spinnerType", "status", "stretch", "strikePrice", "suffix", "tag", "textContent", "uid", "variant", "verticalPadding", "viewportHeight", "weight", "width"];
|
|
2
|
+
const filterProps = (propsNotPassToDom = []) => {
|
|
3
|
+
const shouldForwardProp = (prop) => {
|
|
4
|
+
if ("string" !== typeof prop) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return ![...propsNotPassToDom, ...propsNotPassToDomDefault].includes(prop);
|
|
8
|
+
};
|
|
9
|
+
return shouldForwardProp;
|
|
10
|
+
};
|
|
11
|
+
const filterPropsForUnstyledComponent = (props) => {
|
|
12
|
+
return Object.fromEntries(Object.entries(props).filter(([key]) => !propsNotPassToDomDefault.includes(key)));
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
filterProps as a,
|
|
16
|
+
filterPropsForUnstyledComponent as f
|
|
17
|
+
};
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const mediumMediaQuery = `screen and (min-width: ${breakpoint_medium})`;
|
|
3
|
-
const largeMediaQuery = `screen and (min-width: ${breakpoint_large})`;
|
|
4
|
-
const md = (stylesInViewport) => {
|
|
5
|
-
return {
|
|
6
|
-
[`@media ${mediumMediaQuery}`]: {
|
|
7
|
-
...stylesInViewport
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
const lg = (stylesInViewport) => {
|
|
12
|
-
return {
|
|
13
|
-
[`@media ${largeMediaQuery}`]: {
|
|
14
|
-
...stylesInViewport
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
const viewport = {
|
|
19
|
-
md,
|
|
20
|
-
lg
|
|
21
|
-
};
|
|
1
|
+
import { v, l, m } from "../../../index-Ck2bCrhT.js";
|
|
22
2
|
export {
|
|
23
|
-
|
|
24
|
-
largeMediaQuery,
|
|
25
|
-
mediumMediaQuery
|
|
3
|
+
v as default,
|
|
4
|
+
l as largeMediaQuery,
|
|
5
|
+
m as mediumMediaQuery
|
|
26
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import "../../
|
|
3
|
-
import { u } from "../../index-
|
|
2
|
+
import "../../index-Ck2bCrhT.js";
|
|
3
|
+
import { u } from "../../index-G2mpsxF7.js";
|
|
4
4
|
import "../useMediaQuery/index.js";
|
|
5
5
|
export {
|
|
6
6
|
u as useViewport
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { a as ButtonIconStyled } from "./styled-
|
|
2
|
+
import { a as ButtonIconStyled } from "./styled-Dgv3RBlg.js";
|
|
3
3
|
import { b as iconSizeSm } from "./props-7dcsjRUx.js";
|
|
4
|
-
import "./styled-
|
|
4
|
+
import "./styled-B1bxWqtW.js";
|
|
5
5
|
import { r as renderInlineRichTextFromOpenText } from "./renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
|
|
8
8
|
import { s as spacingNone, b as spacingXs, a as spacingMd } from "./Spacing-BMQelJYr.js";
|
|
9
|
-
import { a as filterProps } from "./filterProps-
|
|
9
|
+
import { a as filterProps } from "./filterProps-BWnAPYBL.js";
|
|
10
10
|
import forcedColors from "./foundations/media-query/forcedColors/index.js";
|
|
11
11
|
import { getBodySize } from "./foundations/token/getBodySize/index.js";
|
|
12
12
|
import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
|