@vodafone_de/brix-components 17.1.2 → 18.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/{BorderRadius-Co-IV3fn.js → BorderRadius-0jhn76gB.js} +2 -2
- package/dist/{BorderWidth-OZWeXaq_.js → BorderWidth-CwrNKc0Q.js} +2 -2
- package/dist/ButtonAppearanceHelper-3qIbHGWJ.js +102 -0
- package/dist/CornerStyle-n77nckhh.js +7 -0
- package/dist/{colorUtils-CfSj2Iqa.js → colorUtils-c9PiZEci.js} +1 -1
- package/dist/components/Accordion/index.js +8 -4
- package/dist/components/Accordion/validate.d.ts +2 -2
- package/dist/components/AccordionGroup/validate.d.ts +2 -2
- package/dist/components/ArtDirectedImage/index.js +3 -3
- package/dist/components/ArtDirectedImage/validate.d.ts +0 -9
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Badge/validate.d.ts +1 -1
- package/dist/components/BottomBar/index.js +5 -5
- package/dist/components/Button/ButtonAppearanceHelper.test.d.ts +1 -0
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/validate.d.ts +1 -1
- package/dist/components/ButtonAsLink/index.js +1 -1
- package/dist/components/ButtonGroup/validate.d.ts +1 -1
- package/dist/components/Calendar/components/Footer/helpers/getFooterText.test.d.ts +1 -0
- package/dist/components/Calendar/index.js +66 -62
- package/dist/components/Callout/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Carousel/index.js +1 -1
- package/dist/components/Checkbox/index.js +2 -2
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/ColorSwatch/index.js +2 -2
- package/dist/components/ConsentMessage/index.js +1 -1
- package/dist/components/Container/index.js +1 -1
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/Dialog/index.js +8 -3
- package/dist/components/Dialog/validate.d.ts +1 -1
- package/dist/components/DiscoveryCard/index.js +5 -5
- package/dist/components/DiscoveryCard/validate.d.ts +3 -12
- package/dist/components/DiscoveryCardGroup/index.js +2 -2
- package/dist/components/DiscoveryCardGroup/validate.d.ts +9 -36
- package/dist/components/EnergySnippet/validate.d.ts +1 -1
- package/dist/components/FeatureCardGroup/components/FeatureCard/index.js +9 -8
- package/dist/components/FeatureCardGroup/components/FeatureCard/validate.d.ts +2 -11
- package/dist/components/FeatureCardGroup/index.js +1 -1
- package/dist/components/FeatureCardGroup/validate.d.ts +6 -15
- package/dist/components/Fieldset/index.js +8 -3
- package/dist/components/Fieldset/validate.d.ts +3 -3
- package/dist/components/FilterGroup/index.js +2 -2
- package/dist/components/FilterGroup/validate.d.ts +5 -5
- package/dist/components/Footnote/index.js +1 -1
- package/dist/components/FootnoteContent/index.js +1 -1
- package/dist/components/FootnoteSection/index.js +1 -1
- package/dist/components/FootnoteSection/validate.d.ts +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/validate.d.ts +4 -4
- package/dist/components/GoogleMap/index.js +31 -19
- package/dist/components/GoogleMap/props.d.ts +13 -1
- package/dist/components/GoogleMap/styled.d.ts +1 -1
- package/dist/components/GoogleMap/validate.d.ts +12 -3
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/GridItem/index.js +2 -2
- package/dist/components/IconButton/index.js +4 -4
- package/dist/components/IconButton/validate.d.ts +1 -1
- package/dist/components/IconLoader/validate.d.ts +1 -1
- package/dist/components/IconSnippet/index.js +14 -24
- package/dist/components/IconSnippet/validate.d.ts +3 -3
- package/dist/components/IconSnippetList/index.js +1 -1
- package/dist/components/IconSnippetList/validate.d.ts +3 -3
- package/dist/components/Image/index.js +4 -52
- package/dist/components/Image/validate.d.ts +0 -9
- package/dist/components/ImageHeader/index.js +25 -19
- package/dist/components/ImageHeader/styled.d.ts +17 -0
- package/dist/components/ImageHeader/validate.d.ts +3 -12
- package/dist/components/InfoBanner/index.js +1 -1
- package/dist/components/InfoBanner/validate.d.ts +2 -2
- package/dist/components/InlineLink/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/validate.d.ts +1 -0
- package/dist/components/Legend/index.d.ts +1 -1
- package/dist/components/Legend/index.js +54 -68
- package/dist/components/Legend/validate.d.ts +6 -6
- package/dist/components/Link/index.js +1 -1
- package/dist/components/Link/validate.d.ts +1 -1
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkAsButton/validate.d.ts +1 -1
- package/dist/components/LinkList/index.js +25 -15
- package/dist/components/LinkList/styled.d.ts +1 -1
- package/dist/components/LinkListItem/index.js +15 -342
- package/dist/components/LinkListItem/props.d.ts +0 -4
- package/dist/components/LinkListItem/styled.d.ts +1 -1
- package/dist/components/LinkListItem/validate.d.ts +2 -3
- package/dist/components/LoadingSpinner/index.js +11 -10
- package/dist/components/LocalStyle/index.js +1 -1
- package/dist/components/MediaText/index.js +2 -2
- package/dist/components/MediaText/validate.d.ts +1 -10
- package/dist/components/Notification/index.js +20 -34
- package/dist/components/Notification/validate.d.ts +3 -3
- package/dist/components/OpenTextFootnoteAdapter/index.js +3 -3
- package/dist/components/PasswordInput/index.js +2 -2
- package/dist/components/PickerGroup/components/Picker/index.js +2 -2
- package/dist/components/PickerGroup/components/Picker/validate.d.ts +1 -1
- package/dist/components/PickerGroup/index.js +1 -1
- package/dist/components/PickerGroup/validate.d.ts +1 -1
- package/dist/components/Price/index.d.ts +0 -1
- package/dist/components/Price/index.js +61 -8
- package/dist/components/Price/props.d.ts +6 -6
- package/dist/components/ProductCard/index.js +4 -4
- package/dist/components/ProductCard/validate.d.ts +3 -12
- package/dist/components/QuickLinkList/components/QuickLink/index.js +2 -2
- package/dist/components/QuickLinkList/index.js +1 -1
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/Rating/index.js +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/RichText/parseHtml.d.ts +2 -1
- package/dist/components/RichTextContentful/getOptions.d.ts +6 -2
- package/dist/components/RichTextContentful/helpers/listHelpers.d.ts +1 -0
- package/dist/components/RichTextContentful/index.js +1 -1
- package/dist/components/RichTextContentful/props.d.ts +2 -1
- package/dist/components/RichTextContentful/styled.d.ts +5 -1
- package/dist/components/SearchInput/index.js +2 -2
- package/dist/components/SelectInput/index.js +1 -1
- package/dist/components/SuggestInput/components/SuggestInputList/index.d.ts +1 -1
- package/dist/components/SuggestInput/components/SuggestInputList/props.d.ts +0 -2
- package/dist/components/SuggestInput/index.js +20 -22
- package/dist/components/Switch/index.js +2 -2
- package/dist/components/TabGroup/index.js +11 -4
- package/dist/components/TabGroup/validate.d.ts +2 -2
- package/dist/components/Table/index.js +2 -2
- package/dist/components/TabularPrice/index.js +3 -2
- package/dist/components/TextList/components/TextListItem/index.js +1 -1
- package/dist/components/TextList/index.js +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/TimeInput/index.js +2 -2
- package/dist/components/ToggleButtonProvider/validate.d.ts +8 -8
- package/dist/components/Tray/index.d.ts +1 -1
- package/dist/components/Tray/index.js +20 -14
- package/dist/components/Tray/validate.d.ts +1 -1
- package/dist/components/UtilityLink/index.js +1 -18
- package/dist/components/Video/componentName.d.ts +1 -0
- package/dist/components/Video/i18n.d.ts +42 -0
- package/dist/components/Video/index.d.ts +5 -0
- package/dist/components/Video/index.js +902 -0
- package/dist/components/Video/props.d.ts +52 -0
- package/dist/components/Video/styled.d.ts +2 -0
- package/dist/components/Video/validate.d.ts +84 -0
- package/dist/components/Video/validate.test.d.ts +1 -0
- package/dist/components/YouTubeVideo/index.js +1 -1
- package/dist/contentful/props/index.d.ts +2 -0
- package/dist/contentful/registry/ContentFulComponentName.d.ts +1 -1
- package/dist/contentful/registry/SupportedBrixProps.d.ts +2 -2
- package/dist/contentful/registry/index.js +1 -1
- package/dist/contentful/validation/index.d.ts +1 -0
- package/dist/contentful/validation/index.js +38 -9
- package/dist/{cssVars-DIZd9rHN.js → cssVars-DKs5LlTN.js} +112 -108
- package/dist/foundations/BrixComponentProps/componentNames.d.ts +1 -1
- package/dist/foundations/BrixComponentProps/validate.d.ts +3 -0
- package/dist/foundations/GlobalStyle/index.js +1 -1
- package/dist/foundations/colorMaps.d.ts +18 -0
- package/dist/foundations/cssVars.d.ts +1 -7
- package/dist/foundations/cssVars.test.d.ts +1 -0
- package/dist/foundations/layout/index.js +23 -6
- package/dist/foundations/typographyAndIconSizeCssVars.d.ts +7 -0
- package/dist/getSizesFromGridConfig-C-GBct4J.js +28 -0
- package/dist/{index-XoIBkRyI.js → index-BLp5wi_X.js} +199 -171
- package/dist/{index-B7QEcUdq.js → index-BXTweg2t.js} +26 -52
- package/dist/{index-BR6u6rvI.js → index-CW-UuGll.js} +2 -2
- package/dist/{index-iCvdBgcJ.js → index-C_6tWuWh.js} +1 -1
- package/dist/{index-C9M-9a7m.js → index-Cms5ie2I.js} +4 -4
- package/dist/{index-DQ_p1dIc.js → index-CpuHeI4h.js} +2 -2
- package/dist/{index-BIa9NKUU.js → index-DqdKVD9N.js} +3 -3
- package/dist/{index-B0jIyAgf.js → index-E0RMtc9X.js} +1 -1
- package/dist/{index-CWByESA7.js → index-h88pZ6zH.js} +2 -2
- package/dist/{index-Dn3We7oE.js → index-p9ZTAIzJ.js} +3 -3
- package/dist/index-xzvddlgp.js +345 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +227 -222
- package/dist/opentext/index.js +1 -1
- package/dist/opentext/map/googleMap.d.ts +2 -1
- package/dist/{props-BPxy0GPb.js → props-Bod9bL2v.js} +4 -4
- package/dist/{props-P3bM0HEk.js → props-E4PNCuS6.js} +1 -4
- package/dist/props-n71pckjd.js +5 -0
- package/dist/{styled-DRNdxc1V.js → styled-BJ9cE7xy.js} +2 -2
- package/dist/styled-BrSdmb0C.js +52 -0
- package/dist/{styled-bzTYGIm_.js → styled-DDY0xAl_.js} +1 -1
- package/dist/{styled-DhKlciPC.js → styled-Dfbxuq_p.js} +1 -1
- package/dist/styled-R9Zq1ahD.js +21 -0
- package/dist/{styled-DYgC4qQm.js → styled-ldBsCamo.js} +2 -2
- package/dist/{youTubeVideo-BOudL3DM.js → youTubeVideo-CsdIB_iu.js} +30 -56
- package/package.json +2 -1
- package/dist/ButtonAppearanceHelper-BQUk7S3X.js +0 -92
- package/dist/components/AccordionGroup/stories/scrollToViewFixedHeaderStoryObj.d.ts +0 -2
- package/dist/components/Carousel/stories/productCards.d.ts +0 -8
- package/dist/components/Flex/stories/alignCenterArgs.d.ts +0 -2
- package/dist/components/Flex/stories/alignEndArgs.d.ts +0 -2
- package/dist/components/Flex/stories/alignStartArgs.d.ts +0 -2
- package/dist/components/Flex/stories/autoAndFullItemArgs.d.ts +0 -2
- package/dist/components/Flex/stories/autoAndFullItemVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/fullAndAutoItemArgs.d.ts +0 -2
- package/dist/components/Flex/stories/fullAndAutoItemVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyBetweenArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyBetweenVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyCenterArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyCenterVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyEndArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyEndVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyStartArgs.d.ts +0 -2
- package/dist/components/Flex/stories/justifyStartVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/twoFullItemsArgs.d.ts +0 -2
- package/dist/components/Flex/stories/twoFullItemsVerticalArgs.d.ts +0 -2
- package/dist/components/Flex/stories/xlGapSpacingArgs.d.ts +0 -2
- package/dist/components/Grid/stories/alignGridCenterArgs.d.ts +0 -2
- package/dist/components/Grid/stories/alignGridItemArgs.d.ts +0 -2
- package/dist/components/Grid/stories/alignGridRightArgs.d.ts +0 -2
- package/dist/components/Grid/stories/grid12Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid222222Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid3333Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid363Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid444Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid64Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid66Args.d.ts +0 -2
- package/dist/components/Grid/stories/grid75Args.d.ts +0 -2
- package/dist/components/Grid/stories/nestingArgs.d.ts +0 -2
- package/dist/components/Grid/stories/noSpacingArgs.d.ts +0 -2
- package/dist/components/Grid/stories/offsetArgs.d.ts +0 -2
- package/dist/components/Grid/stories/responsiveArgs.d.ts +0 -2
- package/dist/components/Grid/stories/stretchArgs.d.ts +0 -2
- package/dist/components/Grid/stories/tagOrderedListArgs.d.ts +0 -2
- package/dist/components/Grid/stories/tagUnorderedListArgs.d.ts +0 -2
- package/dist/getSizesFromGridConfig-BqDW79mt.js +0 -48
|
@@ -3,8 +3,8 @@ const borderRadiusSm = "borderRadiusSm";
|
|
|
3
3
|
const borderRadiusMd = "borderRadiusMd";
|
|
4
4
|
const borderRadiusFull = "borderRadiusFull";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
borderRadiusNone as a,
|
|
7
7
|
borderRadiusMd as b,
|
|
8
|
-
|
|
8
|
+
borderRadiusSm as c,
|
|
9
9
|
borderRadiusFull as d
|
|
10
10
|
};
|
|
@@ -6,8 +6,8 @@ const borderWidthFocus = "Focus";
|
|
|
6
6
|
const borderWidthSm = "Sm";
|
|
7
7
|
const borderWidthMd = "Md";
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
borderWidthUnselected as a,
|
|
10
|
+
borderWidthFocus as b,
|
|
11
11
|
borderWidthSelected as c,
|
|
12
12
|
borderWidthSm as d,
|
|
13
13
|
borderWidthDivider as e,
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import forcedColors from "./foundations/media-query/forcedColors/index.js";
|
|
2
|
+
import { e as ease_in_sine } from "./easing-Dm-pO8SY.js";
|
|
3
|
+
import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
|
|
4
|
+
import { getBorderWidth } from "./foundations/token/getBorderWidth/index.js";
|
|
5
|
+
import { getHoverColor } from "./foundations/token/getHoverColor/index.js";
|
|
6
|
+
import { getObjectColor } from "./foundations/token/getObjectColor/index.js";
|
|
7
|
+
import { getPressColor } from "./foundations/token/getPressColor/index.js";
|
|
8
|
+
import { c as colorBorderFocus } from "./BorderColor-BACbvI20.js";
|
|
9
|
+
import { b as borderWidthFocus, c as borderWidthSelected } from "./BorderWidth-CwrNKc0Q.js";
|
|
10
|
+
import { a as colorObjectNeutral, d as colorObjectBrand, e as colorObjectInverse } from "./ObjectColor-CSHEae46.js";
|
|
11
|
+
import { g as getForegroundColor } from "./colorUtils-c9PiZEci.js";
|
|
12
|
+
const ButtonAppearanceColor = {
|
|
13
|
+
primary: colorObjectBrand,
|
|
14
|
+
secondary: colorObjectNeutral,
|
|
15
|
+
tertiary: colorObjectNeutral
|
|
16
|
+
};
|
|
17
|
+
const getButtonAppearanceColors = (appearance) => ({
|
|
18
|
+
background: getObjectColor(ButtonAppearanceColor[appearance]),
|
|
19
|
+
color: getForegroundColor(ButtonAppearanceColor[appearance]),
|
|
20
|
+
hoverBackgroundColor: getHoverColor(ButtonAppearanceColor[appearance]),
|
|
21
|
+
pressedBackgroundColor: getPressColor(ButtonAppearanceColor[appearance]),
|
|
22
|
+
focusColor: getBorderColor(colorBorderFocus)
|
|
23
|
+
});
|
|
24
|
+
const buildBaseButtonStyle = ({
|
|
25
|
+
background,
|
|
26
|
+
color,
|
|
27
|
+
hoverBackgroundColor,
|
|
28
|
+
pressedBackgroundColor,
|
|
29
|
+
focusColor
|
|
30
|
+
}) => ({
|
|
31
|
+
...forcedColors({
|
|
32
|
+
background: "ButtonFace",
|
|
33
|
+
color: "ButtonText"
|
|
34
|
+
}),
|
|
35
|
+
border: "unset",
|
|
36
|
+
background,
|
|
37
|
+
color,
|
|
38
|
+
transitionProperty: "background, color, box-shadow",
|
|
39
|
+
transitionDuration: "0.2s",
|
|
40
|
+
transitionTimingFunction: ease_in_sine,
|
|
41
|
+
/* No visible box-shadow. as transition endpoint for focus */
|
|
42
|
+
boxShadow: `inset transparent 0px 0px 0px ${hoverBackgroundColor}`,
|
|
43
|
+
"&:visited": {
|
|
44
|
+
...forcedColors({
|
|
45
|
+
background: "ButtonFace",
|
|
46
|
+
color: "ButtonText"
|
|
47
|
+
}),
|
|
48
|
+
color,
|
|
49
|
+
background
|
|
50
|
+
},
|
|
51
|
+
"&:hover": {
|
|
52
|
+
...forcedColors({
|
|
53
|
+
background: "ButtonFace",
|
|
54
|
+
color: "ButtonText"
|
|
55
|
+
}),
|
|
56
|
+
color,
|
|
57
|
+
background: hoverBackgroundColor,
|
|
58
|
+
/* No visible box-shadow. as transition point for focus and from tertiary */
|
|
59
|
+
boxShadow: `inset transparent 0px 0px 0px`
|
|
60
|
+
},
|
|
61
|
+
"&:active": {
|
|
62
|
+
...forcedColors({
|
|
63
|
+
background: "ButtonFace",
|
|
64
|
+
color: "ButtonText"
|
|
65
|
+
}),
|
|
66
|
+
color,
|
|
67
|
+
backgroundColor: pressedBackgroundColor
|
|
68
|
+
},
|
|
69
|
+
"&:focus-visible, &:focus-within": {
|
|
70
|
+
...forcedColors({
|
|
71
|
+
outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`,
|
|
72
|
+
background: "ButtonFace",
|
|
73
|
+
color: "ButtonText"
|
|
74
|
+
}),
|
|
75
|
+
boxShadow: `${focusColor} 0px 0px 0px ${getBorderWidth(borderWidthFocus)}`,
|
|
76
|
+
color,
|
|
77
|
+
background: hoverBackgroundColor,
|
|
78
|
+
outline: "none"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
const applyTertiaryAppearance = (style, background) => {
|
|
82
|
+
const color = getForegroundColor(colorObjectInverse);
|
|
83
|
+
return {
|
|
84
|
+
...style,
|
|
85
|
+
color,
|
|
86
|
+
background: "transparent",
|
|
87
|
+
boxShadow: `inset ${background} 0px 0px 0px ${getBorderWidth(borderWidthSelected)}`,
|
|
88
|
+
"&:visited": {
|
|
89
|
+
color,
|
|
90
|
+
background: "transparent"
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
const getButtonAppearance = (appearance) => {
|
|
95
|
+
const colors = getButtonAppearanceColors(appearance);
|
|
96
|
+
const style = buildBaseButtonStyle(colors);
|
|
97
|
+
return "tertiary" === appearance ? applyTertiaryAppearance(style, colors.background) : style;
|
|
98
|
+
};
|
|
99
|
+
export {
|
|
100
|
+
ButtonAppearanceColor as B,
|
|
101
|
+
getButtonAppearance as g
|
|
102
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as baseColors, a as backgroundColors, o as objectColors } from "./cssVars-
|
|
1
|
+
import { b as baseColors, a as backgroundColors, o as objectColors } from "./cssVars-DKs5LlTN.js";
|
|
2
2
|
import { getTextColor } from "./foundations/token/getTextColor/index.js";
|
|
3
3
|
import { b as colorTextInverseStatic, a as colorTextNeutral, d as colorTextNeutralStatic, e as colorTextInverse } from "./TextColor-DsntmDNw.js";
|
|
4
4
|
const backgroundForegroundColorMapping = {
|
|
@@ -18,7 +18,7 @@ import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
|
18
18
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
19
19
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
20
|
import { f as colorBorderSubtle, c as colorBorderFocus } from "../../BorderColor-BACbvI20.js";
|
|
21
|
-
import { g as borderWidthNone,
|
|
21
|
+
import { g as borderWidthNone, a as borderWidthUnselected, b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
22
22
|
import { f as fontWeightRegular, a as fontWeightBold } from "../../FontWeight-C8c-UnWu.js";
|
|
23
23
|
import { s as spacingMd, b as spacingNone, a as spacingXs } from "../../Spacing-Dj-qX3Z5.js";
|
|
24
24
|
import { a as colorTextNeutral, f as colorTextBrand } from "../../TextColor-DsntmDNw.js";
|
|
@@ -137,6 +137,10 @@ const Accordion = ({
|
|
|
137
137
|
const lastOpenStateRef = useRef(expanded);
|
|
138
138
|
const [toggle, setToggle] = useState(expanded ? accordionToggleExpanded : accordionToggleCollapsed);
|
|
139
139
|
const [animated, setAnimated] = useState(true);
|
|
140
|
+
const handleOnToggleRef = useRef(props.handleOnToggle);
|
|
141
|
+
useEffect(() => {
|
|
142
|
+
handleOnToggleRef.current = props.handleOnToggle;
|
|
143
|
+
});
|
|
140
144
|
useEffect(() => {
|
|
141
145
|
const target = ref.current;
|
|
142
146
|
const observer = new MutationObserver(() => {
|
|
@@ -145,8 +149,8 @@ const Accordion = ({
|
|
|
145
149
|
lastOpenStateRef.current = currentOpen;
|
|
146
150
|
setAnimated(false);
|
|
147
151
|
setToggle(currentOpen ? accordionToggleExpanded : accordionToggleCollapsed);
|
|
148
|
-
if (
|
|
149
|
-
|
|
152
|
+
if (handleOnToggleRef.current) {
|
|
153
|
+
handleOnToggleRef.current(uid, currentOpen);
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
156
|
});
|
|
@@ -157,7 +161,7 @@ const Accordion = ({
|
|
|
157
161
|
});
|
|
158
162
|
}
|
|
159
163
|
return () => observer.disconnect();
|
|
160
|
-
}, [uid
|
|
164
|
+
}, [uid]);
|
|
161
165
|
useEffect(() => {
|
|
162
166
|
if (expanded && accordionToggleExpanded === toggle) {
|
|
163
167
|
return;
|
|
@@ -161,12 +161,13 @@ export declare const accordionSchema: z.ZodObject<{
|
|
|
161
161
|
error_location: z.ZodOptional<z.ZodString>;
|
|
162
162
|
}, z.core.$loose>>;
|
|
163
163
|
}, z.core.$loose>;
|
|
164
|
-
|
|
164
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
165
165
|
Menu: "Menu";
|
|
166
166
|
Calendar: "Calendar";
|
|
167
167
|
Filter: "Filter";
|
|
168
168
|
Grid: "Grid";
|
|
169
169
|
Notification: "Notification";
|
|
170
|
+
Video: "Video";
|
|
170
171
|
Focus: "Focus";
|
|
171
172
|
AbTest: "AbTest";
|
|
172
173
|
Above28: "Above28";
|
|
@@ -721,7 +722,6 @@ export declare const accordionSchema: z.ZodObject<{
|
|
|
721
722
|
VfHappyHelpful: "VfHappyHelpful";
|
|
722
723
|
VfHappy: "VfHappy";
|
|
723
724
|
VideoFrame: "VideoFrame";
|
|
724
|
-
Video: "Video";
|
|
725
725
|
Virtuoso: "Virtuoso";
|
|
726
726
|
VirusProtection: "VirusProtection";
|
|
727
727
|
VocSensor: "VocSensor";
|
|
@@ -224,12 +224,13 @@ export declare const accordionGroupSchema: z.ZodObject<{
|
|
|
224
224
|
error_location: z.ZodOptional<z.ZodString>;
|
|
225
225
|
}, z.core.$loose>>;
|
|
226
226
|
}, z.core.$loose>;
|
|
227
|
-
|
|
227
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
228
228
|
Menu: "Menu";
|
|
229
229
|
Calendar: "Calendar";
|
|
230
230
|
Filter: "Filter";
|
|
231
231
|
Grid: "Grid";
|
|
232
232
|
Notification: "Notification";
|
|
233
|
+
Video: "Video";
|
|
233
234
|
Focus: "Focus";
|
|
234
235
|
AbTest: "AbTest";
|
|
235
236
|
Above28: "Above28";
|
|
@@ -784,7 +785,6 @@ export declare const accordionGroupSchema: z.ZodObject<{
|
|
|
784
785
|
VfHappyHelpful: "VfHappyHelpful";
|
|
785
786
|
VfHappy: "VfHappy";
|
|
786
787
|
VideoFrame: "VideoFrame";
|
|
787
|
-
Video: "Video";
|
|
788
788
|
Virtuoso: "Virtuoso";
|
|
789
789
|
VirusProtection: "VirusProtection";
|
|
790
790
|
VocSensor: "VocSensor";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useContext } from "react";
|
|
4
|
-
import { a as ContainerContext } from "../../index-
|
|
5
|
-
import { a as GridContext, c as GridItemContext } from "../../index-
|
|
4
|
+
import { a as ContainerContext } from "../../index-C_6tWuWh.js";
|
|
5
|
+
import { a as GridContext, c as GridItemContext } from "../../index-E0RMtc9X.js";
|
|
6
6
|
import { v as viewport, c as breakpoint_medium_number, a as breakpoint_large, b as breakpoint_medium } from "../../index-CG4uiVbZ.js";
|
|
7
7
|
import { usePictureComponent, filterAspectRatioFromSources, filterImagePropsToPictureComponentImageProps } from "../../hooks/usePictureComponent/index.js";
|
|
8
|
-
import { g as getSizesFromGridConfig } from "../../getSizesFromGridConfig-
|
|
8
|
+
import { g as getSizesFromGridConfig } from "../../getSizesFromGridConfig-C-GBct4J.js";
|
|
9
9
|
import styled from "styled-components";
|
|
10
10
|
import { translateLayoutPropsToCss } from "../../foundations/layout/index.js";
|
|
11
11
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -131,15 +131,6 @@ export declare const artDirectedImageSchema: z.ZodObject<{
|
|
|
131
131
|
contain: "contain";
|
|
132
132
|
cover: "cover";
|
|
133
133
|
}>>;
|
|
134
|
-
objectPosition: z.ZodOptional<z.ZodEnum<{
|
|
135
|
-
center: "center";
|
|
136
|
-
"top left": "top left";
|
|
137
|
-
"center left": "center left";
|
|
138
|
-
"bottom left": "bottom left";
|
|
139
|
-
"top right": "top right";
|
|
140
|
-
"center right": "center right";
|
|
141
|
-
"bottom right": "bottom right";
|
|
142
|
-
}>>;
|
|
143
134
|
roundedCorners: z.ZodOptional<z.ZodBoolean>;
|
|
144
135
|
src: z.ZodString;
|
|
145
136
|
alt: z.ZodOptional<z.ZodString>;
|
|
@@ -4,7 +4,7 @@ import "../../index-DcEZ9vor.js";
|
|
|
4
4
|
import "../../IconSize-Da9zhR76.js";
|
|
5
5
|
import "../../SizeTypes-Ck_RdzIf.js";
|
|
6
6
|
import "../../Spacing-Dj-qX3Z5.js";
|
|
7
|
-
import { B } from "../../index-
|
|
7
|
+
import { B } from "../../index-h88pZ6zH.js";
|
|
8
8
|
import { B as B2, b, a, p, s, c, t } from "../../props-Dt5kqR3j.js";
|
|
9
9
|
export {
|
|
10
10
|
B2 as BadgeAppearanceColor,
|
|
@@ -81,6 +81,7 @@ export declare const badgeSchema: z.ZodObject<{
|
|
|
81
81
|
Filter: "Filter";
|
|
82
82
|
Grid: "Grid";
|
|
83
83
|
Notification: "Notification";
|
|
84
|
+
Video: "Video";
|
|
84
85
|
Focus: "Focus";
|
|
85
86
|
AbTest: "AbTest";
|
|
86
87
|
Above28: "Above28";
|
|
@@ -635,7 +636,6 @@ export declare const badgeSchema: z.ZodObject<{
|
|
|
635
636
|
VfHappyHelpful: "VfHappyHelpful";
|
|
636
637
|
VfHappy: "VfHappy";
|
|
637
638
|
VideoFrame: "VideoFrame";
|
|
638
|
-
Video: "Video";
|
|
639
639
|
Virtuoso: "Virtuoso";
|
|
640
640
|
VirusProtection: "VirusProtection";
|
|
641
641
|
VocSensor: "VocSensor";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef, useState, useEffect } from "react";
|
|
4
|
-
import { C as Container } from "../../index-
|
|
4
|
+
import { C as Container } from "../../index-C_6tWuWh.js";
|
|
5
5
|
import { s as spacingMd, b as spacingNone } from "../../Spacing-Dj-qX3Z5.js";
|
|
6
6
|
import { a as themeLight } from "../../Theme-B6kzt-0D.js";
|
|
7
7
|
import styled from "styled-components";
|
|
8
|
-
import { C as CardStyled } from "../../styled-
|
|
8
|
+
import { C as CardStyled } from "../../styled-DDY0xAl_.js";
|
|
9
9
|
import { translateLayoutPropsToCss } from "../../foundations/layout/index.js";
|
|
10
10
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
11
11
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
12
|
-
import {
|
|
12
|
+
import { a as borderRadiusNone } from "../../BorderRadius-0jhn76gB.js";
|
|
13
13
|
import { s as shouldForwardProp } from "../../shouldForwardProp-CONMmlMa.js";
|
|
14
14
|
const bottomBarExtraPadding = 100;
|
|
15
15
|
const BottomBarStyled = styled(CardStyled).withConfig({
|
|
@@ -79,8 +79,8 @@ const BottomBar = ({
|
|
|
79
79
|
useEffect(() => {
|
|
80
80
|
document.documentElement.classList.toggle("HasObscuringBottomBar", visible);
|
|
81
81
|
document.documentElement.style.setProperty("--bottomBarHeight", `${bottomBarHeight}px`);
|
|
82
|
-
}, [bottomBarHeight, props.children]);
|
|
83
|
-
return /* @__PURE__ */ jsx(BottomBarStyled, {
|
|
82
|
+
}, [bottomBarHeight, props.children, visible]);
|
|
83
|
+
return /* @__PURE__ */ jsx(BottomBarStyled, { className: `${theme} ${props.className}`, inert: !visible, ref: bottomBarRef, ...props, visible, children: /* @__PURE__ */ jsx(Container, { padding: spacingNone, children: props.children }) });
|
|
84
84
|
};
|
|
85
85
|
export {
|
|
86
86
|
BottomBar as default
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-
|
|
4
|
-
import { B as ButtonStyled } from "../../styled-
|
|
3
|
+
import { B as ButtonAsLink, g as getButtonIcon } from "../../index-DqdKVD9N.js";
|
|
4
|
+
import { B as ButtonStyled } from "../../styled-BJ9cE7xy.js";
|
|
5
5
|
import { i } from "../../props-BrZdj0mO.js";
|
|
6
6
|
const isButtonAsLinkProp = (props) => {
|
|
7
7
|
return props.href !== void 0;
|
|
@@ -80,6 +80,7 @@ export declare const buttonSchema: z.ZodObject<{
|
|
|
80
80
|
Filter: "Filter";
|
|
81
81
|
Grid: "Grid";
|
|
82
82
|
Notification: "Notification";
|
|
83
|
+
Video: "Video";
|
|
83
84
|
Focus: "Focus";
|
|
84
85
|
AbTest: "AbTest";
|
|
85
86
|
Above28: "Above28";
|
|
@@ -634,7 +635,6 @@ export declare const buttonSchema: z.ZodObject<{
|
|
|
634
635
|
VfHappyHelpful: "VfHappyHelpful";
|
|
635
636
|
VfHappy: "VfHappy";
|
|
636
637
|
VideoFrame: "VideoFrame";
|
|
637
|
-
Video: "Video";
|
|
638
638
|
Virtuoso: "Virtuoso";
|
|
639
639
|
VirusProtection: "VirusProtection";
|
|
640
640
|
VocSensor: "VocSensor";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { B } from "../../index-
|
|
3
|
+
import { B } from "../../index-DqdKVD9N.js";
|
|
4
4
|
import "../../hooks/useLinkComponent/index.js";
|
|
5
5
|
import "../../sanitizeLinkProps-D2Kkovy1.js";
|
|
6
6
|
import "../../shouldForwardProp-CONMmlMa.js";
|
|
@@ -116,6 +116,7 @@ export declare const buttonGroupSchema: z.ZodObject<{
|
|
|
116
116
|
Filter: "Filter";
|
|
117
117
|
Grid: "Grid";
|
|
118
118
|
Notification: "Notification";
|
|
119
|
+
Video: "Video";
|
|
119
120
|
Focus: "Focus";
|
|
120
121
|
AbTest: "AbTest";
|
|
121
122
|
Above28: "Above28";
|
|
@@ -670,7 +671,6 @@ export declare const buttonGroupSchema: z.ZodObject<{
|
|
|
670
671
|
VfHappyHelpful: "VfHappyHelpful";
|
|
671
672
|
VfHappy: "VfHappy";
|
|
672
673
|
VideoFrame: "VideoFrame";
|
|
673
|
-
Video: "Video";
|
|
674
674
|
Virtuoso: "Virtuoso";
|
|
675
675
|
VirusProtection: "VirusProtection";
|
|
676
676
|
VocSensor: "VocSensor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,8 +27,8 @@ import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
|
27
27
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
28
28
|
import { d as colorBackgroundSubtle, a as colorBackgroundNeutral } from "../../BackgroundColor-Ba4D10TC.js";
|
|
29
29
|
import { c as colorBorderFocus, a as colorBorderNeutral } from "../../BorderColor-BACbvI20.js";
|
|
30
|
-
import { d as borderRadiusFull,
|
|
31
|
-
import {
|
|
30
|
+
import { d as borderRadiusFull, c as borderRadiusSm } from "../../BorderRadius-0jhn76gB.js";
|
|
31
|
+
import { b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
32
32
|
import { f as fontWeightRegular, a as fontWeightBold } from "../../FontWeight-C8c-UnWu.js";
|
|
33
33
|
import { f as colorObjectSelected } from "../../ObjectColor-CSHEae46.js";
|
|
34
34
|
import { a as opacityDisabled, o as opacityOverlay } from "../../Opacity-smkGiwsf.js";
|
|
@@ -4784,80 +4784,84 @@ function createPlainFooterText(text) {
|
|
|
4784
4784
|
sr: text
|
|
4785
4785
|
};
|
|
4786
4786
|
}
|
|
4787
|
-
function
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
return createPlainFooterText(
|
|
4787
|
+
function getSingleFooterText(selected) {
|
|
4788
|
+
const date = selected;
|
|
4789
|
+
if (!date) {
|
|
4790
|
+
return createPlainFooterText(footerTexts.single.instruction);
|
|
4791
4791
|
}
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4792
|
+
return {
|
|
4793
|
+
visual: formatTemplate(footerTexts.single.selected, {
|
|
4794
|
+
date: formatShortDate(date)
|
|
4795
|
+
}),
|
|
4796
|
+
sr: formatTemplate(footerTexts.single.selected, {
|
|
4797
|
+
date: formatLongDate(date)
|
|
4798
|
+
})
|
|
4799
|
+
};
|
|
4800
|
+
}
|
|
4801
|
+
function getRangeFooterText(selected) {
|
|
4802
|
+
const range = selected;
|
|
4803
|
+
if ((range == null ? void 0 : range.from) && (range == null ? void 0 : range.to)) {
|
|
4797
4804
|
return {
|
|
4798
|
-
visual: formatTemplate(footerTexts.
|
|
4799
|
-
|
|
4805
|
+
visual: formatTemplate(footerTexts.range.full, {
|
|
4806
|
+
from: formatShortDate(range.from),
|
|
4807
|
+
to: formatShortDate(range.to)
|
|
4800
4808
|
}),
|
|
4801
|
-
sr: formatTemplate(footerTexts.
|
|
4802
|
-
|
|
4809
|
+
sr: formatTemplate(footerTexts.range.full, {
|
|
4810
|
+
from: formatLongDate(range.from),
|
|
4811
|
+
to: formatLongDate(range.to)
|
|
4803
4812
|
})
|
|
4804
4813
|
};
|
|
4805
4814
|
}
|
|
4806
|
-
if (
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
from: formatLongDate(range.from),
|
|
4816
|
-
to: formatLongDate(range.to)
|
|
4817
|
-
})
|
|
4818
|
-
};
|
|
4819
|
-
}
|
|
4820
|
-
if (range == null ? void 0 : range.from) {
|
|
4821
|
-
return {
|
|
4822
|
-
visual: formatTemplate(footerTexts.range.fromOnly, {
|
|
4823
|
-
from: formatShortDate(range.from)
|
|
4824
|
-
}),
|
|
4825
|
-
sr: formatTemplate(footerTexts.range.fromOnly, {
|
|
4826
|
-
from: formatLongDate(range.from)
|
|
4827
|
-
})
|
|
4828
|
-
};
|
|
4829
|
-
}
|
|
4830
|
-
return createPlainFooterText(footerTexts.range.instruction);
|
|
4815
|
+
if (range == null ? void 0 : range.from) {
|
|
4816
|
+
return {
|
|
4817
|
+
visual: formatTemplate(footerTexts.range.fromOnly, {
|
|
4818
|
+
from: formatShortDate(range.from)
|
|
4819
|
+
}),
|
|
4820
|
+
sr: formatTemplate(footerTexts.range.fromOnly, {
|
|
4821
|
+
from: formatLongDate(range.from)
|
|
4822
|
+
})
|
|
4823
|
+
};
|
|
4831
4824
|
}
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
count: String(dates.length),
|
|
4843
|
-
list: shortList
|
|
4844
|
-
}),
|
|
4845
|
-
sr: formatTemplate(footerTexts.multiple.selectedMany, {
|
|
4846
|
-
count: String(dates.length),
|
|
4847
|
-
list: longList
|
|
4848
|
-
})
|
|
4849
|
-
};
|
|
4850
|
-
}
|
|
4825
|
+
return createPlainFooterText(footerTexts.range.instruction);
|
|
4826
|
+
}
|
|
4827
|
+
function getMultipleFooterText(selected) {
|
|
4828
|
+
const dates = selected ?? [];
|
|
4829
|
+
if (!dates.length) {
|
|
4830
|
+
return createPlainFooterText(footerTexts.multiple.instruction);
|
|
4831
|
+
}
|
|
4832
|
+
const shortList = dates.slice(0, 3).map((date) => formatShortDate(date)).join(", ");
|
|
4833
|
+
const longList = dates.slice(0, 3).map((date) => formatLongDate(date)).join(", ");
|
|
4834
|
+
if (dates.length > 3) {
|
|
4851
4835
|
return {
|
|
4852
|
-
visual: formatTemplate(footerTexts.multiple.
|
|
4836
|
+
visual: formatTemplate(footerTexts.multiple.selectedMany, {
|
|
4837
|
+
count: String(dates.length),
|
|
4853
4838
|
list: shortList
|
|
4854
4839
|
}),
|
|
4855
|
-
sr: formatTemplate(footerTexts.multiple.
|
|
4840
|
+
sr: formatTemplate(footerTexts.multiple.selectedMany, {
|
|
4841
|
+
count: String(dates.length),
|
|
4856
4842
|
list: longList
|
|
4857
4843
|
})
|
|
4858
4844
|
};
|
|
4859
4845
|
}
|
|
4860
|
-
return
|
|
4846
|
+
return {
|
|
4847
|
+
visual: formatTemplate(footerTexts.multiple.selected, {
|
|
4848
|
+
list: shortList
|
|
4849
|
+
}),
|
|
4850
|
+
sr: formatTemplate(footerTexts.multiple.selected, {
|
|
4851
|
+
list: longList
|
|
4852
|
+
})
|
|
4853
|
+
};
|
|
4854
|
+
}
|
|
4855
|
+
const footerTextByMode = {
|
|
4856
|
+
single: getSingleFooterText,
|
|
4857
|
+
range: getRangeFooterText,
|
|
4858
|
+
multiple: getMultipleFooterText
|
|
4859
|
+
};
|
|
4860
|
+
function getFooterText(mode, error = false, selected) {
|
|
4861
|
+
if (error) {
|
|
4862
|
+
return createPlainFooterText(getFooterTextForMode(mode));
|
|
4863
|
+
}
|
|
4864
|
+
return footerTextByMode[mode](selected);
|
|
4861
4865
|
}
|
|
4862
4866
|
const isDate = (value) => {
|
|
4863
4867
|
return value instanceof Date && !isNaN(value.getTime());
|
|
@@ -9,7 +9,7 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
9
9
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
10
10
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
11
11
|
import { d as colorBackgroundSubtle } from "../../BackgroundColor-Ba4D10TC.js";
|
|
12
|
-
import { b as borderRadiusMd } from "../../BorderRadius-
|
|
12
|
+
import { b as borderRadiusMd } from "../../BorderRadius-0jhn76gB.js";
|
|
13
13
|
import { s as spacingMd } from "../../Spacing-Dj-qX3Z5.js";
|
|
14
14
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
15
15
|
import { s as shouldForwardProp } from "../../shouldForwardProp-CONMmlMa.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { d as divTagName } from "../../tags-BeNegJAK.js";
|
|
4
4
|
import { t as themeDark } from "../../Theme-B6kzt-0D.js";
|
|
5
|
-
import { C as CardStyled } from "../../styled-
|
|
5
|
+
import { C as CardStyled } from "../../styled-DDY0xAl_.js";
|
|
6
6
|
import { C, c, a, b, d } from "../../props-DDJfToj8.js";
|
|
7
7
|
const Card = ({
|
|
8
8
|
children,
|
|
@@ -17,8 +17,8 @@ import { getObjectColor } from "../../foundations/token/getObjectColor/index.js"
|
|
|
17
17
|
import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
18
18
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
19
19
|
import { c as colorBorderFocus } from "../../BorderColor-BACbvI20.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
20
|
+
import { c as borderRadiusSm } from "../../BorderRadius-0jhn76gB.js";
|
|
21
|
+
import { b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
22
22
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
23
23
|
import { s as spacingMd, a as spacingXs, b as spacingNone } from "../../Spacing-Dj-qX3Z5.js";
|
|
24
24
|
import { s as shouldForwardProp } from "../../shouldForwardProp-CONMmlMa.js";
|
|
@@ -7,7 +7,7 @@ import { noReducedMotion } from "../../foundations/media-query/reducedMotion/ind
|
|
|
7
7
|
import { a as ease_in_out_sine } from "../../easing-Dm-pO8SY.js";
|
|
8
8
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
9
9
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
10
|
-
import {
|
|
10
|
+
import { b as borderWidthFocus } from "../../BorderWidth-CwrNKc0Q.js";
|
|
11
11
|
import { b as spacingNone } from "../../Spacing-Dj-qX3Z5.js";
|
|
12
12
|
import { s as shouldForwardProp } from "../../shouldForwardProp-CONMmlMa.js";
|
|
13
13
|
const CollapsibleStyled = styled.div.withConfig({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { a as getComputedBackgroundColor, p as parseColorToRgbObject, b as getContrastRatio } from "../../colorUtils-
|
|
4
|
+
import { a as getComputedBackgroundColor, p as parseColorToRgbObject, b as getContrastRatio } from "../../colorUtils-c9PiZEci.js";
|
|
5
5
|
import styled from "styled-components";
|
|
6
6
|
import { translateLayoutPropsToCss } from "../../foundations/layout/index.js";
|
|
7
7
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -80,7 +80,7 @@ const ColorSwatch = ({
|
|
|
80
80
|
setNeedsBorder(false);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
});
|
|
83
|
+
}, [color]);
|
|
84
84
|
return /* @__PURE__ */ jsx(ColorSwatchSVGStyled, { className: props.className, size, ref, color, needsBorder, role: "img", "aria-label": props["aria-label"], "aria-roledescription": "Farbfeld", bottomSpacing, layout: props.layout, children: /* @__PURE__ */ jsx(ColorSwatchCircleStyled, { fill: color, size }) });
|
|
85
85
|
};
|
|
86
86
|
export {
|
|
@@ -7,7 +7,7 @@ import Button from "../Button/index.js";
|
|
|
7
7
|
import { d as buttonWidthAuto, a as consentVariantVideo, c as consentVariantMap } from "../../ButtonWidthBehavior-DuO_4JKC.js";
|
|
8
8
|
import { b } from "../../ButtonWidthBehavior-DuO_4JKC.js";
|
|
9
9
|
import styled from "styled-components";
|
|
10
|
-
import { B as ButtonStyled } from "../../styled-
|
|
10
|
+
import { B as ButtonStyled } from "../../styled-BJ9cE7xy.js";
|
|
11
11
|
import { b as breakpoint_medium } from "../../index-CG4uiVbZ.js";
|
|
12
12
|
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
13
13
|
import { g as getSpacing } from "../../index-l-i-mIeP.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../Theme-B6kzt-0D.js";
|
|
5
|
-
import { a, C } from "../../index-
|
|
5
|
+
import { a, C } from "../../index-C_6tWuWh.js";
|
|
6
6
|
import { C as C2, c, a as a2, b, d, e, f, g } from "../../props-A95cwKat.js";
|
|
7
7
|
export {
|
|
8
8
|
C2 as ContainerAppearanceColor,
|