Skip to content

Commit

Permalink
refactor!: update ChipInput usages
Browse files Browse the repository at this point in the history
BREAKING CHANGE: bump @zextras/carbonio-design-system dep to 4.0.0
Refs: SHELL-180
  • Loading branch information
beawar authored Nov 21, 2023
1 parent ed3d56e commit 9366341
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 17 deletions.
64 changes: 54 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@reduxjs/toolkit": "^1 >=1.9",
"@sentry/browser": "^7.66.0",
"@tinymce/tinymce-react": "^4.3.0",
"@zextras/carbonio-design-system": "^3.0.2",
"@zextras/carbonio-design-system": "^4.0.0",
"@zextras/carbonio-ui-preview": "^1.2.2",
"darkreader": "^4.9.58",
"history": "^5.3.0",
Expand All @@ -124,7 +124,7 @@
},
"peerDependencies": {
"@reduxjs/toolkit": "^1 >=1.9",
"@zextras/carbonio-design-system": "^3",
"@zextras/carbonio-design-system": "^4",
"@zextras/carbonio-ui-preview": "^1",
"core-js": "^3.31.1",
"lodash": "^4.17.21",
Expand Down
12 changes: 7 additions & 5 deletions src/search/search-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const OutlinedIconButton = styled(IconButton)`
`;

const StyledChipInput = styled(ChipInput)`
cursor: pointer;
overflow-x: hidden;
padding: 0 1rem;
&:hover {
outline: none;
Expand Down Expand Up @@ -388,12 +390,12 @@ export const SearchBar = (): React.JSX.Element => {
options={options}
placeholder={placeholder}
confirmChipOnBlur={false}
separators={['Enter', 'NumpadEnter', 'Comma', 'Space']}
separators={[
{ key: 'Enter', ctrlKey: false },
{ key: ',', ctrlKey: false },
{ key: ' ', ctrlKey: false }
]}
background={searchDisabled ? 'gray5' : 'gray6'}
style={{
cursor: 'pointer',
overflowX: 'hidden'
}}
onChange={onQueryChange}
onInputType={onInputType}
onInputTypeDebounce={0}
Expand Down

0 comments on commit 9366341

Please sign in to comment.