@bitrise/bitkit 13.249.0 → 13.251.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.249.0",
4
+ "version": "13.251.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -51,6 +51,9 @@ const MatchingResults = (props: MatchingResultsProps) => {
51
51
  } else {
52
52
  const filterRegexp = new RegExp(`^${selected[0].split(/\*+/).map(regExpEscape).join('.*')}$`);
53
53
  matchingResults = items.filter((item) => {
54
+ if (item.includes('*')) {
55
+ return false;
56
+ }
54
57
  return filterRegexp.test(item);
55
58
  });
56
59
  if (!matchingResults.length) {
@@ -61,7 +64,7 @@ const MatchingResults = (props: MatchingResultsProps) => {
61
64
  );
62
65
  } else {
63
66
  content = (
64
- <Box maxHeight="11rem" overflow="scroll">
67
+ <Box maxHeight="11rem" overflow="auto">
65
68
  <List textStyle="body/md/regular" variant="unordered">
66
69
  {matchingResults.map((r) => (
67
70
  <ListItem key={r}>{r}</ListItem>
@@ -128,7 +131,8 @@ const FilterForm = (props: FilterFormProps) => {
128
131
  const isAsync = !!onAsyncSearch;
129
132
  const withSearch = (options && options.length > 5) || isAsync;
130
133
 
131
- const isSubmitDisabled = isEqual(selected, value) || (mode === 'pattern' && !selected[0].includes('*'));
134
+ const isSubmitDisabled =
135
+ isEqual(selected, value) || (mode === 'pattern' && !!selected[0] && !selected[0].includes('*'));
132
136
  const filteredOptions = useMemo(() => {
133
137
  if (options?.length) {
134
138
  return options.filter((opt) => {
package/src/index.ts CHANGED
@@ -148,6 +148,7 @@ export { default as Ribbon } from './Components/Ribbon/Ribbon';
148
148
  export type { DropdownProps } from './Components/Dropdown/DropdownProps';
149
149
  export {
150
150
  default as Dropdown,
151
+ MultiSelectDropdown,
151
152
  DropdownOption,
152
153
  DropdownGroup,
153
154
  DropdownSearch,