@thecb/components 10.8.2-beta.0 → 10.8.3-beta.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/index.cjs.js +5 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/search/Search.js +3 -2
- package/src/components/molecules/payment-details/PaymentDetails.js +2 -1
- package/src/components/molecules/payment-details/PaymentDetails.stories.js +1 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -6,6 +6,7 @@ import { SearchIcon } from "../icons";
|
|
|
6
6
|
import { themeComponent } from "../../../util/themeUtils";
|
|
7
7
|
import { fallbackValues } from "./Search.theme";
|
|
8
8
|
import { noop } from "../../../util/general";
|
|
9
|
+
import { colors } from "../../../constants";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Search requires a redux-freeform field and actions to use
|
|
@@ -60,7 +61,7 @@ const Search = ({
|
|
|
60
61
|
id="searchInput"
|
|
61
62
|
role="search"
|
|
62
63
|
aria-controls={ariaControlsId}
|
|
63
|
-
extraStyles=
|
|
64
|
+
extraStyles={`border-radius: 4px; border: none; box-shadow: 0px 1px 2px 0px ${colors.CHARADE_GREY}1A; font-size: 0.875rem;`}
|
|
64
65
|
onKeyDown={e =>
|
|
65
66
|
searchOnKeypress || e.key === "Enter" ? handleSubmit() : noop
|
|
66
67
|
}
|
|
@@ -102,7 +103,7 @@ const Search = ({
|
|
|
102
103
|
extraStyles={`
|
|
103
104
|
height: 48px;
|
|
104
105
|
margin: 4px 0 0;
|
|
105
|
-
border-radius: 0
|
|
106
|
+
border-radius: 0 4px 4px 0;
|
|
106
107
|
background: ${themeValues.searchIconBackgroundColor};
|
|
107
108
|
`}
|
|
108
109
|
variant="primary"
|
|
@@ -260,6 +260,7 @@ const PaymentDetails = ({
|
|
|
260
260
|
// end partial void section
|
|
261
261
|
isLoading = false,
|
|
262
262
|
isError = false,
|
|
263
|
+
multiCartEnabled = false,
|
|
263
264
|
agencyDisplayName
|
|
264
265
|
}) => {
|
|
265
266
|
const [isOpen, setIsOpen] = useState(initiallyOpen);
|
|
@@ -291,7 +292,7 @@ const PaymentDetails = ({
|
|
|
291
292
|
));
|
|
292
293
|
const agencySubheading = (
|
|
293
294
|
<>
|
|
294
|
-
{agencyDisplayName && (
|
|
295
|
+
{multiCartEnabled && agencyDisplayName && (
|
|
295
296
|
<Cluster
|
|
296
297
|
justify="space-between"
|
|
297
298
|
align="center"
|
|
@@ -160,6 +160,7 @@ export const paymentDetails = () => (
|
|
|
160
160
|
collapsibleOnMobile={boolean("collapsibleOnMobile", false, "props")}
|
|
161
161
|
initiallyOpen={boolean("initiallyOpen", true, "props")}
|
|
162
162
|
hideTitle={boolean("hideTitle", false, "props")}
|
|
163
|
+
multiCartEnabled={true}
|
|
163
164
|
agencyDisplayName="Office of Charitable Trust"
|
|
164
165
|
/>
|
|
165
166
|
);
|