@thecb/components 5.2.0 → 5.2.3
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 +9 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +1 -1
- package/src/components/atoms/dropdown/DropdownIcon.js +2 -7
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +2 -1
- package/src/components/molecules/radio-section/RadioSection.js +4 -2
package/package.json
CHANGED
|
@@ -124,7 +124,7 @@ const ButtonWithAction = ({
|
|
|
124
124
|
activeStyles={activeStyles}
|
|
125
125
|
disabledStyles={disabledStyles}
|
|
126
126
|
as="button"
|
|
127
|
-
onClick={
|
|
127
|
+
onClick={isLoading ? undefined : action}
|
|
128
128
|
borderRadius="2px"
|
|
129
129
|
theme={themeContext}
|
|
130
130
|
extraStyles={`margin: 0.5rem; ${extraStyles}`}
|
|
@@ -11,15 +11,10 @@ const DropdownIcon = () => (
|
|
|
11
11
|
width="12"
|
|
12
12
|
>
|
|
13
13
|
<g transform="translate(1 1)">
|
|
14
|
-
<g fillRule="evenodd" fill="none"
|
|
15
|
-
<g
|
|
16
|
-
fill="#333"
|
|
17
|
-
transform="translate(-155 -22)"
|
|
18
|
-
id="Dropdown/Closed_1548197283918"
|
|
19
|
-
>
|
|
14
|
+
<g fillRule="evenodd" fill="none">
|
|
15
|
+
<g fill="#333" transform="translate(-155 -22)">
|
|
20
16
|
<polygon
|
|
21
17
|
points="165.59 22.59 161 27.17 156.41 22.59 155 24 161 30 167 24"
|
|
22
|
-
id="Path_1548197283918"
|
|
23
18
|
vectorEffect="non-scaling-stroke"
|
|
24
19
|
/>
|
|
25
20
|
</g>
|
|
@@ -13,7 +13,9 @@ import { CHARADE_GREY, ASH_GREY, FIRE_YELLOW } from "../../../constants/colors";
|
|
|
13
13
|
{
|
|
14
14
|
title: <React Component(s)>,
|
|
15
15
|
id: <String> "identifier of section",
|
|
16
|
-
disabled: boolean,
|
|
16
|
+
disabled: boolean, (displays section and grayed out radio but disables interaction)
|
|
17
|
+
hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
|
|
18
|
+
hidden: boolean, (hides section entirely)
|
|
17
19
|
dataQa: string,
|
|
18
20
|
content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work)
|
|
19
21
|
}
|
|
@@ -141,7 +143,7 @@ const RadioSection = ({
|
|
|
141
143
|
.filter(section => !section.hidden)
|
|
142
144
|
.map(section => (
|
|
143
145
|
<Motion
|
|
144
|
-
tabIndex="0"
|
|
146
|
+
tabIndex={section.hideRadioButton ? "-1" : "0"}
|
|
145
147
|
onKeyDown={e => handleKeyDown(section.id, e)}
|
|
146
148
|
onFocus={() => setFocused(section.id)}
|
|
147
149
|
onBlur={() => setFocused(null)}
|