mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-25 15:40:06 +03:00
Updates
This commit is contained in:
parent
75ab725fb0
commit
79185b706d
|
@ -37,3 +37,6 @@ packageExtensions:
|
|||
dependencies:
|
||||
'@types/node': '^14.17.15'
|
||||
'sqlite3': '^5.0.2'
|
||||
'react-select@^5.0.0':
|
||||
dependencies:
|
||||
'@emotion/serialize': '^1.0.2'
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
"@types/codemirror": "^5.60.2",
|
||||
"@types/json-schema": "^7.0.9",
|
||||
"@types/prop-types": "^15.7.4",
|
||||
"@types/react-select": "^4.0.17",
|
||||
"@types/redux-devtools-themes": "^1.0.0",
|
||||
"@types/simple-element-resize-detector": "^1.3.0",
|
||||
"base16": "^1.0.0",
|
||||
|
|
|
@ -12,6 +12,7 @@ const SelectWidget: Widget = ({
|
|||
defaultValue,
|
||||
tabIndex,
|
||||
onFocus,
|
||||
'aria-invalid': ariaInvalid,
|
||||
...rest
|
||||
}) => (
|
||||
<Select<{ label: string; value: string }>
|
||||
|
|
|
@ -1,17 +1,16 @@
|
|||
import React, { PureComponent, Component, ReactElement } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactSelect, {
|
||||
GroupTypeBase,
|
||||
NamedProps as ReactSelectProps,
|
||||
OptionTypeBase,
|
||||
GroupBase,
|
||||
Props as ReactSelectProps,
|
||||
} from 'react-select';
|
||||
import createThemedComponent from '../utils/createThemedComponent';
|
||||
import { Theme } from '../themes/default';
|
||||
|
||||
export interface SelectProps<
|
||||
Option extends OptionTypeBase,
|
||||
Option,
|
||||
IsMulti extends boolean = false,
|
||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
||||
Group extends GroupBase<Option> = GroupBase<Option>
|
||||
> extends Omit<ReactSelectProps<Option, IsMulti, Group>, 'theme'> {
|
||||
theme: Theme;
|
||||
}
|
||||
|
@ -20,9 +19,9 @@ export interface SelectProps<
|
|||
* Wrapper around [React Select](https://github.com/JedWatson/react-select).
|
||||
*/
|
||||
export class Select<
|
||||
Option extends OptionTypeBase,
|
||||
Option,
|
||||
IsMulti extends boolean = false,
|
||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
||||
Group extends GroupBase<Option> = GroupBase<Option>
|
||||
> extends (PureComponent || Component)<SelectProps<Option, IsMulti, Group>> {
|
||||
render() {
|
||||
return (
|
||||
|
@ -95,17 +94,17 @@ export class Select<
|
|||
}
|
||||
|
||||
export interface ExternalSelectProps<
|
||||
Option extends OptionTypeBase,
|
||||
Option,
|
||||
IsMulti extends boolean = false,
|
||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
||||
Group extends GroupBase<Option> = GroupBase<Option>
|
||||
> extends Omit<ReactSelectProps<Option, IsMulti, Group>, 'theme'> {
|
||||
theme?: Theme;
|
||||
}
|
||||
|
||||
type SelectComponent = <
|
||||
Option extends OptionTypeBase,
|
||||
Option,
|
||||
IsMulti extends boolean = false,
|
||||
Group extends GroupTypeBase<Option> = GroupTypeBase<Option>
|
||||
Group extends GroupBase<Option> = GroupBase<Option>
|
||||
>(
|
||||
props: ExternalSelectProps<Option, IsMulti, Group>
|
||||
) => ReactElement;
|
||||
|
|
File diff suppressed because one or more lines are too long
19
yarn.lock
19
yarn.lock
|
@ -2697,7 +2697,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@emotion/serialize@npm:^1.0.0, @emotion/serialize@npm:^1.0.2":
|
||||
"@emotion/serialize@npm:^1.0.2":
|
||||
version: 1.0.2
|
||||
resolution: "@emotion/serialize@npm:1.0.2"
|
||||
dependencies:
|
||||
|
@ -5144,7 +5144,6 @@ __metadata:
|
|||
"@types/json-schema": ^7.0.9
|
||||
"@types/prop-types": ^15.7.4
|
||||
"@types/react": ^16.14.15
|
||||
"@types/react-select": ^4.0.17
|
||||
"@types/redux-devtools-themes": ^1.0.0
|
||||
"@types/simple-element-resize-detector": ^1.3.0
|
||||
"@types/styled-components": ^5.1.14
|
||||
|
@ -7312,7 +7311,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-dom@npm:*, @types/react-dom@npm:^16.9.14":
|
||||
"@types/react-dom@npm:^16.9.14":
|
||||
version: 16.9.14
|
||||
resolution: "@types/react-dom@npm:16.9.14"
|
||||
dependencies:
|
||||
|
@ -7363,18 +7362,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-select@npm:^4.0.17":
|
||||
version: 4.0.17
|
||||
resolution: "@types/react-select@npm:4.0.17"
|
||||
dependencies:
|
||||
"@emotion/serialize": ^1.0.0
|
||||
"@types/react": "*"
|
||||
"@types/react-dom": "*"
|
||||
"@types/react-transition-group": "*"
|
||||
checksum: aa94bd1ff3536ab2bb8443bcf3c11109bcd78ae965dc534b205273eb98a84487d272e008adff50744870255e4ec5767465283649abd3d449fbc712718c062fca
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-syntax-highlighter@npm:11.0.5":
|
||||
version: 11.0.5
|
||||
resolution: "@types/react-syntax-highlighter@npm:11.0.5"
|
||||
|
@ -7393,7 +7380,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/react-transition-group@npm:*, @types/react-transition-group@npm:^4.4.0, @types/react-transition-group@npm:^4.4.1":
|
||||
"@types/react-transition-group@npm:^4.4.0, @types/react-transition-group@npm:^4.4.1":
|
||||
version: 4.4.3
|
||||
resolution: "@types/react-transition-group@npm:4.4.3"
|
||||
dependencies:
|
||||
|
|
Loading…
Reference in New Issue
Block a user