-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4128 from relative-ci/ui-modules-search-module-ch…
…unks-when-there-are-more-than-10-rltv-895 UI: Module chunks - dropdown search
- Loading branch information
Showing
7 changed files
with
112 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export const CHUNKS_NOT_FOUND = 'No chunks found'; | ||
export const CHUNKS_SEARCH = 'Search by chunk name'; | ||
export const CHUNKS_SEARCH_CLEAR = 'Clear search'; | ||
export const CLEAR = 'Clear all'; | ||
export const CHECK = 'Check all'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import cx from 'classnames'; | ||
|
||
import css from './input.module.css'; | ||
|
||
interface InputProps { | ||
size?: 'small' | 'medium' | 'large'; | ||
} | ||
|
||
export const Input = (props: InputProps & Omit<React.ComponentProps<'input'>, 'size'>) => { | ||
const { className = '', size = 'medium', ...restProps } = props; | ||
|
||
const rootClassName = cx(css.root, className, css[size]); | ||
|
||
return <input className={rootClassName} {...restProps} />; | ||
}; |