@bitrise/bitkit 13.340.0 → 13.341.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": "13.340.0",
4
+ "version": "13.341.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -92,7 +92,14 @@ const FilterForm = (props: FilterFormProps) => {
92
92
 
93
93
  const { data } = useFilterContext();
94
94
 
95
- const { isPatternEnabled, iconsMap, hasNotFilteredOption = true, isInitialLoading, isMultiple } = data[category];
95
+ const {
96
+ isPatternEnabled,
97
+ iconsMap,
98
+ hasNotFilteredOption = true,
99
+ isInitialLoading,
100
+ isMultiple,
101
+ searchPlaceholder,
102
+ } = data[category];
96
103
 
97
104
  const {
98
105
  currentOptionMap,
@@ -138,7 +145,7 @@ const FilterForm = (props: FilterFormProps) => {
138
145
  <SearchInput
139
146
  isDisabled={isInitialLoading}
140
147
  onChange={onSearchChange}
141
- placeholder="Search by name"
148
+ placeholder={searchPlaceholder || 'Search by name'}
142
149
  size="md"
143
150
  sx={filterStyle.formSearch}
144
151
  value={searchValue}
@@ -39,6 +39,7 @@ export const FILTER_STORY_DATA: FilterData = {
39
39
  hasNotFilteredOption: false,
40
40
  preserveOptionOrder: true,
41
41
  type: 'select',
42
+ searchPlaceholder: 'Search apps',
42
43
  },
43
44
  branch: {
44
45
  categoryName: 'Branch',
@@ -32,6 +32,7 @@ export type FilterCategoryProps = {
32
32
  optionsMap?: FilterOptionsMap;
33
33
  isPatternEnabled?: boolean;
34
34
  loadingText?: string;
35
+ searchPlaceholder?: string;
35
36
  } & (
36
37
  | {
37
38
  type: 'dateRange';