@thecb/components 5.2.1 → 5.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -124,7 +124,7 @@ const ButtonWithAction = ({
124
124
  activeStyles={activeStyles}
125
125
  disabledStyles={disabledStyles}
126
126
  as="button"
127
- onClick={!isLoading && action}
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" id="Symbols_1548197283918">
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>