@bitrise/bitkit 12.110.0 → 12.111.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.110.0",
4
+ "version": "12.111.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -27,11 +27,21 @@ export interface FilterProps extends Omit<BoxProps, 'onChange'> {
27
27
  initialState: FilterState;
28
28
  isLoading?: boolean;
29
29
  onChange: (state: FilterState) => void;
30
+ showAdd?: boolean;
30
31
  showSearch?: boolean;
31
32
  }
32
33
 
33
34
  const Filter = (props: FilterProps) => {
34
- const { filtersDependOn, initialData, initialState, isLoading, onChange, showSearch, ...rest } = props;
35
+ const {
36
+ filtersDependOn,
37
+ initialData,
38
+ initialState,
39
+ isLoading,
40
+ onChange,
41
+ showAdd = true,
42
+ showSearch,
43
+ ...rest
44
+ } = props;
35
45
 
36
46
  const isInited = useRef<boolean>(false);
37
47
 
@@ -146,7 +156,7 @@ const Filter = (props: FilterProps) => {
146
156
  return <FilterItem key={category} category={category} />;
147
157
  })}
148
158
 
149
- <FilterAdd onChange={onFilterChange} />
159
+ {showAdd && <FilterAdd onChange={onFilterChange} />}
150
160
  </Box>
151
161
  {(showClearFilters || showSearch) && (
152
162
  <Box sx={filterStyle.rightContent}>