From 451e1adfd0cfd43e8129d1dd8e20e4c678cfe641 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 29 Aug 2021 17:09:10 +0000 Subject: [PATCH] fix(deps): update dependency react-select to v4 (#810) * fix(deps): update dependency react-select to v4 * Update types * Update snapshots Co-authored-by: Renovate Bot Co-authored-by: Nathan Bierema --- packages/devui/package.json | 4 +- packages/devui/src/Select/Select.tsx | 29 +- .../tests/__snapshots__/Select.test.tsx.snap | 1507 +++++++++++------ yarn.lock | 49 +- 4 files changed, 1003 insertions(+), 586 deletions(-) diff --git a/packages/devui/package.json b/packages/devui/package.json index ce3f7c2c..775ca022 100755 --- a/packages/devui/package.json +++ b/packages/devui/package.json @@ -40,7 +40,7 @@ "@types/base16": "^1.0.2", "@types/codemirror": "^5.60.2", "@types/prop-types": "^15.7.4", - "@types/react-select": "^3.1.2", + "@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.13", @@ -49,7 +49,7 @@ "color": "^3.2.1", "prop-types": "^15.7.2", "react-icons": "^4.2.0", - "react-select": "^3.2.0", + "react-select": "^4.3.1", "redux-devtools-themes": "^1.0.0", "simple-element-resize-detector": "^1.3.0", "styled-components": "^5.3.1" diff --git a/packages/devui/src/Select/Select.tsx b/packages/devui/src/Select/Select.tsx index 00b6e399..4b59d016 100644 --- a/packages/devui/src/Select/Select.tsx +++ b/packages/devui/src/Select/Select.tsx @@ -1,6 +1,7 @@ import React, { PureComponent, Component, ReactElement } from 'react'; import PropTypes from 'prop-types'; import ReactSelect, { + GroupTypeBase, NamedProps as ReactSelectProps, OptionTypeBase, } from 'react-select'; @@ -8,9 +9,10 @@ import createThemedComponent from '../utils/createThemedComponent'; import { Theme } from '../themes/default'; export interface SelectProps< - Option extends OptionTypeBase = OptionTypeBase, - IsMulti extends boolean = false -> extends Omit, 'theme'> { + Option extends OptionTypeBase, + IsMulti extends boolean = false, + Group extends GroupTypeBase