@vodafone_de/brix-components 3.0.0 → 3.0.2

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.
Files changed (140) hide show
  1. package/dist/BackgroundColor-JObp_2xA.js +14 -0
  2. package/dist/BorderColor-BummoQ1-.js +24 -0
  3. package/dist/BorderRadius-ClUShVLu.js +10 -0
  4. package/dist/BorderWidth-DfOlyKK7.js +16 -0
  5. package/dist/CornerStyle-JEbGNArR.js +6 -0
  6. package/dist/FontWeight-CR22KTex.js +8 -0
  7. package/dist/HeadingSize-CfCRn3Lh.js +12 -0
  8. package/dist/IconColor-CtC9WUgr.js +10 -0
  9. package/dist/ObjectColor-BZDBuV8H.js +22 -0
  10. package/dist/Opacity-smkGiwsf.js +6 -0
  11. package/dist/SizeTypes-Ck_RdzIf.js +8 -0
  12. package/dist/Spacing-D0HQH9YJ.js +16 -0
  13. package/dist/TextBodySize-BcZR9mh2.js +6 -0
  14. package/dist/TextColor-BXiR5Uq9.js +16 -0
  15. package/dist/colorUtils-uLZF5UIN.js +94 -0
  16. package/dist/components/Accordion/index.js +195 -0
  17. package/dist/components/AccordionGroup/index.js +59 -0
  18. package/dist/components/Badge/index.js +11 -0
  19. package/dist/components/Body/index.js +72 -6
  20. package/dist/components/BottomBar/index.js +79 -0
  21. package/dist/components/Button/index.js +24 -0
  22. package/dist/components/ButtonAsLink/index.js +7 -0
  23. package/dist/components/ButtonGroup/index.js +34 -0
  24. package/dist/components/Card/index.js +18 -0
  25. package/dist/components/Carousel/index.js +497 -0
  26. package/dist/components/Checkbox/index.js +218 -0
  27. package/dist/components/CheckboxGroup/index.js +58 -0
  28. package/dist/components/Collapsible/index.js +85 -0
  29. package/dist/components/ColorSwatch/index.js +87 -0
  30. package/dist/components/ColorSwatchGroup/index.js +43 -0
  31. package/dist/components/Container/index.js +76 -0
  32. package/dist/components/DateInput/index.js +86 -0
  33. package/dist/components/DemoBox/index.js +21 -0
  34. package/dist/components/Dialog/index.js +172 -0
  35. package/dist/components/DiscoveryCard/index.js +130 -0
  36. package/dist/components/DiscoveryCardGroup/index.js +53 -0
  37. package/dist/components/Divider/index.js +30 -0
  38. package/dist/components/Fieldset/index.js +41 -0
  39. package/dist/components/FilterGroup/index.js +148 -0
  40. package/dist/components/Flex/index.js +17 -0
  41. package/dist/components/FlexItem/index.js +41 -0
  42. package/dist/components/FootnoteContent/index.js +39 -0
  43. package/dist/components/FootnoteLink/index.js +46 -0
  44. package/dist/components/Form/index.js +20 -0
  45. package/dist/components/FormElement/index.js +31 -0
  46. package/dist/components/FormHelperLabel/index.js +21 -0
  47. package/dist/components/FormHelperMessage/index.js +47 -0
  48. package/dist/components/FormHelperStatusIcon/index.js +50 -0
  49. package/dist/components/GoogleMap/index.js +196 -0
  50. package/dist/components/Grid/index.js +39 -0
  51. package/dist/components/GridItem/index.js +12 -0
  52. package/dist/components/Heading/index.js +94 -0
  53. package/dist/components/HifiIcon/index.js +31 -0
  54. package/dist/components/Icon/index.js +38 -0
  55. package/dist/components/IconButton/index.js +85 -0
  56. package/dist/components/IconSnippet/index.js +112 -0
  57. package/dist/components/IconSnippet/styled.d.ts +1 -1
  58. package/dist/components/IconSnippetList/index.js +25 -0
  59. package/dist/components/Image/index.js +84 -0
  60. package/dist/components/ImageHeader/index.js +262 -0
  61. package/dist/components/ImageHeader/styled.d.ts +4 -4
  62. package/dist/components/InlineLink/index.js +43 -0
  63. package/dist/components/Input/index.js +55 -0
  64. package/dist/components/Label/index.js +22 -0
  65. package/dist/components/Legend/index.js +60 -0
  66. package/dist/components/Link/index.js +19 -0
  67. package/dist/components/LinkAsButton/index.js +7 -0
  68. package/dist/components/LinkList/index.js +64 -0
  69. package/dist/components/LinkListItem/index.js +316 -0
  70. package/dist/components/LoadingSpinner/index.js +70 -0
  71. package/dist/components/Notification/index.js +181 -0
  72. package/dist/components/Overlay/index.js +33 -0
  73. package/dist/components/PickerGroup/index.js +282 -0
  74. package/dist/components/Price/index.js +18 -0
  75. package/dist/components/ProductCard/index.js +81 -0
  76. package/dist/components/RadioGroup/index.js +197 -0
  77. package/dist/components/ResponsiveImage/index.js +89 -0
  78. package/dist/components/RichText/index.js +7 -0
  79. package/dist/components/ScreenreaderOnly/index.js +6 -0
  80. package/dist/components/SearchInput/index.js +140 -0
  81. package/dist/components/SelectInput/index.js +160 -0
  82. package/dist/components/Stepper/index.js +205 -0
  83. package/dist/components/SuggestInput/index.js +387 -0
  84. package/dist/components/Switch/index.js +169 -0
  85. package/dist/components/TabularPrice/index.js +8 -0
  86. package/dist/components/TextList/index.js +10 -0
  87. package/dist/components/Textarea/index.js +156 -0
  88. package/dist/components/Tray/index.js +218 -0
  89. package/dist/easing-Dm-pO8SY.js +6 -0
  90. package/dist/filterProps-Cewck8OH.js +13 -0
  91. package/dist/foundations/GlobalStyle/index.js +3 -292
  92. package/dist/foundations/PatternProps/index.js +1 -0
  93. package/dist/foundations/media-query/forcedColors/index.js +12 -0
  94. package/dist/foundations/media-query/reducedMotion/index.js +21 -0
  95. package/dist/foundations/media-query/viewport/index.js +6 -0
  96. package/dist/foundations/token/getBackgroundColor/index.js +5 -0
  97. package/dist/foundations/token/getBodySize/index.js +13 -2
  98. package/dist/foundations/token/getBorderColor/index.js +5 -0
  99. package/dist/foundations/token/getBorderRadius/index.js +15 -0
  100. package/dist/foundations/token/getBorderWidth/index.js +19 -0
  101. package/dist/foundations/token/getBottomSpacing/index.js +14 -0
  102. package/dist/foundations/token/getFontWeight/index.js +13 -0
  103. package/dist/foundations/token/getHeadingSize/index.js +27 -0
  104. package/dist/foundations/token/getHoverColor/index.js +7 -0
  105. package/dist/foundations/token/getIconColor/index.js +5 -0
  106. package/dist/foundations/token/getObjectColor/index.js +5 -0
  107. package/dist/foundations/token/getOpacity/index.js +11 -0
  108. package/dist/foundations/token/getPressColor/index.js +7 -0
  109. package/dist/foundations/token/getSpacing/index.js +5 -0
  110. package/dist/foundations/token/getTextColor/index.js +5 -0
  111. package/dist/foundations/token/getTextDecoration/index.js +13 -0
  112. package/dist/getCssVar-BP6T9pFM.js +6 -0
  113. package/dist/hooks/useFocusWithin/index.js +36 -0
  114. package/dist/hooks/useForcedColors/index.js +9 -0
  115. package/dist/hooks/useMediaQuery/index.js +19 -0
  116. package/dist/hooks/useReducedMotion/index.js +9 -0
  117. package/dist/hooks/useThirdPartyConsent/index.js +54 -0
  118. package/dist/hooks/useViewport/index.js +24 -0
  119. package/dist/index-BXLT6ke-.js +79 -0
  120. package/dist/index-C4XnzWFL.js +61 -0
  121. package/dist/index-CeJsIf3Z.js +208 -0
  122. package/dist/index-Ck2bCrhT.js +32 -0
  123. package/dist/index-CzTqNQTT.js +79 -0
  124. package/dist/index-D6hvbziL.js +167 -0
  125. package/dist/index-DQhtQZ85.js +24 -0
  126. package/dist/props-Czq9XX2J.js +6 -0
  127. package/dist/renderInlineRichTextFromOpenText-CA52y1-B.js +2383 -0
  128. package/dist/shadow-u158mzuN.js +4 -0
  129. package/dist/styled-BpvuD699.js +45 -0
  130. package/dist/styled-CDWclYAa.js +124 -0
  131. package/dist/styled-CXSdomF5.js +34 -0
  132. package/dist/styled-CpoX5USb.js +71 -0
  133. package/dist/styled-DZo6MwrF.js +245 -0
  134. package/dist/styled-FNJyDkPV.js +165 -0
  135. package/dist/styled-Wlt68LfQ.js +133 -0
  136. package/dist/styled-ZpQohvyx.js +29 -0
  137. package/dist/tags-DI6H1biK.js +29 -0
  138. package/package.json +1 -2
  139. package/dist/index-BoPDwZgt.js +0 -18
  140. package/dist/index-DRj4iUs9.js +0 -117
@@ -0,0 +1,4 @@
1
+ const shadow28 = "shadow28";
2
+ export {
3
+ shadow28 as s
4
+ };
@@ -0,0 +1,45 @@
1
+ import styled from "styled-components";
2
+ import forcedColors from "./foundations/media-query/forcedColors/index.js";
3
+ import { s as shadow28 } from "./shadow-u158mzuN.js";
4
+ import { getBackgroundColor } from "./foundations/token/getBackgroundColor/index.js";
5
+ import { getBorderRadius } from "./foundations/token/getBorderRadius/index.js";
6
+ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
7
+ import { getSpacing } from "./foundations/token/getSpacing/index.js";
8
+ import { getTextColor } from "./foundations/token/getTextColor/index.js";
9
+ import { b as borderRadiusMd } from "./BorderRadius-ClUShVLu.js";
10
+ import { s as spacingMd } from "./Spacing-D0HQH9YJ.js";
11
+ import { a as colorTextNeutral } from "./TextColor-BXiR5Uq9.js";
12
+ import { f as filterProps } from "./filterProps-Cewck8OH.js";
13
+ import { g as getCssVar } from "./getCssVar-BP6T9pFM.js";
14
+ import { d as colorBackgroundBrandGradient, c as colorBackgroundNeutral } from "./BackgroundColor-JObp_2xA.js";
15
+ const CardAppearanceColor = {
16
+ primary: colorBackgroundNeutral,
17
+ secondary: colorBackgroundBrandGradient
18
+ };
19
+ const CardStyled = styled.div.withConfig({
20
+ shouldForwardProp: filterProps(),
21
+ displayName: "CardStyled",
22
+ componentId: "sc-1hs2vg8-0"
23
+ })({
24
+ ...forcedColors({
25
+ border: "1px solid CanvasText"
26
+ }),
27
+ padding: `${getSpacing(spacingMd)}`,
28
+ boxShadow: getCssVar(shadow28),
29
+ borderRadius: getBorderRadius(borderRadiusMd),
30
+ height: "100%",
31
+ display: "flex",
32
+ flexDirection: "column",
33
+ width: "100%",
34
+ color: getTextColor(colorTextNeutral)
35
+ }, ({
36
+ appearance = "primary"
37
+ }) => {
38
+ return {
39
+ background: getBackgroundColor(CardAppearanceColor[appearance])
40
+ };
41
+ }, getBottomSpacing);
42
+ export {
43
+ CardStyled as C,
44
+ CardAppearanceColor as a
45
+ };
@@ -0,0 +1,124 @@
1
+ import styled from "styled-components";
2
+ import forcedColors from "./foundations/media-query/forcedColors/index.js";
3
+ import { getBackgroundColor } from "./foundations/token/getBackgroundColor/index.js";
4
+ import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
5
+ import { getBorderRadius } from "./foundations/token/getBorderRadius/index.js";
6
+ import { getBorderWidth } from "./foundations/token/getBorderWidth/index.js";
7
+ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
8
+ import { getHeadingSize } from "./foundations/token/getHeadingSize/index.js";
9
+ import { getSpacing } from "./foundations/token/getSpacing/index.js";
10
+ import { getTextColor } from "./foundations/token/getTextColor/index.js";
11
+ import { c as colorBackgroundNeutral } from "./BackgroundColor-JObp_2xA.js";
12
+ import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "./BorderColor-BummoQ1-.js";
13
+ import { b as borderRadiusMd } from "./BorderRadius-ClUShVLu.js";
14
+ import { b as borderWidthUnselected } from "./BorderWidth-DfOlyKK7.js";
15
+ import { c as spacingSm, a as spacingXs } from "./Spacing-D0HQH9YJ.js";
16
+ import { e as colorTextPlaceholder, a as colorTextNeutral } from "./TextColor-BXiR5Uq9.js";
17
+ import { f as filterProps } from "./filterProps-Cewck8OH.js";
18
+ const InputWrapperStyled = styled.div.withConfig({
19
+ shouldForwardProp: filterProps(),
20
+ displayName: "InputWrapperStyled",
21
+ componentId: "sc-1lx2jz-0"
22
+ })({
23
+ ...forcedColors({
24
+ backgroundColor: "Field",
25
+ border: "1px solid FieldText"
26
+ }),
27
+ display: "flex",
28
+ justifyItems: "center",
29
+ alignItems: "center",
30
+ gap: `${getSpacing(spacingXs)}`,
31
+ padding: `0 ${getSpacing(spacingSm)} 0 0`,
32
+ borderRadius: getBorderRadius(borderRadiusMd),
33
+ backgroundColor: getBackgroundColor(colorBackgroundNeutral)
34
+ }, ({
35
+ status
36
+ }) => {
37
+ if (!status) {
38
+ return {
39
+ boxShadow: `inset ${getBorderColor(colorBorderUnselected)} 0px 0px 0px 1px`,
40
+ "&:focus-within": {
41
+ ...forcedColors({
42
+ outline: "4px solid CanvasText"
43
+ }),
44
+ boxShadow: `${getBorderColor(colorBorderFocus)} 0px 0px 0px 4px, inset ${getBorderColor(colorBorderNeutral)} 0px 0px 0px 1px`,
45
+ outline: "none"
46
+ }
47
+ };
48
+ }
49
+ if ("success" === status) {
50
+ return {
51
+ boxShadow: `inset ${getBorderColor(colorBorderSuccess)} 0px 0px 0px 2px`,
52
+ "&:focus-within": {
53
+ ...forcedColors({
54
+ outline: "4px solid CanvasText"
55
+ }),
56
+ boxShadow: `${getBorderColor(colorBorderFocus)} 0px 0px 0px 4px, inset ${getBorderColor(colorBorderSuccess)} 0px 0px 0px 2px`
57
+ }
58
+ };
59
+ }
60
+ if ("error" === status) {
61
+ return {
62
+ boxShadow: `inset ${getBorderColor(colorBorderCritical)} 0px 0px 0px 2px`,
63
+ "&:focus-within": {
64
+ ...forcedColors({
65
+ outline: "4px solid CanvasText"
66
+ }),
67
+ boxShadow: `${getBorderColor(colorBorderFocus)} 0px 0px 0px 4px, inset ${getBorderColor(colorBorderCritical)} 0px 0px 0px 2px`
68
+ }
69
+ };
70
+ }
71
+ }, getBottomSpacing);
72
+ const InputStyled = styled.input.withConfig({
73
+ shouldForwardProp: filterProps(),
74
+ displayName: "InputStyled",
75
+ componentId: "sc-1lx2jz-1"
76
+ })(getHeadingSize("xs"), forcedColors({
77
+ border: "none"
78
+ }), {
79
+ fontWeight: "normal",
80
+ width: "100%",
81
+ flex: 1,
82
+ /**
83
+ * Since we use a boxshadow as 'border' on the outer div,
84
+ * we put a 1px invisible border on it
85
+ * so that we reach the required height overall
86
+ */
87
+ border: `${getBorderWidth(borderWidthUnselected)} solid transparent`,
88
+ outline: "none",
89
+ backgroundColor: "transparent",
90
+ color: getTextColor(colorTextNeutral),
91
+ padding: `${getSpacing(spacingXs)} 0 ${getSpacing(spacingXs)} ${getSpacing(spacingSm)}`,
92
+ "&::placeholder": {
93
+ color: getTextColor(colorTextPlaceholder)
94
+ },
95
+ height: "44px"
96
+ }, {
97
+ /**
98
+ * overwrite simplicity styles
99
+ */
100
+ "input&": {
101
+ maxWidth: "unset",
102
+ borderRadius: "unset",
103
+ boxShadow: "unset",
104
+ "&:focus": {
105
+ ...forcedColors({
106
+ border: "none"
107
+ }),
108
+ outline: "unset",
109
+ border: `${getBorderWidth(borderWidthUnselected)} solid transparent`
110
+ },
111
+ "&:disabled": {
112
+ ...forcedColors({
113
+ border: "none"
114
+ }),
115
+ color: "unset",
116
+ background: "unset",
117
+ border: `${getBorderWidth(borderWidthUnselected)} solid transparent`
118
+ }
119
+ }
120
+ });
121
+ export {
122
+ InputWrapperStyled as I,
123
+ InputStyled as a
124
+ };
@@ -0,0 +1,34 @@
1
+ import styled from "styled-components";
2
+ import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
3
+ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
4
+ import { getSpacing } from "./foundations/token/getSpacing/index.js";
5
+ import { getTextColor } from "./foundations/token/getTextColor/index.js";
6
+ import { f as colorBorderWarning } from "./BorderColor-BummoQ1-.js";
7
+ import { c as spacingSm, s as spacingMd } from "./Spacing-D0HQH9YJ.js";
8
+ import { c as colorTextInverseStatic } from "./TextColor-BXiR5Uq9.js";
9
+ import { f as filterProps } from "./filterProps-Cewck8OH.js";
10
+ const DemoBoxStyled = styled.div.withConfig({
11
+ shouldForwardProp: filterProps(),
12
+ displayName: "DemoBoxStyled",
13
+ componentId: "sc-xo01zx-0"
14
+ })({
15
+ height: "100px",
16
+ background: "#FFC5A8",
17
+ border: `1px dashed ${getBorderColor(colorBorderWarning)}`,
18
+ color: getTextColor(colorTextInverseStatic),
19
+ display: "flex",
20
+ justifyContent: "center",
21
+ alignItems: "center",
22
+ textAlign: "center",
23
+ width: "100%",
24
+ flexDirection: "column",
25
+ lineBreak: "anywhere",
26
+ padding: getSpacing(spacingSm)
27
+ }, ({
28
+ bottomSpacing = spacingMd
29
+ }) => getBottomSpacing({
30
+ bottomSpacing
31
+ }));
32
+ export {
33
+ DemoBoxStyled as D
34
+ };
@@ -0,0 +1,71 @@
1
+ import styled from "styled-components";
2
+ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
3
+ import { getSpacing } from "./foundations/token/getSpacing/index.js";
4
+ import { s as spacingMd, b as spacingNone } from "./Spacing-D0HQH9YJ.js";
5
+ import { f as filterProps } from "./filterProps-Cewck8OH.js";
6
+ const flexOrientationHorizontal = "horizontal";
7
+ const flexOrientationVertical = "vertical";
8
+ const flexJustifyStart = "start";
9
+ const flexJustifyEnd = "end";
10
+ const flexJustifyCenter = "center";
11
+ const flexJustifyBetween = "between";
12
+ const translateToJustifyContent = (justify) => {
13
+ if (!justify) {
14
+ return;
15
+ }
16
+ const justifyValues = {
17
+ [flexJustifyEnd]: "flex-end",
18
+ [flexJustifyCenter]: "center",
19
+ [flexJustifyBetween]: "space-between",
20
+ [flexJustifyStart]: "flex-start"
21
+ };
22
+ return justifyValues[justify];
23
+ };
24
+ const FlexStyled = styled.div.withConfig({
25
+ shouldForwardProp: filterProps(),
26
+ displayName: "FlexStyled",
27
+ componentId: "sc-1m7hd4c-0"
28
+ })({
29
+ display: "flex"
30
+ }, ({
31
+ wrap = false
32
+ }) => {
33
+ if (wrap) {
34
+ return {
35
+ flexWrap: "wrap"
36
+ };
37
+ }
38
+ return {
39
+ flexWrap: "nowrap"
40
+ };
41
+ }, ({
42
+ orientation = flexOrientationHorizontal
43
+ }) => ({
44
+ flexDirection: orientation === "horizontal" ? "row" : "column",
45
+ height: orientation === "horizontal" ? "auto" : "100%"
46
+ }), ({
47
+ justify = flexJustifyStart
48
+ }) => ({
49
+ justifyContent: translateToJustifyContent(justify)
50
+ }), ({
51
+ gapSpacing = spacingMd
52
+ }) => {
53
+ if (gapSpacing) {
54
+ return {
55
+ gap: getSpacing(gapSpacing)
56
+ };
57
+ }
58
+ }, ({
59
+ bottomSpacing = spacingNone
60
+ }) => getBottomSpacing({
61
+ bottomSpacing
62
+ }));
63
+ export {
64
+ FlexStyled as F,
65
+ flexJustifyStart as a,
66
+ flexOrientationVertical as b,
67
+ flexJustifyEnd as c,
68
+ flexJustifyCenter as d,
69
+ flexJustifyBetween as e,
70
+ flexOrientationHorizontal as f
71
+ };
@@ -0,0 +1,245 @@
1
+ import styled, { keyframes, css } from "styled-components";
2
+ import forcedColors from "./foundations/media-query/forcedColors/index.js";
3
+ import reducedMotion from "./foundations/media-query/reducedMotion/index.js";
4
+ import { v as viewport } from "./index-Ck2bCrhT.js";
5
+ import { getBackgroundColor } from "./foundations/token/getBackgroundColor/index.js";
6
+ import { getBodySize } from "./foundations/token/getBodySize/index.js";
7
+ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
8
+ import { getHeadingSize } from "./foundations/token/getHeadingSize/index.js";
9
+ import { getObjectColor } from "./foundations/token/getObjectColor/index.js";
10
+ import { getOpacity } from "./foundations/token/getOpacity/index.js";
11
+ import { getSpacing } from "./foundations/token/getSpacing/index.js";
12
+ import { a as colorBackgroundOverlay } from "./BackgroundColor-JObp_2xA.js";
13
+ import { o as opacityOverlay } from "./Opacity-smkGiwsf.js";
14
+ import { b as spacingNone } from "./Spacing-D0HQH9YJ.js";
15
+ import { l as largeSize } from "./SizeTypes-Ck_RdzIf.js";
16
+ import { f as filterProps } from "./filterProps-Cewck8OH.js";
17
+ import Body from "./components/Body/index.js";
18
+ const loadingSpinnerOverlays = {
19
+ Light: `rgba(255, 255, 255, ${getOpacity(opacityOverlay)})`,
20
+ Dark: `rgba(38, 38, 38, ${getOpacity(opacityOverlay)})`
21
+ };
22
+ const loadingSpinnerOverlayCssVar = "loadingSpinnerOverlay";
23
+ const calculateSpinnerHeight = (size, bottomSpacing, label) => {
24
+ const spinnerHeight = spinnerSvgSizes[size];
25
+ const labelHeight = label ? `${mapLabelStyleToSpinnerSize[size].fontSize} * ${mapLabelStyleToSpinnerSize[size].lineHeight}` : "0px";
26
+ return `calc(${spinnerHeight} + ${getSpacing(bottomSpacing)} + ${labelHeight})`;
27
+ };
28
+ const spinnerSvgSizes = {
29
+ xs: "24px",
30
+ sm: "76px",
31
+ md: "148px",
32
+ lg: "300px"
33
+ };
34
+ const LoadingSpinnerContainerStyled = styled.div.withConfig({
35
+ shouldForwardProp: filterProps(),
36
+ displayName: "LoadingSpinnerContainerStyled",
37
+ componentId: "sc-1bnjzqj-0"
38
+ })({
39
+ position: "relative",
40
+ height: "100%"
41
+ }, ({
42
+ coversFullPage
43
+ }) => {
44
+ if (coversFullPage) {
45
+ return {
46
+ position: "fixed",
47
+ zIndex: "1001"
48
+ };
49
+ }
50
+ return {};
51
+ }, ({
52
+ bottomSpacing = spacingNone
53
+ }) => getBottomSpacing({
54
+ bottomSpacing
55
+ }));
56
+ const LoadingSpinnerContentStyled = styled.div.withConfig({
57
+ shouldForwardProp: filterProps(),
58
+ displayName: "LoadingSpinnerContentStyled",
59
+ componentId: "sc-1bnjzqj-1"
60
+ })({
61
+ display: "flex",
62
+ flexDirection: "column",
63
+ minHeight: "100%",
64
+ width: "fit-content",
65
+ justifyContent: "center",
66
+ alignItems: "center"
67
+ }, ({
68
+ hasOverlay
69
+ }) => {
70
+ if (hasOverlay) {
71
+ return {
72
+ background: getBackgroundColor(colorBackgroundOverlay),
73
+ position: "absolute",
74
+ zIndex: 1001,
75
+ width: "100%",
76
+ left: 0,
77
+ top: 0
78
+ };
79
+ } else {
80
+ return {};
81
+ }
82
+ }, ({
83
+ coversFullPage
84
+ }) => {
85
+ if (coversFullPage) {
86
+ return {
87
+ position: "fixed",
88
+ zIndex: "1001"
89
+ };
90
+ }
91
+ return {};
92
+ });
93
+ const LoadingSpinnerChildrenStyled = styled.div.withConfig({
94
+ shouldForwardProp: filterProps(),
95
+ displayName: "LoadingSpinnerChildrenStyled",
96
+ componentId: "sc-1bnjzqj-2"
97
+ })({
98
+ width: "100%",
99
+ height: "100%",
100
+ "> *": {
101
+ minHeight: "inherit"
102
+ }
103
+ }, ({
104
+ size = largeSize,
105
+ bottomSpacing = spacingNone,
106
+ label,
107
+ isActive
108
+ }) => {
109
+ return isActive ? {
110
+ minHeight: calculateSpinnerHeight(size, bottomSpacing, label)
111
+ } : {};
112
+ });
113
+ const LoadingSpinnerSVGStyled = styled.svg.withConfig({
114
+ shouldForwardProp: filterProps(),
115
+ displayName: "LoadingSpinnerSVGStyled",
116
+ componentId: "sc-1bnjzqj-3"
117
+ })({
118
+ ...forcedColors({
119
+ stroke: "CanvasText"
120
+ }),
121
+ zIndex: 1001,
122
+ stroke: getObjectColor("colorObjectBrand")
123
+ }, ({
124
+ size = largeSize
125
+ }) => {
126
+ if (size === "xs") {
127
+ return {
128
+ width: "20px",
129
+ height: "20px",
130
+ ...viewport.md({
131
+ width: spinnerSvgSizes[size],
132
+ height: spinnerSvgSizes[size]
133
+ })
134
+ };
135
+ }
136
+ return {
137
+ width: spinnerSvgSizes[size],
138
+ height: spinnerSvgSizes[size]
139
+ };
140
+ });
141
+ const loadingSpinnerRotate = keyframes({
142
+ to: {
143
+ strokeDashoffset: 610
144
+ }
145
+ });
146
+ const loadingSpinnerXsRotate = keyframes({
147
+ to: {
148
+ strokeDashoffset: 166
149
+ }
150
+ });
151
+ const LoadingSpinnerPathStyled = styled.path.withConfig({
152
+ shouldForwardProp: filterProps(),
153
+ displayName: "LoadingSpinnerPathStyled",
154
+ componentId: "sc-1bnjzqj-4"
155
+ })({
156
+ fill: "none",
157
+ strokeLinejoin: "round",
158
+ strokeLinecap: "round",
159
+ strokeDasharray: "120 32",
160
+ animationDuration: "5.0s",
161
+ animationTimingFunction: "linear",
162
+ animationIterationCount: "infinite"
163
+ }, reducedMotion({
164
+ animation: "none"
165
+ }), css(["animation-name:", ";"], loadingSpinnerRotate));
166
+ const LoadingSpinnerPathOuter3Styled = styled(LoadingSpinnerPathStyled).withConfig({
167
+ shouldForwardProp: filterProps(),
168
+ displayName: "LoadingSpinnerPathOuter3Styled",
169
+ componentId: "sc-1bnjzqj-5"
170
+ })({
171
+ strokeWidth: 2,
172
+ opacity: "0.3"
173
+ });
174
+ const LoadingSpinnerPathOuter2Styled = styled(LoadingSpinnerPathStyled).withConfig({
175
+ shouldForwardProp: filterProps(),
176
+ displayName: "LoadingSpinnerPathOuter2Styled",
177
+ componentId: "sc-1bnjzqj-6"
178
+ })({
179
+ strokeWidth: 3,
180
+ opacity: "0.6"
181
+ });
182
+ const LoadingSpinnerPathOuter1Styled = styled(LoadingSpinnerPathStyled).withConfig({
183
+ shouldForwardProp: filterProps(),
184
+ displayName: "LoadingSpinnerPathOuter1Styled",
185
+ componentId: "sc-1bnjzqj-7"
186
+ })({
187
+ strokeWidth: 4
188
+ });
189
+ const LoadingSpinnerPathCenterStyled = styled.path.withConfig({
190
+ shouldForwardProp: filterProps(),
191
+ displayName: "LoadingSpinnerPathCenterStyled",
192
+ componentId: "sc-1bnjzqj-8"
193
+ })({
194
+ ...forcedColors({
195
+ fill: "CanvasText"
196
+ }),
197
+ fill: "#E60000"
198
+ });
199
+ const LoadingSpinnerPathXsStyled = styled.path.withConfig({
200
+ shouldForwardProp: filterProps(),
201
+ displayName: "LoadingSpinnerPathXsStyled",
202
+ componentId: "sc-1bnjzqj-9"
203
+ })({
204
+ fill: "none",
205
+ strokeLinecap: "butt",
206
+ strokeWidth: 2,
207
+ strokeDasharray: "48 8",
208
+ strokeDashoffset: 56,
209
+ animationDuration: "5.0s",
210
+ animationTimingFunction: "linear",
211
+ animationIterationCount: "infinite"
212
+ }, css(["animation-name:", ";"], loadingSpinnerXsRotate));
213
+ const mapLabelStyleToSpinnerSize = {
214
+ xs: getBodySize("md"),
215
+ sm: getHeadingSize("xs"),
216
+ md: getHeadingSize("sm"),
217
+ lg: getHeadingSize("lg")
218
+ };
219
+ const LoadingSpinnerLabelStyled = styled(Body).withConfig({
220
+ shouldForwardProp: filterProps(),
221
+ displayName: "LoadingSpinnerLabelStyled",
222
+ componentId: "sc-1bnjzqj-10"
223
+ })(({
224
+ size = "lg"
225
+ }) => {
226
+ return mapLabelStyleToSpinnerSize[size];
227
+ }, getBottomSpacing({
228
+ bottomSpacing: spacingNone
229
+ }), {
230
+ textAlign: "center"
231
+ });
232
+ export {
233
+ LoadingSpinnerSVGStyled as L,
234
+ LoadingSpinnerPathXsStyled as a,
235
+ LoadingSpinnerPathOuter3Styled as b,
236
+ LoadingSpinnerPathOuter2Styled as c,
237
+ LoadingSpinnerPathOuter1Styled as d,
238
+ LoadingSpinnerPathCenterStyled as e,
239
+ LoadingSpinnerContainerStyled as f,
240
+ LoadingSpinnerContentStyled as g,
241
+ LoadingSpinnerLabelStyled as h,
242
+ LoadingSpinnerChildrenStyled as i,
243
+ loadingSpinnerOverlays as j,
244
+ loadingSpinnerOverlayCssVar as l
245
+ };
@@ -0,0 +1,165 @@
1
+ import { IconLoader } from "@vfde-react/inline-icon-library";
2
+ import styled from "styled-components";
3
+ import forcedColors from "./foundations/media-query/forcedColors/index.js";
4
+ import { e as ease_in_sine } from "./easing-Dm-pO8SY.js";
5
+ import { getBorderColor } from "./foundations/token/getBorderColor/index.js";
6
+ import { getBorderWidth } from "./foundations/token/getBorderWidth/index.js";
7
+ import { getHoverColor } from "./foundations/token/getHoverColor/index.js";
8
+ import { getObjectColor } from "./foundations/token/getObjectColor/index.js";
9
+ import { getPressColor } from "./foundations/token/getPressColor/index.js";
10
+ import { c as colorBorderFocus } from "./BorderColor-BummoQ1-.js";
11
+ import { a as borderWidthFocus, d as borderWidthSelected } from "./BorderWidth-DfOlyKK7.js";
12
+ import { f as colorObjectNeutral, c as colorObjectBrand, a as colorObjectInverse } from "./ObjectColor-BZDBuV8H.js";
13
+ import { g as getForegroundColor } from "./colorUtils-uLZF5UIN.js";
14
+ import { v as viewport } from "./index-Ck2bCrhT.js";
15
+ import { getBodySize } from "./foundations/token/getBodySize/index.js";
16
+ import { getBorderRadius } from "./foundations/token/getBorderRadius/index.js";
17
+ import { getBottomSpacing } from "./foundations/token/getBottomSpacing/index.js";
18
+ import { getFontWeight } from "./foundations/token/getFontWeight/index.js";
19
+ import { getOpacity } from "./foundations/token/getOpacity/index.js";
20
+ import { getSpacing } from "./foundations/token/getSpacing/index.js";
21
+ import { b as borderRadiusMd } from "./BorderRadius-ClUShVLu.js";
22
+ import { b as fontWeightRegular } from "./FontWeight-CR22KTex.js";
23
+ import { a as opacityDisabled } from "./Opacity-smkGiwsf.js";
24
+ import { s as spacingMd, a as spacingXs, d as spacingXl, b as spacingNone } from "./Spacing-D0HQH9YJ.js";
25
+ import { t as textBodyMd } from "./TextBodySize-BcZR9mh2.js";
26
+ import { f as filterProps } from "./filterProps-Cewck8OH.js";
27
+ const leftPosition = "left";
28
+ const ButtonAppearanceColor = {
29
+ primary: colorObjectBrand,
30
+ secondary: colorObjectNeutral,
31
+ tertiary: colorObjectNeutral
32
+ };
33
+ const getButtonAppearance = (appearance) => {
34
+ const background = getObjectColor(ButtonAppearanceColor[appearance]);
35
+ const color = getForegroundColor(ButtonAppearanceColor[appearance]);
36
+ const hoverBackgroundColor = getHoverColor(ButtonAppearanceColor[appearance]);
37
+ const pressedBackgroundColor = getPressColor(ButtonAppearanceColor[appearance]);
38
+ const focusColor = getBorderColor(colorBorderFocus);
39
+ let style = {
40
+ ...forcedColors({
41
+ background: "ButtonFace",
42
+ color: "ButtonText"
43
+ }),
44
+ border: "unset",
45
+ background,
46
+ color,
47
+ transitionProperty: "background, color, box-shadow",
48
+ transitionDuration: "0.2s",
49
+ transitionTimingFunction: ease_in_sine,
50
+ /* No visible box-shadow. as transition endpoint for focus */
51
+ boxShadow: `inset transparent 0px 0px 0px ${hoverBackgroundColor}`,
52
+ "&:visited": {
53
+ ...forcedColors({
54
+ background: "ButtonFace",
55
+ color: "ButtonText"
56
+ }),
57
+ color,
58
+ background
59
+ },
60
+ "&:hover": {
61
+ ...forcedColors({
62
+ background: "ButtonFace",
63
+ color: "ButtonText"
64
+ }),
65
+ color,
66
+ background: hoverBackgroundColor,
67
+ /* No visible box-shadow. as transition point for focus and from tertiary */
68
+ boxShadow: `inset transparent 0px 0px 0px`
69
+ },
70
+ "&:active": {
71
+ ...forcedColors({
72
+ background: "ButtonFace",
73
+ color: "ButtonText"
74
+ }),
75
+ color,
76
+ backgroundColor: pressedBackgroundColor
77
+ },
78
+ "&:focus-visible": {
79
+ ...forcedColors({
80
+ outline: `${getBorderWidth(borderWidthFocus)} solid CanvasText`,
81
+ background: "ButtonFace",
82
+ color: "ButtonText"
83
+ }),
84
+ boxShadow: `${focusColor} 0px 0px 0px ${getBorderWidth(borderWidthFocus)}`,
85
+ color,
86
+ background: hoverBackgroundColor,
87
+ outline: "none"
88
+ }
89
+ };
90
+ if ("tertiary" === appearance) {
91
+ const color2 = getForegroundColor(colorObjectInverse);
92
+ style = {
93
+ ...style,
94
+ color: color2,
95
+ background: "transparent",
96
+ boxShadow: `inset ${background} 0px 0px 0px ${getBorderWidth(borderWidthSelected)}`,
97
+ "&:visited": {
98
+ color: color2,
99
+ background: "transparent"
100
+ }
101
+ };
102
+ }
103
+ return style;
104
+ };
105
+ const primaryAppearance = "primary";
106
+ const tertiaryAppearance = "tertiary";
107
+ const buttonHeight = "44px";
108
+ const ButtonIconStyled = styled(IconLoader).withConfig({
109
+ displayName: "ButtonIconStyled",
110
+ componentId: "sc-6d4at9-0"
111
+ })(({
112
+ iconPosition
113
+ }) => ({
114
+ order: iconPosition === leftPosition ? -1 : 0
115
+ }));
116
+ const ButtonStyled = styled.button.withConfig({
117
+ shouldForwardProp: filterProps(),
118
+ displayName: "ButtonStyled",
119
+ componentId: "sc-6d4at9-1"
120
+ })({
121
+ appearance: "none",
122
+ display: "flex",
123
+ flexWrap: "nowrap",
124
+ alignItems: "center",
125
+ justifyContent: "center",
126
+ cursor: "pointer",
127
+ gap: `${getSpacing(spacingNone)} ${getSpacing(spacingXs)}`,
128
+ padding: `${getSpacing(spacingXs)} ${getSpacing(spacingXl)}`,
129
+ borderRadius: getBorderRadius(borderRadiusMd),
130
+ fontWeight: getFontWeight(fontWeightRegular),
131
+ height: buttonHeight
132
+ }, getBodySize(textBodyMd), ({
133
+ width = "auto"
134
+ }) => ({
135
+ width: "100%",
136
+ ...viewport.md({
137
+ width: "full" === width ? "100%" : "fit-content"
138
+ })
139
+ }), ({
140
+ appearance = primaryAppearance
141
+ }) => getButtonAppearance(appearance), ({
142
+ disabled
143
+ }) => {
144
+ if (disabled) {
145
+ return {
146
+ pointerEvents: "none",
147
+ opacity: getOpacity(opacityDisabled)
148
+ };
149
+ }
150
+ return {};
151
+ }, ({
152
+ bottomSpacing = spacingMd
153
+ }) => getBottomSpacing({
154
+ bottomSpacing
155
+ }));
156
+ export {
157
+ ButtonStyled as B,
158
+ ButtonAppearanceColor as a,
159
+ buttonHeight as b,
160
+ ButtonIconStyled as c,
161
+ getButtonAppearance as g,
162
+ leftPosition as l,
163
+ primaryAppearance as p,
164
+ tertiaryAppearance as t
165
+ };