@thecb/components 10.9.0-beta.7 → 10.9.0-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.9.0-beta.7",
3
+ "version": "10.9.0-beta.8",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -83,7 +83,7 @@
83
83
  "dependencies": {
84
84
  "@babel/runtime": "^7.15.4",
85
85
  "core-js": "^3.22.5",
86
- "formatted-input": "1.0.1-beta.0",
86
+ "formatted-input": "1.0.1-beta.2",
87
87
  "framer-motion": "^1.11.0",
88
88
  "numeral": "^2.0.6",
89
89
  "polished": "^4.0.3",
@@ -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="border-radius: 2px 0 0 2px;"
64
+ extraStyles={`border-radius: 4px 0 0 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,8 +103,10 @@ const Search = ({
102
103
  extraStyles={`
103
104
  height: 48px;
104
105
  margin: 4px 0 0;
105
- border-radius: 0 2px 2px 0;
106
+ border-radius: 0 4px 4px 0;
106
107
  background: ${themeValues.searchIconBackgroundColor};
108
+ border: none;
109
+ box-shadow: 0px 1px 2px 0px ${colors.CHARADE_GREY}1A;
107
110
  `}
108
111
  variant="primary"
109
112
  contentOverride={true}
@@ -260,7 +260,6 @@ const PaymentDetails = ({
260
260
  // end partial void section
261
261
  isLoading = false,
262
262
  isError = false,
263
- multiCartEnabled = false,
264
263
  agencyDisplayName
265
264
  }) => {
266
265
  const [isOpen, setIsOpen] = useState(initiallyOpen);
@@ -292,7 +291,7 @@ const PaymentDetails = ({
292
291
  ));
293
292
  const agencySubheading = (
294
293
  <>
295
- {multiCartEnabled && agencyDisplayName && (
294
+ {agencyDisplayName && (
296
295
  <Cluster
297
296
  justify="space-between"
298
297
  align="center"
@@ -160,7 +160,6 @@ 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}
164
163
  agencyDisplayName="Office of Charitable Trust"
165
164
  />
166
165
  );