@vodafone_de/brix-components 5.0.0 → 6.0.0
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/{BackgroundColor-JObp_2xA.js → BackgroundColor-e0N9tdDR.js} +5 -5
- package/dist/components/Body/index.js +3 -1
- package/dist/components/BottomBar/index.js +1 -1
- package/dist/components/Card/index.js +2 -2
- package/dist/components/Carousel/index.js +2 -2
- package/dist/components/Container/index.js +1 -1
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/Dialog/index.js +2 -2
- package/dist/components/FilterGroup/index.js +12 -12
- package/dist/components/FilterGroup/props.d.ts +9 -2
- package/dist/components/GoogleMap/index.js +4 -1
- package/dist/components/GridItem/index.js +1 -1
- package/dist/components/IconSnippet/index.js +6 -4
- package/dist/components/IconSnippet/props.d.ts +4 -3
- package/dist/components/ImageHeader/index.js +1 -1
- package/dist/components/Input/index.js +2 -2
- package/dist/components/Input/styled.d.ts +2 -2
- package/dist/components/LinkListItem/index.js +18 -7
- package/dist/components/LinkListItem/styled.d.ts +1 -0
- package/dist/components/LoadingSpinner/index.js +1 -1
- package/dist/components/Notification/index.js +2 -2
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/index.js +1 -1
- package/dist/components/SearchInput/index.js +1 -1
- package/dist/components/SearchInput/styled.d.ts +1 -1
- package/dist/components/SelectInput/index.js +1 -1
- package/dist/components/SuggestInput/index.js +2 -2
- package/dist/components/SuggestInput/styled.d.ts +1 -1
- package/dist/components/Textarea/index.js +9 -1
- package/dist/components/Tray/index.js +1 -1
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/hooks/useMediaQuery/index.d.ts +1 -1
- package/dist/hooks/useMediaQuery/index.js +2 -2
- package/dist/index.js +3 -2
- package/dist/{styled-zTRfFBiH.js → styled-03irSJOQ.js} +8 -2
- package/dist/{styled-WguHd6ON.js → styled-CYugcGtx.js} +1 -1
- package/dist/{styled-ChvU5bUu.js → styled-Cqp2oSjW.js} +1 -1
- package/dist/{styled-DZo6MwrF.js → styled-DMUiOi24.js} +1 -1
- package/package.json +1 -1
|
@@ -5,10 +5,10 @@ const colorBackgroundSubtle = "colorBackgroundSubtle";
|
|
|
5
5
|
const colorBackgroundOverlay = "colorBackgroundOverlay";
|
|
6
6
|
const colorBackgroundOverlayStatic = "colorBackgroundOverlayStatic";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
colorBackgroundSubtle as a,
|
|
9
|
+
colorBackgroundOverlay as b,
|
|
10
10
|
colorBackgroundNeutral as c,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
colorBackgroundOverlayStatic as d,
|
|
12
|
+
colorBackgroundBrandGradient as e,
|
|
13
|
+
colorBackgroundBrand as f
|
|
14
14
|
};
|
|
@@ -7,7 +7,9 @@ import styled from "styled-components";
|
|
|
7
7
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
8
8
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
9
9
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
10
|
+
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
10
11
|
import { f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
|
|
12
|
+
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
11
13
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
12
14
|
const BodyStyled = styled.p.withConfig({
|
|
13
15
|
shouldForwardProp: filterProps(),
|
|
@@ -15,7 +17,7 @@ const BodyStyled = styled.p.withConfig({
|
|
|
15
17
|
componentId: "sc-1n7n7pv-0"
|
|
16
18
|
})({
|
|
17
19
|
outline: "none",
|
|
18
|
-
color:
|
|
20
|
+
color: getTextColor(colorTextNeutral),
|
|
19
21
|
verticalAlign: "baseline"
|
|
20
22
|
}, ({
|
|
21
23
|
size = textBodyMd
|
|
@@ -4,7 +4,7 @@ import { useRef, useState, useEffect } from "react";
|
|
|
4
4
|
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
5
5
|
import Container from "../Container/index.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import { a as CardStyled } from "../../styled-
|
|
7
|
+
import { a as CardStyled } from "../../styled-CYugcGtx.js";
|
|
8
8
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
9
9
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
10
10
|
import { a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { d as divTagName } from "../../tags-DI6H1biK.js";
|
|
4
|
-
import { a as CardStyled } from "../../styled-
|
|
5
|
-
import { C } from "../../styled-
|
|
4
|
+
import { a as CardStyled } from "../../styled-CYugcGtx.js";
|
|
5
|
+
import { C } from "../../styled-CYugcGtx.js";
|
|
6
6
|
const Card = ({
|
|
7
7
|
children,
|
|
8
8
|
className,
|
|
@@ -6,9 +6,9 @@ import { useFocusWithin } from "../../hooks/useFocusWithin/index.js";
|
|
|
6
6
|
import { l as liTagName, u as ulTagName } from "../../tags-DI6H1biK.js";
|
|
7
7
|
import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
8
8
|
import styled from "styled-components";
|
|
9
|
-
import { a as CardStyled } from "../../styled-
|
|
9
|
+
import { a as CardStyled } from "../../styled-CYugcGtx.js";
|
|
10
10
|
import { G as GridStyled } from "../../styled-ZpQohvyx.js";
|
|
11
|
-
import { G as GridItemStyled } from "../../styled-
|
|
11
|
+
import { G as GridItemStyled } from "../../styled-Cqp2oSjW.js";
|
|
12
12
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
13
13
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
14
14
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -11,7 +11,7 @@ import { e as borderWidthDivider } from "../../BorderWidth-DfOlyKK7.js";
|
|
|
11
11
|
import { d as spacingXl, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
12
12
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
13
13
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
14
|
-
import {
|
|
14
|
+
import { f as colorBackgroundBrand, e as colorBackgroundBrandGradient, a as colorBackgroundSubtle, c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
15
15
|
const ContainerAppearanceColor = {
|
|
16
16
|
primary: colorBackgroundNeutral,
|
|
17
17
|
secondary: colorBackgroundSubtle,
|
|
@@ -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 { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
10
|
-
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-
|
|
10
|
+
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-03irSJOQ.js";
|
|
11
11
|
import { s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
|
|
12
12
|
import styled from "styled-components";
|
|
13
13
|
const CalendarMonthIconStyled = styled(CalendarMonthIcon).withConfig({
|
|
@@ -65,7 +65,7 @@ const DateInput = forwardRef(({
|
|
|
65
65
|
};
|
|
66
66
|
return /* @__PURE__ */ jsxs(FormElement, { className: props.className, bottomSpacing, disabled: props.disabled, children: [
|
|
67
67
|
/* @__PURE__ */ jsx(FormHelperLabel, { label, uid }),
|
|
68
|
-
/* @__PURE__ */ jsxs(InputWrapperStyled, { status, bottomSpacing: inputStateError !== status && helperText || inputStateError === status && errorMessage ? spacingXs : void 0, children: [
|
|
68
|
+
/* @__PURE__ */ jsxs(InputWrapperStyled, { status, readOnly: props.readOnly, bottomSpacing: inputStateError !== status && helperText || inputStateError === status && errorMessage ? spacingXs : void 0, children: [
|
|
69
69
|
/* @__PURE__ */ jsx(DateInputStyled, { ...inputProps, ref: innerRef, type: "date", onBlur: (event) => {
|
|
70
70
|
if (props.onBlur) {
|
|
71
71
|
props.onBlur(event);
|
|
@@ -13,7 +13,7 @@ import IconButton from "../IconButton/index.js";
|
|
|
13
13
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
14
14
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
15
15
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
16
|
-
import {
|
|
16
|
+
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-e0N9tdDR.js";
|
|
17
17
|
import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
18
18
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
19
19
|
import Flex from "../Flex/index.js";
|
|
@@ -22,7 +22,7 @@ const DialogOverlayStyled = styled.div.withConfig({
|
|
|
22
22
|
displayName: "DialogOverlayStyled",
|
|
23
23
|
componentId: "sc-z6nqyy-0"
|
|
24
24
|
})({
|
|
25
|
-
position: "
|
|
25
|
+
position: "fixed",
|
|
26
26
|
top: 0,
|
|
27
27
|
left: 0,
|
|
28
28
|
padding: `0 ${getSpacing(spacingMd)}`,
|
|
@@ -15,7 +15,7 @@ import { getHoverColor } from "../../foundations/token/getHoverColor/index.js";
|
|
|
15
15
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
16
16
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
17
17
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
18
|
-
import { c as colorBackgroundNeutral } from "../../BackgroundColor-
|
|
18
|
+
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
19
19
|
import { b as colorBorderUnselected, i as colorBorderSelected, c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
20
20
|
import { c as borderRadiusFull } from "../../BorderRadius-ClUShVLu.js";
|
|
21
21
|
import { b as borderWidthUnselected, a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
@@ -109,14 +109,14 @@ const FilterInputStyled = styled.input.withConfig({
|
|
|
109
109
|
const FilterGroup = ({
|
|
110
110
|
component: _component,
|
|
111
111
|
uid,
|
|
112
|
-
|
|
112
|
+
filters,
|
|
113
113
|
onUpdate,
|
|
114
114
|
...props
|
|
115
115
|
}) => {
|
|
116
116
|
const getValuesFromCheckedItems = () => {
|
|
117
|
-
return
|
|
118
|
-
if (
|
|
119
|
-
valuesArr.push(
|
|
117
|
+
return filters.reduce((valuesArr, filter) => {
|
|
118
|
+
if (filter.checked) {
|
|
119
|
+
valuesArr.push(filter.value);
|
|
120
120
|
}
|
|
121
121
|
return valuesArr;
|
|
122
122
|
}, []);
|
|
@@ -130,16 +130,16 @@ const FilterGroup = ({
|
|
|
130
130
|
setCheckedValues(updateChecked);
|
|
131
131
|
onUpdate(updateChecked);
|
|
132
132
|
};
|
|
133
|
-
const getFilters =
|
|
133
|
+
const getFilters = filters.map(({
|
|
134
134
|
children,
|
|
135
|
-
...
|
|
135
|
+
...filter
|
|
136
136
|
}) => {
|
|
137
|
-
const isChecked =
|
|
138
|
-
return /* @__PURE__ */ jsxs(FilterStyled, { ...
|
|
139
|
-
|
|
140
|
-
/* @__PURE__ */ jsx(FilterInputStyled, { ...
|
|
137
|
+
const isChecked = filter.value ? checkedValues.includes(filter.value) : false;
|
|
138
|
+
return /* @__PURE__ */ jsxs(FilterStyled, { ...filter.optionalLabelProps, checked: isChecked, children: [
|
|
139
|
+
filter.icon ? /* @__PURE__ */ jsx(FilterIconStyled, { name: filter.icon, size: iconSizeSm }) : null,
|
|
140
|
+
/* @__PURE__ */ jsx(FilterInputStyled, { ...filter, type: "checkbox", defaultChecked: isChecked, onChange: handleChange }),
|
|
141
141
|
children
|
|
142
|
-
] },
|
|
142
|
+
] }, filter.value);
|
|
143
143
|
});
|
|
144
144
|
return /* @__PURE__ */ jsx(Fieldset, { ...props, uid: `fieldset-${uid}`, children: /* @__PURE__ */ jsx(FilterGroupStyled, { children: getFilters }) });
|
|
145
145
|
};
|
|
@@ -5,13 +5,20 @@ export interface FilterProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
5
5
|
/**
|
|
6
6
|
* Specify a system icon to be displayed to the left of content.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
icon?: IconName;
|
|
9
9
|
/**
|
|
10
10
|
* Content of pill
|
|
11
11
|
*/
|
|
12
12
|
children: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Value of the Filter
|
|
15
|
+
*/
|
|
13
16
|
value: string;
|
|
14
17
|
optionalLabelProps?: HTMLAttributes<HTMLLabelElement>;
|
|
18
|
+
/**
|
|
19
|
+
* Defines whether the Filter should be checked on first render
|
|
20
|
+
*/
|
|
21
|
+
checked?: boolean;
|
|
15
22
|
}
|
|
16
23
|
export interface FilterGroupProps extends FieldsetSharedProps {
|
|
17
24
|
/**
|
|
@@ -21,7 +28,7 @@ export interface FilterGroupProps extends FieldsetSharedProps {
|
|
|
21
28
|
/**
|
|
22
29
|
* Array of PillProps
|
|
23
30
|
*/
|
|
24
|
-
|
|
31
|
+
filters: FilterProps[];
|
|
25
32
|
/**
|
|
26
33
|
* function that is called on every update. The only parameter of this function is an array with the value of each selected pill.
|
|
27
34
|
*/
|
|
@@ -11,7 +11,7 @@ import { B as ButtonStyled, t as tertiaryAppearance } from "../../styled-CuLmB_m
|
|
|
11
11
|
import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
12
12
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
13
13
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { b as colorBackgroundOverlay } from "../../BackgroundColor-e0N9tdDR.js";
|
|
15
15
|
import Heading, { headingAlignCenter } from "../Heading/index.js";
|
|
16
16
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
17
17
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
@@ -178,6 +178,9 @@ const GoogleMap = ({
|
|
|
178
178
|
...props
|
|
179
179
|
}) => {
|
|
180
180
|
const consent = useThirdPartyConsent();
|
|
181
|
+
const foo = "log";
|
|
182
|
+
const bar = console;
|
|
183
|
+
bar[foo]("Debug storybook & vite", apiKey);
|
|
181
184
|
const [map, setMap] = useState(null);
|
|
182
185
|
children = children || defaultBasicMap;
|
|
183
186
|
useEffect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { d as divTagName } from "../../tags-DI6H1biK.js";
|
|
4
|
-
import { G as GridItemStyled } from "../../styled-
|
|
4
|
+
import { G as GridItemStyled } from "../../styled-Cqp2oSjW.js";
|
|
5
5
|
const GridItem = ({
|
|
6
6
|
sm = 12,
|
|
7
7
|
tag = divTagName,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { df as IconLoader,
|
|
3
|
+
import { df as IconLoader, it as iconSizeLg, iq as iconSize3xl, iv as iconSizeSm } from "../../index-Cbojl4_Q.js";
|
|
4
4
|
import Body from "../Body/index.js";
|
|
5
5
|
import Heading from "../Heading/index.js";
|
|
6
6
|
import InlineLink from "../InlineLink/index.js";
|
|
@@ -12,8 +12,9 @@ import styled from "styled-components";
|
|
|
12
12
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
13
13
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
14
14
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
15
|
-
const iconSnippetSizeSmall = "
|
|
16
|
-
const iconSnippetSizeLarge = "
|
|
15
|
+
const iconSnippetSizeSmall = "sm";
|
|
16
|
+
const iconSnippetSizeLarge = "lg";
|
|
17
|
+
const iconSnippetSize3Xl = "3xl";
|
|
17
18
|
const iconSnippetPositionLeft = "left";
|
|
18
19
|
const iconSnippetPositionCenter = "center";
|
|
19
20
|
const iconSnippetAlignTop = "top";
|
|
@@ -97,7 +98,7 @@ const IconSnippet = ({
|
|
|
97
98
|
...props
|
|
98
99
|
}) => {
|
|
99
100
|
return /* @__PURE__ */ jsxs(IconSnippetStyled, { ...props, iconPosition, iconAlign, as: tag, children: [
|
|
100
|
-
/* @__PURE__ */ jsx(IconLoaderStyled, { size: size ===
|
|
101
|
+
/* @__PURE__ */ jsx(IconLoaderStyled, { size: size === iconSnippetSizeLarge ? iconSizeLg : size === iconSnippetSize3Xl ? iconSize3xl : iconSizeSm, name: props.icon }),
|
|
101
102
|
/* @__PURE__ */ jsx(IconSnippetContentStyled, { as: tag, iconPosition, children: getContents(contents) })
|
|
102
103
|
] });
|
|
103
104
|
};
|
|
@@ -107,6 +108,7 @@ export {
|
|
|
107
108
|
iconSnippetAlignTop,
|
|
108
109
|
iconSnippetPositionCenter,
|
|
109
110
|
iconSnippetPositionLeft,
|
|
111
|
+
iconSnippetSize3Xl,
|
|
110
112
|
iconSnippetSizeLarge,
|
|
111
113
|
iconSnippetSizeSmall
|
|
112
114
|
};
|
|
@@ -8,9 +8,10 @@ import { LinkAsButtonProps } from '../LinkAsButton';
|
|
|
8
8
|
import { RichTextProps } from '../RichText';
|
|
9
9
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
10
10
|
import { divTagName, spanTagName } from '../../foundations/tags';
|
|
11
|
-
export declare const iconSnippetSizeSmall = "
|
|
12
|
-
export declare const iconSnippetSizeLarge = "
|
|
13
|
-
export
|
|
11
|
+
export declare const iconSnippetSizeSmall = "sm";
|
|
12
|
+
export declare const iconSnippetSizeLarge = "lg";
|
|
13
|
+
export declare const iconSnippetSize3Xl = "3xl";
|
|
14
|
+
export type IconSnippetSize = typeof iconSnippetSizeSmall | typeof iconSnippetSizeLarge | typeof iconSnippetSize3Xl;
|
|
14
15
|
export declare const iconSnippetPositionLeft = "left";
|
|
15
16
|
export declare const iconSnippetPositionCenter = "center";
|
|
16
17
|
export type IconSnippetPosition = typeof iconSnippetPositionLeft | typeof iconSnippetPositionCenter;
|
|
@@ -19,7 +19,7 @@ import { v as viewport } from "../../index-Ck2bCrhT.js";
|
|
|
19
19
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
20
20
|
import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
21
21
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
22
|
-
import {
|
|
22
|
+
import { b as colorBackgroundOverlay } from "../../BackgroundColor-e0N9tdDR.js";
|
|
23
23
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
24
24
|
import { a as flexOrientationVertical } from "../../styled-B0YKfXTz.js";
|
|
25
25
|
const imageHeaderVariantFull = "full";
|
|
@@ -9,7 +9,7 @@ import { s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
|
|
|
9
9
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
10
10
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
11
11
|
import { i } from "../../props-DDpgcryb.js";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
12
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-03irSJOQ.js";
|
|
13
13
|
const Input = forwardRef(({
|
|
14
14
|
uid,
|
|
15
15
|
status,
|
|
@@ -41,7 +41,7 @@ const Input = forwardRef(({
|
|
|
41
41
|
};
|
|
42
42
|
return /* @__PURE__ */ jsxs(FormElement, { bottomSpacing, disabled: props.disabled, children: [
|
|
43
43
|
/* @__PURE__ */ jsx(FormHelperLabel, { label, uid }),
|
|
44
|
-
/* @__PURE__ */ jsxs(InputWrapperStyled, { status, bottomSpacing: inputStateError !== status && helperText || inputStateError === status && errorMessage ? spacingXs : void 0, children: [
|
|
44
|
+
/* @__PURE__ */ jsxs(InputWrapperStyled, { status, readOnly: props.readOnly, bottomSpacing: inputStateError !== status && helperText || inputStateError === status && errorMessage ? spacingXs : void 0, children: [
|
|
45
45
|
/* @__PURE__ */ jsx(InputStyled, { ...inputProps, placeholder: renderInlineRichTextFromOpenText(placeholder), ref, onChange }),
|
|
46
46
|
/* @__PURE__ */ jsx(FormHelperStatusIcon, { status })
|
|
47
47
|
] }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
-
import { InputStatus } from './props';
|
|
4
|
-
export declare const InputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PatternProps & {
|
|
3
|
+
import { InputProps, InputStatus } from './props';
|
|
4
|
+
export declare const InputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PatternProps & Pick<InputProps, "readOnly"> & {
|
|
5
5
|
status?: InputStatus;
|
|
6
6
|
}>> & string;
|
|
7
7
|
export declare const InputStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, InputHTMLAttributes<HTMLInputElement>>> & string;
|
|
@@ -5,7 +5,6 @@ import { s as spanTagName } from "../../tags-DI6H1biK.js";
|
|
|
5
5
|
import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
6
6
|
import { s as smallSize } from "../../SizeTypes-Ck_RdzIf.js";
|
|
7
7
|
import { B as Badge } from "../../index-ZHkR70j3.js";
|
|
8
|
-
import Body from "../Body/index.js";
|
|
9
8
|
import styled from "styled-components";
|
|
10
9
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
11
10
|
import { e as ease_in_sine } from "../../easing-Dm-pO8SY.js";
|
|
@@ -25,9 +24,10 @@ import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
|
25
24
|
import { b as colorIconBrand } from "../../IconColor-CtC9WUgr.js";
|
|
26
25
|
import { a as colorTextNeutral, f as colorTextBrand } from "../../TextColor-DsntmDNw.js";
|
|
27
26
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
27
|
+
import Body from "../Body/index.js";
|
|
28
28
|
import Card from "../Card/index.js";
|
|
29
29
|
import Icon from "../Icon/index.js";
|
|
30
|
-
import { C as CardAppearanceColor } from "../../styled-
|
|
30
|
+
import { C as CardAppearanceColor } from "../../styled-CYugcGtx.js";
|
|
31
31
|
const linkListItemVariantVertical = "vertical";
|
|
32
32
|
const linkListItemVariantHorizontal = "horizontal";
|
|
33
33
|
const focusStyles = {
|
|
@@ -219,7 +219,10 @@ const LinkListItemContentStyled = styled.span.withConfig({
|
|
|
219
219
|
display: "flex",
|
|
220
220
|
gap: getSpacing(spacingXs),
|
|
221
221
|
flexDirection: "row",
|
|
222
|
-
width: "100%"
|
|
222
|
+
width: "100%",
|
|
223
|
+
"& > *": {
|
|
224
|
+
flexShrink: 0
|
|
225
|
+
}
|
|
223
226
|
}, ({
|
|
224
227
|
orientation = linkListItemVariantHorizontal
|
|
225
228
|
}) => {
|
|
@@ -235,7 +238,8 @@ const LinkListItemVerticalContentStyled = styled.span.withConfig({
|
|
|
235
238
|
flexGrow: 1,
|
|
236
239
|
gap: getSpacing(spacingXs),
|
|
237
240
|
display: "flex",
|
|
238
|
-
flexDirection: "column"
|
|
241
|
+
flexDirection: "column",
|
|
242
|
+
flexShrink: 1
|
|
239
243
|
});
|
|
240
244
|
const LinkListItemLabelWrapperStyled = styled.span.withConfig({
|
|
241
245
|
shouldForwardProp: filterProps(),
|
|
@@ -245,7 +249,8 @@ const LinkListItemLabelWrapperStyled = styled.span.withConfig({
|
|
|
245
249
|
display: "flex",
|
|
246
250
|
flexDirection: "column",
|
|
247
251
|
flexGrow: 1,
|
|
248
|
-
alignItems: "flex-start"
|
|
252
|
+
alignItems: "flex-start",
|
|
253
|
+
flexShrink: 1
|
|
249
254
|
});
|
|
250
255
|
const LinkListLabelStyled = styled.span.withConfig({
|
|
251
256
|
shouldForwardProp: filterProps(),
|
|
@@ -254,9 +259,15 @@ const LinkListLabelStyled = styled.span.withConfig({
|
|
|
254
259
|
})(getHeadingSize(textHeadingXs), {
|
|
255
260
|
textAlign: "left"
|
|
256
261
|
});
|
|
262
|
+
const LinkListSuffixStyled = styled(Body).withConfig({
|
|
263
|
+
displayName: "LinkListSuffixStyled",
|
|
264
|
+
componentId: "sc-1dmfu9f-9"
|
|
265
|
+
})({
|
|
266
|
+
color: "inherit"
|
|
267
|
+
});
|
|
257
268
|
const LinkListItemChevronStyled = styled(Icon).withConfig({
|
|
258
269
|
displayName: "LinkListItemChevronStyled",
|
|
259
|
-
componentId: "sc-1dmfu9f-
|
|
270
|
+
componentId: "sc-1dmfu9f-10"
|
|
260
271
|
})({
|
|
261
272
|
flexGrow: 0,
|
|
262
273
|
flexShrink: 0,
|
|
@@ -277,7 +288,7 @@ const LinkListItem = (props) => {
|
|
|
277
288
|
} = props;
|
|
278
289
|
const LinkListIcon = icon ? /* @__PURE__ */ jsx(IconLoader, { name: icon, size: iconSizeMd }) : void 0;
|
|
279
290
|
const LinkListLabel = /* @__PURE__ */ jsx(LinkListLabelStyled, { children: label });
|
|
280
|
-
const LinkListSuffix = suffix ? /* @__PURE__ */ jsx(
|
|
291
|
+
const LinkListSuffix = suffix ? /* @__PURE__ */ jsx(LinkListSuffixStyled, { tag: spanTagName, bottomSpacing: spacingNone, children: suffix }) : void 0;
|
|
281
292
|
const LinkListBadge = badge ? /* @__PURE__ */ jsx(Badge, { ...badge, size: smallSize, bottomSpacing: spacingNone }) : void 0;
|
|
282
293
|
const LinkListChevron = /* @__PURE__ */ jsx(LinkListItemChevronStyled, { name: "ChevronRight", size: iconSizeMd });
|
|
283
294
|
const Content = /* @__PURE__ */ jsx(LinkListItemContentWrapperStyled, { orientation, children: orientation === linkListItemVariantHorizontal ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -8,4 +8,5 @@ export declare const LinkListItemContentStyled: import('styled-components/dist/t
|
|
|
8
8
|
export declare const LinkListItemVerticalContentStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
9
9
|
export declare const LinkListItemLabelWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
10
10
|
export declare const LinkListLabelStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
11
|
+
export declare const LinkListSuffixStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Body').BodyProps, never>> & string & Omit<import('react').FC<import('../Body').BodyProps>, keyof import('react').Component<any, {}, any>>;
|
|
11
12
|
export declare const LinkListItemChevronStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('@vfde-react/inline-icon-library').IconLoaderProps | import('../HifiIcon').HifiIconProps | import('../Icon').IconProps, import('styled-components/dist/types').BaseObject>> & string & Omit<import('react').FC<import('@vfde-react/inline-icon-library').IconLoaderProps | import('../HifiIcon').HifiIconProps | import('../Icon').IconProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { S as ScreenreaderOnly } from "../../index-DQhtQZ85.js";
|
|
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-
|
|
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-DMUiOi24.js";
|
|
7
7
|
const LoadingSpinnerSVG = ({
|
|
8
8
|
size = "lg",
|
|
9
9
|
...props
|
|
@@ -20,7 +20,7 @@ import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js"
|
|
|
20
20
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
21
21
|
import { getIconColor } from "../../foundations/token/getIconColor/index.js";
|
|
22
22
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
23
|
-
import { c as colorBackgroundNeutral } from "../../BackgroundColor-
|
|
23
|
+
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
24
24
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
25
25
|
import { g as borderWidthMd } from "../../BorderWidth-DfOlyKK7.js";
|
|
26
26
|
import { d as colorIconInverse } from "../../IconColor-CtC9WUgr.js";
|
|
@@ -167,7 +167,7 @@ const Notification = ({
|
|
|
167
167
|
} = notificationStatusVariants[status];
|
|
168
168
|
const label = getNotificationLabel(status, contents);
|
|
169
169
|
const notificationId = `notification-${uid}`;
|
|
170
|
-
return /* @__PURE__ */ jsxs(NotificationStyled, {
|
|
170
|
+
return /* @__PURE__ */ jsxs(NotificationStyled, { role: "group", ...props, status, "aria-live": [notificationStatusError, notificationStatusWarning].indexOf(status) === -1 ? "polite" : "assertive", "aria-atomic": false, "aria-label": label, id: notificationId, children: [
|
|
171
171
|
/* @__PURE__ */ jsx(NotificationSidebarStyled, { status, children: /* @__PURE__ */ jsx(IconLoader, { name: icon, size: iconSizeSm }) }),
|
|
172
172
|
/* @__PURE__ */ jsx(NotificationWrapperStyled, { children: getContents(contents) })
|
|
173
173
|
] });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-e0N9tdDR.js";
|
|
6
6
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
7
7
|
const overlayAppearancePrimary = "primary";
|
|
8
8
|
const overlayAppearanceSecondary = "secondary";
|
|
@@ -24,7 +24,7 @@ import { getHoverColor } from "../../foundations/token/getHoverColor/index.js";
|
|
|
24
24
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
25
25
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
26
26
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
27
|
-
import { c as colorBackgroundNeutral } from "../../BackgroundColor-
|
|
27
|
+
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
28
28
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
29
29
|
import { a as borderWidthFocus, d as borderWidthSelected } from "../../BorderWidth-DfOlyKK7.js";
|
|
30
30
|
import { b as fontWeightRegular, f as fontWeightBold } from "../../FontWeight-CR22KTex.js";
|
|
@@ -9,7 +9,7 @@ import { p as primaryAppearance } from "../../styled-CuLmB_mg.js";
|
|
|
9
9
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
10
10
|
import Form from "../Form/index.js";
|
|
11
11
|
import styled from "styled-components";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
12
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-03irSJOQ.js";
|
|
13
13
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
14
14
|
import { f as filterProps } from "../../filterProps-Cewck8OH.js";
|
|
15
15
|
const SearchInputButtonWrapperStyled = styled.div.withConfig({
|
|
@@ -2,7 +2,7 @@ import { InlineIconProps } from '@vfde-react/inline-icon-library';
|
|
|
2
2
|
import { IconButtonProps } from '../IconButton/props';
|
|
3
3
|
import { SearchInputProps } from './props';
|
|
4
4
|
export declare const SearchInputButtonWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
-
export declare const SearchInputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "status" | keyof import('../..').PatternProps> & import('../..').PatternProps & {
|
|
5
|
+
export declare const SearchInputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "status" | keyof import('../..').PatternProps | "readOnly"> & import('../..').PatternProps & Pick<import('../Input').InputProps, "readOnly"> & {
|
|
6
6
|
status?: import('../Input').InputStatus;
|
|
7
7
|
}, Pick<SearchInputProps, "bottomSpacing" | "value">>> & string;
|
|
8
8
|
export declare const SearchInputIconButtonStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<IconButtonProps, IconButtonProps>> & string & Omit<import('react').FC<IconButtonProps>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -17,7 +17,7 @@ import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.j
|
|
|
17
17
|
import { getHeadingSize } from "../../foundations/token/getHeadingSize/index.js";
|
|
18
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
19
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
|
-
import { c as colorBackgroundNeutral } from "../../BackgroundColor-
|
|
20
|
+
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
21
21
|
import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-BummoQ1-.js";
|
|
22
22
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
23
23
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
@@ -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 { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
10
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
10
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-03irSJOQ.js";
|
|
11
11
|
import { c as spacingSm, a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
12
12
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
13
13
|
import Body from "../Body/index.js";
|
|
@@ -19,7 +19,7 @@ import { getBodySize } from "../../foundations/token/getBodySize/index.js";
|
|
|
19
19
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
20
20
|
import { getHoverColor } from "../../foundations/token/getHoverColor/index.js";
|
|
21
21
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
22
|
-
import { c as colorBackgroundNeutral } from "../../BackgroundColor-
|
|
22
|
+
import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
23
23
|
import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
24
24
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
25
25
|
import Flex from "../Flex/index.js";
|
|
@@ -3,7 +3,7 @@ import { SuggestInputProps } from './props';
|
|
|
3
3
|
import { FormElementProps } from '../FormElement/props.ts';
|
|
4
4
|
import { InputStatus } from '../Input/props';
|
|
5
5
|
export declare const SuggestInputFormElementStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormElementProps>> & string;
|
|
6
|
-
export declare const SuggestInputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "status" | keyof PatternProps> & PatternProps & {
|
|
6
|
+
export declare const SuggestInputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "status" | keyof PatternProps | "readOnly"> & PatternProps & Pick<import('../Input/props').InputProps, "readOnly"> & {
|
|
7
7
|
status?: InputStatus;
|
|
8
8
|
}, PatternProps & {
|
|
9
9
|
status?: InputStatus;
|
|
@@ -10,12 +10,14 @@ import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTex
|
|
|
10
10
|
import styled from "styled-components";
|
|
11
11
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
12
12
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
13
|
+
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
13
14
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
14
15
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
15
16
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
16
17
|
import { getHeadingSize } from "../../foundations/token/getHeadingSize/index.js";
|
|
17
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
18
19
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
|
+
import { a as colorBackgroundSubtle } from "../../BackgroundColor-e0N9tdDR.js";
|
|
19
21
|
import { a as colorBorderNeutral, c as colorBorderFocus, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-BummoQ1-.js";
|
|
20
22
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
21
23
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
@@ -98,7 +100,13 @@ const TextareaStyled = styled.textarea.withConfig({
|
|
|
98
100
|
return {
|
|
99
101
|
resize: isResizable ? "vertical" : "none"
|
|
100
102
|
};
|
|
101
|
-
},
|
|
103
|
+
}, ({
|
|
104
|
+
readOnly
|
|
105
|
+
}) => ({
|
|
106
|
+
...readOnly && {
|
|
107
|
+
backgroundColor: getBackgroundColor(colorBackgroundSubtle)
|
|
108
|
+
}
|
|
109
|
+
}), getHeadingSize(textHeadingXs));
|
|
102
110
|
const TextareaStatusIcon = styled(FormHelperStatusIcon).withConfig({
|
|
103
111
|
displayName: "TextareaStatusIcon",
|
|
104
112
|
componentId: "sc-b8i4y6-2"
|
|
@@ -16,7 +16,7 @@ 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";
|
|
18
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
|
-
import {
|
|
19
|
+
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-e0N9tdDR.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
21
21
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
22
22
|
import { a as flexOrientationVertical } from "../../styled-B0YKfXTz.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { css, createGlobalStyle } from "styled-components";
|
|
3
|
-
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "../../styled-
|
|
3
|
+
import { l as loadingSpinnerOverlayCssVar, j as loadingSpinnerOverlays } from "../../styled-DMUiOi24.js";
|
|
4
4
|
import { c as breakpoint_medium, a as breakpoint_large } from "../../index-Ck2bCrhT.js";
|
|
5
5
|
const colorVodafoneRed = "colorVodafoneRed";
|
|
6
6
|
const colorVodafoneRedTint = "colorVodafoneRedTint";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useMediaQuery: (query: string) => boolean[];
|
|
1
|
+
export declare const useMediaQuery: (query: string, initialState?: boolean) => boolean[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
|
-
const useMediaQuery = (query) => {
|
|
3
|
-
const [mediaQueryMatches, setMediaQueryMatches] = useState(
|
|
2
|
+
const useMediaQuery = (query, initialState = false) => {
|
|
3
|
+
const [mediaQueryMatches, setMediaQueryMatches] = useState(initialState);
|
|
4
4
|
useEffect(() => {
|
|
5
5
|
const mediaQuery = window.matchMedia(query);
|
|
6
6
|
const handleMediaQueryChange = (event) => {
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import { default as default22 } from "./components/InlineLink/index.js";
|
|
|
26
26
|
import { default as default23, imageHeaderPositionLeft, imageHeaderPositionRight, imageHeaderVariantFull, imageHeaderVariantSplit } from "./components/ImageHeader/index.js";
|
|
27
27
|
import { default as default24, aspectRatio16_9, aspectRatio1_1, aspectRatio21_9, aspectRatio32_9, aspectRatio3_4, aspectRatio48_9, horizontalAlignmentCenter, horizontalAlignmentLeft, horizontalAlignmentRight, objectFitContain, objectFitCover, objectFitNone, objectPositionCenter, objectPositionLeftBottom, objectPositionLeftCenter, objectPositionLeftTop, objectPositionRightBottom, objectPositionRightCenter, objectPositionRightTop } from "./components/Image/index.js";
|
|
28
28
|
import { default as default25 } from "./components/IconSnippetList/index.js";
|
|
29
|
-
import { default as default26, iconSnippetAlignCenter, iconSnippetAlignTop, iconSnippetPositionCenter, iconSnippetPositionLeft, iconSnippetSizeLarge, iconSnippetSizeSmall } from "./components/IconSnippet/index.js";
|
|
29
|
+
import { default as default26, iconSnippetAlignCenter, iconSnippetAlignTop, iconSnippetPositionCenter, iconSnippetPositionLeft, iconSnippetSize3Xl, iconSnippetSizeLarge, iconSnippetSizeSmall } from "./components/IconSnippet/index.js";
|
|
30
30
|
import { default as default27, iconButtonShapeCircle, iconButtonShapeSquare } from "./components/IconButton/index.js";
|
|
31
31
|
import { default as default28, iconSize5xl, iconSize6xl, iconSize7xl, iconSize8xl, iconSize9xl } from "./components/Icon/index.js";
|
|
32
32
|
import { default as default29 } from "./components/HifiIcon/index.js";
|
|
@@ -95,7 +95,7 @@ import { useForcedColors } from "./hooks/useForcedColors/index.js";
|
|
|
95
95
|
import { useFocusWithin } from "./hooks/useFocusWithin/index.js";
|
|
96
96
|
import { a as a4, i as i2 } from "./props-DDpgcryb.js";
|
|
97
97
|
import { e as e2, d as d2, c as c2, b as b2, f as f2, a as a5 } from "./styled-B0YKfXTz.js";
|
|
98
|
-
import { C } from "./styled-
|
|
98
|
+
import { C } from "./styled-CYugcGtx.js";
|
|
99
99
|
export {
|
|
100
100
|
default64 as Accordion,
|
|
101
101
|
default63 as AccordionGroup,
|
|
@@ -237,6 +237,7 @@ export {
|
|
|
237
237
|
iconSnippetAlignTop,
|
|
238
238
|
iconSnippetPositionCenter,
|
|
239
239
|
iconSnippetPositionLeft,
|
|
240
|
+
iconSnippetSize3Xl,
|
|
240
241
|
iconSnippetSizeLarge,
|
|
241
242
|
iconSnippetSizeSmall,
|
|
242
243
|
imageHeaderPositionLeft,
|
|
@@ -8,7 +8,7 @@ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js"
|
|
|
8
8
|
import { getHeadingSize } from "./foundations/token/getHeadingSize/index.js";
|
|
9
9
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
10
10
|
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
11
|
-
import { c as colorBackgroundNeutral } from "./BackgroundColor-
|
|
11
|
+
import { c as colorBackgroundNeutral, a as colorBackgroundSubtle } from "./BackgroundColor-e0N9tdDR.js";
|
|
12
12
|
import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "./BorderColor-BummoQ1-.js";
|
|
13
13
|
import { b as borderRadiusMd } from "./BorderRadius-ClUShVLu.js";
|
|
14
14
|
import { b as borderWidthUnselected } from "./BorderWidth-DfOlyKK7.js";
|
|
@@ -16,7 +16,7 @@ import { c as spacingSm, a as spacingXs } from "./Spacing-D0HQH9YJ.js";
|
|
|
16
16
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
17
17
|
import { f as filterProps } from "./filterProps-Cewck8OH.js";
|
|
18
18
|
const InputWrapperStyled = styled.div.withConfig({
|
|
19
|
-
shouldForwardProp: filterProps(),
|
|
19
|
+
shouldForwardProp: filterProps(["readOnly"]),
|
|
20
20
|
displayName: "InputWrapperStyled",
|
|
21
21
|
componentId: "sc-1lx2jz-0"
|
|
22
22
|
})({
|
|
@@ -32,6 +32,12 @@ const InputWrapperStyled = styled.div.withConfig({
|
|
|
32
32
|
borderRadius: getBorderRadius(borderRadiusMd),
|
|
33
33
|
backgroundColor: getBackgroundColor(colorBackgroundNeutral)
|
|
34
34
|
}, ({
|
|
35
|
+
readOnly
|
|
36
|
+
}) => ({
|
|
37
|
+
...readOnly && {
|
|
38
|
+
backgroundColor: getBackgroundColor(colorBackgroundSubtle)
|
|
39
|
+
}
|
|
40
|
+
}), ({
|
|
35
41
|
status
|
|
36
42
|
}) => {
|
|
37
43
|
if (!status) {
|
|
@@ -11,7 +11,7 @@ import { s as spacingMd } from "./Spacing-D0HQH9YJ.js";
|
|
|
11
11
|
import { a as colorTextNeutral } from "./TextColor-DsntmDNw.js";
|
|
12
12
|
import { f as filterProps } from "./filterProps-Cewck8OH.js";
|
|
13
13
|
import { g as getCssVar } from "./getCssVar-BP6T9pFM.js";
|
|
14
|
-
import {
|
|
14
|
+
import { e as colorBackgroundBrandGradient, c as colorBackgroundNeutral } from "./BackgroundColor-e0N9tdDR.js";
|
|
15
15
|
const CardAppearanceColor = {
|
|
16
16
|
primary: colorBackgroundNeutral,
|
|
17
17
|
secondary: colorBackgroundBrandGradient
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import { a as CardStyled } from "./styled-
|
|
2
|
+
import { a as CardStyled } from "./styled-CYugcGtx.js";
|
|
3
3
|
import { D as DemoBoxStyled } from "./styled-ODPFCF1a.js";
|
|
4
4
|
import { v as viewport } from "./index-Ck2bCrhT.js";
|
|
5
5
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
@@ -9,7 +9,7 @@ import { getHeadingSize } from "./foundations/token/getHeadingSize/index.js";
|
|
|
9
9
|
import { getObjectColor } from "./foundations/token/getObjectColor/index.js";
|
|
10
10
|
import { getOpacity } from "./foundations/token/getOpacity/index.js";
|
|
11
11
|
import { getSpacing } from "./foundations/token/getSpacing/index.js";
|
|
12
|
-
import {
|
|
12
|
+
import { b as colorBackgroundOverlay } from "./BackgroundColor-e0N9tdDR.js";
|
|
13
13
|
import { o as opacityOverlay } from "./Opacity-smkGiwsf.js";
|
|
14
14
|
import { b as spacingNone } from "./Spacing-D0HQH9YJ.js";
|
|
15
15
|
import { l as largeSize } from "./SizeTypes-Ck_RdzIf.js";
|