mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
actionListHeaderSearch
This commit is contained in:
parent
184f841207
commit
498e7aa1b4
|
@ -3,6 +3,7 @@ import { StylingFunction } from 'react-base16-styling';
|
||||||
import RightSlider from './RightSlider';
|
import RightSlider from './RightSlider';
|
||||||
import {
|
import {
|
||||||
actionListHeaderCss,
|
actionListHeaderCss,
|
||||||
|
actionListHeaderSearchCss,
|
||||||
actionListHeaderSelectorCss,
|
actionListHeaderSelectorCss,
|
||||||
} from './utils/createStylingFromTheme';
|
} from './utils/createStylingFromTheme';
|
||||||
|
|
||||||
|
@ -34,7 +35,7 @@ const ActionListHeader: FunctionComponent<Props> = ({
|
||||||
}) => (
|
}) => (
|
||||||
<div css={actionListHeaderCss}>
|
<div css={actionListHeaderCss}>
|
||||||
<input
|
<input
|
||||||
{...styling('actionListHeaderSearch')}
|
css={actionListHeaderSearchCss}
|
||||||
onChange={(e) => onSearch(e.target.value)}
|
onChange={(e) => onSearch(e.target.value)}
|
||||||
placeholder="filter..."
|
placeholder="filter..."
|
||||||
value={searchValue}
|
value={searchValue}
|
||||||
|
|
|
@ -159,27 +159,27 @@ export const actionListItemNameSkippedCss = css({
|
||||||
opacity: 0.3,
|
opacity: 0.3,
|
||||||
});
|
});
|
||||||
|
|
||||||
const getSheetFromColorMap = (map: ColorMap) => ({
|
export const actionListHeaderSearchCss: Interpolation<Theme> = (theme) => ({
|
||||||
actionListHeaderSearch: {
|
|
||||||
outline: 'none',
|
outline: 'none',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
padding: '5px 10px',
|
padding: '5px 10px',
|
||||||
'font-size': '1em',
|
fontSize: '1em',
|
||||||
'font-family': 'monaco, Consolas, "Lucida Console", monospace',
|
fontFamily: 'monaco, Consolas, "Lucida Console", monospace',
|
||||||
|
|
||||||
'background-color': map.BACKGROUND_COLOR,
|
backgroundColor: colorMap(theme).BACKGROUND_COLOR,
|
||||||
color: map.TEXT_COLOR,
|
color: colorMap(theme).TEXT_COLOR,
|
||||||
|
|
||||||
'&::-webkit-input-placeholder': {
|
'&::-webkit-input-placeholder': {
|
||||||
color: map.TEXT_PLACEHOLDER_COLOR,
|
color: colorMap(theme).TEXT_PLACEHOLDER_COLOR,
|
||||||
},
|
},
|
||||||
|
|
||||||
'&::-moz-placeholder': {
|
'&::-moz-placeholder': {
|
||||||
color: map.TEXT_PLACEHOLDER_COLOR,
|
color: colorMap(theme).TEXT_PLACEHOLDER_COLOR,
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const getSheetFromColorMap = (map: ColorMap) => ({
|
||||||
actionListHeaderWrapper: {
|
actionListHeaderWrapper: {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
height: '20px',
|
height: '20px',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user