@thecb/components 7.13.2 → 7.13.3-beta.10
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/index.cjs.js +162 -99
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +162 -99
- package/dist/index.esm.js.map +1 -1
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/atoms/icons/ChevronIconWhite.js +55 -0
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +9 -4
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
package/package.json
CHANGED
package/src/.DS_Store
CHANGED
|
Binary file
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { fallbackValues } from "./Icons.theme";
|
|
3
|
+
import { themeComponent } from "../../../util/themeUtils";
|
|
4
|
+
|
|
5
|
+
const ChevronIconWhite = ({ themeValues, iconFill }) => {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width="24"
|
|
9
|
+
height="24"
|
|
10
|
+
viewBox="0 0 24 24"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
xmlnsXlink="http://www.w3.org/1999/xlink"
|
|
13
|
+
style={{ display: "inline-block", verticalAlign: "text-bottom" }}
|
|
14
|
+
>
|
|
15
|
+
<defs>
|
|
16
|
+
<polygon
|
|
17
|
+
id={`icon-chevron-path-1`}
|
|
18
|
+
points="10.4099998 6 9 7.40999976 13.5799996 11.9999996 9 16.5899995 10.4099998 17.9999993 16.4099994 11.9999996"
|
|
19
|
+
/>
|
|
20
|
+
</defs>
|
|
21
|
+
<g
|
|
22
|
+
id={`icon-chevron-Icon/Chevron-Down`}
|
|
23
|
+
fill="#ffffff"
|
|
24
|
+
fillRule="evenodd"
|
|
25
|
+
>
|
|
26
|
+
<mask id={`icon-chevron-mask-2`}>
|
|
27
|
+
<use
|
|
28
|
+
fill={iconFill ?? themeValues.singleIconColor}
|
|
29
|
+
xlinkHref={`#icon-chevron-path-1`}
|
|
30
|
+
/>
|
|
31
|
+
</mask>
|
|
32
|
+
|
|
33
|
+
<use
|
|
34
|
+
fill={iconFill ?? themeValues.singleIconColor}
|
|
35
|
+
id={`icon-chevron-Fill-2`}
|
|
36
|
+
xlinkHref={`#icon-chevron-path-1`}
|
|
37
|
+
/>
|
|
38
|
+
<g
|
|
39
|
+
id="Colors/Blue-Dark"
|
|
40
|
+
mask={`url(#icon-chevron-mask-2)`}
|
|
41
|
+
fill={iconFill ?? themeValues.singleIconColor}
|
|
42
|
+
>
|
|
43
|
+
<rect id={`icon-chevron-rect`} width="24" height="24" />
|
|
44
|
+
</g>
|
|
45
|
+
</g>
|
|
46
|
+
</svg>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default themeComponent(
|
|
51
|
+
ChevronIconWhite,
|
|
52
|
+
"Icons",
|
|
53
|
+
fallbackValues,
|
|
54
|
+
"secondary"
|
|
55
|
+
);
|
|
@@ -7,6 +7,8 @@ import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
|
|
|
7
7
|
import { Box, Cluster, Stack, Motion } from "../../atoms/layouts";
|
|
8
8
|
import { ChevronIcon } from "../../atoms/icons";
|
|
9
9
|
import { noop } from "../../../util/general";
|
|
10
|
+
import ChevronIconWhite from "../../atoms/icons/ChevronIconWhite";
|
|
11
|
+
// import { ChevronIconWhite } from "@thecb/components"
|
|
10
12
|
|
|
11
13
|
const CollapsibleSection = ({
|
|
12
14
|
isOpen,
|
|
@@ -24,7 +26,10 @@ const CollapsibleSection = ({
|
|
|
24
26
|
stackTitleContent,
|
|
25
27
|
sectionGap = "0.5rem",
|
|
26
28
|
name = "",
|
|
27
|
-
index = 1
|
|
29
|
+
index = 1,
|
|
30
|
+
iconColor = "",
|
|
31
|
+
extraStyles = "",
|
|
32
|
+
CustomIcon
|
|
28
33
|
}) => {
|
|
29
34
|
const handleKeyDown = e => {
|
|
30
35
|
if (e.keyCode === 13) {
|
|
@@ -86,7 +91,7 @@ const CollapsibleSection = ({
|
|
|
86
91
|
hoverStyles={`cursor: pointer;`}
|
|
87
92
|
tabIndex="0"
|
|
88
93
|
onKeyDown={handleKeyDown}
|
|
89
|
-
extraStyles={`z-index: 25
|
|
94
|
+
extraStyles={`z-index: 25;`.concat(extraStyles)}
|
|
90
95
|
role="button"
|
|
91
96
|
aria-expanded={isOpen.toString()}
|
|
92
97
|
aria-controls={id}
|
|
@@ -94,7 +99,7 @@ const CollapsibleSection = ({
|
|
|
94
99
|
>
|
|
95
100
|
<Cluster justify="space-between" align="center">
|
|
96
101
|
{customTitle ? (
|
|
97
|
-
<Box width="calc(100% - 36px)" padding="
|
|
102
|
+
<Box width="calc(100% - 36px)" padding="0">
|
|
98
103
|
{title}
|
|
99
104
|
</Box>
|
|
100
105
|
) : (
|
|
@@ -111,7 +116,7 @@ const CollapsibleSection = ({
|
|
|
111
116
|
variants={icon}
|
|
112
117
|
extraStyles={`display: flex; align-items: center;`}
|
|
113
118
|
>
|
|
114
|
-
<
|
|
119
|
+
{CustomIcon ? <CustomIcon /> : <ChevronIconWhite />}
|
|
115
120
|
</Motion>
|
|
116
121
|
</Cluster>
|
|
117
122
|
</Box>
|
|
Binary file
|
|
Binary file
|