@thecb/components 8.0.3-beta.4 → 8.0.4-beta.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.
- package/dist/index.cjs.js +329 -1388
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.esm.js +329 -1385
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card/Card.js +0 -1
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +11 -6
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.theme.js +8 -0
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- /package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@ import React from "react";
|
|
|
2
2
|
import { Cluster } from "../../atoms/layouts";
|
|
3
3
|
import Text from "../text";
|
|
4
4
|
import styled from "styled-components";
|
|
5
|
-
import { colors } from "../../../constants";
|
|
6
5
|
import { noop } from "../../../util/general";
|
|
6
|
+
import { themeComponent } from "../../../util/themeUtils";
|
|
7
7
|
|
|
8
8
|
const HiddenRadioInput = styled.input`
|
|
9
9
|
// can still select the element with the keyboard, but it's invisible and doesn't interfere with the spacing of other elements around it
|
|
@@ -18,7 +18,7 @@ const Circle = styled.div`
|
|
|
18
18
|
margin-right: 8px;
|
|
19
19
|
width: 1.5rem;
|
|
20
20
|
height 1.5rem;
|
|
21
|
-
border: 1px solid ${
|
|
21
|
+
border: ${({ borderColor }) => `1px solid ${borderColor}`};
|
|
22
22
|
border-radius: 50%;
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
padding: 2px;
|
|
@@ -27,7 +27,7 @@ const Circle = styled.div`
|
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
display: block;
|
|
30
|
-
background: ${
|
|
30
|
+
background: ${({ backgroundColor }) => backgroundColor};
|
|
31
31
|
border-radius: 50%;
|
|
32
32
|
transform: scale(0);
|
|
33
33
|
}
|
|
@@ -40,10 +40,11 @@ const InputAndLabelContainer = styled(Cluster)`
|
|
|
40
40
|
transition: transform 0.15s;
|
|
41
41
|
}
|
|
42
42
|
${HiddenRadioInput}:checked + label ${Circle} {
|
|
43
|
-
border: 1px solid ${
|
|
43
|
+
border: ${({ backgroundColor }) => `1px solid ${backgroundColor};`}
|
|
44
44
|
}
|
|
45
45
|
${HiddenRadioInput}:focus + label ${Circle} { {
|
|
46
|
-
box-shadow:
|
|
46
|
+
box-shadow: ${({ backgroundColor }) =>
|
|
47
|
+
`0px 0px 2px 1px ${backgroundColor};`}
|
|
47
48
|
}
|
|
48
49
|
`;
|
|
49
50
|
|
|
@@ -89,4 +90,8 @@ const RadioButtonWithLabel = ({
|
|
|
89
90
|
</InputAndLabelContainer>
|
|
90
91
|
);
|
|
91
92
|
|
|
92
|
-
export default
|
|
93
|
+
export default themeComponent(
|
|
94
|
+
RadioButtonWithLabel,
|
|
95
|
+
"RadioButtonWithLabel",
|
|
96
|
+
fallbackValues
|
|
97
|
+
);
|